]> git.saurik.com Git - cycript.git/blame - configure
Move non-RegEx lexer hacks from Scanner to Parser.
[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#
c1d3e52e 14# Copyright (C) 2009-2015 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
9777bd50 641SO
66170b30 642LTFLAGS
3615a2f7 643LTLIBGCC
6f9aea2b
JF
644LTLIBTERMCAP
645LTLIBREADLINE
a243b558
JF
646CY_OBJECTIVEC_FALSE
647CY_OBJECTIVEC_TRUE
39ed1631
JF
648CY_JAVA_FALSE
649CY_JAVA_TRUE
babf7fe8 650LTOBJECTIVEC
47aaa820 651GNUSTEP_CONFIG
c823f118 652CY_OBJECTIVEC
39ed1631
JF
653LTJAVA
654CY_JAVA
296ee9a6 655LTLIBFFI
309b0535 656LIBFFI_LIBS
35fa52c0 657LIBFFI_CFLAGS
ae1b611e 658LTLIBUV
a243b558
JF
659CY_EXECUTE_FALSE
660CY_EXECUTE_TRUE
a4287117
JF
661CY_ATTACH_FALSE
662CY_ATTACH_TRUE
a93f15c0
JF
663CY_CONSOLE_FALSE
664CY_CONSOLE_TRUE
babf7fe8 665LTJAVASCRIPTCORE
35fa52c0
DWT
666WEBKIT_LIBS
667WEBKIT_CFLAGS
7eda51e0 668CY_EXECUTE
be2fde87
JF
669PTHREAD_CFLAGS
670PTHREAD_LIBS
671PTHREAD_CC
672ax_pthread_config
77578fdd 673LFLAGS
e9c9a47c 674GNUTAR
e9c9a47c
DWT
675GPERF
676FLEX
677BISON
678TIME
66170b30 679GIT
12833ad8
JF
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
3fd51f51 682PKG_CONFIG
1771224f 683HAVE_CXX11
a243b558 684CXXCPP
9c60689e 685CPP
9d54db95 686LT_SYS_LIBRARY_PATH
9c60689e
DWT
687OTOOL64
688OTOOL
689LIPO
690NMEDIT
691DSYMUTIL
ee134472 692MANIFEST_TOOL
9c60689e 693RANLIB
ee134472 694DLLTOOL
9c60689e
DWT
695OBJDUMP
696LN_S
697NM
698ac_ct_DUMPBIN
699DUMPBIN
700LD
701FGREP
702EGREP
703GREP
704SED
a243b558
JF
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713LIBTOOL
a243b558
JF
714ac_ct_AR
715AR
716am__fastdepOBJCXX_FALSE
717am__fastdepOBJCXX_TRUE
718OBJCXXDEPMODE
719ac_ct_OBJCXX
720OBJCXXFLAGS
721OBJCXX
722am__fastdepCXX_FALSE
723am__fastdepCXX_TRUE
724CXXDEPMODE
a93f15c0
JF
725ac_ct_CXX
726CXXFLAGS
727CXX
728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
66170b30
JF
731am__nodep
732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
735am__quote
736am__include
737DEPDIR
35fa52c0
DWT
738OBJEXT
739EXEEXT
a93f15c0 740ac_ct_CC
35fa52c0
DWT
741CPPFLAGS
742LDFLAGS
a93f15c0
JF
743CFLAGS
744CC
babf7fe8
JF
745MAINT
746MAINTAINER_MODE_FALSE
747MAINTAINER_MODE_TRUE
66170b30
JF
748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
750AM_DEFAULT_V
751AM_V
752am__untar
753am__tar
754AMTAR
755am__leading_dot
756SET_MAKE
757AWK
758mkdir_p
759MKDIR_P
760INSTALL_STRIP_PROGRAM
761STRIP
762install_sh
763MAKEINFO
764AUTOHEADER
765AUTOMAKE
766AUTOCONF
767ACLOCAL
768VERSION
769PACKAGE
770CYGPATH_W
771am__isrc
772INSTALL_DATA
773INSTALL_SCRIPT
774INSTALL_PROGRAM
dbadc56a 775target_alias
c7aa54aa
DWT
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_URL
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
813ac_subst_files=''
814ac_user_opts='
815enable_option_checking
66170b30 816enable_silent_rules
babf7fe8 817enable_maintainer_mode
a243b558 818enable_dependency_tracking
9c60689e 819enable_static
549f29b5 820enable_shared
9c60689e
DWT
821with_pic
822enable_fast_install
9d54db95 823with_aix_soname
35fa52c0 824with_gnu_ld
ee134472 825with_sysroot
9c60689e 826enable_libtool_lock
5053a6d1 827enable_javascript
a93f15c0 828enable_console
a4287117 829enable_attach
c7aa54aa
DWT
830'
831 ac_precious_vars='build_alias
832host_alias
dbadc56a 833target_alias
a93f15c0
JF
834CC
835CFLAGS
dbadc56a
DWT
836LDFLAGS
837LIBS
838CPPFLAGS
a93f15c0
JF
839CXX
840CXXFLAGS
a243b558
JF
841CCC
842OBJCXX
843OBJCXXFLAGS
9d54db95 844LT_SYS_LIBRARY_PATH
9c60689e 845CPP
a243b558 846CXXCPP
3fd51f51 847PKG_CONFIG
12833ad8
JF
848PKG_CONFIG_PATH
849PKG_CONFIG_LIBDIR
e9c9a47c
DWT
850BISON
851FLEX
852GPERF
66170b30 853GNUTAR
77578fdd 854LFLAGS
35fa52c0
DWT
855WEBKIT_CFLAGS
856WEBKIT_LIBS
a667869d 857LIBFFI_CFLAGS
790e5246
DWT
858LIBFFI_LIBS
859GNUSTEP_CONFIG'
c7aa54aa
DWT
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898includedir='${prefix}/include'
899oldincludedir='/usr/include'
900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901infodir='${datarootdir}/info'
902htmldir='${docdir}'
903dvidir='${docdir}'
904pdfdir='${docdir}'
905psdir='${docdir}'
906libdir='${exec_prefix}/lib'
907localedir='${datarootdir}/locale'
908mandir='${datarootdir}/man'
909
910ac_prev=
911ac_dashdash=
912for ac_option
913do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
12833ad8
JF
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
c7aa54aa
DWT
925 esac
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 969 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
980
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
985
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
990
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 995 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"enable_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1199 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
1210
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1215 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220"with_$ac_useropt"
1221"*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
12833ad8
JF
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
c7aa54aa
DWT
1247 ;;
1248
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1265 ;;
1266
1267 esac
1268done
1269
1270if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1272 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
12833ad8 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1288do
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
12833ad8 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
c7aa54aa
DWT
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1329 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1331 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343$as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365else
1366 ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
12833ad8 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1375 pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
12833ad8 1414 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453_ACEOF
1454
1455 cat <<\_ACEOF
35fa52c0 1456
66170b30
JF
1457Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
35fa52c0
DWT
1462System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of Cycript 0.9:";;
1471 esac
1472 cat <<\_ACEOF
1473
35fa52c0
DWT
1474Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
66170b30
JF
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
a243b558
JF
1487 --enable-static[=PKGS] build static libraries [default=no]
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
9c60689e 1491 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1492 --enable-javascript[=ENGINE]
790e5246 1493 use a JavaScript runtime (currently the only
b66977f1
DWT
1494 available option for ENGINE is JavaScriptCore)
1495 [default=yes]
a93f15c0 1496 --disable-console disable console
a4287117 1497 --disable-attach disable attach
35fa52c0
DWT
1498
1499Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1503 both]
9d54db95
JF
1504 --with-aix-soname=aix|svr4|both
1505 shared library versioning (aka "SONAME") variant to
1506 provide on AIX, [default=aix].
9c60689e 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1509 compiler's sysroot if not specified).
35fa52c0 1510
dbadc56a 1511Some influential environment variables:
a93f15c0
JF
1512 CC C compiler command
1513 CFLAGS C compiler flags
dbadc56a
DWT
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1518 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
a243b558
JF
1521 OBJCXX Objective C++ compiler command
1522 OBJCXXFLAGS Objective C++ compiler flags
9d54db95
JF
1523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
9c60689e 1525 CPP C preprocessor
a243b558 1526 CXXCPP C++ preprocessor
3fd51f51 1527 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1528 PKG_CONFIG_PATH
1529 directories to add to pkg-config's search path
1530 PKG_CONFIG_LIBDIR
1531 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1532 BISON GNU Project parser generator (yacc replacement)
1533 FLEX the fast lexical analyser generator
1534 GPERF perfect hash function generator
66170b30 1535 GNUTAR a very sticky lump of files
77578fdd 1536 LFLAGS flex flags
35fa52c0
DWT
1537 WEBKIT_CFLAGS
1538 C compiler flags for WEBKIT, overriding pkg-config
1539 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1540 GNUSTEP_CONFIG
1541 prints information about the current gnustep installation
dbadc56a
DWT
1542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
c7aa54aa
DWT
1546Report bugs to <saurik@saurik.com>.
1547Cycript home page: <http://www.cycript.org/>.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609 cat <<\_ACEOF
1610Cycript configure 0.9
53ba6704 1611generated by GNU Autoconf 2.69
c7aa54aa 1612
53ba6704 1613Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
66170b30 1616
c1d3e52e 1617Copyright (C) 2009-2015 Jay Freeman (saurik)
c7aa54aa
DWT
1618_ACEOF
1619 exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
dbadc56a 1625
a93f15c0
JF
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
a243b558 1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1629ac_fn_c_try_compile ()
a243b558
JF
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
a93f15c0 1649 test -z "$ac_c_werror_flag" ||
a243b558
JF
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
a93f15c0 1662} # ac_fn_c_try_compile
a243b558 1663
a93f15c0
JF
1664# ac_fn_cxx_try_compile LINENO
1665# ----------------------------
a243b558 1666# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1667ac_fn_cxx_try_compile ()
a243b558
JF
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
a93f15c0 1687 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
a93f15c0 1700} # ac_fn_cxx_try_compile
a243b558 1701
a93f15c0
JF
1702# ac_fn_objcxx_try_compile LINENO
1703# -------------------------------
35fa52c0 1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1705ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
a93f15c0 1725 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
ee134472 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1736 as_fn_set_status $ac_retval
35fa52c0 1737
a93f15c0 1738} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
53ba6704 1767 test -x conftest$ac_exeext
35fa52c0
DWT
1768 }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1782 as_fn_set_status $ac_retval
35fa52c0
DWT
1783
1784} # ac_fn_c_try_link
1785
9c60689e
DWT
1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787# -------------------------------------------------------
1788# Tests whether HEADER exists and can be compiled using the include files in
1789# INCLUDES, setting the cache variable VAR accordingly.
1790ac_fn_c_check_header_compile ()
dbadc56a
DWT
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
ee134472 1795if eval \${$3+:} false; then :
9c60689e
DWT
1796 $as_echo_n "(cached) " >&6
1797else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805else
1806 eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
ee134472 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1814
1815} # ac_fn_c_check_header_compile
1816
1817# ac_fn_c_try_cpp LINENO
1818# ----------------------
1819# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820ac_fn_c_try_cpp ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
9c60689e 1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1838 test $ac_status = 0; } > conftest.i && {
9c60689e 1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1840 test ! -s conftest.err
9c60689e 1841 }; then :
dbadc56a
DWT
1842 ac_retval=0
1843else
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
9c60689e 1847 ac_retval=1
dbadc56a 1848fi
ee134472 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1850 as_fn_set_status $ac_retval
dbadc56a 1851
9c60689e 1852} # ac_fn_c_try_cpp
35fa52c0
DWT
1853
1854# ac_fn_c_try_run LINENO
1855# ----------------------
1856# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857# that executables *can* be run.
1858ac_fn_c_try_run ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1892 as_fn_set_status $ac_retval
35fa52c0
DWT
1893
1894} # ac_fn_c_try_run
6b66678a 1895
9c60689e
DWT
1896# ac_fn_c_check_func LINENO FUNC VAR
1897# ----------------------------------
1898# Tests whether FUNC exists, setting the cache variable VAR accordingly
1899ac_fn_c_check_func ()
6b66678a
DWT
1900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
ee134472 1904if eval \${$3+:} false; then :
9c60689e 1905 $as_echo_n "(cached) " >&6
6b66678a 1906else
9c60689e
DWT
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911#define $2 innocuous_$2
6b66678a 1912
9c60689e
DWT
1913/* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1917
1918#ifdef __STDC__
1919# include <limits.h>
1920#else
1921# include <assert.h>
1922#endif
1923
1924#undef $2
1925
1926/* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1929#ifdef __cplusplus
1930extern "C"
1931#endif
1932char $2 ();
1933/* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936#if defined __stub_$2 || defined __stub___$2
1937choke me
1938#endif
1939
1940int
1941main ()
1942{
1943return $2 ();
1944 ;
1945 return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_link "$LINENO"; then :
1949 eval "$3=yes"
1950else
1951 eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
6b66678a 1955fi
9c60689e
DWT
1956eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
ee134472 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1960
9c60689e 1961} # ac_fn_c_check_func
6b66678a 1962
9c60689e
DWT
1963# ac_fn_cxx_try_cpp LINENO
1964# ------------------------
1965# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_cxx_try_cpp ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973esac
1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975$as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1982 fi
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1984 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989else
1990 $as_echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_retval=1
1994fi
ee134472 1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1996 as_fn_set_status $ac_retval
1997
1998} # ac_fn_cxx_try_cpp
1999
2000# ac_fn_cxx_try_link LINENO
2001# -------------------------
2002# Try to link conftest.$ac_ext, and return whether this succeeded.
2003ac_fn_cxx_try_link ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext conftest$ac_exeext
2007 if { { ac_try="$ac_link"
2008case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2020 fi
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest$ac_exeext && {
2026 test "$cross_compiling" = yes ||
53ba6704 2027 test -x conftest$ac_exeext
9c60689e
DWT
2028 }; then :
2029 ac_retval=0
2030else
2031 $as_echo "$as_me: failed program was:" >&5
2032sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=1
2035fi
2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038 # interfere with the next link command; also delete a directory that is
2039 # left behind by Apple's compiler. We do this before executing the actions.
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2042 as_fn_set_status $ac_retval
2043
2044} # ac_fn_cxx_try_link
2045
47aaa820
DWT
2046# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2047# ---------------------------------------------------------
2048# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2049# the include files in INCLUDES and setting the cache variable VAR
2050# accordingly.
2051ac_fn_cxx_check_header_mongrel ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2054 if eval \${$3+:} false; then :
47aaa820
DWT
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056$as_echo_n "checking for $2... " >&6; }
ee134472 2057if eval \${$3+:} false; then :
47aaa820
DWT
2058 $as_echo_n "(cached) " >&6
2059fi
2060eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062$as_echo "$ac_res" >&6; }
2063else
2064 # Is the header compilable?
2065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2066$as_echo_n "checking $2 usability... " >&6; }
2067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h. */
2069$4
2070#include <$2>
2071_ACEOF
2072if ac_fn_cxx_try_compile "$LINENO"; then :
2073 ac_header_compiler=yes
2074else
2075 ac_header_compiler=no
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2079$as_echo "$ac_header_compiler" >&6; }
2080
2081# Is the header present?
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2083$as_echo_n "checking $2 presence... " >&6; }
2084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086#include <$2>
2087_ACEOF
2088if ac_fn_cxx_try_cpp "$LINENO"; then :
2089 ac_header_preproc=yes
2090else
2091 ac_header_preproc=no
2092fi
12833ad8 2093rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2095$as_echo "$ac_header_preproc" >&6; }
2096
2097# So? What about this header?
2098case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2099 yes:no: )
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2101$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ;;
2105 no:yes:* )
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2107$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2109$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2111$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2113$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2116( $as_echo "## -------------------------------- ##
47aaa820 2117## Report this to saurik@saurik.com ##
12833ad8 2118## -------------------------------- ##"
47aaa820
DWT
2119 ) | sed "s/^/$as_me: WARNING: /" >&2
2120 ;;
2121esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
ee134472 2124if eval \${$3+:} false; then :
47aaa820
DWT
2125 $as_echo_n "(cached) " >&6
2126else
2127 eval "$3=\$ac_header_compiler"
2128fi
2129eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
2132fi
ee134472 2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2134
2135} # ac_fn_cxx_check_header_mongrel
2136
c823f118
DWT
2137# ac_fn_objcxx_try_link LINENO
2138# ----------------------------
2139# Try to link conftest.$ac_ext, and return whether this succeeded.
2140ac_fn_objcxx_try_link ()
2141{
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
2149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150$as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_objcxx_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
53ba6704 2164 test -x conftest$ac_exeext
c823f118
DWT
2165 }; then :
2166 ac_retval=0
2167else
2168 $as_echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172fi
2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2175 # interfere with the next link command; also delete a directory that is
2176 # left behind by Apple's compiler. We do this before executing the actions.
2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2179 as_fn_set_status $ac_retval
2180
2181} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2182cat >config.log <<_ACEOF
2183This file contains any messages produced by compilers while
2184running configure, to aid debugging if configure makes a mistake.
2185
2186It was created by Cycript $as_me 0.9, which was
53ba6704 2187generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2188
2189 $ $0 $@
2190
2191_ACEOF
2192exec 5>>config.log
2193{
2194cat <<_ASUNAME
2195## --------- ##
2196## Platform. ##
2197## --------- ##
2198
2199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204
2205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2207
2208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215
2216_ASUNAME
2217
2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 $as_echo "PATH: $as_dir"
2224 done
2225IFS=$as_save_IFS
2226
2227} >&5
2228
2229cat >&5 <<_ACEOF
2230
2231
2232## ----------- ##
2233## Core tests. ##
2234## ----------- ##
2235
2236_ACEOF
2237
2238
2239# Keep a trace of the command line.
2240# Strip out --no-create and --no-recursion so they do not pile up.
2241# Strip out --silent because we don't want to record it for future runs.
2242# Also quote any args containing shell meta-characters.
2243# Make two passes to allow for proper duplicate-argument suppression.
2244ac_configure_args=
2245ac_configure_args0=
2246ac_configure_args1=
2247ac_must_keep_next=false
2248for ac_pass in 1 2
2249do
2250 for ac_arg
2251 do
2252 case $ac_arg in
2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255 | -silent | --silent | --silen | --sile | --sil)
2256 continue ;;
2257 *\'*)
2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 esac
2260 case $ac_pass in
2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262 2)
2263 as_fn_append ac_configure_args1 " '$ac_arg'"
2264 if test $ac_must_keep_next = true; then
2265 ac_must_keep_next=false # Got value, back to normal.
2266 else
2267 case $ac_arg in
2268 *=* | --config-cache | -C | -disable-* | --disable-* \
2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271 | -with-* | --with-* | -without-* | --without-* | --x)
2272 case "$ac_configure_args0 " in
2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 esac
2275 ;;
2276 -* ) ac_must_keep_next=true ;;
2277 esac
2278 fi
2279 as_fn_append ac_configure_args " '$ac_arg'"
2280 ;;
2281 esac
2282 done
2283done
2284{ ac_configure_args0=; unset ac_configure_args0;}
2285{ ac_configure_args1=; unset ac_configure_args1;}
2286
2287# When interrupted or exit'd, cleanup temporary files, and complete
2288# config.log. We remove comments because anyway the quotes in there
2289# would cause problems or look ugly.
2290# WARNING: Use '\'' to represent an apostrophe within the trap.
2291# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292trap 'exit_status=$?
2293 # Save into config.log some information that might help in debugging.
2294 {
2295 echo
2296
12833ad8 2297 $as_echo "## ---------------- ##
c7aa54aa 2298## Cache variables. ##
12833ad8 2299## ---------------- ##"
c7aa54aa
DWT
2300 echo
2301 # The following way of writing the cache mishandles newlines in values,
2302(
2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in #(
2306 *${as_nl}*)
2307 case $ac_var in #(
2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2309$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 esac
2311 case $ac_var in #(
2312 _ | IFS | as_nl) ;; #(
2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2314 *) { eval $ac_var=; unset $ac_var;} ;;
2315 esac ;;
2316 esac
2317 done
2318 (set) 2>&1 |
2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2320 *${as_nl}ac_space=\ *)
2321 sed -n \
2322 "s/'\''/'\''\\\\'\'''\''/g;
2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 ;; #(
2325 *)
2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 ;;
2328 esac |
2329 sort
2330)
2331 echo
2332
12833ad8 2333 $as_echo "## ----------------- ##
c7aa54aa 2334## Output variables. ##
12833ad8 2335## ----------------- ##"
c7aa54aa
DWT
2336 echo
2337 for ac_var in $ac_subst_vars
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346
2347 if test -n "$ac_subst_files"; then
12833ad8 2348 $as_echo "## ------------------- ##
c7aa54aa 2349## File substitutions. ##
12833ad8 2350## ------------------- ##"
c7aa54aa
DWT
2351 echo
2352 for ac_var in $ac_subst_files
2353 do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2361 fi
2362
2363 if test -s confdefs.h; then
12833ad8 2364 $as_echo "## ----------- ##
c7aa54aa 2365## confdefs.h. ##
12833ad8 2366## ----------- ##"
c7aa54aa
DWT
2367 echo
2368 cat confdefs.h
2369 echo
2370 fi
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2378' 0
2379for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381done
2382ac_signal=0
2383
2384# confdefs.h avoids OS command line length limits that DEFS can exceed.
2385rm -f -r conftest* confdefs.h
2386
2387$as_echo "/* confdefs.h */" > confdefs.h
2388
2389# Predefined preprocessor variables.
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_NAME "$PACKAGE_NAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_VERSION "$PACKAGE_VERSION"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_STRING "$PACKAGE_STRING"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409_ACEOF
2410
2411cat >>confdefs.h <<_ACEOF
2412#define PACKAGE_URL "$PACKAGE_URL"
2413_ACEOF
2414
2415
2416# Let the site file select an alternate cache file if it wants to.
2417# Prefer an explicitly selected file to automatically selected ones.
2418ac_site_file1=NONE
2419ac_site_file2=NONE
2420if test -n "$CONFIG_SITE"; then
12833ad8
JF
2421 # We do not want a PATH search for config.site.
2422 case $CONFIG_SITE in #((
2423 -*) ac_site_file1=./$CONFIG_SITE;;
2424 */*) ac_site_file1=$CONFIG_SITE;;
2425 *) ac_site_file1=./$CONFIG_SITE;;
2426 esac
c7aa54aa
DWT
2427elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2433fi
2434for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435do
2436 test "x$ac_site_file" = xNONE && continue
9c60689e 2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2441 . "$ac_site_file" \
2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444as_fn_error $? "failed to load site script $ac_site_file
ee134472 2445See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2446 fi
2447done
2448
2449if test -r "$cache_file"; then
9c60689e
DWT
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454$as_echo "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2459 fi
2460else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462$as_echo "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2464fi
2465
2466# Check that the precious variables saved in the cache have kept the same
2467# value.
2468ac_cache_corrupted=false
2469for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2475 set,)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,set)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,);;
2484 *)
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 fi;;
2503 esac
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2506 case $ac_new_val in
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2509 esac
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 esac
2514 fi
2515done
2516if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2522fi
2523## -------------------- ##
2524## Main body of script. ##
2525## -------------------- ##
2526
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
66170b30
JF
2534
2535
35fa52c0 2536
6b66678a
DWT
2537ac_aux_dir=
2538for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2539 if test -f "$ac_dir/install-sh"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/install-sh -c"
2542 break
2543 elif test -f "$ac_dir/install.sh"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/install.sh -c"
2546 break
2547 elif test -f "$ac_dir/shtool"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/shtool install -c"
2550 break
2551 fi
6b66678a
DWT
2552done
2553if test -z "$ac_aux_dir"; then
12833ad8 2554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2555fi
2556
2557# These three variables are undocumented and unsupported,
2558# and are intended to be withdrawn in a future Autoconf release.
2559# They can cause serious problems if a builder's source tree is in a directory
2560# whose full name contains unusual characters.
2561ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
9c60689e 2566
296ee9a6
JF
2567ac_config_headers="$ac_config_headers config.h"
2568
9c60689e 2569
795230e5 2570am__api_version='1.15'
9c60689e 2571
66170b30
JF
2572# Find a good install program. We prefer a C program (faster),
2573# so one script is as good as another. But avoid the broken or
2574# incompatible versions:
2575# SysV /etc/install, /usr/sbin/install
2576# SunOS /usr/etc/install
2577# IRIX /sbin/install
2578# AIX /bin/install
2579# AmigaOS /C/install, which installs bootblocks on floppy discs
2580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583# OS/2's system install, which has a completely different semantic
2584# ./install, which can be erroneously created by make from ./install.sh.
2585# Reject install programs that cannot install multiple files.
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587$as_echo_n "checking for a BSD-compatible install... " >&6; }
2588if test -z "$INSTALL"; then
2589if ${ac_cv_path_install+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 # Account for people who put trailing slashes in PATH elements.
2598case $as_dir/ in #((
2599 ./ | .// | /[cC]/* | \
2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2602 /usr/ucb/* ) ;;
2603 *)
2604 # OSF1 and SCO ODT 3.0 have their own names for install.
2605 # Don't use installbsd from OSF since it installs stuff as root
2606 # by default.
2607 for ac_prog in ginstall scoinst install; do
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2610 if test $ac_prog = install &&
2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # AIX install. It has an incompatible calling convention.
2613 :
2614 elif test $ac_prog = install &&
2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # program-specific install script used by HP pwplus--don't use.
2617 :
2618 else
2619 rm -rf conftest.one conftest.two conftest.dir
2620 echo one > conftest.one
2621 echo two > conftest.two
2622 mkdir conftest.dir
2623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2624 test -s conftest.one && test -s conftest.two &&
2625 test -s conftest.dir/conftest.one &&
2626 test -s conftest.dir/conftest.two
2627 then
2628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2629 break 3
2630 fi
2631 fi
2632 fi
2633 done
2634 done
2635 ;;
2636esac
9c60689e 2637
66170b30
JF
2638 done
2639IFS=$as_save_IFS
9c60689e 2640
66170b30 2641rm -rf conftest.one conftest.two conftest.dir
9c60689e 2642
66170b30
JF
2643fi
2644 if test "${ac_cv_path_install+set}" = set; then
2645 INSTALL=$ac_cv_path_install
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for INSTALL within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 INSTALL=$ac_install_sh
2652 fi
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2655$as_echo "$INSTALL" >&6; }
9c60689e 2656
66170b30
JF
2657# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2658# It thinks the first close brace ends the variable substitution.
2659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2660
66170b30 2661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2662
66170b30 2663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2664
66170b30
JF
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2666$as_echo_n "checking whether build environment is sane... " >&6; }
2667# Reject unsafe characters in $srcdir or the absolute working directory
2668# name. Accept space and tab only in the latter.
2669am_lf='
2670'
2671case `pwd` in
2672 *[\\\"\#\$\&\'\`$am_lf]*)
2673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2674esac
2675case $srcdir in
2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2678esac
9c60689e 2679
66170b30
JF
2680# Do 'set' in a subshell so we don't clobber the current shell's
2681# arguments. Must try -L first in case configure is actually a
2682# symlink; some systems play weird games with the mod time of symlinks
2683# (eg FreeBSD returns the mod time of the symlink's containing
2684# directory).
2685if (
2686 am_has_slept=no
2687 for am_try in 1 2; do
2688 echo "timestamp, slept: $am_has_slept" > conftest.file
2689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2690 if test "$*" = "X"; then
2691 # -L didn't work.
2692 set X `ls -t "$srcdir/configure" conftest.file`
2693 fi
2694 if test "$*" != "X $srcdir/configure conftest.file" \
2695 && test "$*" != "X conftest.file $srcdir/configure"; then
2696
2697 # If neither matched, then we have a broken ls. This can happen
2698 # if, for instance, CONFIG_SHELL is bash and it inherits a
2699 # broken ls alias from the environment. This has actually
2700 # happened. Such a system could not be considered "sane".
2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2702 alias in your environment" "$LINENO" 5
2703 fi
2704 if test "$2" = conftest.file || test $am_try -eq 2; then
2705 break
2706 fi
2707 # Just in case.
2708 sleep 1
2709 am_has_slept=yes
2710 done
2711 test "$2" = conftest.file
2712 )
2713then
2714 # Ok.
2715 :
2716else
2717 as_fn_error $? "newly created file is older than distributed files!
2718Check your system clock" "$LINENO" 5
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721$as_echo "yes" >&6; }
2722# If we didn't sleep, we still need to ensure time stamps of config.status and
2723# generated files are strictly newer.
2724am_sleep_pid=
2725if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2726 ( sleep 1 ) &
2727 am_sleep_pid=$!
2728fi
2729
2730rm -f conftest.file
2731
2732test "$program_prefix" != NONE &&
2733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2734# Use a double $ so make ignores it.
2735test "$program_suffix" != NONE &&
2736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2737# Double any \ or $.
2738# By default was `s,x,x', remove it if useless.
2739ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2740program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2741
795230e5
JF
2742# Expand $ac_aux_dir to an absolute path.
2743am_aux_dir=`cd "$ac_aux_dir" && pwd`
66170b30
JF
2744
2745if test x"${MISSING+set}" != xset; then
2746 case $am_aux_dir in
2747 *\ * | *\ *)
2748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2749 *)
2750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2751 esac
2752fi
2753# Use eval to expand $SHELL
2754if eval "$MISSING --is-lightweight"; then
2755 am_missing_run="$MISSING "
2756else
2757 am_missing_run=
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2759$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2760fi
9c60689e 2761
795230e5 2762if test x"${install_sh+set}" != xset; then
66170b30
JF
2763 case $am_aux_dir in
2764 *\ * | *\ *)
2765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2766 *)
2767 install_sh="\${SHELL} $am_aux_dir/install-sh"
2768 esac
2769fi
9c60689e 2770
66170b30
JF
2771# Installed binaries are usually stripped using 'strip' when the user
2772# run "make install-strip". However 'strip' might not be the right
2773# tool to use in cross-compilation environments, therefore Automake
2774# will honor the 'STRIP' environment variable to overrule this program.
2775if test "$cross_compiling" != no; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}strip; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_STRIP+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$STRIP"; then
2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
9c60689e 2801
66170b30
JF
2802fi
2803fi
2804STRIP=$ac_cv_prog_STRIP
2805if test -n "$STRIP"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807$as_echo "$STRIP" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
9c60689e 2812
9c60689e 2813
66170b30
JF
2814fi
2815if test -z "$ac_cv_prog_STRIP"; then
2816 ac_ct_STRIP=$STRIP
2817 # Extract the first word of "strip", so it can be a program name with args.
2818set dummy strip; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2822 $as_echo_n "(cached) " >&6
2823else
66170b30
JF
2824 if test -n "$ac_ct_STRIP"; then
2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839 done
2840IFS=$as_save_IFS
9c60689e
DWT
2841
2842fi
66170b30
JF
2843fi
2844ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845if test -n "$ac_ct_STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847$as_echo "$ac_ct_STRIP" >&6; }
2848else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853 if test "x$ac_ct_STRIP" = x; then
2854 STRIP=":"
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857yes:)
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860ac_tool_warned=yes ;;
9c60689e 2861esac
66170b30
JF
2862 STRIP=$ac_ct_STRIP
2863 fi
2864else
2865 STRIP="$ac_cv_prog_STRIP"
2866fi
9c60689e 2867
66170b30
JF
2868fi
2869INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2870
66170b30
JF
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2872$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2873if test -z "$MKDIR_P"; then
2874 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2875 $as_echo_n "(cached) " >&6
2876else
66170b30
JF
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in mkdir gmkdir; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2886 'mkdir (GNU coreutils) '* | \
2887 'mkdir (coreutils) '* | \
2888 'mkdir (fileutils) '4.1*)
2889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2890 break 3;;
2891 esac
2892 done
2893 done
2894 done
2895IFS=$as_save_IFS
2896
2897fi
2898
2899 test -d ./--version && rmdir ./--version
2900 if test "${ac_cv_path_mkdir+set}" = set; then
2901 MKDIR_P="$ac_cv_path_mkdir -p"
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for MKDIR_P within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 MKDIR_P="$ac_install_sh -d"
2908 fi
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2911$as_echo "$MKDIR_P" >&6; }
2912
2913for ac_prog in gawk mawk nawk awk
2914do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916set dummy $ac_prog; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if ${ac_cv_prog_AWK+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921else
2922 if test -n "$AWK"; then
2923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_AWK="$ac_prog"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936done
2937 done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942AWK=$ac_cv_prog_AWK
2943if test -n "$AWK"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2945$as_echo "$AWK" >&6; }
2946else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951
2952 test -n "$AWK" && break
2953done
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2956$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2957set x ${MAKE-make}
2958ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2959if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961else
2962 cat >conftest.make <<\_ACEOF
2963SHELL = /bin/sh
2964all:
2965 @echo '@@@%%%=$(MAKE)=@@@%%%'
2966_ACEOF
2967# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2968case `${MAKE-make} -f conftest.make 2>/dev/null` in
2969 *@@@%%%=?*=@@@%%%*)
2970 eval ac_cv_prog_make_${ac_make}_set=yes;;
2971 *)
2972 eval ac_cv_prog_make_${ac_make}_set=no;;
2973esac
2974rm -f conftest.make
2975fi
2976if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978$as_echo "yes" >&6; }
2979 SET_MAKE=
2980else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983 SET_MAKE="MAKE=${MAKE-make}"
2984fi
2985
2986rm -rf .tst 2>/dev/null
2987mkdir .tst 2>/dev/null
2988if test -d .tst; then
2989 am__leading_dot=.
2990else
2991 am__leading_dot=_
2992fi
2993rmdir .tst 2>/dev/null
2994
2995# Check whether --enable-silent-rules was given.
2996if test "${enable_silent_rules+set}" = set; then :
2997 enableval=$enable_silent_rules;
2998fi
2999
3000case $enable_silent_rules in # (((
3001 yes) AM_DEFAULT_VERBOSITY=0;;
3002 no) AM_DEFAULT_VERBOSITY=1;;
3003 *) AM_DEFAULT_VERBOSITY=1;;
3004esac
3005am_make=${MAKE-make}
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3007$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3008if ${am_cv_make_support_nested_variables+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010else
3011 if $as_echo 'TRUE=$(BAR$(V))
3012BAR0=false
3013BAR1=true
3014V=1
3015am__doit:
3016 @$(TRUE)
3017.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3018 am_cv_make_support_nested_variables=yes
3019else
3020 am_cv_make_support_nested_variables=no
3021fi
3022fi
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3024$as_echo "$am_cv_make_support_nested_variables" >&6; }
3025if test $am_cv_make_support_nested_variables = yes; then
3026 AM_V='$(V)'
3027 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3028else
3029 AM_V=$AM_DEFAULT_VERBOSITY
3030 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3031fi
3032AM_BACKSLASH='\'
3033
3034if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036 # is not polluted with repeated "-I."
3037 am__isrc=' -I$(srcdir)'
3038 # test to see if srcdir already configured
3039 if test -f $srcdir/config.status; then
3040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041 fi
3042fi
3043
3044# test whether we have cygpath
3045if test -z "$CYGPATH_W"; then
3046 if (cygpath --version) >/dev/null 2>/dev/null; then
3047 CYGPATH_W='cygpath -w'
3048 else
3049 CYGPATH_W=echo
3050 fi
3051fi
3052
3053
3054# Define the identity of the package.
3055 PACKAGE='cycript'
3056 VERSION='0.9'
3057
3058
3059cat >>confdefs.h <<_ACEOF
3060#define PACKAGE "$PACKAGE"
3061_ACEOF
3062
3063
3064cat >>confdefs.h <<_ACEOF
3065#define VERSION "$VERSION"
3066_ACEOF
3067
3068# Some tools Automake needs.
3069
3070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084# For better backward compatibility. To be removed once Automake 1.9.x
3085# dies out for good. For more background, see:
3086# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3087# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3088mkdir_p='$(MKDIR_P)'
3089
795230e5
JF
3090# We need awk for the "check" target (and possibly the TAP driver). The
3091# system "awk" is bad on some platforms.
66170b30
JF
3092# Always define AMTAR for backward compatibility. Yes, it's still used
3093# in the wild :-( We should find a proper way to deprecate it ...
3094AMTAR='$${TAR-tar}'
3095
a93f15c0
JF
3096
3097# We'll loop over all known methods to create a tar archive until one works.
3098_am_tools='gnutar pax cpio none'
3099
66170b30
JF
3100am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3101
3102
3103
3104
3105
66170b30 3106
a93f15c0
JF
3107# POSIX will say in a future version that running "rm -f" with no argument
3108# is OK; and we want to be able to make that assumption in our Makefile
3109# recipes. So use an aggressive probe to check that the usage we want is
3110# actually supported "in the wild" to an acceptable degree.
3111# See automake bug#10828.
3112# To make any issue more visible, cause the running configure to be aborted
3113# by default if the 'rm' program in use doesn't match our expectations; the
3114# user can still override this though.
3115if rm -f && rm -fr && rm -rf; then : OK; else
3116 cat >&2 <<'END'
3117Oops!
3118
3119Your 'rm' program seems unable to run without file operands specified
3120on the command line, even when the '-f' option is present. This is contrary
3121to the behaviour of most rm programs out there, and not conforming with
3122the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123
3124Please tell bug-automake@gnu.org about your system, including the value
3125of your $PATH and any error possibly output before this message. This
3126can help us improve future automake versions.
3127
3128END
3129 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130 echo 'Configuration will proceed anyway, since you have set the' >&2
3131 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132 echo >&2
3133 else
3134 cat >&2 <<'END'
3135Aborting the configuration process, to ensure you take notice of the issue.
3136
3137You can download and install GNU coreutils to get an 'rm' implementation
3138that behaves properly: <http://www.gnu.org/software/coreutils/>.
3139
3140If you want to complete the configuration process using your problematic
3141'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142to "yes", and re-run configure.
3143
3144END
3145 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146 fi
3147fi
3148
795230e5 3149
babf7fe8
JF
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3151$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3152 # Check whether --enable-maintainer-mode was given.
3153if test "${enable_maintainer_mode+set}" = set; then :
3154 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3155else
3156 USE_MAINTAINER_MODE=no
3157fi
3158
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3160$as_echo "$USE_MAINTAINER_MODE" >&6; }
3161 if test $USE_MAINTAINER_MODE = yes; then
3162 MAINTAINER_MODE_TRUE=
3163 MAINTAINER_MODE_FALSE='#'
3164else
3165 MAINTAINER_MODE_TRUE='#'
3166 MAINTAINER_MODE_FALSE=
3167fi
3168
3169 MAINT=$MAINTAINER_MODE_TRUE
3170
3171
3172
a93f15c0
JF
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3180set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3183if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3184 $as_echo_n "(cached) " >&6
3185else
a93f15c0
JF
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200done
3201 done
3202IFS=$as_save_IFS
3203
3204fi
3205fi
a93f15c0
JF
3206CC=$ac_cv_prog_CC
3207if test -n "$CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209$as_echo "$CC" >&6; }
35fa52c0
DWT
3210else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
3214
3215
35fa52c0 3216fi
a93f15c0
JF
3217if test -z "$ac_cv_prog_CC"; then
3218 ac_ct_CC=$CC
3219 # Extract the first word of "gcc", so it can be a program name with args.
3220set dummy gcc; ac_word=$2
35fa52c0
DWT
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3223if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3224 $as_echo_n "(cached) " >&6
3225else
a93f15c0
JF
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3236 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240done
3241 done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
a93f15c0
JF
3246ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247if test -n "$ac_ct_CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3250else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
a93f15c0
JF
3255 if test "x$ac_ct_CC" = x; then
3256 CC=""
35fa52c0
DWT
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259yes:)
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262ac_tool_warned=yes ;;
3263esac
a93f15c0 3264 CC=$ac_ct_CC
35fa52c0 3265 fi
a93f15c0
JF
3266else
3267 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3268fi
3269
a93f15c0
JF
3270if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3273set dummy ${ac_tool_prefix}cc; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}cc"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
a243b558 3292 fi
35fa52c0 3293done
a93f15c0
JF
3294 done
3295IFS=$as_save_IFS
35fa52c0 3296
a93f15c0
JF
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
3303else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
35fa52c0 3307
35fa52c0 3308
a93f15c0
JF
3309 fi
3310fi
3311if test -z "$CC"; then
3312 # Extract the first word of "cc", so it can be a program name with args.
3313set dummy cc; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if ${ac_cv_prog_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322 ac_prog_rejected=no
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
35fa52c0 3325do
a93f15c0
JF
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3331 ac_prog_rejected=yes
3332 continue
3333 fi
3334 ac_cv_prog_CC="cc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338done
3339 done
3340IFS=$as_save_IFS
3341
3342if test $ac_prog_rejected = yes; then
3343 # We found a bogon in the path, so make sure we never use it.
3344 set dummy $ac_cv_prog_CC
3345 shift
3346 if test $# != 0; then
3347 # We chose a different compiler from the bogus one.
3348 # However, it has the same basename, so the bogon will be chosen
3349 # first if we set CC to just the basename; use the full file name.
3350 shift
3351 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3352 fi
3353fi
3354fi
3355fi
3356CC=$ac_cv_prog_CC
3357if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359$as_echo "$CC" >&6; }
3360else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362$as_echo "no" >&6; }
3363fi
3364
3365
3366fi
3367if test -z "$CC"; then
3368 if test -n "$ac_tool_prefix"; then
3369 for ac_prog in cl.exe
3370 do
3371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if ${ac_cv_prog_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377else
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392done
3393 done
3394IFS=$as_save_IFS
3395
3396fi
3397fi
3398CC=$ac_cv_prog_CC
3399if test -n "$CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401$as_echo "$CC" >&6; }
3402else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407
3408 test -n "$CC" && break
3409 done
3410fi
3411if test -z "$CC"; then
3412 ac_ct_CC=$CC
3413 for ac_prog in cl.exe
3414do
3415 # Extract the first word of "$ac_prog", so it can be a program name with args.
3416set dummy $ac_prog; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if ${ac_cv_prog_ac_ct_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_ac_ct_CC="$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436done
3437 done
3438IFS=$as_save_IFS
3439
3440fi
3441fi
3442ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445$as_echo "$ac_ct_CC" >&6; }
3446else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448$as_echo "no" >&6; }
3449fi
3450
3451
3452 test -n "$ac_ct_CC" && break
3453done
3454
3455 if test "x$ac_ct_CC" = x; then
3456 CC=""
3457 else
3458 case $cross_compiling:$ac_tool_warned in
3459yes:)
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462ac_tool_warned=yes ;;
3463esac
3464 CC=$ac_ct_CC
3465 fi
3466fi
3467
3468fi
3469
3470
3471test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error $? "no acceptable C compiler found in \$PATH
3474See \`config.log' for more details" "$LINENO" 5; }
3475
3476# Provide some information about the compiler.
3477$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3478set X $ac_compile
3479ac_compiler=$2
3480for ac_option in --version -v -V -qversion; do
3481 { { ac_try="$ac_compiler $ac_option >&5"
3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3489 ac_status=$?
3490 if test -s conftest.err; then
3491 sed '10a\
3492... rest of stderr output deleted ...
3493 10q' conftest.err >conftest.er1
3494 cat conftest.er1 >&5
3495 fi
3496 rm -f conftest.er1 conftest.err
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3499done
3500
3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h. */
3503
3504int
3505main ()
3506{
3507
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512ac_clean_files_save=$ac_clean_files
3513ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3514# Try to create an executable without -o first, disregard a.out.
3515# It will help us diagnose broken compilers, and finding out an intuition
3516# of exeext.
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3518$as_echo_n "checking whether the C compiler works... " >&6; }
3519ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3520
3521# The possible output files:
3522ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3523
3524ac_rmfiles=
3525for ac_file in $ac_files
3526do
3527 case $ac_file in
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3529 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3530 esac
3531done
35fa52c0
DWT
3532rm -f $ac_rmfiles
3533
3534if { { ac_try="$ac_link_default"
3535case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540$as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_link_default") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
3545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3546# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3547# in a Makefile. We should not override ac_cv_exeext if it was cached,
3548# so that the user can short-circuit this test for compilers unknown to
3549# Autoconf.
3550for ac_file in $ac_files ''
3551do
3552 test -f "$ac_file" || continue
3553 case $ac_file in
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3555 ;;
3556 [ab].out )
3557 # We found the default executable, but exeext='' is most
3558 # certainly right.
3559 break;;
3560 *.* )
3561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3562 then :; else
3563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 fi
3565 # We set ac_cv_exeext here because the later test for it is not
3566 # safe: cross compilers may not add the suffix if given an `-o'
3567 # argument, so we may need to know it at that point already.
3568 # Even if this section looks crufty: it has the advantage of
3569 # actually working.
3570 break;;
3571 * )
3572 break;;
3573 esac
3574done
3575test "$ac_cv_exeext" = no && ac_cv_exeext=
3576
3577else
3578 ac_file=''
3579fi
35fa52c0 3580if test -z "$ac_file"; then :
9c60689e
DWT
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3588as_fn_error 77 "C compiler cannot create executables
ee134472 3589See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3590else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592$as_echo "yes" >&6; }
35fa52c0 3593fi
a93f15c0
JF
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3595$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3597$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3598ac_exeext=$ac_cv_exeext
3599
9c60689e 3600rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3601ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3603$as_echo_n "checking for suffix of executables... " >&6; }
3604if { { ac_try="$ac_link"
3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
3615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3616# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3617# work properly (i.e., refer to `conftest.exe'), while it won't with
3618# `rm'.
3619for ac_file in conftest.exe conftest conftest.*; do
3620 test -f "$ac_file" || continue
3621 case $ac_file in
3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 break;;
3625 * ) break;;
3626 esac
3627done
3628else
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3631as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3632See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3633fi
9c60689e 3634rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3636$as_echo "$ac_cv_exeext" >&6; }
3637
3638rm -f conftest.$ac_ext
3639EXEEXT=$ac_cv_exeext
3640ac_exeext=$EXEEXT
9c60689e
DWT
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643#include <stdio.h>
3644int
3645main ()
3646{
3647FILE *f = fopen ("conftest.out", "w");
3648 return ferror (f) || fclose (f) != 0;
3649
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654ac_clean_files="$ac_clean_files conftest.out"
3655# Check that the compiler produces executables we can run. If not, either
3656# the compiler is broken, or we cross compile.
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3658$as_echo_n "checking whether we are cross compiling... " >&6; }
3659if test "$cross_compiling" != yes; then
3660 { { ac_try="$ac_link"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }
3671 if { ac_try='./conftest$ac_cv_exeext'
3672 { { case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677$as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_try") 2>&5
3679 ac_status=$?
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }; }; then
3682 cross_compiling=no
3683 else
3684 if test "$cross_compiling" = maybe; then
3685 cross_compiling=yes
3686 else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3689as_fn_error $? "cannot run C compiled programs.
9c60689e 3690If you meant to cross compile, use \`--host'.
ee134472 3691See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3692 fi
3693 fi
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3696$as_echo "$cross_compiling" >&6; }
3697
3698rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3699ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3701$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3702if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3703 $as_echo_n "(cached) " >&6
3704else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h. */
3707
3708int
3709main ()
3710{
3711
3712 ;
3713 return 0;
3714}
3715_ACEOF
3716rm -f conftest.o conftest.obj
3717if { { ac_try="$ac_compile"
3718case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721esac
3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723$as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_compile") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 for ac_file in conftest.o conftest.obj conftest.*; do
3729 test -f "$ac_file" || continue;
3730 case $ac_file in
3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3732 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3733 break;;
3734 esac
3735done
3736else
3737 $as_echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3742as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3743See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3744fi
3745rm -f conftest.$ac_cv_objext conftest.$ac_ext
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3748$as_echo "$ac_cv_objext" >&6; }
3749OBJEXT=$ac_cv_objext
3750ac_objext=$OBJEXT
a93f15c0
JF
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3752$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3753if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3754 $as_echo_n "(cached) " >&6
3755else
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h. */
3758
3759int
3760main ()
3761{
3762#ifndef __GNUC__
3763 choke me
3764#endif
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
a93f15c0 3770if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3771 ac_compiler_gnu=yes
3772else
3773 ac_compiler_gnu=no
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3776ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3777
3778fi
a93f15c0
JF
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3780$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3781if test $ac_compiler_gnu = yes; then
a93f15c0 3782 GCC=yes
35fa52c0 3783else
a93f15c0 3784 GCC=
35fa52c0 3785fi
a93f15c0
JF
3786ac_test_CFLAGS=${CFLAGS+set}
3787ac_save_CFLAGS=$CFLAGS
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3789$as_echo_n "checking whether $CC accepts -g... " >&6; }
3790if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3791 $as_echo_n "(cached) " >&6
3792else
a93f15c0
JF
3793 ac_save_c_werror_flag=$ac_c_werror_flag
3794 ac_c_werror_flag=yes
3795 ac_cv_prog_cc_g=no
3796 CFLAGS="-g"
35fa52c0
DWT
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h. */
3799
3800int
3801main ()
3802{
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
a93f15c0
JF
3808if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_prog_cc_g=yes
35fa52c0 3810else
a93f15c0 3811 CFLAGS=""
35fa52c0
DWT
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h. */
3814
3815int
3816main ()
3817{
3818
3819 ;
3820 return 0;
3821}
3822_ACEOF
a93f15c0 3823if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3824
3825else
a93f15c0
JF
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3827 CFLAGS="-g"
35fa52c0
DWT
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h. */
3830
3831int
3832main ()
3833{
3834
3835 ;
3836 return 0;
3837}
3838_ACEOF
a93f15c0
JF
3839if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843fi
3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845fi
3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3847 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3848fi
a93f15c0
JF
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3850$as_echo "$ac_cv_prog_cc_g" >&6; }
3851if test "$ac_test_CFLAGS" = set; then
3852 CFLAGS=$ac_save_CFLAGS
3853elif test $ac_cv_prog_cc_g = yes; then
3854 if test "$GCC" = yes; then
3855 CFLAGS="-g -O2"
35fa52c0 3856 else
a93f15c0 3857 CFLAGS="-g"
35fa52c0
DWT
3858 fi
3859else
a93f15c0
JF
3860 if test "$GCC" = yes; then
3861 CFLAGS="-O2"
35fa52c0 3862 else
a93f15c0 3863 CFLAGS=
35fa52c0
DWT
3864 fi
3865fi
a93f15c0
JF
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3867$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3868if ${ac_cv_prog_cc_c89+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870else
3871 ac_cv_prog_cc_c89=no
3872ac_save_CC=$CC
3873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875#include <stdarg.h>
3876#include <stdio.h>
3877struct stat;
3878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3879struct buf { int x; };
3880FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881static char *e (p, i)
3882 char **p;
3883 int i;
3884{
3885 return p[i];
3886}
3887static char *f (char * (*g) (char **, int), char **p, ...)
3888{
3889 char *s;
3890 va_list v;
3891 va_start (v,p);
3892 s = g (p, va_arg (v,int));
3893 va_end (v);
3894 return s;
3895}
3896
3897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3898 function prototypes and stuff, but not '\xHH' hex character constants.
3899 These don't provoke an error unfortunately, instead are silently treated
3900 as 'x'. The following induces an error, until -std is added to get
3901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3902 array size at least. It's necessary to write '\x00'==0 to get something
3903 that's true only with -std. */
3904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
3906/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907 inside strings and character constants. */
3908#define FOO(x) 'x'
3909int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
3911int test (int i, double x);
3912struct s1 {int (*f) (int a);};
3913struct s2 {int (*f) (double a);};
3914int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915int argc;
3916char **argv;
3917int
3918main ()
3919{
3920return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 ;
3922 return 0;
3923}
3924_ACEOF
3925for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927do
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c89=$ac_arg
3931fi
3932rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
3937
3938fi
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c89" in
3941 x)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951esac
3952if test "x$ac_cv_prog_cc_c89" != xno; then :
3953
3954fi
3955
3956ac_ext=c
3957ac_cpp='$CPP $CPPFLAGS'
3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3968$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3969if ${am_cv_prog_cc_c_o+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971else
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h. */
3974
3975int
3976main ()
3977{
3978
3979 ;
3980 return 0;
3981}
3982_ACEOF
3983 # Make sure it works both with $CC and with simple cc.
3984 # Following AC_PROG_CC_C_O, we do the test twice because some
3985 # compilers refuse to overwrite an existing .o file with -o,
3986 # though they will create one.
3987 am_cv_prog_cc_c_o=yes
3988 for am_i in 1 2; do
3989 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3990 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } \
3994 && test -f conftest2.$ac_objext; then
3995 : OK
3996 else
3997 am_cv_prog_cc_c_o=no
3998 break
3999 fi
4000 done
4001 rm -f core conftest*
4002 unset am_i
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4005$as_echo "$am_cv_prog_cc_c_o" >&6; }
4006if test "$am_cv_prog_cc_c_o" != yes; then
4007 # Losing compiler, so override with the script.
4008 # FIXME: It is wrong to rewrite CC.
4009 # But if we don't then we get into trouble of one sort or another.
4010 # A longer-term fix would be to have automake use am__CC in this case,
4011 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4012 CC="$am_aux_dir/compile $CC"
4013fi
a243b558
JF
4014ac_ext=c
4015ac_cpp='$CPP $CPPFLAGS'
4016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4019
a243b558 4020DEPDIR="${am__leading_dot}deps"
35fa52c0 4021
a243b558 4022ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4023
35fa52c0 4024
a243b558
JF
4025am_make=${MAKE-make}
4026cat > confinc << 'END'
4027am__doit:
4028 @echo this is the am__doit target
4029.PHONY: am__doit
4030END
4031# If we don't find an include directive, just comment out the code.
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4033$as_echo_n "checking for style of include used by $am_make... " >&6; }
4034am__include="#"
4035am__quote=
4036_am_result=none
4037# First try GNU make style include.
4038echo "include confinc" > confmf
4039# Ignore all kinds of additional output from 'make'.
4040case `$am_make -s -f confmf 2> /dev/null` in #(
4041*the\ am__doit\ target*)
4042 am__include=include
4043 am__quote=
4044 _am_result=GNU
4045 ;;
4046esac
4047# Now try BSD make style include.
4048if test "$am__include" = "#"; then
4049 echo '.include "confinc"' > confmf
4050 case `$am_make -s -f confmf 2> /dev/null` in #(
4051 *the\ am__doit\ target*)
4052 am__include=.include
4053 am__quote="\""
4054 _am_result=BSD
4055 ;;
4056 esac
35fa52c0 4057fi
35fa52c0 4058
a243b558
JF
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4061$as_echo "$_am_result" >&6; }
4062rm -f confinc confmf
4063
4064# Check whether --enable-dependency-tracking was given.
4065if test "${enable_dependency_tracking+set}" = set; then :
4066 enableval=$enable_dependency_tracking;
35fa52c0 4067fi
35fa52c0 4068
a243b558
JF
4069if test "x$enable_dependency_tracking" != xno; then
4070 am_depcomp="$ac_aux_dir/depcomp"
4071 AMDEPBACKSLASH='\'
4072 am__nodep='_no'
4073fi
4074 if test "x$enable_dependency_tracking" != xno; then
4075 AMDEP_TRUE=
4076 AMDEP_FALSE='#'
4077else
4078 AMDEP_TRUE='#'
4079 AMDEP_FALSE=
35fa52c0
DWT
4080fi
4081
35fa52c0 4082
a243b558 4083
a93f15c0 4084depcc="$CC" am_compiler_list=
66170b30
JF
4085
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4087$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4088if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4089 $as_echo_n "(cached) " >&6
4090else
4091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4092 # We make a subdir and do the tests there. Otherwise we can end up
4093 # making bogus files that we don't know about and never remove. For
4094 # instance it was reported that on HP-UX the gcc test will end up
4095 # making a dummy file named 'D' -- because '-MD' means "put the output
4096 # in D".
4097 rm -rf conftest.dir
4098 mkdir conftest.dir
4099 # Copy depcomp to subdir because otherwise we won't find it if we're
4100 # using a relative directory.
4101 cp "$am_depcomp" conftest.dir
4102 cd conftest.dir
4103 # We will build objects and dependencies in a subdirectory because
4104 # it helps to detect inapplicable dependency modes. For instance
4105 # both Tru64's cc and ICC support -MD to output dependencies as a
4106 # side effect of compilation, but ICC will put the dependencies in
4107 # the current directory while Tru64 will put them in the object
4108 # directory.
4109 mkdir sub
4110
a93f15c0 4111 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4112 if test "$am_compiler_list" = ""; then
4113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 fi
4115 am__universal=false
4116 case " $depcc " in #(
4117 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4118 esac
4119
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4124 #
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4128 : > sub/conftest.c
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4132 # Solaris 10 /bin/sh.
4133 echo '/* dummy */' > sub/conftst$i.h
4134 done
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136
4137 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4138 # mode. It turns out that the SunPro C++ compiler does not properly
4139 # handle '-M -o', and we need to detect this. Also, some Intel
4140 # versions had trouble with output in subdirs.
4141 am__obj=sub/conftest.${OBJEXT-o}
4142 am__minus_obj="-o $am__obj"
4143 case $depmode in
4144 gcc)
4145 # This depmode causes a compiler race in universal mode.
4146 test "$am__universal" = false || continue
4147 ;;
4148 nosideeffect)
4149 # After this tag, mechanisms are not by side-effect, so they'll
4150 # only be used when explicitly requested.
4151 if test "x$enable_dependency_tracking" = xyes; then
4152 continue
4153 else
4154 break
4155 fi
4156 ;;
4157 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4158 # This compiler won't grok '-c -o', but also, the minuso test has
4159 # not run yet. These depmodes are late enough in the game, and
4160 # so weak that their functioning should not be impacted.
4161 am__obj=conftest.${OBJEXT-o}
4162 am__minus_obj=
4163 ;;
4164 none) break ;;
4165 esac
4166 if depmode=$depmode \
4167 source=sub/conftest.c object=$am__obj \
4168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4170 >/dev/null 2>conftest.err &&
4171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4175 # icc doesn't choke on unknown options, it will just issue warnings
4176 # or remarks (even with -Werror). So we grep stderr for any message
4177 # that says an option was ignored or not supported.
4178 # When given -MP, icc 7.0 and 7.1 complain thusly:
4179 # icc: Command line warning: ignoring option '-M'; no argument required
4180 # The diagnosis changed in icc 8.0:
4181 # icc: Command line remark: option '-MP' not supported
4182 if (grep 'ignoring option' conftest.err ||
4183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4184 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4185 break
4186 fi
4187 fi
4188 done
4189
4190 cd ..
4191 rm -rf conftest.dir
4192else
a93f15c0 4193 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4194fi
4195
4196fi
a93f15c0
JF
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4198$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4199CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4200
4201 if
4202 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4204 am__fastdepCC_TRUE=
4205 am__fastdepCC_FALSE='#'
66170b30 4206else
a93f15c0
JF
4207 am__fastdepCC_TRUE='#'
4208 am__fastdepCC_FALSE=
66170b30
JF
4209fi
4210
4211
a93f15c0
JF
4212ac_ext=cpp
4213ac_cpp='$CXXCPP $CPPFLAGS'
4214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4217if test -z "$CXX"; then
4218 if test -n "$CCC"; then
4219 CXX=$CCC
4220 else
4221 if test -n "$ac_tool_prefix"; then
4222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4223 do
4224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4228if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4229 $as_echo_n "(cached) " >&6
4230else
a93f15c0
JF
4231 if test -n "$CXX"; then
4232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
35fa52c0
DWT
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245done
9c60689e
DWT
4246 done
4247IFS=$as_save_IFS
35fa52c0 4248
9c60689e 4249fi
a243b558 4250fi
a93f15c0
JF
4251CXX=$ac_cv_prog_CXX
4252if test -n "$CXX"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4254$as_echo "$CXX" >&6; }
a243b558
JF
4255else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258fi
35fa52c0 4259
35fa52c0 4260
a93f15c0 4261 test -n "$CXX" && break
a243b558
JF
4262 done
4263fi
a93f15c0
JF
4264if test -z "$CXX"; then
4265 ac_ct_CXX=$CXX
4266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4267do
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269set dummy $ac_prog; ac_word=$2
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4272if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4273 $as_echo_n "(cached) " >&6
4274else
a93f15c0
JF
4275 if test -n "$ac_ct_CXX"; then
4276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
9c60689e
DWT
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
9c60689e 4283 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4285 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289done
9c60689e
DWT
4290 done
4291IFS=$as_save_IFS
a243b558
JF
4292
4293fi
4294fi
a93f15c0
JF
4295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4296if test -n "$ac_ct_CXX"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4298$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4299else
a243b558
JF
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
9c60689e 4302fi
6b66678a
DWT
4303
4304
a93f15c0 4305 test -n "$ac_ct_CXX" && break
a243b558 4306done
6b66678a 4307
a93f15c0
JF
4308 if test "x$ac_ct_CXX" = x; then
4309 CXX="g++"
a243b558
JF
4310 else
4311 case $cross_compiling:$ac_tool_warned in
4312yes:)
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315ac_tool_warned=yes ;;
9c60689e 4316esac
a93f15c0 4317 CXX=$ac_ct_CXX
9c60689e 4318 fi
9c60689e 4319fi
6b66678a 4320
a93f15c0
JF
4321 fi
4322fi
a243b558 4323# Provide some information about the compiler.
a93f15c0 4324$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4325set X $ac_compile
4326ac_compiler=$2
4327for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334$as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336 ac_status=$?
4337 if test -s conftest.err; then
4338 sed '10a\
4339... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4342 fi
4343 rm -f conftest.er1 conftest.err
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346done
6b66678a 4347
a93f15c0
JF
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4349$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4350if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4351 $as_echo_n "(cached) " >&6
6b66678a 4352else
a243b558
JF
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h. */
6b66678a 4355
a243b558
JF
4356int
4357main ()
4358{
4359#ifndef __GNUC__
4360 choke me
4361#endif
4362
4363 ;
4364 return 0;
4365}
4366_ACEOF
a93f15c0 4367if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4368 ac_compiler_gnu=yes
9c60689e 4369else
a243b558 4370 ac_compiler_gnu=no
6b66678a 4371fi
a243b558 4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4373ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4374
4375fi
a93f15c0
JF
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4377$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4378if test $ac_compiler_gnu = yes; then
a93f15c0 4379 GXX=yes
a243b558 4380else
a93f15c0 4381 GXX=
a243b558 4382fi
a93f15c0
JF
4383ac_test_CXXFLAGS=${CXXFLAGS+set}
4384ac_save_CXXFLAGS=$CXXFLAGS
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4386$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4387if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4388 $as_echo_n "(cached) " >&6
4389else
a93f15c0
JF
4390 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4391 ac_cxx_werror_flag=yes
4392 ac_cv_prog_cxx_g=no
4393 CXXFLAGS="-g"
a243b558
JF
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h. */
309b0535 4396
a243b558
JF
4397int
4398main ()
4399{
309b0535 4400
a243b558
JF
4401 ;
4402 return 0;
4403}
4404_ACEOF
a93f15c0
JF
4405if ac_fn_cxx_try_compile "$LINENO"; then :
4406 ac_cv_prog_cxx_g=yes
a243b558 4407else
a93f15c0 4408 CXXFLAGS=""
a243b558
JF
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h. */
309b0535 4411
a243b558
JF
4412int
4413main ()
4414{
309b0535 4415
a243b558
JF
4416 ;
4417 return 0;
4418}
4419_ACEOF
a93f15c0 4420if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4421
a243b558 4422else
a93f15c0
JF
4423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4424 CXXFLAGS="-g"
a243b558
JF
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h. */
309b0535 4427
a243b558
JF
4428int
4429main ()
4430{
309b0535 4431
a243b558
JF
4432 ;
4433 return 0;
4434}
4435_ACEOF
a93f15c0
JF
4436if ac_fn_cxx_try_compile "$LINENO"; then :
4437 ac_cv_prog_cxx_g=yes
9c60689e 4438fi
a243b558 4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
a93f15c0 4444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4445fi
a93f15c0
JF
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4447$as_echo "$ac_cv_prog_cxx_g" >&6; }
4448if test "$ac_test_CXXFLAGS" = set; then
4449 CXXFLAGS=$ac_save_CXXFLAGS
4450elif test $ac_cv_prog_cxx_g = yes; then
4451 if test "$GXX" = yes; then
4452 CXXFLAGS="-g -O2"
a243b558 4453 else
a93f15c0 4454 CXXFLAGS="-g"
a243b558 4455 fi
9c60689e 4456else
a93f15c0
JF
4457 if test "$GXX" = yes; then
4458 CXXFLAGS="-O2"
a243b558 4459 else
a93f15c0 4460 CXXFLAGS=
a243b558 4461 fi
9c60689e 4462fi
a243b558
JF
4463ac_ext=c
4464ac_cpp='$CPP $CPPFLAGS'
4465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4468
a93f15c0 4469depcc="$CXX" am_compiler_list=
309b0535 4470
a243b558
JF
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4472$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4473if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4474 $as_echo_n "(cached) " >&6
4475else
4476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477 # We make a subdir and do the tests there. Otherwise we can end up
4478 # making bogus files that we don't know about and never remove. For
4479 # instance it was reported that on HP-UX the gcc test will end up
4480 # making a dummy file named 'D' -- because '-MD' means "put the output
4481 # in D".
4482 rm -rf conftest.dir
4483 mkdir conftest.dir
4484 # Copy depcomp to subdir because otherwise we won't find it if we're
4485 # using a relative directory.
4486 cp "$am_depcomp" conftest.dir
4487 cd conftest.dir
4488 # We will build objects and dependencies in a subdirectory because
4489 # it helps to detect inapplicable dependency modes. For instance
4490 # both Tru64's cc and ICC support -MD to output dependencies as a
4491 # side effect of compilation, but ICC will put the dependencies in
4492 # the current directory while Tru64 will put them in the object
4493 # directory.
4494 mkdir sub
309b0535 4495
a93f15c0 4496 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4497 if test "$am_compiler_list" = ""; then
4498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4499 fi
4500 am__universal=false
a93f15c0
JF
4501 case " $depcc " in #(
4502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503 esac
9c60689e 4504
a243b558
JF
4505 for depmode in $am_compiler_list; do
4506 # Setup a source with many dependencies, because some compilers
4507 # like to wrap large dependency lists on column 80 (with \), and
4508 # we should not choose a depcomp mode which is confused by this.
4509 #
4510 # We need to recreate these files for each test, as the compiler may
4511 # overwrite some of them when testing with obscure command lines.
4512 # This happens at least with the AIX C compiler.
4513 : > sub/conftest.c
4514 for i in 1 2 3 4 5 6; do
4515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517 # Solaris 10 /bin/sh.
4518 echo '/* dummy */' > sub/conftst$i.h
4519 done
4520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4521
a243b558
JF
4522 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle '-M -o', and we need to detect this. Also, some Intel
4525 # versions had trouble with output in subdirs.
4526 am__obj=sub/conftest.${OBJEXT-o}
4527 am__minus_obj="-o $am__obj"
4528 case $depmode in
4529 gcc)
4530 # This depmode causes a compiler race in universal mode.
4531 test "$am__universal" = false || continue
4532 ;;
4533 nosideeffect)
4534 # After this tag, mechanisms are not by side-effect, so they'll
4535 # only be used when explicitly requested.
4536 if test "x$enable_dependency_tracking" = xyes; then
4537 continue
4538 else
4539 break
309b0535 4540 fi
a243b558
JF
4541 ;;
4542 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543 # This compiler won't grok '-c -o', but also, the minuso test has
4544 # not run yet. These depmodes are late enough in the game, and
4545 # so weak that their functioning should not be impacted.
4546 am__obj=conftest.${OBJEXT-o}
4547 am__minus_obj=
4548 ;;
4549 none) break ;;
4550 esac
4551 if depmode=$depmode \
4552 source=sub/conftest.c object=$am__obj \
4553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555 >/dev/null 2>conftest.err &&
4556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560 # icc doesn't choke on unknown options, it will just issue warnings
4561 # or remarks (even with -Werror). So we grep stderr for any message
4562 # that says an option was ignored or not supported.
4563 # When given -MP, icc 7.0 and 7.1 complain thusly:
4564 # icc: Command line warning: ignoring option '-M'; no argument required
4565 # The diagnosis changed in icc 8.0:
4566 # icc: Command line remark: option '-MP' not supported
4567 if (grep 'ignoring option' conftest.err ||
4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4569 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4570 break
4571 fi
4572 fi
309b0535 4573 done
a243b558
JF
4574
4575 cd ..
4576 rm -rf conftest.dir
4577else
a93f15c0 4578 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4579fi
a243b558 4580
9c60689e 4581fi
a93f15c0
JF
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4583$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4584CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4585
4586 if
4587 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4588 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4589 am__fastdepCXX_TRUE=
4590 am__fastdepCXX_FALSE='#'
9c60689e 4591else
a93f15c0
JF
4592 am__fastdepCXX_TRUE='#'
4593 am__fastdepCXX_FALSE=
a243b558
JF
4594fi
4595
4596
a93f15c0
JF
4597ac_ext=mm
4598ac_cpp='$OBJCXXCPP $CPPFLAGS'
4599ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4602if test -n "$ac_tool_prefix"; then
a93f15c0 4603 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4609if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4610 $as_echo_n "(cached) " >&6
4611else
a93f15c0
JF
4612 if test -n "$OBJCXX"; then
4613 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4622 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
9c60689e 4625 fi
a243b558
JF
4626done
4627 done
4628IFS=$as_save_IFS
9c60689e 4629
a243b558
JF
4630fi
4631fi
a93f15c0
JF
4632OBJCXX=$ac_cv_prog_OBJCXX
4633if test -n "$OBJCXX"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4635$as_echo "$OBJCXX" >&6; }
35fa52c0 4636else
a243b558
JF
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
35fa52c0 4639fi
9c60689e 4640
a243b558 4641
a93f15c0 4642 test -n "$OBJCXX" && break
a243b558
JF
4643 done
4644fi
a93f15c0
JF
4645if test -z "$OBJCXX"; then
4646 ac_ct_OBJCXX=$OBJCXX
4647 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4653if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4654 $as_echo_n "(cached) " >&6
4655else
a93f15c0
JF
4656 if test -n "$ac_ct_OBJCXX"; then
4657 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4666 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671 done
4672IFS=$as_save_IFS
9c60689e 4673
a243b558
JF
4674fi
4675fi
a93f15c0
JF
4676ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4677if test -n "$ac_ct_OBJCXX"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4679$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4680else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
35fa52c0 4684
35fa52c0 4685
a93f15c0 4686 test -n "$ac_ct_OBJCXX" && break
a243b558 4687done
35fa52c0 4688
a93f15c0
JF
4689 if test "x$ac_ct_OBJCXX" = x; then
4690 OBJCXX="g++"
a243b558
JF
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
a93f15c0 4698 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4699 fi
4700fi
ee134472 4701
a243b558 4702# Provide some information about the compiler.
a93f15c0 4703$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4704set X $ac_compile
4705ac_compiler=$2
4706for ac_option in --version -v -V -qversion; do
4707 { { ac_try="$ac_compiler $ac_option >&5"
4708case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
4712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713$as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4715 ac_status=$?
4716 if test -s conftest.err; then
4717 sed '10a\
4718... rest of stderr output deleted ...
4719 10q' conftest.err >conftest.er1
4720 cat conftest.er1 >&5
4721 fi
4722 rm -f conftest.er1 conftest.err
4723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }
4725done
53ba6704 4726
a93f15c0
JF
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4728$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4729if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4730 $as_echo_n "(cached) " >&6
4731else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h. */
35fa52c0 4734
a243b558
JF
4735int
4736main ()
4737{
4738#ifndef __GNUC__
4739 choke me
4740#endif
9c60689e 4741
a243b558
JF
4742 ;
4743 return 0;
4744}
4745_ACEOF
a93f15c0 4746if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4747 ac_compiler_gnu=yes
35fa52c0 4748else
a243b558 4749 ac_compiler_gnu=no
35fa52c0 4750fi
a243b558 4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4752ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4753
a243b558 4754fi
a93f15c0
JF
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4756$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4757if test $ac_compiler_gnu = yes; then
a93f15c0 4758 GOBJCXX=yes
35fa52c0 4759else
a93f15c0 4760 GOBJCXX=
9c60689e 4761fi
a93f15c0
JF
4762ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4763ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4765$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4766if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4767 $as_echo_n "(cached) " >&6
4768else
a93f15c0
JF
4769 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4770 ac_objcxx_werror_flag=yes
4771 ac_cv_prog_objcxx_g=no
4772 OBJCXXFLAGS="-g"
a243b558
JF
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h. */
9c60689e 4775
a243b558
JF
4776int
4777main ()
4778{
9c60689e 4779
a243b558
JF
4780 ;
4781 return 0;
4782}
4783_ACEOF
a93f15c0
JF
4784if ac_fn_objcxx_try_compile "$LINENO"; then :
4785 ac_cv_prog_objcxx_g=yes
a243b558 4786else
a93f15c0 4787 OBJCXXFLAGS=""
a243b558
JF
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h. */
9c60689e 4790
a243b558
JF
4791int
4792main ()
4793{
9c60689e 4794
a243b558
JF
4795 ;
4796 return 0;
4797}
4798_ACEOF
a93f15c0 4799if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4800
a243b558 4801else
a93f15c0
JF
4802 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4803 OBJCXXFLAGS="-g"
a243b558 4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4805/* end confdefs.h. */
4806
a243b558
JF
4807int
4808main ()
4809{
a93f15c0 4810
a243b558
JF
4811 ;
4812 return 0;
4813}
4814_ACEOF
a93f15c0
JF
4815if ac_fn_objcxx_try_compile "$LINENO"; then :
4816 ac_cv_prog_objcxx_g=yes
a243b558 4817fi
a93f15c0 4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4819fi
a93f15c0
JF
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4826$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4827if test "$ac_test_OBJCXXFLAGS" = set; then
4828 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4829elif test $ac_cv_prog_objcxx_g = yes; then
4830 if test "$GOBJCXX" = yes; then
4831 OBJCXXFLAGS="-g -O2"
4832 else
4833 OBJCXXFLAGS="-g"
4834 fi
4835else
4836 if test "$GOBJCXX" = yes; then
4837 OBJCXXFLAGS="-O2"
4838 else
4839 OBJCXXFLAGS=
4840 fi
35fa52c0 4841fi
a243b558
JF
4842ac_ext=c
4843ac_cpp='$CPP $CPPFLAGS'
4844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
a93f15c0 4848depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4849
a243b558
JF
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4851$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4852if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4853 $as_echo_n "(cached) " >&6
4854else
a243b558
JF
4855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4856 # We make a subdir and do the tests there. Otherwise we can end up
4857 # making bogus files that we don't know about and never remove. For
4858 # instance it was reported that on HP-UX the gcc test will end up
4859 # making a dummy file named 'D' -- because '-MD' means "put the output
4860 # in D".
4861 rm -rf conftest.dir
4862 mkdir conftest.dir
4863 # Copy depcomp to subdir because otherwise we won't find it if we're
4864 # using a relative directory.
4865 cp "$am_depcomp" conftest.dir
4866 cd conftest.dir
4867 # We will build objects and dependencies in a subdirectory because
4868 # it helps to detect inapplicable dependency modes. For instance
4869 # both Tru64's cc and ICC support -MD to output dependencies as a
4870 # side effect of compilation, but ICC will put the dependencies in
4871 # the current directory while Tru64 will put them in the object
4872 # directory.
4873 mkdir sub
4874
a93f15c0 4875 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4876 if test "$am_compiler_list" = ""; then
4877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4878 fi
4879 am__universal=false
a93f15c0 4880
a243b558
JF
4881
4882 for depmode in $am_compiler_list; do
4883 # Setup a source with many dependencies, because some compilers
4884 # like to wrap large dependency lists on column 80 (with \), and
4885 # we should not choose a depcomp mode which is confused by this.
4886 #
4887 # We need to recreate these files for each test, as the compiler may
4888 # overwrite some of them when testing with obscure command lines.
4889 # This happens at least with the AIX C compiler.
4890 : > sub/conftest.c
4891 for i in 1 2 3 4 5 6; do
4892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4894 # Solaris 10 /bin/sh.
4895 echo '/* dummy */' > sub/conftst$i.h
4896 done
4897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4898
4899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4900 # mode. It turns out that the SunPro C++ compiler does not properly
4901 # handle '-M -o', and we need to detect this. Also, some Intel
4902 # versions had trouble with output in subdirs.
4903 am__obj=sub/conftest.${OBJEXT-o}
4904 am__minus_obj="-o $am__obj"
4905 case $depmode in
4906 gcc)
4907 # This depmode causes a compiler race in universal mode.
4908 test "$am__universal" = false || continue
4909 ;;
4910 nosideeffect)
4911 # After this tag, mechanisms are not by side-effect, so they'll
4912 # only be used when explicitly requested.
4913 if test "x$enable_dependency_tracking" = xyes; then
4914 continue
4915 else
4916 break
4917 fi
4918 ;;
4919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4920 # This compiler won't grok '-c -o', but also, the minuso test has
4921 # not run yet. These depmodes are late enough in the game, and
4922 # so weak that their functioning should not be impacted.
4923 am__obj=conftest.${OBJEXT-o}
4924 am__minus_obj=
4925 ;;
4926 none) break ;;
4927 esac
4928 if depmode=$depmode \
4929 source=sub/conftest.c object=$am__obj \
4930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4932 >/dev/null 2>conftest.err &&
4933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4937 # icc doesn't choke on unknown options, it will just issue warnings
4938 # or remarks (even with -Werror). So we grep stderr for any message
4939 # that says an option was ignored or not supported.
4940 # When given -MP, icc 7.0 and 7.1 complain thusly:
4941 # icc: Command line warning: ignoring option '-M'; no argument required
4942 # The diagnosis changed in icc 8.0:
4943 # icc: Command line remark: option '-MP' not supported
4944 if (grep 'ignoring option' conftest.err ||
4945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4946 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4947 break
4948 fi
4949 fi
4950 done
9c60689e 4951
a243b558
JF
4952 cd ..
4953 rm -rf conftest.dir
4954else
a93f15c0 4955 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4956fi
a243b558 4957
35fa52c0 4958fi
a93f15c0
JF
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4960$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4961OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4962
4963 if
4964 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4965 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4966 am__fastdepOBJCXX_TRUE=
4967 am__fastdepOBJCXX_FALSE='#'
a243b558 4968else
a93f15c0
JF
4969 am__fastdepOBJCXX_TRUE='#'
4970 am__fastdepOBJCXX_FALSE=
a243b558
JF
4971fi
4972
4973
4974
a93f15c0 4975
a243b558
JF
4976if test -n "$ac_tool_prefix"; then
4977 for ac_prog in ar lib "link -lib"
4978 do
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982$as_echo_n "checking for $ac_word... " >&6; }
4983if ${ac_cv_prog_AR+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985else
4986 if test -n "$AR"; then
4987 ac_cv_prog_AR="$AR" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001 done
5002IFS=$as_save_IFS
5003
5004fi
5005fi
5006AR=$ac_cv_prog_AR
5007if test -n "$AR"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5009$as_echo "$AR" >&6; }
35fa52c0
DWT
5010else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013fi
9c60689e 5014
a243b558
JF
5015
5016 test -n "$AR" && break
5017 done
5018fi
5019if test -z "$AR"; then
5020 ac_ct_AR=$AR
5021 for ac_prog in ar lib "link -lib"
5022do
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024set dummy $ac_prog; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_prog_ac_ct_AR+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029else
5030 if test -n "$ac_ct_AR"; then
5031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_ac_ct_AR="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045 done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050ac_ct_AR=$ac_cv_prog_ac_ct_AR
5051if test -n "$ac_ct_AR"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5053$as_echo "$ac_ct_AR" >&6; }
5054else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060 test -n "$ac_ct_AR" && break
5061done
5062
5063 if test "x$ac_ct_AR" = x; then
5064 AR="false"
9c60689e
DWT
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067yes:)
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070ac_tool_warned=yes ;;
35fa52c0 5071esac
a243b558 5072 AR=$ac_ct_AR
9c60689e 5073 fi
a243b558
JF
5074fi
5075
5076: ${AR=ar}
5077
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5079$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5080if ${am_cv_ar_interface+:} false; then :
5081 $as_echo_n "(cached) " >&6
9c60689e 5082else
a93f15c0
JF
5083 ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088
5089 am_cv_ar_interface=ar
a243b558
JF
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h. */
5092int some_variable = 0;
5093_ACEOF
5094if ac_fn_c_try_compile "$LINENO"; then :
5095 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5097 (eval $am_ar_try) 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }
5101 if test "$ac_status" -eq 0; then
5102 am_cv_ar_interface=ar
5103 else
5104 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5106 (eval $am_ar_try) 2>&5
5107 ac_status=$?
5108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5109 test $ac_status = 0; }
5110 if test "$ac_status" -eq 0; then
5111 am_cv_ar_interface=lib
5112 else
5113 am_cv_ar_interface=unknown
5114 fi
5115 fi
5116 rm -f conftest.lib libconftest.a
5117
35fa52c0 5118fi
a243b558 5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5120 ac_ext=c
5121ac_cpp='$CPP $CPPFLAGS'
5122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5125
a243b558
JF
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5128$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5129
a243b558
JF
5130case $am_cv_ar_interface in
5131ar)
5132 ;;
5133lib)
5134 # Microsoft lib, so override with the ar-lib wrapper script.
5135 # FIXME: It is wrong to rewrite AR.
5136 # But if we don't then we get into trouble of one sort or another.
5137 # A longer-term fix would be to have automake use am__AR in this case,
5138 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5139 # similar.
5140 AR="$am_aux_dir/ar-lib $AR"
5141 ;;
5142unknown)
5143 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5144 ;;
5145esac
35fa52c0 5146
35fa52c0 5147
35fa52c0 5148
a243b558
JF
5149case `pwd` in
5150 *\ * | *\ *)
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5152$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5153esac
35fa52c0
DWT
5154
5155
5156
9d54db95
JF
5157macro_version='2.4.6'
5158macro_revision='2.4.6'
35fa52c0
DWT
5159
5160
5161
5162
5163
5164
5165
5166
5167
35fa52c0 5168
35fa52c0 5169
ee134472 5170
35fa52c0 5171
9d54db95 5172ltmain=$ac_aux_dir/ltmain.sh
35fa52c0 5173
a243b558
JF
5174# Make sure we can run config.sub.
5175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5176 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5177
a243b558
JF
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5179$as_echo_n "checking build system type... " >&6; }
5180if ${ac_cv_build+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182else
5183 ac_build_alias=$build_alias
5184test "x$ac_build_alias" = x &&
5185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5186test "x$ac_build_alias" = x &&
5187 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5189 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5190
a243b558
JF
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5193$as_echo "$ac_cv_build" >&6; }
5194case $ac_cv_build in
5195*-*-*) ;;
5196*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5197esac
5198build=$ac_cv_build
5199ac_save_IFS=$IFS; IFS='-'
5200set x $ac_cv_build
5201shift
5202build_cpu=$1
5203build_vendor=$2
5204shift; shift
5205# Remember, the first character of IFS is used to create $*,
5206# except with old shells:
5207build_os=$*
5208IFS=$ac_save_IFS
5209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5210
35fa52c0 5211
a243b558
JF
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5213$as_echo_n "checking host system type... " >&6; }
5214if ${ac_cv_host+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216else
5217 if test "x$host_alias" = x; then
5218 ac_cv_host=$ac_cv_build
5219else
5220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5221 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5222fi
35fa52c0 5223
a243b558
JF
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5226$as_echo "$ac_cv_host" >&6; }
5227case $ac_cv_host in
5228*-*-*) ;;
5229*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5230esac
5231host=$ac_cv_host
5232ac_save_IFS=$IFS; IFS='-'
5233set x $ac_cv_host
5234shift
5235host_cpu=$1
5236host_vendor=$2
5237shift; shift
5238# Remember, the first character of IFS is used to create $*,
5239# except with old shells:
5240host_os=$*
5241IFS=$ac_save_IFS
5242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5243
9c60689e 5244
a243b558
JF
5245# Backslashify metacharacters that are still active within
5246# double-quoted strings.
5247sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5248
a243b558
JF
5249# Same as above, but do not quote variable references.
5250double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5251
a243b558
JF
5252# Sed substitution to delay expansion of an escaped shell variable in a
5253# double_quote_subst'ed string.
5254delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5255
a243b558
JF
5256# Sed substitution to delay expansion of an escaped single quote.
5257delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5258
a243b558
JF
5259# Sed substitution to avoid accidental globbing in evaled expressions
5260no_glob_subst='s/\*/\\\*/g'
35fa52c0 5261
a243b558
JF
5262ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5263ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5264ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5265
a243b558
JF
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5267$as_echo_n "checking how to print strings... " >&6; }
5268# Test print first, because it will be a builtin if present.
5269if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5270 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5271 ECHO='print -r --'
5272elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5273 ECHO='printf %s\n'
5274else
5275 # Use this function as a fallback that always works.
5276 func_fallback_echo ()
5277 {
5278 eval 'cat <<_LTECHO_EOF
5279$1
5280_LTECHO_EOF'
5281 }
5282 ECHO='func_fallback_echo'
ee134472
JF
5283fi
5284
a243b558
JF
5285# func_echo_all arg...
5286# Invoke $ECHO with all args, space-separated.
5287func_echo_all ()
5288{
5289 $ECHO ""
5290}
35fa52c0 5291
9d54db95 5292case $ECHO in
a243b558
JF
5293 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5294$as_echo "printf" >&6; } ;;
5295 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5296$as_echo "print -r" >&6; } ;;
5297 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5298$as_echo "cat" >&6; } ;;
5299esac
35fa52c0 5300
35fa52c0 5301
ee134472
JF
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
35fa52c0 5312
9c60689e 5313
a243b558
JF
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5315$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5316if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5317 $as_echo_n "(cached) " >&6
5318else
a243b558
JF
5319 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5320 for ac_i in 1 2 3 4 5 6 7; do
5321 ac_script="$ac_script$as_nl$ac_script"
5322 done
5323 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5324 { ac_script=; unset ac_script;}
5325 if test -z "$SED"; then
5326 ac_path_SED_found=false
5327 # Loop through the user's path and test for each of PROGNAME-LIST
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
a243b558 5333 for ac_prog in sed gsed; do
9c60689e 5334 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5335 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5336 as_fn_executable_p "$ac_path_SED" || continue
5337# Check for GNU ac_path_SED and select it if it is found.
5338 # Check for GNU $ac_path_SED
5339case `"$ac_path_SED" --version 2>&1` in
5340*GNU*)
5341 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5342*)
5343 ac_count=0
5344 $as_echo_n 0123456789 >"conftest.in"
5345 while :
5346 do
5347 cat "conftest.in" "conftest.in" >"conftest.tmp"
5348 mv "conftest.tmp" "conftest.in"
5349 cp "conftest.in" "conftest.nl"
5350 $as_echo '' >> "conftest.nl"
5351 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5353 as_fn_arith $ac_count + 1 && ac_count=$as_val
5354 if test $ac_count -gt ${ac_path_SED_max-0}; then
5355 # Best one so far, save it but keep looking for a better one
5356 ac_cv_path_SED="$ac_path_SED"
5357 ac_path_SED_max=$ac_count
5358 fi
5359 # 10*(2^10) chars as input seems more than enough
5360 test $ac_count -gt 10 && break
35fa52c0 5361 done
a243b558
JF
5362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5363esac
9c60689e 5364
a243b558
JF
5365 $ac_path_SED_found && break 3
5366 done
5367 done
9c60689e
DWT
5368 done
5369IFS=$as_save_IFS
a243b558
JF
5370 if test -z "$ac_cv_path_SED"; then
5371 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5372 fi
5373else
a243b558 5374 ac_cv_path_SED=$SED
9c60689e
DWT
5375fi
5376
a243b558
JF
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5379$as_echo "$ac_cv_path_SED" >&6; }
5380 SED="$ac_cv_path_SED"
5381 rm -f conftest.sed
9c60689e 5382
a243b558
JF
5383test -z "$SED" && SED=sed
5384Xsed="$SED -e 1s/^X//"
9c60689e 5385
ee134472 5386
ee134472 5387
9c60689e
DWT
5388
5389
5390
5391
5392
5393
5394
5395
a243b558
JF
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5399 $as_echo_n "(cached) " >&6
5400else
a243b558
JF
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
a243b558 5409 for ac_prog in grep ggrep; do
9c60689e 5410 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p "$ac_path_GREP" || continue
5413# Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415case `"$ac_path_GREP" --version 2>&1` in
5416*GNU*)
5417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5418*)
5419 ac_count=0
5420 $as_echo_n 0123456789 >"conftest.in"
5421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429 as_fn_arith $ac_count + 1 && ac_count=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP="$ac_path_GREP"
5433 ac_path_GREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439esac
9c60689e 5440
a243b558
JF
5441 $ac_path_GREP_found && break 3
5442 done
ee134472 5443 done
a243b558
JF
5444 done
5445IFS=$as_save_IFS
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 fi
5449else
5450 ac_cv_path_GREP=$GREP
9c60689e 5451fi
a243b558
JF
5452
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455$as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP="$ac_cv_path_GREP"
5457
5458
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460$as_echo_n "checking for egrep... " >&6; }
5461if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5462 $as_echo_n "(cached) " >&6
5463else
a243b558
JF
5464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5465 then ac_cv_path_EGREP="$GREP -E"
5466 else
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
a243b558 5475 for ac_prog in egrep; do
9c60689e 5476 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_EGREP" || continue
5479# Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481case `"$ac_path_EGREP" --version 2>&1` in
5482*GNU*)
5483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5484*)
5485 ac_count=0
5486 $as_echo_n 0123456789 >"conftest.in"
5487 while :
5488 do
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP="$ac_path_EGREP"
5499 ac_path_EGREP_max=$ac_count
5500 fi
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
9c60689e 5503 done
a243b558
JF
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505esac
9c60689e 5506
a243b558
JF
5507 $ac_path_EGREP_found && break 3
5508 done
5509 done
5510 done
5511IFS=$as_save_IFS
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 fi
9c60689e 5515else
a243b558 5516 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5517fi
5518
a243b558
JF
5519 fi
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522$as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP="$ac_cv_path_EGREP"
ee134472 5524
ee134472 5525
a243b558
JF
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5527$as_echo_n "checking for fgrep... " >&6; }
5528if ${ac_cv_path_FGREP+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530else
5531 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5532 then ac_cv_path_FGREP="$GREP -F"
5533 else
5534 if test -z "$FGREP"; then
5535 ac_path_FGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in fgrep; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5545 as_fn_executable_p "$ac_path_FGREP" || continue
5546# Check for GNU ac_path_FGREP and select it if it is found.
5547 # Check for GNU $ac_path_FGREP
5548case `"$ac_path_FGREP" --version 2>&1` in
5549*GNU*)
5550 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5551*)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo 'FGREP' >> "conftest.nl"
5560 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 as_fn_arith $ac_count + 1 && ac_count=$as_val
5563 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_FGREP="$ac_path_FGREP"
5566 ac_path_FGREP_max=$ac_count
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5572esac
a243b558
JF
5573
5574 $ac_path_FGREP_found && break 3
5575 done
5576 done
5577 done
5578IFS=$as_save_IFS
5579 if test -z "$ac_cv_path_FGREP"; then
5580 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5581 fi
a243b558
JF
5582else
5583 ac_cv_path_FGREP=$FGREP
ee134472
JF
5584fi
5585
a243b558
JF
5586 fi
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5589$as_echo "$ac_cv_path_FGREP" >&6; }
5590 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5591
5592
a243b558 5593test -z "$GREP" && GREP=grep
ee134472
JF
5594
5595
5596
5597
5598
5599
5600
ee134472 5601
ee134472 5602
ee134472 5603
ee134472 5604
ee134472 5605
ee134472
JF
5606
5607
5608
5609
5610
5611
5612
a243b558
JF
5613# Check whether --with-gnu-ld was given.
5614if test "${with_gnu_ld+set}" = set; then :
9d54db95 5615 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
5616else
5617 with_gnu_ld=no
5618fi
5619
5620ac_prog=ld
9d54db95 5621if test yes = "$GCC"; then
a243b558
JF
5622 # Check if gcc -print-prog-name=ld gives a path.
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5624$as_echo_n "checking for ld used by $CC... " >&6; }
5625 case $host in
5626 *-*-mingw*)
9d54db95 5627 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
5628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5629 *)
5630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5631 esac
5632 case $ac_prog in
5633 # Accept absolute paths.
5634 [\\/]* | ?:[\\/]*)
5635 re_direlt='/[^/][^/]*/\.\./'
5636 # Canonicalize the pathname of ld
5637 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5638 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5639 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5640 done
9d54db95 5641 test -z "$LD" && LD=$ac_prog
a243b558
JF
5642 ;;
5643 "")
5644 # If it fails, then pretend we aren't using GCC.
5645 ac_prog=ld
5646 ;;
5647 *)
5648 # If it is relative, then search for the first ld in PATH.
5649 with_gnu_ld=unknown
5650 ;;
5651 esac
9d54db95 5652elif test yes = "$with_gnu_ld"; then
a243b558
JF
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5654$as_echo_n "checking for GNU ld... " >&6; }
5655else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5657$as_echo_n "checking for non-GNU ld... " >&6; }
5658fi
5659if ${lt_cv_path_LD+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661else
5662 if test -z "$LD"; then
9d54db95 5663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5664 for ac_dir in $PATH; do
9d54db95 5665 IFS=$lt_save_ifs
a243b558
JF
5666 test -z "$ac_dir" && ac_dir=.
5667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 5668 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
5669 # Check to see if the program is GNU ld. I'd rather use --version,
5670 # but apparently some variants of GNU ld only accept -v.
5671 # Break only if it was the GNU/non-GNU ld that we prefer.
5672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5673 *GNU* | *'with BFD'*)
9d54db95 5674 test no != "$with_gnu_ld" && break
a243b558
JF
5675 ;;
5676 *)
9d54db95 5677 test yes != "$with_gnu_ld" && break
a243b558
JF
5678 ;;
5679 esac
5680 fi
5681 done
9d54db95 5682 IFS=$lt_save_ifs
a243b558 5683else
9d54db95 5684 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
5685fi
5686fi
5687
9d54db95 5688LD=$lt_cv_path_LD
a243b558
JF
5689if test -n "$LD"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5691$as_echo "$LD" >&6; }
5692else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5698$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5699if ${lt_cv_prog_gnu_ld+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5703case `$LD -v 2>&1 </dev/null` in
5704*GNU* | *'with BFD'*)
5705 lt_cv_prog_gnu_ld=yes
5706 ;;
5707*)
5708 lt_cv_prog_gnu_ld=no
5709 ;;
5710esac
5711fi
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5713$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5714with_gnu_ld=$lt_cv_prog_gnu_ld
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5725$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5726if ${lt_cv_path_NM+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728else
5729 if test -n "$NM"; then
5730 # Let the user override the test.
9d54db95 5731 lt_cv_path_NM=$NM
a243b558 5732else
9d54db95 5733 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
5734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5735 lt_nm_to_check="$lt_nm_to_check nm"
5736 fi
5737 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 5738 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 5740 IFS=$lt_save_ifs
a243b558 5741 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
5742 tmp_nm=$ac_dir/$lt_tmp_nm
5743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 5744 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 5745 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
5746 # nm: unknown option "B" ignored
5747 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
5748 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5749 case $build_os in
5750 mingw*) lt_bad_file=conftest.nm/nofile ;;
5751 *) lt_bad_file=/dev/null ;;
5752 esac
5753 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5754 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 5755 lt_cv_path_NM="$tmp_nm -B"
9d54db95 5756 break 2
a243b558
JF
5757 ;;
5758 *)
5759 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5760 */dev/null*)
5761 lt_cv_path_NM="$tmp_nm -p"
9d54db95 5762 break 2
a243b558
JF
5763 ;;
5764 *)
5765 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5766 continue # so that we can try to find one that supports BSD flags
5767 ;;
5768 esac
5769 ;;
5770 esac
5771 fi
5772 done
9d54db95 5773 IFS=$lt_save_ifs
a243b558
JF
5774 done
5775 : ${lt_cv_path_NM=no}
5776fi
5777fi
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5779$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
5780if test no != "$lt_cv_path_NM"; then
5781 NM=$lt_cv_path_NM
a243b558
JF
5782else
5783 # Didn't find any BSD compatible name lister, look for dumpbin.
5784 if test -n "$DUMPBIN"; then :
5785 # Let the user override the test.
5786 else
5787 if test -n "$ac_tool_prefix"; then
5788 for ac_prog in dumpbin "link -dump"
5789 do
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5794if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5795 $as_echo_n "(cached) " >&6
5796else
a243b558
JF
5797 if test -n "$DUMPBIN"; then
5798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811done
5812 done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
a243b558
JF
5817DUMPBIN=$ac_cv_prog_DUMPBIN
5818if test -n "$DUMPBIN"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5820$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5821else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
a243b558
JF
5827 test -n "$DUMPBIN" && break
5828 done
ee134472 5829fi
a243b558
JF
5830if test -z "$DUMPBIN"; then
5831 ac_ct_DUMPBIN=$DUMPBIN
5832 for ac_prog in dumpbin "link -dump"
5833do
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835set dummy $ac_prog; ac_word=$2
ee134472
JF
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5838if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5839 $as_echo_n "(cached) " >&6
5840else
a243b558
JF
5841 if test -n "$ac_ct_DUMPBIN"; then
5842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856 done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
a243b558
JF
5861ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5862if test -n "$ac_ct_DUMPBIN"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5864$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
a243b558
JF
5870
5871 test -n "$ac_ct_DUMPBIN" && break
5872done
5873
5874 if test "x$ac_ct_DUMPBIN" = x; then
5875 DUMPBIN=":"
ee134472
JF
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878yes:)
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881ac_tool_warned=yes ;;
5882esac
a243b558 5883 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5884 fi
9c60689e
DWT
5885fi
5886
9d54db95 5887 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 5888 *COFF*)
9d54db95 5889 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
5890 ;;
5891 *)
5892 DUMPBIN=:
5893 ;;
5894 esac
5895 fi
9c60689e 5896
9d54db95
JF
5897 if test : != "$DUMPBIN"; then
5898 NM=$DUMPBIN
a243b558
JF
5899 fi
5900fi
5901test -z "$NM" && NM=nm
9c60689e
DWT
5902
5903
5904
5905
5906
a243b558
JF
5907
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5909$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5910if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5911 $as_echo_n "(cached) " >&6
5912else
a243b558
JF
5913 lt_cv_nm_interface="BSD nm"
5914 echo "int some_variable = 0;" > conftest.$ac_ext
5915 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5916 (eval "$ac_compile" 2>conftest.err)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920 cat conftest.err >&5
5921 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5922 cat conftest.out >&5
5923 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924 lt_cv_nm_interface="MS dumpbin"
9c60689e 5925 fi
00a96142 5926 rm -rf conftest*
9c60689e 5927fi
a243b558
JF
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5929$as_echo "$lt_cv_nm_interface" >&6; }
5930
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5932$as_echo_n "checking whether ln -s works... " >&6; }
5933LN_S=$as_ln_s
5934if test "$LN_S" = "ln -s"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936$as_echo "yes" >&6; }
9c60689e 5937else
a243b558
JF
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5939$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5940fi
5941
a243b558
JF
5942# find the maximum length of command line arguments
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5944$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5945if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5946 $as_echo_n "(cached) " >&6
5947else
a243b558 5948 i=0
9d54db95 5949 teststring=ABCD
9c60689e 5950
a243b558
JF
5951 case $build_os in
5952 msdosdjgpp*)
5953 # On DJGPP, this test can blow up pretty badly due to problems in libc
5954 # (any single argument exceeding 2000 bytes causes a buffer overrun
5955 # during glob expansion). Even if it were fixed, the result of this
5956 # check would be larger than it should be.
5957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5958 ;;
9c60689e 5959
a243b558
JF
5960 gnu*)
5961 # Under GNU Hurd, this test is not required because there is
5962 # no limit to the length of command line arguments.
5963 # Libtool will interpret -1 as no limit whatsoever
5964 lt_cv_sys_max_cmd_len=-1;
5965 ;;
9c60689e 5966
a243b558
JF
5967 cygwin* | mingw* | cegcc*)
5968 # On Win9x/ME, this test blows up -- it succeeds, but takes
5969 # about 5 minutes as the teststring grows exponentially.
5970 # Worse, since 9x/ME are not pre-emptively multitasking,
5971 # you end up with a "frozen" computer, even though with patience
5972 # the test eventually succeeds (with a max line length of 256k).
5973 # Instead, let's just punt: use the minimum linelength reported by
5974 # all of the supported platforms: 8192 (on NT/2K/XP).
5975 lt_cv_sys_max_cmd_len=8192;
5976 ;;
9c60689e 5977
a243b558
JF
5978 mint*)
5979 # On MiNT this can take a long time and run out of memory.
5980 lt_cv_sys_max_cmd_len=8192;
5981 ;;
9c60689e 5982
a243b558
JF
5983 amigaos*)
5984 # On AmigaOS with pdksh, this test takes hours, literally.
5985 # So we just punt and use a minimum line length of 8192.
5986 lt_cv_sys_max_cmd_len=8192;
5987 ;;
9c60689e 5988
9d54db95 5989 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
5990 # This has been around since 386BSD, at least. Likely further.
5991 if test -x /sbin/sysctl; then
5992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5993 elif test -x /usr/sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5995 else
5996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5997 fi
5998 # And add a safety zone
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6001 ;;
9c60689e 6002
a243b558
JF
6003 interix*)
6004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6005 lt_cv_sys_max_cmd_len=196608
6006 ;;
9c60689e 6007
a243b558
JF
6008 os2*)
6009 # The test takes a long time on OS/2.
6010 lt_cv_sys_max_cmd_len=8192
6011 ;;
9c60689e 6012
a243b558
JF
6013 osf*)
6014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6016 # nice to cause kernel panics so lets avoid the loop below.
6017 # First set a reasonable default.
6018 lt_cv_sys_max_cmd_len=16384
6019 #
6020 if test -x /sbin/sysconfig; then
6021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6023 esac
6024 fi
6025 ;;
6026 sco3.2v5*)
6027 lt_cv_sys_max_cmd_len=102400
6028 ;;
6029 sysv5* | sco5v6* | sysv4.2uw2*)
6030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6031 if test -n "$kargmax"; then
6032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6033 else
6034 lt_cv_sys_max_cmd_len=32768
6035 fi
9c60689e
DWT
6036 ;;
6037 *)
a243b558 6038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
6039 if test -n "$lt_cv_sys_max_cmd_len" && \
6040 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6043 else
6044 # Make teststring a little bigger before we do anything with it.
6045 # a 1K string should be a reasonable start.
9d54db95 6046 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
6047 teststring=$teststring$teststring
6048 done
6049 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6050 # If test is not a shell built-in, we'll probably end up computing a
6051 # maximum length that is only half of the actual maximum length, but
6052 # we can't tell.
9d54db95 6053 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 6054 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 6055 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
6056 do
6057 i=`expr $i + 1`
6058 teststring=$teststring$teststring
6059 done
6060 # Only check the string length outside the loop.
6061 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6062 teststring=
6063 # Add a significant safety factor because C++ compilers can tack on
6064 # massive amounts of additional arguments before passing them to the
6065 # linker. It appears as though 1/2 is a usable value.
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6067 fi
9c60689e
DWT
6068 ;;
6069 esac
ee134472 6070
a243b558 6071fi
ee134472 6072
9d54db95 6073if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6075$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6076else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6078$as_echo "none" >&6; }
6079fi
6080max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6081
6082
9c60689e
DWT
6083
6084
6085
6086
a243b558
JF
6087: ${CP="cp -f"}
6088: ${MV="mv -f"}
6089: ${RM="rm -f"}
9c60689e 6090
a243b558
JF
6091if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6092 lt_unset=unset
6093else
6094 lt_unset=false
6095fi
9c60689e
DWT
6096
6097
6098
6099
6100
a243b558
JF
6101# test EBCDIC or ASCII
6102case `echo X|tr X '\101'` in
6103 A) # ASCII based system
6104 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6105 lt_SP2NL='tr \040 \012'
6106 lt_NL2SP='tr \015\012 \040\040'
6107 ;;
6108 *) # EBCDIC based system
6109 lt_SP2NL='tr \100 \n'
6110 lt_NL2SP='tr \r\n \100\100'
6111 ;;
6112esac
9c60689e
DWT
6113
6114
6115
6116
6117
6118
6119
6120
6121
a243b558
JF
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6123$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6124if ${lt_cv_to_host_file_cmd+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126else
6127 case $host in
6128 *-*-mingw* )
6129 case $build in
6130 *-*-mingw* ) # actually msys
6131 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6132 ;;
6133 *-*-cygwin* )
6134 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6135 ;;
6136 * ) # otherwise, assume *nix
6137 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6138 ;;
6139 esac
6140 ;;
6141 *-*-cygwin* )
6142 case $build in
6143 *-*-mingw* ) # actually msys
6144 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6145 ;;
6146 *-*-cygwin* )
6147 lt_cv_to_host_file_cmd=func_convert_file_noop
6148 ;;
6149 * ) # otherwise, assume *nix
6150 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6151 ;;
6152 esac
6153 ;;
6154 * ) # unhandled hosts (and "normal" native builds)
6155 lt_cv_to_host_file_cmd=func_convert_file_noop
6156 ;;
6157esac
9c60689e 6158
a243b558 6159fi
9c60689e 6160
a243b558
JF
6161to_host_file_cmd=$lt_cv_to_host_file_cmd
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6163$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6164
6165
6166
6167
6168
a243b558
JF
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6170$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6171if ${lt_cv_to_tool_file_cmd+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173else
6174 #assume ordinary cross tools, or native build.
6175lt_cv_to_tool_file_cmd=func_convert_file_noop
6176case $host in
6177 *-*-mingw* )
6178 case $build in
6179 *-*-mingw* ) # actually msys
6180 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6181 ;;
6182 esac
6183 ;;
6184esac
9c60689e 6185
a243b558 6186fi
9c60689e 6187
a243b558
JF
6188to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6190$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6191
9c60689e 6192
9c60689e 6193
9c60689e
DWT
6194
6195
a243b558
JF
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6197$as_echo_n "checking for $LD option to reload object files... " >&6; }
6198if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6199 $as_echo_n "(cached) " >&6
6200else
a243b558
JF
6201 lt_cv_ld_reload_flag='-r'
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6204$as_echo "$lt_cv_ld_reload_flag" >&6; }
6205reload_flag=$lt_cv_ld_reload_flag
6206case $reload_flag in
6207"" | " "*) ;;
6208*) reload_flag=" $reload_flag" ;;
6209esac
6210reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6211case $host_os in
a243b558 6212 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 6213 if test yes != "$GCC"; then
a243b558
JF
6214 reload_cmds=false
6215 fi
6216 ;;
6217 darwin*)
9d54db95
JF
6218 if test yes = "$GCC"; then
6219 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
6220 else
6221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6222 fi
6223 ;;
9c60689e
DWT
6224esac
6225
9c60689e 6226
9c60689e 6227
9c60689e 6228
9c60689e 6229
9c60689e 6230
9c60689e 6231
9c60689e 6232
9c60689e 6233
a243b558
JF
6234if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}objdump; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if ${ac_cv_prog_OBJDUMP+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241else
6242 if test -n "$OBJDUMP"; then
6243 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256done
6257 done
6258IFS=$as_save_IFS
9c60689e 6259
a243b558
JF
6260fi
6261fi
6262OBJDUMP=$ac_cv_prog_OBJDUMP
6263if test -n "$OBJDUMP"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6265$as_echo "$OBJDUMP" >&6; }
6266else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
9c60689e 6270
9c60689e 6271
a243b558
JF
6272fi
6273if test -z "$ac_cv_prog_OBJDUMP"; then
6274 ac_ct_OBJDUMP=$OBJDUMP
6275 # Extract the first word of "objdump", so it can be a program name with args.
6276set dummy objdump; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281else
6282 if test -n "$ac_ct_OBJDUMP"; then
6283 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
9c60689e
DWT
6295 fi
6296done
a243b558
JF
6297 done
6298IFS=$as_save_IFS
9c60689e
DWT
6299
6300fi
9c60689e 6301fi
a243b558
JF
6302ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6303if test -n "$ac_ct_OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6305$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6306else
a243b558
JF
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
9c60689e
DWT
6309fi
6310
a243b558
JF
6311 if test "x$ac_ct_OBJDUMP" = x; then
6312 OBJDUMP="false"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320 OBJDUMP=$ac_ct_OBJDUMP
6321 fi
6322else
6323 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6324fi
6325
a243b558 6326test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6327
6328
6329
6330
6331
6332
6333
6334
6335
a243b558
JF
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6337$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6338if ${lt_cv_deplibs_check_method+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340else
6341 lt_cv_file_magic_cmd='$MAGIC_CMD'
6342lt_cv_file_magic_test_file=
6343lt_cv_deplibs_check_method='unknown'
6344# Need to set the preceding variable on all platforms that support
6345# interlibrary dependencies.
6346# 'none' -- dependencies not supported.
9d54db95 6347# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
6348# 'pass_all' -- all dependencies passed with no checks.
6349# 'test_compile' -- check by making test program.
6350# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
6351# that responds to the $file_magic_cmd with a given extended regex.
6352# If you have 'file' or equivalent on your system and you're not sure
6353# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 6354
a243b558
JF
6355case $host_os in
6356aix[4-9]*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
9c60689e 6359
a243b558
JF
6360beos*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
9c60689e 6363
a243b558
JF
6364bsdi[45]*)
6365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6366 lt_cv_file_magic_cmd='/usr/bin/file -L'
6367 lt_cv_file_magic_test_file=/shlib/libc.so
6368 ;;
9c60689e 6369
a243b558
JF
6370cygwin*)
6371 # func_win32_libid is a shell function defined in ltmain.sh
6372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6373 lt_cv_file_magic_cmd='func_win32_libid'
6374 ;;
9c60689e 6375
a243b558
JF
6376mingw* | pw32*)
6377 # Base MSYS/MinGW do not provide the 'file' command needed by
6378 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6379 # unless we find 'file', for example because we are cross-compiling.
9d54db95 6380 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
6381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382 lt_cv_file_magic_cmd='func_win32_libid'
6383 else
6384 # Keep this pattern in sync with the one in func_win32_libid.
6385 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6386 lt_cv_file_magic_cmd='$OBJDUMP -f'
6387 fi
6388 ;;
9c60689e 6389
a243b558
JF
6390cegcc*)
6391 # use the weaker test based on 'objdump'. See mingw*.
6392 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6393 lt_cv_file_magic_cmd='$OBJDUMP -f'
6394 ;;
9c60689e 6395
a243b558
JF
6396darwin* | rhapsody*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
9c60689e 6399
a243b558
JF
6400freebsd* | dragonfly*)
6401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6402 case $host_cpu in
6403 i*86 )
6404 # Not sure whether the presence of OpenBSD here was a mistake.
6405 # Let's accept both of them until this is cleared up.
6406 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6407 lt_cv_file_magic_cmd=/usr/bin/file
6408 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6409 ;;
6410 esac
6411 else
6412 lt_cv_deplibs_check_method=pass_all
6413 fi
6414 ;;
9c60689e 6415
a243b558
JF
6416haiku*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
9c60689e 6419
a243b558
JF
6420hpux10.20* | hpux11*)
6421 lt_cv_file_magic_cmd=/usr/bin/file
6422 case $host_cpu in
6423 ia64*)
6424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6425 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6426 ;;
6427 hppa*64*)
6428 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]'
6429 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6430 ;;
6431 *)
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6433 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6434 ;;
6435 esac
6436 ;;
9c60689e 6437
a243b558
JF
6438interix[3-9]*)
6439 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6441 ;;
9c60689e 6442
a243b558
JF
6443irix5* | irix6* | nonstopux*)
6444 case $LD in
6445 *-32|*"-32 ") libmagic=32-bit;;
6446 *-n32|*"-n32 ") libmagic=N32;;
6447 *-64|*"-64 ") libmagic=64-bit;;
6448 *) libmagic=never-match;;
6449 esac
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
9c60689e 6452
a243b558 6453# This must be glibc/ELF.
9d54db95 6454linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
9c60689e 6457
a243b558
JF
6458netbsd*)
6459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6461 else
6462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6463 fi
6464 ;;
9c60689e 6465
a243b558
JF
6466newos6*)
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6468 lt_cv_file_magic_cmd=/usr/bin/file
6469 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6470 ;;
9c60689e 6471
a243b558
JF
6472*nto* | *qnx*)
6473 lt_cv_deplibs_check_method=pass_all
6474 ;;
9c60689e 6475
9d54db95
JF
6476openbsd* | bitrig*)
6477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6479 else
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481 fi
6482 ;;
9c60689e 6483
a243b558
JF
6484osf3* | osf4* | osf5*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
9c60689e 6487
a243b558
JF
6488rdos*)
6489 lt_cv_deplibs_check_method=pass_all
9c60689e 6490 ;;
a243b558
JF
6491
6492solaris*)
6493 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6494 ;;
6495
a243b558
JF
6496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6497 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6498 ;;
6499
a243b558
JF
6500sysv4 | sysv4.3*)
6501 case $host_vendor in
6502 motorola)
6503 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]'
6504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6505 ;;
6506 ncr)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509 sequent)
6510 lt_cv_file_magic_cmd='/bin/file'
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6512 ;;
6513 sni)
6514 lt_cv_file_magic_cmd='/bin/file'
6515 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6516 lt_cv_file_magic_test_file=/lib/libc.so
6517 ;;
6518 siemens)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 pc)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524 esac
6525 ;;
9c60689e 6526
a243b558
JF
6527tpf*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
9d54db95
JF
6530os2*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
a243b558 6533esac
9c60689e 6534
a243b558
JF
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6537$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6538
a243b558
JF
6539file_magic_glob=
6540want_nocaseglob=no
6541if test "$build" = "$host"; then
6542 case $host_os in
6543 mingw* | pw32*)
6544 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6545 want_nocaseglob=yes
6546 else
6547 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6548 fi
6549 ;;
6550 esac
9c60689e 6551fi
9c60689e 6552
a243b558
JF
6553file_magic_cmd=$lt_cv_file_magic_cmd
6554deplibs_check_method=$lt_cv_deplibs_check_method
6555test -z "$deplibs_check_method" && deplibs_check_method=unknown
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
9c60689e 6576
9c60689e 6577
ee134472 6578if test -n "$ac_tool_prefix"; then
a243b558
JF
6579 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6580set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6583if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6584 $as_echo_n "(cached) " >&6
6585else
a243b558
JF
6586 if test -n "$DLLTOOL"; then
6587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6596 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601 done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
a243b558
JF
6606DLLTOOL=$ac_cv_prog_DLLTOOL
6607if test -n "$DLLTOOL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6609$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6610else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614
6615
6616fi
a243b558
JF
6617if test -z "$ac_cv_prog_DLLTOOL"; then
6618 ac_ct_DLLTOOL=$DLLTOOL
6619 # Extract the first word of "dlltool", so it can be a program name with args.
6620set dummy dlltool; ac_word=$2
ee134472
JF
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6623if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6624 $as_echo_n "(cached) " >&6
6625else
a243b558
JF
6626 if test -n "$ac_ct_DLLTOOL"; then
6627 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6628else
6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6636 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640done
6641 done
6642IFS=$as_save_IFS
6643
6644fi
6645fi
a243b558
JF
6646ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6647if test -n "$ac_ct_DLLTOOL"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6649$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6650else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652$as_echo "no" >&6; }
6653fi
6654
a243b558
JF
6655 if test "x$ac_ct_DLLTOOL" = x; then
6656 DLLTOOL="false"
ee134472
JF
6657 else
6658 case $cross_compiling:$ac_tool_warned in
6659yes:)
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662ac_tool_warned=yes ;;
6663esac
a243b558 6664 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6665 fi
6666else
a243b558 6667 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6668fi
6669
a243b558
JF
6670test -z "$DLLTOOL" && DLLTOOL=dlltool
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6682$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6683if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6684 $as_echo_n "(cached) " >&6
6685else
a243b558
JF
6686 lt_cv_sharedlib_from_linklib_cmd='unknown'
6687
6688case $host_os in
6689cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
6690 # two different shell functions defined in ltmain.sh;
6691 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
6692 case `$DLLTOOL --help 2>&1` in
6693 *--identify-strict*)
6694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6695 ;;
6696 *)
6697 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6698 ;;
6699 esac
6700 ;;
6701*)
6702 # fallback: assume linklib IS sharedlib
9d54db95 6703 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
6704 ;;
6705esac
6706
ee134472 6707fi
a243b558
JF
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6709$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6710sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6711test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6712
6713
6714
6715
6716
9c60689e 6717
a243b558
JF
6718
6719if test -n "$ac_tool_prefix"; then
6720 for ac_prog in ar
6721 do
6722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6726if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6727 $as_echo_n "(cached) " >&6
6728else
a243b558
JF
6729 if test -n "$AR"; then
6730 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6739 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744 done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
a243b558
JF
6749AR=$ac_cv_prog_AR
6750if test -n "$AR"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752$as_echo "$AR" >&6; }
9c60689e
DWT
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
a243b558
JF
6759 test -n "$AR" && break
6760 done
9c60689e 6761fi
a243b558
JF
6762if test -z "$AR"; then
6763 ac_ct_AR=$AR
6764 for ac_prog in ar
6765do
6766 # Extract the first word of "$ac_prog", so it can be a program name with args.
6767set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6770if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6771 $as_echo_n "(cached) " >&6
6772else
a243b558
JF
6773 if test -n "$ac_ct_AR"; then
6774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6783 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788 done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
a243b558
JF
6793ac_ct_AR=$ac_cv_prog_ac_ct_AR
6794if test -n "$ac_ct_AR"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6796$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6797else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
a243b558
JF
6802
6803 test -n "$ac_ct_AR" && break
6804done
6805
6806 if test "x$ac_ct_AR" = x; then
6807 AR="false"
9c60689e
DWT
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
a243b558 6815 AR=$ac_ct_AR
9c60689e 6816 fi
a243b558
JF
6817fi
6818
6819: ${AR=ar}
6820: ${AR_FLAGS=cru}
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6833$as_echo_n "checking for archiver @FILE support... " >&6; }
6834if ${lt_cv_ar_at_file+:} false; then :
6835 $as_echo_n "(cached) " >&6
9c60689e 6836else
a243b558
JF
6837 lt_cv_ar_at_file=no
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h. */
6840
6841int
6842main ()
6843{
6844
6845 ;
6846 return 0;
6847}
6848_ACEOF
6849if ac_fn_c_try_compile "$LINENO"; then :
6850 echo conftest.$ac_objext > conftest.lst
6851 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6853 (eval $lt_ar_try) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; }
9d54db95 6857 if test 0 -eq "$ac_status"; then
a243b558
JF
6858 # Ensure the archiver fails upon bogus file names.
6859 rm -f conftest.$ac_objext libconftest.a
6860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6861 (eval $lt_ar_try) 2>&5
6862 ac_status=$?
6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864 test $ac_status = 0; }
9d54db95 6865 if test 0 -ne "$ac_status"; then
a243b558
JF
6866 lt_cv_ar_at_file=@
6867 fi
6868 fi
6869 rm -f conftest.* libconftest.a
6870
9c60689e 6871fi
a243b558 6872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6873
a243b558
JF
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6876$as_echo "$lt_cv_ar_at_file" >&6; }
6877
9d54db95 6878if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
6879 archiver_list_spec=
6880else
6881 archiver_list_spec=$lt_cv_ar_at_file
6882fi
6883
6884
6885
6886
6887
6888
6889
6890if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6892set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6895if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6896 $as_echo_n "(cached) " >&6
6897else
a243b558
JF
6898 if test -n "$STRIP"; then
6899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913 done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
a243b558
JF
6918STRIP=$ac_cv_prog_STRIP
6919if test -n "$STRIP"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6921$as_echo "$STRIP" >&6; }
9c60689e
DWT
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928fi
a243b558
JF
6929if test -z "$ac_cv_prog_STRIP"; then
6930 ac_ct_STRIP=$STRIP
6931 # Extract the first word of "strip", so it can be a program name with args.
6932set dummy strip; ac_word=$2
9c60689e
DWT
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6935if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6936 $as_echo_n "(cached) " >&6
6937else
a243b558
JF
6938 if test -n "$ac_ct_STRIP"; then
6939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6948 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953 done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
a243b558
JF
6958ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6959if test -n "$ac_ct_STRIP"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6961$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6962else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
a243b558
JF
6967 if test "x$ac_ct_STRIP" = x; then
6968 STRIP=":"
9c60689e
DWT
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971yes:)
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974ac_tool_warned=yes ;;
6975esac
a243b558 6976 STRIP=$ac_ct_STRIP
9c60689e
DWT
6977 fi
6978else
a243b558 6979 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6980fi
6981
a243b558
JF
6982test -z "$STRIP" && STRIP=:
6983
6984
6985
6986
6987
6988
6989if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6994if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6995 $as_echo_n "(cached) " >&6
6996else
a243b558
JF
6997 if test -n "$RANLIB"; then
6998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012 done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
a243b558
JF
7017RANLIB=$ac_cv_prog_RANLIB
7018if test -n "$RANLIB"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7020$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7021else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
a243b558
JF
7028if test -z "$ac_cv_prog_RANLIB"; then
7029 ac_ct_RANLIB=$RANLIB
7030 # Extract the first word of "ranlib", so it can be a program name with args.
7031set dummy ranlib; ac_word=$2
9c60689e
DWT
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7034if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7035 $as_echo_n "(cached) " >&6
7036else
a243b558
JF
7037 if test -n "$ac_ct_RANLIB"; then
7038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7047 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052 done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
a243b558
JF
7057ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7058if test -n "$ac_ct_RANLIB"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7060$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7061else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
a243b558
JF
7066 if test "x$ac_ct_RANLIB" = x; then
7067 RANLIB=":"
9c60689e
DWT
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
a243b558 7075 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7076 fi
7077else
a243b558 7078 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7079fi
7080
a243b558
JF
7081test -z "$RANLIB" && RANLIB=:
7082
7083
9c60689e 7084
9c60689e
DWT
7085
7086
a243b558
JF
7087
7088# Determine commands to create old-style static archives.
7089old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7090old_postinstall_cmds='chmod 644 $oldlib'
7091old_postuninstall_cmds=
7092
7093if test -n "$RANLIB"; then
7094 case $host_os in
9d54db95 7095 bitrig* | openbsd*)
a243b558
JF
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7097 ;;
7098 *)
7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7100 ;;
7101 esac
7102 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7103fi
7104
a243b558
JF
7105case $host_os in
7106 darwin*)
7107 lock_old_archive_extraction=yes ;;
7108 *)
7109 lock_old_archive_extraction=no ;;
9c60689e 7110esac
9c60689e 7111
9c60689e 7112
9c60689e
DWT
7113
7114
9c60689e 7115
9c60689e 7116
9c60689e
DWT
7117
7118
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
53ba6704 7144
9c60689e 7145
9c60689e 7146
9c60689e 7147
53ba6704 7148
a243b558
JF
7149
7150# If no C compiler was specified, use CC.
7151LTCC=${LTCC-"$CC"}
7152
7153# If no C compiler flags were specified, use CFLAGS.
7154LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7155
7156# Allow CC to be a program name with arguments.
7157compiler=$CC
7158
7159
7160# Check for command to grab the raw symbol name followed by C symbol from nm.
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7162$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7163if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7164 $as_echo_n "(cached) " >&6
7165else
ee134472 7166
a243b558
JF
7167# These are sane defaults that work on at least a few old systems.
7168# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7169
a243b558
JF
7170# Character class describing NM global symbol codes.
7171symcode='[BCDEGRST]'
9c60689e 7172
a243b558
JF
7173# Regexp to match symbols that can be accessed directly from C.
7174sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7175
a243b558
JF
7176# Define system-specific variables.
7177case $host_os in
7178aix*)
7179 symcode='[BCDT]'
7180 ;;
7181cygwin* | mingw* | pw32* | cegcc*)
7182 symcode='[ABCDGISTW]'
7183 ;;
7184hpux*)
9d54db95 7185 if test ia64 = "$host_cpu"; then
a243b558
JF
7186 symcode='[ABCDEGRST]'
7187 fi
7188 ;;
7189irix* | nonstopux*)
7190 symcode='[BCDEGRST]'
7191 ;;
7192osf*)
7193 symcode='[BCDEGQRST]'
7194 ;;
7195solaris*)
7196 symcode='[BDRT]'
7197 ;;
7198sco3.2v5*)
7199 symcode='[DT]'
7200 ;;
7201sysv4.2uw2*)
7202 symcode='[DT]'
7203 ;;
7204sysv5* | sco5v6* | unixware* | OpenUNIX*)
7205 symcode='[ABDT]'
7206 ;;
7207sysv4)
7208 symcode='[DFNSTU]'
7209 ;;
7210esac
9c60689e 7211
a243b558
JF
7212# If we're using GNU nm, then use its standard symbol codes.
7213case `$NM -V 2>&1` in
7214*GNU* | *'with BFD'*)
7215 symcode='[ABCDGIRSTW]' ;;
7216esac
9c60689e 7217
9d54db95
JF
7218if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7219 # Gets list of data symbols to import.
7220 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7221 # Adjust the below global symbol transforms to fixup imported variables.
7222 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7223 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7224 lt_c_name_lib_hook="\
7225 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7226 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7227else
7228 # Disable hooks by default.
7229 lt_cv_sys_global_symbol_to_import=
7230 lt_cdecl_hook=
7231 lt_c_name_hook=
7232 lt_c_name_lib_hook=
7233fi
7234
a243b558
JF
7235# Transform an extracted symbol line into a proper C declaration.
7236# Some systems (esp. on ia64) link data and code symbols differently,
7237# so use this general approach.
9d54db95
JF
7238lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7239$lt_cdecl_hook\
7240" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7241" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7242
a243b558 7243# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
7244lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7245$lt_c_name_hook\
7246" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7247" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7248
7249# Transform an extracted symbol line into symbol name with lib prefix and
7250# symbol address.
7251lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7252$lt_c_name_lib_hook\
7253" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7254" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7255" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 7256
a243b558
JF
7257# Handle CRLF in mingw tool chain
7258opt_cr=
7259case $build_os in
7260mingw*)
7261 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7262 ;;
7263esac
9c60689e 7264
a243b558
JF
7265# Try without a prefix underscore, then with it.
7266for ac_symprfx in "" "_"; do
9c60689e 7267
a243b558
JF
7268 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7269 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7270
a243b558
JF
7271 # Write the raw and C identifiers.
7272 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
7273 # Fake it for dumpbin and say T for any non-static function,
7274 # D for any global variable and I for any imported variable.
a243b558
JF
7275 # Also find C++ and __fastcall symbols from MSVC++,
7276 # which start with @ or ?.
7277 lt_cv_sys_global_symbol_pipe="$AWK '"\
7278" {last_section=section; section=\$ 3};"\
7279" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7280" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
7281" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7282" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7283" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
7284" \$ 0!~/External *\|/{next};"\
7285" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7286" {if(hide[section]) next};"\
9d54db95
JF
7287" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7288" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7289" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7290" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
7291" ' prfx=^$ac_symprfx"
7292 else
7293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7294 fi
7295 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7296
a243b558
JF
7297 # Check to see that the pipe works correctly.
7298 pipe_works=no
9c60689e 7299
00a96142 7300 rm -rf conftest*
a243b558
JF
7301 cat > conftest.$ac_ext <<_LT_EOF
7302#ifdef __cplusplus
7303extern "C" {
7304#endif
7305char nm_test_var;
7306void nm_test_func(void);
7307void nm_test_func(void){}
7308#ifdef __cplusplus
7309}
7310#endif
7311int main(){nm_test_var='a';nm_test_func();return(0);}
7312_LT_EOF
9c60689e 7313
a243b558
JF
7314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315 (eval $ac_compile) 2>&5
7316 ac_status=$?
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }; then
7319 # Now try to grab the symbols.
7320 nlist=conftest.nm
7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7322 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7323 ac_status=$?
7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325 test $ac_status = 0; } && test -s "$nlist"; then
7326 # Try sorting and uniquifying the output.
7327 if sort "$nlist" | uniq > "$nlist"T; then
7328 mv -f "$nlist"T "$nlist"
7329 else
7330 rm -f "$nlist"T
7331 fi
9c60689e 7332
a243b558
JF
7333 # Make sure that we snagged all the symbols we need.
7334 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7335 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7336 cat <<_LT_EOF > conftest.$ac_ext
7337/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
7338#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7339/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
7340 relocations are performed -- see ld's documentation on pseudo-relocs. */
7341# define LT_DLSYM_CONST
9d54db95 7342#elif defined __osf__
a243b558
JF
7343/* This system does not cope well with relocations in const data. */
7344# define LT_DLSYM_CONST
7345#else
7346# define LT_DLSYM_CONST const
7347#endif
9c60689e 7348
a243b558
JF
7349#ifdef __cplusplus
7350extern "C" {
7351#endif
9c60689e 7352
a243b558
JF
7353_LT_EOF
7354 # Now generate the symbol file.
7355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7356
a243b558 7357 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7358
a243b558
JF
7359/* The mapping between symbol names and symbols. */
7360LT_DLSYM_CONST struct {
7361 const char *name;
7362 void *address;
7363}
7364lt__PROGRAM__LTX_preloaded_symbols[] =
7365{
7366 { "@PROGRAM@", (void *) 0 },
7367_LT_EOF
9d54db95 7368 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
7369 cat <<\_LT_EOF >> conftest.$ac_ext
7370 {0, (void *) 0}
7371};
9c60689e 7372
a243b558
JF
7373/* This works around a problem in FreeBSD linker */
7374#ifdef FREEBSD_WORKAROUND
7375static const void *lt_preloaded_setup() {
7376 return lt__PROGRAM__LTX_preloaded_symbols;
7377}
7378#endif
9c60689e 7379
a243b558
JF
7380#ifdef __cplusplus
7381}
7382#endif
7383_LT_EOF
7384 # Now try linking the two files.
7385 mv conftest.$ac_objext conftstm.$ac_objext
7386 lt_globsym_save_LIBS=$LIBS
7387 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 7388 LIBS=conftstm.$ac_objext
a243b558
JF
7389 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7391 (eval $ac_link) 2>&5
7392 ac_status=$?
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 7394 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
7395 pipe_works=yes
7396 fi
7397 LIBS=$lt_globsym_save_LIBS
7398 CFLAGS=$lt_globsym_save_CFLAGS
7399 else
7400 echo "cannot find nm_test_func in $nlist" >&5
7401 fi
7402 else
7403 echo "cannot find nm_test_var in $nlist" >&5
7404 fi
7405 else
7406 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7407 fi
7408 else
7409 echo "$progname: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 fi
7412 rm -rf conftest* conftst*
9c60689e 7413
a243b558 7414 # Do not use the global_symbol_pipe unless it works.
9d54db95 7415 if test yes = "$pipe_works"; then
a243b558
JF
7416 break
7417 else
7418 lt_cv_sys_global_symbol_pipe=
7419 fi
7420done
9c60689e 7421
9c60689e 7422fi
9c60689e 7423
a243b558
JF
7424if test -z "$lt_cv_sys_global_symbol_pipe"; then
7425 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7426fi
a243b558
JF
7427if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7429$as_echo "failed" >&6; }
9c60689e 7430else
a243b558
JF
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7432$as_echo "ok" >&6; }
9c60689e
DWT
7433fi
7434
a243b558
JF
7435# Response file support.
7436if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7437 nm_file_list_spec='@'
7438elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7439 nm_file_list_spec='@'
9c60689e 7440fi
9c60689e 7441
9c60689e 7442
9c60689e 7443
9c60689e 7444
9c60689e 7445
9c60689e
DWT
7446
7447
9c60689e 7448
9c60689e 7449
9c60689e
DWT
7450
7451
7452
ee134472
JF
7453
7454
9c60689e
DWT
7455
7456
9d54db95
JF
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
9c60689e
DWT
7467
7468
7469
7470
7471
7472
7473
549f29b5 7474
549f29b5
DWT
7475
7476
549f29b5 7477
a243b558
JF
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7479$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7480
a243b558
JF
7481# Check whether --with-sysroot was given.
7482if test "${with_sysroot+set}" = set; then :
7483 withval=$with_sysroot;
9c60689e 7484else
a243b558 7485 with_sysroot=no
9c60689e
DWT
7486fi
7487
7488
a243b558 7489lt_sysroot=
9d54db95 7490case $with_sysroot in #(
a243b558 7491 yes)
9d54db95 7492 if test yes = "$GCC"; then
a243b558
JF
7493 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7494 fi
7495 ;; #(
7496 /*)
7497 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7498 ;; #(
7499 no|'')
7500 ;; #(
7501 *)
9d54db95
JF
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7503$as_echo "$with_sysroot" >&6; }
a243b558
JF
7504 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7505 ;;
7506esac
9c60689e 7507
a243b558
JF
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7509$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7510
7511
7512
7513
7514
9d54db95
JF
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7516$as_echo_n "checking for a working dd... " >&6; }
7517if ${ac_cv_path_lt_DD+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519else
7520 printf 0123456789abcdef0123456789abcdef >conftest.i
7521cat conftest.i conftest.i >conftest2.i
7522: ${lt_DD:=$DD}
7523if test -z "$lt_DD"; then
7524 ac_path_lt_DD_found=false
7525 # Loop through the user's path and test for each of PROGNAME-LIST
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_prog in dd; do
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7534 as_fn_executable_p "$ac_path_lt_DD" || continue
7535if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7536 cmp -s conftest.i conftest.out \
7537 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7538fi
7539 $ac_path_lt_DD_found && break 3
7540 done
7541 done
7542 done
7543IFS=$as_save_IFS
7544 if test -z "$ac_cv_path_lt_DD"; then
7545 :
7546 fi
7547else
7548 ac_cv_path_lt_DD=$lt_DD
7549fi
7550
7551rm -f conftest.i conftest2.i conftest.out
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7554$as_echo "$ac_cv_path_lt_DD" >&6; }
7555
7556
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7558$as_echo_n "checking how to truncate binary pipes... " >&6; }
7559if ${lt_cv_truncate_bin+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561else
7562 printf 0123456789abcdef0123456789abcdef >conftest.i
7563cat conftest.i conftest.i >conftest2.i
7564lt_cv_truncate_bin=
7565if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7566 cmp -s conftest.i conftest.out \
7567 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7568fi
7569rm -f conftest.i conftest2.i conftest.out
7570test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7573$as_echo "$lt_cv_truncate_bin" >&6; }
7574
7575
7576
7577
7578
7579
7580
7581# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7582func_cc_basename ()
7583{
7584 for cc_temp in $*""; do
7585 case $cc_temp in
7586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7588 \-*) ;;
7589 *) break;;
7590 esac
7591 done
7592 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7593}
7594
a243b558
JF
7595# Check whether --enable-libtool-lock was given.
7596if test "${enable_libtool_lock+set}" = set; then :
7597 enableval=$enable_libtool_lock;
9c60689e
DWT
7598fi
7599
9d54db95 7600test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 7601
a243b558
JF
7602# Some flags need to be propagated to the compiler or linker for good
7603# libtool support.
7604case $host in
7605ia64-*-hpux*)
9d54db95
JF
7606 # Find out what ABI is being produced by ac_compile, and set mode
7607 # options accordingly.
a243b558
JF
7608 echo 'int i;' > conftest.$ac_ext
7609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7610 (eval $ac_compile) 2>&5
7611 ac_status=$?
7612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613 test $ac_status = 0; }; then
7614 case `/usr/bin/file conftest.$ac_objext` in
7615 *ELF-32*)
9d54db95 7616 HPUX_IA64_MODE=32
a243b558
JF
7617 ;;
7618 *ELF-64*)
9d54db95 7619 HPUX_IA64_MODE=64
a243b558
JF
7620 ;;
7621 esac
7622 fi
7623 rm -rf conftest*
7624 ;;
7625*-*-irix6*)
9d54db95
JF
7626 # Find out what ABI is being produced by ac_compile, and set linker
7627 # options accordingly.
a243b558
JF
7628 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630 (eval $ac_compile) 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
9d54db95 7634 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
7635 case `/usr/bin/file conftest.$ac_objext` in
7636 *32-bit*)
7637 LD="${LD-ld} -melf32bsmip"
7638 ;;
7639 *N32*)
7640 LD="${LD-ld} -melf32bmipn32"
7641 ;;
7642 *64-bit*)
7643 LD="${LD-ld} -melf64bmip"
7644 ;;
7645 esac
7646 else
7647 case `/usr/bin/file conftest.$ac_objext` in
7648 *32-bit*)
7649 LD="${LD-ld} -32"
7650 ;;
7651 *N32*)
7652 LD="${LD-ld} -n32"
7653 ;;
7654 *64-bit*)
7655 LD="${LD-ld} -64"
7656 ;;
7657 esac
7658 fi
7659 fi
7660 rm -rf conftest*
7661 ;;
9c60689e 7662
9d54db95
JF
7663mips64*-*linux*)
7664 # Find out what ABI is being produced by ac_compile, and set linker
7665 # options accordingly.
7666 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7668 (eval $ac_compile) 2>&5
7669 ac_status=$?
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; then
7672 emul=elf
7673 case `/usr/bin/file conftest.$ac_objext` in
7674 *32-bit*)
7675 emul="${emul}32"
7676 ;;
7677 *64-bit*)
7678 emul="${emul}64"
7679 ;;
7680 esac
7681 case `/usr/bin/file conftest.$ac_objext` in
7682 *MSB*)
7683 emul="${emul}btsmip"
7684 ;;
7685 *LSB*)
7686 emul="${emul}ltsmip"
7687 ;;
7688 esac
7689 case `/usr/bin/file conftest.$ac_objext` in
7690 *N32*)
7691 emul="${emul}n32"
7692 ;;
7693 esac
7694 LD="${LD-ld} -m $emul"
7695 fi
7696 rm -rf conftest*
7697 ;;
7698
7699x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 7700s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
7701 # Find out what ABI is being produced by ac_compile, and set linker
7702 # options accordingly. Note that the listed cases only cover the
7703 # situations where additional linker options are needed (such as when
7704 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7705 # vice versa); the common cases where no linker options are needed do
7706 # not appear in the list.
a243b558
JF
7707 echo 'int i;' > conftest.$ac_ext
7708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7709 (eval $ac_compile) 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 case `/usr/bin/file conftest.o` in
7714 *32-bit*)
7715 case $host in
7716 x86_64-*kfreebsd*-gnu)
7717 LD="${LD-ld} -m elf_i386_fbsd"
7718 ;;
7719 x86_64-*linux*)
9d54db95
JF
7720 case `/usr/bin/file conftest.o` in
7721 *x86-64*)
7722 LD="${LD-ld} -m elf32_x86_64"
7723 ;;
7724 *)
7725 LD="${LD-ld} -m elf_i386"
7726 ;;
7727 esac
a243b558 7728 ;;
9d54db95
JF
7729 powerpc64le-*linux*)
7730 LD="${LD-ld} -m elf32lppclinux"
7731 ;;
7732 powerpc64-*linux*)
a243b558
JF
7733 LD="${LD-ld} -m elf32ppclinux"
7734 ;;
7735 s390x-*linux*)
7736 LD="${LD-ld} -m elf_s390"
7737 ;;
7738 sparc64-*linux*)
7739 LD="${LD-ld} -m elf32_sparc"
7740 ;;
7741 esac
7742 ;;
7743 *64-bit*)
7744 case $host in
7745 x86_64-*kfreebsd*-gnu)
7746 LD="${LD-ld} -m elf_x86_64_fbsd"
7747 ;;
7748 x86_64-*linux*)
7749 LD="${LD-ld} -m elf_x86_64"
7750 ;;
9d54db95
JF
7751 powerpcle-*linux*)
7752 LD="${LD-ld} -m elf64lppc"
7753 ;;
7754 powerpc-*linux*)
a243b558
JF
7755 LD="${LD-ld} -m elf64ppc"
7756 ;;
7757 s390*-*linux*|s390*-*tpf*)
7758 LD="${LD-ld} -m elf64_s390"
7759 ;;
7760 sparc*-*linux*)
7761 LD="${LD-ld} -m elf64_sparc"
7762 ;;
7763 esac
7764 ;;
7765 esac
7766 fi
7767 rm -rf conftest*
7768 ;;
9c60689e 7769
a243b558
JF
7770*-*-sco3.2v5*)
7771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 7772 SAVE_CFLAGS=$CFLAGS
a243b558
JF
7773 CFLAGS="$CFLAGS -belf"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7775$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7776if ${lt_cv_cc_needs_belf+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778else
7779 ac_ext=c
7780ac_cpp='$CPP $CPPFLAGS'
7781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7784
a243b558
JF
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
9c60689e 7787
a243b558
JF
7788int
7789main ()
7790{
9c60689e 7791
a243b558
JF
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_link "$LINENO"; then :
7797 lt_cv_cc_needs_belf=yes
9c60689e 7798else
a243b558 7799 lt_cv_cc_needs_belf=no
9c60689e 7800fi
a243b558
JF
7801rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7808
a243b558
JF
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7811$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 7812 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 7813 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 7814 CFLAGS=$SAVE_CFLAGS
a243b558
JF
7815 fi
7816 ;;
7817*-*solaris*)
9d54db95
JF
7818 # Find out what ABI is being produced by ac_compile, and set linker
7819 # options accordingly.
a243b558
JF
7820 echo 'int i;' > conftest.$ac_ext
7821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7822 (eval $ac_compile) 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; }; then
7826 case `/usr/bin/file conftest.o` in
7827 *64-bit*)
7828 case $lt_cv_prog_gnu_ld in
7829 yes*)
7830 case $host in
9d54db95 7831 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
7832 LD="${LD-ld} -m elf_x86_64"
7833 ;;
7834 sparc*-*-solaris*)
7835 LD="${LD-ld} -m elf64_sparc"
7836 ;;
7837 esac
7838 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7839 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 7840 LD=${LD-ld}_sol2
a243b558
JF
7841 fi
7842 ;;
7843 *)
7844 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7845 LD="${LD-ld} -64"
7846 fi
7847 ;;
7848 esac
7849 ;;
7850 esac
7851 fi
7852 rm -rf conftest*
7853 ;;
7854esac
9c60689e 7855
9d54db95 7856need_locks=$enable_libtool_lock
9c60689e 7857
a243b558
JF
7858if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7860set dummy ${ac_tool_prefix}mt; ac_word=$2
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862$as_echo_n "checking for $ac_word... " >&6; }
7863if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865else
7866 if test -n "$MANIFEST_TOOL"; then
7867 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880done
7881 done
7882IFS=$as_save_IFS
9c60689e 7883
a243b558
JF
7884fi
7885fi
7886MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7887if test -n "$MANIFEST_TOOL"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7889$as_echo "$MANIFEST_TOOL" >&6; }
7890else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
7893fi
9c60689e
DWT
7894
7895
a243b558
JF
7896fi
7897if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7898 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7899 # Extract the first word of "mt", so it can be a program name with args.
7900set dummy mt; ac_word=$2
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 if test -n "$ac_ct_MANIFEST_TOOL"; then
7907 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921 done
7922IFS=$as_save_IFS
9c60689e 7923
a243b558
JF
7924fi
7925fi
7926ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7927if test -n "$ac_ct_MANIFEST_TOOL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7929$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7930else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933fi
9c60689e 7934
a243b558
JF
7935 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7936 MANIFEST_TOOL=":"
7937 else
7938 case $cross_compiling:$ac_tool_warned in
7939yes:)
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7942ac_tool_warned=yes ;;
7943esac
7944 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7945 fi
7946else
7947 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7948fi
9c60689e 7949
a243b558
JF
7950test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7952$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7953if ${lt_cv_path_mainfest_tool+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955else
7956 lt_cv_path_mainfest_tool=no
7957 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7958 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7959 cat conftest.err >&5
7960 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7961 lt_cv_path_mainfest_tool=yes
7962 fi
00a96142 7963 rm -rf conftest*
a243b558
JF
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7966$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 7967if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
7968 MANIFEST_TOOL=:
7969fi
9c60689e
DWT
7970
7971
7972
7973
7974
7975
a243b558
JF
7976 case $host_os in
7977 rhapsody* | darwin*)
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7980set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if ${ac_cv_prog_DSYMUTIL+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985else
7986 if test -n "$DSYMUTIL"; then
7987 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001 done
8002IFS=$as_save_IFS
9c60689e 8003
a243b558
JF
8004fi
8005fi
8006DSYMUTIL=$ac_cv_prog_DSYMUTIL
8007if test -n "$DSYMUTIL"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8009$as_echo "$DSYMUTIL" >&6; }
8010else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
8013fi
9c60689e
DWT
8014
8015
9c60689e 8016fi
a243b558
JF
8017if test -z "$ac_cv_prog_DSYMUTIL"; then
8018 ac_ct_DSYMUTIL=$DSYMUTIL
8019 # Extract the first word of "dsymutil", so it can be a program name with args.
8020set dummy dsymutil; ac_word=$2
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022$as_echo_n "checking for $ac_word... " >&6; }
8023if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
8024 $as_echo_n "(cached) " >&6
8025else
a243b558
JF
8026 if test -n "$ac_ct_DSYMUTIL"; then
8027 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 8028else
a243b558
JF
8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040done
8041 done
8042IFS=$as_save_IFS
8043
9c60689e 8044fi
9c60689e 8045fi
a243b558
JF
8046ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8047if test -n "$ac_ct_DSYMUTIL"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8049$as_echo "$ac_ct_DSYMUTIL" >&6; }
8050else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052$as_echo "no" >&6; }
8053fi
9c60689e 8054
a243b558
JF
8055 if test "x$ac_ct_DSYMUTIL" = x; then
8056 DSYMUTIL=":"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059yes:)
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062ac_tool_warned=yes ;;
9c60689e 8063esac
a243b558
JF
8064 DSYMUTIL=$ac_ct_DSYMUTIL
8065 fi
8066else
8067 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8068fi
9c60689e 8069
a243b558
JF
8070 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8072set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074$as_echo_n "checking for $ac_word... " >&6; }
8075if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
8076 $as_echo_n "(cached) " >&6
8077else
a243b558
JF
8078 if test -n "$NMEDIT"; then
8079 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8080else
8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082for as_dir in $PATH
8083do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092done
9c60689e 8093 done
a243b558 8094IFS=$as_save_IFS
9c60689e 8095
a243b558
JF
8096fi
8097fi
8098NMEDIT=$ac_cv_prog_NMEDIT
8099if test -n "$NMEDIT"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8101$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
8102else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
8106
8107
a243b558
JF
8108fi
8109if test -z "$ac_cv_prog_NMEDIT"; then
8110 ac_ct_NMEDIT=$NMEDIT
8111 # Extract the first word of "nmedit", so it can be a program name with args.
8112set dummy nmedit; ac_word=$2
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
8116 $as_echo_n "(cached) " >&6
8117else
a243b558
JF
8118 if test -n "$ac_ct_NMEDIT"; then
8119 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132done
9c60689e 8133 done
a243b558 8134IFS=$as_save_IFS
9c60689e 8135
a243b558
JF
8136fi
8137fi
8138ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8139if test -n "$ac_ct_NMEDIT"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8141$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
8142else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146
a243b558
JF
8147 if test "x$ac_ct_NMEDIT" = x; then
8148 NMEDIT=":"
9c60689e 8149 else
a243b558
JF
8150 case $cross_compiling:$ac_tool_warned in
8151yes:)
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154ac_tool_warned=yes ;;
8155esac
8156 NMEDIT=$ac_ct_NMEDIT
9c60689e 8157 fi
a243b558
JF
8158else
8159 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
8160fi
8161
a243b558
JF
8162 if test -n "$ac_tool_prefix"; then
8163 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8164set dummy ${ac_tool_prefix}lipo; ac_word=$2
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166$as_echo_n "checking for $ac_word... " >&6; }
8167if ${ac_cv_prog_LIPO+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169else
8170 if test -n "$LIPO"; then
8171 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8172else
8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184done
8185 done
8186IFS=$as_save_IFS
9c60689e 8187
a243b558
JF
8188fi
8189fi
8190LIPO=$ac_cv_prog_LIPO
8191if test -n "$LIPO"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8193$as_echo "$LIPO" >&6; }
8194else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
8197fi
9c60689e 8198
9c60689e 8199
a243b558
JF
8200fi
8201if test -z "$ac_cv_prog_LIPO"; then
8202 ac_ct_LIPO=$LIPO
8203 # Extract the first word of "lipo", so it can be a program name with args.
8204set dummy lipo; ac_word=$2
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206$as_echo_n "checking for $ac_word... " >&6; }
8207if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8208 $as_echo_n "(cached) " >&6
8209else
a243b558
JF
8210 if test -n "$ac_ct_LIPO"; then
8211 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8212else
8213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_ac_ct_LIPO="lipo"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 break 2
8223 fi
8224done
8225 done
8226IFS=$as_save_IFS
9c60689e
DWT
8227
8228fi
a243b558
JF
8229fi
8230ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8231if test -n "$ac_ct_LIPO"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8233$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8234else
a243b558
JF
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236$as_echo "no" >&6; }
9c60689e
DWT
8237fi
8238
a243b558
JF
8239 if test "x$ac_ct_LIPO" = x; then
8240 LIPO=":"
8241 else
8242 case $cross_compiling:$ac_tool_warned in
8243yes:)
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246ac_tool_warned=yes ;;
8247esac
8248 LIPO=$ac_ct_LIPO
8249 fi
8250else
8251 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8252fi
8253
a243b558
JF
8254 if test -n "$ac_tool_prefix"; then
8255 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8256set dummy ${ac_tool_prefix}otool; ac_word=$2
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258$as_echo_n "checking for $ac_word... " >&6; }
8259if ${ac_cv_prog_OTOOL+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261else
8262 if test -n "$OTOOL"; then
8263 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276done
8277 done
8278IFS=$as_save_IFS
9c60689e 8279
a243b558
JF
8280fi
8281fi
8282OTOOL=$ac_cv_prog_OTOOL
8283if test -n "$OTOOL"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8285$as_echo "$OTOOL" >&6; }
8286else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288$as_echo "no" >&6; }
8289fi
9c60689e
DWT
8290
8291
a243b558
JF
8292fi
8293if test -z "$ac_cv_prog_OTOOL"; then
8294 ac_ct_OTOOL=$OTOOL
8295 # Extract the first word of "otool", so it can be a program name with args.
8296set dummy otool; ac_word=$2
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298$as_echo_n "checking for $ac_word... " >&6; }
8299if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301else
8302 if test -n "$ac_ct_OTOOL"; then
8303 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8304else
8305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $PATH
8307do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_prog_ac_ct_OTOOL="otool"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316done
8317 done
8318IFS=$as_save_IFS
9c60689e 8319
a243b558
JF
8320fi
8321fi
8322ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8323if test -n "$ac_ct_OTOOL"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8325$as_echo "$ac_ct_OTOOL" >&6; }
8326else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328$as_echo "no" >&6; }
8329fi
9c60689e 8330
a243b558
JF
8331 if test "x$ac_ct_OTOOL" = x; then
8332 OTOOL=":"
8333 else
8334 case $cross_compiling:$ac_tool_warned in
8335yes:)
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338ac_tool_warned=yes ;;
8339esac
8340 OTOOL=$ac_ct_OTOOL
8341 fi
8342else
8343 OTOOL="$ac_cv_prog_OTOOL"
8344fi
9c60689e 8345
a243b558
JF
8346 if test -n "$ac_tool_prefix"; then
8347 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8348set dummy ${ac_tool_prefix}otool64; ac_word=$2
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350$as_echo_n "checking for $ac_word... " >&6; }
8351if ${ac_cv_prog_OTOOL64+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353else
8354 if test -n "$OTOOL64"; then
8355 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8356else
8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358for as_dir in $PATH
8359do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368done
8369 done
8370IFS=$as_save_IFS
9c60689e 8371
a243b558
JF
8372fi
8373fi
8374OTOOL64=$ac_cv_prog_OTOOL64
8375if test -n "$OTOOL64"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8377$as_echo "$OTOOL64" >&6; }
8378else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380$as_echo "no" >&6; }
8381fi
9c60689e 8382
9c60689e 8383
a243b558
JF
8384fi
8385if test -z "$ac_cv_prog_OTOOL64"; then
8386 ac_ct_OTOOL64=$OTOOL64
8387 # Extract the first word of "otool64", so it can be a program name with args.
8388set dummy otool64; ac_word=$2
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390$as_echo_n "checking for $ac_word... " >&6; }
8391if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393else
8394 if test -n "$ac_ct_OTOOL64"; then
8395 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8396else
8397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_ac_ct_OTOOL64="otool64"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8407 fi
8408done
8409 done
8410IFS=$as_save_IFS
9c60689e 8411
a243b558
JF
8412fi
8413fi
8414ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8415if test -n "$ac_ct_OTOOL64"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8417$as_echo "$ac_ct_OTOOL64" >&6; }
8418else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420$as_echo "no" >&6; }
8421fi
9c60689e 8422
a243b558
JF
8423 if test "x$ac_ct_OTOOL64" = x; then
8424 OTOOL64=":"
8425 else
8426 case $cross_compiling:$ac_tool_warned in
8427yes:)
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8430ac_tool_warned=yes ;;
8431esac
8432 OTOOL64=$ac_ct_OTOOL64
8433 fi
8434else
8435 OTOOL64="$ac_cv_prog_OTOOL64"
8436fi
ee134472 8437
9c60689e 8438
9c60689e 8439
9c60689e 8440
9c60689e 8441
9c60689e 8442
ee134472 8443
9c60689e 8444
9c60689e 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
a243b558
JF
8462
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8465$as_echo_n "checking for -single_module linker flag... " >&6; }
8466if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8467 $as_echo_n "(cached) " >&6
8468else
a243b558 8469 lt_cv_apple_cc_single_mod=no
9d54db95 8470 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
8471 # By default we will add the -single_module flag. You can override
8472 # by either setting the environment variable LT_MULTI_MODULE
8473 # non-empty at configure time, or by adding -multi_module to the
8474 # link flags.
8475 rm -rf libconftest.dylib*
8476 echo "int foo(void){return 1;}" > conftest.c
8477 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8478-dynamiclib -Wl,-single_module conftest.c" >&5
8479 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8480 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8481 _lt_result=$?
8482 # If there is a non-empty error log, and "single_module"
8483 # appears in it, assume the flag caused a linker warning
8484 if test -s conftest.err && $GREP single_module conftest.err; then
8485 cat conftest.err >&5
8486 # Otherwise, if the output was created with a 0 exit code from
8487 # the compiler, it worked.
9d54db95 8488 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
8489 lt_cv_apple_cc_single_mod=yes
8490 else
8491 cat conftest.err >&5
8492 fi
8493 rm -rf libconftest.dylib*
8494 rm -f conftest.*
8495 fi
ee134472 8496fi
a243b558
JF
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8498$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8499
a243b558
JF
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8501$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8502if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8503 $as_echo_n "(cached) " >&6
8504else
a243b558
JF
8505 lt_cv_ld_exported_symbols_list=no
8506 save_LDFLAGS=$LDFLAGS
8507 echo "_main" > conftest.sym
8508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h. */
9c60689e 8511
a243b558
JF
8512int
8513main ()
8514{
9c60689e 8515
a243b558
JF
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_link "$LINENO"; then :
8521 lt_cv_ld_exported_symbols_list=yes
9c60689e 8522else
a243b558 8523 lt_cv_ld_exported_symbols_list=no
9c60689e 8524fi
a243b558
JF
8525rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
9d54db95 8527 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
8528
8529fi
a243b558
JF
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8531$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8532
a243b558
JF
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8534$as_echo_n "checking for -force_load linker flag... " >&6; }
8535if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8536 $as_echo_n "(cached) " >&6
8537else
a243b558
JF
8538 lt_cv_ld_force_load=no
8539 cat > conftest.c << _LT_EOF
8540int forced_loaded() { return 2;}
8541_LT_EOF
8542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8544 echo "$AR cru libconftest.a conftest.o" >&5
8545 $AR cru libconftest.a conftest.o 2>&5
8546 echo "$RANLIB libconftest.a" >&5
8547 $RANLIB libconftest.a 2>&5
8548 cat > conftest.c << _LT_EOF
8549int main() { return 0;}
8550_LT_EOF
8551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8553 _lt_result=$?
8554 if test -s conftest.err && $GREP force_load conftest.err; then
8555 cat conftest.err >&5
9d54db95 8556 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
8557 lt_cv_ld_force_load=yes
8558 else
8559 cat conftest.err >&5
8560 fi
8561 rm -f conftest.err libconftest.a conftest conftest.c
8562 rm -rf conftest.dSYM
9c60689e
DWT
8563
8564fi
a243b558
JF
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8566$as_echo "$lt_cv_ld_force_load" >&6; }
8567 case $host_os in
8568 rhapsody* | darwin1.[012])
9d54db95 8569 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 8570 darwin1.*)
9d54db95 8571 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
8572 darwin*) # darwin 5.x on
8573 # if running on 10.5 or later, the deployment target defaults
8574 # to the OS version, if on x86, and 10.4, the deployment
8575 # target defaults to 10.4. Don't you love it?
8576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
8578 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8579 10.[012][,.]*)
8580 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 8581 10.*)
9d54db95 8582 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
8583 esac
8584 ;;
8585 esac
9d54db95 8586 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
8587 _lt_dar_single_mod='$single_module'
8588 fi
9d54db95
JF
8589 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8590 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 8591 else
9d54db95 8592 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 8593 fi
9d54db95 8594 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
8595 _lt_dsymutil='~$DSYMUTIL $lib || :'
8596 else
8597 _lt_dsymutil=
8598 fi
8599 ;;
8600 esac
9c60689e 8601
9d54db95
JF
8602# func_munge_path_list VARIABLE PATH
8603# -----------------------------------
8604# VARIABLE is name of variable containing _space_ separated list of
8605# directories to be munged by the contents of PATH, which is string
8606# having a format:
8607# "DIR[:DIR]:"
8608# string "DIR[ DIR]" will be prepended to VARIABLE
8609# ":DIR[:DIR]"
8610# string "DIR[ DIR]" will be appended to VARIABLE
8611# "DIRP[:DIRP]::[DIRA:]DIRA"
8612# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8613# "DIRA[ DIRA]" will be appended to VARIABLE
8614# "DIR[:DIR]"
8615# VARIABLE will be replaced by "DIR[ DIR]"
8616func_munge_path_list ()
8617{
8618 case x$2 in
8619 x)
8620 ;;
8621 *:)
8622 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8623 ;;
8624 x:*)
8625 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8626 ;;
8627 *::*)
8628 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8629 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8630 ;;
8631 *)
8632 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8633 ;;
8634 esac
8635}
8636
a243b558
JF
8637ac_ext=c
8638ac_cpp='$CPP $CPPFLAGS'
8639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8641ac_compiler_gnu=$ac_cv_c_compiler_gnu
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8643$as_echo_n "checking how to run the C preprocessor... " >&6; }
8644# On Suns, sometimes $CPP names a directory.
8645if test -n "$CPP" && test -d "$CPP"; then
8646 CPP=
9c60689e 8647fi
a243b558
JF
8648if test -z "$CPP"; then
8649 if ${ac_cv_prog_CPP+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651else
8652 # Double quotes because CPP needs to be expanded
8653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8654 do
8655 ac_preproc_ok=false
8656for ac_c_preproc_warn_flag in '' yes
8657do
8658 # Use a header file that comes with gcc, so configuring glibc
8659 # with a fresh cross-compiler works.
8660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 # <limits.h> exists even on freestanding compilers.
8662 # On the NeXT, cc -E runs the code through the compiler's parser,
8663 # not just through cpp. "Syntax error" is here to catch this case.
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665/* end confdefs.h. */
8666#ifdef __STDC__
8667# include <limits.h>
8668#else
8669# include <assert.h>
8670#endif
8671 Syntax error
8672_ACEOF
8673if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8674
a243b558
JF
8675else
8676 # Broken: fails on valid input.
8677continue
8678fi
8679rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8680
a243b558
JF
8681 # OK, works on sane cases. Now check whether nonexistent headers
8682 # can be detected and how.
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h. */
8685#include <ac_nonexistent.h>
8686_ACEOF
8687if ac_fn_c_try_cpp "$LINENO"; then :
8688 # Broken: success on invalid input.
8689continue
8690else
8691 # Passes both tests.
8692ac_preproc_ok=:
8693break
8694fi
8695rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8696
a243b558
JF
8697done
8698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8699rm -f conftest.i conftest.err conftest.$ac_ext
8700if $ac_preproc_ok; then :
8701 break
8702fi
9c60689e 8703
a243b558
JF
8704 done
8705 ac_cv_prog_CPP=$CPP
9c60689e 8706
a243b558
JF
8707fi
8708 CPP=$ac_cv_prog_CPP
9c60689e 8709else
a243b558
JF
8710 ac_cv_prog_CPP=$CPP
8711fi
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8713$as_echo "$CPP" >&6; }
8714ac_preproc_ok=false
8715for ac_c_preproc_warn_flag in '' yes
8716do
8717 # Use a header file that comes with gcc, so configuring glibc
8718 # with a fresh cross-compiler works.
8719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 # <limits.h> exists even on freestanding compilers.
8721 # On the NeXT, cc -E runs the code through the compiler's parser,
8722 # not just through cpp. "Syntax error" is here to catch this case.
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h. */
8725#ifdef __STDC__
8726# include <limits.h>
8727#else
8728# include <assert.h>
8729#endif
8730 Syntax error
8731_ACEOF
8732if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8733
a243b558
JF
8734else
8735 # Broken: fails on valid input.
8736continue
9c60689e 8737fi
a243b558 8738rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8739
a243b558
JF
8740 # OK, works on sane cases. Now check whether nonexistent headers
8741 # can be detected and how.
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h. */
8744#include <ac_nonexistent.h>
8745_ACEOF
8746if ac_fn_c_try_cpp "$LINENO"; then :
8747 # Broken: success on invalid input.
8748continue
8749else
8750 # Passes both tests.
8751ac_preproc_ok=:
8752break
8753fi
8754rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8755
a243b558
JF
8756done
8757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8758rm -f conftest.i conftest.err conftest.$ac_ext
8759if $ac_preproc_ok; then :
9c60689e 8760
a243b558
JF
8761else
8762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8764as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8765See \`config.log' for more details" "$LINENO" 5; }
8766fi
9c60689e 8767
a243b558
JF
8768ac_ext=c
8769ac_cpp='$CPP $CPPFLAGS'
8770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8773
8774
a243b558
JF
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8776$as_echo_n "checking for ANSI C header files... " >&6; }
8777if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8778 $as_echo_n "(cached) " >&6
8779else
a243b558
JF
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h. */
8782#include <stdlib.h>
8783#include <stdarg.h>
8784#include <string.h>
8785#include <float.h>
9c60689e 8786
a243b558
JF
8787int
8788main ()
8789{
9c60689e 8790
a243b558
JF
8791 ;
8792 return 0;
8793}
8794_ACEOF
8795if ac_fn_c_try_compile "$LINENO"; then :
8796 ac_cv_header_stdc=yes
8797else
8798 ac_cv_header_stdc=no
9c60689e 8799fi
a243b558
JF
8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801
8802if test $ac_cv_header_stdc = yes; then
8803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805/* end confdefs.h. */
8806#include <string.h>
9c60689e 8807
a243b558
JF
8808_ACEOF
8809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8811
a243b558
JF
8812else
8813 ac_cv_header_stdc=no
8814fi
8815rm -f conftest*
9c60689e 8816
a243b558
JF
8817fi
8818
8819if test $ac_cv_header_stdc = yes; then
8820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822/* end confdefs.h. */
8823#include <stdlib.h>
8824
8825_ACEOF
8826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8828
9c60689e 8829else
a243b558 8830 ac_cv_header_stdc=no
9c60689e 8831fi
a243b558 8832rm -f conftest*
9c60689e 8833
a243b558 8834fi
9c60689e 8835
a243b558
JF
8836if test $ac_cv_header_stdc = yes; then
8837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8838 if test "$cross_compiling" = yes; then :
8839 :
8840else
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h. */
8843#include <ctype.h>
8844#include <stdlib.h>
8845#if ((' ' & 0x0FF) == 0x020)
8846# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8847# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8848#else
8849# define ISLOWER(c) \
8850 (('a' <= (c) && (c) <= 'i') \
8851 || ('j' <= (c) && (c) <= 'r') \
8852 || ('s' <= (c) && (c) <= 'z'))
8853# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8854#endif
9c60689e 8855
a243b558
JF
8856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8857int
8858main ()
8859{
8860 int i;
8861 for (i = 0; i < 256; i++)
8862 if (XOR (islower (i), ISLOWER (i))
8863 || toupper (i) != TOUPPER (i))
8864 return 2;
8865 return 0;
8866}
8867_ACEOF
8868if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8869
a243b558
JF
8870else
8871 ac_cv_header_stdc=no
8872fi
8873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8874 conftest.$ac_objext conftest.beam conftest.$ac_ext
8875fi
9c60689e 8876
a243b558
JF
8877fi
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8880$as_echo "$ac_cv_header_stdc" >&6; }
8881if test $ac_cv_header_stdc = yes; then
9c60689e 8882
a243b558 8883$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8884
a243b558 8885fi
9c60689e 8886
a243b558
JF
8887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8888for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8889 inttypes.h stdint.h unistd.h
8890do :
8891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8892ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8893"
8894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8895 cat >>confdefs.h <<_ACEOF
8896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897_ACEOF
9c60689e 8898
a243b558 8899fi
ee134472 8900
a243b558 8901done
ee134472 8902
9c60689e 8903
a243b558
JF
8904for ac_header in dlfcn.h
8905do :
8906 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8907"
8908if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8909 cat >>confdefs.h <<_ACEOF
8910#define HAVE_DLFCN_H 1
8911_ACEOF
9c60689e 8912
a243b558 8913fi
9c60689e 8914
a243b558 8915done
9c60689e 8916
9c60689e 8917
9c60689e 8918
9c60689e 8919
a243b558
JF
8920func_stripname_cnf ()
8921{
9d54db95
JF
8922 case $2 in
8923 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8924 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
8925 esac
8926} # func_stripname_cnf
9c60689e 8927
9c60689e 8928
ee134472 8929
a243b558
JF
8930
8931
8932# Set options
8933# Check whether --enable-static was given.
8934if test "${enable_static+set}" = set; then :
8935 enableval=$enable_static; p=${PACKAGE-default}
8936 case $enableval in
8937 yes) enable_static=yes ;;
8938 no) enable_static=no ;;
8939 *)
8940 enable_static=no
8941 # Look at the argument we got. We use all the common list separators.
9d54db95 8942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8943 for pkg in $enableval; do
9d54db95 8944 IFS=$lt_save_ifs
a243b558
JF
8945 if test "X$pkg" = "X$p"; then
8946 enable_static=yes
8947 fi
8948 done
9d54db95 8949 IFS=$lt_save_ifs
9c60689e 8950 ;;
a243b558
JF
8951 esac
8952else
8953 enable_static=no
8954fi
9c60689e 8955
9c60689e 8956
9c60689e 8957
9c60689e 8958
9c60689e 8959
9c60689e 8960
9c60689e 8961
9c60689e 8962
9c60689e 8963
9c60689e 8964
a243b558 8965 enable_dlopen=no
9c60689e 8966
9c60689e 8967
a243b558
JF
8968 enable_win32_dll=no
8969
8970
8971 # Check whether --enable-shared was given.
8972if test "${enable_shared+set}" = set; then :
8973 enableval=$enable_shared; p=${PACKAGE-default}
8974 case $enableval in
8975 yes) enable_shared=yes ;;
8976 no) enable_shared=no ;;
9c60689e 8977 *)
a243b558
JF
8978 enable_shared=no
8979 # Look at the argument we got. We use all the common list separators.
9d54db95 8980 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8981 for pkg in $enableval; do
9d54db95 8982 IFS=$lt_save_ifs
a243b558
JF
8983 if test "X$pkg" = "X$p"; then
8984 enable_shared=yes
8985 fi
8986 done
9d54db95 8987 IFS=$lt_save_ifs
9c60689e
DWT
8988 ;;
8989 esac
a243b558
JF
8990else
8991 enable_shared=yes
8992fi
9c60689e 8993
9c60689e 8994
9c60689e 8995
9c60689e 8996
9c60689e 8997
9c60689e 8998
9c60689e 8999
9c60689e 9000
9c60689e 9001
9c60689e 9002
9c60689e 9003
a243b558
JF
9004# Check whether --with-pic was given.
9005if test "${with_pic+set}" = set; then :
9006 withval=$with_pic; lt_p=${PACKAGE-default}
9007 case $withval in
9008 yes|no) pic_mode=$withval ;;
9009 *)
9010 pic_mode=default
9011 # Look at the argument we got. We use all the common list separators.
9d54db95 9012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9013 for lt_pkg in $withval; do
9d54db95 9014 IFS=$lt_save_ifs
a243b558
JF
9015 if test "X$lt_pkg" = "X$lt_p"; then
9016 pic_mode=yes
9017 fi
9018 done
9d54db95 9019 IFS=$lt_save_ifs
a243b558
JF
9020 ;;
9021 esac
9022else
9023 pic_mode=default
9c60689e 9024fi
ee134472 9025
ee134472 9026
9c60689e 9027
9c60689e 9028
9c60689e 9029
ee134472 9030
ee134472 9031
9c60689e 9032
a243b558
JF
9033 # Check whether --enable-fast-install was given.
9034if test "${enable_fast_install+set}" = set; then :
9035 enableval=$enable_fast_install; p=${PACKAGE-default}
9036 case $enableval in
9037 yes) enable_fast_install=yes ;;
9038 no) enable_fast_install=no ;;
9039 *)
9040 enable_fast_install=no
9041 # Look at the argument we got. We use all the common list separators.
9d54db95 9042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9043 for pkg in $enableval; do
9d54db95 9044 IFS=$lt_save_ifs
a243b558
JF
9045 if test "X$pkg" = "X$p"; then
9046 enable_fast_install=yes
9c60689e 9047 fi
a243b558 9048 done
9d54db95 9049 IFS=$lt_save_ifs
9c60689e 9050 ;;
a243b558
JF
9051 esac
9052else
9053 enable_fast_install=yes
9054fi
9c60689e 9055
9c60689e 9056
9c60689e 9057
9c60689e 9058
9c60689e
DWT
9059
9060
53ba6704 9061
9c60689e 9062
9d54db95
JF
9063 shared_archive_member_spec=
9064case $host,$enable_shared in
9065power*-*-aix[5-9]*,yes)
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9067$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9068
9069# Check whether --with-aix-soname was given.
9070if test "${with_aix_soname+set}" = set; then :
9071 withval=$with_aix_soname; case $withval in
9072 aix|svr4|both)
9073 ;;
9074 *)
9075 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9076 ;;
9077 esac
9078 lt_cv_with_aix_soname=$with_aix_soname
9079else
9080 if ${lt_cv_with_aix_soname+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082else
9083 lt_cv_with_aix_soname=aix
9084fi
9085
9086 with_aix_soname=$lt_cv_with_aix_soname
9087fi
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9090$as_echo "$with_aix_soname" >&6; }
9091 if test aix != "$with_aix_soname"; then
9092 # For the AIX way of multilib, we name the shared archive member
9093 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9094 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9095 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9096 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9097 if test 64 = "${OBJECT_MODE-32}"; then
9098 shared_archive_member_spec=shr_64
9099 else
9100 shared_archive_member_spec=shr
9101 fi
9102 fi
9103 ;;
9104*)
9105 with_aix_soname=aix
9106 ;;
9107esac
9108
9109
9110
9111
9112
9113
9114
9c60689e 9115
9c60689e 9116
9c60689e 9117
a243b558 9118# This can be used to rebuild libtool when needed
9d54db95 9119LIBTOOL_DEPS=$ltmain
9c60689e 9120
a243b558
JF
9121# Always use our own libtool.
9122LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 9123
9c60689e 9124
9c60689e 9125
9c60689e 9126
9c60689e 9127
ee134472 9128
ee134472 9129
ee134472 9130
ee134472 9131
9c60689e 9132
9c60689e 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
a243b558 9153test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9d54db95 9168if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
9169 setopt NO_GLOB_SUBST
9170fi
9c60689e 9171
a243b558
JF
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9173$as_echo_n "checking for objdir... " >&6; }
9174if ${lt_cv_objdir+:} false; then :
ee134472
JF
9175 $as_echo_n "(cached) " >&6
9176else
a243b558
JF
9177 rm -f .libs 2>/dev/null
9178mkdir .libs 2>/dev/null
9179if test -d .libs; then
9180 lt_cv_objdir=.libs
9181else
9182 # MS-DOS does not allow filenames that begin with a dot.
9183 lt_cv_objdir=_libs
ee134472 9184fi
a243b558
JF
9185rmdir .libs 2>/dev/null
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9188$as_echo "$lt_cv_objdir" >&6; }
9189objdir=$lt_cv_objdir
9c60689e
DWT
9190
9191
9192
9193
9194
a243b558
JF
9195cat >>confdefs.h <<_ACEOF
9196#define LT_OBJDIR "$lt_cv_objdir/"
9197_ACEOF
9c60689e
DWT
9198
9199
9200
9201
a243b558
JF
9202case $host_os in
9203aix3*)
9204 # AIX sometimes has problems with the GCC collect2 program. For some
9205 # reason, if we set the COLLECT_NAMES environment variable, the problems
9206 # vanish in a puff of smoke.
9d54db95 9207 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
9208 COLLECT_NAMES=
9209 export COLLECT_NAMES
9210 fi
9211 ;;
9212esac
9c60689e 9213
a243b558
JF
9214# Global variables:
9215ofile=libtool
9216can_build_shared=yes
9c60689e 9217
9d54db95 9218# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
9219# which needs '.lib').
9220libext=a
9c60689e 9221
9d54db95 9222with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 9223
9d54db95
JF
9224old_CC=$CC
9225old_CFLAGS=$CFLAGS
9c60689e 9226
a243b558
JF
9227# Set sane defaults for various variables
9228test -z "$CC" && CC=cc
9229test -z "$LTCC" && LTCC=$CC
9230test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9231test -z "$LD" && LD=ld
9232test -z "$ac_objext" && ac_objext=o
9c60689e 9233
9d54db95
JF
9234func_cc_basename $compiler
9235cc_basename=$func_cc_basename_result
9c60689e
DWT
9236
9237
a243b558
JF
9238# Only perform the check for file, if the check method requires it
9239test -z "$MAGIC_CMD" && MAGIC_CMD=file
9240case $deplibs_check_method in
9241file_magic*)
9242 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9244$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9245if ${lt_cv_path_MAGIC_CMD+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247else
9248 case $MAGIC_CMD in
9249[\\/*] | ?:[\\/]*)
9d54db95 9250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9251 ;;
9252*)
9d54db95
JF
9253 lt_save_MAGIC_CMD=$MAGIC_CMD
9254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9256 for ac_dir in $ac_dummy; do
9d54db95 9257 IFS=$lt_save_ifs
a243b558 9258 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9259 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9260 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
9261 if test -n "$file_magic_test_file"; then
9262 case $deplibs_check_method in
9263 "file_magic "*)
9264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9267 $EGREP "$file_magic_regex" > /dev/null; then
9268 :
9269 else
9270 cat <<_LT_EOF 1>&2
9c60689e 9271
a243b558
JF
9272*** Warning: the command libtool uses to detect shared libraries,
9273*** $file_magic_cmd, produces output that libtool cannot recognize.
9274*** The result is that libtool may fail to recognize shared libraries
9275*** as such. This will affect the creation of libtool libraries that
9276*** depend on shared libraries, but programs linked with such libtool
9277*** libraries will work regardless of this problem. Nevertheless, you
9278*** may want to report the problem to your system manager and/or to
9279*** bug-libtool@gnu.org
9c60689e 9280
a243b558
JF
9281_LT_EOF
9282 fi ;;
9283 esac
9284 fi
9285 break
9286 fi
9287 done
9d54db95
JF
9288 IFS=$lt_save_ifs
9289 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9290 ;;
9291esac
9292fi
9c60689e 9293
9d54db95 9294MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9295if test -n "$MAGIC_CMD"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9297$as_echo "$MAGIC_CMD" >&6; }
9298else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9c60689e
DWT
9302
9303
9304
9305
9306
a243b558
JF
9307if test -z "$lt_cv_path_MAGIC_CMD"; then
9308 if test -n "$ac_tool_prefix"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9310$as_echo_n "checking for file... " >&6; }
9311if ${lt_cv_path_MAGIC_CMD+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313else
9314 case $MAGIC_CMD in
9315[\\/*] | ?:[\\/]*)
9d54db95 9316 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9317 ;;
9318*)
9d54db95
JF
9319 lt_save_MAGIC_CMD=$MAGIC_CMD
9320 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322 for ac_dir in $ac_dummy; do
9d54db95 9323 IFS=$lt_save_ifs
a243b558 9324 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9325 if test -f "$ac_dir/file"; then
9326 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
9327 if test -n "$file_magic_test_file"; then
9328 case $deplibs_check_method in
9329 "file_magic "*)
9330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9331 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333 $EGREP "$file_magic_regex" > /dev/null; then
9334 :
9335 else
9336 cat <<_LT_EOF 1>&2
9c60689e 9337
a243b558
JF
9338*** Warning: the command libtool uses to detect shared libraries,
9339*** $file_magic_cmd, produces output that libtool cannot recognize.
9340*** The result is that libtool may fail to recognize shared libraries
9341*** as such. This will affect the creation of libtool libraries that
9342*** depend on shared libraries, but programs linked with such libtool
9343*** libraries will work regardless of this problem. Nevertheless, you
9344*** may want to report the problem to your system manager and/or to
9345*** bug-libtool@gnu.org
9c60689e 9346
a243b558
JF
9347_LT_EOF
9348 fi ;;
9349 esac
9350 fi
9351 break
9352 fi
9353 done
9d54db95
JF
9354 IFS=$lt_save_ifs
9355 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9356 ;;
9357esac
9358fi
9c60689e 9359
9d54db95 9360MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9361if test -n "$MAGIC_CMD"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363$as_echo "$MAGIC_CMD" >&6; }
9364else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
9367fi
9c60689e
DWT
9368
9369
a243b558
JF
9370 else
9371 MAGIC_CMD=:
9372 fi
9373fi
9c60689e 9374
a243b558
JF
9375 fi
9376 ;;
9377esac
9c60689e 9378
a243b558 9379# Use C for the default configuration in the libtool script
9c60689e 9380
9d54db95 9381lt_save_CC=$CC
a243b558
JF
9382ac_ext=c
9383ac_cpp='$CPP $CPPFLAGS'
9384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9387
9388
a243b558
JF
9389# Source file extension for C test sources.
9390ac_ext=c
9c60689e 9391
a243b558
JF
9392# Object file extension for compiled C test sources.
9393objext=o
9394objext=$objext
9c60689e 9395
a243b558
JF
9396# Code to be used in simple compile tests
9397lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9398
a243b558
JF
9399# Code to be used in simple link tests
9400lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9401
9402
9403
9404
9405
9406
9407
a243b558
JF
9408# If no C compiler was specified, use CC.
9409LTCC=${LTCC-"$CC"}
9c60689e 9410
a243b558
JF
9411# If no C compiler flags were specified, use CFLAGS.
9412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9413
a243b558
JF
9414# Allow CC to be a program name with arguments.
9415compiler=$CC
9c60689e 9416
a243b558
JF
9417# Save the default compiler, since it gets overwritten when the other
9418# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9419compiler_DEFAULT=$CC
9c60689e 9420
a243b558
JF
9421# save warnings/boilerplate of simple test code
9422ac_outfile=conftest.$ac_objext
9423echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9424eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9425_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9426$RM -r conftest*
9c60689e 9427
a243b558
JF
9428ac_outfile=conftest.$ac_objext
9429echo "$lt_simple_link_test_code" >conftest.$ac_ext
9430eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9431_lt_linker_boilerplate=`cat conftest.err`
9432$RM -r conftest*
9c60689e
DWT
9433
9434
a243b558
JF
9435## CAVEAT EMPTOR:
9436## There is no encapsulation within the following macros, do not change
9437## the running order or otherwise move them around unless you know exactly
9438## what you are doing...
9439if test -n "$compiler"; then
9c60689e 9440
a243b558 9441lt_prog_compiler_no_builtin_flag=
9c60689e 9442
9d54db95 9443if test yes = "$GCC"; then
a243b558
JF
9444 case $cc_basename in
9445 nvcc*)
9446 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9447 *)
9448 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9449 esac
9c60689e 9450
a243b558
JF
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9452$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9453if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455else
9456 lt_cv_prog_compiler_rtti_exceptions=no
9457 ac_outfile=conftest.$ac_objext
9458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9459 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9460 # Insert the option either (1) after the last *FLAGS variable, or
9461 # (2) before a word containing "conftest.", or (3) at the end.
9462 # Note that $ac_compile itself does not contain backslashes and begins
9463 # with a dollar sign (not a hyphen), so the echo should work correctly.
9464 # The option is referenced via a variable to avoid confusing sed.
9465 lt_compile=`echo "$ac_compile" | $SED \
9466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468 -e 's:$: $lt_compiler_flag:'`
9469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470 (eval "$lt_compile" 2>conftest.err)
9471 ac_status=$?
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 if (exit $ac_status) && test -s "$ac_outfile"; then
9475 # The compiler can only warn and ignore the option if not recognized
9476 # So say no if there are warnings other than the usual output.
9477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler_rtti_exceptions=yes
9481 fi
9482 fi
00a96142 9483 $RM -r conftest*
9c60689e 9484
a243b558
JF
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9487$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9488
9d54db95 9489if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
9490 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9491else
9492 :
9493fi
9c60689e 9494
a243b558 9495fi
9c60689e
DWT
9496
9497
9498
9499
9500
9501
a243b558
JF
9502 lt_prog_compiler_wl=
9503lt_prog_compiler_pic=
9504lt_prog_compiler_static=
9c60689e
DWT
9505
9506
9d54db95 9507 if test yes = "$GCC"; then
a243b558
JF
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_static='-static'
9c60689e 9510
a243b558
JF
9511 case $host_os in
9512 aix*)
9513 # All AIX code is PIC.
9d54db95 9514 if test ia64 = "$host_cpu"; then
a243b558
JF
9515 # AIX 5 now supports IA64 processor
9516 lt_prog_compiler_static='-Bstatic'
9517 fi
9d54db95 9518 lt_prog_compiler_pic='-fPIC'
a243b558 9519 ;;
9c60689e 9520
a243b558
JF
9521 amigaos*)
9522 case $host_cpu in
9523 powerpc)
9524 # see comment about AmigaOS4 .so support
9525 lt_prog_compiler_pic='-fPIC'
9526 ;;
9527 m68k)
9528 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
9529 # adding the '-m68020' flag to GCC prevents building anything better,
9530 # like '-m68040'.
a243b558
JF
9531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9532 ;;
9533 esac
9534 ;;
9c60689e 9535
a243b558
JF
9536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9537 # PIC is the default for these OSes.
9538 ;;
9c60689e 9539
a243b558
JF
9540 mingw* | cygwin* | pw32* | os2* | cegcc*)
9541 # This hack is so that the source file can tell whether it is being
9542 # built for inclusion in a dll (and should export symbols for example).
9543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9544 # (--disable-auto-import) libraries
9545 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9546 case $host_os in
9547 os2*)
9548 lt_prog_compiler_static='$wl-static'
9549 ;;
9550 esac
a243b558 9551 ;;
9c60689e 9552
a243b558
JF
9553 darwin* | rhapsody*)
9554 # PIC is the default on this platform
9555 # Common symbols not allowed in MH_DYLIB files
9556 lt_prog_compiler_pic='-fno-common'
9557 ;;
9c60689e 9558
a243b558
JF
9559 haiku*)
9560 # PIC is the default for Haiku.
9561 # The "-static" flag exists, but is broken.
9562 lt_prog_compiler_static=
9563 ;;
9c60689e 9564
a243b558
JF
9565 hpux*)
9566 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9567 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9568 # sets the default TLS model and affects inlining.
9569 case $host_cpu in
9570 hppa*64*)
9571 # +Z the default
9572 ;;
9573 *)
9574 lt_prog_compiler_pic='-fPIC'
9575 ;;
9576 esac
9577 ;;
9c60689e 9578
a243b558
JF
9579 interix[3-9]*)
9580 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9581 # Instead, we relocate shared libraries at runtime.
9582 ;;
9c60689e 9583
a243b558
JF
9584 msdosdjgpp*)
9585 # Just because we use GCC doesn't mean we suddenly get shared libraries
9586 # on systems that don't support them.
9587 lt_prog_compiler_can_build_shared=no
9588 enable_shared=no
9589 ;;
9c60689e 9590
a243b558
JF
9591 *nto* | *qnx*)
9592 # QNX uses GNU C++, but need to define -shared option too, otherwise
9593 # it will coredump.
9594 lt_prog_compiler_pic='-fPIC -shared'
9595 ;;
9c60689e 9596
a243b558
JF
9597 sysv4*MP*)
9598 if test -d /usr/nec; then
9599 lt_prog_compiler_pic=-Kconform_pic
9600 fi
9601 ;;
9c60689e 9602
a243b558
JF
9603 *)
9604 lt_prog_compiler_pic='-fPIC'
9605 ;;
9606 esac
9c60689e 9607
a243b558
JF
9608 case $cc_basename in
9609 nvcc*) # Cuda Compiler Driver 2.2
9610 lt_prog_compiler_wl='-Xlinker '
9611 if test -n "$lt_prog_compiler_pic"; then
9612 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9613 fi
9614 ;;
9615 esac
9616 else
9617 # PORTME Check for flag to pass linker flags through the system compiler.
9618 case $host_os in
9619 aix*)
9620 lt_prog_compiler_wl='-Wl,'
9d54db95 9621 if test ia64 = "$host_cpu"; then
a243b558
JF
9622 # AIX 5 now supports IA64 processor
9623 lt_prog_compiler_static='-Bstatic'
9624 else
9625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9626 fi
9627 ;;
9c60689e 9628
9d54db95
JF
9629 darwin* | rhapsody*)
9630 # PIC is the default on this platform
9631 # Common symbols not allowed in MH_DYLIB files
9632 lt_prog_compiler_pic='-fno-common'
9633 case $cc_basename in
9634 nagfor*)
9635 # NAG Fortran compiler
9636 lt_prog_compiler_wl='-Wl,-Wl,,'
9637 lt_prog_compiler_pic='-PIC'
9638 lt_prog_compiler_static='-Bstatic'
9639 ;;
9640 esac
9641 ;;
9642
a243b558
JF
9643 mingw* | cygwin* | pw32* | os2* | cegcc*)
9644 # This hack is so that the source file can tell whether it is being
9645 # built for inclusion in a dll (and should export symbols for example).
9646 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9647 case $host_os in
9648 os2*)
9649 lt_prog_compiler_static='$wl-static'
9650 ;;
9651 esac
a243b558 9652 ;;
9c60689e 9653
a243b558
JF
9654 hpux9* | hpux10* | hpux11*)
9655 lt_prog_compiler_wl='-Wl,'
9656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9657 # not for PA HP-UX.
9658 case $host_cpu in
9659 hppa*64*|ia64*)
9660 # +Z the default
9661 ;;
9662 *)
9663 lt_prog_compiler_pic='+Z'
9664 ;;
9665 esac
9666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 9667 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 9668 ;;
9c60689e 9669
a243b558
JF
9670 irix5* | irix6* | nonstopux*)
9671 lt_prog_compiler_wl='-Wl,'
9672 # PIC (with -KPIC) is the default.
9673 lt_prog_compiler_static='-non_shared'
9674 ;;
9c60689e 9675
9d54db95 9676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 9677 case $cc_basename in
9d54db95 9678 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
9679 ecc*)
9680 lt_prog_compiler_wl='-Wl,'
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-static'
9683 ;;
9684 # icc used to be incompatible with GCC.
9685 # ICC 10 doesn't accept -KPIC any more.
9686 icc* | ifort*)
9687 lt_prog_compiler_wl='-Wl,'
9688 lt_prog_compiler_pic='-fPIC'
9689 lt_prog_compiler_static='-static'
9690 ;;
9691 # Lahey Fortran 8.1.
9692 lf95*)
9693 lt_prog_compiler_wl='-Wl,'
9694 lt_prog_compiler_pic='--shared'
9695 lt_prog_compiler_static='--static'
9696 ;;
9697 nagfor*)
9698 # NAG Fortran compiler
9699 lt_prog_compiler_wl='-Wl,-Wl,,'
9700 lt_prog_compiler_pic='-PIC'
9701 lt_prog_compiler_static='-Bstatic'
9702 ;;
9d54db95
JF
9703 tcc*)
9704 # Fabrice Bellard et al's Tiny C Compiler
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-fPIC'
9707 lt_prog_compiler_static='-static'
9708 ;;
a243b558
JF
9709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9710 # Portland Group compilers (*not* the Pentium gcc compiler,
9711 # which looks to be a dead project)
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-fpic'
9714 lt_prog_compiler_static='-Bstatic'
9715 ;;
9716 ccc*)
9717 lt_prog_compiler_wl='-Wl,'
9718 # All Alpha code is PIC.
9719 lt_prog_compiler_static='-non_shared'
9720 ;;
9721 xl* | bgxl* | bgf* | mpixl*)
9722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9723 lt_prog_compiler_wl='-Wl,'
9724 lt_prog_compiler_pic='-qpic'
9725 lt_prog_compiler_static='-qstaticlink'
9726 ;;
9727 *)
9728 case `$CC -V 2>&1 | sed 5q` in
9729 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9731 lt_prog_compiler_pic='-KPIC'
9732 lt_prog_compiler_static='-Bstatic'
9733 lt_prog_compiler_wl=''
9734 ;;
9735 *Sun\ F* | *Sun*Fortran*)
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 lt_prog_compiler_wl='-Qoption ld '
9739 ;;
9740 *Sun\ C*)
9741 # Sun C 5.9
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 lt_prog_compiler_wl='-Wl,'
9745 ;;
9746 *Intel*\ [CF]*Compiler*)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_pic='-fPIC'
9749 lt_prog_compiler_static='-static'
9750 ;;
9751 *Portland\ Group*)
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_pic='-fpic'
9754 lt_prog_compiler_static='-Bstatic'
9755 ;;
9756 esac
9757 ;;
9758 esac
9759 ;;
9c60689e 9760
a243b558
JF
9761 newsos6)
9762 lt_prog_compiler_pic='-KPIC'
9763 lt_prog_compiler_static='-Bstatic'
9764 ;;
9c60689e 9765
a243b558
JF
9766 *nto* | *qnx*)
9767 # QNX uses GNU C++, but need to define -shared option too, otherwise
9768 # it will coredump.
9769 lt_prog_compiler_pic='-fPIC -shared'
9770 ;;
9c60689e 9771
a243b558
JF
9772 osf3* | osf4* | osf5*)
9773 lt_prog_compiler_wl='-Wl,'
9774 # All OSF/1 code is PIC.
9775 lt_prog_compiler_static='-non_shared'
9776 ;;
9c60689e 9777
a243b558
JF
9778 rdos*)
9779 lt_prog_compiler_static='-non_shared'
9780 ;;
9c60689e 9781
a243b558
JF
9782 solaris*)
9783 lt_prog_compiler_pic='-KPIC'
9784 lt_prog_compiler_static='-Bstatic'
9785 case $cc_basename in
9786 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9787 lt_prog_compiler_wl='-Qoption ld ';;
9788 *)
9789 lt_prog_compiler_wl='-Wl,';;
9790 esac
9791 ;;
9c60689e 9792
a243b558
JF
9793 sunos4*)
9794 lt_prog_compiler_wl='-Qoption ld '
9795 lt_prog_compiler_pic='-PIC'
9796 lt_prog_compiler_static='-Bstatic'
9797 ;;
9c60689e 9798
a243b558
JF
9799 sysv4 | sysv4.2uw2* | sysv4.3*)
9800 lt_prog_compiler_wl='-Wl,'
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9803 ;;
9c60689e 9804
a243b558 9805 sysv4*MP*)
9d54db95 9806 if test -d /usr/nec; then
a243b558
JF
9807 lt_prog_compiler_pic='-Kconform_pic'
9808 lt_prog_compiler_static='-Bstatic'
9809 fi
9810 ;;
9c60689e 9811
a243b558
JF
9812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9813 lt_prog_compiler_wl='-Wl,'
9814 lt_prog_compiler_pic='-KPIC'
9815 lt_prog_compiler_static='-Bstatic'
9816 ;;
9c60689e 9817
a243b558
JF
9818 unicos*)
9819 lt_prog_compiler_wl='-Wl,'
9820 lt_prog_compiler_can_build_shared=no
9821 ;;
9c60689e 9822
a243b558
JF
9823 uts4*)
9824 lt_prog_compiler_pic='-pic'
9825 lt_prog_compiler_static='-Bstatic'
9826 ;;
9c60689e 9827
a243b558
JF
9828 *)
9829 lt_prog_compiler_can_build_shared=no
9830 ;;
9831 esac
9832 fi
9c60689e 9833
a243b558 9834case $host_os in
9d54db95 9835 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
9836 *djgpp*)
9837 lt_prog_compiler_pic=
9838 ;;
9839 *)
9840 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9841 ;;
9842esac
9c60689e 9843
a243b558
JF
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9845$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9846if ${lt_cv_prog_compiler_pic+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848else
9849 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9852$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9853lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9854
a243b558
JF
9855#
9856# Check to make sure the PIC flag actually works.
9857#
9858if test -n "$lt_prog_compiler_pic"; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9860$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9861if ${lt_cv_prog_compiler_pic_works+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863else
9864 lt_cv_prog_compiler_pic_works=no
9865 ac_outfile=conftest.$ac_objext
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9868 # Insert the option either (1) after the last *FLAGS variable, or
9869 # (2) before a word containing "conftest.", or (3) at the end.
9870 # Note that $ac_compile itself does not contain backslashes and begins
9871 # with a dollar sign (not a hyphen), so the echo should work correctly.
9872 # The option is referenced via a variable to avoid confusing sed.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>conftest.err)
9879 ac_status=$?
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s "$ac_outfile"; then
9883 # The compiler can only warn and ignore the option if not recognized
9884 # So say no if there are warnings other than the usual output.
9885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9888 lt_cv_prog_compiler_pic_works=yes
9889 fi
9890 fi
00a96142 9891 $RM -r conftest*
9c60689e 9892
a243b558
JF
9893fi
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9895$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9896
9d54db95 9897if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
9898 case $lt_prog_compiler_pic in
9899 "" | " "*) ;;
9900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9901 esac
9902else
9903 lt_prog_compiler_pic=
9904 lt_prog_compiler_can_build_shared=no
9905fi
9c60689e 9906
a243b558 9907fi
9c60689e
DWT
9908
9909
9910
9911
9912
9913
9c60689e
DWT
9914
9915
9916
9917
9918
a243b558
JF
9919#
9920# Check to make sure the static flag actually works.
9921#
9922wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9924$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9925if ${lt_cv_prog_compiler_static_works+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927else
9928 lt_cv_prog_compiler_static_works=no
9d54db95 9929 save_LDFLAGS=$LDFLAGS
a243b558
JF
9930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9933 # The linker can only warn and ignore the option if not recognized
9934 # So say no if there are warnings
9935 if test -s conftest.err; then
9936 # Append any errors to the config.log.
9937 cat conftest.err 1>&5
9938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9940 if diff conftest.exp conftest.er2 >/dev/null; then
9941 lt_cv_prog_compiler_static_works=yes
9942 fi
9943 else
9944 lt_cv_prog_compiler_static_works=yes
9945 fi
9946 fi
9947 $RM -r conftest*
9d54db95 9948 LDFLAGS=$save_LDFLAGS
9c60689e 9949
a243b558
JF
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9952$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9953
9d54db95 9954if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 9955 :
9c60689e 9956else
a243b558 9957 lt_prog_compiler_static=
9c60689e 9958fi
9c60689e 9959
9c60689e 9960
9c60689e 9961
9c60689e 9962
9c60689e 9963
9c60689e 9964
9c60689e 9965
a243b558
JF
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9967$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9968if ${lt_cv_prog_compiler_c_o+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970else
9971 lt_cv_prog_compiler_c_o=no
9972 $RM -r conftest 2>/dev/null
9973 mkdir conftest
9974 cd conftest
9975 mkdir out
9976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9977
a243b558
JF
9978 lt_compiler_flag="-o out/conftest2.$ac_objext"
9979 # Insert the option either (1) after the last *FLAGS variable, or
9980 # (2) before a word containing "conftest.", or (3) at the end.
9981 # Note that $ac_compile itself does not contain backslashes and begins
9982 # with a dollar sign (not a hyphen), so the echo should work correctly.
9983 lt_compile=`echo "$ac_compile" | $SED \
9984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9986 -e 's:$: $lt_compiler_flag:'`
9987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9988 (eval "$lt_compile" 2>out/conftest.err)
9989 ac_status=$?
9990 cat out/conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9993 then
9994 # The compiler can only warn and ignore the option if not recognized
9995 # So say no if there are warnings
9996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9999 lt_cv_prog_compiler_c_o=yes
10000 fi
10001 fi
10002 chmod u+w . 2>&5
00a96142 10003 $RM -r conftest*
a243b558
JF
10004 # SGI C++ compiler will create directory out/ii_files/ for
10005 # template instantiation
10006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10007 $RM out/* && rmdir out
10008 cd ..
10009 $RM -r conftest
00a96142 10010 $RM -r conftest*
9c60689e 10011
a243b558
JF
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10014$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10015
ee134472 10016
ee134472 10017
ee134472 10018
ee134472 10019
9c60689e 10020
a243b558
JF
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10022$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10023if ${lt_cv_prog_compiler_c_o+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025else
10026 lt_cv_prog_compiler_c_o=no
10027 $RM -r conftest 2>/dev/null
10028 mkdir conftest
10029 cd conftest
10030 mkdir out
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 10032
a243b558
JF
10033 lt_compiler_flag="-o out/conftest2.$ac_objext"
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 lt_compile=`echo "$ac_compile" | $SED \
10039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041 -e 's:$: $lt_compiler_flag:'`
10042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043 (eval "$lt_compile" 2>out/conftest.err)
10044 ac_status=$?
10045 cat out/conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10048 then
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_c_o=yes
10055 fi
10056 fi
10057 chmod u+w . 2>&5
00a96142 10058 $RM -r conftest*
a243b558
JF
10059 # SGI C++ compiler will create directory out/ii_files/ for
10060 # template instantiation
10061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10062 $RM out/* && rmdir out
10063 cd ..
10064 $RM -r conftest
00a96142 10065 $RM -r conftest*
9c60689e 10066
a243b558
JF
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10069$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10070
9c60689e 10071
a243b558
JF
10072
10073
9d54db95
JF
10074hard_links=nottested
10075if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
10076 # do not overwrite the value of need_locks provided by the user
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10078$as_echo_n "checking if we can lock with hard links... " >&6; }
10079 hard_links=yes
00a96142 10080 $RM -r conftest*
a243b558
JF
10081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10082 touch conftest.a
10083 ln conftest.a conftest.b 2>&5 || hard_links=no
10084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10086$as_echo "$hard_links" >&6; }
9d54db95
JF
10087 if test no = "$hard_links"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10089$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 10090 need_locks=warn
9c60689e 10091 fi
a243b558
JF
10092else
10093 need_locks=no
10094fi
9c60689e 10095
ee134472 10096
9c60689e 10097
9c60689e 10098
9c60689e 10099
a243b558
JF
10100
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10102$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10103
10104 runpath_var=
10105 allow_undefined_flag=
10106 always_export_symbols=no
10107 archive_cmds=
10108 archive_expsym_cmds=
10109 compiler_needs_object=no
10110 enable_shared_with_static_runtimes=no
10111 export_dynamic_flag_spec=
10112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10113 hardcode_automatic=no
10114 hardcode_direct=no
10115 hardcode_direct_absolute=no
10116 hardcode_libdir_flag_spec=
10117 hardcode_libdir_separator=
10118 hardcode_minus_L=no
10119 hardcode_shlibpath_var=unsupported
10120 inherit_rpath=no
10121 link_all_deplibs=unknown
10122 module_cmds=
10123 module_expsym_cmds=
10124 old_archive_from_new_cmds=
10125 old_archive_from_expsyms_cmds=
10126 thread_safe_flag_spec=
10127 whole_archive_flag_spec=
10128 # include_expsyms should be a list of space-separated symbols to be *always*
10129 # included in the symbol list
10130 include_expsyms=
10131 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
10132 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10133 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10134 # as well as any symbol that contains 'd'.
a243b558
JF
10135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10137 # platforms (ab)use it in PIC code, but their linkers get confused if
10138 # the symbol is explicitly referenced. Since portable code cannot
10139 # rely on this symbol name, it's probably fine to never include it in
10140 # preloaded symbol tables.
10141 # Exclude shared library initialization/finalization symbols.
10142 extract_expsyms_cmds=
10143
9c60689e 10144 case $host_os in
a243b558
JF
10145 cygwin* | mingw* | pw32* | cegcc*)
10146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10147 # When not using gcc, we currently assume that we are using
10148 # Microsoft Visual C++.
9d54db95 10149 if test yes != "$GCC"; then
a243b558
JF
10150 with_gnu_ld=no
10151 fi
9c60689e 10152 ;;
a243b558
JF
10153 interix*)
10154 # we just hope/assume this is gcc and not c89 (= MSVC++)
10155 with_gnu_ld=yes
10156 ;;
9d54db95 10157 openbsd* | bitrig*)
a243b558 10158 with_gnu_ld=no
9c60689e
DWT
10159 ;;
10160 esac
9c60689e 10161
a243b558 10162 ld_shlibs=yes
ee134472 10163
a243b558
JF
10164 # On some targets, GNU ld is compatible enough with the native linker
10165 # that we're better off using the native interface for both.
10166 lt_use_gnu_ld_interface=no
9d54db95 10167 if test yes = "$with_gnu_ld"; then
a243b558
JF
10168 case $host_os in
10169 aix*)
10170 # The AIX port of GNU ld has always aspired to compatibility
10171 # with the native linker. However, as the warning in the GNU ld
10172 # block says, versions before 2.19.5* couldn't really create working
10173 # shared libraries, regardless of the interface used.
10174 case `$LD -v 2>&1` in
10175 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10176 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10177 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10178 *)
10179 lt_use_gnu_ld_interface=yes
10180 ;;
10181 esac
10182 ;;
10183 *)
10184 lt_use_gnu_ld_interface=yes
10185 ;;
10186 esac
10187 fi
9c60689e 10188
9d54db95 10189 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 10190 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 10191 wlarc='$wl'
9c60689e 10192
a243b558
JF
10193 # Set some defaults for GNU ld with shared library support. These
10194 # are reset later if shared libraries are not supported. Putting them
10195 # here allows them to be overridden if necessary.
10196 runpath_var=LD_RUN_PATH
9d54db95
JF
10197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10198 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
10199 # ancient GNU ld didn't support --whole-archive et. al.
10200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 10201 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
10202 else
10203 whole_archive_flag_spec=
10204 fi
10205 supports_anon_versioning=no
9d54db95 10206 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
10207 *GNU\ gold*) supports_anon_versioning=yes ;;
10208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10211 *\ 2.11.*) ;; # other 2.11 versions
10212 *) supports_anon_versioning=yes ;;
10213 esac
ee134472 10214
a243b558
JF
10215 # See if GNU ld supports shared libraries.
10216 case $host_os in
10217 aix[3-9]*)
10218 # On AIX/PPC, the GNU linker is very broken
9d54db95 10219 if test ia64 != "$host_cpu"; then
a243b558
JF
10220 ld_shlibs=no
10221 cat <<_LT_EOF 1>&2
ee134472 10222
a243b558
JF
10223*** Warning: the GNU linker, at least up to release 2.19, is reported
10224*** to be unable to reliably create shared libraries on AIX.
10225*** Therefore, libtool is disabling shared libraries support. If you
10226*** really care for shared libraries, you may want to install binutils
10227*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10228*** You will then need to restart the configuration process.
9c60689e 10229
a243b558
JF
10230_LT_EOF
10231 fi
10232 ;;
9c60689e 10233
a243b558
JF
10234 amigaos*)
10235 case $host_cpu in
10236 powerpc)
10237 # see comment about AmigaOS4 .so support
9d54db95 10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10239 archive_expsym_cmds=''
10240 ;;
10241 m68k)
10242 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)'
10243 hardcode_libdir_flag_spec='-L$libdir'
10244 hardcode_minus_L=yes
10245 ;;
10246 esac
10247 ;;
9c60689e 10248
a243b558
JF
10249 beos*)
10250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251 allow_undefined_flag=unsupported
10252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10253 # support --undefined. This deserves some investigation. FIXME
9d54db95 10254 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10255 else
10256 ld_shlibs=no
10257 fi
10258 ;;
9c60689e 10259
a243b558
JF
10260 cygwin* | mingw* | pw32* | cegcc*)
10261 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10262 # as there is no search path for DLLs.
10263 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 10264 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=no
10267 enable_shared_with_static_runtimes=yes
10268 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'
10269 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 10270
a243b558 10271 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
10272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10273 # If the export-symbols file already is a .def file, use it as
10274 # is; otherwise, prepend EXPORTS...
10275 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10276 cp $export_symbols $output_objdir/$soname.def;
10277 else
10278 echo EXPORTS > $output_objdir/$soname.def;
10279 cat $export_symbols >> $output_objdir/$soname.def;
10280 fi~
10281 $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
10282 else
10283 ld_shlibs=no
10284 fi
10285 ;;
9c60689e 10286
a243b558 10287 haiku*)
9d54db95 10288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10289 link_all_deplibs=yes
10290 ;;
9c60689e 10291
9d54db95
JF
10292 os2*)
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_minus_L=yes
10295 allow_undefined_flag=unsupported
10296 shrext_cmds=.dll
10297 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10300 $ECHO EXPORTS >> $output_objdir/$libname.def~
10301 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10302 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10303 emximp -o $lib $output_objdir/$libname.def'
10304 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10305 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10306 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10307 $ECHO EXPORTS >> $output_objdir/$libname.def~
10308 prefix_cmds="$SED"~
10309 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10310 prefix_cmds="$prefix_cmds -e 1d";
10311 fi~
10312 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10313 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10314 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10315 emximp -o $lib $output_objdir/$libname.def'
10316 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10317 enable_shared_with_static_runtimes=yes
10318 ;;
10319
a243b558
JF
10320 interix[3-9]*)
10321 hardcode_direct=no
10322 hardcode_shlibpath_var=no
9d54db95
JF
10323 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10324 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10326 # Instead, shared libraries are loaded at an image base (0x10000000 by
10327 # default) and relocated if they conflict, which is a slow very memory
10328 # consuming and fragmenting process. To avoid this, we pick a random,
10329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
10331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10332 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 10333 ;;
9c60689e 10334
a243b558
JF
10335 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10336 tmp_diet=no
9d54db95 10337 if test linux-dietlibc = "$host_os"; then
a243b558
JF
10338 case $cc_basename in
10339 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10340 esac
10341 fi
10342 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 10343 && test no = "$tmp_diet"
a243b558
JF
10344 then
10345 tmp_addflag=' $pic_flag'
10346 tmp_sharedflag='-shared'
10347 case $cc_basename,$host_cpu in
10348 pgcc*) # Portland Group C compiler
9d54db95 10349 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
10350 tmp_addflag=' $pic_flag'
10351 ;;
10352 pgf77* | pgf90* | pgf95* | pgfortran*)
10353 # Portland Group f77 and f90 compilers
9d54db95 10354 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
10355 tmp_addflag=' $pic_flag -Mnomain' ;;
10356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10357 tmp_addflag=' -i_dynamic' ;;
10358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10359 tmp_addflag=' -i_dynamic -nofor_main' ;;
10360 ifc* | ifort*) # Intel Fortran compiler
10361 tmp_addflag=' -nofor_main' ;;
10362 lf95*) # Lahey Fortran 8.1
10363 whole_archive_flag_spec=
10364 tmp_sharedflag='--shared' ;;
9d54db95
JF
10365 nagfor*) # NAGFOR 5.3
10366 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
10367 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10368 tmp_sharedflag='-qmkshrobj'
10369 tmp_addflag= ;;
10370 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 10371 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
10372 compiler_needs_object=yes
10373 ;;
10374 esac
10375 case `$CC -V 2>&1 | sed 5q` in
10376 *Sun\ C*) # Sun C 5.9
9d54db95 10377 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
10378 compiler_needs_object=yes
10379 tmp_sharedflag='-G' ;;
10380 *Sun\ F*) # Sun Fortran 8.3
10381 tmp_sharedflag='-G' ;;
10382 esac
9d54db95 10383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 10384
9d54db95 10385 if test yes = "$supports_anon_versioning"; then
a243b558 10386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10388 echo "local: *; };" >> $output_objdir/$libname.ver~
10389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 10390 fi
9c60689e 10391
a243b558 10392 case $cc_basename in
9d54db95
JF
10393 tcc*)
10394 export_dynamic_flag_spec='-rdynamic'
10395 ;;
a243b558
JF
10396 xlf* | bgf* | bgxlf* | mpixlf*)
10397 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10398 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 10399 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 10400 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 10401 if test yes = "$supports_anon_versioning"; then
a243b558 10402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10404 echo "local: *; };" >> $output_objdir/$libname.ver~
10405 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
10406 fi
10407 ;;
10408 esac
10409 else
10410 ld_shlibs=no
10411 fi
10412 ;;
9c60689e 10413
a243b558
JF
10414 netbsd*)
10415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10417 wlarc=
10418 else
9d54db95
JF
10419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10420 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
10421 fi
10422 ;;
9c60689e 10423
a243b558
JF
10424 solaris*)
10425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10426 ld_shlibs=no
10427 cat <<_LT_EOF 1>&2
9c60689e 10428
a243b558
JF
10429*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10430*** create shared libraries on Solaris systems. Therefore, libtool
10431*** is disabling shared libraries support. We urge you to upgrade GNU
10432*** binutils to release 2.9.1 or newer. Another option is to modify
10433*** your PATH or compiler configuration so that the native linker is
10434*** used, and then restart.
9c60689e 10435
a243b558
JF
10436_LT_EOF
10437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 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
10440 else
10441 ld_shlibs=no
10442 fi
10443 ;;
9c60689e 10444
a243b558
JF
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10446 case `$LD -v 2>&1` in
10447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10448 ld_shlibs=no
10449 cat <<_LT_EOF 1>&2
9c60689e 10450
9d54db95 10451*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
10452*** reliably create shared libraries on SCO systems. Therefore, libtool
10453*** is disabling shared libraries support. We urge you to upgrade GNU
10454*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10455*** your PATH or compiler configuration so that the native linker is
10456*** used, and then restart.
9c60689e 10457
a243b558
JF
10458_LT_EOF
10459 ;;
10460 *)
10461 # For security reasons, it is highly recommended that you always
10462 # use absolute paths for naming shared libraries, and exclude the
10463 # DT_RUNPATH tag from executables and libraries. But doing so
10464 # requires that you compile everything twice, which is a pain.
10465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10469 else
10470 ld_shlibs=no
10471 fi
10472 ;;
10473 esac
10474 ;;
9c60689e 10475
a243b558
JF
10476 sunos4*)
10477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10478 wlarc=
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10481 ;;
9c60689e 10482
a243b558
JF
10483 *)
10484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10486 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
10487 else
10488 ld_shlibs=no
10489 fi
10490 ;;
10491 esac
9c60689e 10492
9d54db95 10493 if test no = "$ld_shlibs"; then
a243b558
JF
10494 runpath_var=
10495 hardcode_libdir_flag_spec=
10496 export_dynamic_flag_spec=
10497 whole_archive_flag_spec=
10498 fi
10499 else
10500 # PORTME fill in a description of your system's linker (not GNU ld)
10501 case $host_os in
10502 aix3*)
10503 allow_undefined_flag=unsupported
10504 always_export_symbols=yes
10505 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'
10506 # Note: this linker hardcodes the directories in LIBPATH if there
10507 # are no directories specified by -L.
10508 hardcode_minus_L=yes
9d54db95 10509 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
10510 # Neither direct hardcoding nor static linking is supported with a
10511 # broken collect2.
10512 hardcode_direct=unsupported
10513 fi
10514 ;;
9c60689e 10515
a243b558 10516 aix[4-9]*)
9d54db95 10517 if test ia64 = "$host_cpu"; then
a243b558
JF
10518 # On IA64, the linker does run time linking by default, so we don't
10519 # have to do anything special.
10520 aix_use_runtimelinking=no
10521 exp_sym_flag='-Bexport'
9d54db95 10522 no_entry_flag=
a243b558
JF
10523 else
10524 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
10525 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10526 # Without the "-l" option, or with the "-B" option, AIX nm treats
10527 # weak defined symbols like other global defined symbols, whereas
10528 # GNU nm marks them as "W".
10529 # While the 'weak' keyword is ignored in the Export File, we need
10530 # it in the Import File for the 'aix-soname' feature, so we have
10531 # to replace the "-B" option with "-P" for AIX nm.
a243b558 10532 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 10533 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 10534 else
9d54db95 10535 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
10536 fi
10537 aix_use_runtimelinking=no
9c60689e 10538
a243b558
JF
10539 # Test if we are trying to use run time linking or normal
10540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
10541 # have runtime linking enabled, and use it for executables.
10542 # For shared libraries, we enable/disable runtime linking
10543 # depending on the kind of the shared library created -
10544 # when "with_aix_soname,aix_use_runtimelinking" is:
10545 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10546 # "aix,yes" lib.so shared, rtl:yes, for executables
10547 # lib.a static archive
10548 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10549 # lib.a(lib.so.V) shared, rtl:no, for executables
10550 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10551 # lib.a(lib.so.V) shared, rtl:no
10552 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10553 # lib.a static archive
a243b558
JF
10554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10555 for ld_flag in $LDFLAGS; do
9d54db95 10556 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
10557 aix_use_runtimelinking=yes
10558 break
10559 fi
10560 done
9d54db95
JF
10561 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10562 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10563 # so we don't have lib.a shared libs to link our executables.
10564 # We have to force runtime linking in this case.
10565 aix_use_runtimelinking=yes
10566 LDFLAGS="$LDFLAGS -Wl,-brtl"
10567 fi
a243b558
JF
10568 ;;
10569 esac
9c60689e 10570
a243b558
JF
10571 exp_sym_flag='-bexport'
10572 no_entry_flag='-bnoentry'
10573 fi
9c60689e 10574
a243b558
JF
10575 # When large executables or shared objects are built, AIX ld can
10576 # have problems creating the table of contents. If linking a library
10577 # or program results in "error TOC overflow" add -mminimal-toc to
10578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10580
a243b558
JF
10581 archive_cmds=''
10582 hardcode_direct=yes
10583 hardcode_direct_absolute=yes
10584 hardcode_libdir_separator=':'
10585 link_all_deplibs=yes
9d54db95
JF
10586 file_list_spec='$wl-f,'
10587 case $with_aix_soname,$aix_use_runtimelinking in
10588 aix,*) ;; # traditional, no import file
10589 svr4,* | *,yes) # use import file
10590 # The Import File defines what to hardcode.
10591 hardcode_direct=no
10592 hardcode_direct_absolute=no
10593 ;;
10594 esac
9c60689e 10595
9d54db95 10596 if test yes = "$GCC"; then
a243b558
JF
10597 case $host_os in aix4.[012]|aix4.[012].*)
10598 # We only want to do this on AIX 4.2 and lower, the check
10599 # below for broken collect2 doesn't work under 4.3+
9d54db95 10600 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
10601 if test -f "$collect2name" &&
10602 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10603 then
10604 # We have reworked collect2
10605 :
10606 else
10607 # We have old collect2
10608 hardcode_direct=unsupported
10609 # It fails to find uninstalled libraries when the uninstalled
10610 # path is not listed in the libpath. Setting hardcode_minus_L
10611 # to unsupported forces relinking
10612 hardcode_minus_L=yes
10613 hardcode_libdir_flag_spec='-L$libdir'
10614 hardcode_libdir_separator=
10615 fi
10616 ;;
10617 esac
10618 shared_flag='-shared'
9d54db95
JF
10619 if test yes = "$aix_use_runtimelinking"; then
10620 shared_flag="$shared_flag "'$wl-G'
a243b558 10621 fi
9d54db95
JF
10622 # Need to ensure runtime linking is disabled for the traditional
10623 # shared library, or the linker may eventually find shared libraries
10624 # /with/ Import File - we do not want to mix them.
10625 shared_flag_aix='-shared'
10626 shared_flag_svr4='-shared $wl-G'
a243b558
JF
10627 else
10628 # not using gcc
9d54db95 10629 if test ia64 = "$host_cpu"; then
a243b558
JF
10630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10631 # chokes on -Wl,-G. The following line is correct:
10632 shared_flag='-G'
10633 else
9d54db95
JF
10634 if test yes = "$aix_use_runtimelinking"; then
10635 shared_flag='$wl-G'
a243b558 10636 else
9d54db95 10637 shared_flag='$wl-bM:SRE'
a243b558 10638 fi
9d54db95
JF
10639 shared_flag_aix='$wl-bM:SRE'
10640 shared_flag_svr4='$wl-G'
a243b558
JF
10641 fi
10642 fi
9c60689e 10643
9d54db95 10644 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
10645 # It seems that -bexpall does not export symbols beginning with
10646 # underscore (_), so it is better to generate a list of symbols to export.
10647 always_export_symbols=yes
9d54db95 10648 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
10649 # Warning - without using the other runtime loading flags (-brtl),
10650 # -berok will link without error, but may produce a broken library.
10651 allow_undefined_flag='-berok'
10652 # Determine the default libpath from the value encoded in an
10653 # empty executable.
9d54db95 10654 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10655 aix_libpath=$lt_cv_aix_libpath
9c60689e 10656else
a243b558 10657 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10658 $as_echo_n "(cached) " >&6
10659else
a243b558 10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10661/* end confdefs.h. */
10662
9c60689e
DWT
10663int
10664main ()
10665{
a243b558 10666
9c60689e
DWT
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10672
10673 lt_aix_libpath_sed='
10674 /Import File Strings/,/^$/ {
10675 /^0/ {
10676 s/^0 *\([^ ]*\) *$/\1/
10677 p
10678 }
10679 }'
10680 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 # Check for a 64-bit object if we didn't find anything.
10682 if test -z "$lt_cv_aix_libpath_"; then
10683 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10684 fi
9c60689e
DWT
10685fi
10686rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
a243b558 10688 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10689 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 10690 fi
9c60689e
DWT
10691
10692fi
10693
a243b558
JF
10694 aix_libpath=$lt_cv_aix_libpath_
10695fi
9c60689e 10696
9d54db95
JF
10697 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10698 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 10699 else
9d54db95
JF
10700 if test ia64 = "$host_cpu"; then
10701 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 10702 allow_undefined_flag="-z nodefs"
9d54db95 10703 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
10704 else
10705 # Determine the default libpath from the value encoded in an
10706 # empty executable.
9d54db95 10707 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10708 aix_libpath=$lt_cv_aix_libpath
9c60689e 10709else
a243b558 10710 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10711 $as_echo_n "(cached) " >&6
10712else
a243b558 10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10714/* end confdefs.h. */
10715
9c60689e
DWT
10716int
10717main ()
10718{
a243b558 10719
9c60689e
DWT
10720 ;
10721 return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10725
a243b558
JF
10726 lt_aix_libpath_sed='
10727 /Import File Strings/,/^$/ {
10728 /^0/ {
10729 s/^0 *\([^ ]*\) *$/\1/
10730 p
10731 }
10732 }'
10733 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734 # Check for a 64-bit object if we didn't find anything.
10735 if test -z "$lt_cv_aix_libpath_"; then
10736 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737 fi
9c60689e
DWT
10738fi
10739rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
a243b558 10741 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10742 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
10743 fi
10744
9c60689e 10745fi
9c60689e 10746
a243b558
JF
10747 aix_libpath=$lt_cv_aix_libpath_
10748fi
10749
9d54db95 10750 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
10751 # Warning - without using the other run time loading flags,
10752 # -berok will link without error, but may produce a broken library.
9d54db95
JF
10753 no_undefined_flag=' $wl-bernotok'
10754 allow_undefined_flag=' $wl-berok'
10755 if test yes = "$with_gnu_ld"; then
a243b558 10756 # We only use this code for GNU lds that support --whole-archive.
9d54db95 10757 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
10758 else
10759 # Exported symbols can be pulled into shared objects from archives
10760 whole_archive_flag_spec='$convenience'
10761 fi
10762 archive_cmds_need_lc=yes
9d54db95
JF
10763 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10764 # -brtl affects multiple linker settings, -berok does not and is overridden later
10765 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10766 if test svr4 != "$with_aix_soname"; then
10767 # This is similar to how AIX traditionally builds its shared libraries.
10768 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'
10769 fi
10770 if test aix != "$with_aix_soname"; then
10771 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'
10772 else
10773 # used by -dlpreopen to get the symbols
10774 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10775 fi
10776 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
10777 fi
10778 fi
10779 ;;
10780
10781 amigaos*)
10782 case $host_cpu in
10783 powerpc)
10784 # see comment about AmigaOS4 .so support
9d54db95 10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10786 archive_expsym_cmds=''
10787 ;;
10788 m68k)
10789 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)'
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_minus_L=yes
10792 ;;
10793 esac
10794 ;;
10795
10796 bsdi[45]*)
10797 export_dynamic_flag_spec=-rdynamic
10798 ;;
10799
10800 cygwin* | mingw* | pw32* | cegcc*)
10801 # When not using gcc, we currently assume that we are using
10802 # Microsoft Visual C++.
10803 # hardcode_libdir_flag_spec is actually meaningless, as there is
10804 # no search path for DLLs.
10805 case $cc_basename in
10806 cl*)
10807 # Native MSVC
10808 hardcode_libdir_flag_spec=' '
10809 allow_undefined_flag=unsupported
10810 always_export_symbols=yes
10811 file_list_spec='@'
10812 # Tell ltmain to make .lib files, not .a files.
10813 libext=lib
10814 # Tell ltmain to make .dll files, not .so files.
9d54db95 10815 shrext_cmds=.dll
a243b558 10816 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
10817 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10818 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10819 cp "$export_symbols" "$output_objdir/$soname.def";
10820 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10821 else
10822 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10823 fi~
10824 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10825 linknames='
a243b558
JF
10826 # The linker will not automatically build a static lib if we build a DLL.
10827 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10828 enable_shared_with_static_runtimes=yes
10829 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10831 # Don't use ranlib
10832 old_postinstall_cmds='chmod 644 $oldlib'
10833 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
10834 lt_tool_outputfile="@TOOL_OUTPUT@"~
10835 case $lt_outputfile in
10836 *.exe|*.EXE) ;;
10837 *)
10838 lt_outputfile=$lt_outputfile.exe
10839 lt_tool_outputfile=$lt_tool_outputfile.exe
10840 ;;
10841 esac~
10842 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10843 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10844 $RM "$lt_outputfile.manifest";
10845 fi'
a243b558
JF
10846 ;;
10847 *)
10848 # Assume MSVC wrapper
10849 hardcode_libdir_flag_spec=' '
10850 allow_undefined_flag=unsupported
10851 # Tell ltmain to make .lib files, not .a files.
10852 libext=lib
10853 # Tell ltmain to make .dll files, not .so files.
9d54db95 10854 shrext_cmds=.dll
a243b558
JF
10855 # FIXME: Setting linknames here is a bad hack.
10856 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10857 # The linker will automatically build a .lib file if we build a DLL.
10858 old_archive_from_new_cmds='true'
10859 # FIXME: Should let the user specify the lib program.
10860 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10861 enable_shared_with_static_runtimes=yes
10862 ;;
10863 esac
10864 ;;
10865
10866 darwin* | rhapsody*)
10867
10868
10869 archive_cmds_need_lc=no
10870 hardcode_direct=no
10871 hardcode_automatic=yes
10872 hardcode_shlibpath_var=unsupported
9d54db95
JF
10873 if test yes = "$lt_cv_ld_force_load"; then
10874 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
10875
10876 else
10877 whole_archive_flag_spec=''
10878 fi
10879 link_all_deplibs=yes
9d54db95 10880 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 10881 case $cc_basename in
9d54db95 10882 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
10883 *) _lt_dar_can_shared=$GCC ;;
10884 esac
9d54db95 10885 if test yes = "$_lt_dar_can_shared"; then
a243b558 10886 output_verbose_link_cmd=func_echo_all
9d54db95
JF
10887 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10888 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10889 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"
10890 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
10891
10892 else
10893 ld_shlibs=no
10894 fi
10895
10896 ;;
10897
10898 dgux*)
10899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_libdir_flag_spec='-L$libdir'
10901 hardcode_shlibpath_var=no
10902 ;;
10903
10904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10905 # support. Future versions do this automatically, but an explicit c++rt0.o
10906 # does not break anything, and helps significantly (at the cost of a little
10907 # extra space).
10908 freebsd2.2*)
10909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10910 hardcode_libdir_flag_spec='-R$libdir'
10911 hardcode_direct=yes
10912 hardcode_shlibpath_var=no
10913 ;;
10914
10915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10916 freebsd2.*)
10917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_direct=yes
10919 hardcode_minus_L=yes
10920 hardcode_shlibpath_var=no
10921 ;;
10922
10923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10924 freebsd* | dragonfly*)
10925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10926 hardcode_libdir_flag_spec='-R$libdir'
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10929 ;;
10930
10931 hpux9*)
9d54db95
JF
10932 if test yes = "$GCC"; then
10933 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 10934 else
9d54db95 10935 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 10936 fi
9d54db95 10937 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10938 hardcode_libdir_separator=:
10939 hardcode_direct=yes
10940
10941 # hardcode_minus_L: Not really in the search PATH,
10942 # but as the default location of the library.
10943 hardcode_minus_L=yes
9d54db95 10944 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10945 ;;
10946
10947 hpux10*)
9d54db95
JF
10948 if test yes,no = "$GCC,$with_gnu_ld"; then
10949 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10950 else
10951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10952 fi
9d54db95
JF
10953 if test no = "$with_gnu_ld"; then
10954 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10955 hardcode_libdir_separator=:
10956 hardcode_direct=yes
10957 hardcode_direct_absolute=yes
9d54db95 10958 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10959 # hardcode_minus_L: Not really in the search PATH,
10960 # but as the default location of the library.
10961 hardcode_minus_L=yes
10962 fi
10963 ;;
10964
10965 hpux11*)
9d54db95 10966 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
10967 case $host_cpu in
10968 hppa*64*)
9d54db95 10969 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10970 ;;
10971 ia64*)
9d54db95 10972 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10973 ;;
10974 *)
9d54db95 10975 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10976 ;;
10977 esac
10978 else
10979 case $host_cpu in
10980 hppa*64*)
9d54db95 10981 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10982 ;;
10983 ia64*)
9d54db95 10984 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10985 ;;
10986 *)
10987
10988 # Older versions of the 11.00 compiler do not understand -b yet
10989 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10991$as_echo_n "checking if $CC understands -b... " >&6; }
10992if ${lt_cv_prog_compiler__b+:} false; then :
10993 $as_echo_n "(cached) " >&6
10994else
10995 lt_cv_prog_compiler__b=no
9d54db95 10996 save_LDFLAGS=$LDFLAGS
a243b558
JF
10997 LDFLAGS="$LDFLAGS -b"
10998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11000 # The linker can only warn and ignore the option if not recognized
11001 # So say no if there are warnings
11002 if test -s conftest.err; then
11003 # Append any errors to the config.log.
11004 cat conftest.err 1>&5
11005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11007 if diff conftest.exp conftest.er2 >/dev/null; then
11008 lt_cv_prog_compiler__b=yes
11009 fi
11010 else
11011 lt_cv_prog_compiler__b=yes
11012 fi
11013 fi
11014 $RM -r conftest*
9d54db95 11015 LDFLAGS=$save_LDFLAGS
a243b558
JF
11016
11017fi
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11019$as_echo "$lt_cv_prog_compiler__b" >&6; }
11020
9d54db95
JF
11021if test yes = "$lt_cv_prog_compiler__b"; then
11022 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11023else
11024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11025fi
11026
11027 ;;
11028 esac
11029 fi
9d54db95
JF
11030 if test no = "$with_gnu_ld"; then
11031 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
11032 hardcode_libdir_separator=:
11033
11034 case $host_cpu in
11035 hppa*64*|ia64*)
11036 hardcode_direct=no
11037 hardcode_shlibpath_var=no
11038 ;;
11039 *)
11040 hardcode_direct=yes
11041 hardcode_direct_absolute=yes
9d54db95 11042 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11043
11044 # hardcode_minus_L: Not really in the search PATH,
11045 # but as the default location of the library.
11046 hardcode_minus_L=yes
11047 ;;
11048 esac
11049 fi
11050 ;;
11051
11052 irix5* | irix6* | nonstopux*)
9d54db95
JF
11053 if test yes = "$GCC"; then
11054 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
11055 # Try to use the -exported_symbol ld option, if it does not
11056 # work, assume that -exports_file does not work either and
11057 # implicitly export all symbols.
11058 # This should be the same for all languages, so no per-tag cache variable.
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11060$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11061if ${lt_cv_irix_exported_symbol+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063else
9d54db95
JF
11064 save_LDFLAGS=$LDFLAGS
11065 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h. */
11068int foo (void) { return 0; }
11069_ACEOF
11070if ac_fn_c_try_link "$LINENO"; then :
11071 lt_cv_irix_exported_symbol=yes
11072else
11073 lt_cv_irix_exported_symbol=no
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
9d54db95 11077 LDFLAGS=$save_LDFLAGS
a243b558
JF
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11080$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
11081 if test yes = "$lt_cv_irix_exported_symbol"; then
11082 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
11083 fi
11084 else
9d54db95
JF
11085 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'
11086 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
11087 fi
11088 archive_cmds_need_lc='no'
9d54db95 11089 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11090 hardcode_libdir_separator=:
11091 inherit_rpath=yes
11092 link_all_deplibs=yes
11093 ;;
11094
9d54db95
JF
11095 linux*)
11096 case $cc_basename in
11097 tcc*)
11098 # Fabrice Bellard et al's Tiny C Compiler
11099 ld_shlibs=yes
11100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11101 ;;
11102 esac
11103 ;;
11104
a243b558
JF
11105 netbsd*)
11106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11108 else
11109 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11110 fi
11111 hardcode_libdir_flag_spec='-R$libdir'
11112 hardcode_direct=yes
11113 hardcode_shlibpath_var=no
11114 ;;
11115
11116 newsos6)
11117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118 hardcode_direct=yes
9d54db95 11119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11120 hardcode_libdir_separator=:
11121 hardcode_shlibpath_var=no
11122 ;;
11123
11124 *nto* | *qnx*)
11125 ;;
11126
9d54db95 11127 openbsd* | bitrig*)
a243b558
JF
11128 if test -f /usr/libexec/ld.so; then
11129 hardcode_direct=yes
11130 hardcode_shlibpath_var=no
11131 hardcode_direct_absolute=yes
9d54db95 11132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 11133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
11134 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11135 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11136 export_dynamic_flag_spec='$wl-E'
a243b558 11137 else
9d54db95
JF
11138 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11139 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
11140 fi
11141 else
11142 ld_shlibs=no
11143 fi
11144 ;;
11145
11146 os2*)
11147 hardcode_libdir_flag_spec='-L$libdir'
11148 hardcode_minus_L=yes
11149 allow_undefined_flag=unsupported
9d54db95
JF
11150 shrext_cmds=.dll
11151 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11154 $ECHO EXPORTS >> $output_objdir/$libname.def~
11155 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11156 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11157 emximp -o $lib $output_objdir/$libname.def'
11158 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11161 $ECHO EXPORTS >> $output_objdir/$libname.def~
11162 prefix_cmds="$SED"~
11163 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11164 prefix_cmds="$prefix_cmds -e 1d";
11165 fi~
11166 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11167 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11168 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11169 emximp -o $lib $output_objdir/$libname.def'
11170 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11171 enable_shared_with_static_runtimes=yes
a243b558
JF
11172 ;;
11173
11174 osf3*)
9d54db95
JF
11175 if test yes = "$GCC"; then
11176 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11177 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
11178 else
11179 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11180 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
11181 fi
11182 archive_cmds_need_lc='no'
9d54db95 11183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11184 hardcode_libdir_separator=:
11185 ;;
11186
11187 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
11188 if test yes = "$GCC"; then
11189 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11190 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'
11191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11192 else
11193 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11194 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 11195 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 11196 $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
11197
11198 # Both c and cxx compiler support -rpath directly
11199 hardcode_libdir_flag_spec='-rpath $libdir'
11200 fi
11201 archive_cmds_need_lc='no'
11202 hardcode_libdir_separator=:
11203 ;;
11204
11205 solaris*)
11206 no_undefined_flag=' -z defs'
9d54db95
JF
11207 if test yes = "$GCC"; then
11208 wlarc='$wl'
11209 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11211 $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
11212 else
11213 case `$CC -V 2>&1` in
11214 *"Compilers 5.0"*)
11215 wlarc=''
9d54db95 11216 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 11217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11218 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
11219 ;;
11220 *)
9d54db95
JF
11221 wlarc='$wl'
11222 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11224 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
11225 ;;
11226 esac
11227 fi
11228 hardcode_libdir_flag_spec='-R$libdir'
11229 hardcode_shlibpath_var=no
11230 case $host_os in
11231 solaris2.[0-5] | solaris2.[0-5].*) ;;
11232 *)
11233 # The compiler driver will combine and reorder linker options,
9d54db95 11234 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
11235 # but is careful enough not to reorder.
11236 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
11237 if test yes = "$GCC"; then
11238 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
11239 else
11240 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11241 fi
11242 ;;
11243 esac
11244 link_all_deplibs=yes
11245 ;;
11246
11247 sunos4*)
9d54db95 11248 if test sequent = "$host_vendor"; then
a243b558
JF
11249 # Use $CC to link under sequent, because it throws in some extra .o
11250 # files that make .init and .fini sections work.
9d54db95 11251 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11252 else
11253 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11254 fi
11255 hardcode_libdir_flag_spec='-L$libdir'
11256 hardcode_direct=yes
11257 hardcode_minus_L=yes
11258 hardcode_shlibpath_var=no
11259 ;;
11260
11261 sysv4)
11262 case $host_vendor in
11263 sni)
11264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11265 hardcode_direct=yes # is this really true???
11266 ;;
11267 siemens)
11268 ## LD is ld it makes a PLAMLIB
11269 ## CC just makes a GrossModule.
11270 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11271 reload_cmds='$CC -r -o $output$reload_objs'
11272 hardcode_direct=no
11273 ;;
11274 motorola)
11275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11276 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11277 ;;
11278 esac
11279 runpath_var='LD_RUN_PATH'
11280 hardcode_shlibpath_var=no
11281 ;;
11282
11283 sysv4.3*)
11284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285 hardcode_shlibpath_var=no
11286 export_dynamic_flag_spec='-Bexport'
11287 ;;
11288
11289 sysv4*MP*)
11290 if test -d /usr/nec; then
11291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11292 hardcode_shlibpath_var=no
11293 runpath_var=LD_RUN_PATH
11294 hardcode_runpath_var=yes
11295 ld_shlibs=yes
11296 fi
11297 ;;
11298
11299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 11300 no_undefined_flag='$wl-z,text'
a243b558
JF
11301 archive_cmds_need_lc=no
11302 hardcode_shlibpath_var=no
11303 runpath_var='LD_RUN_PATH'
11304
9d54db95
JF
11305 if test yes = "$GCC"; then
11306 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11308 else
9d54db95
JF
11309 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11311 fi
11312 ;;
11313
11314 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 11315 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
11316 # link with -lc, and that would cause any symbols used from libc to
11317 # always be unresolved, which means just about no library would
11318 # ever link correctly. If we're not using GNU ld we use -z text
11319 # though, which does catch some bad symbols but isn't as heavy-handed
11320 # as -z defs.
9d54db95
JF
11321 no_undefined_flag='$wl-z,text'
11322 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
11323 archive_cmds_need_lc=no
11324 hardcode_shlibpath_var=no
9d54db95 11325 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
11326 hardcode_libdir_separator=':'
11327 link_all_deplibs=yes
9d54db95 11328 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
11329 runpath_var='LD_RUN_PATH'
11330
9d54db95
JF
11331 if test yes = "$GCC"; then
11332 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11334 else
9d54db95
JF
11335 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11337 fi
11338 ;;
11339
11340 uts4*)
11341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342 hardcode_libdir_flag_spec='-L$libdir'
11343 hardcode_shlibpath_var=no
11344 ;;
11345
11346 *)
11347 ld_shlibs=no
11348 ;;
11349 esac
11350
9d54db95 11351 if test sni = "$host_vendor"; then
a243b558
JF
11352 case $host in
11353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 11354 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
11355 ;;
11356 esac
11357 fi
11358 fi
11359
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11361$as_echo "$ld_shlibs" >&6; }
9d54db95 11362test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
11363
11364with_gnu_ld=$with_gnu_ld
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380#
11381# Do we need to explicitly link libc?
11382#
11383case "x$archive_cmds_need_lc" in
11384x|xyes)
11385 # Assume -lc should be added
11386 archive_cmds_need_lc=yes
11387
9d54db95 11388 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
11389 case $archive_cmds in
11390 *'~'*)
11391 # FIXME: we may have to deal with multi-command sequences.
11392 ;;
11393 '$CC '*)
11394 # Test whether the compiler implicitly links with -lc since on some
11395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11396 # to ld, don't add -lc before -lgcc.
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11398$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11399if ${lt_cv_archive_cmds_need_lc+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401else
00a96142 11402 $RM -r conftest*
a243b558
JF
11403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11404
11405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11406 (eval $ac_compile) 2>&5
11407 ac_status=$?
11408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11409 test $ac_status = 0; } 2>conftest.err; then
11410 soname=conftest
11411 lib=conftest
11412 libobjs=conftest.$ac_objext
11413 deplibs=
11414 wl=$lt_prog_compiler_wl
11415 pic_flag=$lt_prog_compiler_pic
11416 compiler_flags=-v
11417 linker_flags=-v
11418 verstring=
11419 output_objdir=.
11420 libname=conftest
11421 lt_save_allow_undefined_flag=$allow_undefined_flag
11422 allow_undefined_flag=
11423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11424 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11425 ac_status=$?
11426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427 test $ac_status = 0; }
11428 then
11429 lt_cv_archive_cmds_need_lc=no
11430 else
11431 lt_cv_archive_cmds_need_lc=yes
11432 fi
11433 allow_undefined_flag=$lt_save_allow_undefined_flag
11434 else
11435 cat conftest.err 1>&5
11436 fi
00a96142 11437 $RM -r conftest*
a243b558
JF
11438
11439fi
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11441$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11443 ;;
11444 esac
11445 fi
11446 ;;
11447esac
11448
11449
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11601$as_echo_n "checking dynamic linker characteristics... " >&6; }
11602
9d54db95 11603if test yes = "$GCC"; then
a243b558 11604 case $host_os in
9d54db95
JF
11605 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11606 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
11607 esac
11608 case $host_os in
9d54db95
JF
11609 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11610 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
11611 esac
11612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11613 case $lt_search_path_spec in
11614 *\;*)
11615 # if the path contains ";" then we assume it to be the separator
11616 # otherwise default to the standard path separator (i.e. ":") - it is
11617 # assumed that no part of a normal pathname contains ";" but that should
11618 # okay in the real world where ";" in dirpaths is itself problematic.
11619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11620 ;;
11621 *)
11622 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11623 ;;
11624 esac
11625 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 11626 # and add multilib dir if necessary...
a243b558 11627 lt_tmp_lt_search_path_spec=
9d54db95
JF
11628 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11629 # ...but if some path component already ends with the multilib dir we assume
11630 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11631 case "$lt_multi_os_dir; $lt_search_path_spec " in
11632 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11633 lt_multi_os_dir=
11634 ;;
11635 esac
a243b558 11636 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
11637 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11639 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
11640 test -d "$lt_sys_path" && \
11641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11642 fi
11643 done
11644 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
11645BEGIN {RS = " "; FS = "/|\n";} {
11646 lt_foo = "";
11647 lt_count = 0;
a243b558
JF
11648 for (lt_i = NF; lt_i > 0; lt_i--) {
11649 if ($lt_i != "" && $lt_i != ".") {
11650 if ($lt_i == "..") {
11651 lt_count++;
11652 } else {
11653 if (lt_count == 0) {
9d54db95 11654 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
11655 } else {
11656 lt_count--;
11657 }
11658 }
11659 }
11660 }
11661 if (lt_foo != "") { lt_freq[lt_foo]++; }
11662 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11663}'`
11664 # AWK program above erroneously prepends '/' to C:/dos/paths
11665 # for these hosts.
11666 case $host_os in
11667 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 11668 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
11669 esac
11670 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11671else
11672 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11673fi
11674library_names_spec=
11675libname_spec='lib$name'
11676soname_spec=
9d54db95 11677shrext_cmds=.so
a243b558
JF
11678postinstall_cmds=
11679postuninstall_cmds=
11680finish_cmds=
11681finish_eval=
11682shlibpath_var=
11683shlibpath_overrides_runpath=unknown
11684version_type=none
11685dynamic_linker="$host_os ld.so"
11686sys_lib_dlsearch_path_spec="/lib /usr/lib"
11687need_lib_prefix=unknown
11688hardcode_into_libs=no
11689
11690# when you set need_version to no, make sure it does not cause -set_version
11691# flags to be left without arguments
11692need_version=unknown
11693
9d54db95
JF
11694
11695
a243b558
JF
11696case $host_os in
11697aix3*)
11698 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 11699 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
11700 shlibpath_var=LIBPATH
11701
11702 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 11703 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11704 ;;
11705
11706aix[4-9]*)
11707 version_type=linux # correct to gnu/linux during the next big refactor
11708 need_lib_prefix=no
11709 need_version=no
11710 hardcode_into_libs=yes
9d54db95 11711 if test ia64 = "$host_cpu"; then
a243b558 11712 # AIX 5 supports IA64
9d54db95 11713 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
11714 shlibpath_var=LD_LIBRARY_PATH
11715 else
11716 # With GCC up to 2.95.x, collect2 would create an import file
11717 # for dependence libraries. The import file would start with
9d54db95
JF
11718 # the line '#! .'. This would cause the generated library to
11719 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
11720 # development snapshots of GCC prior to 3.0.
11721 case $host_os in
11722 aix4 | aix4.[01] | aix4.[01].*)
11723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11724 echo ' yes '
9d54db95 11725 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
11726 :
11727 else
11728 can_build_shared=no
11729 fi
11730 ;;
11731 esac
9d54db95
JF
11732 # Using Import Files as archive members, it is possible to support
11733 # filename-based versioning of shared library archives on AIX. While
11734 # this would work for both with and without runtime linking, it will
11735 # prevent static linking of such archives. So we do filename-based
11736 # shared library versioning with .so extension only, which is used
11737 # when both runtime linking and shared linking is enabled.
11738 # Unfortunately, runtime linking may impact performance, so we do
11739 # not want this to be the default eventually. Also, we use the
11740 # versioned .so libs for executables only if there is the -brtl
11741 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11742 # To allow for filename-based versioning support, we need to create
11743 # libNAME.so.V as an archive file, containing:
11744 # *) an Import File, referring to the versioned filename of the
11745 # archive as well as the shared archive member, telling the
11746 # bitwidth (32 or 64) of that shared object, and providing the
11747 # list of exported symbols of that shared object, eventually
11748 # decorated with the 'weak' keyword
11749 # *) the shared object with the F_LOADONLY flag set, to really avoid
11750 # it being seen by the linker.
11751 # At run time we better use the real file rather than another symlink,
11752 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11753
11754 case $with_aix_soname,$aix_use_runtimelinking in
11755 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
11756 # soname into executable. Probably we can add versioning support to
11757 # collect2, so additional links can be useful in future.
9d54db95
JF
11758 aix,yes) # traditional libtool
11759 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
11760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11761 # instead of lib<name>.a to let people know that these are not
11762 # typical AIX shared libraries.
9d54db95
JF
11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11764 ;;
11765 aix,no) # traditional AIX only
11766 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
11767 # We preserve .a as extension for shared libraries through AIX4.2
11768 # and later when we are not doing run time linking.
9d54db95
JF
11769 library_names_spec='$libname$release.a $libname.a'
11770 soname_spec='$libname$release$shared_ext$major'
11771 ;;
11772 svr4,*) # full svr4 only
11773 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11774 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11775 # We do not specify a path in Import Files, so LIBPATH fires.
11776 shlibpath_overrides_runpath=yes
11777 ;;
11778 *,yes) # both, prefer svr4
11779 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11780 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11781 # unpreferred sharedlib libNAME.a needs extra handling
11782 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"'
11783 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"'
11784 # We do not specify a path in Import Files, so LIBPATH fires.
11785 shlibpath_overrides_runpath=yes
11786 ;;
11787 *,no) # both, prefer aix
11788 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11789 library_names_spec='$libname$release.a $libname.a'
11790 soname_spec='$libname$release$shared_ext$major'
11791 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11792 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)'
11793 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"'
11794 ;;
11795 esac
a243b558
JF
11796 shlibpath_var=LIBPATH
11797 fi
11798 ;;
11799
11800amigaos*)
11801 case $host_cpu in
11802 powerpc)
11803 # Since July 2007 AmigaOS4 officially supports .so libraries.
11804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
11806 ;;
11807 m68k)
11808 library_names_spec='$libname.ixlibrary $libname.a'
11809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 11810 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
11811 ;;
11812 esac
11813 ;;
11814
11815beos*)
9d54db95 11816 library_names_spec='$libname$shared_ext'
a243b558
JF
11817 dynamic_linker="$host_os ld.so"
11818 shlibpath_var=LIBRARY_PATH
11819 ;;
11820
11821bsdi[45]*)
11822 version_type=linux # correct to gnu/linux during the next big refactor
11823 need_version=no
9d54db95
JF
11824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11825 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11830 # the default ld.so.conf also contains /usr/contrib/lib and
11831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11832 # libtool to hard-code these into programs
11833 ;;
11834
11835cygwin* | mingw* | pw32* | cegcc*)
11836 version_type=windows
9d54db95 11837 shrext_cmds=.dll
a243b558
JF
11838 need_version=no
11839 need_lib_prefix=no
9c60689e 11840
a243b558
JF
11841 case $GCC,$cc_basename in
11842 yes,*)
11843 # gcc
11844 library_names_spec='$libname.dll.a'
11845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11846 postinstall_cmds='base_file=`basename \$file`~
11847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11848 dldir=$destdir/`dirname \$dlpath`~
11849 test -d \$dldir || mkdir -p \$dldir~
11850 $install_prog $dir/$dlname \$dldir/$dlname~
11851 chmod a+x \$dldir/$dlname~
11852 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11853 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11854 fi'
11855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11856 dlpath=$dir/\$dldll~
11857 $RM \$dlpath'
11858 shlibpath_overrides_runpath=yes
9c60689e 11859
a243b558
JF
11860 case $host_os in
11861 cygwin*)
11862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 11863 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 11864
a243b558
JF
11865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11866 ;;
11867 mingw* | cegcc*)
11868 # MinGW DLLs use traditional 'lib' prefix
9d54db95 11869 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11870 ;;
11871 pw32*)
11872 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 11873 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11874 ;;
11875 esac
11876 dynamic_linker='Win32 ld.exe'
11877 ;;
9c60689e 11878
a243b558
JF
11879 *,cl*)
11880 # Native MSVC
11881 libname_spec='$name'
9d54db95
JF
11882 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11883 library_names_spec='$libname.dll.lib'
9c60689e 11884
a243b558
JF
11885 case $build_os in
11886 mingw*)
11887 sys_lib_search_path_spec=
11888 lt_save_ifs=$IFS
11889 IFS=';'
11890 for lt_path in $LIB
11891 do
11892 IFS=$lt_save_ifs
11893 # Let DOS variable expansion print the short 8.3 style file name.
11894 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11895 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11896 done
11897 IFS=$lt_save_ifs
11898 # Convert to MSYS style.
11899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11900 ;;
11901 cygwin*)
11902 # Convert to unix form, then to dos form, then back to unix form
11903 # but this time dos style (no spaces!) so that the unix form looks
11904 # like /cygdrive/c/PROGRA~1:/cygdr...
11905 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11906 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11907 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11908 ;;
11909 *)
9d54db95 11910 sys_lib_search_path_spec=$LIB
a243b558
JF
11911 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11912 # It is most probably a Windows format PATH.
11913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11914 else
11915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11916 fi
11917 # FIXME: find the short name or the path components, as spaces are
11918 # common. (e.g. "Program Files" -> "PROGRA~1")
11919 ;;
11920 esac
11921
11922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11923 postinstall_cmds='base_file=`basename \$file`~
11924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11925 dldir=$destdir/`dirname \$dlpath`~
11926 test -d \$dldir || mkdir -p \$dldir~
11927 $install_prog $dir/$dlname \$dldir/$dlname'
11928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11929 dlpath=$dir/\$dldll~
11930 $RM \$dlpath'
11931 shlibpath_overrides_runpath=yes
11932 dynamic_linker='Win32 link.exe'
11933 ;;
9c60689e 11934
a243b558
JF
11935 *)
11936 # Assume MSVC wrapper
9d54db95 11937 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
11938 dynamic_linker='Win32 ld.exe'
11939 ;;
11940 esac
11941 # FIXME: first we should search . and the directory the executable is in
11942 shlibpath_var=PATH
11943 ;;
9c60689e 11944
a243b558
JF
11945darwin* | rhapsody*)
11946 dynamic_linker="$host_os dyld"
11947 version_type=darwin
11948 need_lib_prefix=no
11949 need_version=no
9d54db95
JF
11950 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11951 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
11952 shlibpath_overrides_runpath=yes
11953 shlibpath_var=DYLD_LIBRARY_PATH
11954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11955
a243b558
JF
11956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11958 ;;
9c60689e 11959
a243b558
JF
11960dgux*)
11961 version_type=linux # correct to gnu/linux during the next big refactor
11962 need_lib_prefix=no
11963 need_version=no
9d54db95
JF
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11966 shlibpath_var=LD_LIBRARY_PATH
11967 ;;
11968
11969freebsd* | dragonfly*)
11970 # DragonFly does not have aout. When/if they implement a new
11971 # versioning mechanism, adjust this.
11972 if test -x /usr/bin/objformat; then
11973 objformat=`/usr/bin/objformat`
11974 else
11975 case $host_os in
11976 freebsd[23].*) objformat=aout ;;
11977 *) objformat=elf ;;
11978 esac
11979 fi
11980 version_type=freebsd-$objformat
11981 case $version_type in
11982 freebsd-elf*)
9d54db95
JF
11983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11985 need_version=no
11986 need_lib_prefix=no
11987 ;;
11988 freebsd-*)
9d54db95 11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
11990 need_version=yes
11991 ;;
11992 esac
11993 shlibpath_var=LD_LIBRARY_PATH
11994 case $host_os in
11995 freebsd2.*)
11996 shlibpath_overrides_runpath=yes
11997 ;;
11998 freebsd3.[01]* | freebsdelf3.[01]*)
11999 shlibpath_overrides_runpath=yes
12000 hardcode_into_libs=yes
12001 ;;
12002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12004 shlibpath_overrides_runpath=no
12005 hardcode_into_libs=yes
12006 ;;
12007 *) # from 4.6 on, and DragonFly
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12010 ;;
12011 esac
12012 ;;
9c60689e 12013
a243b558
JF
12014haiku*)
12015 version_type=linux # correct to gnu/linux during the next big refactor
12016 need_lib_prefix=no
12017 need_version=no
12018 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
12019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020 soname_spec='$libname$release$shared_ext$major'
a243b558 12021 shlibpath_var=LIBRARY_PATH
9d54db95 12022 shlibpath_overrides_runpath=no
a243b558
JF
12023 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12024 hardcode_into_libs=yes
12025 ;;
9c60689e 12026
a243b558
JF
12027hpux9* | hpux10* | hpux11*)
12028 # Give a soname corresponding to the major version so that dld.sl refuses to
12029 # link against other versions.
12030 version_type=sunos
12031 need_lib_prefix=no
12032 need_version=no
12033 case $host_cpu in
12034 ia64*)
12035 shrext_cmds='.so'
12036 hardcode_into_libs=yes
12037 dynamic_linker="$host_os dld.so"
12038 shlibpath_var=LD_LIBRARY_PATH
12039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041 soname_spec='$libname$release$shared_ext$major'
12042 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 12043 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 12044 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
12045 else
12046 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 12047 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 12048 fi
a243b558
JF
12049 ;;
12050 hppa*64*)
12051 shrext_cmds='.sl'
12052 hardcode_into_libs=yes
12053 dynamic_linker="$host_os dld.sl"
12054 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12057 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12058 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12060 ;;
12061 *)
12062 shrext_cmds='.sl'
12063 dynamic_linker="$host_os dld.sl"
12064 shlibpath_var=SHLIB_PATH
12065 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12067 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
12068 ;;
12069 esac
a243b558
JF
12070 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12071 postinstall_cmds='chmod 555 $lib'
12072 # or fails outright, so override atomically:
12073 install_override_mode=555
12074 ;;
9c60689e 12075
a243b558
JF
12076interix[3-9]*)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 need_lib_prefix=no
12079 need_version=no
9d54db95
JF
12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12082 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 shlibpath_overrides_runpath=no
12085 hardcode_into_libs=yes
12086 ;;
9c60689e 12087
a243b558
JF
12088irix5* | irix6* | nonstopux*)
12089 case $host_os in
12090 nonstopux*) version_type=nonstopux ;;
12091 *)
9d54db95 12092 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
12093 version_type=linux # correct to gnu/linux during the next big refactor
12094 else
12095 version_type=irix
12096 fi ;;
12097 esac
12098 need_lib_prefix=no
12099 need_version=no
9d54db95
JF
12100 soname_spec='$libname$release$shared_ext$major'
12101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
12102 case $host_os in
12103 irix5* | nonstopux*)
12104 libsuff= shlibsuff=
12105 ;;
12106 *)
12107 case $LD in # libtool.m4 will add one of these switches to LD
12108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12109 libsuff= shlibsuff= libmagic=32-bit;;
12110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12111 libsuff=32 shlibsuff=N32 libmagic=N32;;
12112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12114 *) libsuff= shlibsuff= libmagic=never-match;;
12115 esac
12116 ;;
12117 esac
12118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12119 shlibpath_overrides_runpath=no
9d54db95
JF
12120 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12121 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
12122 hardcode_into_libs=yes
12123 ;;
9c60689e 12124
a243b558
JF
12125# No shared lib support for Linux oldld, aout, or coff.
12126linux*oldld* | linux*aout* | linux*coff*)
12127 dynamic_linker=no
12128 ;;
9c60689e 12129
9d54db95
JF
12130linux*android*)
12131 version_type=none # Android doesn't support versioned libraries.
12132 need_lib_prefix=no
12133 need_version=no
12134 library_names_spec='$libname$release$shared_ext'
12135 soname_spec='$libname$release$shared_ext'
12136 finish_cmds=
12137 shlibpath_var=LD_LIBRARY_PATH
12138 shlibpath_overrides_runpath=yes
12139
12140 # This implies no fast_install, which is unacceptable.
12141 # Some rework will be needed to allow for fast_install
12142 # before this can be enabled.
12143 hardcode_into_libs=yes
12144
12145 dynamic_linker='Android linker'
12146 # Don't embed -rpath directories since the linker doesn't support them.
12147 hardcode_libdir_flag_spec='-L$libdir'
12148 ;;
12149
a243b558 12150# This must be glibc/ELF.
9d54db95 12151linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
12152 version_type=linux # correct to gnu/linux during the next big refactor
12153 need_lib_prefix=no
12154 need_version=no
9d54db95
JF
12155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12156 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 shlibpath_overrides_runpath=no
9c60689e 12160
a243b558
JF
12161 # Some binutils ld are patched to set DT_RUNPATH
12162 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
12163 $as_echo_n "(cached) " >&6
12164else
a243b558
JF
12165 lt_cv_shlibpath_overrides_runpath=no
12166 save_LDFLAGS=$LDFLAGS
12167 save_libdir=$libdir
12168 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12169 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h. */
ee134472 12172
a243b558
JF
12173int
12174main ()
9c60689e 12175{
9c60689e 12176
a243b558
JF
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181if ac_fn_c_try_link "$LINENO"; then :
12182 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12183 lt_cv_shlibpath_overrides_runpath=yes
12184fi
12185fi
12186rm -f core conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LDFLAGS=$save_LDFLAGS
12189 libdir=$save_libdir
9c60689e 12190
a243b558 12191fi
9c60689e 12192
a243b558 12193 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 12194
a243b558
JF
12195 # This implies no fast_install, which is unacceptable.
12196 # Some rework will be needed to allow for fast_install
12197 # before this can be enabled.
12198 hardcode_into_libs=yes
9c60689e 12199
9d54db95
JF
12200 # Ideally, we could use ldconfig to report *all* directores which are
12201 # searched for libraries, however this is still not possible. Aside from not
12202 # being certain /sbin/ldconfig is available, command
12203 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12204 # even though it is searched at run-time. Try to do the best guess by
12205 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
12206 if test -f /etc/ld.so.conf; then
12207 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' ' '`
12208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12209 fi
ee134472 12210
a243b558
JF
12211 # We used to test for /lib/ld.so.1 and disable shared libraries on
12212 # powerpc, because MkLinux only supported shared libraries with the
12213 # GNU dynamic linker. Since this was broken with cross compilers,
12214 # most powerpc-linux boxes support dynamic linking these days and
12215 # people can always --disable-shared, the test was removed, and we
12216 # assume the GNU/Linux dynamic linker is in use.
12217 dynamic_linker='GNU/Linux ld.so'
12218 ;;
9c60689e 12219
a243b558
JF
12220netbsd*)
12221 version_type=sunos
12222 need_lib_prefix=no
12223 need_version=no
12224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12227 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 12228 else
9d54db95
JF
12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12230 soname_spec='$libname$release$shared_ext$major'
a243b558 12231 dynamic_linker='NetBSD ld.elf_so'
9c60689e 12232 fi
a243b558
JF
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=yes
12235 hardcode_into_libs=yes
12236 ;;
9c60689e 12237
a243b558
JF
12238newsos6)
12239 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=yes
12243 ;;
9c60689e 12244
a243b558
JF
12245*nto* | *qnx*)
12246 version_type=qnx
12247 need_lib_prefix=no
12248 need_version=no
9d54db95
JF
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=no
12253 hardcode_into_libs=yes
12254 dynamic_linker='ldqnx.so'
12255 ;;
9c60689e 12256
9d54db95 12257openbsd* | bitrig*)
a243b558 12258 version_type=sunos
9d54db95 12259 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 12260 need_lib_prefix=no
9d54db95
JF
12261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12262 need_version=no
a243b558 12263 else
9d54db95 12264 need_version=yes
a243b558 12265 fi
9d54db95
JF
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=yes
a243b558 12270 ;;
9c60689e 12271
a243b558
JF
12272os2*)
12273 libname_spec='$name'
9d54db95
JF
12274 version_type=windows
12275 shrext_cmds=.dll
12276 need_version=no
a243b558 12277 need_lib_prefix=no
9d54db95
JF
12278 # OS/2 can only load a DLL with a base name of 8 characters or less.
12279 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12280 v=$($ECHO $release$versuffix | tr -d .-);
12281 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12282 $ECHO $n$v`$shared_ext'
12283 library_names_spec='${libname}_dll.$libext'
a243b558 12284 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
12285 shlibpath_var=BEGINLIBPATH
12286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12288 postinstall_cmds='base_file=`basename \$file`~
12289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12290 dldir=$destdir/`dirname \$dlpath`~
12291 test -d \$dldir || mkdir -p \$dldir~
12292 $install_prog $dir/$dlname \$dldir/$dlname~
12293 chmod a+x \$dldir/$dlname~
12294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12296 fi'
12297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12298 dlpath=$dir/\$dldll~
12299 $RM \$dlpath'
a243b558 12300 ;;
9c60689e 12301
a243b558
JF
12302osf3* | osf4* | osf5*)
12303 version_type=osf
12304 need_lib_prefix=no
12305 need_version=no
9d54db95
JF
12306 soname_spec='$libname$release$shared_ext$major'
12307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12308 shlibpath_var=LD_LIBRARY_PATH
12309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 12310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
12311 ;;
12312
12313rdos*)
12314 dynamic_linker=no
12315 ;;
12316
12317solaris*)
12318 version_type=linux # correct to gnu/linux during the next big refactor
12319 need_lib_prefix=no
12320 need_version=no
9d54db95
JF
12321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12322 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12323 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=yes
12325 hardcode_into_libs=yes
12326 # ldd complains unless libraries are executable
12327 postinstall_cmds='chmod +x $lib'
12328 ;;
9c60689e 12329
a243b558
JF
12330sunos4*)
12331 version_type=sunos
9d54db95 12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=yes
9d54db95 12336 if test yes = "$with_gnu_ld"; then
a243b558
JF
12337 need_lib_prefix=no
12338 fi
12339 need_version=yes
12340 ;;
9c60689e 12341
a243b558
JF
12342sysv4 | sysv4.3*)
12343 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12346 shlibpath_var=LD_LIBRARY_PATH
12347 case $host_vendor in
12348 sni)
12349 shlibpath_overrides_runpath=no
12350 need_lib_prefix=no
12351 runpath_var=LD_RUN_PATH
12352 ;;
12353 siemens)
12354 need_lib_prefix=no
12355 ;;
12356 motorola)
12357 need_lib_prefix=no
12358 need_version=no
12359 shlibpath_overrides_runpath=no
12360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12361 ;;
12362 esac
12363 ;;
9c60689e 12364
a243b558 12365sysv4*MP*)
9d54db95 12366 if test -d /usr/nec; then
a243b558 12367 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12368 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12369 soname_spec='$libname$shared_ext.$major'
a243b558
JF
12370 shlibpath_var=LD_LIBRARY_PATH
12371 fi
12372 ;;
9c60689e 12373
a243b558 12374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 12375 version_type=sco
a243b558
JF
12376 need_lib_prefix=no
12377 need_version=no
9d54db95
JF
12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12379 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=yes
12382 hardcode_into_libs=yes
9d54db95 12383 if test yes = "$with_gnu_ld"; then
a243b558
JF
12384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12385 else
12386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12387 case $host_os in
12388 sco3.2v5*)
12389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12390 ;;
12391 esac
12392 fi
12393 sys_lib_dlsearch_path_spec='/usr/lib'
12394 ;;
9c60689e 12395
a243b558
JF
12396tpf*)
12397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12398 version_type=linux # correct to gnu/linux during the next big refactor
12399 need_lib_prefix=no
12400 need_version=no
9d54db95 12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12402 shlibpath_var=LD_LIBRARY_PATH
12403 shlibpath_overrides_runpath=no
12404 hardcode_into_libs=yes
12405 ;;
9c60689e 12406
a243b558
JF
12407uts4*)
12408 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12410 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12411 shlibpath_var=LD_LIBRARY_PATH
12412 ;;
9c60689e 12413
a243b558
JF
12414*)
12415 dynamic_linker=no
12416 ;;
12417esac
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12419$as_echo "$dynamic_linker" >&6; }
9d54db95 12420test no = "$dynamic_linker" && can_build_shared=no
9c60689e 12421
a243b558 12422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 12423if test yes = "$GCC"; then
a243b558
JF
12424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12425fi
9c60689e 12426
9d54db95
JF
12427if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12428 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 12429fi
9d54db95
JF
12430
12431if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12432 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 12433fi
9c60689e 12434
9d54db95
JF
12435# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12436configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12437
12438# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12439func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12440
12441# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12442configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12443
12444
12445
12446
12447
12448
9c60689e
DWT
12449
12450
12451
12452
12453
12454
12455
9c60689e
DWT
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
9c60689e 12468
9c60689e 12469
9c60689e 12470
9c60689e 12471
9c60689e
DWT
12472
12473
12474
12475
9c60689e 12476
9c60689e
DWT
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
53ba6704
JF
12490
12491
9c60689e
DWT
12492
12493
12494
12495
9c60689e
DWT
12496
12497
3fd51f51 12498
66170b30
JF
12499
12500
12501
3fd51f51 12502
12833ad8
JF
12503
12504
12505
12506
3fd51f51 12507
3fd51f51
DWT
12508
12509
3fd51f51 12510
3fd51f51 12511
3fd51f51 12512
66170b30 12513
632b71ea 12514
632b71ea
DWT
12515
12516
790e5246 12517
66170b30 12518
9c60689e 12519
9c60689e
DWT
12520
12521
9c60689e 12522
9c60689e
DWT
12523
12524
66170b30 12525
66170b30 12526
9c60689e 12527
e9c9a47c
DWT
12528
12529
12530
66170b30
JF
12531
12532
66170b30 12533
e9c9a47c 12534
a243b558
JF
12535
12536
12537
12538
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12541$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12542hardcode_action=
12543if test -n "$hardcode_libdir_flag_spec" ||
12544 test -n "$runpath_var" ||
9d54db95 12545 test yes = "$hardcode_automatic"; then
a243b558
JF
12546
12547 # We can hardcode non-existent directories.
9d54db95 12548 if test no != "$hardcode_direct" &&
a243b558
JF
12549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12550 # have to relink, otherwise we might link with an installed library
12551 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
12552 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12553 test no != "$hardcode_minus_L"; then
a243b558
JF
12554 # Linking always hardcodes the temporary library directory.
12555 hardcode_action=relink
12556 else
12557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12558 hardcode_action=immediate
9c60689e 12559 fi
e9c9a47c 12560else
a243b558
JF
12561 # We cannot hardcode anything, or else we can only hardcode existing
12562 # directories.
12563 hardcode_action=unsupported
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12566$as_echo "$hardcode_action" >&6; }
12567
9d54db95
JF
12568if test relink = "$hardcode_action" ||
12569 test yes = "$inherit_rpath"; then
a243b558
JF
12570 # Fast installation is not supported
12571 enable_fast_install=no
9d54db95
JF
12572elif test yes = "$shlibpath_overrides_runpath" ||
12573 test no = "$enable_shared"; then
a243b558
JF
12574 # Fast installation is not necessary
12575 enable_fast_install=needless
9c60689e 12576fi
9c60689e 12577
9c60689e 12578
66170b30 12579
66170b30 12580
9c60689e 12581
a243b558 12582
9d54db95 12583 if test yes != "$enable_dlopen"; then
a243b558
JF
12584 enable_dlopen=unknown
12585 enable_dlopen_self=unknown
12586 enable_dlopen_self_static=unknown
66170b30 12587else
a243b558
JF
12588 lt_cv_dlopen=no
12589 lt_cv_dlopen_libs=
66170b30 12590
a243b558
JF
12591 case $host_os in
12592 beos*)
9d54db95 12593 lt_cv_dlopen=load_add_on
a243b558
JF
12594 lt_cv_dlopen_libs=
12595 lt_cv_dlopen_self=yes
12596 ;;
66170b30 12597
a243b558 12598 mingw* | pw32* | cegcc*)
9d54db95 12599 lt_cv_dlopen=LoadLibrary
a243b558
JF
12600 lt_cv_dlopen_libs=
12601 ;;
66170b30 12602
a243b558 12603 cygwin*)
9d54db95 12604 lt_cv_dlopen=dlopen
a243b558
JF
12605 lt_cv_dlopen_libs=
12606 ;;
66170b30 12607
a243b558 12608 darwin*)
9d54db95 12609 # if libdl is installed we need to link against it
a243b558
JF
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12611$as_echo_n "checking for dlopen in -ldl... " >&6; }
12612if ${ac_cv_lib_dl_dlopen+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614else
12615 ac_check_lib_save_LIBS=$LIBS
12616LIBS="-ldl $LIBS"
12617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618/* end confdefs.h. */
66170b30 12619
a243b558
JF
12620/* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623#ifdef __cplusplus
12624extern "C"
12625#endif
12626char dlopen ();
12627int
12628main ()
12629{
12630return dlopen ();
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_dl_dlopen=yes
12637else
12638 ac_cv_lib_dl_dlopen=no
66170b30 12639fi
a243b558
JF
12640rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642LIBS=$ac_check_lib_save_LIBS
66170b30 12643fi
a243b558
JF
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12645$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12646if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12647 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 12648else
66170b30 12649
9d54db95 12650 lt_cv_dlopen=dyld
a243b558
JF
12651 lt_cv_dlopen_libs=
12652 lt_cv_dlopen_self=yes
66170b30 12653
a243b558 12654fi
9c60689e 12655
a243b558 12656 ;;
9c60689e 12657
9d54db95
JF
12658 tpf*)
12659 # Don't try to run any link tests for TPF. We know it's impossible
12660 # because TPF is a cross-compiler, and we know how we open DSOs.
12661 lt_cv_dlopen=dlopen
12662 lt_cv_dlopen_libs=
12663 lt_cv_dlopen_self=no
12664 ;;
12665
a243b558
JF
12666 *)
12667 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12668if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 12669 lt_cv_dlopen=shl_load
a243b558
JF
12670else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12672$as_echo_n "checking for shl_load in -ldld... " >&6; }
12673if ${ac_cv_lib_dld_shl_load+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675else
12676 ac_check_lib_save_LIBS=$LIBS
12677LIBS="-ldld $LIBS"
12678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679/* end confdefs.h. */
66170b30 12680
a243b558
JF
12681/* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684#ifdef __cplusplus
12685extern "C"
12686#endif
12687char shl_load ();
12688int
12689main ()
12690{
12691return shl_load ();
12692 ;
12693 return 0;
12694}
12695_ACEOF
12696if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_dld_shl_load=yes
66170b30 12698else
a243b558
JF
12699 ac_cv_lib_dld_shl_load=no
12700fi
12701rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703LIBS=$ac_check_lib_save_LIBS
66170b30 12704fi
a243b558
JF
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12706$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12707if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 12708 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
12709else
12710 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12711if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 12712 lt_cv_dlopen=dlopen
a243b558
JF
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12715$as_echo_n "checking for dlopen in -ldl... " >&6; }
12716if ${ac_cv_lib_dl_dlopen+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718else
12719 ac_check_lib_save_LIBS=$LIBS
12720LIBS="-ldl $LIBS"
12721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722/* end confdefs.h. */
e9c9a47c 12723
a243b558
JF
12724/* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12727#ifdef __cplusplus
12728extern "C"
12729#endif
12730char dlopen ();
12731int
12732main ()
12733{
12734return dlopen ();
12735 ;
12736 return 0;
12737}
12738_ACEOF
12739if ac_fn_c_try_link "$LINENO"; then :
12740 ac_cv_lib_dl_dlopen=yes
12741else
12742 ac_cv_lib_dl_dlopen=no
12743fi
12744rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746LIBS=$ac_check_lib_save_LIBS
12747fi
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12750if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12751 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
12752else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12754$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12755if ${ac_cv_lib_svld_dlopen+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757else
12758 ac_check_lib_save_LIBS=$LIBS
12759LIBS="-lsvld $LIBS"
12760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761/* end confdefs.h. */
12762
12763/* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12766#ifdef __cplusplus
12767extern "C"
12768#endif
12769char dlopen ();
12770int
12771main ()
12772{
12773return dlopen ();
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_svld_dlopen=yes
12780else
12781 ac_cv_lib_svld_dlopen=no
12782fi
12783rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785LIBS=$ac_check_lib_save_LIBS
12786fi
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12788$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12789if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 12790 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
12791else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12793$as_echo_n "checking for dld_link in -ldld... " >&6; }
12794if ${ac_cv_lib_dld_dld_link+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796else
12797 ac_check_lib_save_LIBS=$LIBS
12798LIBS="-ldld $LIBS"
12799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h. */
12801
12802/* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12805#ifdef __cplusplus
12806extern "C"
12807#endif
12808char dld_link ();
12809int
12810main ()
12811{
12812return dld_link ();
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_lib_dld_dld_link=yes
9c60689e 12819else
a243b558
JF
12820 ac_cv_lib_dld_dld_link=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12827$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12828if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 12829 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
12830fi
12831
12832
a243b558 12833fi
66170b30 12834
66170b30 12835
a243b558 12836fi
66170b30 12837
66170b30
JF
12838
12839fi
e9c9a47c 12840
66170b30 12841
a243b558 12842fi
66170b30 12843
66170b30 12844
66170b30 12845fi
e9c9a47c 12846
a243b558
JF
12847 ;;
12848 esac
9c60689e 12849
9d54db95 12850 if test no = "$lt_cv_dlopen"; then
a243b558 12851 enable_dlopen=no
9d54db95
JF
12852 else
12853 enable_dlopen=yes
a243b558 12854 fi
9c60689e 12855
a243b558
JF
12856 case $lt_cv_dlopen in
12857 dlopen)
9d54db95
JF
12858 save_CPPFLAGS=$CPPFLAGS
12859 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12860
9d54db95 12861 save_LDFLAGS=$LDFLAGS
a243b558 12862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12863
9d54db95 12864 save_LIBS=$LIBS
a243b558 12865 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12866
a243b558
JF
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12868$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12869if ${lt_cv_dlopen_self+:} false; then :
12870 $as_echo_n "(cached) " >&6
e9c9a47c 12871else
9d54db95 12872 if test yes = "$cross_compiling"; then :
a243b558
JF
12873 lt_cv_dlopen_self=cross
12874else
12875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12876 lt_status=$lt_dlunknown
12877 cat > conftest.$ac_ext <<_LT_EOF
12878#line $LINENO "configure"
12879#include "confdefs.h"
e9c9a47c 12880
a243b558
JF
12881#if HAVE_DLFCN_H
12882#include <dlfcn.h>
12883#endif
e9c9a47c 12884
a243b558 12885#include <stdio.h>
66170b30 12886
a243b558
JF
12887#ifdef RTLD_GLOBAL
12888# define LT_DLGLOBAL RTLD_GLOBAL
12889#else
12890# ifdef DL_GLOBAL
12891# define LT_DLGLOBAL DL_GLOBAL
12892# else
12893# define LT_DLGLOBAL 0
12894# endif
12895#endif
66170b30 12896
a243b558
JF
12897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12898 find out it does not work in some platform. */
12899#ifndef LT_DLLAZY_OR_NOW
12900# ifdef RTLD_LAZY
12901# define LT_DLLAZY_OR_NOW RTLD_LAZY
12902# else
12903# ifdef DL_LAZY
12904# define LT_DLLAZY_OR_NOW DL_LAZY
12905# else
12906# ifdef RTLD_NOW
12907# define LT_DLLAZY_OR_NOW RTLD_NOW
12908# else
12909# ifdef DL_NOW
12910# define LT_DLLAZY_OR_NOW DL_NOW
12911# else
12912# define LT_DLLAZY_OR_NOW 0
12913# endif
12914# endif
12915# endif
12916# endif
12917#endif
e9c9a47c 12918
9d54db95 12919/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 12920 correspondingly for the symbols needed. */
9d54db95 12921#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
12922int fnord () __attribute__((visibility("default")));
12923#endif
e9c9a47c 12924
a243b558
JF
12925int fnord () { return 42; }
12926int main ()
12927{
12928 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12929 int status = $lt_dlunknown;
e9c9a47c 12930
a243b558
JF
12931 if (self)
12932 {
12933 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12934 else
12935 {
12936 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12937 else puts (dlerror ());
12938 }
12939 /* dlclose (self); */
12940 }
12941 else
12942 puts (dlerror ());
e9c9a47c 12943
a243b558
JF
12944 return status;
12945}
12946_LT_EOF
12947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12948 (eval $ac_link) 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 12951 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
12952 (./conftest; exit; ) >&5 2>/dev/null
12953 lt_status=$?
12954 case x$lt_status in
12955 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12956 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12957 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12958 esac
12959 else :
12960 # compilation failed
12961 lt_cv_dlopen_self=no
12962 fi
12963fi
12964rm -fr conftest*
e9c9a47c 12965
e9c9a47c 12966
e9c9a47c 12967fi
a243b558
JF
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12969$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12970
9d54db95 12971 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
12972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12974$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12975if ${lt_cv_dlopen_self_static+:} false; then :
12976 $as_echo_n "(cached) " >&6
e9c9a47c 12977else
9d54db95 12978 if test yes = "$cross_compiling"; then :
a243b558
JF
12979 lt_cv_dlopen_self_static=cross
12980else
12981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12982 lt_status=$lt_dlunknown
12983 cat > conftest.$ac_ext <<_LT_EOF
12984#line $LINENO "configure"
12985#include "confdefs.h"
12986
12987#if HAVE_DLFCN_H
12988#include <dlfcn.h>
12989#endif
12990
12991#include <stdio.h>
e9c9a47c 12992
a243b558
JF
12993#ifdef RTLD_GLOBAL
12994# define LT_DLGLOBAL RTLD_GLOBAL
12995#else
12996# ifdef DL_GLOBAL
12997# define LT_DLGLOBAL DL_GLOBAL
12998# else
12999# define LT_DLGLOBAL 0
13000# endif
13001#endif
e9c9a47c 13002
a243b558
JF
13003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13004 find out it does not work in some platform. */
13005#ifndef LT_DLLAZY_OR_NOW
13006# ifdef RTLD_LAZY
13007# define LT_DLLAZY_OR_NOW RTLD_LAZY
13008# else
13009# ifdef DL_LAZY
13010# define LT_DLLAZY_OR_NOW DL_LAZY
13011# else
13012# ifdef RTLD_NOW
13013# define LT_DLLAZY_OR_NOW RTLD_NOW
13014# else
13015# ifdef DL_NOW
13016# define LT_DLLAZY_OR_NOW DL_NOW
13017# else
13018# define LT_DLLAZY_OR_NOW 0
13019# endif
13020# endif
13021# endif
13022# endif
13023#endif
66170b30 13024
9d54db95 13025/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 13026 correspondingly for the symbols needed. */
9d54db95 13027#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
13028int fnord () __attribute__((visibility("default")));
13029#endif
e9c9a47c 13030
a243b558
JF
13031int fnord () { return 42; }
13032int main ()
13033{
13034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13035 int status = $lt_dlunknown;
e9c9a47c 13036
a243b558
JF
13037 if (self)
13038 {
13039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13040 else
13041 {
13042 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13043 else puts (dlerror ());
13044 }
13045 /* dlclose (self); */
13046 }
13047 else
13048 puts (dlerror ());
e9c9a47c 13049
a243b558
JF
13050 return status;
13051}
13052_LT_EOF
13053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13054 (eval $ac_link) 2>&5
13055 ac_status=$?
13056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 13057 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
13058 (./conftest; exit; ) >&5 2>/dev/null
13059 lt_status=$?
13060 case x$lt_status in
13061 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13062 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13063 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13064 esac
13065 else :
13066 # compilation failed
13067 lt_cv_dlopen_self_static=no
13068 fi
13069fi
13070rm -fr conftest*
e9c9a47c 13071
b65019fe 13072
a243b558
JF
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13075$as_echo "$lt_cv_dlopen_self_static" >&6; }
13076 fi
66170b30 13077
9d54db95
JF
13078 CPPFLAGS=$save_CPPFLAGS
13079 LDFLAGS=$save_LDFLAGS
13080 LIBS=$save_LIBS
a243b558
JF
13081 ;;
13082 esac
66170b30 13083
a243b558
JF
13084 case $lt_cv_dlopen_self in
13085 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13086 *) enable_dlopen_self=unknown ;;
13087 esac
13088
13089 case $lt_cv_dlopen_self_static in
13090 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13091 *) enable_dlopen_self_static=unknown ;;
13092 esac
b65019fe
DWT
13093fi
13094
13095
66170b30 13096
b65019fe 13097
e9c9a47c 13098
e9c9a47c
DWT
13099
13100
e9c9a47c 13101
e9c9a47c
DWT
13102
13103
e9c9a47c 13104
e9c9a47c 13105
3530897b 13106
47aaa820 13107
47aaa820 13108
a243b558
JF
13109
13110
13111striplib=
13112old_striplib=
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13114$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13115if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13116 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13117 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13119$as_echo "yes" >&6; }
47aaa820 13120else
a243b558
JF
13121# FIXME - insert some real tests, host_os isn't really good enough
13122 case $host_os in
13123 darwin*)
9d54db95 13124 if test -n "$STRIP"; then
a243b558
JF
13125 striplib="$STRIP -x"
13126 old_striplib="$STRIP -S"
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128$as_echo "yes" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131$as_echo "no" >&6; }
13132 fi
13133 ;;
13134 *)
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136$as_echo "no" >&6; }
13137 ;;
13138 esac
3530897b 13139fi
47aaa820 13140
3530897b
DWT
13141
13142
9c60689e 13143
9c60689e 13144
9c60689e 13145
9c60689e 13146
9c60689e 13147
66170b30 13148
66170b30 13149
66170b30 13150
66170b30 13151
9d54db95 13152 # Report what library types will actually be built
a243b558
JF
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13154$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13156$as_echo "$can_build_shared" >&6; }
66170b30 13157
a243b558
JF
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13159$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 13160 test no = "$can_build_shared" && enable_shared=no
66170b30 13161
a243b558
JF
13162 # On AIX, shared libraries and static libraries use the same namespace, and
13163 # are all built from PIC.
13164 case $host_os in
13165 aix3*)
9d54db95 13166 test yes = "$enable_shared" && enable_static=no
a243b558
JF
13167 if test -n "$RANLIB"; then
13168 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13169 postinstall_cmds='$RANLIB $lib'
13170 fi
13171 ;;
66170b30 13172
a243b558 13173 aix[4-9]*)
9d54db95
JF
13174 if test ia64 != "$host_cpu"; then
13175 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13176 yes,aix,yes) ;; # shared object as lib.so file only
13177 yes,svr4,*) ;; # shared object as lib.so archive member only
13178 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13179 esac
a243b558
JF
13180 fi
13181 ;;
13182 esac
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13184$as_echo "$enable_shared" >&6; }
66170b30 13185
a243b558
JF
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13187$as_echo_n "checking whether to build static libraries... " >&6; }
13188 # Make sure either enable_shared or enable_static is yes.
9d54db95 13189 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13191$as_echo "$enable_static" >&6; }
66170b30 13192
9c60689e 13193
e9c9a47c 13194
9c60689e 13195
a243b558
JF
13196fi
13197ac_ext=c
13198ac_cpp='$CPP $CPPFLAGS'
13199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
9d54db95 13203CC=$lt_save_CC
e9c9a47c 13204
9d54db95
JF
13205 if test -n "$CXX" && ( test no != "$CXX" &&
13206 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13207 (test g++ != "$CXX"))); then
e9c9a47c
DWT
13208 ac_ext=cpp
13209ac_cpp='$CXXCPP $CPPFLAGS'
13210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13214$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13215if test -z "$CXXCPP"; then
ee134472 13216 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
13217 $as_echo_n "(cached) " >&6
13218else
13219 # Double quotes because CXXCPP needs to be expanded
13220 for CXXCPP in "$CXX -E" "/lib/cpp"
13221 do
13222 ac_preproc_ok=false
13223for ac_cxx_preproc_warn_flag in '' yes
13224do
13225 # Use a header file that comes with gcc, so configuring glibc
13226 # with a fresh cross-compiler works.
13227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13228 # <limits.h> exists even on freestanding compilers.
13229 # On the NeXT, cc -E runs the code through the compiler's parser,
13230 # not just through cpp. "Syntax error" is here to catch this case.
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232/* end confdefs.h. */
13233#ifdef __STDC__
13234# include <limits.h>
13235#else
13236# include <assert.h>
13237#endif
13238 Syntax error
13239_ACEOF
13240if ac_fn_cxx_try_cpp "$LINENO"; then :
13241
13242else
13243 # Broken: fails on valid input.
13244continue
13245fi
12833ad8 13246rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13247
13248 # OK, works on sane cases. Now check whether nonexistent headers
13249 # can be detected and how.
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251/* end confdefs.h. */
13252#include <ac_nonexistent.h>
13253_ACEOF
13254if ac_fn_cxx_try_cpp "$LINENO"; then :
13255 # Broken: success on invalid input.
13256continue
13257else
13258 # Passes both tests.
13259ac_preproc_ok=:
13260break
13261fi
12833ad8 13262rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13263
13264done
13265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13266rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13267if $ac_preproc_ok; then :
13268 break
13269fi
13270
13271 done
13272 ac_cv_prog_CXXCPP=$CXXCPP
13273
13274fi
13275 CXXCPP=$ac_cv_prog_CXXCPP
13276else
13277 ac_cv_prog_CXXCPP=$CXXCPP
13278fi
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13280$as_echo "$CXXCPP" >&6; }
13281ac_preproc_ok=false
13282for ac_cxx_preproc_warn_flag in '' yes
13283do
13284 # Use a header file that comes with gcc, so configuring glibc
13285 # with a fresh cross-compiler works.
13286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13287 # <limits.h> exists even on freestanding compilers.
13288 # On the NeXT, cc -E runs the code through the compiler's parser,
13289 # not just through cpp. "Syntax error" is here to catch this case.
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h. */
13292#ifdef __STDC__
13293# include <limits.h>
13294#else
13295# include <assert.h>
13296#endif
13297 Syntax error
13298_ACEOF
13299if ac_fn_cxx_try_cpp "$LINENO"; then :
13300
13301else
13302 # Broken: fails on valid input.
13303continue
13304fi
12833ad8 13305rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13306
13307 # OK, works on sane cases. Now check whether nonexistent headers
13308 # can be detected and how.
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310/* end confdefs.h. */
13311#include <ac_nonexistent.h>
13312_ACEOF
13313if ac_fn_cxx_try_cpp "$LINENO"; then :
13314 # Broken: success on invalid input.
13315continue
13316else
13317 # Passes both tests.
13318ac_preproc_ok=:
13319break
13320fi
12833ad8 13321rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13322
13323done
13324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13325rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13326if $ac_preproc_ok; then :
13327
13328else
13329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
13331as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13332See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
13333fi
13334
a243b558
JF
13335ac_ext=c
13336ac_cpp='$CPP $CPPFLAGS'
13337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
13340
13341else
e9c9a47c
DWT
13342 _lt_caught_CXX_error=yes
13343fi
13344
9c60689e
DWT
13345ac_ext=cpp
13346ac_cpp='$CXXCPP $CPPFLAGS'
13347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 13350
47aaa820
DWT
13351archive_cmds_need_lc_CXX=no
13352allow_undefined_flag_CXX=
13353always_export_symbols_CXX=no
13354archive_expsym_cmds_CXX=
13355compiler_needs_object_CXX=no
13356export_dynamic_flag_spec_CXX=
13357hardcode_direct_CXX=no
13358hardcode_direct_absolute_CXX=no
13359hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
13360hardcode_libdir_separator_CXX=
13361hardcode_minus_L_CXX=no
13362hardcode_shlibpath_var_CXX=unsupported
13363hardcode_automatic_CXX=no
13364inherit_rpath_CXX=no
13365module_cmds_CXX=
13366module_expsym_cmds_CXX=
13367link_all_deplibs_CXX=unknown
13368old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
13369reload_flag_CXX=$reload_flag
13370reload_cmds_CXX=$reload_cmds
47aaa820
DWT
13371no_undefined_flag_CXX=
13372whole_archive_flag_spec_CXX=
13373enable_shared_with_static_runtimes_CXX=no
9c60689e 13374
47aaa820
DWT
13375# Source file extension for C++ test sources.
13376ac_ext=cpp
9c60689e 13377
47aaa820
DWT
13378# Object file extension for compiled C++ test sources.
13379objext=o
13380objext_CXX=$objext
9c60689e 13381
47aaa820
DWT
13382# No sense in running all these tests if we already determined that
13383# the CXX compiler isn't working. Some variables (like enable_shared)
13384# are currently assumed to apply to all compilers on this platform,
13385# and will be corrupted by setting them based on a non-working compiler.
9d54db95 13386if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
13387 # Code to be used in simple compile tests
13388 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 13389
47aaa820
DWT
13390 # Code to be used in simple link tests
13391 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 13392
47aaa820 13393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 13394
9c60689e 13395
9c60689e 13396
9c60689e 13397
9c60689e 13398
9c60689e 13399
47aaa820
DWT
13400# If no C compiler was specified, use CC.
13401LTCC=${LTCC-"$CC"}
9c60689e 13402
47aaa820
DWT
13403# If no C compiler flags were specified, use CFLAGS.
13404LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 13405
47aaa820
DWT
13406# Allow CC to be a program name with arguments.
13407compiler=$CC
9c60689e 13408
9c60689e 13409
47aaa820
DWT
13410 # save warnings/boilerplate of simple test code
13411 ac_outfile=conftest.$ac_objext
13412echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13413eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13414_lt_compiler_boilerplate=`cat conftest.err`
00a96142 13415$RM -r conftest*
9c60689e 13416
47aaa820
DWT
13417 ac_outfile=conftest.$ac_objext
13418echo "$lt_simple_link_test_code" >conftest.$ac_ext
13419eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13420_lt_linker_boilerplate=`cat conftest.err`
13421$RM -r conftest*
9c60689e 13422
9c60689e 13423
47aaa820
DWT
13424 # Allow CC to be a program name with arguments.
13425 lt_save_CC=$CC
ee134472 13426 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
13427 lt_save_LD=$LD
13428 lt_save_GCC=$GCC
13429 GCC=$GXX
13430 lt_save_with_gnu_ld=$with_gnu_ld
13431 lt_save_path_LD=$lt_cv_path_LD
13432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 13434 else
47aaa820 13435 $as_unset lt_cv_prog_gnu_ld
9c60689e 13436 fi
47aaa820
DWT
13437 if test -n "${lt_cv_path_LDCXX+set}"; then
13438 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 13439 else
47aaa820 13440 $as_unset lt_cv_path_LD
9c60689e 13441 fi
47aaa820
DWT
13442 test -z "${LDCXX+set}" || LD=$LDCXX
13443 CC=${CXX-"c++"}
ee134472 13444 CFLAGS=$CXXFLAGS
47aaa820
DWT
13445 compiler=$CC
13446 compiler_CXX=$CC
9d54db95
JF
13447 func_cc_basename $compiler
13448cc_basename=$func_cc_basename_result
9c60689e
DWT
13449
13450
47aaa820
DWT
13451 if test -n "$compiler"; then
13452 # We don't want -fno-exception when compiling C++ code, so set the
13453 # no_builtin_flag separately
9d54db95 13454 if test yes = "$GXX"; then
47aaa820
DWT
13455 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13456 else
13457 lt_prog_compiler_no_builtin_flag_CXX=
13458 fi
9c60689e 13459
9d54db95 13460 if test yes = "$GXX"; then
47aaa820
DWT
13461 # Set up default GNU C++ configuration
13462
13463
13464
13465# Check whether --with-gnu-ld was given.
13466if test "${with_gnu_ld+set}" = set; then :
9d54db95 13467 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 13468else
47aaa820 13469 with_gnu_ld=no
9c60689e
DWT
13470fi
13471
47aaa820 13472ac_prog=ld
9d54db95 13473if test yes = "$GCC"; then
47aaa820
DWT
13474 # Check if gcc -print-prog-name=ld gives a path.
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13476$as_echo_n "checking for ld used by $CC... " >&6; }
13477 case $host in
13478 *-*-mingw*)
9d54db95 13479 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
13480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13481 *)
13482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13483 esac
13484 case $ac_prog in
13485 # Accept absolute paths.
13486 [\\/]* | ?:[\\/]*)
13487 re_direlt='/[^/][^/]*/\.\./'
13488 # Canonicalize the pathname of ld
13489 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13490 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13491 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13492 done
9d54db95 13493 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
13494 ;;
13495 "")
13496 # If it fails, then pretend we aren't using GCC.
13497 ac_prog=ld
13498 ;;
13499 *)
13500 # If it is relative, then search for the first ld in PATH.
13501 with_gnu_ld=unknown
13502 ;;
13503 esac
9d54db95 13504elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13506$as_echo_n "checking for GNU ld... " >&6; }
13507else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13509$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13510fi
ee134472 13511if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13512 $as_echo_n "(cached) " >&6
13513else
47aaa820 13514 if test -z "$LD"; then
9d54db95 13515 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 13516 for ac_dir in $PATH; do
9d54db95 13517 IFS=$lt_save_ifs
47aaa820
DWT
13518 test -z "$ac_dir" && ac_dir=.
13519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 13520 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
13521 # Check to see if the program is GNU ld. I'd rather use --version,
13522 # but apparently some variants of GNU ld only accept -v.
13523 # Break only if it was the GNU/non-GNU ld that we prefer.
13524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13525 *GNU* | *'with BFD'*)
9d54db95 13526 test no != "$with_gnu_ld" && break
47aaa820
DWT
13527 ;;
13528 *)
9d54db95 13529 test yes != "$with_gnu_ld" && break
47aaa820
DWT
13530 ;;
13531 esac
13532 fi
9c60689e 13533 done
9d54db95 13534 IFS=$lt_save_ifs
47aaa820 13535else
9d54db95 13536 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
13537fi
13538fi
47aaa820 13539
9d54db95 13540LD=$lt_cv_path_LD
47aaa820
DWT
13541if test -n "$LD"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13543$as_echo "$LD" >&6; }
9c60689e
DWT
13544else
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546$as_echo "no" >&6; }
13547fi
12833ad8 13548test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13550$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13551if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13552 $as_echo_n "(cached) " >&6
13553else
13554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13555case `$LD -v 2>&1 </dev/null` in
13556*GNU* | *'with BFD'*)
13557 lt_cv_prog_gnu_ld=yes
13558 ;;
13559*)
13560 lt_cv_prog_gnu_ld=no
13561 ;;
13562esac
13563fi
13564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13565$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13566with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13567
13568
9c60689e 13569
9c60689e 13570
9c60689e 13571
9c60689e 13572
9c60689e 13573
47aaa820
DWT
13574 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13575 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
13576 if test yes = "$with_gnu_ld"; then
13577 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13578 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 13579
9d54db95
JF
13580 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13581 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 13582
47aaa820
DWT
13583 # If archive_cmds runs LD, not CC, wlarc should be empty
13584 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13585 # investigate it a little bit more. (MM)
9d54db95 13586 wlarc='$wl'
9c60689e 13587
47aaa820
DWT
13588 # ancient GNU ld didn't support --whole-archive et. al.
13589 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13590 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 13591 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
13592 else
13593 whole_archive_flag_spec_CXX=
13594 fi
13595 else
13596 with_gnu_ld=no
13597 wlarc=
13598
13599 # A generic and very simple default shared library creation
13600 # command for GNU C++ for the case where it uses the native
13601 # linker, instead of GNU ld. If possible, this setting should
13602 # overridden to take advantage of the native linker features on
13603 # the platform it is being used on.
13604 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13605 fi
13606
13607 # Commands to make compiler produce verbose output that lists
13608 # what "hidden" libraries, object files and flags are used when
13609 # linking a shared library.
ee134472 13610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13611
13612 else
13613 GXX=no
13614 with_gnu_ld=no
13615 wlarc=
13616 fi
13617
13618 # PORTME: fill in a description of your system's C++ link characteristics
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13620$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13621 ld_shlibs_CXX=yes
13622 case $host_os in
13623 aix3*)
13624 # FIXME: insert proper C++ library support
13625 ld_shlibs_CXX=no
13626 ;;
13627 aix[4-9]*)
9d54db95 13628 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13629 # On IA64, the linker does run time linking by default, so we don't
13630 # have to do anything special.
13631 aix_use_runtimelinking=no
13632 exp_sym_flag='-Bexport'
9d54db95 13633 no_entry_flag=
47aaa820
DWT
13634 else
13635 aix_use_runtimelinking=no
13636
13637 # Test if we are trying to use run time linking or normal
13638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
13639 # have runtime linking enabled, and use it for executables.
13640 # For shared libraries, we enable/disable runtime linking
13641 # depending on the kind of the shared library created -
13642 # when "with_aix_soname,aix_use_runtimelinking" is:
13643 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13644 # "aix,yes" lib.so shared, rtl:yes, for executables
13645 # lib.a static archive
13646 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13647 # lib.a(lib.so.V) shared, rtl:no, for executables
13648 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13649 # lib.a(lib.so.V) shared, rtl:no
13650 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13651 # lib.a static archive
47aaa820
DWT
13652 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13653 for ld_flag in $LDFLAGS; do
13654 case $ld_flag in
13655 *-brtl*)
13656 aix_use_runtimelinking=yes
13657 break
13658 ;;
13659 esac
13660 done
9d54db95
JF
13661 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13662 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13663 # so we don't have lib.a shared libs to link our executables.
13664 # We have to force runtime linking in this case.
13665 aix_use_runtimelinking=yes
13666 LDFLAGS="$LDFLAGS -Wl,-brtl"
13667 fi
47aaa820
DWT
13668 ;;
13669 esac
13670
13671 exp_sym_flag='-bexport'
13672 no_entry_flag='-bnoentry'
13673 fi
13674
13675 # When large executables or shared objects are built, AIX ld can
13676 # have problems creating the table of contents. If linking a library
13677 # or program results in "error TOC overflow" add -mminimal-toc to
13678 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13679 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13680
13681 archive_cmds_CXX=''
13682 hardcode_direct_CXX=yes
13683 hardcode_direct_absolute_CXX=yes
13684 hardcode_libdir_separator_CXX=':'
13685 link_all_deplibs_CXX=yes
9d54db95
JF
13686 file_list_spec_CXX='$wl-f,'
13687 case $with_aix_soname,$aix_use_runtimelinking in
13688 aix,*) ;; # no import file
13689 svr4,* | *,yes) # use import file
13690 # The Import File defines what to hardcode.
13691 hardcode_direct_CXX=no
13692 hardcode_direct_absolute_CXX=no
13693 ;;
13694 esac
47aaa820 13695
9d54db95 13696 if test yes = "$GXX"; then
47aaa820
DWT
13697 case $host_os in aix4.[012]|aix4.[012].*)
13698 # We only want to do this on AIX 4.2 and lower, the check
13699 # below for broken collect2 doesn't work under 4.3+
9d54db95 13700 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
13701 if test -f "$collect2name" &&
13702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13703 then
13704 # We have reworked collect2
13705 :
13706 else
13707 # We have old collect2
13708 hardcode_direct_CXX=unsupported
13709 # It fails to find uninstalled libraries when the uninstalled
13710 # path is not listed in the libpath. Setting hardcode_minus_L
13711 # to unsupported forces relinking
13712 hardcode_minus_L_CXX=yes
13713 hardcode_libdir_flag_spec_CXX='-L$libdir'
13714 hardcode_libdir_separator_CXX=
13715 fi
13716 esac
13717 shared_flag='-shared'
9d54db95
JF
13718 if test yes = "$aix_use_runtimelinking"; then
13719 shared_flag=$shared_flag' $wl-G'
47aaa820 13720 fi
9d54db95
JF
13721 # Need to ensure runtime linking is disabled for the traditional
13722 # shared library, or the linker may eventually find shared libraries
13723 # /with/ Import File - we do not want to mix them.
13724 shared_flag_aix='-shared'
13725 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
13726 else
13727 # not using gcc
9d54db95 13728 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13730 # chokes on -Wl,-G. The following line is correct:
13731 shared_flag='-G'
13732 else
9d54db95
JF
13733 if test yes = "$aix_use_runtimelinking"; then
13734 shared_flag='$wl-G'
47aaa820 13735 else
9d54db95 13736 shared_flag='$wl-bM:SRE'
47aaa820 13737 fi
9d54db95
JF
13738 shared_flag_aix='$wl-bM:SRE'
13739 shared_flag_svr4='$wl-G'
47aaa820
DWT
13740 fi
13741 fi
13742
9d54db95 13743 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
13744 # It seems that -bexpall does not export symbols beginning with
13745 # underscore (_), so it is better to generate a list of symbols to
13746 # export.
13747 always_export_symbols_CXX=yes
9d54db95 13748 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
13749 # Warning - without using the other runtime loading flags (-brtl),
13750 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13751 # The "-G" linker flag allows undefined symbols.
13752 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
13753 # Determine the default libpath from the value encoded in an empty
13754 # executable.
9d54db95 13755 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13756 aix_libpath=$lt_cv_aix_libpath
13757else
13758 if ${lt_cv_aix_libpath__CXX+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13762/* end confdefs.h. */
13763
13764int
13765main ()
13766{
13767
13768 ;
13769 return 0;
13770}
13771_ACEOF
47aaa820 13772if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13773
ee134472
JF
13774 lt_aix_libpath_sed='
13775 /Import File Strings/,/^$/ {
13776 /^0/ {
13777 s/^0 *\([^ ]*\) *$/\1/
13778 p
13779 }
13780 }'
13781 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782 # Check for a 64-bit object if we didn't find anything.
13783 if test -z "$lt_cv_aix_libpath__CXX"; then
13784 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13785 fi
47aaa820
DWT
13786fi
13787rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
ee134472 13789 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13790 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13791 fi
13792
13793fi
13794
13795 aix_libpath=$lt_cv_aix_libpath__CXX
13796fi
47aaa820 13797
9d54db95 13798 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 13799
9d54db95 13800 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 13801 else
9d54db95
JF
13802 if test ia64 = "$host_cpu"; then
13803 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 13804 allow_undefined_flag_CXX="-z nodefs"
9d54db95 13805 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
13806 else
13807 # Determine the default libpath from the value encoded in an
13808 # empty executable.
9d54db95 13809 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13810 aix_libpath=$lt_cv_aix_libpath
13811else
13812 if ${lt_cv_aix_libpath__CXX+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13816/* end confdefs.h. */
13817
13818int
13819main ()
13820{
13821
13822 ;
13823 return 0;
13824}
13825_ACEOF
47aaa820 13826if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13827
ee134472
JF
13828 lt_aix_libpath_sed='
13829 /Import File Strings/,/^$/ {
13830 /^0/ {
13831 s/^0 *\([^ ]*\) *$/\1/
13832 p
13833 }
13834 }'
13835 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836 # Check for a 64-bit object if we didn't find anything.
13837 if test -z "$lt_cv_aix_libpath__CXX"; then
13838 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13839 fi
9c60689e 13840fi
47aaa820
DWT
13841rm -f core conftest.err conftest.$ac_objext \
13842 conftest$ac_exeext conftest.$ac_ext
ee134472 13843 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13844 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13845 fi
13846
13847fi
13848
13849 aix_libpath=$lt_cv_aix_libpath__CXX
13850fi
9c60689e 13851
9d54db95 13852 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
13853 # Warning - without using the other run time loading flags,
13854 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13855 no_undefined_flag_CXX=' $wl-bernotok'
13856 allow_undefined_flag_CXX=' $wl-berok'
13857 if test yes = "$with_gnu_ld"; then
ee134472 13858 # We only use this code for GNU lds that support --whole-archive.
9d54db95 13859 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
13860 else
13861 # Exported symbols can be pulled into shared objects from archives
13862 whole_archive_flag_spec_CXX='$convenience'
13863 fi
47aaa820 13864 archive_cmds_need_lc_CXX=yes
9d54db95
JF
13865 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13866 # -brtl affects multiple linker settings, -berok does not and is overridden later
13867 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13868 if test svr4 != "$with_aix_soname"; then
13869 # This is similar to how AIX traditionally builds its shared
13870 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13871 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'
13872 fi
13873 if test aix != "$with_aix_soname"; then
13874 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'
13875 else
13876 # used by -dlpreopen to get the symbols
13877 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13878 fi
13879 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
13880 fi
13881 fi
13882 ;;
9c60689e 13883
47aaa820
DWT
13884 beos*)
13885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13886 allow_undefined_flag_CXX=unsupported
13887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13888 # support --undefined. This deserves some investigation. FIXME
9d54db95 13889 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
13890 else
13891 ld_shlibs_CXX=no
13892 fi
13893 ;;
9c60689e 13894
47aaa820
DWT
13895 chorus*)
13896 case $cc_basename in
13897 *)
13898 # FIXME: insert proper C++ library support
13899 ld_shlibs_CXX=no
13900 ;;
13901 esac
13902 ;;
9c60689e 13903
47aaa820 13904 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13905 case $GXX,$cc_basename in
13906 ,cl* | no,cl*)
13907 # Native MSVC
13908 # hardcode_libdir_flag_spec is actually meaningless, as there is
13909 # no search path for DLLs.
13910 hardcode_libdir_flag_spec_CXX=' '
13911 allow_undefined_flag_CXX=unsupported
13912 always_export_symbols_CXX=yes
13913 file_list_spec_CXX='@'
13914 # Tell ltmain to make .lib files, not .a files.
13915 libext=lib
13916 # Tell ltmain to make .dll files, not .so files.
9d54db95 13917 shrext_cmds=.dll
ee134472 13918 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
13919 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13920 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13921 cp "$export_symbols" "$output_objdir/$soname.def";
13922 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13923 else
13924 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13925 fi~
13926 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13927 linknames='
ee134472
JF
13928 # The linker will not automatically build a static lib if we build a DLL.
13929 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13930 enable_shared_with_static_runtimes_CXX=yes
13931 # Don't use ranlib
13932 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13933 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
13934 lt_tool_outputfile="@TOOL_OUTPUT@"~
13935 case $lt_outputfile in
13936 *.exe|*.EXE) ;;
13937 *)
13938 lt_outputfile=$lt_outputfile.exe
13939 lt_tool_outputfile=$lt_tool_outputfile.exe
13940 ;;
13941 esac~
13942 func_to_tool_file "$lt_outputfile"~
13943 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13944 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13945 $RM "$lt_outputfile.manifest";
13946 fi'
ee134472
JF
13947 ;;
13948 *)
13949 # g++
13950 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13951 # as there is no search path for DLLs.
13952 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 13953 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
13954 allow_undefined_flag_CXX=unsupported
13955 always_export_symbols_CXX=no
13956 enable_shared_with_static_runtimes_CXX=yes
13957
13958 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
13959 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'
13960 # If the export-symbols file already is a .def file, use it as
13961 # is; otherwise, prepend EXPORTS...
13962 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13963 cp $export_symbols $output_objdir/$soname.def;
13964 else
13965 echo EXPORTS > $output_objdir/$soname.def;
13966 cat $export_symbols >> $output_objdir/$soname.def;
13967 fi~
13968 $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
13969 else
13970 ld_shlibs_CXX=no
13971 fi
13972 ;;
13973 esac
13974 ;;
47aaa820 13975 darwin* | rhapsody*)
9c60689e 13976
9c60689e 13977
47aaa820
DWT
13978 archive_cmds_need_lc_CXX=no
13979 hardcode_direct_CXX=no
13980 hardcode_automatic_CXX=yes
13981 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
13982 if test yes = "$lt_cv_ld_force_load"; then
13983 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 13984
ee134472
JF
13985 else
13986 whole_archive_flag_spec_CXX=''
13987 fi
47aaa820 13988 link_all_deplibs_CXX=yes
9d54db95 13989 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 13990 case $cc_basename in
9d54db95 13991 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
13992 *) _lt_dar_can_shared=$GCC ;;
13993 esac
9d54db95 13994 if test yes = "$_lt_dar_can_shared"; then
ee134472 13995 output_verbose_link_cmd=func_echo_all
9d54db95
JF
13996 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"
13997 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13998 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"
13999 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"
14000 if test yes != "$lt_cv_apple_cc_single_mod"; then
14001 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"
14002 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 14003 fi
9c60689e 14004
47aaa820
DWT
14005 else
14006 ld_shlibs_CXX=no
14007 fi
9c60689e 14008
47aaa820 14009 ;;
9c60689e 14010
9d54db95
JF
14011 os2*)
14012 hardcode_libdir_flag_spec_CXX='-L$libdir'
14013 hardcode_minus_L_CXX=yes
14014 allow_undefined_flag_CXX=unsupported
14015 shrext_cmds=.dll
14016 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14017 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14018 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14019 $ECHO EXPORTS >> $output_objdir/$libname.def~
14020 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14022 emximp -o $lib $output_objdir/$libname.def'
14023 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14026 $ECHO EXPORTS >> $output_objdir/$libname.def~
14027 prefix_cmds="$SED"~
14028 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14029 prefix_cmds="$prefix_cmds -e 1d";
14030 fi~
14031 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14032 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14034 emximp -o $lib $output_objdir/$libname.def'
14035 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14036 enable_shared_with_static_runtimes_CXX=yes
14037 ;;
14038
47aaa820
DWT
14039 dgux*)
14040 case $cc_basename in
14041 ec++*)
14042 # FIXME: insert proper C++ library support
14043 ld_shlibs_CXX=no
14044 ;;
14045 ghcx*)
14046 # Green Hills C++ Compiler
14047 # FIXME: insert proper C++ library support
14048 ld_shlibs_CXX=no
14049 ;;
14050 *)
14051 # FIXME: insert proper C++ library support
14052 ld_shlibs_CXX=no
14053 ;;
14054 esac
14055 ;;
9c60689e 14056
53ba6704 14057 freebsd2.*)
47aaa820
DWT
14058 # C++ shared libraries reported to be fairly broken before
14059 # switch to ELF
14060 ld_shlibs_CXX=no
14061 ;;
9c60689e 14062
47aaa820
DWT
14063 freebsd-elf*)
14064 archive_cmds_need_lc_CXX=no
14065 ;;
9c60689e 14066
47aaa820
DWT
14067 freebsd* | dragonfly*)
14068 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14069 # conventions
14070 ld_shlibs_CXX=yes
14071 ;;
9c60689e 14072
ee134472 14073 haiku*)
9d54db95 14074 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
14075 link_all_deplibs_CXX=yes
14076 ;;
14077
47aaa820 14078 hpux9*)
9d54db95 14079 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14080 hardcode_libdir_separator_CXX=:
9d54db95 14081 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14082 hardcode_direct_CXX=yes
14083 hardcode_minus_L_CXX=yes # Not in the search PATH,
14084 # but as the default
14085 # location of the library.
9c60689e 14086
47aaa820
DWT
14087 case $cc_basename in
14088 CC*)
14089 # FIXME: insert proper C++ library support
14090 ld_shlibs_CXX=no
14091 ;;
14092 aCC*)
9d54db95 14093 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
14094 # Commands to make compiler produce verbose output that lists
14095 # what "hidden" libraries, object files and flags are used when
14096 # linking a shared library.
14097 #
14098 # There doesn't appear to be a way to prevent this compiler from
14099 # explicitly linking system object files so we need to strip them
14100 # from the output so that they don't get included in the library
14101 # dependencies.
9d54db95 14102 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
14103 ;;
14104 *)
9d54db95
JF
14105 if test yes = "$GXX"; then
14106 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
14107 else
14108 # FIXME: insert proper C++ library support
14109 ld_shlibs_CXX=no
14110 fi
14111 ;;
14112 esac
14113 ;;
9c60689e 14114
47aaa820 14115 hpux10*|hpux11*)
9d54db95
JF
14116 if test no = "$with_gnu_ld"; then
14117 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14118 hardcode_libdir_separator_CXX=:
9c60689e 14119
47aaa820
DWT
14120 case $host_cpu in
14121 hppa*64*|ia64*)
14122 ;;
14123 *)
9d54db95 14124 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14125 ;;
14126 esac
14127 fi
14128 case $host_cpu in
14129 hppa*64*|ia64*)
14130 hardcode_direct_CXX=no
14131 hardcode_shlibpath_var_CXX=no
14132 ;;
14133 *)
14134 hardcode_direct_CXX=yes
14135 hardcode_direct_absolute_CXX=yes
14136 hardcode_minus_L_CXX=yes # Not in the search PATH,
14137 # but as the default
14138 # location of the library.
14139 ;;
14140 esac
9c60689e 14141
47aaa820
DWT
14142 case $cc_basename in
14143 CC*)
14144 # FIXME: insert proper C++ library support
14145 ld_shlibs_CXX=no
14146 ;;
14147 aCC*)
14148 case $host_cpu in
14149 hppa*64*)
9d54db95 14150 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14151 ;;
14152 ia64*)
9d54db95 14153 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14154 ;;
14155 *)
9d54db95 14156 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
14157 ;;
14158 esac
14159 # Commands to make compiler produce verbose output that lists
14160 # what "hidden" libraries, object files and flags are used when
14161 # linking a shared library.
14162 #
14163 # There doesn't appear to be a way to prevent this compiler from
14164 # explicitly linking system object files so we need to strip them
14165 # from the output so that they don't get included in the library
14166 # dependencies.
9d54db95 14167 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
14168 ;;
14169 *)
9d54db95
JF
14170 if test yes = "$GXX"; then
14171 if test no = "$with_gnu_ld"; then
47aaa820
DWT
14172 case $host_cpu in
14173 hppa*64*)
9d54db95 14174 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14175 ;;
14176 ia64*)
9d54db95 14177 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
14178 ;;
14179 *)
9d54db95 14180 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
14181 ;;
14182 esac
14183 fi
14184 else
14185 # FIXME: insert proper C++ library support
14186 ld_shlibs_CXX=no
14187 fi
14188 ;;
14189 esac
14190 ;;
9c60689e 14191
47aaa820
DWT
14192 interix[3-9]*)
14193 hardcode_direct_CXX=no
14194 hardcode_shlibpath_var_CXX=no
9d54db95
JF
14195 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14196 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14198 # Instead, shared libraries are loaded at an image base (0x10000000 by
14199 # default) and relocated if they conflict, which is a slow very memory
14200 # consuming and fragmenting process. To avoid this, we pick a random,
14201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
14203 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'
14204 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
14205 ;;
14206 irix5* | irix6*)
14207 case $cc_basename in
14208 CC*)
14209 # SGI C++
9d54db95 14210 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 14211
47aaa820
DWT
14212 # Archives containing C++ object files must be created using
14213 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14214 # necessary to make sure instantiated templates are included
14215 # in the archive.
14216 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14217 ;;
14218 *)
9d54db95
JF
14219 if test yes = "$GXX"; then
14220 if test no = "$with_gnu_ld"; then
14221 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 14222 else
9d54db95 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"` -o $lib'
47aaa820
DWT
14224 fi
14225 fi
14226 link_all_deplibs_CXX=yes
14227 ;;
14228 esac
9d54db95 14229 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14230 hardcode_libdir_separator_CXX=:
14231 inherit_rpath_CXX=yes
14232 ;;
9c60689e 14233
9d54db95 14234 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
14235 case $cc_basename in
14236 KCC*)
14237 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14238
47aaa820
DWT
14239 # KCC will only create a shared library if the output file
14240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14241 # to its proper name (with version) after linking.
9d54db95
JF
14242 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'
14243 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
14244 # Commands to make compiler produce verbose output that lists
14245 # what "hidden" libraries, object files and flags are used when
14246 # linking a shared library.
14247 #
14248 # There doesn't appear to be a way to prevent this compiler from
14249 # explicitly linking system object files so we need to strip them
14250 # from the output so that they don't get included in the library
14251 # dependencies.
9d54db95 14252 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 14253
9d54db95
JF
14254 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14255 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 14256
47aaa820
DWT
14257 # Archives containing C++ object files must be created using
14258 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14259 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14260 ;;
14261 icpc* | ecpc* )
14262 # Intel C++
14263 with_gnu_ld=yes
14264 # version 8.0 and above of icpc choke on multiply defined symbols
14265 # if we add $predep_objects and $postdep_objects, however 7.1 and
14266 # earlier do not add the objects themselves.
14267 case `$CC -V 2>&1` in
14268 *"Version 7."*)
9d54db95
JF
14269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14270 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
14271 ;;
14272 *) # Version 8.0 or newer
14273 tmp_idyn=
14274 case $host_cpu in
14275 ia64*) tmp_idyn=' -i_dynamic';;
14276 esac
9d54db95
JF
14277 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14278 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
14279 ;;
14280 esac
14281 archive_cmds_need_lc_CXX=no
9d54db95
JF
14282 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14283 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14284 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
14285 ;;
14286 pgCC* | pgcpp*)
14287 # Portland Group C++ compiler
14288 case `$CC -V` in
ee134472 14289 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 14290 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14291 rm -rf $tpldir~
14292 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14293 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 14294 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14295 rm -rf $tpldir~
14296 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14297 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14298 $RANLIB $oldlib'
47aaa820 14299 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14300 rm -rf $tpldir~
14301 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14302 $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 14303 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14304 rm -rf $tpldir~
14305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14306 $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 14307 ;;
ee134472 14308 *) # Version 6 and above use weak symbols
9d54db95
JF
14309 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14310 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
14311 ;;
14312 esac
9c60689e 14313
9d54db95
JF
14314 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14315 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14316 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
14317 ;;
14318 cxx*)
14319 # Compaq C++
9d54db95
JF
14320 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14321 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 14322
47aaa820
DWT
14323 runpath_var=LD_RUN_PATH
14324 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14325 hardcode_libdir_separator_CXX=:
9c60689e 14326
47aaa820
DWT
14327 # Commands to make compiler produce verbose output that lists
14328 # what "hidden" libraries, object files and flags are used when
14329 # linking a shared library.
14330 #
14331 # There doesn't appear to be a way to prevent this compiler from
14332 # explicitly linking system object files so we need to strip them
14333 # from the output so that they don't get included in the library
14334 # dependencies.
9d54db95 14335 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 14336 ;;
ee134472 14337 xl* | mpixl* | bgxl*)
47aaa820 14338 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
14339 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14340 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14341 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14342 if test yes = "$supports_anon_versioning"; then
47aaa820 14343 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
14344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14345 echo "local: *; };" >> $output_objdir/$libname.ver~
14346 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
14347 fi
14348 ;;
14349 *)
14350 case `$CC -V 2>&1 | sed 5q` in
14351 *Sun\ C*)
14352 # Sun C++ 5.9
14353 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
14354 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14355 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 14356 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 14357 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 14358 compiler_needs_object_CXX=yes
9c60689e 14359
47aaa820
DWT
14360 # Not sure whether something based on
14361 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14362 # would be better.
ee134472 14363 output_verbose_link_cmd='func_echo_all'
9c60689e 14364
47aaa820
DWT
14365 # Archives containing C++ object files must be created using
14366 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14367 # necessary to make sure instantiated templates are included
14368 # in the archive.
14369 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14370 ;;
14371 esac
14372 ;;
14373 esac
14374 ;;
9c60689e 14375
47aaa820
DWT
14376 lynxos*)
14377 # FIXME: insert proper C++ library support
14378 ld_shlibs_CXX=no
14379 ;;
9c60689e 14380
47aaa820
DWT
14381 m88k*)
14382 # FIXME: insert proper C++ library support
14383 ld_shlibs_CXX=no
14384 ;;
9c60689e 14385
47aaa820
DWT
14386 mvs*)
14387 case $cc_basename in
14388 cxx*)
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14391 ;;
14392 *)
14393 # FIXME: insert proper C++ library support
14394 ld_shlibs_CXX=no
14395 ;;
14396 esac
14397 ;;
9c60689e 14398
47aaa820
DWT
14399 netbsd*)
14400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14401 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14402 wlarc=
14403 hardcode_libdir_flag_spec_CXX='-R$libdir'
14404 hardcode_direct_CXX=yes
14405 hardcode_shlibpath_var_CXX=no
14406 fi
14407 # Workaround some broken pre-1.5 toolchains
14408 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 14409 ;;
47aaa820
DWT
14410
14411 *nto* | *qnx*)
14412 ld_shlibs_CXX=yes
9c60689e 14413 ;;
9c60689e 14414
9d54db95 14415 openbsd* | bitrig*)
47aaa820
DWT
14416 if test -f /usr/libexec/ld.so; then
14417 hardcode_direct_CXX=yes
14418 hardcode_shlibpath_var_CXX=no
14419 hardcode_direct_absolute_CXX=yes
14420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
14421 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14423 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14424 export_dynamic_flag_spec_CXX='$wl-E'
14425 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 14426 fi
ee134472 14427 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
14428 else
14429 ld_shlibs_CXX=no
14430 fi
14431 ;;
9c60689e 14432
47aaa820
DWT
14433 osf3* | osf4* | osf5*)
14434 case $cc_basename in
14435 KCC*)
14436 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14437
47aaa820
DWT
14438 # KCC will only create a shared library if the output file
14439 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14440 # to its proper name (with version) after linking.
9d54db95 14441 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 14442
9d54db95 14443 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 14444 hardcode_libdir_separator_CXX=:
9c60689e 14445
47aaa820
DWT
14446 # Archives containing C++ object files must be created using
14447 # the KAI C++ compiler.
14448 case $host in
14449 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14450 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14451 esac
14452 ;;
14453 RCC*)
14454 # Rational C++ 2.4.1
14455 # FIXME: insert proper C++ library support
14456 ld_shlibs_CXX=no
14457 ;;
14458 cxx*)
14459 case $host in
14460 osf3*)
9d54db95
JF
14461 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14462 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'
14463 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14464 ;;
14465 *)
14466 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 14467 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 14468 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
14469 echo "-hidden">> $lib.exp~
14470 $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~
14471 $RM $lib.exp'
47aaa820
DWT
14472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14473 ;;
14474 esac
9c60689e 14475
47aaa820 14476 hardcode_libdir_separator_CXX=:
9c60689e 14477
47aaa820
DWT
14478 # Commands to make compiler produce verbose output that lists
14479 # what "hidden" libraries, object files and flags are used when
14480 # linking a shared library.
14481 #
14482 # There doesn't appear to be a way to prevent this compiler from
14483 # explicitly linking system object files so we need to strip them
14484 # from the output so that they don't get included in the library
14485 # dependencies.
9d54db95 14486 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
14487 ;;
14488 *)
9d54db95
JF
14489 if test yes,no = "$GXX,$with_gnu_ld"; then
14490 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
14491 case $host in
14492 osf3*)
9d54db95 14493 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
14494 ;;
14495 *)
9d54db95 14496 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
14497 ;;
14498 esac
9c60689e 14499
9d54db95 14500 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 14501 hardcode_libdir_separator_CXX=:
9c60689e 14502
47aaa820
DWT
14503 # Commands to make compiler produce verbose output that lists
14504 # what "hidden" libraries, object files and flags are used when
14505 # linking a shared library.
ee134472 14506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 14507
47aaa820
DWT
14508 else
14509 # FIXME: insert proper C++ library support
14510 ld_shlibs_CXX=no
14511 fi
14512 ;;
14513 esac
14514 ;;
9c60689e 14515
47aaa820 14516 psos*)
9c60689e
DWT
14517 # FIXME: insert proper C++ library support
14518 ld_shlibs_CXX=no
14519 ;;
9c60689e 14520
47aaa820
DWT
14521 sunos4*)
14522 case $cc_basename in
14523 CC*)
14524 # Sun C++ 4.x
14525 # FIXME: insert proper C++ library support
14526 ld_shlibs_CXX=no
9c60689e 14527 ;;
47aaa820
DWT
14528 lcc*)
14529 # Lucid
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 ;;
14533 *)
14534 # FIXME: insert proper C++ library support
14535 ld_shlibs_CXX=no
14536 ;;
14537 esac
14538 ;;
9c60689e 14539
47aaa820
DWT
14540 solaris*)
14541 case $cc_basename in
ee134472 14542 CC* | sunCC*)
47aaa820
DWT
14543 # Sun C++ 4.2, 5.x and Centerline C++
14544 archive_cmds_need_lc_CXX=yes
14545 no_undefined_flag_CXX=' -zdefs'
9d54db95 14546 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 14547 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14548 $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 14549
47aaa820
DWT
14550 hardcode_libdir_flag_spec_CXX='-R$libdir'
14551 hardcode_shlibpath_var_CXX=no
14552 case $host_os in
14553 solaris2.[0-5] | solaris2.[0-5].*) ;;
14554 *)
14555 # The compiler driver will combine and reorder linker options,
9d54db95 14556 # but understands '-z linker_flag'.
47aaa820
DWT
14557 # Supported since Solaris 2.6 (maybe 2.5.1?)
14558 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14559 ;;
14560 esac
14561 link_all_deplibs_CXX=yes
9c60689e 14562
ee134472 14563 output_verbose_link_cmd='func_echo_all'
9c60689e 14564
47aaa820
DWT
14565 # Archives containing C++ object files must be created using
14566 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14567 # necessary to make sure instantiated templates are included
14568 # in the archive.
14569 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14570 ;;
14571 gcx*)
14572 # Green Hills C++ Compiler
9d54db95 14573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 14574
47aaa820
DWT
14575 # The C++ compiler must be used to create the archive.
14576 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14577 ;;
14578 *)
14579 # GNU C++ compiler with Solaris linker
9d54db95
JF
14580 if test yes,no = "$GXX,$with_gnu_ld"; then
14581 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 14582 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 14583 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14584 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14585 $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 14586
47aaa820
DWT
14587 # Commands to make compiler produce verbose output that lists
14588 # what "hidden" libraries, object files and flags are used when
14589 # linking a shared library.
ee134472 14590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14591 else
9d54db95 14592 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 14593 # platform.
9d54db95 14594 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14595 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14596 $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 14597
47aaa820
DWT
14598 # Commands to make compiler produce verbose output that lists
14599 # what "hidden" libraries, object files and flags are used when
14600 # linking a shared library.
ee134472 14601 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14602 fi
9c60689e 14603
9d54db95 14604 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
14605 case $host_os in
14606 solaris2.[0-5] | solaris2.[0-5].*) ;;
14607 *)
9d54db95 14608 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
14609 ;;
14610 esac
14611 fi
14612 ;;
14613 esac
14614 ;;
9c60689e 14615
47aaa820 14616 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 14617 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
14618 archive_cmds_need_lc_CXX=no
14619 hardcode_shlibpath_var_CXX=no
14620 runpath_var='LD_RUN_PATH'
9c60689e 14621
47aaa820
DWT
14622 case $cc_basename in
14623 CC*)
9d54db95
JF
14624 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14626 ;;
14627 *)
9d54db95
JF
14628 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14629 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14630 ;;
14631 esac
14632 ;;
9c60689e 14633
47aaa820 14634 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 14635 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
14636 # link with -lc, and that would cause any symbols used from libc to
14637 # always be unresolved, which means just about no library would
14638 # ever link correctly. If we're not using GNU ld we use -z text
14639 # though, which does catch some bad symbols but isn't as heavy-handed
14640 # as -z defs.
9d54db95
JF
14641 no_undefined_flag_CXX='$wl-z,text'
14642 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
14643 archive_cmds_need_lc_CXX=no
14644 hardcode_shlibpath_var_CXX=no
9d54db95 14645 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
14646 hardcode_libdir_separator_CXX=':'
14647 link_all_deplibs_CXX=yes
9d54db95 14648 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 14649 runpath_var='LD_RUN_PATH'
9c60689e 14650
47aaa820
DWT
14651 case $cc_basename in
14652 CC*)
9d54db95
JF
14653 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 14655 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 14656 '"$old_archive_cmds_CXX"
ee134472 14657 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 14658 '"$reload_cmds_CXX"
47aaa820
DWT
14659 ;;
14660 *)
9d54db95
JF
14661 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14662 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14663 ;;
14664 esac
14665 ;;
9c60689e 14666
47aaa820 14667 tandem*)
9c60689e 14668 case $cc_basename in
47aaa820
DWT
14669 NCC*)
14670 # NonStop-UX NCC 3.20
14671 # FIXME: insert proper C++ library support
14672 ld_shlibs_CXX=no
14673 ;;
9c60689e 14674 *)
47aaa820
DWT
14675 # FIXME: insert proper C++ library support
14676 ld_shlibs_CXX=no
14677 ;;
9c60689e
DWT
14678 esac
14679 ;;
14680
47aaa820
DWT
14681 vxworks*)
14682 # FIXME: insert proper C++ library support
14683 ld_shlibs_CXX=no
14684 ;;
9c60689e 14685
47aaa820
DWT
14686 *)
14687 # FIXME: insert proper C++ library support
14688 ld_shlibs_CXX=no
9c60689e 14689 ;;
47aaa820 14690 esac
9c60689e 14691
47aaa820
DWT
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14693$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 14694 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 14695
9d54db95
JF
14696 GCC_CXX=$GXX
14697 LD_CXX=$LD
9c60689e 14698
47aaa820
DWT
14699 ## CAVEAT EMPTOR:
14700 ## There is no encapsulation within the following macros, do not change
14701 ## the running order or otherwise move them around unless you know exactly
14702 ## what you are doing...
14703 # Dependencies to place before and after the object being linked:
14704predep_objects_CXX=
14705postdep_objects_CXX=
14706predeps_CXX=
14707postdeps_CXX=
14708compiler_lib_search_path_CXX=
9c60689e 14709
47aaa820
DWT
14710cat > conftest.$ac_ext <<_LT_EOF
14711class Foo
14712{
14713public:
14714 Foo (void) { a = 0; }
14715private:
14716 int a;
14717};
14718_LT_EOF
9c60689e 14719
ee134472
JF
14720
14721_lt_libdeps_save_CFLAGS=$CFLAGS
14722case "$CC $CFLAGS " in #(
14723*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14724*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14725*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14726esac
14727
47aaa820
DWT
14728if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14729 (eval $ac_compile) 2>&5
14730 ac_status=$?
14731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14732 test $ac_status = 0; }; then
14733 # Parse the compiler output and extract the necessary
14734 # objects, libraries and library flags.
9c60689e 14735
47aaa820
DWT
14736 # Sentinel used to keep track of whether or not we are before
14737 # the conftest object file.
14738 pre_test_object_deps_done=no
9c60689e 14739
47aaa820 14740 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 14741 case $prev$p in
9c60689e 14742
47aaa820
DWT
14743 -L* | -R* | -l*)
14744 # Some compilers place space between "-{L,R}" and the path.
14745 # Remove the space.
9d54db95
JF
14746 if test x-L = "$p" ||
14747 test x-R = "$p"; then
47aaa820
DWT
14748 prev=$p
14749 continue
47aaa820 14750 fi
9c60689e 14751
ee134472
JF
14752 # Expand the sysroot to ease extracting the directories later.
14753 if test -z "$prev"; then
14754 case $p in
14755 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14756 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14757 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14758 esac
14759 fi
14760 case $p in
14761 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14762 esac
9d54db95
JF
14763 if test no = "$pre_test_object_deps_done"; then
14764 case $prev in
ee134472 14765 -L | -R)
47aaa820
DWT
14766 # Internal compiler library paths should come after those
14767 # provided the user. The postdeps already come after the
14768 # user supplied libs so there is no need to process them.
14769 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 14770 compiler_lib_search_path_CXX=$prev$p
47aaa820 14771 else
9d54db95 14772 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
14773 fi
14774 ;;
14775 # The "-l" case would never come before the object being
14776 # linked, so don't bother handling this case.
14777 esac
14778 else
14779 if test -z "$postdeps_CXX"; then
9d54db95 14780 postdeps_CXX=$prev$p
47aaa820 14781 else
9d54db95 14782 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
14783 fi
14784 fi
ee134472 14785 prev=
47aaa820 14786 ;;
9c60689e 14787
ee134472 14788 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14789 *.$objext)
14790 # This assumes that the test object file only shows up
14791 # once in the compiler output.
14792 if test "$p" = "conftest.$objext"; then
14793 pre_test_object_deps_done=yes
14794 continue
14795 fi
9c60689e 14796
9d54db95 14797 if test no = "$pre_test_object_deps_done"; then
47aaa820 14798 if test -z "$predep_objects_CXX"; then
9d54db95 14799 predep_objects_CXX=$p
47aaa820
DWT
14800 else
14801 predep_objects_CXX="$predep_objects_CXX $p"
14802 fi
14803 else
14804 if test -z "$postdep_objects_CXX"; then
9d54db95 14805 postdep_objects_CXX=$p
47aaa820
DWT
14806 else
14807 postdep_objects_CXX="$postdep_objects_CXX $p"
14808 fi
14809 fi
14810 ;;
9c60689e 14811
47aaa820 14812 *) ;; # Ignore the rest.
9c60689e 14813
47aaa820
DWT
14814 esac
14815 done
9c60689e 14816
47aaa820
DWT
14817 # Clean up.
14818 rm -f a.out a.exe
14819else
14820 echo "libtool.m4: error: problem compiling CXX test program"
14821fi
9c60689e 14822
47aaa820 14823$RM -f confest.$objext
ee134472 14824CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14825
47aaa820
DWT
14826# PORTME: override above test on systems where it is broken
14827case $host_os in
14828interix[3-9]*)
14829 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14830 # hack all around it, let's just trust "g++" to DTRT.
14831 predep_objects_CXX=
14832 postdep_objects_CXX=
14833 postdeps_CXX=
14834 ;;
47aaa820 14835esac
9c60689e 14836
9c60689e 14837
47aaa820
DWT
14838case " $postdeps_CXX " in
14839*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14840esac
14841 compiler_lib_search_dirs_CXX=
14842if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 14843 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 14844fi
9c60689e 14845
9c60689e 14846
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
47aaa820
DWT
14876 lt_prog_compiler_wl_CXX=
14877lt_prog_compiler_pic_CXX=
14878lt_prog_compiler_static_CXX=
9c60689e 14879
9c60689e
DWT
14880
14881 # C++ specific cases for pic, static, wl, etc.
9d54db95 14882 if test yes = "$GXX"; then
9c60689e
DWT
14883 lt_prog_compiler_wl_CXX='-Wl,'
14884 lt_prog_compiler_static_CXX='-static'
14885
14886 case $host_os in
14887 aix*)
14888 # All AIX code is PIC.
9d54db95 14889 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14890 # AIX 5 now supports IA64 processor
14891 lt_prog_compiler_static_CXX='-Bstatic'
14892 fi
9d54db95 14893 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
14894 ;;
14895
14896 amigaos*)
14897 case $host_cpu in
14898 powerpc)
14899 # see comment about AmigaOS4 .so support
14900 lt_prog_compiler_pic_CXX='-fPIC'
14901 ;;
14902 m68k)
14903 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
14904 # adding the '-m68020' flag to GCC prevents building anything better,
14905 # like '-m68040'.
9c60689e
DWT
14906 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14907 ;;
14908 esac
14909 ;;
14910
14911 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14912 # PIC is the default for these OSes.
14913 ;;
14914 mingw* | cygwin* | os2* | pw32* | cegcc*)
14915 # This hack is so that the source file can tell whether it is being
14916 # built for inclusion in a dll (and should export symbols for example).
14917 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14918 # (--disable-auto-import) libraries
14919 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
14920 case $host_os in
14921 os2*)
14922 lt_prog_compiler_static_CXX='$wl-static'
14923 ;;
14924 esac
9c60689e
DWT
14925 ;;
14926 darwin* | rhapsody*)
14927 # PIC is the default on this platform
14928 # Common symbols not allowed in MH_DYLIB files
14929 lt_prog_compiler_pic_CXX='-fno-common'
14930 ;;
14931 *djgpp*)
14932 # DJGPP does not support shared libraries at all
14933 lt_prog_compiler_pic_CXX=
14934 ;;
ee134472
JF
14935 haiku*)
14936 # PIC is the default for Haiku.
14937 # The "-static" flag exists, but is broken.
14938 lt_prog_compiler_static_CXX=
14939 ;;
9c60689e
DWT
14940 interix[3-9]*)
14941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14942 # Instead, we relocate shared libraries at runtime.
14943 ;;
14944 sysv4*MP*)
14945 if test -d /usr/nec; then
14946 lt_prog_compiler_pic_CXX=-Kconform_pic
14947 fi
14948 ;;
14949 hpux*)
14950 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14951 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14952 # sets the default TLS model and affects inlining.
14953 case $host_cpu in
14954 hppa*64*)
14955 ;;
14956 *)
14957 lt_prog_compiler_pic_CXX='-fPIC'
14958 ;;
14959 esac
14960 ;;
14961 *qnx* | *nto*)
14962 # QNX uses GNU C++, but need to define -shared option too, otherwise
14963 # it will coredump.
14964 lt_prog_compiler_pic_CXX='-fPIC -shared'
14965 ;;
14966 *)
14967 lt_prog_compiler_pic_CXX='-fPIC'
14968 ;;
14969 esac
14970 else
14971 case $host_os in
14972 aix[4-9]*)
14973 # All AIX code is PIC.
9d54db95 14974 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14975 # AIX 5 now supports IA64 processor
14976 lt_prog_compiler_static_CXX='-Bstatic'
14977 else
14978 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14979 fi
14980 ;;
14981 chorus*)
14982 case $cc_basename in
14983 cxch68*)
14984 # Green Hills C++ Compiler
14985 # _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"
14986 ;;
14987 esac
14988 ;;
ee134472
JF
14989 mingw* | cygwin* | os2* | pw32* | cegcc*)
14990 # This hack is so that the source file can tell whether it is being
14991 # built for inclusion in a dll (and should export symbols for example).
14992 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14993 ;;
9c60689e
DWT
14994 dgux*)
14995 case $cc_basename in
14996 ec++*)
14997 lt_prog_compiler_pic_CXX='-KPIC'
14998 ;;
14999 ghcx*)
15000 # Green Hills C++ Compiler
15001 lt_prog_compiler_pic_CXX='-pic'
15002 ;;
15003 *)
15004 ;;
15005 esac
15006 ;;
15007 freebsd* | dragonfly*)
15008 # FreeBSD uses GNU C++
15009 ;;
15010 hpux9* | hpux10* | hpux11*)
15011 case $cc_basename in
15012 CC*)
15013 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
15014 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15015 if test ia64 != "$host_cpu"; then
9c60689e
DWT
15016 lt_prog_compiler_pic_CXX='+Z'
15017 fi
15018 ;;
15019 aCC*)
15020 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 15021 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
15022 case $host_cpu in
15023 hppa*64*|ia64*)
15024 # +Z the default
15025 ;;
15026 *)
15027 lt_prog_compiler_pic_CXX='+Z'
15028 ;;
15029 esac
15030 ;;
15031 *)
15032 ;;
15033 esac
15034 ;;
15035 interix*)
15036 # This is c89, which is MS Visual C++ (no shared libs)
15037 # Anyone wants to do a port?
15038 ;;
15039 irix5* | irix6* | nonstopux*)
15040 case $cc_basename in
15041 CC*)
15042 lt_prog_compiler_wl_CXX='-Wl,'
15043 lt_prog_compiler_static_CXX='-non_shared'
15044 # CC pic flag -KPIC is the default.
15045 ;;
15046 *)
15047 ;;
15048 esac
15049 ;;
9d54db95 15050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
15051 case $cc_basename in
15052 KCC*)
15053 # KAI C++ Compiler
15054 lt_prog_compiler_wl_CXX='--backend -Wl,'
15055 lt_prog_compiler_pic_CXX='-fPIC'
15056 ;;
15057 ecpc* )
9d54db95 15058 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
15059 lt_prog_compiler_wl_CXX='-Wl,'
15060 lt_prog_compiler_pic_CXX='-KPIC'
15061 lt_prog_compiler_static_CXX='-static'
15062 ;;
15063 icpc* )
15064 # Intel C++, used to be incompatible with GCC.
15065 # ICC 10 doesn't accept -KPIC any more.
15066 lt_prog_compiler_wl_CXX='-Wl,'
15067 lt_prog_compiler_pic_CXX='-fPIC'
15068 lt_prog_compiler_static_CXX='-static'
15069 ;;
15070 pgCC* | pgcpp*)
15071 # Portland Group C++ compiler
15072 lt_prog_compiler_wl_CXX='-Wl,'
15073 lt_prog_compiler_pic_CXX='-fpic'
15074 lt_prog_compiler_static_CXX='-Bstatic'
15075 ;;
15076 cxx*)
15077 # Compaq C++
15078 # Make sure the PIC flag is empty. It appears that all Alpha
15079 # Linux and Compaq Tru64 Unix objects are PIC.
15080 lt_prog_compiler_pic_CXX=
15081 lt_prog_compiler_static_CXX='-non_shared'
15082 ;;
ee134472
JF
15083 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15084 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
15085 lt_prog_compiler_wl_CXX='-Wl,'
15086 lt_prog_compiler_pic_CXX='-qpic'
15087 lt_prog_compiler_static_CXX='-qstaticlink'
15088 ;;
15089 *)
15090 case `$CC -V 2>&1 | sed 5q` in
15091 *Sun\ C*)
15092 # Sun C++ 5.9
15093 lt_prog_compiler_pic_CXX='-KPIC'
15094 lt_prog_compiler_static_CXX='-Bstatic'
15095 lt_prog_compiler_wl_CXX='-Qoption ld '
15096 ;;
15097 esac
15098 ;;
15099 esac
15100 ;;
15101 lynxos*)
15102 ;;
15103 m88k*)
15104 ;;
15105 mvs*)
15106 case $cc_basename in
15107 cxx*)
15108 lt_prog_compiler_pic_CXX='-W c,exportall'
15109 ;;
15110 *)
15111 ;;
15112 esac
15113 ;;
53ba6704 15114 netbsd*)
9c60689e
DWT
15115 ;;
15116 *qnx* | *nto*)
15117 # QNX uses GNU C++, but need to define -shared option too, otherwise
15118 # it will coredump.
15119 lt_prog_compiler_pic_CXX='-fPIC -shared'
15120 ;;
15121 osf3* | osf4* | osf5*)
15122 case $cc_basename in
15123 KCC*)
15124 lt_prog_compiler_wl_CXX='--backend -Wl,'
15125 ;;
15126 RCC*)
15127 # Rational C++ 2.4.1
15128 lt_prog_compiler_pic_CXX='-pic'
15129 ;;
15130 cxx*)
15131 # Digital/Compaq C++
15132 lt_prog_compiler_wl_CXX='-Wl,'
15133 # Make sure the PIC flag is empty. It appears that all Alpha
15134 # Linux and Compaq Tru64 Unix objects are PIC.
15135 lt_prog_compiler_pic_CXX=
15136 lt_prog_compiler_static_CXX='-non_shared'
15137 ;;
15138 *)
15139 ;;
15140 esac
15141 ;;
15142 psos*)
15143 ;;
15144 solaris*)
15145 case $cc_basename in
ee134472 15146 CC* | sunCC*)
9c60689e
DWT
15147 # Sun C++ 4.2, 5.x and Centerline C++
15148 lt_prog_compiler_pic_CXX='-KPIC'
15149 lt_prog_compiler_static_CXX='-Bstatic'
15150 lt_prog_compiler_wl_CXX='-Qoption ld '
15151 ;;
15152 gcx*)
15153 # Green Hills C++ Compiler
15154 lt_prog_compiler_pic_CXX='-PIC'
15155 ;;
15156 *)
15157 ;;
15158 esac
15159 ;;
15160 sunos4*)
15161 case $cc_basename in
15162 CC*)
15163 # Sun C++ 4.x
15164 lt_prog_compiler_pic_CXX='-pic'
15165 lt_prog_compiler_static_CXX='-Bstatic'
15166 ;;
15167 lcc*)
15168 # Lucid
15169 lt_prog_compiler_pic_CXX='-pic'
15170 ;;
15171 *)
15172 ;;
15173 esac
15174 ;;
15175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15176 case $cc_basename in
15177 CC*)
15178 lt_prog_compiler_wl_CXX='-Wl,'
15179 lt_prog_compiler_pic_CXX='-KPIC'
15180 lt_prog_compiler_static_CXX='-Bstatic'
15181 ;;
15182 esac
15183 ;;
15184 tandem*)
15185 case $cc_basename in
15186 NCC*)
15187 # NonStop-UX NCC 3.20
15188 lt_prog_compiler_pic_CXX='-KPIC'
15189 ;;
15190 *)
15191 ;;
15192 esac
15193 ;;
15194 vxworks*)
15195 ;;
15196 *)
15197 lt_prog_compiler_can_build_shared_CXX=no
15198 ;;
15199 esac
15200 fi
15201
15202case $host_os in
9d54db95 15203 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
15204 *djgpp*)
15205 lt_prog_compiler_pic_CXX=
15206 ;;
15207 *)
15208 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15209 ;;
15210esac
9c60689e 15211
ee134472
JF
15212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15213$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15214if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15215 $as_echo_n "(cached) " >&6
15216else
15217 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15218fi
15219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15220$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15221lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
15222
15223#
15224# Check to make sure the PIC flag actually works.
15225#
15226if test -n "$lt_prog_compiler_pic_CXX"; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15228$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 15229if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
15230 $as_echo_n "(cached) " >&6
15231else
15232 lt_cv_prog_compiler_pic_works_CXX=no
15233 ac_outfile=conftest.$ac_objext
15234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 15235 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
15236 # Insert the option either (1) after the last *FLAGS variable, or
15237 # (2) before a word containing "conftest.", or (3) at the end.
15238 # Note that $ac_compile itself does not contain backslashes and begins
15239 # with a dollar sign (not a hyphen), so the echo should work correctly.
15240 # The option is referenced via a variable to avoid confusing sed.
15241 lt_compile=`echo "$ac_compile" | $SED \
15242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
ee134472 15245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
15246 (eval "$lt_compile" 2>conftest.err)
15247 ac_status=$?
15248 cat conftest.err >&5
ee134472 15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
15250 if (exit $ac_status) && test -s "$ac_outfile"; then
15251 # The compiler can only warn and ignore the option if not recognized
15252 # So say no if there are warnings other than the usual output.
ee134472 15253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
15254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15256 lt_cv_prog_compiler_pic_works_CXX=yes
15257 fi
15258 fi
00a96142 15259 $RM -r conftest*
9c60689e
DWT
15260
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15263$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15264
9d54db95 15265if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
15266 case $lt_prog_compiler_pic_CXX in
15267 "" | " "*) ;;
15268 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15269 esac
15270else
15271 lt_prog_compiler_pic_CXX=
15272 lt_prog_compiler_can_build_shared_CXX=no
15273fi
15274
15275fi
15276
15277
15278
ee134472
JF
15279
15280
47aaa820
DWT
15281#
15282# Check to make sure the static flag actually works.
15283#
15284wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15286$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 15287if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
15288 $as_echo_n "(cached) " >&6
15289else
15290 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 15291 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
15292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15295 # The linker can only warn and ignore the option if not recognized
15296 # So say no if there are warnings
15297 if test -s conftest.err; then
15298 # Append any errors to the config.log.
15299 cat conftest.err 1>&5
ee134472 15300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
15301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15302 if diff conftest.exp conftest.er2 >/dev/null; then
15303 lt_cv_prog_compiler_static_works_CXX=yes
15304 fi
15305 else
15306 lt_cv_prog_compiler_static_works_CXX=yes
15307 fi
15308 fi
15309 $RM -r conftest*
9d54db95 15310 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
15311
15312fi
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15314$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15315
9d54db95 15316if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
15317 :
15318else
15319 lt_prog_compiler_static_CXX=
15320fi
15321
15322
15323
15324
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15326$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15327if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15328 $as_echo_n "(cached) " >&6
15329else
15330 lt_cv_prog_compiler_c_o_CXX=no
15331 $RM -r conftest 2>/dev/null
15332 mkdir conftest
15333 cd conftest
15334 mkdir out
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336
15337 lt_compiler_flag="-o out/conftest2.$ac_objext"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
ee134472 15346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15347 (eval "$lt_compile" 2>out/conftest.err)
15348 ac_status=$?
15349 cat out/conftest.err >&5
ee134472 15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352 then
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
ee134472 15355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15358 lt_cv_prog_compiler_c_o_CXX=yes
15359 fi
15360 fi
15361 chmod u+w . 2>&5
00a96142 15362 $RM -r conftest*
47aaa820
DWT
15363 # SGI C++ compiler will create directory out/ii_files/ for
15364 # template instantiation
15365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15366 $RM out/* && rmdir out
15367 cd ..
15368 $RM -r conftest
00a96142 15369 $RM -r conftest*
47aaa820
DWT
15370
15371fi
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15373$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15374
15375
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15378$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15379if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15380 $as_echo_n "(cached) " >&6
15381else
15382 lt_cv_prog_compiler_c_o_CXX=no
15383 $RM -r conftest 2>/dev/null
15384 mkdir conftest
15385 cd conftest
15386 mkdir out
15387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15388
15389 lt_compiler_flag="-o out/conftest2.$ac_objext"
15390 # Insert the option either (1) after the last *FLAGS variable, or
15391 # (2) before a word containing "conftest.", or (3) at the end.
15392 # Note that $ac_compile itself does not contain backslashes and begins
15393 # with a dollar sign (not a hyphen), so the echo should work correctly.
15394 lt_compile=`echo "$ac_compile" | $SED \
15395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15397 -e 's:$: $lt_compiler_flag:'`
ee134472 15398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15399 (eval "$lt_compile" 2>out/conftest.err)
15400 ac_status=$?
15401 cat out/conftest.err >&5
ee134472 15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15404 then
15405 # The compiler can only warn and ignore the option if not recognized
15406 # So say no if there are warnings
ee134472 15407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15410 lt_cv_prog_compiler_c_o_CXX=yes
15411 fi
15412 fi
15413 chmod u+w . 2>&5
00a96142 15414 $RM -r conftest*
47aaa820
DWT
15415 # SGI C++ compiler will create directory out/ii_files/ for
15416 # template instantiation
15417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15418 $RM out/* && rmdir out
15419 cd ..
15420 $RM -r conftest
00a96142 15421 $RM -r conftest*
47aaa820
DWT
15422
15423fi
15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15425$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15426
15427
15428
15429
9d54db95
JF
15430hard_links=nottested
15431if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
15432 # do not overwrite the value of need_locks provided by the user
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15434$as_echo_n "checking if we can lock with hard links... " >&6; }
15435 hard_links=yes
00a96142 15436 $RM -r conftest*
47aaa820
DWT
15437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15438 touch conftest.a
15439 ln conftest.a conftest.b 2>&5 || hard_links=no
15440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15442$as_echo "$hard_links" >&6; }
9d54db95
JF
15443 if test no = "$hard_links"; then
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15445$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
15446 need_locks=warn
15447 fi
15448else
15449 need_locks=no
15450fi
15451
15452
15453
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15455$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15456
15457 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15458 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
15459 case $host_os in
15460 aix[4-9]*)
15461 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
15462 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15463 # Without the "-l" option, or with the "-B" option, AIX nm treats
15464 # weak defined symbols like other global defined symbols, whereas
15465 # GNU nm marks them as "W".
15466 # While the 'weak' keyword is ignored in the Export File, we need
15467 # it in the Import File for the 'aix-soname' feature, so we have
15468 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 15469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 15470 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 15471 else
9d54db95 15472 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
15473 fi
15474 ;;
15475 pw32*)
9d54db95 15476 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 15477 ;;
47aaa820 15478 cygwin* | mingw* | cegcc*)
ee134472 15479 case $cc_basename in
53ba6704
JF
15480 cl*)
15481 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15482 ;;
ee134472
JF
15483 *)
15484 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'
15485 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15486 ;;
15487 esac
15488 ;;
47aaa820
DWT
15489 *)
15490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15491 ;;
47aaa820 15492 esac
47aaa820
DWT
15493
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15495$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 15496test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
15497
15498with_gnu_ld_CXX=$with_gnu_ld
15499
15500
15501
15502
15503
15504
15505#
15506# Do we need to explicitly link libc?
15507#
15508case "x$archive_cmds_need_lc_CXX" in
15509x|xyes)
15510 # Assume -lc should be added
15511 archive_cmds_need_lc_CXX=yes
15512
9d54db95 15513 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
15514 case $archive_cmds_CXX in
15515 *'~'*)
15516 # FIXME: we may have to deal with multi-command sequences.
15517 ;;
15518 '$CC '*)
15519 # Test whether the compiler implicitly links with -lc since on some
15520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15521 # to ld, don't add -lc before -lgcc.
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15523$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15524if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526else
00a96142 15527 $RM -r conftest*
ee134472 15528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15529
ee134472 15530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15531 (eval $ac_compile) 2>&5
15532 ac_status=$?
15533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15534 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15535 soname=conftest
15536 lib=conftest
15537 libobjs=conftest.$ac_objext
15538 deplibs=
15539 wl=$lt_prog_compiler_wl_CXX
15540 pic_flag=$lt_prog_compiler_pic_CXX
15541 compiler_flags=-v
15542 linker_flags=-v
15543 verstring=
15544 output_objdir=.
15545 libname=conftest
15546 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15547 allow_undefined_flag_CXX=
15548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15549 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15550 ac_status=$?
15551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552 test $ac_status = 0; }
ee134472
JF
15553 then
15554 lt_cv_archive_cmds_need_lc_CXX=no
15555 else
15556 lt_cv_archive_cmds_need_lc_CXX=yes
15557 fi
15558 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15559 else
15560 cat conftest.err 1>&5
15561 fi
00a96142 15562 $RM -r conftest*
ee134472
JF
15563
15564fi
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15566$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15567 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15568 ;;
15569 esac
15570 fi
15571 ;;
15572esac
15573
15574
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
47aaa820
DWT
15632
15633
15634
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15636$as_echo_n "checking dynamic linker characteristics... " >&6; }
15637
15638library_names_spec=
15639libname_spec='lib$name'
15640soname_spec=
9d54db95 15641shrext_cmds=.so
47aaa820
DWT
15642postinstall_cmds=
15643postuninstall_cmds=
15644finish_cmds=
15645finish_eval=
15646shlibpath_var=
15647shlibpath_overrides_runpath=unknown
15648version_type=none
15649dynamic_linker="$host_os ld.so"
15650sys_lib_dlsearch_path_spec="/lib /usr/lib"
15651need_lib_prefix=unknown
15652hardcode_into_libs=no
15653
15654# when you set need_version to no, make sure it does not cause -set_version
15655# flags to be left without arguments
15656need_version=unknown
15657
9d54db95
JF
15658
15659
47aaa820
DWT
15660case $host_os in
15661aix3*)
53ba6704 15662 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 15663 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
15664 shlibpath_var=LIBPATH
15665
15666 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 15667 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15668 ;;
15669
15670aix[4-9]*)
53ba6704 15671 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15672 need_lib_prefix=no
15673 need_version=no
15674 hardcode_into_libs=yes
9d54db95 15675 if test ia64 = "$host_cpu"; then
47aaa820 15676 # AIX 5 supports IA64
9d54db95 15677 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
15678 shlibpath_var=LD_LIBRARY_PATH
15679 else
15680 # With GCC up to 2.95.x, collect2 would create an import file
15681 # for dependence libraries. The import file would start with
9d54db95
JF
15682 # the line '#! .'. This would cause the generated library to
15683 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
15684 # development snapshots of GCC prior to 3.0.
15685 case $host_os in
15686 aix4 | aix4.[01] | aix4.[01].*)
15687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15688 echo ' yes '
9d54db95 15689 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
15690 :
15691 else
15692 can_build_shared=no
15693 fi
15694 ;;
15695 esac
9d54db95
JF
15696 # Using Import Files as archive members, it is possible to support
15697 # filename-based versioning of shared library archives on AIX. While
15698 # this would work for both with and without runtime linking, it will
15699 # prevent static linking of such archives. So we do filename-based
15700 # shared library versioning with .so extension only, which is used
15701 # when both runtime linking and shared linking is enabled.
15702 # Unfortunately, runtime linking may impact performance, so we do
15703 # not want this to be the default eventually. Also, we use the
15704 # versioned .so libs for executables only if there is the -brtl
15705 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15706 # To allow for filename-based versioning support, we need to create
15707 # libNAME.so.V as an archive file, containing:
15708 # *) an Import File, referring to the versioned filename of the
15709 # archive as well as the shared archive member, telling the
15710 # bitwidth (32 or 64) of that shared object, and providing the
15711 # list of exported symbols of that shared object, eventually
15712 # decorated with the 'weak' keyword
15713 # *) the shared object with the F_LOADONLY flag set, to really avoid
15714 # it being seen by the linker.
15715 # At run time we better use the real file rather than another symlink,
15716 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15717
15718 case $with_aix_soname,$aix_use_runtimelinking in
15719 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
15720 # soname into executable. Probably we can add versioning support to
15721 # collect2, so additional links can be useful in future.
9d54db95
JF
15722 aix,yes) # traditional libtool
15723 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
15724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15725 # instead of lib<name>.a to let people know that these are not
15726 # typical AIX shared libraries.
9d54db95
JF
15727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15728 ;;
15729 aix,no) # traditional AIX only
15730 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
15731 # We preserve .a as extension for shared libraries through AIX4.2
15732 # and later when we are not doing run time linking.
9d54db95
JF
15733 library_names_spec='$libname$release.a $libname.a'
15734 soname_spec='$libname$release$shared_ext$major'
15735 ;;
15736 svr4,*) # full svr4 only
15737 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15738 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15739 # We do not specify a path in Import Files, so LIBPATH fires.
15740 shlibpath_overrides_runpath=yes
15741 ;;
15742 *,yes) # both, prefer svr4
15743 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15744 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15745 # unpreferred sharedlib libNAME.a needs extra handling
15746 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"'
15747 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"'
15748 # We do not specify a path in Import Files, so LIBPATH fires.
15749 shlibpath_overrides_runpath=yes
15750 ;;
15751 *,no) # both, prefer aix
15752 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15753 library_names_spec='$libname$release.a $libname.a'
15754 soname_spec='$libname$release$shared_ext$major'
15755 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15756 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)'
15757 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"'
15758 ;;
15759 esac
47aaa820
DWT
15760 shlibpath_var=LIBPATH
15761 fi
15762 ;;
15763
15764amigaos*)
15765 case $host_cpu in
15766 powerpc)
15767 # Since July 2007 AmigaOS4 officially supports .so libraries.
15768 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 15769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
15770 ;;
15771 m68k)
15772 library_names_spec='$libname.ixlibrary $libname.a'
15773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 15774 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
15775 ;;
15776 esac
15777 ;;
15778
15779beos*)
9d54db95 15780 library_names_spec='$libname$shared_ext'
47aaa820
DWT
15781 dynamic_linker="$host_os ld.so"
15782 shlibpath_var=LIBRARY_PATH
15783 ;;
15784
15785bsdi[45]*)
53ba6704 15786 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 15787 need_version=no
9d54db95
JF
15788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15789 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15794 # the default ld.so.conf also contains /usr/contrib/lib and
15795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15796 # libtool to hard-code these into programs
15797 ;;
9c60689e 15798
47aaa820
DWT
15799cygwin* | mingw* | pw32* | cegcc*)
15800 version_type=windows
9d54db95 15801 shrext_cmds=.dll
47aaa820
DWT
15802 need_version=no
15803 need_lib_prefix=no
9c60689e 15804
ee134472
JF
15805 case $GCC,$cc_basename in
15806 yes,*)
15807 # gcc
47aaa820
DWT
15808 library_names_spec='$libname.dll.a'
15809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15810 postinstall_cmds='base_file=`basename \$file`~
15811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
15812 dldir=$destdir/`dirname \$dlpath`~
15813 test -d \$dldir || mkdir -p \$dldir~
15814 $install_prog $dir/$dlname \$dldir/$dlname~
15815 chmod a+x \$dldir/$dlname~
15816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15818 fi'
15819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15820 dlpath=$dir/\$dldll~
15821 $RM \$dlpath'
15822 shlibpath_overrides_runpath=yes
9c60689e 15823
47aaa820
DWT
15824 case $host_os in
15825 cygwin*)
15826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 15827 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 15828
47aaa820
DWT
15829 ;;
15830 mingw* | cegcc*)
15831 # MinGW DLLs use traditional 'lib' prefix
9d54db95 15832 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15833 ;;
15834 pw32*)
15835 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 15836 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15837 ;;
15838 esac
ee134472
JF
15839 dynamic_linker='Win32 ld.exe'
15840 ;;
15841
15842 *,cl*)
15843 # Native MSVC
15844 libname_spec='$name'
9d54db95
JF
15845 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15846 library_names_spec='$libname.dll.lib'
ee134472
JF
15847
15848 case $build_os in
15849 mingw*)
15850 sys_lib_search_path_spec=
15851 lt_save_ifs=$IFS
15852 IFS=';'
15853 for lt_path in $LIB
15854 do
15855 IFS=$lt_save_ifs
15856 # Let DOS variable expansion print the short 8.3 style file name.
15857 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15858 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15859 done
15860 IFS=$lt_save_ifs
15861 # Convert to MSYS style.
15862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15863 ;;
15864 cygwin*)
15865 # Convert to unix form, then to dos form, then back to unix form
15866 # but this time dos style (no spaces!) so that the unix form looks
15867 # like /cygdrive/c/PROGRA~1:/cygdr...
15868 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15869 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15870 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15871 ;;
15872 *)
9d54db95 15873 sys_lib_search_path_spec=$LIB
ee134472
JF
15874 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15875 # It is most probably a Windows format PATH.
15876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15877 else
15878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15879 fi
15880 # FIXME: find the short name or the path components, as spaces are
15881 # common. (e.g. "Program Files" -> "PROGRA~1")
15882 ;;
15883 esac
15884
15885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15886 postinstall_cmds='base_file=`basename \$file`~
15887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
15888 dldir=$destdir/`dirname \$dlpath`~
15889 test -d \$dldir || mkdir -p \$dldir~
15890 $install_prog $dir/$dlname \$dldir/$dlname'
15891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15892 dlpath=$dir/\$dldll~
15893 $RM \$dlpath'
15894 shlibpath_overrides_runpath=yes
15895 dynamic_linker='Win32 link.exe'
47aaa820 15896 ;;
9c60689e 15897
47aaa820 15898 *)
ee134472 15899 # Assume MSVC wrapper
9d54db95 15900 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 15901 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15902 ;;
15903 esac
47aaa820
DWT
15904 # FIXME: first we should search . and the directory the executable is in
15905 shlibpath_var=PATH
15906 ;;
9c60689e 15907
47aaa820
DWT
15908darwin* | rhapsody*)
15909 dynamic_linker="$host_os dyld"
15910 version_type=darwin
15911 need_lib_prefix=no
15912 need_version=no
9d54db95
JF
15913 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15914 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
15915 shlibpath_overrides_runpath=yes
15916 shlibpath_var=DYLD_LIBRARY_PATH
15917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15918
47aaa820
DWT
15919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15920 ;;
9c60689e 15921
47aaa820 15922dgux*)
53ba6704 15923 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15924 need_lib_prefix=no
15925 need_version=no
9d54db95
JF
15926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15927 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15928 shlibpath_var=LD_LIBRARY_PATH
15929 ;;
9c60689e 15930
47aaa820
DWT
15931freebsd* | dragonfly*)
15932 # DragonFly does not have aout. When/if they implement a new
15933 # versioning mechanism, adjust this.
15934 if test -x /usr/bin/objformat; then
15935 objformat=`/usr/bin/objformat`
15936 else
15937 case $host_os in
53ba6704 15938 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15939 *) objformat=elf ;;
15940 esac
15941 fi
15942 version_type=freebsd-$objformat
15943 case $version_type in
15944 freebsd-elf*)
9d54db95
JF
15945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15946 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15947 need_version=no
15948 need_lib_prefix=no
15949 ;;
15950 freebsd-*)
9d54db95 15951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
15952 need_version=yes
15953 ;;
15954 esac
15955 shlibpath_var=LD_LIBRARY_PATH
15956 case $host_os in
53ba6704 15957 freebsd2.*)
47aaa820
DWT
15958 shlibpath_overrides_runpath=yes
15959 ;;
15960 freebsd3.[01]* | freebsdelf3.[01]*)
15961 shlibpath_overrides_runpath=yes
15962 hardcode_into_libs=yes
15963 ;;
15964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15966 shlibpath_overrides_runpath=no
15967 hardcode_into_libs=yes
15968 ;;
15969 *) # from 4.6 on, and DragonFly
15970 shlibpath_overrides_runpath=yes
15971 hardcode_into_libs=yes
15972 ;;
15973 esac
15974 ;;
9c60689e 15975
ee134472 15976haiku*)
53ba6704 15977 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15978 need_lib_prefix=no
15979 need_version=no
15980 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
15981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15982 soname_spec='$libname$release$shared_ext$major'
ee134472 15983 shlibpath_var=LIBRARY_PATH
9d54db95 15984 shlibpath_overrides_runpath=no
ee134472 15985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15986 hardcode_into_libs=yes
15987 ;;
9c60689e 15988
47aaa820
DWT
15989hpux9* | hpux10* | hpux11*)
15990 # Give a soname corresponding to the major version so that dld.sl refuses to
15991 # link against other versions.
15992 version_type=sunos
15993 need_lib_prefix=no
15994 need_version=no
15995 case $host_cpu in
15996 ia64*)
15997 shrext_cmds='.so'
15998 hardcode_into_libs=yes
15999 dynamic_linker="$host_os dld.so"
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16003 soname_spec='$libname$release$shared_ext$major'
16004 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 16005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 16006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
16007 else
16008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 16009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 16010 fi
47aaa820
DWT
16011 ;;
16012 hppa*64*)
16013 shrext_cmds='.sl'
16014 hardcode_into_libs=yes
16015 dynamic_linker="$host_os dld.sl"
16016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16019 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16022 ;;
16023 *)
16024 shrext_cmds='.sl'
16025 dynamic_linker="$host_os dld.sl"
16026 shlibpath_var=SHLIB_PATH
16027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
16028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16029 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16030 ;;
16031 esac
ee134472 16032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 16033 postinstall_cmds='chmod 555 $lib'
ee134472
JF
16034 # or fails outright, so override atomically:
16035 install_override_mode=555
47aaa820 16036 ;;
9c60689e 16037
47aaa820 16038interix[3-9]*)
53ba6704 16039 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16040 need_lib_prefix=no
16041 need_version=no
9d54db95
JF
16042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16043 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16045 shlibpath_var=LD_LIBRARY_PATH
16046 shlibpath_overrides_runpath=no
16047 hardcode_into_libs=yes
16048 ;;
9c60689e 16049
47aaa820
DWT
16050irix5* | irix6* | nonstopux*)
16051 case $host_os in
16052 nonstopux*) version_type=nonstopux ;;
16053 *)
9d54db95 16054 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 16055 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16056 else
16057 version_type=irix
16058 fi ;;
16059 esac
16060 need_lib_prefix=no
16061 need_version=no
9d54db95
JF
16062 soname_spec='$libname$release$shared_ext$major'
16063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
16064 case $host_os in
16065 irix5* | nonstopux*)
16066 libsuff= shlibsuff=
16067 ;;
16068 *)
16069 case $LD in # libtool.m4 will add one of these switches to LD
16070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16071 libsuff= shlibsuff= libmagic=32-bit;;
16072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16073 libsuff=32 shlibsuff=N32 libmagic=N32;;
16074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16076 *) libsuff= shlibsuff= libmagic=never-match;;
16077 esac
16078 ;;
16079 esac
16080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16081 shlibpath_overrides_runpath=no
9d54db95
JF
16082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
16084 hardcode_into_libs=yes
16085 ;;
9c60689e 16086
47aaa820
DWT
16087# No shared lib support for Linux oldld, aout, or coff.
16088linux*oldld* | linux*aout* | linux*coff*)
16089 dynamic_linker=no
16090 ;;
9c60689e 16091
9d54db95
JF
16092linux*android*)
16093 version_type=none # Android doesn't support versioned libraries.
16094 need_lib_prefix=no
16095 need_version=no
16096 library_names_spec='$libname$release$shared_ext'
16097 soname_spec='$libname$release$shared_ext'
16098 finish_cmds=
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=yes
16101
16102 # This implies no fast_install, which is unacceptable.
16103 # Some rework will be needed to allow for fast_install
16104 # before this can be enabled.
16105 hardcode_into_libs=yes
16106
16107 dynamic_linker='Android linker'
16108 # Don't embed -rpath directories since the linker doesn't support them.
16109 hardcode_libdir_flag_spec_CXX='-L$libdir'
16110 ;;
16111
53ba6704 16112# This must be glibc/ELF.
9d54db95 16113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 16114 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16115 need_lib_prefix=no
16116 need_version=no
9d54db95
JF
16117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16118 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 shlibpath_overrides_runpath=no
ee134472 16122
47aaa820 16123 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
16124 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16125 $as_echo_n "(cached) " >&6
16126else
16127 lt_cv_shlibpath_overrides_runpath=no
16128 save_LDFLAGS=$LDFLAGS
16129 save_libdir=$libdir
16130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 16133/* end confdefs.h. */
9c60689e 16134
47aaa820
DWT
16135int
16136main ()
16137{
9c60689e 16138
47aaa820
DWT
16139 ;
16140 return 0;
16141}
16142_ACEOF
16143if ac_fn_cxx_try_link "$LINENO"; then :
16144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 16145 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 16146fi
47aaa820
DWT
16147fi
16148rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
16150 LDFLAGS=$save_LDFLAGS
16151 libdir=$save_libdir
16152
16153fi
16154
16155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 16156
47aaa820
DWT
16157 # This implies no fast_install, which is unacceptable.
16158 # Some rework will be needed to allow for fast_install
16159 # before this can be enabled.
16160 hardcode_into_libs=yes
9c60689e 16161
9d54db95
JF
16162 # Ideally, we could use ldconfig to report *all* directores which are
16163 # searched for libraries, however this is still not possible. Aside from not
16164 # being certain /sbin/ldconfig is available, command
16165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16166 # even though it is searched at run-time. Try to do the best guess by
16167 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 16168 if test -f /etc/ld.so.conf; then
ee134472 16169 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
16170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16171 fi
9c60689e 16172
47aaa820
DWT
16173 # We used to test for /lib/ld.so.1 and disable shared libraries on
16174 # powerpc, because MkLinux only supported shared libraries with the
16175 # GNU dynamic linker. Since this was broken with cross compilers,
16176 # most powerpc-linux boxes support dynamic linking these days and
16177 # people can always --disable-shared, the test was removed, and we
16178 # assume the GNU/Linux dynamic linker is in use.
16179 dynamic_linker='GNU/Linux ld.so'
9c60689e 16180 ;;
47aaa820 16181
47aaa820
DWT
16182netbsd*)
16183 version_type=sunos
16184 need_lib_prefix=no
16185 need_version=no
16186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16189 dynamic_linker='NetBSD (a.out) ld.so'
16190 else
9d54db95
JF
16191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16192 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16193 dynamic_linker='NetBSD ld.elf_so'
16194 fi
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
9c60689e 16198 ;;
9c60689e 16199
47aaa820 16200newsos6)
53ba6704 16201 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 16202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes
16205 ;;
9c60689e 16206
47aaa820
DWT
16207*nto* | *qnx*)
16208 version_type=qnx
16209 need_lib_prefix=no
16210 need_version=no
9d54db95
JF
16211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16212 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16216 dynamic_linker='ldqnx.so'
16217 ;;
9c60689e 16218
9d54db95 16219openbsd* | bitrig*)
47aaa820 16220 version_type=sunos
9d54db95 16221 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 16222 need_lib_prefix=no
9d54db95
JF
16223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16224 need_version=no
47aaa820 16225 else
9d54db95 16226 need_version=yes
47aaa820 16227 fi
9d54db95
JF
16228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16230 shlibpath_var=LD_LIBRARY_PATH
16231 shlibpath_overrides_runpath=yes
47aaa820 16232 ;;
9c60689e 16233
47aaa820
DWT
16234os2*)
16235 libname_spec='$name'
9d54db95
JF
16236 version_type=windows
16237 shrext_cmds=.dll
16238 need_version=no
47aaa820 16239 need_lib_prefix=no
9d54db95
JF
16240 # OS/2 can only load a DLL with a base name of 8 characters or less.
16241 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16242 v=$($ECHO $release$versuffix | tr -d .-);
16243 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16244 $ECHO $n$v`$shared_ext'
16245 library_names_spec='${libname}_dll.$libext'
47aaa820 16246 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
16247 shlibpath_var=BEGINLIBPATH
16248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250 postinstall_cmds='base_file=`basename \$file`~
16251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16252 dldir=$destdir/`dirname \$dlpath`~
16253 test -d \$dldir || mkdir -p \$dldir~
16254 $install_prog $dir/$dlname \$dldir/$dlname~
16255 chmod a+x \$dldir/$dlname~
16256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16258 fi'
16259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16260 dlpath=$dir/\$dldll~
16261 $RM \$dlpath'
47aaa820 16262 ;;
9c60689e 16263
47aaa820
DWT
16264osf3* | osf4* | osf5*)
16265 version_type=osf
16266 need_lib_prefix=no
16267 need_version=no
9d54db95
JF
16268 soname_spec='$libname$release$shared_ext$major'
16269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16270 shlibpath_var=LD_LIBRARY_PATH
16271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 16272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 16273 ;;
9c60689e 16274
47aaa820
DWT
16275rdos*)
16276 dynamic_linker=no
16277 ;;
9c60689e 16278
47aaa820 16279solaris*)
53ba6704 16280 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16281 need_lib_prefix=no
16282 need_version=no
9d54db95
JF
16283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16284 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16285 shlibpath_var=LD_LIBRARY_PATH
16286 shlibpath_overrides_runpath=yes
16287 hardcode_into_libs=yes
16288 # ldd complains unless libraries are executable
16289 postinstall_cmds='chmod +x $lib'
16290 ;;
9c60689e 16291
47aaa820
DWT
16292sunos4*)
16293 version_type=sunos
9d54db95 16294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=yes
9d54db95 16298 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16299 need_lib_prefix=no
16300 fi
16301 need_version=yes
16302 ;;
9c60689e 16303
47aaa820 16304sysv4 | sysv4.3*)
53ba6704 16305 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16307 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16308 shlibpath_var=LD_LIBRARY_PATH
16309 case $host_vendor in
16310 sni)
16311 shlibpath_overrides_runpath=no
16312 need_lib_prefix=no
16313 runpath_var=LD_RUN_PATH
9c60689e 16314 ;;
47aaa820
DWT
16315 siemens)
16316 need_lib_prefix=no
9c60689e 16317 ;;
47aaa820
DWT
16318 motorola)
16319 need_lib_prefix=no
16320 need_version=no
16321 shlibpath_overrides_runpath=no
16322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16323 ;;
16324 esac
9c60689e 16325 ;;
9c60689e 16326
47aaa820 16327sysv4*MP*)
9d54db95 16328 if test -d /usr/nec; then
53ba6704 16329 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16330 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16331 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
16332 shlibpath_var=LD_LIBRARY_PATH
16333 fi
16334 ;;
9c60689e 16335
47aaa820 16336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 16337 version_type=sco
47aaa820
DWT
16338 need_lib_prefix=no
16339 need_version=no
9d54db95
JF
16340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16341 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16342 shlibpath_var=LD_LIBRARY_PATH
16343 shlibpath_overrides_runpath=yes
16344 hardcode_into_libs=yes
9d54db95 16345 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16347 else
16348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16349 case $host_os in
16350 sco3.2v5*)
16351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16352 ;;
16353 esac
16354 fi
16355 sys_lib_dlsearch_path_spec='/usr/lib'
16356 ;;
9c60689e 16357
47aaa820
DWT
16358tpf*)
16359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 16360 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16361 need_lib_prefix=no
16362 need_version=no
9d54db95 16363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=no
16366 hardcode_into_libs=yes
16367 ;;
9c60689e 16368
47aaa820 16369uts4*)
53ba6704 16370 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16372 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16373 shlibpath_var=LD_LIBRARY_PATH
16374 ;;
9c60689e 16375
47aaa820
DWT
16376*)
16377 dynamic_linker=no
e9c9a47c
DWT
16378 ;;
16379esac
16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16381$as_echo "$dynamic_linker" >&6; }
9d54db95 16382test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
16383
16384variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 16385if test yes = "$GCC"; then
e9c9a47c 16386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 16387fi
9c60689e 16388
9d54db95
JF
16389if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16390 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 16391fi
9d54db95
JF
16392
16393if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16394 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 16395fi
9c60689e 16396
9d54db95
JF
16397# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16398configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16399
16400# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16401func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16402
16403# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16404configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16405
16406
16407
9c60689e 16408
9c60689e 16409
9c60689e 16410
47aaa820 16411
47aaa820 16412
47aaa820 16413
9c60689e 16414
9c60689e 16415
47aaa820 16416
47aaa820 16417
47aaa820 16418
47aaa820 16419
47aaa820 16420
47aaa820 16421
47aaa820 16422
47aaa820 16423
9c60689e 16424
9c60689e 16425
9c60689e 16426
9c60689e 16427
9c60689e 16428
e9c9a47c
DWT
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
ee134472
JF
16440
16441
e9c9a47c
DWT
16442
16443
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16446$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16447hardcode_action_CXX=
16448if test -n "$hardcode_libdir_flag_spec_CXX" ||
16449 test -n "$runpath_var_CXX" ||
9d54db95 16450 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
16451
16452 # We can hardcode non-existent directories.
9d54db95 16453 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
16454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16455 # have to relink, otherwise we might link with an installed library
16456 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
16457 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16458 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
16459 # Linking always hardcodes the temporary library directory.
16460 hardcode_action_CXX=relink
16461 else
16462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16463 hardcode_action_CXX=immediate
16464 fi
16465else
16466 # We cannot hardcode anything, or else we can only hardcode existing
16467 # directories.
16468 hardcode_action_CXX=unsupported
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16471$as_echo "$hardcode_action_CXX" >&6; }
16472
9d54db95
JF
16473if test relink = "$hardcode_action_CXX" ||
16474 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
16475 # Fast installation is not supported
16476 enable_fast_install=no
9d54db95
JF
16477elif test yes = "$shlibpath_overrides_runpath" ||
16478 test no = "$enable_shared"; then
e9c9a47c
DWT
16479 # Fast installation is not necessary
16480 enable_fast_install=needless
47aaa820 16481fi
9c60689e 16482
47aaa820 16483
47aaa820 16484
e9c9a47c
DWT
16485
16486
16487
16488
a243b558
JF
16489 fi # test -n "$compiler"
16490
16491 CC=$lt_save_CC
16492 CFLAGS=$lt_save_CFLAGS
16493 LDCXX=$LD
16494 LD=$lt_save_LD
16495 GCC=$lt_save_GCC
16496 with_gnu_ld=$lt_save_with_gnu_ld
16497 lt_cv_path_LDCXX=$lt_cv_path_LD
16498 lt_cv_path_LD=$lt_save_path_LD
16499 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16500 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 16501fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
16502
16503ac_ext=c
16504ac_cpp='$CPP $CPPFLAGS'
16505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16507ac_compiler_gnu=$ac_cv_c_compiler_gnu
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 ac_config_commands="$ac_config_commands libtool"
16524
16525
16526
16527
16528# Only expand once:
16529
16530
16531
16532ac_ext=cpp
16533ac_cpp='$CXXCPP $CPPFLAGS'
16534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16537
16538
1771224f
JF
16539 ax_cxx_compile_cxx11_required=true
16540 ac_ext=cpp
16541ac_cpp='$CXXCPP $CPPFLAGS'
16542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16545 ac_success=no
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16547$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16548if ${ax_cv_cxx_compile_cxx11+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550else
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552/* end confdefs.h. */
16553
16554 template <typename T>
16555 struct check
16556 {
16557 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16558 };
16559
16560 struct Base {
16561 virtual void f() {}
16562 };
16563 struct Child : public Base {
16564 virtual void f() override {}
16565 };
16566
16567 typedef check<check<bool>> right_angle_brackets;
16568
16569 int a;
16570 decltype(a) b;
16571
16572 typedef check<int> check_type;
16573 check_type c;
16574 check_type&& cr = static_cast<check_type&&>(c);
16575
16576 auto d = a;
16577 auto l = [](){};
16578
16579_ACEOF
16580if ac_fn_cxx_try_compile "$LINENO"; then :
16581 ax_cv_cxx_compile_cxx11=yes
16582else
16583 ax_cv_cxx_compile_cxx11=no
16584fi
16585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586fi
16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16588$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16589 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16590 ac_success=yes
16591 fi
16592
16593 if test x$ac_success = xno; then
16594 for switch in -std=gnu++11 -std=gnu++0x; do
16595 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16597$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16598if eval \${$cachevar+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600else
16601 ac_save_CXXFLAGS="$CXXFLAGS"
16602 CXXFLAGS="$CXXFLAGS $switch"
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h. */
16605
16606 template <typename T>
16607 struct check
16608 {
16609 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16610 };
16611
16612 struct Base {
16613 virtual void f() {}
16614 };
16615 struct Child : public Base {
16616 virtual void f() override {}
16617 };
16618
16619 typedef check<check<bool>> right_angle_brackets;
16620
16621 int a;
16622 decltype(a) b;
16623
16624 typedef check<int> check_type;
16625 check_type c;
16626 check_type&& cr = static_cast<check_type&&>(c);
16627
16628 auto d = a;
16629 auto l = [](){};
16630
16631_ACEOF
16632if ac_fn_cxx_try_compile "$LINENO"; then :
16633 eval $cachevar=yes
16634else
16635 eval $cachevar=no
16636fi
16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 CXXFLAGS="$ac_save_CXXFLAGS"
16639fi
16640eval ac_res=\$$cachevar
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16642$as_echo "$ac_res" >&6; }
16643 if eval test x\$$cachevar = xyes; then
16644 CXXFLAGS="$CXXFLAGS $switch"
16645 ac_success=yes
16646 break
16647 fi
16648 done
16649 fi
16650
16651
16652 ac_ext=cpp
16653ac_cpp='$CXXCPP $CPPFLAGS'
16654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16657
16658 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16659 if test x$ac_success = xno; then
16660 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16661 fi
16662 else
16663 if test x$ac_success = xno; then
16664 HAVE_CXX11=0
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16666$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16667 else
16668 HAVE_CXX11=1
16669
16670$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16671
16672 fi
16673
16674
16675 fi
16676
16677OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16678
a243b558
JF
16679
16680
16681
16682
16683
16684
83c6fec8 16685
a243b558
JF
16686if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16687 if test -n "$ac_tool_prefix"; then
16688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16689set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16691$as_echo_n "checking for $ac_word... " >&6; }
16692if ${ac_cv_path_PKG_CONFIG+:} false; then :
16693 $as_echo_n "(cached) " >&6
16694else
16695 case $PKG_CONFIG in
16696 [\\/]* | ?:[\\/]*)
16697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16698 ;;
16699 *)
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701for as_dir in $PATH
16702do
16703 IFS=$as_save_IFS
16704 test -z "$as_dir" && as_dir=.
16705 for ac_exec_ext in '' $ac_executable_extensions; do
16706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16709 break 2
16710 fi
16711done
16712 done
16713IFS=$as_save_IFS
16714
16715 ;;
16716esac
16717fi
16718PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16719if test -n "$PKG_CONFIG"; then
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16721$as_echo "$PKG_CONFIG" >&6; }
16722else
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724$as_echo "no" >&6; }
16725fi
16726
16727
16728fi
16729if test -z "$ac_cv_path_PKG_CONFIG"; then
16730 ac_pt_PKG_CONFIG=$PKG_CONFIG
16731 # Extract the first word of "pkg-config", so it can be a program name with args.
16732set dummy pkg-config; ac_word=$2
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734$as_echo_n "checking for $ac_word... " >&6; }
16735if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737else
16738 case $ac_pt_PKG_CONFIG in
16739 [\\/]* | ?:[\\/]*)
16740 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16741 ;;
16742 *)
16743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16744for as_dir in $PATH
16745do
16746 IFS=$as_save_IFS
16747 test -z "$as_dir" && as_dir=.
16748 for ac_exec_ext in '' $ac_executable_extensions; do
16749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16750 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16752 break 2
16753 fi
16754done
16755 done
16756IFS=$as_save_IFS
16757
16758 ;;
16759esac
16760fi
16761ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16762if test -n "$ac_pt_PKG_CONFIG"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16764$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16765else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767$as_echo "no" >&6; }
16768fi
16769
16770 if test "x$ac_pt_PKG_CONFIG" = x; then
16771 PKG_CONFIG=""
16772 else
16773 case $cross_compiling:$ac_tool_warned in
16774yes:)
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16777ac_tool_warned=yes ;;
16778esac
16779 PKG_CONFIG=$ac_pt_PKG_CONFIG
16780 fi
16781else
16782 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16783fi
16784
16785fi
16786if test -n "$PKG_CONFIG"; then
16787 _pkg_min_version=0.22
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16789$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16790 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792$as_echo "yes" >&6; }
16793 else
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16795$as_echo "no" >&6; }
16796 PKG_CONFIG=""
16797 fi
16798fi
16799
a243b558
JF
16800# Extract the first word of "git", so it can be a program name with args.
16801set dummy git; ac_word=$2
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16803$as_echo_n "checking for $ac_word... " >&6; }
16804if ${ac_cv_path_GIT+:} false; then :
16805 $as_echo_n "(cached) " >&6
16806else
16807 case $GIT in
16808 [\\/]* | ?:[\\/]*)
16809 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16810 ;;
16811 *)
16812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813for as_dir in $PATH
16814do
16815 IFS=$as_save_IFS
16816 test -z "$as_dir" && as_dir=.
16817 for ac_exec_ext in '' $ac_executable_extensions; do
16818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16819 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16821 break 2
16822 fi
16823done
16824 done
16825IFS=$as_save_IFS
e9c9a47c 16826
a243b558
JF
16827 ;;
16828esac
16829fi
16830GIT=$ac_cv_path_GIT
16831if test -n "$GIT"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16833$as_echo "$GIT" >&6; }
16834else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836$as_echo "no" >&6; }
16837fi
e9c9a47c
DWT
16838
16839
a243b558
JF
16840# Extract the first word of "time", so it can be a program name with args.
16841set dummy time; ac_word=$2
632b71ea
DWT
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16843$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16844if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16845 $as_echo_n "(cached) " >&6
16846else
a243b558
JF
16847 case $TIME in
16848 [\\/]* | ?:[\\/]*)
16849 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16850 ;;
16851 *)
16852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16853for as_dir in $PATH
16854do
16855 IFS=$as_save_IFS
16856 test -z "$as_dir" && as_dir=.
16857 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16859 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16861 break 2
16862 fi
16863done
16864 done
16865IFS=$as_save_IFS
16866
a243b558
JF
16867 ;;
16868esac
632b71ea 16869fi
a243b558
JF
16870TIME=$ac_cv_path_TIME
16871if test -n "$TIME"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16873$as_echo "$TIME" >&6; }
632b71ea
DWT
16874else
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876$as_echo "no" >&6; }
16877fi
16878
16879
a243b558
JF
16880
16881
16882
16883
16884
6ce9ac92
JF
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16886$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
16887 if test -z "$BISON"; then
16888 ac_path_BISON_found=false
16889 # Loop through the user's path and test for each of PROGNAME-LIST
16890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16891for as_dir in $PATH
16892do
16893 IFS=$as_save_IFS
16894 test -z "$as_dir" && as_dir=.
16895 for ac_prog in bison; do
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16898 as_fn_executable_p "$ac_path_BISON" || continue
16899version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16900 if ${version:+false} :; then :
16901
16902else
16903 as_awk_strverscmp='
16904 # Use only awk features that work with 7th edition Unix awk (1978).
16905 # My, what an old awk you have, Mr. Solaris!
16906 END {
16907 while (length(v1) && length(v2)) {
16908 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16909 # Normally this is a single character, but if v1 and v2 contain digits,
16910 # compare them as integers and fractions as strverscmp does.
16911 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16912 # Split v1 and v2 into their leading digit string components d1 and d2,
16913 # and advance v1 and v2 past the leading digit strings.
16914 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16915 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16916 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16917 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16918 if (d1 ~ /^0/) {
16919 if (d2 ~ /^0/) {
16920 # Compare two fractions.
16921 while (d1 ~ /^0/ && d2 ~ /^0/) {
16922 d1 = substr(d1, 2); len1--
16923 d2 = substr(d2, 2); len2--
16924 }
16925 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16926 # The two components differ in length, and the common prefix
16927 # contains only leading zeros. Consider the longer to be less.
16928 d1 = -len1
16929 d2 = -len2
16930 } else {
16931 # Otherwise, compare as strings.
16932 d1 = "x" d1
16933 d2 = "x" d2
16934 }
16935 } else {
16936 # A fraction is less than an integer.
16937 exit 1
16938 }
16939 } else {
16940 if (d2 ~ /^0/) {
16941 # An integer is greater than a fraction.
16942 exit 2
16943 } else {
16944 # Compare two integers.
16945 d1 += 0
16946 d2 += 0
16947 }
16948 }
16949 } else {
16950 # The normal case, without worrying about digits.
16951 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16952 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16953 }
16954 if (d1 < d2) exit 1
16955 if (d1 > d2) exit 2
16956 }
16957 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16958 # which mishandles some comparisons of empty strings to integers.
16959 if (length(v2)) exit 1
16960 if (length(v1)) exit 2
16961 }
16962'
16963as_arg_v1=$version
6ce9ac92 16964as_arg_v2=3.0
a243b558
JF
16965awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16966case $? in #(
16967 1) :
16968 ;; #(
16969 0) :
16970 ac_cv_path_BISON=$ac_path_BISON ;; #(
16971 2) :
16972 ac_cv_path_BISON=$ac_path_BISON ;; #(
16973 *) :
16974 ;;
16975esac
16976fi
16977
16978 $ac_path_BISON_found && break 3
16979 done
16980 done
e9c9a47c 16981 done
a243b558
JF
16982IFS=$as_save_IFS
16983 if test -z "$ac_cv_path_BISON"; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16985$as_echo "no" >&6; }
16986 fi
16987else
16988 ac_cv_path_BISON=$BISON
632b71ea 16989fi
a243b558
JF
16990
16991
16992 if true; then :
16993
16994 BISON=$ac_cv_path_BISON
16995
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16997$as_echo "$BISON" >&6; }
16998
47aaa820 16999else
a243b558
JF
17000 if true; then :
17001
6ce9ac92 17002 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 17003
47aaa820 17004else
a243b558
JF
17005
17006 BISON=:
17007
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17009$as_echo "no" >&6; }
17010
17011fi
17012fi
17013
17014
17015
17016
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17018$as_echo_n "checking for flex >= 2.5.33... " >&6; }
17019 if test -z "$FLEX"; then
17020 ac_path_FLEX_found=false
17021 # Loop through the user's path and test for each of PROGNAME-LIST
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
17023for as_dir in $PATH
17024do
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
a243b558 17027 for ac_prog in flex; do
47aaa820 17028 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
17029 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17030 as_fn_executable_p "$ac_path_FLEX" || continue
17031version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17032 if ${version:+false} :; then :
9c60689e 17033
47aaa820 17034else
a243b558
JF
17035 as_arg_v1=$version
17036as_arg_v2=2.5.33
17037awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17038case $? in #(
17039 1) :
17040 ;; #(
17041 0) :
17042 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17043 2) :
17044 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17045 *) :
17046 ;;
17047esac
17048fi
17049
17050 $ac_path_FLEX_found && break 3
17051 done
17052 done
17053 done
17054IFS=$as_save_IFS
17055 if test -z "$ac_cv_path_FLEX"; then
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 17057$as_echo "no" >&6; }
a243b558
JF
17058 fi
17059else
17060 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
17061fi
17062
17063
a243b558 17064 if true; then :
e9c9a47c 17065
a243b558 17066 FLEX=$ac_cv_path_FLEX
e9c9a47c 17067
a243b558
JF
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17069$as_echo "$FLEX" >&6; }
9c60689e 17070
632b71ea 17071else
a243b558 17072 if true; then :
e9c9a47c 17073
a243b558 17074 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 17075
e9c9a47c 17076else
a243b558
JF
17077
17078 FLEX=:
17079
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081$as_echo "no" >&6; }
9c60689e 17082
632b71ea 17083fi
a243b558
JF
17084fi
17085
17086
17087
17088
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17090$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17091 if test -z "$GPERF"; then
17092 ac_path_GPERF_found=false
17093 # Loop through the user's path and test for each of PROGNAME-LIST
17094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17095for as_dir in $PATH
17096do
17097 IFS=$as_save_IFS
17098 test -z "$as_dir" && as_dir=.
17099 for ac_prog in gperf; do
17100 for ac_exec_ext in '' $ac_executable_extensions; do
17101 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17102 as_fn_executable_p "$ac_path_GPERF" || continue
17103version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17104 if ${version:+false} :; then :
17105
e9c9a47c 17106else
a243b558
JF
17107 as_arg_v1=$version
17108as_arg_v2=3.0.3
17109awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17110case $? in #(
17111 1) :
17112 ;; #(
17113 0) :
17114 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17115 2) :
17116 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17117 *) :
17118 ;;
17119esac
632b71ea 17120fi
a243b558
JF
17121
17122 $ac_path_GPERF_found && break 3
17123 done
17124 done
17125 done
17126IFS=$as_save_IFS
17127 if test -z "$ac_cv_path_GPERF"; then
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129$as_echo "no" >&6; }
17130 fi
47aaa820 17131else
a243b558
JF
17132 ac_cv_path_GPERF=$GPERF
17133fi
9c60689e
DWT
17134
17135
a243b558 17136 if true; then :
9c60689e 17137
a243b558 17138 GPERF=$ac_cv_path_GPERF
9c60689e 17139
a243b558
JF
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17141$as_echo "$GPERF" >&6; }
9c60689e 17142
47aaa820 17143else
a243b558 17144 if true; then :
9c60689e 17145
a243b558
JF
17146 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17147
17148else
17149
17150 GPERF=:
17151
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17153$as_echo "no" >&6; }
9c60689e 17154
47aaa820 17155fi
47aaa820 17156fi
a243b558
JF
17157
17158
17159
17160
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17162$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17163 if test -z "$GNUTAR"; then
17164 ac_path_GNUTAR_found=false
17165 # Loop through the user's path and test for each of PROGNAME-LIST
17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167for as_dir in $PATH
17168do
17169 IFS=$as_save_IFS
17170 test -z "$as_dir" && as_dir=.
17171 for ac_prog in tar gtar gnutar; do
17172 for ac_exec_ext in '' $ac_executable_extensions; do
17173 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17174 as_fn_executable_p "$ac_path_GNUTAR" || continue
17175version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17176 if ${version:+false} :; then :
17177
17178else
17179 as_arg_v1=$version
17180as_arg_v2=1.19
17181awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17182case $? in #(
17183 1) :
17184 ;; #(
17185 0) :
17186 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17187 2) :
17188 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17189 *) :
17190 ;;
17191esac
790e5246 17192fi
a243b558
JF
17193
17194 $ac_path_GNUTAR_found && break 3
17195 done
17196 done
17197 done
17198IFS=$as_save_IFS
17199 if test -z "$ac_cv_path_GNUTAR"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17201$as_echo "no" >&6; }
632b71ea 17202 fi
632b71ea 17203else
a243b558 17204 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 17205fi
66170b30 17206
66170b30 17207
a243b558 17208 if true; then :
66170b30 17209
a243b558 17210 GNUTAR=$ac_cv_path_GNUTAR
66170b30 17211
a243b558
JF
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17213$as_echo "$GNUTAR" >&6; }
66170b30 17214
a243b558
JF
17215else
17216 if true; then :
66170b30 17217
a243b558 17218 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 17219
66170b30 17220else
66170b30 17221
a243b558 17222 GNUTAR=:
66170b30 17223
a243b558
JF
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17225$as_echo "no" >&6; }
66170b30 17226
a243b558
JF
17227fi
17228fi
66170b30
JF
17229
17230
17231
17232
17233
17234
17235
77578fdd
JF
17236if test "x$LFLAGS" = x; then :
17237 LFLAGS="--full --ecs"
17238fi
17239
17240
66170b30
JF
17241
17242
17243
e9c9a47c
DWT
17244ac_ext=c
17245ac_cpp='$CPP $CPPFLAGS'
17246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17248ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 17249
66170b30
JF
17250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17251$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17252if ${ac_cv_cflags_warn_all+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254else
17255 ac_cv_cflags_warn_all="no, unknown"
17256ac_save_CFLAGS="$CFLAGS"
17257for 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" #
17258do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260/* end confdefs.h. */
17261
17262int
17263main ()
17264{
17265
17266 ;
17267 return 0;
17268}
17269_ACEOF
17270if ac_fn_c_try_compile "$LINENO"; then :
17271 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17272fi
17273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274done
17275CFLAGS="$ac_save_CFLAGS"
17276
17277fi
17278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17279$as_echo "$ac_cv_cflags_warn_all" >&6; }
17280
83c6fec8 17281
66170b30
JF
17282case ".$ac_cv_cflags_warn_all" in
17283 .ok|.ok,*) ;;
17284 .|.no|.no,*) ;;
17285 *) if ${CFLAGS+:} false; then :
17286 case " $CFLAGS " in
17287 *" $ac_cv_cflags_warn_all "*)
17288 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17289 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17290 ac_status=$?
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292 test $ac_status = 0; }
17293 ;;
17294 *)
17295 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17296 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17297 ac_status=$?
17298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17299 test $ac_status = 0; }
17300 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17301 ;;
17302 esac
17303else
17304 CFLAGS="$ac_cv_cflags_warn_all"
17305fi
17306 ;;
17307esac
17308
b816329d
JF
17309ac_ext=cpp
17310ac_cpp='$CXXCPP $CPPFLAGS'
17311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17314
9c60689e 17315
66170b30
JF
17316ac_ext=cpp
17317ac_cpp='$CXXCPP $CPPFLAGS'
17318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 17321
66170b30
JF
17322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17323$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17324if ${ac_cv_cxxflags_warn_all+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326else
17327 ac_cv_cxxflags_warn_all="no, unknown"
17328ac_save_CXXFLAGS="$CXXFLAGS"
17329for 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" #
17330do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332/* end confdefs.h. */
1504c9b8 17333
66170b30
JF
17334int
17335main ()
17336{
1504c9b8 17337
66170b30
JF
17338 ;
17339 return 0;
17340}
17341_ACEOF
17342if ac_fn_cxx_try_compile "$LINENO"; then :
17343 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17344fi
17345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346done
17347CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 17348
66170b30
JF
17349fi
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17351$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17352
83c6fec8 17353
66170b30
JF
17354case ".$ac_cv_cxxflags_warn_all" in
17355 .ok|.ok,*) ;;
17356 .|.no|.no,*) ;;
17357 *) if ${CXXFLAGS+:} false; then :
17358 case " $CXXFLAGS " in
17359 *" $ac_cv_cxxflags_warn_all "*)
17360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17361 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17362 ac_status=$?
17363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17364 test $ac_status = 0; }
17365 ;;
17366 *)
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17368 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17369 ac_status=$?
17370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17371 test $ac_status = 0; }
17372 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17373 ;;
17374 esac
17375else
17376 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17377fi
17378 ;;
17379esac
17380
17381ac_ext=cpp
17382ac_cpp='$CXXCPP $CPPFLAGS'
17383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17386
17387
babf7fe8
JF
17388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17389$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17390if ${ac_cv_cxxflags_warn_all+:} false; then :
17391 $as_echo_n "(cached) " >&6
17392else
17393 ac_cv_cxxflags_warn_all="no, unknown"
17394ac_save_CXXFLAGS="$CXXFLAGS"
17395for 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" #
17396do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398/* end confdefs.h. */
17399
17400int
17401main ()
17402{
17403
17404 ;
17405 return 0;
17406}
17407_ACEOF
17408if ac_fn_cxx_try_compile "$LINENO"; then :
17409 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17410fi
17411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412done
17413CXXFLAGS="$ac_save_CXXFLAGS"
17414
17415fi
17416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17417$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17418
83c6fec8 17419
babf7fe8
JF
17420case ".$ac_cv_cxxflags_warn_all" in
17421 .ok|.ok,*) ;;
17422 .|.no|.no,*) ;;
17423 *) if ${CXXFLAGS+:} false; then :
17424 case " $CXXFLAGS " in
17425 *" $ac_cv_cxxflags_warn_all "*)
17426 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17427 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17428 ac_status=$?
17429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17430 test $ac_status = 0; }
17431 ;;
17432 *)
17433 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17434 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17435 ac_status=$?
17436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17437 test $ac_status = 0; }
17438 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17439 ;;
17440 esac
17441else
17442 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17443fi
17444 ;;
17445esac
17446
66170b30
JF
17447
17448
66170b30 17449
66170b30 17450
c10a2228
JF
17451 ac_ext=c
17452ac_cpp='$CPP $CPPFLAGS'
17453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455ac_compiler_gnu=$ac_cv_c_compiler_gnu
17456
babf7fe8
JF
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17458$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
17459
17460 cy_save=$CFLAGS
17461
babf7fe8 17462 for element in -Werror; do
c10a2228
JF
17463 haveit=
17464 for x in $CFLAGS; do
17465
17466 acl_save_prefix="$prefix"
17467 prefix="$acl_final_prefix"
17468 acl_save_exec_prefix="$exec_prefix"
17469 exec_prefix="$acl_final_exec_prefix"
17470 eval x=\"$x\"
17471 exec_prefix="$acl_save_exec_prefix"
17472 prefix="$acl_save_prefix"
17473
17474 if test "X$x" = "X$element"; then
17475 haveit=yes
17476 break
17477 fi
17478 done
17479 if test -z "$haveit"; then
17480 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17481 fi
17482 done
17483
17484
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486/* end confdefs.h. */
17487
17488_ACEOF
17489if ac_fn_c_try_compile "$LINENO"; then :
17490 cy_good=1
17491else
17492 cy_good=0
17493fi
17494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495
17496 CFLAGS=$cy_save
17497 if test "x$cy_good" = x1; then :
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17499$as_echo "yes" >&6; }
17500
babf7fe8 17501 for element in -Werror; do
c10a2228
JF
17502 haveit=
17503 for x in $CFLAGS; do
17504
17505 acl_save_prefix="$prefix"
17506 prefix="$acl_final_prefix"
17507 acl_save_exec_prefix="$exec_prefix"
17508 exec_prefix="$acl_final_exec_prefix"
17509 eval x=\"$x\"
17510 exec_prefix="$acl_save_exec_prefix"
17511 prefix="$acl_save_prefix"
17512
17513 if test "X$x" = "X$element"; then
17514 haveit=yes
17515 break
17516 fi
17517 done
17518 if test -z "$haveit"; then
17519 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17520 fi
17521 done
17522
17523
17524else
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526$as_echo "no" >&6; }
17527fi
17528
17529 ac_ext=cpp
17530ac_cpp='$CXXCPP $CPPFLAGS'
17531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17534
17535
17536
17537 ac_ext=cpp
17538ac_cpp='$CXXCPP $CPPFLAGS'
17539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17542
babf7fe8
JF
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17544$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
17545
17546 cy_save=$CXXFLAGS
17547
babf7fe8 17548 for element in -Werror; do
c10a2228
JF
17549 haveit=
17550 for x in $CXXFLAGS; do
17551
17552 acl_save_prefix="$prefix"
17553 prefix="$acl_final_prefix"
17554 acl_save_exec_prefix="$exec_prefix"
17555 exec_prefix="$acl_final_exec_prefix"
17556 eval x=\"$x\"
17557 exec_prefix="$acl_save_exec_prefix"
17558 prefix="$acl_save_prefix"
17559
17560 if test "X$x" = "X$element"; then
17561 haveit=yes
17562 break
17563 fi
17564 done
17565 if test -z "$haveit"; then
17566 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17567 fi
17568 done
17569
17570
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h. */
17573
17574_ACEOF
17575if ac_fn_cxx_try_compile "$LINENO"; then :
17576 cy_good=1
17577else
17578 cy_good=0
17579fi
17580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581
17582 CXXFLAGS=$cy_save
17583 if test "x$cy_good" = x1; then :
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17585$as_echo "yes" >&6; }
17586
babf7fe8 17587 for element in -Werror; do
c10a2228
JF
17588 haveit=
17589 for x in $CXXFLAGS; do
17590
17591 acl_save_prefix="$prefix"
17592 prefix="$acl_final_prefix"
17593 acl_save_exec_prefix="$exec_prefix"
17594 exec_prefix="$acl_final_exec_prefix"
17595 eval x=\"$x\"
17596 exec_prefix="$acl_save_exec_prefix"
17597 prefix="$acl_save_prefix"
17598
17599 if test "X$x" = "X$element"; then
17600 haveit=yes
17601 break
17602 fi
17603 done
17604 if test -z "$haveit"; then
17605 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17606 fi
17607 done
17608
17609
17610else
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612$as_echo "no" >&6; }
17613fi
17614
17615 ac_ext=cpp
17616ac_cpp='$CXXCPP $CPPFLAGS'
17617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17620
17621
17622
17623 ac_ext=mm
17624ac_cpp='$OBJCXXCPP $CPPFLAGS'
17625ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17628
babf7fe8
JF
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17630$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
17631
17632 cy_save=$OBJCXXFLAGS
17633
babf7fe8 17634 for element in -Werror; do
c10a2228
JF
17635 haveit=
17636 for x in $OBJCXXFLAGS; do
17637
17638 acl_save_prefix="$prefix"
17639 prefix="$acl_final_prefix"
17640 acl_save_exec_prefix="$exec_prefix"
17641 exec_prefix="$acl_final_exec_prefix"
17642 eval x=\"$x\"
17643 exec_prefix="$acl_save_exec_prefix"
17644 prefix="$acl_save_prefix"
17645
17646 if test "X$x" = "X$element"; then
17647 haveit=yes
17648 break
17649 fi
17650 done
17651 if test -z "$haveit"; then
17652 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17653 fi
17654 done
17655
17656
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658/* end confdefs.h. */
17659
17660_ACEOF
17661if ac_fn_objcxx_try_compile "$LINENO"; then :
17662 cy_good=1
17663else
17664 cy_good=0
17665fi
17666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667
17668 OBJCXXFLAGS=$cy_save
17669 if test "x$cy_good" = x1; then :
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17671$as_echo "yes" >&6; }
17672
babf7fe8 17673 for element in -Werror; do
c10a2228
JF
17674 haveit=
17675 for x in $OBJCXXFLAGS; do
17676
17677 acl_save_prefix="$prefix"
17678 prefix="$acl_final_prefix"
17679 acl_save_exec_prefix="$exec_prefix"
17680 exec_prefix="$acl_final_exec_prefix"
17681 eval x=\"$x\"
17682 exec_prefix="$acl_save_exec_prefix"
17683 prefix="$acl_save_prefix"
17684
17685 if test "X$x" = "X$element"; then
17686 haveit=yes
17687 break
17688 fi
17689 done
17690 if test -z "$haveit"; then
17691 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17692 fi
17693 done
17694
17695
17696else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698$as_echo "no" >&6; }
17699fi
17700
17701 ac_ext=cpp
17702ac_cpp='$CXXCPP $CPPFLAGS'
17703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17706
17707
17708
17709
17710
17711
17712 ac_ext=c
17713ac_cpp='$CPP $CPPFLAGS'
17714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
babf7fe8
JF
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17719$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17720
17721 cy_save=$CFLAGS
17722
babf7fe8 17723 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17724 haveit=
17725 for x in $CFLAGS; do
17726
17727 acl_save_prefix="$prefix"
17728 prefix="$acl_final_prefix"
17729 acl_save_exec_prefix="$exec_prefix"
17730 exec_prefix="$acl_final_exec_prefix"
17731 eval x=\"$x\"
17732 exec_prefix="$acl_save_exec_prefix"
17733 prefix="$acl_save_prefix"
17734
17735 if test "X$x" = "X$element"; then
17736 haveit=yes
17737 break
17738 fi
17739 done
17740 if test -z "$haveit"; then
17741 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17742 fi
17743 done
17744
17745
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747/* end confdefs.h. */
17748
17749_ACEOF
17750if ac_fn_c_try_compile "$LINENO"; then :
17751 cy_good=1
17752else
17753 cy_good=0
17754fi
17755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756
17757 CFLAGS=$cy_save
17758 if test "x$cy_good" = x1; then :
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17760$as_echo "yes" >&6; }
17761
babf7fe8 17762 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17763 haveit=
17764 for x in $CFLAGS; do
17765
17766 acl_save_prefix="$prefix"
17767 prefix="$acl_final_prefix"
17768 acl_save_exec_prefix="$exec_prefix"
17769 exec_prefix="$acl_final_exec_prefix"
17770 eval x=\"$x\"
17771 exec_prefix="$acl_save_exec_prefix"
17772 prefix="$acl_save_prefix"
17773
17774 if test "X$x" = "X$element"; then
17775 haveit=yes
17776 break
17777 fi
17778 done
17779 if test -z "$haveit"; then
17780 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17781 fi
17782 done
17783
17784
17785else
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787$as_echo "no" >&6; }
17788fi
17789
17790 ac_ext=cpp
17791ac_cpp='$CXXCPP $CPPFLAGS'
17792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17795
17796
17797
17798 ac_ext=cpp
17799ac_cpp='$CXXCPP $CPPFLAGS'
17800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17803
babf7fe8
JF
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17805$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17806
17807 cy_save=$CXXFLAGS
17808
babf7fe8 17809 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17810 haveit=
17811 for x in $CXXFLAGS; do
17812
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17817 eval x=\"$x\"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17820
17821 if test "X$x" = "X$element"; then
17822 haveit=yes
17823 break
17824 fi
17825 done
17826 if test -z "$haveit"; then
17827 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17828 fi
17829 done
17830
17831
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h. */
17834
17835_ACEOF
17836if ac_fn_cxx_try_compile "$LINENO"; then :
17837 cy_good=1
17838else
17839 cy_good=0
17840fi
17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842
17843 CXXFLAGS=$cy_save
17844 if test "x$cy_good" = x1; then :
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846$as_echo "yes" >&6; }
17847
babf7fe8 17848 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17849 haveit=
17850 for x in $CXXFLAGS; do
17851
17852 acl_save_prefix="$prefix"
17853 prefix="$acl_final_prefix"
17854 acl_save_exec_prefix="$exec_prefix"
17855 exec_prefix="$acl_final_exec_prefix"
17856 eval x=\"$x\"
17857 exec_prefix="$acl_save_exec_prefix"
17858 prefix="$acl_save_prefix"
17859
17860 if test "X$x" = "X$element"; then
17861 haveit=yes
17862 break
17863 fi
17864 done
17865 if test -z "$haveit"; then
17866 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17867 fi
17868 done
17869
17870
17871else
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873$as_echo "no" >&6; }
17874fi
17875
17876 ac_ext=cpp
17877ac_cpp='$CXXCPP $CPPFLAGS'
17878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17881
17882
17883
17884 ac_ext=mm
17885ac_cpp='$OBJCXXCPP $CPPFLAGS'
17886ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17887ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17888ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17889
babf7fe8
JF
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17891$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17892
17893 cy_save=$OBJCXXFLAGS
17894
babf7fe8 17895 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17896 haveit=
17897 for x in $OBJCXXFLAGS; do
17898
17899 acl_save_prefix="$prefix"
17900 prefix="$acl_final_prefix"
17901 acl_save_exec_prefix="$exec_prefix"
17902 exec_prefix="$acl_final_exec_prefix"
17903 eval x=\"$x\"
17904 exec_prefix="$acl_save_exec_prefix"
17905 prefix="$acl_save_prefix"
17906
17907 if test "X$x" = "X$element"; then
17908 haveit=yes
17909 break
17910 fi
17911 done
17912 if test -z "$haveit"; then
17913 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17914 fi
17915 done
17916
17917
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919/* end confdefs.h. */
17920
17921_ACEOF
17922if ac_fn_objcxx_try_compile "$LINENO"; then :
17923 cy_good=1
17924else
17925 cy_good=0
17926fi
17927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928
17929 OBJCXXFLAGS=$cy_save
17930 if test "x$cy_good" = x1; then :
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17932$as_echo "yes" >&6; }
17933
babf7fe8 17934 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17935 haveit=
17936 for x in $OBJCXXFLAGS; do
17937
17938 acl_save_prefix="$prefix"
17939 prefix="$acl_final_prefix"
17940 acl_save_exec_prefix="$exec_prefix"
17941 exec_prefix="$acl_final_exec_prefix"
17942 eval x=\"$x\"
17943 exec_prefix="$acl_save_exec_prefix"
17944 prefix="$acl_save_prefix"
17945
17946 if test "X$x" = "X$element"; then
17947 haveit=yes
17948 break
17949 fi
17950 done
17951 if test -z "$haveit"; then
17952 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17953 fi
17954 done
17955
17956
17957else
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959$as_echo "no" >&6; }
17960fi
17961
17962 ac_ext=cpp
17963ac_cpp='$CXXCPP $CPPFLAGS'
17964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17967
17968
17969
17970
17971
babf7fe8 17972
c10a2228
JF
17973 ac_ext=c
17974ac_cpp='$CPP $CPPFLAGS'
17975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
babf7fe8
JF
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17980$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17981
17982 cy_save=$CFLAGS
17983
babf7fe8 17984 for element in -Wno-dangling-else; do
c10a2228
JF
17985 haveit=
17986 for x in $CFLAGS; do
17987
17988 acl_save_prefix="$prefix"
17989 prefix="$acl_final_prefix"
17990 acl_save_exec_prefix="$exec_prefix"
17991 exec_prefix="$acl_final_exec_prefix"
17992 eval x=\"$x\"
17993 exec_prefix="$acl_save_exec_prefix"
17994 prefix="$acl_save_prefix"
17995
17996 if test "X$x" = "X$element"; then
17997 haveit=yes
17998 break
17999 fi
18000 done
18001 if test -z "$haveit"; then
18002 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18003 fi
18004 done
18005
18006
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008/* end confdefs.h. */
18009
18010_ACEOF
18011if ac_fn_c_try_compile "$LINENO"; then :
18012 cy_good=1
18013else
18014 cy_good=0
18015fi
18016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017
18018 CFLAGS=$cy_save
18019 if test "x$cy_good" = x1; then :
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18021$as_echo "yes" >&6; }
18022
babf7fe8 18023 for element in -Wno-dangling-else; do
c10a2228
JF
18024 haveit=
18025 for x in $CFLAGS; do
18026
18027 acl_save_prefix="$prefix"
18028 prefix="$acl_final_prefix"
18029 acl_save_exec_prefix="$exec_prefix"
18030 exec_prefix="$acl_final_exec_prefix"
18031 eval x=\"$x\"
18032 exec_prefix="$acl_save_exec_prefix"
18033 prefix="$acl_save_prefix"
18034
18035 if test "X$x" = "X$element"; then
18036 haveit=yes
18037 break
18038 fi
18039 done
18040 if test -z "$haveit"; then
18041 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18042 fi
18043 done
18044
18045
18046else
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048$as_echo "no" >&6; }
18049fi
18050
18051 ac_ext=cpp
18052ac_cpp='$CXXCPP $CPPFLAGS'
18053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18056
18057
18058
18059 ac_ext=cpp
18060ac_cpp='$CXXCPP $CPPFLAGS'
18061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18064
babf7fe8
JF
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18066$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
18067
18068 cy_save=$CXXFLAGS
18069
babf7fe8 18070 for element in -Wno-dangling-else; do
c10a2228
JF
18071 haveit=
18072 for x in $CXXFLAGS; do
18073
18074 acl_save_prefix="$prefix"
18075 prefix="$acl_final_prefix"
18076 acl_save_exec_prefix="$exec_prefix"
18077 exec_prefix="$acl_final_exec_prefix"
18078 eval x=\"$x\"
18079 exec_prefix="$acl_save_exec_prefix"
18080 prefix="$acl_save_prefix"
18081
18082 if test "X$x" = "X$element"; then
18083 haveit=yes
18084 break
18085 fi
18086 done
18087 if test -z "$haveit"; then
18088 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18089 fi
18090 done
18091
18092
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094/* end confdefs.h. */
18095
18096_ACEOF
18097if ac_fn_cxx_try_compile "$LINENO"; then :
18098 cy_good=1
18099else
18100 cy_good=0
18101fi
18102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103
18104 CXXFLAGS=$cy_save
18105 if test "x$cy_good" = x1; then :
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18107$as_echo "yes" >&6; }
18108
babf7fe8 18109 for element in -Wno-dangling-else; do
c10a2228
JF
18110 haveit=
18111 for x in $CXXFLAGS; do
18112
18113 acl_save_prefix="$prefix"
18114 prefix="$acl_final_prefix"
18115 acl_save_exec_prefix="$exec_prefix"
18116 exec_prefix="$acl_final_exec_prefix"
18117 eval x=\"$x\"
18118 exec_prefix="$acl_save_exec_prefix"
18119 prefix="$acl_save_prefix"
18120
18121 if test "X$x" = "X$element"; then
18122 haveit=yes
18123 break
18124 fi
18125 done
18126 if test -z "$haveit"; then
18127 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18128 fi
18129 done
18130
18131
18132else
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18134$as_echo "no" >&6; }
18135fi
18136
18137 ac_ext=cpp
18138ac_cpp='$CXXCPP $CPPFLAGS'
18139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18142
18143
18144
18145 ac_ext=mm
18146ac_cpp='$OBJCXXCPP $CPPFLAGS'
18147ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18148ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18149ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18150
babf7fe8
JF
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18152$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
18153
18154 cy_save=$OBJCXXFLAGS
18155
babf7fe8 18156 for element in -Wno-dangling-else; do
c10a2228
JF
18157 haveit=
18158 for x in $OBJCXXFLAGS; do
18159
18160 acl_save_prefix="$prefix"
18161 prefix="$acl_final_prefix"
18162 acl_save_exec_prefix="$exec_prefix"
18163 exec_prefix="$acl_final_exec_prefix"
18164 eval x=\"$x\"
18165 exec_prefix="$acl_save_exec_prefix"
18166 prefix="$acl_save_prefix"
18167
18168 if test "X$x" = "X$element"; then
18169 haveit=yes
18170 break
18171 fi
18172 done
18173 if test -z "$haveit"; then
18174 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18175 fi
18176 done
18177
18178
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180/* end confdefs.h. */
18181
18182_ACEOF
18183if ac_fn_objcxx_try_compile "$LINENO"; then :
18184 cy_good=1
18185else
18186 cy_good=0
18187fi
18188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189
18190 OBJCXXFLAGS=$cy_save
18191 if test "x$cy_good" = x1; then :
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193$as_echo "yes" >&6; }
18194
babf7fe8 18195 for element in -Wno-dangling-else; do
c10a2228
JF
18196 haveit=
18197 for x in $OBJCXXFLAGS; do
18198
18199 acl_save_prefix="$prefix"
18200 prefix="$acl_final_prefix"
18201 acl_save_exec_prefix="$exec_prefix"
18202 exec_prefix="$acl_final_exec_prefix"
18203 eval x=\"$x\"
18204 exec_prefix="$acl_save_exec_prefix"
18205 prefix="$acl_save_prefix"
18206
18207 if test "X$x" = "X$element"; then
18208 haveit=yes
18209 break
18210 fi
18211 done
18212 if test -z "$haveit"; then
18213 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18214 fi
18215 done
18216
18217
18218else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220$as_echo "no" >&6; }
18221fi
18222
18223 ac_ext=cpp
18224ac_cpp='$CXXCPP $CPPFLAGS'
18225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18228
18229
18230
18231
18232
2ada0541
JF
18233 ac_ext=c
18234ac_cpp='$CPP $CPPFLAGS'
18235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237ac_compiler_gnu=$ac_cv_c_compiler_gnu
18238
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
18240$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
18241
18242 cy_save=$CFLAGS
18243
18244 for element in -Wno-empty-body; do
18245 haveit=
18246 for x in $CFLAGS; do
18247
18248 acl_save_prefix="$prefix"
18249 prefix="$acl_final_prefix"
18250 acl_save_exec_prefix="$exec_prefix"
18251 exec_prefix="$acl_final_exec_prefix"
18252 eval x=\"$x\"
18253 exec_prefix="$acl_save_exec_prefix"
18254 prefix="$acl_save_prefix"
18255
18256 if test "X$x" = "X$element"; then
18257 haveit=yes
18258 break
18259 fi
18260 done
18261 if test -z "$haveit"; then
18262 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18263 fi
18264 done
18265
18266
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h. */
18269
18270_ACEOF
18271if ac_fn_c_try_compile "$LINENO"; then :
18272 cy_good=1
18273else
18274 cy_good=0
18275fi
18276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277
18278 CFLAGS=$cy_save
18279 if test "x$cy_good" = x1; then :
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18281$as_echo "yes" >&6; }
18282
18283 for element in -Wno-empty-body; do
18284 haveit=
18285 for x in $CFLAGS; do
18286
18287 acl_save_prefix="$prefix"
18288 prefix="$acl_final_prefix"
18289 acl_save_exec_prefix="$exec_prefix"
18290 exec_prefix="$acl_final_exec_prefix"
18291 eval x=\"$x\"
18292 exec_prefix="$acl_save_exec_prefix"
18293 prefix="$acl_save_prefix"
18294
18295 if test "X$x" = "X$element"; then
18296 haveit=yes
18297 break
18298 fi
18299 done
18300 if test -z "$haveit"; then
18301 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18302 fi
18303 done
18304
18305
18306else
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308$as_echo "no" >&6; }
18309fi
18310
18311 ac_ext=cpp
18312ac_cpp='$CXXCPP $CPPFLAGS'
18313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18316
18317
18318
18319 ac_ext=cpp
18320ac_cpp='$CXXCPP $CPPFLAGS'
18321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18324
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
18326$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
18327
18328 cy_save=$CXXFLAGS
18329
18330 for element in -Wno-empty-body; do
18331 haveit=
18332 for x in $CXXFLAGS; do
18333
18334 acl_save_prefix="$prefix"
18335 prefix="$acl_final_prefix"
18336 acl_save_exec_prefix="$exec_prefix"
18337 exec_prefix="$acl_final_exec_prefix"
18338 eval x=\"$x\"
18339 exec_prefix="$acl_save_exec_prefix"
18340 prefix="$acl_save_prefix"
18341
18342 if test "X$x" = "X$element"; then
18343 haveit=yes
18344 break
18345 fi
18346 done
18347 if test -z "$haveit"; then
18348 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18349 fi
18350 done
18351
18352
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354/* end confdefs.h. */
18355
18356_ACEOF
18357if ac_fn_cxx_try_compile "$LINENO"; then :
18358 cy_good=1
18359else
18360 cy_good=0
18361fi
18362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18363
18364 CXXFLAGS=$cy_save
18365 if test "x$cy_good" = x1; then :
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367$as_echo "yes" >&6; }
18368
18369 for element in -Wno-empty-body; do
18370 haveit=
18371 for x in $CXXFLAGS; do
18372
18373 acl_save_prefix="$prefix"
18374 prefix="$acl_final_prefix"
18375 acl_save_exec_prefix="$exec_prefix"
18376 exec_prefix="$acl_final_exec_prefix"
18377 eval x=\"$x\"
18378 exec_prefix="$acl_save_exec_prefix"
18379 prefix="$acl_save_prefix"
18380
18381 if test "X$x" = "X$element"; then
18382 haveit=yes
18383 break
18384 fi
18385 done
18386 if test -z "$haveit"; then
18387 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18388 fi
18389 done
18390
18391
18392else
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394$as_echo "no" >&6; }
18395fi
18396
18397 ac_ext=cpp
18398ac_cpp='$CXXCPP $CPPFLAGS'
18399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402
18403
18404
18405 ac_ext=mm
18406ac_cpp='$OBJCXXCPP $CPPFLAGS'
18407ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18410
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
18412$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
18413
18414 cy_save=$OBJCXXFLAGS
18415
18416 for element in -Wno-empty-body; do
18417 haveit=
18418 for x in $OBJCXXFLAGS; do
18419
18420 acl_save_prefix="$prefix"
18421 prefix="$acl_final_prefix"
18422 acl_save_exec_prefix="$exec_prefix"
18423 exec_prefix="$acl_final_exec_prefix"
18424 eval x=\"$x\"
18425 exec_prefix="$acl_save_exec_prefix"
18426 prefix="$acl_save_prefix"
18427
18428 if test "X$x" = "X$element"; then
18429 haveit=yes
18430 break
18431 fi
18432 done
18433 if test -z "$haveit"; then
18434 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18435 fi
18436 done
18437
18438
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440/* end confdefs.h. */
18441
18442_ACEOF
18443if ac_fn_objcxx_try_compile "$LINENO"; then :
18444 cy_good=1
18445else
18446 cy_good=0
18447fi
18448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18449
18450 OBJCXXFLAGS=$cy_save
18451 if test "x$cy_good" = x1; then :
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18453$as_echo "yes" >&6; }
18454
18455 for element in -Wno-empty-body; do
18456 haveit=
18457 for x in $OBJCXXFLAGS; do
18458
18459 acl_save_prefix="$prefix"
18460 prefix="$acl_final_prefix"
18461 acl_save_exec_prefix="$exec_prefix"
18462 exec_prefix="$acl_final_exec_prefix"
18463 eval x=\"$x\"
18464 exec_prefix="$acl_save_exec_prefix"
18465 prefix="$acl_save_prefix"
18466
18467 if test "X$x" = "X$element"; then
18468 haveit=yes
18469 break
18470 fi
18471 done
18472 if test -z "$haveit"; then
18473 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18474 fi
18475 done
18476
18477
18478else
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18480$as_echo "no" >&6; }
18481fi
18482
18483 ac_ext=cpp
18484ac_cpp='$CXXCPP $CPPFLAGS'
18485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18488
18489
18490
18491
18492
c10a2228
JF
18493 ac_ext=c
18494ac_cpp='$CPP $CPPFLAGS'
18495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18497ac_compiler_gnu=$ac_cv_c_compiler_gnu
18498
babf7fe8
JF
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18500$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18501
18502 cy_save=$CFLAGS
18503
babf7fe8 18504 for element in -Wno-overloaded-virtual; do
1504c9b8 18505 haveit=
c10a2228 18506 for x in $CFLAGS; do
1504c9b8
DWT
18507
18508 acl_save_prefix="$prefix"
18509 prefix="$acl_final_prefix"
18510 acl_save_exec_prefix="$exec_prefix"
18511 exec_prefix="$acl_final_exec_prefix"
18512 eval x=\"$x\"
18513 exec_prefix="$acl_save_exec_prefix"
18514 prefix="$acl_save_prefix"
18515
18516 if test "X$x" = "X$element"; then
18517 haveit=yes
18518 break
18519 fi
18520 done
18521 if test -z "$haveit"; then
c10a2228 18522 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18523 fi
18524 done
18525
66170b30
JF
18526
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18528/* end confdefs.h. */
18529
66170b30 18530_ACEOF
c10a2228 18531if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
18532 cy_good=1
18533else
18534 cy_good=0
18535fi
18536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537
c10a2228 18538 CFLAGS=$cy_save
66170b30
JF
18539 if test "x$cy_good" = x1; then :
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18541$as_echo "yes" >&6; }
18542
babf7fe8 18543 for element in -Wno-overloaded-virtual; do
66170b30
JF
18544 haveit=
18545 for x in $CFLAGS; do
18546
18547 acl_save_prefix="$prefix"
18548 prefix="$acl_final_prefix"
18549 acl_save_exec_prefix="$exec_prefix"
18550 exec_prefix="$acl_final_exec_prefix"
18551 eval x=\"$x\"
18552 exec_prefix="$acl_save_exec_prefix"
18553 prefix="$acl_save_prefix"
18554
18555 if test "X$x" = "X$element"; then
18556 haveit=yes
18557 break
18558 fi
18559 done
18560 if test -z "$haveit"; then
18561 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18562 fi
18563 done
18564
18565
c10a2228
JF
18566else
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568$as_echo "no" >&6; }
18569fi
18570
18571 ac_ext=cpp
18572ac_cpp='$CXXCPP $CPPFLAGS'
18573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18576
18577
18578
18579 ac_ext=cpp
18580ac_cpp='$CXXCPP $CPPFLAGS'
18581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18584
babf7fe8
JF
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18586$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18587
18588 cy_save=$CXXFLAGS
18589
babf7fe8 18590 for element in -Wno-overloaded-virtual; do
66170b30
JF
18591 haveit=
18592 for x in $CXXFLAGS; do
18593
18594 acl_save_prefix="$prefix"
18595 prefix="$acl_final_prefix"
18596 acl_save_exec_prefix="$exec_prefix"
18597 exec_prefix="$acl_final_exec_prefix"
18598 eval x=\"$x\"
18599 exec_prefix="$acl_save_exec_prefix"
18600 prefix="$acl_save_prefix"
18601
18602 if test "X$x" = "X$element"; then
18603 haveit=yes
18604 break
18605 fi
18606 done
18607 if test -z "$haveit"; then
18608 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18609 fi
18610 done
18611
18612
c10a2228
JF
18613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614/* end confdefs.h. */
18615
18616_ACEOF
18617if ac_fn_cxx_try_compile "$LINENO"; then :
18618 cy_good=1
18619else
18620 cy_good=0
18621fi
18622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623
18624 CXXFLAGS=$cy_save
18625 if test "x$cy_good" = x1; then :
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18627$as_echo "yes" >&6; }
18628
babf7fe8 18629 for element in -Wno-overloaded-virtual; do
66170b30 18630 haveit=
c10a2228 18631 for x in $CXXFLAGS; do
66170b30
JF
18632
18633 acl_save_prefix="$prefix"
18634 prefix="$acl_final_prefix"
18635 acl_save_exec_prefix="$exec_prefix"
18636 exec_prefix="$acl_final_exec_prefix"
18637 eval x=\"$x\"
18638 exec_prefix="$acl_save_exec_prefix"
18639 prefix="$acl_save_prefix"
18640
18641 if test "X$x" = "X$element"; then
18642 haveit=yes
18643 break
18644 fi
18645 done
18646 if test -z "$haveit"; then
c10a2228 18647 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
18648 fi
18649 done
18650
18651
66170b30
JF
18652else
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18654$as_echo "no" >&6; }
18655fi
18656
c10a2228
JF
18657 ac_ext=cpp
18658ac_cpp='$CXXCPP $CPPFLAGS'
18659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18662
66170b30
JF
18663
18664
c10a2228
JF
18665 ac_ext=mm
18666ac_cpp='$OBJCXXCPP $CPPFLAGS'
18667ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18668ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18669ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18670
babf7fe8
JF
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18672$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 18673
c10a2228 18674 cy_save=$OBJCXXFLAGS
66170b30 18675
babf7fe8 18676 for element in -Wno-overloaded-virtual; do
66170b30 18677 haveit=
c10a2228 18678 for x in $OBJCXXFLAGS; do
66170b30
JF
18679
18680 acl_save_prefix="$prefix"
18681 prefix="$acl_final_prefix"
18682 acl_save_exec_prefix="$exec_prefix"
18683 exec_prefix="$acl_final_exec_prefix"
18684 eval x=\"$x\"
18685 exec_prefix="$acl_save_exec_prefix"
18686 prefix="$acl_save_prefix"
18687
18688 if test "X$x" = "X$element"; then
18689 haveit=yes
18690 break
18691 fi
18692 done
18693 if test -z "$haveit"; then
c10a2228 18694 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
18695 fi
18696 done
18697
18698
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700/* end confdefs.h. */
1504c9b8 18701
1504c9b8 18702_ACEOF
c10a2228 18703if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
18704 cy_good=1
18705else
18706 cy_good=0
18707fi
18708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709
c10a2228 18710 OBJCXXFLAGS=$cy_save
66170b30
JF
18711 if test "x$cy_good" = x1; then :
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713$as_echo "yes" >&6; }
1504c9b8 18714
babf7fe8 18715 for element in -Wno-overloaded-virtual; do
1504c9b8 18716 haveit=
c10a2228 18717 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18718
18719 acl_save_prefix="$prefix"
18720 prefix="$acl_final_prefix"
18721 acl_save_exec_prefix="$exec_prefix"
18722 exec_prefix="$acl_final_exec_prefix"
18723 eval x=\"$x\"
18724 exec_prefix="$acl_save_exec_prefix"
18725 prefix="$acl_save_prefix"
18726
18727 if test "X$x" = "X$element"; then
18728 haveit=yes
18729 break
18730 fi
18731 done
18732 if test -z "$haveit"; then
c10a2228 18733 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18734 fi
18735 done
18736
18737
c10a2228
JF
18738else
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740$as_echo "no" >&6; }
18741fi
18742
18743 ac_ext=cpp
18744ac_cpp='$CXXCPP $CPPFLAGS'
18745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18748
18749
18750
18751
18752
18753 ac_ext=c
18754ac_cpp='$CPP $CPPFLAGS'
18755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18757ac_compiler_gnu=$ac_cv_c_compiler_gnu
18758
babf7fe8
JF
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18760$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
18761
18762 cy_save=$CFLAGS
18763
babf7fe8 18764 for element in -Wno-parentheses; do
66170b30 18765 haveit=
c10a2228 18766 for x in $CFLAGS; do
66170b30
JF
18767
18768 acl_save_prefix="$prefix"
18769 prefix="$acl_final_prefix"
18770 acl_save_exec_prefix="$exec_prefix"
18771 exec_prefix="$acl_final_exec_prefix"
18772 eval x=\"$x\"
18773 exec_prefix="$acl_save_exec_prefix"
18774 prefix="$acl_save_prefix"
18775
18776 if test "X$x" = "X$element"; then
18777 haveit=yes
18778 break
18779 fi
18780 done
18781 if test -z "$haveit"; then
c10a2228 18782 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18783 fi
18784 done
18785
18786
c10a2228
JF
18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788/* end confdefs.h. */
18789
18790_ACEOF
18791if ac_fn_c_try_compile "$LINENO"; then :
18792 cy_good=1
18793else
18794 cy_good=0
18795fi
18796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797
18798 CFLAGS=$cy_save
18799 if test "x$cy_good" = x1; then :
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18801$as_echo "yes" >&6; }
18802
babf7fe8 18803 for element in -Wno-parentheses; do
66170b30 18804 haveit=
c10a2228 18805 for x in $CFLAGS; do
66170b30
JF
18806
18807 acl_save_prefix="$prefix"
18808 prefix="$acl_final_prefix"
18809 acl_save_exec_prefix="$exec_prefix"
18810 exec_prefix="$acl_final_exec_prefix"
18811 eval x=\"$x\"
18812 exec_prefix="$acl_save_exec_prefix"
18813 prefix="$acl_save_prefix"
18814
18815 if test "X$x" = "X$element"; then
18816 haveit=yes
18817 break
18818 fi
18819 done
18820 if test -z "$haveit"; then
c10a2228 18821 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18822 fi
18823 done
18824
18825
66170b30
JF
18826else
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828$as_echo "no" >&6; }
18829fi
18830
c10a2228
JF
18831 ac_ext=cpp
18832ac_cpp='$CXXCPP $CPPFLAGS'
18833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18836
66170b30
JF
18837
18838
c10a2228
JF
18839 ac_ext=cpp
18840ac_cpp='$CXXCPP $CPPFLAGS'
18841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18844
babf7fe8
JF
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18846$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
18847
18848 cy_save=$CXXFLAGS
18849
babf7fe8 18850 for element in -Wno-parentheses; do
66170b30
JF
18851 haveit=
18852 for x in $CXXFLAGS; do
18853
18854 acl_save_prefix="$prefix"
18855 prefix="$acl_final_prefix"
18856 acl_save_exec_prefix="$exec_prefix"
18857 exec_prefix="$acl_final_exec_prefix"
18858 eval x=\"$x\"
18859 exec_prefix="$acl_save_exec_prefix"
18860 prefix="$acl_save_prefix"
18861
18862 if test "X$x" = "X$element"; then
18863 haveit=yes
18864 break
18865 fi
18866 done
18867 if test -z "$haveit"; then
18868 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18869 fi
18870 done
18871
18872
18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874/* end confdefs.h. */
18875
18876_ACEOF
18877if ac_fn_cxx_try_compile "$LINENO"; then :
18878 cy_good=1
18879else
18880 cy_good=0
18881fi
18882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883
18884 CXXFLAGS=$cy_save
18885 if test "x$cy_good" = x1; then :
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18887$as_echo "yes" >&6; }
18888
babf7fe8 18889 for element in -Wno-parentheses; do
1504c9b8 18890 haveit=
c10a2228 18891 for x in $CXXFLAGS; do
1504c9b8
DWT
18892
18893 acl_save_prefix="$prefix"
18894 prefix="$acl_final_prefix"
18895 acl_save_exec_prefix="$exec_prefix"
18896 exec_prefix="$acl_final_exec_prefix"
18897 eval x=\"$x\"
18898 exec_prefix="$acl_save_exec_prefix"
18899 prefix="$acl_save_prefix"
18900
18901 if test "X$x" = "X$element"; then
18902 haveit=yes
18903 break
18904 fi
18905 done
18906 if test -z "$haveit"; then
c10a2228 18907 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
18908 fi
18909 done
18910
18911
c10a2228
JF
18912else
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18914$as_echo "no" >&6; }
18915fi
18916
18917 ac_ext=cpp
18918ac_cpp='$CXXCPP $CPPFLAGS'
18919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18922
18923
18924
18925 ac_ext=mm
18926ac_cpp='$OBJCXXCPP $CPPFLAGS'
18927ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18930
babf7fe8
JF
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18932$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
18933
18934 cy_save=$OBJCXXFLAGS
18935
babf7fe8 18936 for element in -Wno-parentheses; do
1504c9b8 18937 haveit=
c10a2228 18938 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18939
18940 acl_save_prefix="$prefix"
18941 prefix="$acl_final_prefix"
18942 acl_save_exec_prefix="$exec_prefix"
18943 exec_prefix="$acl_final_exec_prefix"
18944 eval x=\"$x\"
18945 exec_prefix="$acl_save_exec_prefix"
18946 prefix="$acl_save_prefix"
18947
18948 if test "X$x" = "X$element"; then
18949 haveit=yes
18950 break
18951 fi
18952 done
18953 if test -z "$haveit"; then
c10a2228 18954 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18955 fi
18956 done
18957
18958
c10a2228
JF
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960/* end confdefs.h. */
18961
18962_ACEOF
18963if ac_fn_objcxx_try_compile "$LINENO"; then :
18964 cy_good=1
18965else
18966 cy_good=0
18967fi
18968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969
18970 OBJCXXFLAGS=$cy_save
18971 if test "x$cy_good" = x1; then :
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18973$as_echo "yes" >&6; }
18974
babf7fe8 18975 for element in -Wno-parentheses; do
1504c9b8 18976 haveit=
c10a2228 18977 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18978
18979 acl_save_prefix="$prefix"
18980 prefix="$acl_final_prefix"
18981 acl_save_exec_prefix="$exec_prefix"
2ada0541
JF
18982 exec_prefix="$acl_final_exec_prefix"
18983 eval x=\"$x\"
18984 exec_prefix="$acl_save_exec_prefix"
18985 prefix="$acl_save_prefix"
18986
18987 if test "X$x" = "X$element"; then
18988 haveit=yes
18989 break
18990 fi
18991 done
18992 if test -z "$haveit"; then
18993 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18994 fi
18995 done
18996
18997
18998else
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000$as_echo "no" >&6; }
19001fi
19002
19003 ac_ext=cpp
19004ac_cpp='$CXXCPP $CPPFLAGS'
19005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19008
19009
19010
19011
19012
19013 ac_ext=c
19014ac_cpp='$CPP $CPPFLAGS'
19015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19017ac_compiler_gnu=$ac_cv_c_compiler_gnu
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
19020$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
19021
19022 cy_save=$CFLAGS
19023
19024 for element in -Wno-tautological-undefined-compare; do
19025 haveit=
19026 for x in $CFLAGS; do
19027
19028 acl_save_prefix="$prefix"
19029 prefix="$acl_final_prefix"
19030 acl_save_exec_prefix="$exec_prefix"
19031 exec_prefix="$acl_final_exec_prefix"
19032 eval x=\"$x\"
19033 exec_prefix="$acl_save_exec_prefix"
19034 prefix="$acl_save_prefix"
19035
19036 if test "X$x" = "X$element"; then
19037 haveit=yes
19038 break
19039 fi
19040 done
19041 if test -z "$haveit"; then
19042 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19043 fi
19044 done
19045
19046
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048/* end confdefs.h. */
19049
19050_ACEOF
19051if ac_fn_c_try_compile "$LINENO"; then :
19052 cy_good=1
19053else
19054 cy_good=0
19055fi
19056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057
19058 CFLAGS=$cy_save
19059 if test "x$cy_good" = x1; then :
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19061$as_echo "yes" >&6; }
19062
19063 for element in -Wno-tautological-undefined-compare; do
19064 haveit=
19065 for x in $CFLAGS; do
19066
19067 acl_save_prefix="$prefix"
19068 prefix="$acl_final_prefix"
19069 acl_save_exec_prefix="$exec_prefix"
19070 exec_prefix="$acl_final_exec_prefix"
19071 eval x=\"$x\"
19072 exec_prefix="$acl_save_exec_prefix"
19073 prefix="$acl_save_prefix"
19074
19075 if test "X$x" = "X$element"; then
19076 haveit=yes
19077 break
19078 fi
19079 done
19080 if test -z "$haveit"; then
19081 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19082 fi
19083 done
19084
19085
19086else
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088$as_echo "no" >&6; }
19089fi
19090
19091 ac_ext=cpp
19092ac_cpp='$CXXCPP $CPPFLAGS'
19093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19096
19097
19098
19099 ac_ext=cpp
19100ac_cpp='$CXXCPP $CPPFLAGS'
19101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19104
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
19106$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
19107
19108 cy_save=$CXXFLAGS
19109
19110 for element in -Wno-tautological-undefined-compare; do
19111 haveit=
19112 for x in $CXXFLAGS; do
19113
19114 acl_save_prefix="$prefix"
19115 prefix="$acl_final_prefix"
19116 acl_save_exec_prefix="$exec_prefix"
19117 exec_prefix="$acl_final_exec_prefix"
19118 eval x=\"$x\"
19119 exec_prefix="$acl_save_exec_prefix"
19120 prefix="$acl_save_prefix"
19121
19122 if test "X$x" = "X$element"; then
19123 haveit=yes
19124 break
19125 fi
19126 done
19127 if test -z "$haveit"; then
19128 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19129 fi
19130 done
19131
19132
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h. */
19135
19136_ACEOF
19137if ac_fn_cxx_try_compile "$LINENO"; then :
19138 cy_good=1
19139else
19140 cy_good=0
19141fi
19142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19143
19144 CXXFLAGS=$cy_save
19145 if test "x$cy_good" = x1; then :
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19147$as_echo "yes" >&6; }
19148
19149 for element in -Wno-tautological-undefined-compare; do
19150 haveit=
19151 for x in $CXXFLAGS; do
19152
19153 acl_save_prefix="$prefix"
19154 prefix="$acl_final_prefix"
19155 acl_save_exec_prefix="$exec_prefix"
19156 exec_prefix="$acl_final_exec_prefix"
19157 eval x=\"$x\"
19158 exec_prefix="$acl_save_exec_prefix"
19159 prefix="$acl_save_prefix"
19160
19161 if test "X$x" = "X$element"; then
19162 haveit=yes
19163 break
19164 fi
19165 done
19166 if test -z "$haveit"; then
19167 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19168 fi
19169 done
19170
19171
19172else
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19174$as_echo "no" >&6; }
19175fi
19176
19177 ac_ext=cpp
19178ac_cpp='$CXXCPP $CPPFLAGS'
19179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19182
19183
19184
19185 ac_ext=mm
19186ac_cpp='$OBJCXXCPP $CPPFLAGS'
19187ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19190
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
19192$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
19193
19194 cy_save=$OBJCXXFLAGS
19195
19196 for element in -Wno-tautological-undefined-compare; do
19197 haveit=
19198 for x in $OBJCXXFLAGS; do
19199
19200 acl_save_prefix="$prefix"
19201 prefix="$acl_final_prefix"
19202 acl_save_exec_prefix="$exec_prefix"
19203 exec_prefix="$acl_final_exec_prefix"
19204 eval x=\"$x\"
19205 exec_prefix="$acl_save_exec_prefix"
19206 prefix="$acl_save_prefix"
19207
19208 if test "X$x" = "X$element"; then
19209 haveit=yes
19210 break
19211 fi
19212 done
19213 if test -z "$haveit"; then
19214 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19215 fi
19216 done
19217
19218
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220/* end confdefs.h. */
19221
19222_ACEOF
19223if ac_fn_objcxx_try_compile "$LINENO"; then :
19224 cy_good=1
19225else
19226 cy_good=0
19227fi
19228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229
19230 OBJCXXFLAGS=$cy_save
19231 if test "x$cy_good" = x1; then :
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233$as_echo "yes" >&6; }
19234
19235 for element in -Wno-tautological-undefined-compare; do
19236 haveit=
19237 for x in $OBJCXXFLAGS; do
19238
19239 acl_save_prefix="$prefix"
19240 prefix="$acl_final_prefix"
19241 acl_save_exec_prefix="$exec_prefix"
1504c9b8
DWT
19242 exec_prefix="$acl_final_exec_prefix"
19243 eval x=\"$x\"
19244 exec_prefix="$acl_save_exec_prefix"
19245 prefix="$acl_save_prefix"
19246
19247 if test "X$x" = "X$element"; then
19248 haveit=yes
19249 break
19250 fi
19251 done
19252 if test -z "$haveit"; then
c10a2228 19253 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
19254 fi
19255 done
19256
19257
66170b30
JF
19258else
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260$as_echo "no" >&6; }
1504c9b8 19261fi
1504c9b8 19262
c10a2228
JF
19263 ac_ext=cpp
19264ac_cpp='$CXXCPP $CPPFLAGS'
19265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268
19269
1504c9b8 19270
1504c9b8 19271
1504c9b8 19272
babf7fe8
JF
19273 ac_ext=c
19274ac_cpp='$CPP $CPPFLAGS'
19275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 19278
babf7fe8
JF
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
19280$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
19281
19282 cy_save=$CFLAGS
19283
19284 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 19285 haveit=
babf7fe8 19286 for x in $CFLAGS; do
1504c9b8
DWT
19287
19288 acl_save_prefix="$prefix"
19289 prefix="$acl_final_prefix"
19290 acl_save_exec_prefix="$exec_prefix"
19291 exec_prefix="$acl_final_exec_prefix"
19292 eval x=\"$x\"
19293 exec_prefix="$acl_save_exec_prefix"
19294 prefix="$acl_save_prefix"
19295
19296 if test "X$x" = "X$element"; then
19297 haveit=yes
19298 break
19299 fi
19300 done
19301 if test -z "$haveit"; then
babf7fe8 19302 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
19303 fi
19304 done
19305
66170b30
JF
19306
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
19308/* end confdefs.h. */
19309
a243b558 19310_ACEOF
babf7fe8 19311if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
19312 cy_good=1
19313else
19314 cy_good=0
19315fi
babf7fe8 19316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 19317
babf7fe8 19318 CFLAGS=$cy_save
a243b558
JF
19319 if test "x$cy_good" = x1; then :
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19321$as_echo "yes" >&6; }
66170b30 19322
babf7fe8 19323 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 19324 haveit=
babf7fe8 19325 for x in $CFLAGS; do
1504c9b8
DWT
19326
19327 acl_save_prefix="$prefix"
19328 prefix="$acl_final_prefix"
19329 acl_save_exec_prefix="$exec_prefix"
19330 exec_prefix="$acl_final_exec_prefix"
19331 eval x=\"$x\"
19332 exec_prefix="$acl_save_exec_prefix"
19333 prefix="$acl_save_prefix"
19334
19335 if test "X$x" = "X$element"; then
19336 haveit=yes
19337 break
19338 fi
19339 done
19340 if test -z "$haveit"; then
babf7fe8 19341 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
19342 fi
19343 done
19344
19345
19346else
66170b30
JF
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19348$as_echo "no" >&6; }
1504c9b8
DWT
19349fi
19350
babf7fe8
JF
19351 ac_ext=cpp
19352ac_cpp='$CXXCPP $CPPFLAGS'
19353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 19356
9c60689e 19357
632b71ea 19358
babf7fe8
JF
19359 ac_ext=cpp
19360ac_cpp='$CXXCPP $CPPFLAGS'
19361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 19364
babf7fe8
JF
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
19366$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 19367
babf7fe8 19368 cy_save=$CXXFLAGS
9c60689e 19369
babf7fe8
JF
19370 for element in -Wno-unneeded-internal-declaration; do
19371 haveit=
19372 for x in $CXXFLAGS; do
9c60689e 19373
babf7fe8
JF
19374 acl_save_prefix="$prefix"
19375 prefix="$acl_final_prefix"
19376 acl_save_exec_prefix="$exec_prefix"
19377 exec_prefix="$acl_final_exec_prefix"
19378 eval x=\"$x\"
19379 exec_prefix="$acl_save_exec_prefix"
19380 prefix="$acl_save_prefix"
66170b30 19381
babf7fe8
JF
19382 if test "X$x" = "X$element"; then
19383 haveit=yes
19384 break
19385 fi
19386 done
19387 if test -z "$haveit"; then
19388 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19389 fi
19390 done
7eda51e0 19391
7eda51e0 19392
babf7fe8
JF
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394/* end confdefs.h. */
7eda51e0 19395
7eda51e0 19396_ACEOF
babf7fe8
JF
19397if ac_fn_cxx_try_compile "$LINENO"; then :
19398 cy_good=1
9c60689e 19399else
babf7fe8 19400 cy_good=0
9c60689e 19401fi
babf7fe8 19402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 19403
babf7fe8
JF
19404 CXXFLAGS=$cy_save
19405 if test "x$cy_good" = x1; then :
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19407$as_echo "yes" >&6; }
7eda51e0 19408
babf7fe8 19409 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 19410 haveit=
babf7fe8 19411 for x in $CXXFLAGS; do
9c60689e 19412
7eda51e0
JF
19413 acl_save_prefix="$prefix"
19414 prefix="$acl_final_prefix"
19415 acl_save_exec_prefix="$exec_prefix"
19416 exec_prefix="$acl_final_exec_prefix"
19417 eval x=\"$x\"
19418 exec_prefix="$acl_save_exec_prefix"
19419 prefix="$acl_save_prefix"
9c60689e 19420
7eda51e0
JF
19421 if test "X$x" = "X$element"; then
19422 haveit=yes
19423 break
19424 fi
19425 done
19426 if test -z "$haveit"; then
babf7fe8 19427 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
19428 fi
19429 done
9c60689e 19430
9c60689e 19431
5053a6d1 19432else
babf7fe8
JF
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19434$as_echo "no" >&6; }
632b71ea
DWT
19435fi
19436
babf7fe8
JF
19437 ac_ext=cpp
19438ac_cpp='$CXXCPP $CPPFLAGS'
19439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
19442
19443
5053a6d1 19444
babf7fe8
JF
19445 ac_ext=mm
19446ac_cpp='$OBJCXXCPP $CPPFLAGS'
19447ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 19450
babf7fe8
JF
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
19452$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 19453
babf7fe8 19454 cy_save=$OBJCXXFLAGS
632b71ea 19455
babf7fe8 19456 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 19457 haveit=
babf7fe8 19458 for x in $OBJCXXFLAGS; do
632b71ea
DWT
19459
19460 acl_save_prefix="$prefix"
19461 prefix="$acl_final_prefix"
19462 acl_save_exec_prefix="$exec_prefix"
19463 exec_prefix="$acl_final_exec_prefix"
5053a6d1 19464 eval x=\"$x\"
632b71ea
DWT
19465 exec_prefix="$acl_save_exec_prefix"
19466 prefix="$acl_save_prefix"
19467
5053a6d1
DWT
19468 if test "X$x" = "X$element"; then
19469 haveit=yes
19470 break
19471 fi
19472 done
19473 if test -z "$haveit"; then
babf7fe8 19474 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
19475 fi
19476 done
19477
66170b30 19478
babf7fe8
JF
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480/* end confdefs.h. */
19481
19482_ACEOF
19483if ac_fn_objcxx_try_compile "$LINENO"; then :
19484 cy_good=1
19485else
19486 cy_good=0
19487fi
19488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489
19490 OBJCXXFLAGS=$cy_save
19491 if test "x$cy_good" = x1; then :
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19493$as_echo "yes" >&6; }
19494
19495 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 19496 haveit=
babf7fe8 19497 for x in $OBJCXXFLAGS; do
7eda51e0
JF
19498
19499 acl_save_prefix="$prefix"
19500 prefix="$acl_final_prefix"
19501 acl_save_exec_prefix="$exec_prefix"
19502 exec_prefix="$acl_final_exec_prefix"
19503 eval x=\"$x\"
19504 exec_prefix="$acl_save_exec_prefix"
19505 prefix="$acl_save_prefix"
19506
19507 if test "X$x" = "X$element"; then
19508 haveit=yes
19509 break
19510 fi
19511 done
19512 if test -z "$haveit"; then
babf7fe8 19513 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
19514 fi
19515 done
66170b30
JF
19516
19517
babf7fe8
JF
19518else
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19520$as_echo "no" >&6; }
5053a6d1 19521fi
7eda51e0 19522
babf7fe8
JF
19523 ac_ext=cpp
19524ac_cpp='$CXXCPP $CPPFLAGS'
19525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 19528
5053a6d1
DWT
19529
19530
5053a6d1 19531
babf7fe8
JF
19532
19533
2ca4dab3 19534
be2fde87
JF
19535ac_ext=c
19536ac_cpp='$CPP $CPPFLAGS'
19537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540
19541ax_pthread_ok=no
19542
19543# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 19544# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
19545# It gets checked for in the link test anyway.
19546
19547# First of all, check if the user has set any of the PTHREAD_LIBS,
19548# etcetera environment variables, and if threads linking works using
19549# them:
19550if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19551 save_CFLAGS="$CFLAGS"
19552 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19553 save_LIBS="$LIBS"
19554 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19556$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558/* end confdefs.h. */
19559
19560/* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563#ifdef __cplusplus
19564extern "C"
19565#endif
19566char pthread_join ();
19567int
19568main ()
19569{
19570return pthread_join ();
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575if ac_fn_c_try_link "$LINENO"; then :
19576 ax_pthread_ok=yes
19577fi
19578rm -f core conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19581$as_echo "$ax_pthread_ok" >&6; }
19582 if test x"$ax_pthread_ok" = xno; then
19583 PTHREAD_LIBS=""
19584 PTHREAD_CFLAGS=""
19585 fi
19586 LIBS="$save_LIBS"
19587 CFLAGS="$save_CFLAGS"
19588fi
19589
19590# We must check for the threads library under a number of different
19591# names; the ordering is very important because some systems
19592# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19593# libraries is broken (non-POSIX).
19594
19595# Create a list of thread flags to try. Items starting with a "-" are
19596# C compiler flags, and other items are library names, except for "none"
19597# which indicates that we try without any flags at all, and "pthread-config"
19598# which is a program returning the flags for the Pth emulation library.
19599
2ca4dab3 19600ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
19601
19602# The ordering *is* (sometimes) important. Some notes on the
19603# individual items follow:
19604
19605# pthreads: AIX (must check this before -lpthread)
19606# none: in case threads are in libc; should be tried before -Kthread and
19607# other compiler flags to prevent continual compiler warnings
19608# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19609# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19610# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 19611# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 19612# -pthreads: Solaris/gcc
be2fde87 19613# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
19614# doesn't hurt to check since this sometimes defines pthreads and
19615# -D_REENTRANT too), HP C (must be checked before -lpthread, which
19616# is present but should not be used directly)
19617# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
19618# pthread: Linux, etcetera
19619# --thread-safe: KAI C++
19620# pthread-config: use pthread-config program (for GNU Pth library)
19621
2ca4dab3
JF
19622case $host_os in
19623
19624 hpux*)
19625
19626 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19627 # multi-threading and also sets -lpthread."
19628
19629 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19630 ;;
19631
19632 openedition*)
19633
19634 # IBM z/OS requires a feature-test macro to be defined in order to
19635 # enable POSIX threads at all, so give the user a hint if this is
19636 # not set. (We don't define these ourselves, as they can affect
19637 # other portions of the system API in unpredictable ways.)
19638
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640/* end confdefs.h. */
19641
19642# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19643 AX_PTHREAD_ZOS_MISSING
19644# endif
19645
19646_ACEOF
19647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19650$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19651fi
19652rm -f conftest*
19653
19654 ;;
19655
be2fde87
JF
19656 solaris*)
19657
2ca4dab3
JF
19658 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19659 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
19660 # (non-functional) versions of the pthreads routines, so link-based
19661 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19662 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19663 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
19664 # who knows whether they'll stub that too in a future libc.) So
19665 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 19666
2ca4dab3 19667 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
19668 ;;
19669esac
19670
2ca4dab3
JF
19671# Older versions of Clang only give a warning instead of an error for an
19672# unrecognized option, unless we specify -Werror. (We throw in some extra
19673# Clang warning flags for good measure.)
be2fde87 19674
2ca4dab3
JF
19675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19676$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19677if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19678 $as_echo_n "(cached) " >&6
19679else
19680 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19681 save_CFLAGS="$CFLAGS"
19682 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19683 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19685/* end confdefs.h. */
19686int foo(void);
19687int
19688main ()
19689{
19690foo()
19691 ;
19692 return 0;
19693}
19694_ACEOF
19695if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 19696 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 19697else
2ca4dab3 19698 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
19699fi
19700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
19701 CFLAGS="$save_CFLAGS"
19702
19703fi
19704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19705$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19706ax_pthread_extra_flags=
19707if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19708 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19709fi
be2fde87
JF
19710
19711if test x"$ax_pthread_ok" = xno; then
19712for flag in $ax_pthread_flags; do
19713
19714 case $flag in
19715 none)
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19717$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19718 ;;
19719
2ca4dab3
JF
19720 -mt,pthread)
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19722$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19723 PTHREAD_CFLAGS="-mt"
19724 PTHREAD_LIBS="-lpthread"
19725 ;;
19726
be2fde87
JF
19727 -*)
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19729$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19730 PTHREAD_CFLAGS="$flag"
19731 ;;
19732
19733 pthread-config)
19734 # Extract the first word of "pthread-config", so it can be a program name with args.
19735set dummy pthread-config; ac_word=$2
19736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19737$as_echo_n "checking for $ac_word... " >&6; }
19738if ${ac_cv_prog_ax_pthread_config+:} false; then :
19739 $as_echo_n "(cached) " >&6
19740else
19741 if test -n "$ax_pthread_config"; then
19742 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19743else
19744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19745for as_dir in $PATH
19746do
19747 IFS=$as_save_IFS
19748 test -z "$as_dir" && as_dir=.
19749 for ac_exec_ext in '' $ac_executable_extensions; do
19750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19751 ac_cv_prog_ax_pthread_config="yes"
19752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19753 break 2
19754 fi
19755done
19756 done
19757IFS=$as_save_IFS
19758
19759 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19760fi
19761fi
19762ax_pthread_config=$ac_cv_prog_ax_pthread_config
19763if test -n "$ax_pthread_config"; then
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19765$as_echo "$ax_pthread_config" >&6; }
19766else
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19768$as_echo "no" >&6; }
19769fi
19770
19771
19772 if test x"$ax_pthread_config" = xno; then continue; fi
19773 PTHREAD_CFLAGS="`pthread-config --cflags`"
19774 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19775 ;;
19776
19777 *)
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19779$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19780 PTHREAD_LIBS="-l$flag"
19781 ;;
19782 esac
19783
19784 save_LIBS="$LIBS"
19785 save_CFLAGS="$CFLAGS"
19786 LIBS="$PTHREAD_LIBS $LIBS"
19787 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19788
19789 # Check for various functions. We must include pthread.h,
19790 # since some functions may be macros. (On the Sequent, we
19791 # need a special flag -Kthread to make this header compile.)
19792 # We check for pthread_join because it is in -lpthread on IRIX
19793 # while pthread_create is in libc. We check for pthread_attr_init
19794 # due to DEC craziness with -lpthreads. We check for
19795 # pthread_cleanup_push because it is one of the few pthread
19796 # functions on Solaris that doesn't have a non-functional libc stub.
19797 # We try pthread_create on general principles.
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799/* end confdefs.h. */
19800#include <pthread.h>
19801 static void routine(void *a) { a = 0; }
19802 static void *start_routine(void *a) { return a; }
19803int
19804main ()
19805{
19806pthread_t th; pthread_attr_t attr;
19807 pthread_create(&th, 0, start_routine, 0);
19808 pthread_join(th, 0);
19809 pthread_attr_init(&attr);
19810 pthread_cleanup_push(routine, 0);
19811 pthread_cleanup_pop(0) /* ; */
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816if ac_fn_c_try_link "$LINENO"; then :
19817 ax_pthread_ok=yes
19818fi
19819rm -f core conftest.err conftest.$ac_objext \
19820 conftest$ac_exeext conftest.$ac_ext
19821
19822 LIBS="$save_LIBS"
19823 CFLAGS="$save_CFLAGS"
19824
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19826$as_echo "$ax_pthread_ok" >&6; }
19827 if test "x$ax_pthread_ok" = xyes; then
19828 break;
19829 fi
19830
19831 PTHREAD_LIBS=""
19832 PTHREAD_CFLAGS=""
19833done
19834fi
19835
19836# Various other checks:
19837if test "x$ax_pthread_ok" = xyes; then
19838 save_LIBS="$LIBS"
19839 LIBS="$PTHREAD_LIBS $LIBS"
19840 save_CFLAGS="$CFLAGS"
19841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19842
19843 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19845$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
19846if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19847 $as_echo_n "(cached) " >&6
19848else
19849 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19850 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19852/* end confdefs.h. */
19853#include <pthread.h>
19854int
19855main ()
19856{
19857int attr = $attr; return attr /* ; */
19858 ;
19859 return 0;
19860}
19861_ACEOF
19862if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 19863 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
19864fi
19865rm -f core conftest.err conftest.$ac_objext \
19866 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
19867 done
19868
19869fi
19870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19871$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19872 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19873 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
19874
19875cat >>confdefs.h <<_ACEOF
2ca4dab3 19876#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
19877_ACEOF
19878
2ca4dab3 19879fi
be2fde87
JF
19880
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19882$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
19883if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19884 $as_echo_n "(cached) " >&6
19885else
19886 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19887 ax_pthread_special_flags_added=no
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889/* end confdefs.h. */
19890
19891# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19892 AX_PTHREAD_NEED_SPECIAL_FLAG
19893# endif
19894
19895_ACEOF
19896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19897 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19898 case $host_os in
19899 aix* | freebsd*)
19900 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19901 ;;
19902 darwin* | hpux* | osf* | solaris*)
19903 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19904 ;;
19905 esac
19906
19907fi
19908rm -f conftest*
19909
19910
19911fi
19912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19913$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19914 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19915 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19916 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19917 ax_pthread_special_flags_added=yes
19918fi
be2fde87
JF
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19921$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19922if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19923 $as_echo_n "(cached) " >&6
19924else
2ca4dab3 19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19926/* end confdefs.h. */
19927#include <pthread.h>
19928int
19929main ()
19930{
19931int i = PTHREAD_PRIO_INHERIT;
19932 ;
19933 return 0;
19934}
19935_ACEOF
19936if ac_fn_c_try_link "$LINENO"; then :
19937 ax_cv_PTHREAD_PRIO_INHERIT=yes
19938else
19939 ax_cv_PTHREAD_PRIO_INHERIT=no
19940fi
19941rm -f core conftest.err conftest.$ac_objext \
19942 conftest$ac_exeext conftest.$ac_ext
19943
19944fi
19945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19946$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19947 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19948
19949$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19950
19951fi
19952
19953 LIBS="$save_LIBS"
19954 CFLAGS="$save_CFLAGS"
19955
19956 # More AIX lossage: compile with *_r variant
19957 if test "x$GCC" != xyes; then
19958 case $host_os in
19959 aix*)
19960 case "x/$CC" in #(
19961 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19962 #handle absolute path differently from PATH based program lookup
19963 case "x$CC" in #(
19964 x/*) :
19965 if as_fn_executable_p ${CC}_r; then :
19966 PTHREAD_CC="${CC}_r"
19967fi ;; #(
19968 *) :
19969 for ac_prog in ${CC}_r
19970do
19971 # Extract the first word of "$ac_prog", so it can be a program name with args.
19972set dummy $ac_prog; ac_word=$2
19973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19974$as_echo_n "checking for $ac_word... " >&6; }
19975if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19976 $as_echo_n "(cached) " >&6
19977else
19978 if test -n "$PTHREAD_CC"; then
19979 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19980else
19981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982for as_dir in $PATH
19983do
19984 IFS=$as_save_IFS
19985 test -z "$as_dir" && as_dir=.
19986 for ac_exec_ext in '' $ac_executable_extensions; do
19987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19988 ac_cv_prog_PTHREAD_CC="$ac_prog"
19989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19990 break 2
19991 fi
19992done
19993 done
19994IFS=$as_save_IFS
19995
19996fi
19997fi
19998PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19999if test -n "$PTHREAD_CC"; then
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20001$as_echo "$PTHREAD_CC" >&6; }
20002else
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004$as_echo "no" >&6; }
20005fi
20006
20007
20008 test -n "$PTHREAD_CC" && break
20009done
20010test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20011 ;;
20012esac ;; #(
20013 *) :
20014 ;;
20015esac
20016 ;;
20017 esac
20018 fi
20019fi
20020
20021test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20022
20023
20024
20025
20026
20027# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20028if test x"$ax_pthread_ok" = xyes; then
20029
20030$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20031
20032 :
20033else
20034 ax_pthread_ok=no
20035
20036fi
20037ac_ext=cpp
20038ac_cpp='$CXXCPP $CPPFLAGS'
20039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
20043
20044
20045
20046
babf7fe8
JF
20047
20048
20049
20050
20051# Check whether --enable-javascript was given.
20052if test "${enable_javascript+set}" = set; then :
20053 enableval=$enable_javascript;
20054 case $enableval in #(
20055 yes) :
20056
20057
20058
20059
20060 cy_save=$LIBS
20061 LIBS=
9918a0fa
JF
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20063$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20064if ${ac_cv_search_JSEvaluateScript+:} false; then :
20065 $as_echo_n "(cached) " >&6
20066else
20067 ac_func_search_save_LIBS=$LIBS
20068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069/* end confdefs.h. */
20070
20071/* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20074#ifdef __cplusplus
20075extern "C"
20076#endif
20077char JSEvaluateScript ();
20078int
20079main ()
20080{
20081return JSEvaluateScript ();
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086for ac_lib in '' JavaScriptCore; do
20087 if test -z "$ac_lib"; then
20088 ac_res="none required"
20089 else
20090 ac_res=-l$ac_lib
20091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20092 fi
20093 if ac_fn_cxx_try_link "$LINENO"; then :
20094 ac_cv_search_JSEvaluateScript=$ac_res
20095fi
20096rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext
20098 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20099 break
20100fi
20101done
20102if ${ac_cv_search_JSEvaluateScript+:} false; then :
20103
20104else
20105 ac_cv_search_JSEvaluateScript=no
20106fi
20107rm conftest.$ac_ext
20108LIBS=$ac_func_search_save_LIBS
20109fi
20110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20111$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20112ac_res=$ac_cv_search_JSEvaluateScript
20113if test "$ac_res" != no; then :
20114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20115
20116 CY_EXECUTE=1
20117
20118
20119else
babf7fe8
JF
20120
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20122$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20123if ${ac_cv_framework_JavaScriptCore+:} false; then :
20124 $as_echo_n "(cached) " >&6
20125else
20126
20127 ac_check_framework_save_LIBS=$LIBS
20128 LIBS="-framework JavaScriptCore $LIBS"
20129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20130/* end confdefs.h. */
20131
20132 #include <JavaScriptCore/JSBase.h>
20133
20134int
20135main ()
20136{
20137
20138 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20139
20140 ;
20141 return 0;
20142}
20143_ACEOF
20144if ac_fn_cxx_try_link "$LINENO"; then :
20145
20146 ac_cv_framework_JavaScriptCore=yes
20147
20148else
20149 ac_cv_framework_JavaScriptCore=no
20150fi
20151rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_framework_save_LIBS
20154
20155fi
20156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20157$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20158 if test $ac_cv_framework_JavaScriptCore = yes; then :
20159
20160
20161 for element in "-framework JavaScriptCore"; do
20162 haveit=
20163 for x in $LIBS; do
20164
20165 acl_save_prefix="$prefix"
20166 prefix="$acl_final_prefix"
20167 acl_save_exec_prefix="$exec_prefix"
20168 exec_prefix="$acl_final_exec_prefix"
20169 eval x=\"$x\"
20170 exec_prefix="$acl_save_exec_prefix"
20171 prefix="$acl_save_prefix"
20172
20173 if test "X$x" = "X$element"; then
20174 haveit=yes
20175 break
20176 fi
20177 done
20178 if test -z "$haveit"; then
20179 LIBS="${LIBS}${LIBS:+ }$element"
20180 fi
20181 done
20182
20183
20184 CY_EXECUTE=1
20185
20186
20187
20188else
20189
ccb4e34c 20190 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
20191
20192pkg_failed=no
20193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 20194$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 20195
7eda51e0
JF
20196if test -n "$WEBKIT_CFLAGS"; then
20197 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20198 elif test -n "$PKG_CONFIG"; then
20199 if test -n "$PKG_CONFIG" && \
20200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20201 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20202 ac_status=$?
20203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20204 test $ac_status = 0; }; then
20205 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20206 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20207else
20208 pkg_failed=yes
20209fi
20210 else
20211 pkg_failed=untried
20212fi
20213if test -n "$WEBKIT_LIBS"; then
20214 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20215 elif test -n "$PKG_CONFIG"; then
20216 if test -n "$PKG_CONFIG" && \
20217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20218 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20219 ac_status=$?
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; then
20222 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20223 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20224else
20225 pkg_failed=yes
20226fi
20227 else
20228 pkg_failed=untried
20229fi
632b71ea 20230
7eda51e0
JF
20231
20232
20233if test $pkg_failed = yes; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20235$as_echo "no" >&6; }
20236
20237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20238 _pkg_short_errors_supported=yes
20239else
20240 _pkg_short_errors_supported=no
20241fi
20242 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20243 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 20244 else
83c6fec8 20245 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
20246 fi
20247 # Put the nasty error message in config.log where it belongs
20248 echo "$WEBKIT_PKG_ERRORS" >&5
20249
20250 :
20251elif test $pkg_failed = untried; then
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253$as_echo "no" >&6; }
20254 :
20255else
20256 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20257 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20259$as_echo "yes" >&6; }
20260
20261 CY_EXECUTE=1
20262
20263
7eda51e0
JF
20264 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20265 haveit=
d70419f1 20266 for x in $CPPFLAGS; do
5053a6d1 20267
7eda51e0
JF
20268 acl_save_prefix="$prefix"
20269 prefix="$acl_final_prefix"
20270 acl_save_exec_prefix="$exec_prefix"
20271 exec_prefix="$acl_final_exec_prefix"
20272 eval x=\"$x\"
20273 exec_prefix="$acl_save_exec_prefix"
20274 prefix="$acl_save_prefix"
5053a6d1 20275
7eda51e0
JF
20276 if test "X$x" = "X$element"; then
20277 haveit=yes
20278 break
20279 fi
20280 done
20281 if test -z "$haveit"; then
d70419f1 20282 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
20283 fi
20284 done
5053a6d1 20285
5053a6d1 20286
7eda51e0 20287 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 20288 haveit=
5053a6d1 20289 for x in $LIBS; do
9c60689e 20290
632b71ea
DWT
20291 acl_save_prefix="$prefix"
20292 prefix="$acl_final_prefix"
20293 acl_save_exec_prefix="$exec_prefix"
20294 exec_prefix="$acl_final_exec_prefix"
20295 eval x=\"$x\"
20296 exec_prefix="$acl_save_exec_prefix"
20297 prefix="$acl_save_prefix"
20298
20299 if test "X$x" = "X$element"; then
20300 haveit=yes
20301 break
20302 fi
20303 done
20304 if test -z "$haveit"; then
5053a6d1 20305 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
20306 fi
20307 done
b128dfee 20308
66170b30 20309
7eda51e0
JF
20310fi; if test "x$CY_EXECUTE" = x1; then break; fi
20311 done
5053a6d1
DWT
20312
20313fi
9918a0fa
JF
20314fi
20315
babf7fe8
JF
20316 LTJAVASCRIPTCORE=$LIBS
20317 LIBS=$cy_save
20318
20319
7eda51e0 20320 ;; #(
babf7fe8 20321 no) :
7eda51e0 20322
babf7fe8
JF
20323 CY_EXECUTE=0
20324 ;; #(
20325 JavaScriptCore) :
c823f118 20326
5053a6d1
DWT
20327
20328
babf7fe8
JF
20329 cy_save=$LIBS
20330 LIBS=
9918a0fa
JF
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20332$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20333if ${ac_cv_search_JSEvaluateScript+:} false; then :
20334 $as_echo_n "(cached) " >&6
20335else
20336 ac_func_search_save_LIBS=$LIBS
20337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338/* end confdefs.h. */
20339
20340/* Override any GCC internal prototype to avoid an error.
20341 Use char because int might match the return type of a GCC
20342 builtin and then its argument prototype would still apply. */
20343#ifdef __cplusplus
20344extern "C"
20345#endif
20346char JSEvaluateScript ();
20347int
20348main ()
20349{
20350return JSEvaluateScript ();
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355for ac_lib in '' JavaScriptCore; do
20356 if test -z "$ac_lib"; then
20357 ac_res="none required"
20358 else
20359 ac_res=-l$ac_lib
20360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20361 fi
20362 if ac_fn_cxx_try_link "$LINENO"; then :
20363 ac_cv_search_JSEvaluateScript=$ac_res
20364fi
20365rm -f core conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext
20367 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20368 break
20369fi
20370done
20371if ${ac_cv_search_JSEvaluateScript+:} false; then :
20372
20373else
20374 ac_cv_search_JSEvaluateScript=no
20375fi
20376rm conftest.$ac_ext
20377LIBS=$ac_func_search_save_LIBS
20378fi
20379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20380$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20381ac_res=$ac_cv_search_JSEvaluateScript
20382if test "$ac_res" != no; then :
20383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20384
20385 CY_EXECUTE=1
20386
20387
20388else
babf7fe8 20389
5053a6d1
DWT
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20391$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 20392if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
20393 $as_echo_n "(cached) " >&6
20394else
20395
5053a6d1
DWT
20396 ac_check_framework_save_LIBS=$LIBS
20397 LIBS="-framework JavaScriptCore $LIBS"
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 20399/* end confdefs.h. */
5053a6d1 20400
7eda51e0 20401 #include <JavaScriptCore/JSBase.h>
5053a6d1 20402
632b71ea
DWT
20403int
20404main ()
20405{
66170b30 20406
7eda51e0 20407 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 20408
632b71ea
DWT
20409 ;
20410 return 0;
20411}
20412_ACEOF
5053a6d1
DWT
20413if ac_fn_cxx_try_link "$LINENO"; then :
20414
20415 ac_cv_framework_JavaScriptCore=yes
20416
20417else
20418 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
20419fi
20420rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
5053a6d1 20422 LIBS=$ac_check_framework_save_LIBS
b128dfee 20423
c823f118 20424fi
5053a6d1
DWT
20425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20426$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20427 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
20428
20429
7eda51e0 20430 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
20431 haveit=
20432 for x in $LIBS; do
20433
20434 acl_save_prefix="$prefix"
20435 prefix="$acl_final_prefix"
20436 acl_save_exec_prefix="$exec_prefix"
20437 exec_prefix="$acl_final_exec_prefix"
20438 eval x=\"$x\"
20439 exec_prefix="$acl_save_exec_prefix"
20440 prefix="$acl_save_prefix"
20441
20442 if test "X$x" = "X$element"; then
20443 haveit=yes
20444 break
20445 fi
20446 done
20447 if test -z "$haveit"; then
20448 LIBS="${LIBS}${LIBS:+ }$element"
20449 fi
20450 done
c823f118 20451
66170b30 20452
7eda51e0
JF
20453 CY_EXECUTE=1
20454
20455
20456
20457else
20458
ccb4e34c 20459 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
7eda51e0
JF
20460
20461pkg_failed=no
20462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20463$as_echo_n "checking for WEBKIT... " >&6; }
20464
20465if test -n "$WEBKIT_CFLAGS"; then
20466 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20467 elif test -n "$PKG_CONFIG"; then
20468 if test -n "$PKG_CONFIG" && \
20469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20470 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20471 ac_status=$?
20472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20473 test $ac_status = 0; }; then
20474 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20475 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20476else
20477 pkg_failed=yes
20478fi
20479 else
20480 pkg_failed=untried
20481fi
20482if test -n "$WEBKIT_LIBS"; then
20483 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20484 elif test -n "$PKG_CONFIG"; then
20485 if test -n "$PKG_CONFIG" && \
20486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20487 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20488 ac_status=$?
20489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20490 test $ac_status = 0; }; then
20491 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20492 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20493else
20494 pkg_failed=yes
20495fi
20496 else
20497 pkg_failed=untried
20498fi
20499
66170b30
JF
20500
20501
7eda51e0
JF
20502if test $pkg_failed = yes; then
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504$as_echo "no" >&6; }
b128dfee 20505
7eda51e0
JF
20506if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20507 _pkg_short_errors_supported=yes
20508else
20509 _pkg_short_errors_supported=no
632b71ea 20510fi
7eda51e0 20511 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20512 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 20513 else
83c6fec8 20514 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
20515 fi
20516 # Put the nasty error message in config.log where it belongs
20517 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 20518
7eda51e0
JF
20519 :
20520elif test $pkg_failed = untried; then
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20522$as_echo "no" >&6; }
20523 :
5053a6d1
DWT
20524else
20525 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20526 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528$as_echo "yes" >&6; }
c823f118 20529
7eda51e0
JF
20530 CY_EXECUTE=1
20531
66170b30 20532
7eda51e0 20533 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 20534 haveit=
d70419f1 20535 for x in $CPPFLAGS; do
c823f118 20536
5053a6d1
DWT
20537 acl_save_prefix="$prefix"
20538 prefix="$acl_final_prefix"
20539 acl_save_exec_prefix="$exec_prefix"
20540 exec_prefix="$acl_final_exec_prefix"
20541 eval x=\"$x\"
20542 exec_prefix="$acl_save_exec_prefix"
20543 prefix="$acl_save_prefix"
c823f118 20544
5053a6d1
DWT
20545 if test "X$x" = "X$element"; then
20546 haveit=yes
20547 break
20548 fi
20549 done
20550 if test -z "$haveit"; then
d70419f1 20551 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
20552 fi
20553 done
c823f118 20554
b66977f1 20555
7eda51e0 20556 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
20557 haveit=
20558 for x in $LIBS; do
20559
20560 acl_save_prefix="$prefix"
20561 prefix="$acl_final_prefix"
20562 acl_save_exec_prefix="$exec_prefix"
20563 exec_prefix="$acl_final_exec_prefix"
20564 eval x=\"$x\"
20565 exec_prefix="$acl_save_exec_prefix"
20566 prefix="$acl_save_prefix"
20567
20568 if test "X$x" = "X$element"; then
20569 haveit=yes
20570 break
20571 fi
20572 done
20573 if test -z "$haveit"; then
20574 LIBS="${LIBS}${LIBS:+ }$element"
20575 fi
20576 done
20577
20578
7eda51e0
JF
20579fi; if test "x$CY_EXECUTE" = x1; then break; fi
20580 done
20581
5053a6d1 20582fi
9918a0fa
JF
20583fi
20584
babf7fe8
JF
20585 LTJAVASCRIPTCORE=$LIBS
20586 LIBS=$cy_save
5053a6d1 20587
b66977f1 20588
babf7fe8
JF
20589 ;; #(
20590 *) :
20591 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20592esac
b66977f1 20593
babf7fe8 20594else
b66977f1 20595
7eda51e0 20596
7eda51e0 20597
babf7fe8
JF
20598 cy_save=$LIBS
20599 LIBS=
9918a0fa
JF
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20601$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20602if ${ac_cv_search_JSEvaluateScript+:} false; then :
20603 $as_echo_n "(cached) " >&6
20604else
20605 ac_func_search_save_LIBS=$LIBS
20606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607/* end confdefs.h. */
20608
20609/* Override any GCC internal prototype to avoid an error.
20610 Use char because int might match the return type of a GCC
20611 builtin and then its argument prototype would still apply. */
20612#ifdef __cplusplus
20613extern "C"
20614#endif
20615char JSEvaluateScript ();
20616int
20617main ()
20618{
20619return JSEvaluateScript ();
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624for ac_lib in '' JavaScriptCore; do
20625 if test -z "$ac_lib"; then
20626 ac_res="none required"
20627 else
20628 ac_res=-l$ac_lib
20629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20630 fi
20631 if ac_fn_cxx_try_link "$LINENO"; then :
20632 ac_cv_search_JSEvaluateScript=$ac_res
20633fi
20634rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext
20636 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20637 break
20638fi
20639done
20640if ${ac_cv_search_JSEvaluateScript+:} false; then :
20641
20642else
20643 ac_cv_search_JSEvaluateScript=no
20644fi
20645rm conftest.$ac_ext
20646LIBS=$ac_func_search_save_LIBS
20647fi
20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20649$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20650ac_res=$ac_cv_search_JSEvaluateScript
20651if test "$ac_res" != no; then :
20652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20653
20654 CY_EXECUTE=1
20655
20656
20657else
7eda51e0 20658
babf7fe8
JF
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20660$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20661if ${ac_cv_framework_JavaScriptCore+:} false; then :
20662 $as_echo_n "(cached) " >&6
20663else
7eda51e0 20664
babf7fe8
JF
20665 ac_check_framework_save_LIBS=$LIBS
20666 LIBS="-framework JavaScriptCore $LIBS"
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668/* end confdefs.h. */
7eda51e0 20669
babf7fe8 20670 #include <JavaScriptCore/JSBase.h>
7eda51e0 20671
babf7fe8
JF
20672int
20673main ()
20674{
7eda51e0 20675
babf7fe8 20676 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 20677
babf7fe8
JF
20678 ;
20679 return 0;
20680}
20681_ACEOF
20682if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 20683
babf7fe8 20684 ac_cv_framework_JavaScriptCore=yes
b66977f1 20685
b66977f1 20686else
babf7fe8
JF
20687 ac_cv_framework_JavaScriptCore=no
20688fi
20689rm -f core conftest.err conftest.$ac_objext \
20690 conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_framework_save_LIBS
7eda51e0 20692
babf7fe8
JF
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20695$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20696 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 20697
7eda51e0 20698
babf7fe8
JF
20699 for element in "-framework JavaScriptCore"; do
20700 haveit=
20701 for x in $LIBS; do
20702
20703 acl_save_prefix="$prefix"
20704 prefix="$acl_final_prefix"
20705 acl_save_exec_prefix="$exec_prefix"
20706 exec_prefix="$acl_final_exec_prefix"
20707 eval x=\"$x\"
20708 exec_prefix="$acl_save_exec_prefix"
20709 prefix="$acl_save_prefix"
20710
20711 if test "X$x" = "X$element"; then
20712 haveit=yes
20713 break
20714 fi
20715 done
20716 if test -z "$haveit"; then
20717 LIBS="${LIBS}${LIBS:+ }$element"
20718 fi
20719 done
20720
20721
20722 CY_EXECUTE=1
20723
20724
20725
20726else
20727
ccb4e34c 20728 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
20729
20730pkg_failed=no
20731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20732$as_echo_n "checking for WEBKIT... " >&6; }
20733
20734if test -n "$WEBKIT_CFLAGS"; then
20735 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20736 elif test -n "$PKG_CONFIG"; then
20737 if test -n "$PKG_CONFIG" && \
20738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20739 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20740 ac_status=$?
20741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20742 test $ac_status = 0; }; then
20743 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20744 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
20745else
20746 pkg_failed=yes
20747fi
20748 else
20749 pkg_failed=untried
20750fi
20751if test -n "$WEBKIT_LIBS"; then
20752 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20753 elif test -n "$PKG_CONFIG"; then
20754 if test -n "$PKG_CONFIG" && \
20755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20756 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20757 ac_status=$?
20758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20759 test $ac_status = 0; }; then
20760 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20761 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
20762else
20763 pkg_failed=yes
20764fi
20765 else
20766 pkg_failed=untried
20767fi
20768
20769
20770
20771if test $pkg_failed = yes; then
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20773$as_echo "no" >&6; }
20774
20775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20776 _pkg_short_errors_supported=yes
20777else
20778 _pkg_short_errors_supported=no
20779fi
20780 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20781 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 20782 else
83c6fec8 20783 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
20784 fi
20785 # Put the nasty error message in config.log where it belongs
20786 echo "$WEBKIT_PKG_ERRORS" >&5
20787
20788 :
20789elif test $pkg_failed = untried; then
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791$as_echo "no" >&6; }
20792 :
20793else
20794 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20795 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20797$as_echo "yes" >&6; }
20798
20799 CY_EXECUTE=1
20800
20801
20802 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20803 haveit=
20804 for x in $CPPFLAGS; do
20805
20806 acl_save_prefix="$prefix"
20807 prefix="$acl_final_prefix"
20808 acl_save_exec_prefix="$exec_prefix"
20809 exec_prefix="$acl_final_exec_prefix"
20810 eval x=\"$x\"
20811 exec_prefix="$acl_save_exec_prefix"
20812 prefix="$acl_save_prefix"
20813
20814 if test "X$x" = "X$element"; then
20815 haveit=yes
20816 break
20817 fi
20818 done
20819 if test -z "$haveit"; then
20820 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20821 fi
20822 done
20823
20824
20825 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20826 haveit=
20827 for x in $LIBS; do
20828
20829 acl_save_prefix="$prefix"
20830 prefix="$acl_final_prefix"
20831 acl_save_exec_prefix="$exec_prefix"
20832 exec_prefix="$acl_final_exec_prefix"
20833 eval x=\"$x\"
20834 exec_prefix="$acl_save_exec_prefix"
20835 prefix="$acl_save_prefix"
20836
20837 if test "X$x" = "X$element"; then
20838 haveit=yes
20839 break
20840 fi
20841 done
20842 if test -z "$haveit"; then
20843 LIBS="${LIBS}${LIBS:+ }$element"
20844 fi
20845 done
20846
20847
20848fi; if test "x$CY_EXECUTE" = x1; then break; fi
20849 done
20850
20851fi
9918a0fa
JF
20852fi
20853
babf7fe8
JF
20854 LTJAVASCRIPTCORE=$LIBS
20855 LIBS=$cy_save
20856
20857
20858
20859fi
20860
20861
a93f15c0
JF
20862# Check whether --enable-console was given.
20863if test "${enable_console+set}" = set; then :
20864 enableval=$enable_console;
20865fi
20866
20867 if test "x$enable_console" != "xno"; then
20868 CY_CONSOLE_TRUE=
20869 CY_CONSOLE_FALSE='#'
20870else
20871 CY_CONSOLE_TRUE='#'
20872 CY_CONSOLE_FALSE=
20873fi
20874
20875
a4287117
JF
20876# Check whether --enable-attach was given.
20877if test "${enable_attach+set}" = set; then :
20878 enableval=$enable_attach;
20879fi
20880
20881 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20882 CY_ATTACH_TRUE=
20883 CY_ATTACH_FALSE='#'
20884else
20885 CY_ATTACH_TRUE='#'
20886 CY_ATTACH_FALSE=
20887fi
20888
20889
7eda51e0
JF
20890
20891
20892 if test "x$CY_EXECUTE" = x1; then
20893 CY_EXECUTE_TRUE=
20894 CY_EXECUTE_FALSE='#'
b66977f1 20895else
7eda51e0
JF
20896 CY_EXECUTE_TRUE='#'
20897 CY_EXECUTE_FALSE=
b66977f1
DWT
20898fi
20899
20900
20901
7eda51e0
JF
20902case $CY_EXECUTE in #(
20903 1) :
20904
ae1b611e
JF
20905
20906 cy_save=$LIBS
20907 LIBS=
20908 for ac_header in uv.h
20909do :
20910 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
20911if test "x$ac_cv_header_uv_h" = xyes; then :
20912 cat >>confdefs.h <<_ACEOF
20913#define HAVE_UV_H 1
20914_ACEOF
20915
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
20917$as_echo_n "checking for library containing uv_loop_init... " >&6; }
20918if ${ac_cv_search_uv_loop_init+:} false; then :
20919 $as_echo_n "(cached) " >&6
20920else
20921 ac_func_search_save_LIBS=$LIBS
20922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923/* end confdefs.h. */
20924
20925/* Override any GCC internal prototype to avoid an error.
20926 Use char because int might match the return type of a GCC
20927 builtin and then its argument prototype would still apply. */
20928#ifdef __cplusplus
20929extern "C"
20930#endif
20931char uv_loop_init ();
20932int
20933main ()
20934{
20935return uv_loop_init ();
20936 ;
20937 return 0;
20938}
20939_ACEOF
20940for ac_lib in '' uv; do
20941 if test -z "$ac_lib"; then
20942 ac_res="none required"
20943 else
20944 ac_res=-l$ac_lib
20945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20946 fi
20947 if ac_fn_cxx_try_link "$LINENO"; then :
20948 ac_cv_search_uv_loop_init=$ac_res
20949fi
20950rm -f core conftest.err conftest.$ac_objext \
20951 conftest$ac_exeext
20952 if ${ac_cv_search_uv_loop_init+:} false; then :
20953 break
20954fi
20955done
20956if ${ac_cv_search_uv_loop_init+:} false; then :
20957
20958else
20959 ac_cv_search_uv_loop_init=no
20960fi
20961rm conftest.$ac_ext
20962LIBS=$ac_func_search_save_LIBS
20963fi
20964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
20965$as_echo "$ac_cv_search_uv_loop_init" >&6; }
20966ac_res=$ac_cv_search_uv_loop_init
20967if test "$ac_res" != no; then :
20968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20969
20970fi
20971
20972
20973fi
20974
20975done
20976
20977 LTLIBUV=$LIBS
20978 LIBS=$cy_save
20979
20980
20981
7eda51e0
JF
20982 for ac_header in ffi.h ffi/ffi.h
20983do :
20984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20985ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20987 cat >>confdefs.h <<_ACEOF
20988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20989_ACEOF
20990 break
b66977f1 20991fi
7eda51e0
JF
20992
20993done
20994
296ee9a6
JF
20995
20996
20997 cy_save=$LIBS
20998 LIBS=
7eda51e0 20999 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 21000
b66977f1 21001
296ee9a6
JF
21002 LIBFFI_CFLAGS
21003 C compiler flags for LIBFFI, overriding pkg-config
21004 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
21005
21006pkg_failed=no
7eda51e0
JF
21007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
21008$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 21009
7eda51e0
JF
21010if test -n "$LIBFFI_CFLAGS"; then
21011 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
21012 elif test -n "$PKG_CONFIG"; then
21013 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
21014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21015 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
21016 ac_status=$?
21017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21018 test $ac_status = 0; }; then
7eda51e0 21019 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 21020 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
21021else
21022 pkg_failed=yes
21023fi
12833ad8
JF
21024 else
21025 pkg_failed=untried
b66977f1 21026fi
7eda51e0
JF
21027if test -n "$LIBFFI_LIBS"; then
21028 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
21029 elif test -n "$PKG_CONFIG"; then
21030 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
21031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21032 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
21033 ac_status=$?
21034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21035 test $ac_status = 0; }; then
7eda51e0 21036 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 21037 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
21038else
21039 pkg_failed=yes
21040fi
12833ad8
JF
21041 else
21042 pkg_failed=untried
b66977f1
DWT
21043fi
21044
21045
21046
21047if test $pkg_failed = yes; then
12833ad8
JF
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21049$as_echo "no" >&6; }
b66977f1
DWT
21050
21051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21052 _pkg_short_errors_supported=yes
21053else
21054 _pkg_short_errors_supported=no
21055fi
21056 if test $_pkg_short_errors_supported = yes; then
83c6fec8 21057 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 21058 else
83c6fec8 21059 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
21060 fi
21061 # Put the nasty error message in config.log where it belongs
7eda51e0 21062 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 21063
7eda51e0
JF
21064 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21065elif test $pkg_failed = untried; then
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21067$as_echo "no" >&6; }
21068 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21069else
21070 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
21071 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21073$as_echo "yes" >&6; }
b66977f1
DWT
21074
21075
7eda51e0 21076 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 21077 haveit=
d70419f1 21078 for x in $CPPFLAGS; 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
21093 if test -z "$haveit"; then
d70419f1 21094 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
21095 fi
21096 done
21097
21098
7eda51e0 21099 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
21100 haveit=
21101 for x in $LIBS; do
21102
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
21117 LIBS="${LIBS}${LIBS:+ }$element"
21118 fi
21119 done
21120
21121
21122fi
21123
7eda51e0
JF
21124else
21125
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
21127$as_echo_n "checking for library containing ffi_call... " >&6; }
21128if ${ac_cv_search_ffi_call+:} false; then :
21129 $as_echo_n "(cached) " >&6
21130else
21131 ac_func_search_save_LIBS=$LIBS
21132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133/* end confdefs.h. */
21134
21135/* Override any GCC internal prototype to avoid an error.
21136 Use char because int might match the return type of a GCC
21137 builtin and then its argument prototype would still apply. */
21138#ifdef __cplusplus
21139extern "C"
21140#endif
21141char ffi_call ();
21142int
21143main ()
21144{
21145return ffi_call ();
21146 ;
21147 return 0;
21148}
21149_ACEOF
21150for ac_lib in '' ffi; do
21151 if test -z "$ac_lib"; then
21152 ac_res="none required"
21153 else
21154 ac_res=-l$ac_lib
21155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21156 fi
21157 if ac_fn_cxx_try_link "$LINENO"; then :
21158 ac_cv_search_ffi_call=$ac_res
21159fi
21160rm -f core conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext
21162 if ${ac_cv_search_ffi_call+:} false; then :
21163 break
21164fi
21165done
21166if ${ac_cv_search_ffi_call+:} false; then :
21167
21168else
21169 ac_cv_search_ffi_call=no
21170fi
21171rm conftest.$ac_ext
21172LIBS=$ac_func_search_save_LIBS
21173fi
21174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
21175$as_echo "$ac_cv_search_ffi_call" >&6; }
21176ac_res=$ac_cv_search_ffi_call
21177if test "$ac_res" != no; then :
21178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21179
21180fi
21181
21182 case $ac_cv_search_ffi_call in #(
21183 no) :
b66977f1
DWT
21184
21185
21186pkg_failed=no
7eda51e0
JF
21187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
21188$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 21189
7eda51e0
JF
21190if test -n "$LIBFFI_CFLAGS"; then
21191 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
21192 elif test -n "$PKG_CONFIG"; then
21193 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
21194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21195 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
21196 ac_status=$?
21197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21198 test $ac_status = 0; }; then
7eda51e0 21199 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 21200 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
21201else
21202 pkg_failed=yes
21203fi
12833ad8
JF
21204 else
21205 pkg_failed=untried
b66977f1 21206fi
7eda51e0
JF
21207if test -n "$LIBFFI_LIBS"; then
21208 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
21209 elif test -n "$PKG_CONFIG"; then
21210 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
21211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21212 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
21213 ac_status=$?
21214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21215 test $ac_status = 0; }; then
7eda51e0 21216 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 21217 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
21218else
21219 pkg_failed=yes
21220fi
12833ad8
JF
21221 else
21222 pkg_failed=untried
b66977f1
DWT
21223fi
21224
21225
21226
21227if test $pkg_failed = yes; then
12833ad8
JF
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21229$as_echo "no" >&6; }
b66977f1
DWT
21230
21231if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21232 _pkg_short_errors_supported=yes
21233else
21234 _pkg_short_errors_supported=no
21235fi
21236 if test $_pkg_short_errors_supported = yes; then
83c6fec8 21237 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 21238 else
83c6fec8 21239 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
21240 fi
21241 # Put the nasty error message in config.log where it belongs
7eda51e0 21242 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 21243
7eda51e0
JF
21244 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21245elif test $pkg_failed = untried; then
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21247$as_echo "no" >&6; }
21248 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 21249else
7eda51e0
JF
21250 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
21251 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21253$as_echo "yes" >&6; }
b66977f1 21254
b66977f1 21255
7eda51e0 21256 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 21257 haveit=
d70419f1 21258 for x in $CPPFLAGS; do
7eda51e0
JF
21259
21260 acl_save_prefix="$prefix"
21261 prefix="$acl_final_prefix"
21262 acl_save_exec_prefix="$exec_prefix"
21263 exec_prefix="$acl_final_exec_prefix"
21264 eval x=\"$x\"
21265 exec_prefix="$acl_save_exec_prefix"
21266 prefix="$acl_save_prefix"
21267
21268 if test "X$x" = "X$element"; then
21269 haveit=yes
21270 break
21271 fi
21272 done
21273 if test -z "$haveit"; then
d70419f1 21274 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
21275 fi
21276 done
21277
21278
7eda51e0
JF
21279 for element in `$PKG_CONFIG --libs libffi`; do
21280 haveit=
21281 for x in $LIBS; do
21282
21283 acl_save_prefix="$prefix"
21284 prefix="$acl_final_prefix"
21285 acl_save_exec_prefix="$exec_prefix"
21286 exec_prefix="$acl_final_exec_prefix"
21287 eval x=\"$x\"
21288 exec_prefix="$acl_save_exec_prefix"
21289 prefix="$acl_save_prefix"
21290
21291 if test "X$x" = "X$element"; then
21292 haveit=yes
21293 break
21294 fi
21295 done
21296 if test -z "$haveit"; then
21297 LIBS="${LIBS}${LIBS:+ }$element"
21298 fi
21299 done
21300
21301
21302fi ;; #(
21303 *) :
21304 ;;
21305esac
21306
21307fi
296ee9a6
JF
21308 LTLIBFFI=$LIBS
21309 LIBS=$cy_save
21310
21311
7eda51e0 21312
def90846
JF
21313
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
21315$as_echo_n "checking for framework JavaVM... " >&6; }
21316if ${ac_cv_framework_JavaVM+:} false; then :
21317 $as_echo_n "(cached) " >&6
21318else
21319
21320 ac_check_framework_save_LIBS=$LIBS
21321 LIBS="-framework JavaVM $LIBS"
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323/* end confdefs.h. */
21324
21325 #include <JavaVM/jni.h>
21326
21327int
21328main ()
21329{
21330JNI_GetCreatedJavaVMs(NULL, 0, NULL);
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335if ac_fn_cxx_try_link "$LINENO"; then :
21336
21337 ac_cv_framework_JavaVM=yes
21338
21339else
21340 ac_cv_framework_JavaVM=no
21341fi
21342rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext conftest.$ac_ext
21344 LIBS=$ac_check_framework_save_LIBS
21345
21346fi
21347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
21348$as_echo "$ac_cv_framework_JavaVM" >&6; }
21349 if test $ac_cv_framework_JavaVM = yes; then :
21350
21351
21352 for element in "-framework JavaVM"; do
21353 haveit=
21354 for x in $LIBS; do
21355
21356 acl_save_prefix="$prefix"
21357 prefix="$acl_final_prefix"
21358 acl_save_exec_prefix="$exec_prefix"
21359 exec_prefix="$acl_final_exec_prefix"
21360 eval x=\"$x\"
21361 exec_prefix="$acl_save_exec_prefix"
21362 prefix="$acl_save_prefix"
21363
21364 if test "X$x" = "X$element"; then
21365 haveit=yes
21366 break
21367 fi
21368 done
21369 if test -z "$haveit"; then
21370 LIBS="${LIBS}${LIBS:+ }$element"
21371 fi
21372 done
21373
21374
21375 CY_JAVA=1
21376
21377
21378
21379else
21380 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
39ed1631
JF
21381if test "x$ac_cv_header_jni_h" = xyes; then :
21382
21383 CY_JAVA=1
21384
21385
21386 cy_save=$LIBS
21387 LIBS=
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
21389$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
21390if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21391 $as_echo_n "(cached) " >&6
21392else
21393 ac_func_search_save_LIBS=$LIBS
21394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395/* end confdefs.h. */
21396
21397/* Override any GCC internal prototype to avoid an error.
21398 Use char because int might match the return type of a GCC
21399 builtin and then its argument prototype would still apply. */
21400#ifdef __cplusplus
21401extern "C"
21402#endif
21403char JNI_GetCreatedJavaVMs ();
21404int
21405main ()
21406{
21407return JNI_GetCreatedJavaVMs ();
21408 ;
21409 return 0;
21410}
21411_ACEOF
21412for ac_lib in '' dvm; do
21413 if test -z "$ac_lib"; then
21414 ac_res="none required"
21415 else
21416 ac_res=-l$ac_lib
21417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21418 fi
21419 if ac_fn_cxx_try_link "$LINENO"; then :
21420 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
21421fi
21422rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext
21424 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21425 break
21426fi
21427done
21428if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21429
21430else
21431 ac_cv_search_JNI_GetCreatedJavaVMs=no
21432fi
21433rm conftest.$ac_ext
21434LIBS=$ac_func_search_save_LIBS
21435fi
21436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
21437$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
21438ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
21439if test "$ac_res" != no; then :
21440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21441
21442
21443fi
21444
21445 LTJAVA=$LIBS
21446 LIBS=$cy_save
21447
21448
21449
21450else
21451
21452 CY_JAVA=0
21453
21454
21455fi
21456
21457
def90846 21458fi
39ed1631 21459
7eda51e0
JF
21460 ac_ext=mm
21461ac_cpp='$OBJCXXCPP $CPPFLAGS'
21462ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21463ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21464ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21465
21466
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
21468$as_echo_n "checking if we really have Objective C++... " >&6; }
21469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470/* end confdefs.h. */
21471
21472_ACEOF
21473if ac_fn_objcxx_try_compile "$LINENO"; then :
21474
21475 CY_OBJECTIVEC=1
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477$as_echo "yes" >&6; }
21478
21479else
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 21481$as_echo "no" >&6; }
7eda51e0
JF
21482fi
21483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 21484
7eda51e0 21485 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 21486
7eda51e0 21487
babf7fe8
JF
21488 cy_save=$LIBS
21489 LIBS=
21490
7eda51e0
JF
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
21492$as_echo_n "checking for framework CoreFoundation... " >&6; }
21493if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
21494 $as_echo_n "(cached) " >&6
21495else
21496
21497 ac_check_framework_save_LIBS=$LIBS
7eda51e0 21498 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
21499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500/* end confdefs.h. */
21501
7eda51e0 21502 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
21503
21504int
21505main ()
21506{
7eda51e0 21507CFAllocatorGetDefault();
b66977f1
DWT
21508 ;
21509 return 0;
21510}
21511_ACEOF
7eda51e0 21512if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 21513
7eda51e0 21514 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
21515
21516else
7eda51e0 21517 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
21518fi
21519rm -f core conftest.err conftest.$ac_objext \
21520 conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_framework_save_LIBS
21522
21523fi
7eda51e0
JF
21524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
21525$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
21526 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
21527
21528
7eda51e0 21529 for element in "-framework CoreFoundation"; do
b66977f1
DWT
21530 haveit=
21531 for x in $LIBS; do
21532
21533 acl_save_prefix="$prefix"
21534 prefix="$acl_final_prefix"
21535 acl_save_exec_prefix="$exec_prefix"
21536 exec_prefix="$acl_final_exec_prefix"
21537 eval x=\"$x\"
21538 exec_prefix="$acl_save_exec_prefix"
21539 prefix="$acl_save_prefix"
21540
21541 if test "X$x" = "X$element"; then
21542 haveit=yes
21543 break
21544 fi
21545 done
21546 if test -z "$haveit"; then
21547 LIBS="${LIBS}${LIBS:+ }$element"
21548 fi
21549 done
21550
66170b30 21551
66170b30
JF
21552
21553
b66977f1 21554
b66977f1 21555
7eda51e0
JF
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
21557$as_echo_n "checking for framework Foundation... " >&6; }
21558if ${ac_cv_framework_Foundation+:} false; then :
21559 $as_echo_n "(cached) " >&6
b66977f1 21560else
b66977f1 21561
7eda51e0
JF
21562 ac_check_framework_save_LIBS=$LIBS
21563 LIBS="-framework Foundation $LIBS"
21564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565/* end confdefs.h. */
66170b30 21566
7eda51e0 21567 #include <Foundation/NSObject.h>
b66977f1 21568
7eda51e0
JF
21569int
21570main ()
21571{
21572[[NSObject alloc] init];
21573 ;
21574 return 0;
21575}
21576_ACEOF
21577if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 21578
7eda51e0 21579 ac_cv_framework_Foundation=yes
b66977f1 21580
7eda51e0
JF
21581else
21582 ac_cv_framework_Foundation=no
21583fi
21584rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_framework_save_LIBS
21587
21588fi
21589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21590$as_echo "$ac_cv_framework_Foundation" >&6; }
21591 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
21592
21593
7eda51e0 21594 for element in "-framework Foundation"; do
b66977f1
DWT
21595 haveit=
21596 for x in $LIBS; do
21597
21598 acl_save_prefix="$prefix"
21599 prefix="$acl_final_prefix"
21600 acl_save_exec_prefix="$exec_prefix"
21601 exec_prefix="$acl_final_exec_prefix"
21602 eval x=\"$x\"
21603 exec_prefix="$acl_save_exec_prefix"
21604 prefix="$acl_save_prefix"
21605
21606 if test "X$x" = "X$element"; then
21607 haveit=yes
21608 break
21609 fi
21610 done
21611 if test -z "$haveit"; then
21612 LIBS="${LIBS}${LIBS:+ }$element"
21613 fi
21614 done
21615
7eda51e0
JF
21616 cat >>confdefs.h <<_ACEOF
21617#define HAVE_FRAMEWORK_FOUNDATION 1
21618_ACEOF
21619
b66977f1 21620
7eda51e0 21621fi
b66977f1
DWT
21622
21623
7eda51e0 21624else
b66977f1 21625
b66977f1 21626
7eda51e0
JF
21627 for ac_prog in gnustep-config
21628do
21629 # Extract the first word of "$ac_prog", so it can be a program name with args.
21630set dummy $ac_prog; ac_word=$2
21631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21632$as_echo_n "checking for $ac_word... " >&6; }
21633if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21634 $as_echo_n "(cached) " >&6
b66977f1 21635else
7eda51e0
JF
21636 if test -n "$GNUSTEP_CONFIG"; then
21637 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 21638else
7eda51e0
JF
21639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21640for as_dir in $PATH
21641do
21642 IFS=$as_save_IFS
21643 test -z "$as_dir" && as_dir=.
21644 for ac_exec_ext in '' $ac_executable_extensions; do
21645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21646 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21648 break 2
21649 fi
21650done
21651 done
21652IFS=$as_save_IFS
b66977f1 21653
b66977f1 21654fi
b66977f1 21655fi
7eda51e0
JF
21656GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21657if test -n "$GNUSTEP_CONFIG"; then
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21659$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 21660else
7eda51e0 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 21662$as_echo "no" >&6; }
b66977f1 21663fi
66170b30 21664
66170b30 21665
7eda51e0
JF
21666 test -n "$GNUSTEP_CONFIG" && break
21667done
b66977f1 21668
b66977f1 21669
7eda51e0 21670 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 21671
b66977f1
DWT
21672
21673
7eda51e0 21674 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 21675 haveit=
7eda51e0 21676 for x in $OBJCXXFLAGS; do
b66977f1
DWT
21677
21678 acl_save_prefix="$prefix"
21679 prefix="$acl_final_prefix"
21680 acl_save_exec_prefix="$exec_prefix"
21681 exec_prefix="$acl_final_exec_prefix"
21682 eval x=\"$x\"
21683 exec_prefix="$acl_save_exec_prefix"
21684 prefix="$acl_save_prefix"
21685
21686 if test "X$x" = "X$element"; then
21687 haveit=yes
21688 break
21689 fi
21690 done
babf7fe8
JF
21691 if test -z "$haveit"; then
21692 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21693 fi
21694 done
a667869d 21695
a667869d 21696
babf7fe8 21697 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 21698 haveit=
babf7fe8 21699 for x in $LIBS; do
a667869d 21700
632b71ea
DWT
21701 acl_save_prefix="$prefix"
21702 prefix="$acl_final_prefix"
21703 acl_save_exec_prefix="$exec_prefix"
21704 exec_prefix="$acl_final_exec_prefix"
21705 eval x=\"$x\"
21706 exec_prefix="$acl_save_exec_prefix"
21707 prefix="$acl_save_prefix"
21708
21709 if test "X$x" = "X$element"; then
21710 haveit=yes
21711 break
21712 fi
21713 done
21714 if test -z "$haveit"; then
babf7fe8 21715 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21716 fi
21717 done
21718
5053a6d1 21719
babf7fe8
JF
21720else
21721 CY_OBJECTIVEC=0
21722
21723fi
21724
21725fi
21726 LTOBJECTIVEC=$LIBS
21727 LIBS=$cy_save
21728
21729
21730
21731fi
21732
21733 ac_ext=cpp
21734ac_cpp='$CXXCPP $CPPFLAGS'
21735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21738
21739 ;; #(
21740 *) :
21741 ;;
21742esac
21743
39ed1631
JF
21744 if test "x$CY_JAVA" = x1; then
21745 CY_JAVA_TRUE=
21746 CY_JAVA_FALSE='#'
21747else
21748 CY_JAVA_TRUE='#'
21749 CY_JAVA_FALSE=
21750fi
21751
babf7fe8
JF
21752 if test "x$CY_OBJECTIVEC" = x1; then
21753 CY_OBJECTIVEC_TRUE=
21754 CY_OBJECTIVEC_FALSE='#'
21755else
21756 CY_OBJECTIVEC_TRUE='#'
21757 CY_OBJECTIVEC_FALSE=
21758fi
21759
21760
21761
21762 cy_save=$LIBS
21763 LIBS=
21764
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21766$as_echo_n "checking for a readline compatible library... " >&6; }
21767if ${ax_cv_lib_readline+:} false; then :
5053a6d1 21768 $as_echo_n "(cached) " >&6
a667869d 21769else
632b71ea 21770
babf7fe8
JF
21771 ORIG_LIBS="$LIBS"
21772 for readline_lib in readline edit editline; do
21773 for termcap_lib in "" termcap curses ncurses; do
21774 if test -z "$termcap_lib"; then
21775 TRY_LIB="-l$readline_lib"
21776 else
21777 TRY_LIB="-l$readline_lib -l$termcap_lib"
21778 fi
21779 LIBS="$ORIG_LIBS $TRY_LIB"
21780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 21781/* end confdefs.h. */
632b71ea 21782
babf7fe8
JF
21783/* Override any GCC internal prototype to avoid an error.
21784 Use char because int might match the return type of a GCC
21785 builtin and then its argument prototype would still apply. */
21786#ifdef __cplusplus
21787extern "C"
21788#endif
21789char readline ();
5053a6d1
DWT
21790int
21791main ()
21792{
babf7fe8 21793return readline ();
5053a6d1
DWT
21794 ;
21795 return 0;
21796}
21797_ACEOF
babf7fe8
JF
21798if ac_fn_cxx_try_link "$LINENO"; then :
21799 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
21800fi
21801rm -f core conftest.err conftest.$ac_objext \
21802 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
21803 if test -n "$ax_cv_lib_readline"; then
21804 break
21805 fi
21806 done
21807 if test -n "$ax_cv_lib_readline"; then
21808 break
21809 fi
21810 done
21811 if test -z "$ax_cv_lib_readline"; then
21812 ax_cv_lib_readline="no"
21813 fi
21814 LIBS="$ORIG_LIBS"
21815
21816fi
21817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21818$as_echo "$ax_cv_lib_readline" >&6; }
21819
21820 if test "$ax_cv_lib_readline" != "no"; then
21821 LIBS="$LIBS $ax_cv_lib_readline"
21822
21823$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21824
21825 for ac_header in readline.h readline/readline.h
21826do :
21827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21828ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21830 cat >>confdefs.h <<_ACEOF
21831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21832_ACEOF
21833
21834fi
21835
21836done
21837
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21839$as_echo_n "checking whether readline supports history... " >&6; }
21840if ${ax_cv_lib_readline_history+:} false; then :
21841 $as_echo_n "(cached) " >&6
21842else
21843
21844 ax_cv_lib_readline_history="no"
7eda51e0
JF
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846/* end confdefs.h. */
5053a6d1 21847
babf7fe8
JF
21848/* Override any GCC internal prototype to avoid an error.
21849 Use char because int might match the return type of a GCC
21850 builtin and then its argument prototype would still apply. */
21851#ifdef __cplusplus
21852extern "C"
21853#endif
21854char add_history ();
058f1bc8
DWT
21855int
21856main ()
21857{
babf7fe8 21858return add_history ();
058f1bc8
DWT
21859 ;
21860 return 0;
21861}
21862_ACEOF
babf7fe8
JF
21863if ac_fn_cxx_try_link "$LINENO"; then :
21864 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
21865fi
21866rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
a667869d 21868
a667869d 21869fi
babf7fe8
JF
21870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21871$as_echo "$ax_cv_lib_readline_history" >&6; }
21872 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 21873
babf7fe8 21874$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 21875
babf7fe8
JF
21876 for ac_header in history.h readline/history.h
21877do :
21878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21879ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21881 cat >>confdefs.h <<_ACEOF
21882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 21883_ACEOF
babf7fe8 21884
7eda51e0 21885fi
058f1bc8 21886
babf7fe8 21887done
058f1bc8 21888
babf7fe8 21889 fi
7eda51e0 21890 fi
058f1bc8 21891
babf7fe8
JF
21892 LTLIBREADLINE=$LIBS
21893 LIBS=$cy_save
058f1bc8 21894
058f1bc8 21895
babf7fe8
JF
21896case $ax_cv_lib_readline in #(
21897 no) :
21898 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21899 *) :
21900 ;;
21901esac
058f1bc8
DWT
21902
21903
babf7fe8
JF
21904 cy_save=$LIBS
21905 LIBS=
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21907$as_echo_n "checking for library containing cur_term... " >&6; }
21908if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
21909 $as_echo_n "(cached) " >&6
21910else
babf7fe8
JF
21911 ac_func_search_save_LIBS=$LIBS
21912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
21913/* end confdefs.h. */
21914
babf7fe8
JF
21915/* Override any GCC internal prototype to avoid an error.
21916 Use char because int might match the return type of a GCC
21917 builtin and then its argument prototype would still apply. */
7eda51e0 21918#ifdef __cplusplus
babf7fe8 21919extern "C"
7eda51e0 21920#endif
babf7fe8 21921char cur_term ();
7eda51e0
JF
21922int
21923main ()
21924{
babf7fe8 21925return cur_term ();
7eda51e0
JF
21926 ;
21927 return 0;
21928}
21929_ACEOF
a93f15c0 21930for ac_lib in '' termcap ncurses; do
babf7fe8
JF
21931 if test -z "$ac_lib"; then
21932 ac_res="none required"
21933 else
21934 ac_res=-l$ac_lib
21935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21936 fi
21937 if ac_fn_cxx_try_link "$LINENO"; then :
21938 ac_cv_search_cur_term=$ac_res
7eda51e0 21939fi
babf7fe8
JF
21940rm -f core conftest.err conftest.$ac_objext \
21941 conftest$ac_exeext
21942 if ${ac_cv_search_cur_term+:} false; then :
21943 break
7eda51e0 21944fi
babf7fe8
JF
21945done
21946if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 21947
babf7fe8
JF
21948else
21949 ac_cv_search_cur_term=no
21950fi
21951rm conftest.$ac_ext
21952LIBS=$ac_func_search_save_LIBS
21953fi
21954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21955$as_echo "$ac_cv_search_cur_term" >&6; }
21956ac_res=$ac_cv_search_cur_term
21957if test "$ac_res" != no; then :
21958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 21959
babf7fe8 21960fi
058f1bc8 21961
babf7fe8
JF
21962 LTLIBTERMCAP=$LIBS
21963 LIBS=$cy_save
058f1bc8 21964
058f1bc8 21965
66170b30
JF
21966
21967
3615a2f7
JF
21968
21969
9777bd50
JF
21970SO=$acl_shlibext
21971
e1cce270 21972
a243b558
JF
21973ac_config_files="$ac_config_files Makefile"
21974
9c60689e
DWT
21975cat >confcache <<\_ACEOF
21976# This file is a shell script that caches the results of configure
21977# tests run on this system so they can be shared between configure
21978# scripts and configure runs, see configure's option --config-cache.
21979# It is not useful on other systems. If it contains results you don't
21980# want to keep, you may remove or edit it.
21981#
21982# config.status only pays attention to the cache file if you give it
21983# the --recheck option to rerun configure.
21984#
21985# `ac_cv_env_foo' variables (set or unset) will be overridden when
21986# loading this file, other *unset* `ac_cv_foo' will be assigned the
21987# following values.
21988
21989_ACEOF
21990
21991# The following way of writing the cache mishandles newlines in values,
21992# but we know of no workaround that is simple, portable, and efficient.
21993# So, we kill variables containing newlines.
21994# Ultrix sh set writes to stderr and can't be redirected directly,
21995# and sets the high bit in the cache file unless we assign to the vars.
21996(
21997 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21998 eval ac_val=\$$ac_var
21999 case $ac_val in #(
22000 *${as_nl}*)
22001 case $ac_var in #(
22002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22003$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22004 esac
22005 case $ac_var in #(
22006 _ | IFS | as_nl) ;; #(
22007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22008 *) { eval $ac_var=; unset $ac_var;} ;;
22009 esac ;;
22010 esac
22011 done
22012
22013 (set) 2>&1 |
22014 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22015 *${as_nl}ac_space=\ *)
22016 # `set' does not quote correctly, so add quotes: double-quote
22017 # substitution turns \\\\ into \\, and sed turns \\ into \.
22018 sed -n \
22019 "s/'/'\\\\''/g;
22020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22021 ;; #(
22022 *)
22023 # `set' quotes correctly as required by POSIX, so do not add quotes.
22024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22025 ;;
22026 esac |
22027 sort
22028) |
22029 sed '
22030 /^ac_cv_env_/b end
22031 t clear
22032 :clear
22033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22034 t end
22035 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22036 :end' >>confcache
22037if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22038 if test -w "$cache_file"; then
ee134472 22039 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22041$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
22042 if test ! -f "$cache_file" || test -h "$cache_file"; then
22043 cat confcache >"$cache_file"
22044 else
22045 case $cache_file in #(
22046 */* | ?:*)
22047 mv -f confcache "$cache_file"$$ &&
22048 mv -f "$cache_file"$$ "$cache_file" ;; #(
22049 *)
22050 mv -f confcache "$cache_file" ;;
22051 esac
22052 fi
22053 fi
9c60689e
DWT
22054 else
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22056$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22057 fi
22058fi
22059rm -f confcache
22060
22061test "x$prefix" = xNONE && prefix=$ac_default_prefix
22062# Let make expand exec_prefix.
22063test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22064
296ee9a6 22065DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
22066
22067ac_libobjs=
22068ac_ltlibobjs=
12833ad8 22069U=
9c60689e
DWT
22070for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22071 # 1. Remove the extension, and $U if already installed.
22072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22075 # will be set to the directory where LIBOBJS objects are built.
22076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22078done
22079LIBOBJS=$ac_libobjs
22080
22081LTLIBOBJS=$ac_ltlibobjs
22082
22083
66170b30
JF
22084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22085$as_echo_n "checking that generated files are newer than configure... " >&6; }
22086 if test -n "$am_sleep_pid"; then
22087 # Hide warnings about reused PIDs.
22088 wait $am_sleep_pid 2>/dev/null
22089 fi
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22091$as_echo "done" >&6; }
22092 if test -n "$EXEEXT"; then
22093 am__EXEEXT_TRUE=
22094 am__EXEEXT_FALSE='#'
22095else
22096 am__EXEEXT_TRUE='#'
22097 am__EXEEXT_FALSE=
22098fi
22099
babf7fe8
JF
22100if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22101 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22102Usually this means the macro was only invoked conditionally." "$LINENO" 5
22103fi
66170b30
JF
22104if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22105 as_fn_error $? "conditional \"AMDEP\" was never defined.
22106Usually this means the macro was only invoked conditionally." "$LINENO" 5
22107fi
a93f15c0
JF
22108if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22109 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22110Usually this means the macro was only invoked conditionally." "$LINENO" 5
22111fi
66170b30
JF
22112if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22113 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22114Usually this means the macro was only invoked conditionally." "$LINENO" 5
22115fi
22116if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22117 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22118Usually this means the macro was only invoked conditionally." "$LINENO" 5
22119fi
a93f15c0
JF
22120if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
22121 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
22122Usually this means the macro was only invoked conditionally." "$LINENO" 5
22123fi
a4287117
JF
22124if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
22125 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
22126Usually this means the macro was only invoked conditionally." "$LINENO" 5
22127fi
a243b558
JF
22128if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22129 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22130Usually this means the macro was only invoked conditionally." "$LINENO" 5
22131fi
39ed1631
JF
22132if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
22133 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
22134Usually this means the macro was only invoked conditionally." "$LINENO" 5
22135fi
a243b558
JF
22136if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22137 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22138Usually this means the macro was only invoked conditionally." "$LINENO" 5
22139fi
9c60689e 22140
ee134472 22141: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
22142ac_write_fail=0
22143ac_clean_files_save=$ac_clean_files
22144ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22145{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22146$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22147as_write_fail=0
22148cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22149#! $SHELL
22150# Generated by $as_me.
22151# Run this file to recreate the current configuration.
22152# Compiler output produced by configure, useful for debugging
22153# configure, is in config.log if it exists.
22154
22155debug=false
22156ac_cs_recheck=false
22157ac_cs_silent=false
22158
22159SHELL=\${CONFIG_SHELL-$SHELL}
22160export SHELL
22161_ASEOF
22162cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22163## -------------------- ##
22164## M4sh Initialization. ##
22165## -------------------- ##
22166
22167# Be more Bourne compatible
22168DUALCASE=1; export DUALCASE # for MKS sh
22169if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22170 emulate sh
22171 NULLCMD=:
22172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22173 # is contrary to our usage. Disable this feature.
22174 alias -g '${1+"$@"}'='"$@"'
22175 setopt NO_GLOB_SUBST
22176else
22177 case `(set -o) 2>/dev/null` in #(
22178 *posix*) :
22179 set -o posix ;; #(
22180 *) :
22181 ;;
22182esac
22183fi
22184
22185
22186as_nl='
22187'
22188export as_nl
22189# Printing a long string crashes Solaris 7 /usr/bin/printf.
22190as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22192as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22193# Prefer a ksh shell builtin over an external printf program on Solaris,
22194# but without wasting forks for bash or zsh.
22195if test -z "$BASH_VERSION$ZSH_VERSION" \
22196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22197 as_echo='print -r --'
22198 as_echo_n='print -rn --'
22199elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22200 as_echo='printf %s\n'
22201 as_echo_n='printf %s'
22202else
22203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22205 as_echo_n='/usr/ucb/echo -n'
22206 else
22207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22208 as_echo_n_body='eval
22209 arg=$1;
22210 case $arg in #(
22211 *"$as_nl"*)
22212 expr "X$arg" : "X\\(.*\\)$as_nl";
22213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22214 esac;
22215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22216 '
22217 export as_echo_n_body
22218 as_echo_n='sh -c $as_echo_n_body as_echo'
22219 fi
22220 export as_echo_body
22221 as_echo='sh -c $as_echo_body as_echo'
22222fi
22223
22224# The user is always right.
22225if test "${PATH_SEPARATOR+set}" != set; then
22226 PATH_SEPARATOR=:
22227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22229 PATH_SEPARATOR=';'
22230 }
22231fi
22232
22233
22234# IFS
22235# We need space, tab and new line, in precisely that order. Quoting is
22236# there to prevent editors from complaining about space-tab.
22237# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22238# splitting by setting IFS to empty value.)
22239IFS=" "" $as_nl"
22240
22241# Find who we are. Look in the path if we contain no directory separator.
ee134472 22242as_myself=
9c60689e
DWT
22243case $0 in #((
22244 *[\\/]* ) as_myself=$0 ;;
22245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22246for as_dir in $PATH
22247do
22248 IFS=$as_save_IFS
22249 test -z "$as_dir" && as_dir=.
22250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22251 done
22252IFS=$as_save_IFS
22253
22254 ;;
22255esac
22256# We did not find ourselves, most probably we were run as `sh COMMAND'
22257# in which case we are not to be found in the path.
22258if test "x$as_myself" = x; then
22259 as_myself=$0
22260fi
22261if test ! -f "$as_myself"; then
22262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22263 exit 1
22264fi
22265
22266# Unset variables that we do not need and which cause bugs (e.g. in
22267# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22268# suppresses any "Segmentation fault" message there. '((' could
22269# trigger a bug in pdksh 5.2.14.
22270for as_var in BASH_ENV ENV MAIL MAILPATH
22271do eval test x\${$as_var+set} = xset \
22272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22273done
22274PS1='$ '
22275PS2='> '
22276PS4='+ '
22277
22278# NLS nuisances.
22279LC_ALL=C
22280export LC_ALL
22281LANGUAGE=C
22282export LANGUAGE
22283
22284# CDPATH.
22285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22286
22287
12833ad8
JF
22288# as_fn_error STATUS ERROR [LINENO LOG_FD]
22289# ----------------------------------------
9c60689e
DWT
22290# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22291# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 22292# script with STATUS, using 1 if that was 0.
9c60689e
DWT
22293as_fn_error ()
22294{
12833ad8
JF
22295 as_status=$1; test $as_status -eq 0 && as_status=1
22296 if test "$4"; then
22297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 22299 fi
12833ad8 22300 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
22301 as_fn_exit $as_status
22302} # as_fn_error
22303
22304
22305# as_fn_set_status STATUS
22306# -----------------------
22307# Set $? to STATUS, without forking.
22308as_fn_set_status ()
22309{
22310 return $1
22311} # as_fn_set_status
22312
22313# as_fn_exit STATUS
22314# -----------------
22315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22316as_fn_exit ()
22317{
22318 set +e
22319 as_fn_set_status $1
22320 exit $1
22321} # as_fn_exit
22322
22323# as_fn_unset VAR
22324# ---------------
22325# Portably unset VAR.
22326as_fn_unset ()
22327{
22328 { eval $1=; unset $1;}
22329}
22330as_unset=as_fn_unset
22331# as_fn_append VAR VALUE
22332# ----------------------
22333# Append the text in VALUE to the end of the definition contained in VAR. Take
22334# advantage of any shell optimizations that allow amortized linear growth over
22335# repeated appends, instead of the typical quadratic growth present in naive
22336# implementations.
22337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22338 eval 'as_fn_append ()
22339 {
22340 eval $1+=\$2
22341 }'
22342else
22343 as_fn_append ()
22344 {
22345 eval $1=\$$1\$2
22346 }
22347fi # as_fn_append
22348
22349# as_fn_arith ARG...
22350# ------------------
22351# Perform arithmetic evaluation on the ARGs, and store the result in the
22352# global $as_val. Take advantage of shells that can avoid forks. The arguments
22353# must be portable across $(()) and expr.
22354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22355 eval 'as_fn_arith ()
22356 {
22357 as_val=$(( $* ))
22358 }'
22359else
22360 as_fn_arith ()
22361 {
22362 as_val=`expr "$@" || test $? -eq 1`
22363 }
22364fi # as_fn_arith
22365
22366
22367if expr a : '\(a\)' >/dev/null 2>&1 &&
22368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22369 as_expr=expr
22370else
22371 as_expr=false
22372fi
22373
22374if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22375 as_basename=basename
22376else
22377 as_basename=false
22378fi
22379
22380if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22381 as_dirname=dirname
22382else
22383 as_dirname=false
22384fi
22385
22386as_me=`$as_basename -- "$0" ||
22387$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22388 X"$0" : 'X\(//\)$' \| \
22389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22390$as_echo X/"$0" |
22391 sed '/^.*\/\([^/][^/]*\)\/*$/{
22392 s//\1/
22393 q
22394 }
22395 /^X\/\(\/\/\)$/{
22396 s//\1/
22397 q
22398 }
22399 /^X\/\(\/\).*/{
22400 s//\1/
22401 q
22402 }
22403 s/.*/./; q'`
22404
22405# Avoid depending upon Character Ranges.
22406as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22407as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22408as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22409as_cr_digits='0123456789'
22410as_cr_alnum=$as_cr_Letters$as_cr_digits
22411
22412ECHO_C= ECHO_N= ECHO_T=
22413case `echo -n x` in #(((((
22414-n*)
22415 case `echo 'xy\c'` in
22416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22417 xy) ECHO_C='\c';;
22418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22419 ECHO_T=' ';;
22420 esac;;
22421*)
22422 ECHO_N='-n';;
22423esac
22424
22425rm -f conf$$ conf$$.exe conf$$.file
22426if test -d conf$$.dir; then
22427 rm -f conf$$.dir/conf$$.file
22428else
22429 rm -f conf$$.dir
22430 mkdir conf$$.dir 2>/dev/null
22431fi
22432if (echo >conf$$.file) 2>/dev/null; then
22433 if ln -s conf$$.file conf$$ 2>/dev/null; then
22434 as_ln_s='ln -s'
22435 # ... but there are two gotchas:
22436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 22438 # In both cases, we have to default to `cp -pR'.
9c60689e 22439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 22440 as_ln_s='cp -pR'
9c60689e
DWT
22441 elif ln conf$$.file conf$$ 2>/dev/null; then
22442 as_ln_s=ln
22443 else
53ba6704 22444 as_ln_s='cp -pR'
9c60689e
DWT
22445 fi
22446else
53ba6704 22447 as_ln_s='cp -pR'
9c60689e
DWT
22448fi
22449rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22450rmdir conf$$.dir 2>/dev/null
22451
22452
22453# as_fn_mkdir_p
22454# -------------
22455# Create "$as_dir" as a directory, including parents if necessary.
22456as_fn_mkdir_p ()
22457{
22458
22459 case $as_dir in #(
22460 -*) as_dir=./$as_dir;;
22461 esac
22462 test -d "$as_dir" || eval $as_mkdir_p || {
22463 as_dirs=
22464 while :; do
22465 case $as_dir in #(
22466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22467 *) as_qdir=$as_dir;;
22468 esac
22469 as_dirs="'$as_qdir' $as_dirs"
22470 as_dir=`$as_dirname -- "$as_dir" ||
22471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22472 X"$as_dir" : 'X\(//\)[^/]' \| \
22473 X"$as_dir" : 'X\(//\)$' \| \
22474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22475$as_echo X"$as_dir" |
22476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22477 s//\1/
22478 q
22479 }
22480 /^X\(\/\/\)[^/].*/{
22481 s//\1/
22482 q
22483 }
22484 /^X\(\/\/\)$/{
22485 s//\1/
22486 q
22487 }
22488 /^X\(\/\).*/{
22489 s//\1/
22490 q
22491 }
22492 s/.*/./; q'`
22493 test -d "$as_dir" && break
22494 done
22495 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 22496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
22497
22498
22499} # as_fn_mkdir_p
22500if mkdir -p . 2>/dev/null; then
22501 as_mkdir_p='mkdir -p "$as_dir"'
22502else
22503 test -d ./-p && rmdir ./-p
22504 as_mkdir_p=false
22505fi
22506
53ba6704
JF
22507
22508# as_fn_executable_p FILE
22509# -----------------------
22510# Test if FILE is an executable regular file.
22511as_fn_executable_p ()
22512{
22513 test -f "$1" && test -x "$1"
22514} # as_fn_executable_p
22515as_test_x='test -x'
22516as_executable_p=as_fn_executable_p
9c60689e
DWT
22517
22518# Sed expression to map a string onto a valid CPP name.
22519as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22520
22521# Sed expression to map a string onto a valid variable name.
22522as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22523
22524
22525exec 6>&1
22526## ----------------------------------- ##
22527## Main body of $CONFIG_STATUS script. ##
22528## ----------------------------------- ##
22529_ASEOF
22530test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22531
22532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22533# Save the log message, to keep $0 and so on meaningful, and to
22534# report actual input values of CONFIG_FILES etc. instead of their
22535# values after options handling.
22536ac_log="
22537This file was extended by Cycript $as_me 0.9, which was
53ba6704 22538generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
22539
22540 CONFIG_FILES = $CONFIG_FILES
22541 CONFIG_HEADERS = $CONFIG_HEADERS
22542 CONFIG_LINKS = $CONFIG_LINKS
22543 CONFIG_COMMANDS = $CONFIG_COMMANDS
22544 $ $0 $@
22545
22546on `(hostname || uname -n) 2>/dev/null | sed 1q`
22547"
22548
22549_ACEOF
22550
22551case $ac_config_files in *"
22552"*) set x $ac_config_files; shift; ac_config_files=$*;;
22553esac
22554
296ee9a6
JF
22555case $ac_config_headers in *"
22556"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22557esac
9c60689e
DWT
22558
22559
22560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22561# Files that config.status was made for.
22562config_files="$ac_config_files"
296ee9a6 22563config_headers="$ac_config_headers"
9c60689e
DWT
22564config_commands="$ac_config_commands"
22565
22566_ACEOF
22567
22568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22569ac_cs_usage="\
22570\`$as_me' instantiates files and other configuration actions
22571from templates according to the current configuration. Unless the files
22572and actions are specified as TAGs, all are instantiated by default.
22573
22574Usage: $0 [OPTION]... [TAG]...
22575
22576 -h, --help print this help, then exit
22577 -V, --version print version number and configuration settings, then exit
22578 --config print configuration, then exit
22579 -q, --quiet, --silent
22580 do not print progress messages
22581 -d, --debug don't remove temporary files
22582 --recheck update $as_me by reconfiguring in the same conditions
22583 --file=FILE[:TEMPLATE]
22584 instantiate the configuration file FILE
296ee9a6
JF
22585 --header=FILE[:TEMPLATE]
22586 instantiate the configuration header FILE
9c60689e
DWT
22587
22588Configuration files:
22589$config_files
22590
296ee9a6
JF
22591Configuration headers:
22592$config_headers
22593
9c60689e
DWT
22594Configuration commands:
22595$config_commands
22596
22597Report bugs to <saurik@saurik.com>.
22598Cycript home page: <http://www.cycript.org/>."
22599
22600_ACEOF
22601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22602ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22603ac_cs_version="\\
22604Cycript config.status 0.9
53ba6704 22605configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
22606 with options \\"\$ac_cs_config\\"
22607
53ba6704 22608Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
22609This config.status script is free software; the Free Software Foundation
22610gives unlimited permission to copy, distribute and modify it."
22611
22612ac_pwd='$ac_pwd'
22613srcdir='$srcdir'
22614INSTALL='$INSTALL'
66170b30
JF
22615MKDIR_P='$MKDIR_P'
22616AWK='$AWK'
9c60689e
DWT
22617test -n "\$AWK" || AWK=awk
22618_ACEOF
22619
22620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22621# The default lists apply if the user does not specify any file.
22622ac_need_defaults=:
22623while test $# != 0
22624do
22625 case $1 in
12833ad8 22626 --*=?*)
9c60689e
DWT
22627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22629 ac_shift=:
22630 ;;
12833ad8
JF
22631 --*=)
22632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22633 ac_optarg=
22634 ac_shift=:
22635 ;;
9c60689e
DWT
22636 *)
22637 ac_option=$1
22638 ac_optarg=$2
22639 ac_shift=shift
22640 ;;
22641 esac
22642
22643 case $ac_option in
22644 # Handling of the options.
22645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22646 ac_cs_recheck=: ;;
22647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22648 $as_echo "$ac_cs_version"; exit ;;
22649 --config | --confi | --conf | --con | --co | --c )
22650 $as_echo "$ac_cs_config"; exit ;;
22651 --debug | --debu | --deb | --de | --d | -d )
22652 debug=: ;;
22653 --file | --fil | --fi | --f )
22654 $ac_shift
22655 case $ac_optarg in
22656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 22657 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
22658 esac
22659 as_fn_append CONFIG_FILES " '$ac_optarg'"
22660 ac_need_defaults=false;;
296ee9a6
JF
22661 --header | --heade | --head | --hea )
22662 $ac_shift
22663 case $ac_optarg in
22664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22665 esac
22666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22667 ac_need_defaults=false;;
22668 --he | --h)
22669 # Conflict between --help and --header
22670 as_fn_error $? "ambiguous option: \`$1'
22671Try \`$0 --help' for more information.";;
22672 --help | --hel | -h )
9c60689e
DWT
22673 $as_echo "$ac_cs_usage"; exit ;;
22674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22676 ac_cs_silent=: ;;
22677
22678 # This is an error.
12833ad8 22679 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
22680Try \`$0 --help' for more information." ;;
22681
22682 *) as_fn_append ac_config_targets " $1"
22683 ac_need_defaults=false ;;
22684
22685 esac
22686 shift
22687done
22688
22689ac_configure_extra_args=
22690
22691if $ac_cs_silent; then
22692 exec 6>/dev/null
22693 ac_configure_extra_args="$ac_configure_extra_args --silent"
22694fi
22695
22696_ACEOF
22697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22698if \$ac_cs_recheck; then
53ba6704 22699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
22700 shift
22701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22702 CONFIG_SHELL='$SHELL'
22703 export CONFIG_SHELL
22704 exec "\$@"
22705fi
22706
22707_ACEOF
22708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22709exec 5>>config.log
22710{
22711 echo
22712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22713## Running $as_me. ##
22714_ASBOX
22715 $as_echo "$ac_log"
22716} >&5
22717
22718_ACEOF
22719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22720#
22721# INIT-COMMANDS
22722#
66170b30 22723AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
22724
22725
22726# The HP-UX ksh and POSIX shell print the target directory to stdout
22727# if CDPATH is set.
22728(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22729
22730sed_quote_subst='$sed_quote_subst'
22731double_quote_subst='$double_quote_subst'
22732delay_variable_subst='$delay_variable_subst'
ee134472
JF
22733macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22734macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22735enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22736enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22737pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22738enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 22739shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22740SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22741ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 22742PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22743host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22744host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22745host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22746build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22747build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22748build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22749SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22750Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22751GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22752EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22753FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22754LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22755NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22756LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22757max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22758ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22759exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22760lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22761lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22762lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22763lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22764lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22765reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22766reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22767OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22768deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22769file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22770file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22771want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22772DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22773sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22774AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22775AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22776archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22777STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22778RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22779old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22780old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22781old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22782lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22783CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22784CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22785compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22786GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22787lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22788lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 22789lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22790lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22791lt_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 22792lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22793nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22794lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 22795lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22796objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22797MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22798lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22799lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22800lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22801lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22802lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22803need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22804MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22805DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22806NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22807LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22808OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22809OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22810libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22811shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22812extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22813archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22814enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22815export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22816whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22817compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22818old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22819old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22820archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22821archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22822module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22823module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22824with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22825allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22826no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22827hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22828hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22829hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22830hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22831hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22832hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22833hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22834inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22835link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22836always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22837export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22838exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22839include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22840prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22841postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22842file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22843variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22844need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22845need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22846version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22847runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22848shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22849shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22850libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22851library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22852soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22853install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22854postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22855postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22856finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22857finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22858hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22859sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
22860configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22861configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22862hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22863enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22864enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22865enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22866old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22867striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22868compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22869predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22870postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22871predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22872postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22873compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22874LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22875reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22876reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22877old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22878compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22879GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22880lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22881lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22882lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22883lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22884lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22885archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22886enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22887export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22888whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22889compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22890old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22891old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22892archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22893archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22894module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22895module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22896with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22897allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22898no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22899hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22900hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22901hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22902hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22903hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22904hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22905hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22906inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22907link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22908always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22909export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22910exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22911include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22912prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22913postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22914file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22915hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22916compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22917predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22918postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22919predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22920postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22921compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
22922
22923LTCC='$LTCC'
22924LTCFLAGS='$LTCFLAGS'
22925compiler='$compiler_DEFAULT'
22926
ee134472
JF
22927# A function that is used when there is no print builtin or printf.
22928func_fallback_echo ()
22929{
22930 eval 'cat <<_LTECHO_EOF
22931\$1
22932_LTECHO_EOF'
22933}
22934
9c60689e 22935# Quote evaled strings.
ee134472
JF
22936for var in SHELL \
22937ECHO \
53ba6704 22938PATH_SEPARATOR \
ee134472 22939SED \
9c60689e
DWT
22940GREP \
22941EGREP \
22942FGREP \
22943LD \
22944NM \
22945LN_S \
22946lt_SP2NL \
22947lt_NL2SP \
22948reload_flag \
22949OBJDUMP \
22950deplibs_check_method \
22951file_magic_cmd \
ee134472
JF
22952file_magic_glob \
22953want_nocaseglob \
22954DLLTOOL \
22955sharedlib_from_linklib_cmd \
9c60689e
DWT
22956AR \
22957AR_FLAGS \
ee134472 22958archiver_list_spec \
9c60689e
DWT
22959STRIP \
22960RANLIB \
22961CC \
22962CFLAGS \
22963compiler \
22964lt_cv_sys_global_symbol_pipe \
22965lt_cv_sys_global_symbol_to_cdecl \
9d54db95 22966lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
22967lt_cv_sys_global_symbol_to_c_name_address \
22968lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 22969lt_cv_nm_interface \
ee134472 22970nm_file_list_spec \
9d54db95 22971lt_cv_truncate_bin \
9c60689e 22972lt_prog_compiler_no_builtin_flag \
9c60689e 22973lt_prog_compiler_pic \
ee134472 22974lt_prog_compiler_wl \
9c60689e
DWT
22975lt_prog_compiler_static \
22976lt_cv_prog_compiler_c_o \
22977need_locks \
ee134472 22978MANIFEST_TOOL \
9c60689e
DWT
22979DSYMUTIL \
22980NMEDIT \
22981LIPO \
22982OTOOL \
22983OTOOL64 \
22984shrext_cmds \
22985export_dynamic_flag_spec \
22986whole_archive_flag_spec \
22987compiler_needs_object \
22988with_gnu_ld \
22989allow_undefined_flag \
22990no_undefined_flag \
22991hardcode_libdir_flag_spec \
9c60689e 22992hardcode_libdir_separator \
9c60689e
DWT
22993exclude_expsyms \
22994include_expsyms \
22995file_list_spec \
22996variables_saved_for_relink \
22997libname_spec \
22998library_names_spec \
22999soname_spec \
ee134472 23000install_override_mode \
9c60689e
DWT
23001finish_eval \
23002old_striplib \
23003striplib \
23004compiler_lib_search_dirs \
23005predep_objects \
23006postdep_objects \
23007predeps \
23008postdeps \
23009compiler_lib_search_path \
23010LD_CXX \
ee134472 23011reload_flag_CXX \
9c60689e
DWT
23012compiler_CXX \
23013lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 23014lt_prog_compiler_pic_CXX \
ee134472 23015lt_prog_compiler_wl_CXX \
9c60689e
DWT
23016lt_prog_compiler_static_CXX \
23017lt_cv_prog_compiler_c_o_CXX \
23018export_dynamic_flag_spec_CXX \
23019whole_archive_flag_spec_CXX \
23020compiler_needs_object_CXX \
23021with_gnu_ld_CXX \
23022allow_undefined_flag_CXX \
23023no_undefined_flag_CXX \
23024hardcode_libdir_flag_spec_CXX \
9c60689e 23025hardcode_libdir_separator_CXX \
9c60689e
DWT
23026exclude_expsyms_CXX \
23027include_expsyms_CXX \
23028file_list_spec_CXX \
23029compiler_lib_search_dirs_CXX \
23030predep_objects_CXX \
23031postdep_objects_CXX \
23032predeps_CXX \
23033postdeps_CXX \
23034compiler_lib_search_path_CXX; do
ee134472 23035 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 23036 *[\\\\\\\`\\"\\\$]*)
9d54db95 23037 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
23038 ;;
23039 *)
23040 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23041 ;;
23042 esac
23043done
23044
23045# Double-quote double-evaled strings.
23046for var in reload_cmds \
23047old_postinstall_cmds \
23048old_postuninstall_cmds \
23049old_archive_cmds \
23050extract_expsyms_cmds \
23051old_archive_from_new_cmds \
23052old_archive_from_expsyms_cmds \
23053archive_cmds \
23054archive_expsym_cmds \
23055module_cmds \
23056module_expsym_cmds \
23057export_symbols_cmds \
23058prelink_cmds \
ee134472 23059postlink_cmds \
9c60689e
DWT
23060postinstall_cmds \
23061postuninstall_cmds \
23062finish_cmds \
23063sys_lib_search_path_spec \
9d54db95
JF
23064configure_time_dlsearch_path \
23065configure_time_lt_sys_library_path \
ee134472 23066reload_cmds_CXX \
9c60689e
DWT
23067old_archive_cmds_CXX \
23068old_archive_from_new_cmds_CXX \
23069old_archive_from_expsyms_cmds_CXX \
23070archive_cmds_CXX \
23071archive_expsym_cmds_CXX \
23072module_cmds_CXX \
23073module_expsym_cmds_CXX \
23074export_symbols_cmds_CXX \
ee134472
JF
23075prelink_cmds_CXX \
23076postlink_cmds_CXX; do
23077 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 23078 *[\\\\\\\`\\"\\\$]*)
9d54db95 23079 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
23080 ;;
23081 *)
23082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23083 ;;
23084 esac
23085done
23086
9c60689e 23087ac_aux_dir='$ac_aux_dir'
9c60689e 23088
9d54db95 23089# See if we are running on zsh, and set the options that allow our
9c60689e 23090# commands through without removal of \ escapes INIT.
9d54db95 23091if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
23092 setopt NO_GLOB_SUBST
23093fi
23094
23095
23096 PACKAGE='$PACKAGE'
23097 VERSION='$VERSION'
9c60689e
DWT
23098 RM='$RM'
23099 ofile='$ofile'
23100
23101
23102
23103
23104
23105
23106_ACEOF
23107
23108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23109
23110# Handling of arguments.
23111for ac_config_target in $ac_config_targets
23112do
23113 case $ac_config_target in
296ee9a6 23114 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 23115 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 23116 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 23117 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 23118
ee134472 23119 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
23120 esac
23121done
23122
23123
23124# If the user did not use the arguments to specify the items to instantiate,
23125# then the envvar interface is used. Set only those that are not.
23126# We use the long form for the default assignment because of an extremely
23127# bizarre bug on SunOS 4.1.3.
23128if $ac_need_defaults; then
23129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 23130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
23131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23132fi
23133
23134# Have a temporary directory for convenience. Make it in the build tree
23135# simply because there is no reason against having it here, and in addition,
23136# creating and moving files from /tmp can sometimes cause problems.
23137# Hook for its removal unless debugging.
23138# Note that there is a small window in which the directory will not be cleaned:
23139# after its creation but before its name has been assigned to `$tmp'.
23140$debug ||
23141{
ee134472 23142 tmp= ac_tmp=
9c60689e 23143 trap 'exit_status=$?
ee134472
JF
23144 : "${ac_tmp:=$tmp}"
23145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
23146' 0
23147 trap 'as_fn_exit 1' 1 2 13 15
23148}
23149# Create a (secure) tmp directory for tmp files.
23150
23151{
23152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 23153 test -d "$tmp"
9c60689e
DWT
23154} ||
23155{
23156 tmp=./conf$$-$RANDOM
23157 (umask 077 && mkdir "$tmp")
12833ad8 23158} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 23159ac_tmp=$tmp
9c60689e
DWT
23160
23161# Set up the scripts for CONFIG_FILES section.
23162# No need to generate them if there are no CONFIG_FILES.
23163# This happens for instance with `./config.status config.h'.
23164if test -n "$CONFIG_FILES"; then
23165
23166
23167ac_cr=`echo X | tr X '\015'`
23168# On cygwin, bash can eat \r inside `` if the user requested igncr.
23169# But we know of no other shell where ac_cr would be empty at this
23170# point, so we can use a bashism as a fallback.
23171if test "x$ac_cr" = x; then
23172 eval ac_cr=\$\'\\r\'
23173fi
23174ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23175if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 23176 ac_cs_awk_cr='\\r'
9c60689e
DWT
23177else
23178 ac_cs_awk_cr=$ac_cr
23179fi
23180
ee134472 23181echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
23182_ACEOF
23183
23184
23185{
23186 echo "cat >conf$$subs.awk <<_ACEOF" &&
23187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23188 echo "_ACEOF"
23189} >conf$$subs.sh ||
12833ad8
JF
23190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23191ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
23192ac_delim='%!_!# '
23193for ac_last_try in false false false false false :; do
23194 . ./conf$$subs.sh ||
12833ad8 23195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23196
23197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23198 if test $ac_delim_n = $ac_delim_num; then
23199 break
23200 elif $ac_last_try; then
12833ad8 23201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23202 else
23203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23204 fi
23205done
23206rm -f conf$$subs.sh
23207
23208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 23209cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
23210_ACEOF
23211sed -n '
23212h
23213s/^/S["/; s/!.*/"]=/
23214p
23215g
23216s/^[^!]*!//
23217:repl
23218t repl
23219s/'"$ac_delim"'$//
23220t delim
23221:nl
23222h
23223s/\(.\{148\}\)..*/\1/
23224t more1
23225s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23226p
23227n
23228b repl
23229:more1
23230s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23231p
23232g
23233s/.\{148\}//
23234t nl
23235:delim
23236h
23237s/\(.\{148\}\)..*/\1/
23238t more2
23239s/["\\]/\\&/g; s/^/"/; s/$/"/
23240p
23241b
23242:more2
23243s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23244p
23245g
23246s/.\{148\}//
23247t delim
23248' <conf$$subs.awk | sed '
23249/^[^""]/{
23250 N
23251 s/\n//
23252}
23253' >>$CONFIG_STATUS || ac_write_fail=1
23254rm -f conf$$subs.awk
23255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23256_ACAWK
ee134472 23257cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
23258 for (key in S) S_is_set[key] = 1
23259 FS = "\a"
23260
23261}
23262{
23263 line = $ 0
23264 nfields = split(line, field, "@")
23265 substed = 0
23266 len = length(field[1])
23267 for (i = 2; i < nfields; i++) {
23268 key = field[i]
23269 keylen = length(key)
23270 if (S_is_set[key]) {
23271 value = S[key]
23272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23273 len += length(value) + length(field[++i])
23274 substed = 1
23275 } else
23276 len += 1 + keylen
23277 }
23278
23279 print line
23280}
23281
23282_ACAWK
23283_ACEOF
23284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23285if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23287else
23288 cat
ee134472 23289fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 23290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
23291_ACEOF
23292
12833ad8
JF
23293# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23294# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
23295# trailing colons and then remove the whole line if VPATH becomes empty
23296# (actually we leave an empty line to preserve line numbers).
23297if test "x$srcdir" = x.; then
12833ad8
JF
23298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23299h
23300s///
23301s/^/:/
23302s/[ ]*$/:/
23303s/:\$(srcdir):/:/g
23304s/:\${srcdir}:/:/g
23305s/:@srcdir@:/:/g
23306s/^:*//
9c60689e 23307s/:*$//
12833ad8
JF
23308x
23309s/\(=[ ]*\).*/\1/
23310G
23311s/\n//
9c60689e
DWT
23312s/^[^=]*=[ ]*$//
23313}'
23314fi
23315
23316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23317fi # test -n "$CONFIG_FILES"
23318
296ee9a6
JF
23319# Set up the scripts for CONFIG_HEADERS section.
23320# No need to generate them if there are no CONFIG_HEADERS.
23321# This happens for instance with `./config.status Makefile'.
23322if test -n "$CONFIG_HEADERS"; then
23323cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23324BEGIN {
23325_ACEOF
23326
23327# Transform confdefs.h into an awk script `defines.awk', embedded as
23328# here-document in config.status, that substitutes the proper values into
23329# config.h.in to produce config.h.
23330
23331# Create a delimiter string that does not exist in confdefs.h, to ease
23332# handling of long lines.
23333ac_delim='%!_!# '
23334for ac_last_try in false false :; do
23335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23336 if test -z "$ac_tt"; then
23337 break
23338 elif $ac_last_try; then
23339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23340 else
23341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23342 fi
23343done
23344
23345# For the awk script, D is an array of macro values keyed by name,
23346# likewise P contains macro parameters if any. Preserve backslash
23347# newline sequences.
23348
23349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23350sed -n '
23351s/.\{148\}/&'"$ac_delim"'/g
23352t rset
23353:rset
23354s/^[ ]*#[ ]*define[ ][ ]*/ /
23355t def
23356d
23357:def
23358s/\\$//
23359t bsnl
23360s/["\\]/\\&/g
23361s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23362D["\1"]=" \3"/p
23363s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23364d
23365:bsnl
23366s/["\\]/\\&/g
23367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23368D["\1"]=" \3\\\\\\n"\\/p
23369t cont
23370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23371t cont
23372d
23373:cont
23374n
23375s/.\{148\}/&'"$ac_delim"'/g
23376t clear
23377:clear
23378s/\\$//
23379t bsnlc
23380s/["\\]/\\&/g; s/^/"/; s/$/"/p
23381d
23382:bsnlc
23383s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23384b cont
23385' <confdefs.h | sed '
23386s/'"$ac_delim"'/"\\\
23387"/g' >>$CONFIG_STATUS || ac_write_fail=1
23388
23389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23390 for (key in D) D_is_set[key] = 1
23391 FS = "\a"
23392}
23393/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23394 line = \$ 0
23395 split(line, arg, " ")
23396 if (arg[1] == "#") {
23397 defundef = arg[2]
23398 mac1 = arg[3]
23399 } else {
23400 defundef = substr(arg[1], 2)
23401 mac1 = arg[2]
23402 }
23403 split(mac1, mac2, "(") #)
23404 macro = mac2[1]
23405 prefix = substr(line, 1, index(line, defundef) - 1)
23406 if (D_is_set[macro]) {
23407 # Preserve the white space surrounding the "#".
23408 print prefix "define", macro P[macro] D[macro]
23409 next
23410 } else {
23411 # Replace #undef with comments. This is necessary, for example,
23412 # in the case of _POSIX_SOURCE, which is predefined and required
23413 # on some systems where configure will not decide to define it.
23414 if (defundef == "undef") {
23415 print "/*", prefix defundef, macro, "*/"
23416 next
23417 }
23418 }
23419}
23420{ print }
23421_ACAWK
23422_ACEOF
23423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23425fi # test -n "$CONFIG_HEADERS"
23426
9c60689e 23427
296ee9a6 23428eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
23429shift
23430for ac_tag
23431do
23432 case $ac_tag in
23433 :[FHLC]) ac_mode=$ac_tag; continue;;
23434 esac
23435 case $ac_mode$ac_tag in
23436 :[FHL]*:*);;
ee134472 23437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
23438 :[FH]-) ac_tag=-:-;;
23439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23440 esac
23441 ac_save_IFS=$IFS
23442 IFS=:
23443 set x $ac_tag
23444 IFS=$ac_save_IFS
23445 shift
23446 ac_file=$1
23447 shift
23448
23449 case $ac_mode in
23450 :L) ac_source=$1;;
23451 :[FH])
23452 ac_file_inputs=
23453 for ac_f
23454 do
23455 case $ac_f in
ee134472 23456 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
23457 *) # Look for the file first in the build tree, then in the source tree
23458 # (if the path is not absolute). The absolute path cannot be DOS-style,
23459 # because $ac_f cannot contain `:'.
23460 test -f "$ac_f" ||
23461 case $ac_f in
23462 [\\/$]*) false;;
23463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23464 esac ||
ee134472 23465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
23466 esac
23467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23468 as_fn_append ac_file_inputs " '$ac_f'"
23469 done
23470
23471 # Let's still pretend it is `configure' which instantiates (i.e., don't
23472 # use $as_me), people would be surprised to read:
23473 # /* config.h. Generated by config.status. */
23474 configure_input='Generated from '`
23475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23476 `' by configure.'
23477 if test x"$ac_file" != x-; then
23478 configure_input="$ac_file. $configure_input"
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23480$as_echo "$as_me: creating $ac_file" >&6;}
23481 fi
23482 # Neutralize special characters interpreted by sed in replacement strings.
23483 case $configure_input in #(
23484 *\&* | *\|* | *\\* )
23485 ac_sed_conf_input=`$as_echo "$configure_input" |
23486 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23487 *) ac_sed_conf_input=$configure_input;;
23488 esac
23489
23490 case $ac_tag in
ee134472
JF
23491 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
23493 esac
23494 ;;
23495 esac
23496
23497 ac_dir=`$as_dirname -- "$ac_file" ||
23498$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23499 X"$ac_file" : 'X\(//\)[^/]' \| \
23500 X"$ac_file" : 'X\(//\)$' \| \
23501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23502$as_echo X"$ac_file" |
23503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23504 s//\1/
23505 q
23506 }
23507 /^X\(\/\/\)[^/].*/{
23508 s//\1/
23509 q
23510 }
23511 /^X\(\/\/\)$/{
23512 s//\1/
23513 q
23514 }
23515 /^X\(\/\).*/{
23516 s//\1/
23517 q
23518 }
23519 s/.*/./; q'`
23520 as_dir="$ac_dir"; as_fn_mkdir_p
23521 ac_builddir=.
23522
23523case "$ac_dir" in
23524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23525*)
23526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23527 # A ".." for each directory in $ac_dir_suffix.
23528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23529 case $ac_top_builddir_sub in
23530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23532 esac ;;
23533esac
23534ac_abs_top_builddir=$ac_pwd
23535ac_abs_builddir=$ac_pwd$ac_dir_suffix
23536# for backward compatibility:
23537ac_top_builddir=$ac_top_build_prefix
35fa52c0 23538
9c60689e
DWT
23539case $srcdir in
23540 .) # We are building in place.
23541 ac_srcdir=.
23542 ac_top_srcdir=$ac_top_builddir_sub
23543 ac_abs_top_srcdir=$ac_pwd ;;
23544 [\\/]* | ?:[\\/]* ) # Absolute name.
23545 ac_srcdir=$srcdir$ac_dir_suffix;
23546 ac_top_srcdir=$srcdir
23547 ac_abs_top_srcdir=$srcdir ;;
23548 *) # Relative name.
23549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23550 ac_top_srcdir=$ac_top_build_prefix$srcdir
23551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23552esac
23553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
23554
23555
9c60689e
DWT
23556 case $ac_mode in
23557 :F)
23558 #
23559 # CONFIG_FILE
23560 #
35fa52c0 23561
9c60689e
DWT
23562 case $INSTALL in
23563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23565 esac
66170b30
JF
23566 ac_MKDIR_P=$MKDIR_P
23567 case $MKDIR_P in
23568 [\\/$]* | ?:[\\/]* ) ;;
23569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23570 esac
9c60689e 23571_ACEOF
35fa52c0 23572
9c60689e
DWT
23573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23574# If the template does not know about datarootdir, expand it.
23575# FIXME: This hack should be removed a few years after 2.60.
23576ac_datarootdir_hack=; ac_datarootdir_seen=
23577ac_sed_dataroot='
23578/datarootdir/ {
23579 p
23580 q
23581}
23582/@datadir@/p
23583/@docdir@/p
23584/@infodir@/p
23585/@localedir@/p
23586/@mandir@/p'
23587case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23588*datarootdir*) ac_datarootdir_seen=yes;;
23589*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23591$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23592_ACEOF
23593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23594 ac_datarootdir_hack='
23595 s&@datadir@&$datadir&g
23596 s&@docdir@&$docdir&g
23597 s&@infodir@&$infodir&g
23598 s&@localedir@&$localedir&g
23599 s&@mandir@&$mandir&g
23600 s&\\\${datarootdir}&$datarootdir&g' ;;
23601esac
23602_ACEOF
35fa52c0 23603
9c60689e
DWT
23604# Neutralize VPATH when `$srcdir' = `.'.
23605# Shell code in configure.ac might set extrasub.
23606# FIXME: do we really want to maintain this feature?
23607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23608ac_sed_extra="$ac_vpsub
23609$extrasub
23610_ACEOF
23611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23612:t
23613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23614s|@configure_input@|$ac_sed_conf_input|;t t
23615s&@top_builddir@&$ac_top_builddir_sub&;t t
23616s&@top_build_prefix@&$ac_top_build_prefix&;t t
23617s&@srcdir@&$ac_srcdir&;t t
23618s&@abs_srcdir@&$ac_abs_srcdir&;t t
23619s&@top_srcdir@&$ac_top_srcdir&;t t
23620s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23621s&@builddir@&$ac_builddir&;t t
23622s&@abs_builddir@&$ac_abs_builddir&;t t
23623s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23624s&@INSTALL@&$ac_INSTALL&;t t
66170b30 23625s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
23626$ac_datarootdir_hack
23627"
ee134472
JF
23628eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
23630
23631test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
23632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23634 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 23635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23636which seems to be undefined. Please make sure it is defined" >&5
9c60689e 23637$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23638which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 23639
ee134472 23640 rm -f "$ac_tmp/stdin"
9c60689e 23641 case $ac_file in
ee134472
JF
23642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 23644 esac \
12833ad8 23645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 23646 ;;
296ee9a6
JF
23647 :H)
23648 #
23649 # CONFIG_HEADER
23650 #
23651 if test x"$ac_file" != x-; then
23652 {
23653 $as_echo "/* $configure_input */" \
23654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23655 } >"$ac_tmp/config.h" \
23656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23659$as_echo "$as_me: $ac_file is unchanged" >&6;}
23660 else
23661 rm -f "$ac_file"
23662 mv "$ac_tmp/config.h" "$ac_file" \
23663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23664 fi
23665 else
23666 $as_echo "/* $configure_input */" \
23667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23668 || as_fn_error $? "could not create -" "$LINENO" 5
23669 fi
23670# Compute "$ac_file"'s index in $config_headers.
23671_am_arg="$ac_file"
23672_am_stamp_count=1
23673for _am_header in $config_headers :; do
23674 case $_am_header in
23675 $_am_arg | $_am_arg:* )
23676 break ;;
23677 * )
23678 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23679 esac
23680done
23681echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23682$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23683 X"$_am_arg" : 'X\(//\)[^/]' \| \
23684 X"$_am_arg" : 'X\(//\)$' \| \
23685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23686$as_echo X"$_am_arg" |
23687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23688 s//\1/
23689 q
23690 }
23691 /^X\(\/\/\)[^/].*/{
23692 s//\1/
23693 q
23694 }
23695 /^X\(\/\/\)$/{
23696 s//\1/
23697 q
23698 }
23699 /^X\(\/\).*/{
23700 s//\1/
23701 q
23702 }
23703 s/.*/./; q'`/stamp-h$_am_stamp_count
23704 ;;
35fa52c0 23705
9c60689e
DWT
23706 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23707$as_echo "$as_me: executing $ac_file commands" >&6;}
23708 ;;
23709 esac
35fa52c0 23710
35fa52c0 23711
9c60689e 23712 case $ac_file$ac_mode in
66170b30
JF
23713 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23714 # Older Autoconf quotes --file arguments for eval, but not when files
23715 # are listed without --file. Let's play safe and only enable the eval
23716 # if we detect the quoting.
23717 case $CONFIG_FILES in
23718 *\'*) eval set x "$CONFIG_FILES" ;;
23719 *) set x $CONFIG_FILES ;;
23720 esac
23721 shift
23722 for mf
23723 do
23724 # Strip MF so we end up with the name of the file.
23725 mf=`echo "$mf" | sed -e 's/:.*$//'`
23726 # Check whether this is an Automake generated Makefile or not.
23727 # We used to match only the files named 'Makefile.in', but
23728 # some people rename them; so instead we look at the file content.
23729 # Grep'ing the first line is not enough: some people post-process
23730 # each Makefile.in and add a new line on top of each file to say so.
23731 # Grep'ing the whole file is not good either: AIX grep has a line
23732 # limit of 2048, but all sed's we know have understand at least 4000.
23733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23734 dirpart=`$as_dirname -- "$mf" ||
23735$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736 X"$mf" : 'X\(//\)[^/]' \| \
23737 X"$mf" : 'X\(//\)$' \| \
23738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23739$as_echo X"$mf" |
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741 s//\1/
23742 q
23743 }
23744 /^X\(\/\/\)[^/].*/{
23745 s//\1/
23746 q
23747 }
23748 /^X\(\/\/\)$/{
23749 s//\1/
23750 q
23751 }
23752 /^X\(\/\).*/{
23753 s//\1/
23754 q
23755 }
23756 s/.*/./; q'`
23757 else
23758 continue
23759 fi
23760 # Extract the definition of DEPDIR, am__include, and am__quote
23761 # from the Makefile without running 'make'.
23762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23763 test -z "$DEPDIR" && continue
23764 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 23765 test -z "$am__include" && continue
66170b30
JF
23766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23767 # Find all dependency output files, they are included files with
23768 # $(DEPDIR) in their names. We invoke sed twice because it is the
23769 # simplest approach to changing $(DEPDIR) to its actual value in the
23770 # expansion.
23771 for file in `sed -n "
23772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23774 # Make sure the directory exists.
23775 test -f "$dirpart/$file" && continue
23776 fdir=`$as_dirname -- "$file" ||
23777$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23778 X"$file" : 'X\(//\)[^/]' \| \
23779 X"$file" : 'X\(//\)$' \| \
23780 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23781$as_echo X"$file" |
23782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23783 s//\1/
23784 q
23785 }
23786 /^X\(\/\/\)[^/].*/{
23787 s//\1/
23788 q
23789 }
23790 /^X\(\/\/\)$/{
23791 s//\1/
23792 q
23793 }
23794 /^X\(\/\).*/{
23795 s//\1/
23796 q
23797 }
23798 s/.*/./; q'`
23799 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23800 # echo "creating $dirpart/$file"
23801 echo '# dummy' > "$dirpart/$file"
23802 done
23803 done
23804}
23805 ;;
9c60689e
DWT
23806 "libtool":C)
23807
9d54db95 23808 # See if we are running on zsh, and set the options that allow our
9c60689e 23809 # commands through without removal of \ escapes.
9d54db95 23810 if test -n "${ZSH_VERSION+set}"; then
9c60689e 23811 setopt NO_GLOB_SUBST
35fa52c0 23812 fi
35fa52c0 23813
9d54db95 23814 cfgfile=${ofile}T
9c60689e
DWT
23815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23816 $RM "$cfgfile"
35fa52c0 23817
9c60689e
DWT
23818 cat <<_LT_EOF >> "$cfgfile"
23819#! $SHELL
9d54db95 23820# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
23821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23822# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
23823
23824# Provide generalized library-building support services.
23825# Written by Gordon Matzigkeit, 1996
23826
23827# Copyright (C) 2014 Free Software Foundation, Inc.
23828# This is free software; see the source for copying conditions. There is NO
23829# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23830
23831# GNU Libtool is free software; you can redistribute it and/or modify
23832# it under the terms of the GNU General Public License as published by
23833# the Free Software Foundation; either version 2 of of the License, or
23834# (at your option) any later version.
9c60689e 23835#
9d54db95
JF
23836# As a special exception to the GNU General Public License, if you
23837# distribute this file as part of a program or library that is built
23838# using GNU Libtool, you may include this file under the same
23839# distribution terms that you use for the rest of that program.
9c60689e 23840#
9d54db95
JF
23841# GNU Libtool is distributed in the hope that it will be useful, but
23842# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
23843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23844# GNU General Public License for more details.
23845#
23846# You should have received a copy of the GNU General Public License
9d54db95 23847# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 23848
35fa52c0 23849
9c60689e 23850# The names of the tagged configurations supported by this script.
9d54db95
JF
23851available_tags='CXX '
23852
23853# Configured defaults for sys_lib_dlsearch_path munging.
23854: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 23855
9c60689e 23856# ### BEGIN LIBTOOL CONFIG
35fa52c0 23857
9c60689e
DWT
23858# Which release of libtool.m4 was used?
23859macro_version=$macro_version
23860macro_revision=$macro_revision
35fa52c0 23861
9c60689e
DWT
23862# Whether or not to build static libraries.
23863build_old_libs=$enable_static
35fa52c0 23864
549f29b5
DWT
23865# Whether or not to build shared libraries.
23866build_libtool_libs=$enable_shared
23867
9c60689e
DWT
23868# What type of objects to build.
23869pic_mode=$pic_mode
35fa52c0 23870
9c60689e
DWT
23871# Whether or not to optimize for fast installation.
23872fast_install=$enable_fast_install
35fa52c0 23873
9d54db95
JF
23874# Shared archive member basename,for filename based shared library versioning on AIX.
23875shared_archive_member_spec=$shared_archive_member_spec
23876
ee134472
JF
23877# Shell to use when invoking shell scripts.
23878SHELL=$lt_SHELL
23879
23880# An echo program that protects backslashes.
23881ECHO=$lt_ECHO
23882
53ba6704
JF
23883# The PATH separator for the build system.
23884PATH_SEPARATOR=$lt_PATH_SEPARATOR
23885
9c60689e
DWT
23886# The host system.
23887host_alias=$host_alias
23888host=$host
23889host_os=$host_os
35fa52c0 23890
9c60689e
DWT
23891# The build system.
23892build_alias=$build_alias
23893build=$build
23894build_os=$build_os
23895
23896# A sed program that does not truncate output.
23897SED=$lt_SED
23898
23899# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23900Xsed="\$SED -e 1s/^X//"
23901
23902# A grep program that handles long lines.
23903GREP=$lt_GREP
23904
23905# An ERE matcher.
23906EGREP=$lt_EGREP
23907
23908# A literal string matcher.
23909FGREP=$lt_FGREP
23910
23911# A BSD- or MS-compatible name lister.
23912NM=$lt_NM
23913
23914# Whether we need soft or hard links.
23915LN_S=$lt_LN_S
23916
23917# What is the maximum length of a command?
23918max_cmd_len=$max_cmd_len
23919
23920# Object file suffix (normally "o").
23921objext=$ac_objext
23922
23923# Executable file suffix (normally "").
23924exeext=$exeext
23925
23926# whether the shell understands "unset".
23927lt_unset=$lt_unset
23928
23929# turn spaces into newlines.
23930SP2NL=$lt_lt_SP2NL
23931
23932# turn newlines into spaces.
23933NL2SP=$lt_lt_NL2SP
23934
ee134472
JF
23935# convert \$build file names to \$host format.
23936to_host_file_cmd=$lt_cv_to_host_file_cmd
23937
23938# convert \$build files to toolchain format.
23939to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
23940
23941# An object symbol dumper.
23942OBJDUMP=$lt_OBJDUMP
23943
23944# Method to check whether dependent libraries are shared objects.
23945deplibs_check_method=$lt_deplibs_check_method
23946
ee134472 23947# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
23948file_magic_cmd=$lt_file_magic_cmd
23949
ee134472
JF
23950# How to find potential files when deplibs_check_method = "file_magic".
23951file_magic_glob=$lt_file_magic_glob
23952
23953# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23954want_nocaseglob=$lt_want_nocaseglob
23955
23956# DLL creation program.
23957DLLTOOL=$lt_DLLTOOL
23958
23959# Command to associate shared and link libraries.
23960sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23961
9c60689e
DWT
23962# The archiver.
23963AR=$lt_AR
ee134472
JF
23964
23965# Flags to create an archive.
9c60689e
DWT
23966AR_FLAGS=$lt_AR_FLAGS
23967
ee134472
JF
23968# How to feed a file listing to the archiver.
23969archiver_list_spec=$lt_archiver_list_spec
23970
9c60689e
DWT
23971# A symbol stripping program.
23972STRIP=$lt_STRIP
23973
23974# Commands used to install an old-style archive.
23975RANLIB=$lt_RANLIB
23976old_postinstall_cmds=$lt_old_postinstall_cmds
23977old_postuninstall_cmds=$lt_old_postuninstall_cmds
23978
ee134472
JF
23979# Whether to use a lock for old archive extraction.
23980lock_old_archive_extraction=$lock_old_archive_extraction
23981
9c60689e
DWT
23982# A C compiler.
23983LTCC=$lt_CC
23984
23985# LTCC compiler flags.
23986LTCFLAGS=$lt_CFLAGS
23987
23988# Take the output of nm and produce a listing of raw symbols and C names.
23989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23990
23991# Transform the output of nm in a proper C declaration.
23992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23993
9d54db95
JF
23994# Transform the output of nm into a list of symbols to manually relocate.
23995global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23996
9c60689e
DWT
23997# Transform the output of nm in a C name address pair.
23998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23999
24000# Transform the output of nm in a C name address pair when lib prefix is needed.
24001global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24002
9d54db95
JF
24003# The name lister interface.
24004nm_interface=$lt_lt_cv_nm_interface
24005
ee134472
JF
24006# Specify filename containing input files for \$NM.
24007nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 24008
9d54db95 24009# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 24010lt_sysroot=$lt_sysroot
9c60689e 24011
9d54db95
JF
24012# Command to truncate a binary pipe.
24013lt_truncate_bin=$lt_lt_cv_truncate_bin
24014
ee134472
JF
24015# The name of the directory that contains temporary libtool files.
24016objdir=$objdir
9c60689e
DWT
24017
24018# Used to examine libraries when file_magic_cmd begins with "file".
24019MAGIC_CMD=$MAGIC_CMD
24020
24021# Must we lock files when doing compilation?
24022need_locks=$lt_need_locks
24023
ee134472
JF
24024# Manifest tool.
24025MANIFEST_TOOL=$lt_MANIFEST_TOOL
24026
9c60689e
DWT
24027# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24028DSYMUTIL=$lt_DSYMUTIL
24029
24030# Tool to change global to local symbols on Mac OS X.
24031NMEDIT=$lt_NMEDIT
24032
24033# Tool to manipulate fat objects and archives on Mac OS X.
24034LIPO=$lt_LIPO
24035
24036# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24037OTOOL=$lt_OTOOL
24038
24039# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24040OTOOL64=$lt_OTOOL64
24041
24042# Old archive suffix (normally "a").
24043libext=$libext
24044
24045# Shared library suffix (normally ".so").
24046shrext_cmds=$lt_shrext_cmds
35fa52c0 24047
9c60689e
DWT
24048# The commands to extract the exported symbol list from a shared archive.
24049extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 24050
9c60689e
DWT
24051# Variables whose values should be saved in libtool wrapper scripts and
24052# restored at link time.
24053variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 24054
9c60689e
DWT
24055# Do we need the "lib" prefix for modules?
24056need_lib_prefix=$need_lib_prefix
35fa52c0 24057
9c60689e
DWT
24058# Do we need a version for libraries?
24059need_version=$need_version
35fa52c0 24060
9c60689e
DWT
24061# Library versioning type.
24062version_type=$version_type
35fa52c0 24063
9c60689e
DWT
24064# Shared library runtime path variable.
24065runpath_var=$runpath_var
35fa52c0 24066
9c60689e
DWT
24067# Shared library path variable.
24068shlibpath_var=$shlibpath_var
35fa52c0 24069
9c60689e
DWT
24070# Is shlibpath searched before the hard-coded library search path?
24071shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 24072
9c60689e
DWT
24073# Format of library name prefix.
24074libname_spec=$lt_libname_spec
35fa52c0 24075
9c60689e
DWT
24076# List of archive names. First name is the real one, the rest are links.
24077# The last name is the one that the linker finds with -lNAME
24078library_names_spec=$lt_library_names_spec
dbadc56a 24079
9c60689e
DWT
24080# The coded name of the library, if different from the real name.
24081soname_spec=$lt_soname_spec
dbadc56a 24082
ee134472
JF
24083# Permission mode override for installation of shared libraries.
24084install_override_mode=$lt_install_override_mode
24085
9c60689e
DWT
24086# Command to use after installation of a shared archive.
24087postinstall_cmds=$lt_postinstall_cmds
35fa52c0 24088
9c60689e
DWT
24089# Command to use after uninstallation of a shared archive.
24090postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 24091
9c60689e
DWT
24092# Commands used to finish a libtool library installation in a directory.
24093finish_cmds=$lt_finish_cmds
35fa52c0 24094
9c60689e
DWT
24095# As "finish_cmds", except a single script fragment to be evaled but
24096# not shown.
24097finish_eval=$lt_finish_eval
35fa52c0 24098
9c60689e
DWT
24099# Whether we should hardcode library paths into libraries.
24100hardcode_into_libs=$hardcode_into_libs
dbadc56a 24101
9c60689e
DWT
24102# Compile-time system search path for libraries.
24103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 24104
9d54db95
JF
24105# Detected run-time system search path for libraries.
24106sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24107
24108# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24109configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 24110
9c60689e
DWT
24111# Whether dlopen is supported.
24112dlopen_support=$enable_dlopen
dbadc56a 24113
9c60689e
DWT
24114# Whether dlopen of programs is supported.
24115dlopen_self=$enable_dlopen_self
35fa52c0 24116
9c60689e
DWT
24117# Whether dlopen of statically linked programs is supported.
24118dlopen_self_static=$enable_dlopen_self_static
35fa52c0 24119
9c60689e
DWT
24120# Commands to strip libraries.
24121old_striplib=$lt_old_striplib
24122striplib=$lt_striplib
35fa52c0 24123
35fa52c0 24124
9c60689e
DWT
24125# The linker used to build libraries.
24126LD=$lt_LD
dbadc56a 24127
ee134472
JF
24128# How to create reloadable object files.
24129reload_flag=$lt_reload_flag
24130reload_cmds=$lt_reload_cmds
24131
9c60689e
DWT
24132# Commands used to build an old-style archive.
24133old_archive_cmds=$lt_old_archive_cmds
dbadc56a 24134
9c60689e
DWT
24135# A language specific compiler.
24136CC=$lt_compiler
35fa52c0 24137
9c60689e
DWT
24138# Is the compiler the GNU compiler?
24139with_gcc=$GCC
dbadc56a 24140
9c60689e
DWT
24141# Compiler flag to turn off builtin functions.
24142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 24143
9c60689e
DWT
24144# Additional compiler flags for building library objects.
24145pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 24146
ee134472
JF
24147# How to pass a linker flag through the compiler.
24148wl=$lt_lt_prog_compiler_wl
24149
9c60689e
DWT
24150# Compiler flag to prevent dynamic linking.
24151link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 24152
9c60689e
DWT
24153# Does compiler simultaneously support -c and -o options?
24154compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 24155
9c60689e
DWT
24156# Whether or not to add -lc for building shared libraries.
24157build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 24158
9c60689e
DWT
24159# Whether or not to disallow shared libs when runtime libs are static.
24160allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 24161
9c60689e
DWT
24162# Compiler flag to allow reflexive dlopens.
24163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 24164
9c60689e
DWT
24165# Compiler flag to generate shared objects directly from archives.
24166whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 24167
9c60689e
DWT
24168# Whether the compiler copes with passing no objects directly.
24169compiler_needs_object=$lt_compiler_needs_object
dbadc56a 24170
9c60689e
DWT
24171# Create an old-style archive from a shared archive.
24172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 24173
9c60689e
DWT
24174# Create a temporary old-style archive to link instead of a shared archive.
24175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 24176
9c60689e
DWT
24177# Commands used to build a shared archive.
24178archive_cmds=$lt_archive_cmds
24179archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 24180
9c60689e
DWT
24181# Commands used to build a loadable module if different from building
24182# a shared archive.
24183module_cmds=$lt_module_cmds
24184module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 24185
9c60689e
DWT
24186# Whether we are building with GNU ld or not.
24187with_gnu_ld=$lt_with_gnu_ld
6b66678a 24188
9c60689e
DWT
24189# Flag that allows shared libraries with undefined symbols to be built.
24190allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 24191
9c60689e
DWT
24192# Flag that enforces no undefined symbols.
24193no_undefined_flag=$lt_no_undefined_flag
6b66678a 24194
9c60689e
DWT
24195# Flag to hardcode \$libdir into a binary during linking.
24196# This must work even if \$libdir does not exist
24197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 24198
9c60689e
DWT
24199# Whether we need a single "-rpath" flag with a separated argument.
24200hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 24201
9d54db95 24202# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
24203# DIR into the resulting binary.
24204hardcode_direct=$hardcode_direct
6b66678a 24205
9d54db95 24206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 24207# DIR into the resulting binary and the resulting library dependency is
9d54db95 24208# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
24209# library is relocated.
24210hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 24211
9c60689e
DWT
24212# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24213# into the resulting binary.
24214hardcode_minus_L=$hardcode_minus_L
6b66678a 24215
9c60689e
DWT
24216# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24217# into the resulting binary.
24218hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 24219
9c60689e
DWT
24220# Set to "yes" if building a shared library automatically hardcodes DIR
24221# into the library and all subsequent libraries and executables linked
24222# against it.
24223hardcode_automatic=$hardcode_automatic
6b66678a 24224
9c60689e
DWT
24225# Set to yes if linker adds runtime paths of dependent libraries
24226# to runtime path list.
24227inherit_rpath=$inherit_rpath
6b66678a 24228
9c60689e
DWT
24229# Whether libtool must link a program against all its dependency libraries.
24230link_all_deplibs=$link_all_deplibs
24231
9c60689e
DWT
24232# Set to "yes" if exported symbols are required.
24233always_export_symbols=$always_export_symbols
6b66678a 24234
9c60689e
DWT
24235# The commands to list exported symbols.
24236export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 24237
9c60689e
DWT
24238# Symbols that should not be listed in the preloaded symbols.
24239exclude_expsyms=$lt_exclude_expsyms
6b66678a 24240
9c60689e
DWT
24241# Symbols that must always be exported.
24242include_expsyms=$lt_include_expsyms
6b66678a 24243
9c60689e
DWT
24244# Commands necessary for linking programs (against libraries) with templates.
24245prelink_cmds=$lt_prelink_cmds
6b66678a 24246
ee134472
JF
24247# Commands necessary for finishing linking programs.
24248postlink_cmds=$lt_postlink_cmds
24249
9c60689e
DWT
24250# Specify filename containing input files.
24251file_list_spec=$lt_file_list_spec
6b66678a 24252
9c60689e
DWT
24253# How to hardcode a shared library path into an executable.
24254hardcode_action=$hardcode_action
24255
24256# The directories searched by this compiler when creating a shared library.
24257compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24258
24259# Dependencies to place before and after the objects being linked to
24260# create a shared library.
24261predep_objects=$lt_predep_objects
24262postdep_objects=$lt_postdep_objects
24263predeps=$lt_predeps
24264postdeps=$lt_postdeps
24265
24266# The library search path used internally by the compiler when linking
24267# a shared library.
24268compiler_lib_search_path=$lt_compiler_lib_search_path
24269
24270# ### END LIBTOOL CONFIG
24271
9d54db95
JF
24272_LT_EOF
24273
24274 cat <<'_LT_EOF' >> "$cfgfile"
24275
24276# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24277
24278# func_munge_path_list VARIABLE PATH
24279# -----------------------------------
24280# VARIABLE is name of variable containing _space_ separated list of
24281# directories to be munged by the contents of PATH, which is string
24282# having a format:
24283# "DIR[:DIR]:"
24284# string "DIR[ DIR]" will be prepended to VARIABLE
24285# ":DIR[:DIR]"
24286# string "DIR[ DIR]" will be appended to VARIABLE
24287# "DIRP[:DIRP]::[DIRA:]DIRA"
24288# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24289# "DIRA[ DIRA]" will be appended to VARIABLE
24290# "DIR[:DIR]"
24291# VARIABLE will be replaced by "DIR[ DIR]"
24292func_munge_path_list ()
24293{
24294 case x$2 in
24295 x)
24296 ;;
24297 *:)
24298 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24299 ;;
24300 x:*)
24301 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24302 ;;
24303 *::*)
24304 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24305 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24306 ;;
24307 *)
24308 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24309 ;;
24310 esac
24311}
24312
24313
24314# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24315func_cc_basename ()
24316{
24317 for cc_temp in $*""; do
24318 case $cc_temp in
24319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24321 \-*) ;;
24322 *) break;;
24323 esac
24324 done
24325 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24326}
24327
24328
24329# ### END FUNCTIONS SHARED WITH CONFIGURE
24330
9c60689e
DWT
24331_LT_EOF
24332
24333 case $host_os in
24334 aix3*)
24335 cat <<\_LT_EOF >> "$cfgfile"
24336# AIX sometimes has problems with the GCC collect2 program. For some
24337# reason, if we set the COLLECT_NAMES environment variable, the problems
24338# vanish in a puff of smoke.
9d54db95 24339if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
24340 COLLECT_NAMES=
24341 export COLLECT_NAMES
6b66678a 24342fi
9c60689e
DWT
24343_LT_EOF
24344 ;;
24345 esac
6b66678a
DWT
24346
24347
9d54db95 24348ltmain=$ac_aux_dir/ltmain.sh
6b66678a 24349
9c60689e
DWT
24350
24351 # We use sed instead of cat because bash on DJGPP gets confused if
24352 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24353 # text mode, it properly converts lines to CR/LF. This bash problem
24354 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
24355 sed '$q' "$ltmain" >> "$cfgfile" \
24356 || (rm -f "$cfgfile"; exit 1)
24357
ee134472 24358 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
24359 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24360 chmod +x "$ofile"
24361
24362
24363 cat <<_LT_EOF >> "$ofile"
24364
24365# ### BEGIN LIBTOOL TAG CONFIG: CXX
24366
24367# The linker used to build libraries.
24368LD=$lt_LD_CXX
24369
ee134472
JF
24370# How to create reloadable object files.
24371reload_flag=$lt_reload_flag_CXX
24372reload_cmds=$lt_reload_cmds_CXX
24373
9c60689e
DWT
24374# Commands used to build an old-style archive.
24375old_archive_cmds=$lt_old_archive_cmds_CXX
24376
24377# A language specific compiler.
24378CC=$lt_compiler_CXX
24379
24380# Is the compiler the GNU compiler?
24381with_gcc=$GCC_CXX
24382
24383# Compiler flag to turn off builtin functions.
24384no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 24385
9c60689e
DWT
24386# Additional compiler flags for building library objects.
24387pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 24388
ee134472
JF
24389# How to pass a linker flag through the compiler.
24390wl=$lt_lt_prog_compiler_wl_CXX
24391
9c60689e
DWT
24392# Compiler flag to prevent dynamic linking.
24393link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 24394
9c60689e
DWT
24395# Does compiler simultaneously support -c and -o options?
24396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 24397
9c60689e
DWT
24398# Whether or not to add -lc for building shared libraries.
24399build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 24400
9c60689e
DWT
24401# Whether or not to disallow shared libs when runtime libs are static.
24402allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 24403
9c60689e
DWT
24404# Compiler flag to allow reflexive dlopens.
24405export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 24406
9c60689e
DWT
24407# Compiler flag to generate shared objects directly from archives.
24408whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 24409
9c60689e
DWT
24410# Whether the compiler copes with passing no objects directly.
24411compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 24412
9c60689e
DWT
24413# Create an old-style archive from a shared archive.
24414old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 24415
9c60689e
DWT
24416# Create a temporary old-style archive to link instead of a shared archive.
24417old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 24418
9c60689e
DWT
24419# Commands used to build a shared archive.
24420archive_cmds=$lt_archive_cmds_CXX
24421archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 24422
9c60689e
DWT
24423# Commands used to build a loadable module if different from building
24424# a shared archive.
24425module_cmds=$lt_module_cmds_CXX
24426module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 24427
9c60689e
DWT
24428# Whether we are building with GNU ld or not.
24429with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 24430
9c60689e
DWT
24431# Flag that allows shared libraries with undefined symbols to be built.
24432allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 24433
9c60689e
DWT
24434# Flag that enforces no undefined symbols.
24435no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 24436
9c60689e
DWT
24437# Flag to hardcode \$libdir into a binary during linking.
24438# This must work even if \$libdir does not exist
24439hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 24440
9c60689e
DWT
24441# Whether we need a single "-rpath" flag with a separated argument.
24442hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 24443
9d54db95 24444# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
24445# DIR into the resulting binary.
24446hardcode_direct=$hardcode_direct_CXX
6b66678a 24447
9d54db95 24448# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 24449# DIR into the resulting binary and the resulting library dependency is
9d54db95 24450# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
24451# library is relocated.
24452hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 24453
9c60689e
DWT
24454# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24455# into the resulting binary.
24456hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 24457
9c60689e
DWT
24458# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24459# into the resulting binary.
24460hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 24461
9c60689e
DWT
24462# Set to "yes" if building a shared library automatically hardcodes DIR
24463# into the library and all subsequent libraries and executables linked
24464# against it.
24465hardcode_automatic=$hardcode_automatic_CXX
6b66678a 24466
9c60689e
DWT
24467# Set to yes if linker adds runtime paths of dependent libraries
24468# to runtime path list.
24469inherit_rpath=$inherit_rpath_CXX
6b66678a 24470
9c60689e
DWT
24471# Whether libtool must link a program against all its dependency libraries.
24472link_all_deplibs=$link_all_deplibs_CXX
6b66678a 24473
9c60689e
DWT
24474# Set to "yes" if exported symbols are required.
24475always_export_symbols=$always_export_symbols_CXX
6b66678a 24476
9c60689e
DWT
24477# The commands to list exported symbols.
24478export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 24479
9c60689e
DWT
24480# Symbols that should not be listed in the preloaded symbols.
24481exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 24482
9c60689e
DWT
24483# Symbols that must always be exported.
24484include_expsyms=$lt_include_expsyms_CXX
6b66678a 24485
9c60689e
DWT
24486# Commands necessary for linking programs (against libraries) with templates.
24487prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 24488
ee134472
JF
24489# Commands necessary for finishing linking programs.
24490postlink_cmds=$lt_postlink_cmds_CXX
24491
9c60689e
DWT
24492# Specify filename containing input files.
24493file_list_spec=$lt_file_list_spec_CXX
dbadc56a 24494
9c60689e
DWT
24495# How to hardcode a shared library path into an executable.
24496hardcode_action=$hardcode_action_CXX
309b0535 24497
9c60689e
DWT
24498# The directories searched by this compiler when creating a shared library.
24499compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 24500
9c60689e
DWT
24501# Dependencies to place before and after the objects being linked to
24502# create a shared library.
24503predep_objects=$lt_predep_objects_CXX
24504postdep_objects=$lt_postdep_objects_CXX
24505predeps=$lt_predeps_CXX
24506postdeps=$lt_postdeps_CXX
309b0535 24507
9c60689e
DWT
24508# The library search path used internally by the compiler when linking
24509# a shared library.
24510compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24511
24512# ### END LIBTOOL TAG CONFIG: CXX
24513_LT_EOF
24514
24515 ;;
24516
24517 esac
24518done # for ac_tag
24519
24520
24521as_fn_exit 0
24522_ACEOF
24523ac_clean_files=$ac_clean_files_save
24524
24525test $ac_write_fail = 0 ||
12833ad8 24526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24527
24528
24529# configure is writing to config.log, and then calls config.status.
24530# config.status does its own redirection, appending to config.log.
24531# Unfortunately, on DOS this fails, as config.log is still kept open
24532# by configure, so config.status won't be able to write to it; its
24533# output is simply discarded. So we exec the FD to /dev/null,
24534# effectively closing config.log, so it can be properly (re)opened and
24535# appended to by config.status. When coming back to configure, we
24536# need to make the FD available again.
24537if test "$no_create" != yes; then
24538 ac_cs_success=:
24539 ac_config_status_args=
24540 test "$silent" = yes &&
24541 ac_config_status_args="$ac_config_status_args --quiet"
24542 exec 5>/dev/null
24543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24544 exec 5>>config.log
24545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24546 # would make configure fail if this is the last instruction.
12833ad8 24547 $ac_cs_success || as_fn_exit 1
309b0535 24548fi
9c60689e
DWT
24549if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24551$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24552fi
24553