]> git.saurik.com Git - cycript.git/blame - configure
Add all dependency m4 scripts to the repository.
[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
JF
13#
14# Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
a243b558
JF
641CY_MACH_FALSE
642CY_MACH_TRUE
794e88e7 643CY_ATTACH_GROUP
66170b30 644CY_MACH
a243b558
JF
645ac_ct__OTOOL
646_OTOOL
794e88e7
DWT
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
9777bd50 651SO
66170b30 652LTFLAGS
5053a6d1
DWT
653LTLIBICONV
654LIBICONV
a243b558
JF
655CY_OBJECTIVEC_FALSE
656CY_OBJECTIVEC_TRUE
47aaa820 657GNUSTEP_CONFIG
c823f118 658CY_OBJECTIVEC
309b0535 659LIBFFI_LIBS
35fa52c0 660LIBFFI_CFLAGS
a243b558
JF
661CY_EXECUTE_FALSE
662CY_EXECUTE_TRUE
3fd51f51 663CY_EXECUTE
35fa52c0
DWT
664WEBKIT_LIBS
665WEBKIT_CFLAGS
a243b558 666CY_ARCH
e9c9a47c 667GNUTAR
e9c9a47c
DWT
668GPERF
669FLEX
670BISON
671TIME
66170b30 672GIT
e9c9a47c 673_BASH
12833ad8 674GMAKE
632b71ea 675ifGNUmake
12833ad8
JF
676PKG_CONFIG_LIBDIR
677PKG_CONFIG_PATH
3fd51f51 678PKG_CONFIG
a243b558 679CXXCPP
9c60689e
DWT
680CPP
681OTOOL64
682OTOOL
683LIPO
684NMEDIT
685DSYMUTIL
ee134472 686MANIFEST_TOOL
9c60689e 687RANLIB
ee134472 688DLLTOOL
9c60689e
DWT
689OBJDUMP
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696EGREP
697GREP
698SED
a243b558
JF
699host_os
700host_vendor
701host_cpu
702host
703build_os
704build_vendor
705build_cpu
706build
707LIBTOOL
66170b30
JF
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
a243b558
JF
711ac_ct_CC
712CFLAGS
713CC
714ac_ct_AR
715AR
716am__fastdepOBJCXX_FALSE
717am__fastdepOBJCXX_TRUE
718OBJCXXDEPMODE
719ac_ct_OBJCXX
720OBJCXXFLAGS
721OBJCXX
722am__fastdepCXX_FALSE
723am__fastdepCXX_TRUE
724CXXDEPMODE
66170b30
JF
725am__nodep
726AMDEPBACKSLASH
727AMDEP_FALSE
728AMDEP_TRUE
729am__quote
730am__include
731DEPDIR
35fa52c0
DWT
732OBJEXT
733EXEEXT
a243b558 734ac_ct_CXX
35fa52c0
DWT
735CPPFLAGS
736LDFLAGS
a243b558
JF
737CXXFLAGS
738CXX
66170b30
JF
739AM_BACKSLASH
740AM_DEFAULT_VERBOSITY
741AM_DEFAULT_V
742AM_V
743am__untar
744am__tar
745AMTAR
746am__leading_dot
747SET_MAKE
748AWK
749mkdir_p
750MKDIR_P
751INSTALL_STRIP_PROGRAM
752STRIP
753install_sh
754MAKEINFO
755AUTOHEADER
756AUTOMAKE
757AUTOCONF
758ACLOCAL
759VERSION
760PACKAGE
761CYGPATH_W
762am__isrc
763INSTALL_DATA
764INSTALL_SCRIPT
765INSTALL_PROGRAM
dbadc56a 766target_alias
c7aa54aa
DWT
767host_alias
768build_alias
769LIBS
770ECHO_T
771ECHO_N
772ECHO_C
773DEFS
774mandir
775localedir
776libdir
777psdir
778pdfdir
779dvidir
780htmldir
781infodir
782docdir
783oldincludedir
784includedir
785localstatedir
786sharedstatedir
787sysconfdir
788datadir
789datarootdir
790libexecdir
791sbindir
792bindir
793program_transform_name
794prefix
795exec_prefix
796PACKAGE_URL
797PACKAGE_BUGREPORT
798PACKAGE_STRING
799PACKAGE_VERSION
800PACKAGE_TARNAME
801PACKAGE_NAME
802PATH_SEPARATOR
803SHELL'
804ac_subst_files=''
805ac_user_opts='
806enable_option_checking
66170b30 807enable_silent_rules
a243b558 808enable_dependency_tracking
9c60689e 809enable_static
549f29b5 810enable_shared
9c60689e
DWT
811with_pic
812enable_fast_install
35fa52c0 813with_gnu_ld
ee134472 814with_sysroot
9c60689e 815enable_libtool_lock
632b71ea 816with_frameworks
5053a6d1 817enable_javascript
66170b30 818with_apr
35fa52c0
DWT
819enable_rpath
820with_libiconv_prefix
c7aa54aa
DWT
821'
822 ac_precious_vars='build_alias
823host_alias
dbadc56a 824target_alias
a243b558
JF
825CXX
826CXXFLAGS
dbadc56a
DWT
827LDFLAGS
828LIBS
829CPPFLAGS
a243b558
JF
830CCC
831OBJCXX
832OBJCXXFLAGS
833CC
834CFLAGS
9c60689e 835CPP
a243b558 836CXXCPP
3fd51f51 837PKG_CONFIG
12833ad8
JF
838PKG_CONFIG_PATH
839PKG_CONFIG_LIBDIR
e9c9a47c
DWT
840BISON
841FLEX
842GPERF
66170b30 843GNUTAR
35fa52c0
DWT
844WEBKIT_CFLAGS
845WEBKIT_LIBS
a667869d 846LIBFFI_CFLAGS
790e5246
DWT
847LIBFFI_LIBS
848GNUSTEP_CONFIG'
c7aa54aa
DWT
849
850
851# Initialize some variables set by options.
852ac_init_help=
853ac_init_version=false
854ac_unrecognized_opts=
855ac_unrecognized_sep=
856# The variables have the same names as the options, with
857# dashes changed to underlines.
858cache_file=/dev/null
859exec_prefix=NONE
860no_create=
861no_recursion=
862prefix=NONE
863program_prefix=NONE
864program_suffix=NONE
865program_transform_name=s,x,x,
866silent=
867site=
868srcdir=
869verbose=
870x_includes=NONE
871x_libraries=NONE
872
873# Installation directory options.
874# These are left unexpanded so users can "make install exec_prefix=/foo"
875# and all the variables that are supposed to be based on exec_prefix
876# by default will actually change.
877# Use braces instead of parens because sh, perl, etc. also accept them.
878# (The list follows the same order as the GNU Coding Standards.)
879bindir='${exec_prefix}/bin'
880sbindir='${exec_prefix}/sbin'
881libexecdir='${exec_prefix}/libexec'
882datarootdir='${prefix}/share'
883datadir='${datarootdir}'
884sysconfdir='${prefix}/etc'
885sharedstatedir='${prefix}/com'
886localstatedir='${prefix}/var'
887includedir='${prefix}/include'
888oldincludedir='/usr/include'
889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890infodir='${datarootdir}/info'
891htmldir='${docdir}'
892dvidir='${docdir}'
893pdfdir='${docdir}'
894psdir='${docdir}'
895libdir='${exec_prefix}/lib'
896localedir='${datarootdir}/locale'
897mandir='${datarootdir}/man'
898
899ac_prev=
900ac_dashdash=
901for ac_option
902do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
12833ad8
JF
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
c7aa54aa
DWT
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 958 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 984 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1188 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193"with_$ac_useropt"
1194"*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1204 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
12833ad8
JF
1234 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235Try \`$0 --help' for more information"
c7aa54aa
DWT
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1254 ;;
1255
1256 esac
1257done
1258
1259if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1261 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
12833ad8 1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
12833ad8 1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
c7aa54aa
DWT
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307fi
1308
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
1313
1314
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1318 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1320 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1321
1322
1323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332$as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354else
1355 ac_srcdir_defaulted=no
1356fi
1357if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1360fi
1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362ac_abs_confdir=`(
12833ad8 1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1364 pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
12833ad8 1403 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
1409Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442_ACEOF
1443
1444 cat <<\_ACEOF
35fa52c0 1445
66170b30
JF
1446Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
35fa52c0
DWT
1451System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1454_ACEOF
1455fi
1456
1457if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of Cycript 0.9:";;
1460 esac
1461 cat <<\_ACEOF
1462
35fa52c0
DWT
1463Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
66170b30
JF
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
a243b558
JF
1473 --enable-static[=PKGS] build static libraries [default=no]
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
9c60689e 1477 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1478 --enable-javascript[=ENGINE]
790e5246 1479 use a JavaScript runtime (currently the only
b66977f1
DWT
1480 available option for ENGINE is JavaScriptCore)
1481 [default=yes]
5053a6d1 1482 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1483
1484Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1488 both]
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1490 --with-sysroot=DIR Search for dependent libraries within DIR
1491 (or the compiler's sysroot if not specified).
632b71ea
DWT
1492 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1493 path for frameworks with -F
309b0535
DWT
1494 --with-apr=PATH prefix for installed APR or the full path to
1495 apr-config
53ba6704 1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
35fa52c0
DWT
1497 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1498 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1499
dbadc56a 1500Some influential environment variables:
a243b558
JF
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
dbadc56a
DWT
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1507 you have headers in a nonstandard directory <include dir>
a243b558
JF
1508 OBJCXX Objective C++ compiler command
1509 OBJCXXFLAGS Objective C++ compiler flags
1510 CC C compiler command
1511 CFLAGS C compiler flags
9c60689e 1512 CPP C preprocessor
a243b558 1513 CXXCPP C++ preprocessor
3fd51f51 1514 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1515 PKG_CONFIG_PATH
1516 directories to add to pkg-config's search path
1517 PKG_CONFIG_LIBDIR
1518 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1519 BISON GNU Project parser generator (yacc replacement)
1520 FLEX the fast lexical analyser generator
1521 GPERF perfect hash function generator
66170b30 1522 GNUTAR a very sticky lump of files
35fa52c0
DWT
1523 WEBKIT_CFLAGS
1524 C compiler flags for WEBKIT, overriding pkg-config
1525 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1526 LIBFFI_CFLAGS
1527 C compiler flags for LIBFFI, overriding pkg-config
1528 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1529 GNUSTEP_CONFIG
1530 prints information about the current gnustep installation
dbadc56a
DWT
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
c7aa54aa
DWT
1535Report bugs to <saurik@saurik.com>.
1536Cycript home page: <http://www.cycript.org/>.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598 cat <<\_ACEOF
1599Cycript configure 0.9
53ba6704 1600generated by GNU Autoconf 2.69
c7aa54aa 1601
53ba6704 1602Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1605
1606Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1607_ACEOF
1608 exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
dbadc56a 1614
a243b558
JF
1615# ac_fn_cxx_try_compile LINENO
1616# ----------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_cxx_try_compile ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_cxx_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651} # ac_fn_cxx_try_compile
1652
1653# ac_fn_objcxx_try_compile LINENO
1654# -------------------------------
1655# Try to compile conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_objcxx_try_compile ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext
1660 if { { ac_try="$ac_compile"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_compile") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_objcxx_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest.$ac_objext; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689} # ac_fn_objcxx_try_compile
1690
35fa52c0
DWT
1691# ac_fn_c_try_compile LINENO
1692# --------------------------
1693# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_compile ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
ee134472 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1725 as_fn_set_status $ac_retval
35fa52c0
DWT
1726
1727} # ac_fn_c_try_compile
1728
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
53ba6704 1756 test -x conftest$ac_exeext
35fa52c0
DWT
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1771 as_fn_set_status $ac_retval
35fa52c0
DWT
1772
1773} # ac_fn_c_try_link
1774
9c60689e
DWT
1775# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists and can be compiled using the include files in
1778# INCLUDES, setting the cache variable VAR accordingly.
1779ac_fn_c_check_header_compile ()
dbadc56a
DWT
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
ee134472 1784if eval \${$3+:} false; then :
9c60689e
DWT
1785 $as_echo_n "(cached) " >&6
1786else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794else
1795 eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
ee134472 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1803
1804} # ac_fn_c_check_header_compile
1805
1806# ac_fn_c_try_cpp LINENO
1807# ----------------------
1808# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_c_try_cpp ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1813case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
9c60689e 1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1827 test $ac_status = 0; } > conftest.i && {
9c60689e 1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1829 test ! -s conftest.err
9c60689e 1830 }; then :
dbadc56a
DWT
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
9c60689e 1836 ac_retval=1
dbadc56a 1837fi
ee134472 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1839 as_fn_set_status $ac_retval
dbadc56a 1840
9c60689e 1841} # ac_fn_c_try_cpp
35fa52c0
DWT
1842
1843# ac_fn_c_try_run LINENO
1844# ----------------------
1845# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846# that executables *can* be run.
1847ac_fn_c_try_run ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1881 as_fn_set_status $ac_retval
35fa52c0
DWT
1882
1883} # ac_fn_c_try_run
6b66678a 1884
9c60689e
DWT
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
6b66678a
DWT
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
ee134472 1893if eval \${$3+:} false; then :
9c60689e 1894 $as_echo_n "(cached) " >&6
6b66678a 1895else
9c60689e
DWT
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
6b66678a 1901
9c60689e
DWT
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
6b66678a 1944fi
9c60689e
DWT
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
ee134472 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1949
9c60689e 1950} # ac_fn_c_check_func
6b66678a 1951
9c60689e
DWT
1952# ac_fn_cxx_try_cpp LINENO
1953# ------------------------
1954# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_cpp ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1959case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1973 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 }; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
ee134472 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1985 as_fn_set_status $ac_retval
1986
1987} # ac_fn_cxx_try_cpp
1988
1989# ac_fn_cxx_try_link LINENO
1990# -------------------------
1991# Try to link conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_cxx_try_link ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
53ba6704 2016 test -x conftest$ac_exeext
9c60689e
DWT
2017 }; then :
2018 ac_retval=0
2019else
2020 $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2031 as_fn_set_status $ac_retval
2032
2033} # ac_fn_cxx_try_link
2034
47aaa820
DWT
2035# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2036# ---------------------------------------------------------
2037# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038# the include files in INCLUDES and setting the cache variable VAR
2039# accordingly.
2040ac_fn_cxx_check_header_mongrel ()
2041{
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2043 if eval \${$3+:} false; then :
47aaa820
DWT
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045$as_echo_n "checking for $2... " >&6; }
ee134472 2046if eval \${$3+:} false; then :
47aaa820
DWT
2047 $as_echo_n "(cached) " >&6
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052else
2053 # Is the header compilable?
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055$as_echo_n "checking $2 usability... " >&6; }
2056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059#include <$2>
2060_ACEOF
2061if ac_fn_cxx_try_compile "$LINENO"; then :
2062 ac_header_compiler=yes
2063else
2064 ac_header_compiler=no
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068$as_echo "$ac_header_compiler" >&6; }
2069
2070# Is the header present?
2071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072$as_echo_n "checking $2 presence... " >&6; }
2073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075#include <$2>
2076_ACEOF
2077if ac_fn_cxx_try_cpp "$LINENO"; then :
2078 ac_header_preproc=yes
2079else
2080 ac_header_preproc=no
2081fi
12833ad8 2082rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084$as_echo "$ac_header_preproc" >&6; }
2085
2086# So? What about this header?
2087case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2088 yes:no: )
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 ;;
2094 no:yes:* )
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2105( $as_echo "## -------------------------------- ##
47aaa820 2106## Report this to saurik@saurik.com ##
12833ad8 2107## -------------------------------- ##"
47aaa820
DWT
2108 ) | sed "s/^/$as_me: WARNING: /" >&2
2109 ;;
2110esac
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112$as_echo_n "checking for $2... " >&6; }
ee134472 2113if eval \${$3+:} false; then :
47aaa820
DWT
2114 $as_echo_n "(cached) " >&6
2115else
2116 eval "$3=\$ac_header_compiler"
2117fi
2118eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; }
2121fi
ee134472 2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2123
2124} # ac_fn_cxx_check_header_mongrel
2125
c823f118
DWT
2126# ac_fn_objcxx_try_link LINENO
2127# ----------------------------
2128# Try to link conftest.$ac_ext, and return whether this succeeded.
2129ac_fn_objcxx_try_link ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 rm -f conftest.$ac_objext conftest$ac_exeext
2133 if { { ac_try="$ac_link"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139$as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_link") 2>conftest.err
2141 ac_status=$?
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2146 fi
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } && {
2149 test -z "$ac_objcxx_werror_flag" ||
2150 test ! -s conftest.err
2151 } && test -s conftest$ac_exeext && {
2152 test "$cross_compiling" = yes ||
53ba6704 2153 test -x conftest$ac_exeext
c823f118
DWT
2154 }; then :
2155 ac_retval=0
2156else
2157 $as_echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_retval=1
2161fi
2162 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164 # interfere with the next link command; also delete a directory that is
2165 # left behind by Apple's compiler. We do this before executing the actions.
2166 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2168 as_fn_set_status $ac_retval
2169
2170} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2171cat >config.log <<_ACEOF
2172This file contains any messages produced by compilers while
2173running configure, to aid debugging if configure makes a mistake.
2174
2175It was created by Cycript $as_me 0.9, which was
53ba6704 2176generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2177
2178 $ $0 $@
2179
2180_ACEOF
2181exec 5>>config.log
2182{
2183cat <<_ASUNAME
2184## --------- ##
2185## Platform. ##
2186## --------- ##
2187
2188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196
2197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2204
2205_ASUNAME
2206
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214IFS=$as_save_IFS
2215
2216} >&5
2217
2218cat >&5 <<_ACEOF
2219
2220
2221## ----------- ##
2222## Core tests. ##
2223## ----------- ##
2224
2225_ACEOF
2226
2227
2228# Keep a trace of the command line.
2229# Strip out --no-create and --no-recursion so they do not pile up.
2230# Strip out --silent because we don't want to record it for future runs.
2231# Also quote any args containing shell meta-characters.
2232# Make two passes to allow for proper duplicate-argument suppression.
2233ac_configure_args=
2234ac_configure_args0=
2235ac_configure_args1=
2236ac_must_keep_next=false
2237for ac_pass in 1 2
2238do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 2)
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
2268 as_fn_append ac_configure_args " '$ac_arg'"
2269 ;;
2270 esac
2271 done
2272done
2273{ ac_configure_args0=; unset ac_configure_args0;}
2274{ ac_configure_args1=; unset ac_configure_args1;}
2275
2276# When interrupted or exit'd, cleanup temporary files, and complete
2277# config.log. We remove comments because anyway the quotes in there
2278# would cause problems or look ugly.
2279# WARNING: Use '\'' to represent an apostrophe within the trap.
2280# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2283 {
2284 echo
2285
12833ad8 2286 $as_echo "## ---------------- ##
c7aa54aa 2287## Cache variables. ##
12833ad8 2288## ---------------- ##"
c7aa54aa
DWT
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291(
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319)
2320 echo
2321
12833ad8 2322 $as_echo "## ----------------- ##
c7aa54aa 2323## Output variables. ##
12833ad8 2324## ----------------- ##"
c7aa54aa
DWT
2325 echo
2326 for ac_var in $ac_subst_vars
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335
2336 if test -n "$ac_subst_files"; then
12833ad8 2337 $as_echo "## ------------------- ##
c7aa54aa 2338## File substitutions. ##
12833ad8 2339## ------------------- ##"
c7aa54aa
DWT
2340 echo
2341 for ac_var in $ac_subst_files
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350 fi
2351
2352 if test -s confdefs.h; then
12833ad8 2353 $as_echo "## ----------- ##
c7aa54aa 2354## confdefs.h. ##
12833ad8 2355## ----------- ##"
c7aa54aa
DWT
2356 echo
2357 cat confdefs.h
2358 echo
2359 fi
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2367' 0
2368for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370done
2371ac_signal=0
2372
2373# confdefs.h avoids OS command line length limits that DEFS can exceed.
2374rm -f -r conftest* confdefs.h
2375
2376$as_echo "/* confdefs.h */" > confdefs.h
2377
2378# Predefined preprocessor variables.
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_NAME "$PACKAGE_NAME"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_VERSION "$PACKAGE_VERSION"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_STRING "$PACKAGE_STRING"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_URL "$PACKAGE_URL"
2402_ACEOF
2403
2404
2405# Let the site file select an alternate cache file if it wants to.
2406# Prefer an explicitly selected file to automatically selected ones.
2407ac_site_file1=NONE
2408ac_site_file2=NONE
2409if test -n "$CONFIG_SITE"; then
12833ad8
JF
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2415 esac
c7aa54aa
DWT
2416elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2419else
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2422fi
2423for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424do
2425 test "x$ac_site_file" = xNONE && continue
9c60689e 2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2430 . "$ac_site_file" \
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433as_fn_error $? "failed to load site script $ac_site_file
ee134472 2434See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2435 fi
2436done
2437
2438if test -r "$cache_file"; then
9c60689e
DWT
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443$as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451$as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453fi
2454
2455# Check that the precious variables saved in the cache have kept the same
2456# value.
2457ac_cache_corrupted=false
2458for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2503 fi
2504done
2505if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2510 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2511fi
2512## -------------------- ##
2513## Main body of script. ##
2514## -------------------- ##
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
66170b30
JF
2523
2524
35fa52c0 2525
6b66678a
DWT
2526ac_aux_dir=
2527for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2528 if test -f "$ac_dir/install-sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install-sh -c"
2531 break
2532 elif test -f "$ac_dir/install.sh"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/install.sh -c"
2535 break
2536 elif test -f "$ac_dir/shtool"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/shtool install -c"
2539 break
2540 fi
6b66678a
DWT
2541done
2542if test -z "$ac_aux_dir"; then
12833ad8 2543 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2544fi
2545
2546# These three variables are undocumented and unsupported,
2547# and are intended to be withdrawn in a future Autoconf release.
2548# They can cause serious problems if a builder's source tree is in a directory
2549# whose full name contains unusual characters.
2550ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2551ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2552ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2553
2554
9c60689e 2555
9c60689e 2556
66170b30 2557am__api_version='1.13'
9c60689e 2558
66170b30
JF
2559# Find a good install program. We prefer a C program (faster),
2560# so one script is as good as another. But avoid the broken or
2561# incompatible versions:
2562# SysV /etc/install, /usr/sbin/install
2563# SunOS /usr/etc/install
2564# IRIX /sbin/install
2565# AIX /bin/install
2566# AmigaOS /C/install, which installs bootblocks on floppy discs
2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570# OS/2's system install, which has a completely different semantic
2571# ./install, which can be erroneously created by make from ./install.sh.
2572# Reject install programs that cannot install multiple files.
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574$as_echo_n "checking for a BSD-compatible install... " >&6; }
2575if test -z "$INSTALL"; then
2576if ${ac_cv_path_install+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623esac
9c60689e 2624
66170b30
JF
2625 done
2626IFS=$as_save_IFS
9c60689e 2627
66170b30 2628rm -rf conftest.one conftest.two conftest.dir
9c60689e 2629
66170b30
JF
2630fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642$as_echo "$INSTALL" >&6; }
9c60689e 2643
66170b30
JF
2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645# It thinks the first close brace ends the variable substitution.
2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2647
66170b30 2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2649
66170b30 2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2651
66170b30
JF
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653$as_echo_n "checking whether build environment is sane... " >&6; }
2654# Reject unsafe characters in $srcdir or the absolute working directory
2655# name. Accept space and tab only in the latter.
2656am_lf='
2657'
2658case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661esac
2662case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665esac
9c60689e 2666
66170b30
JF
2667# Do 'set' in a subshell so we don't clobber the current shell's
2668# arguments. Must try -L first in case configure is actually a
2669# symlink; some systems play weird games with the mod time of symlinks
2670# (eg FreeBSD returns the mod time of the symlink's containing
2671# directory).
2672if (
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
2698 test "$2" = conftest.file
2699 )
2700then
2701 # Ok.
2702 :
2703else
2704 as_fn_error $? "newly created file is older than distributed files!
2705Check your system clock" "$LINENO" 5
2706fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
2709# If we didn't sleep, we still need to ensure time stamps of config.status and
2710# generated files are strictly newer.
2711am_sleep_pid=
2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715fi
2716
2717rm -f conftest.file
2718
2719test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724# Double any \ or $.
2725# By default was `s,x,x', remove it if useless.
2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729# expand $ac_aux_dir to an absolute path
2730am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739fi
2740# Use eval to expand $SHELL
2741if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
2743else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2747fi
9c60689e 2748
66170b30
JF
2749if test x"${install_sh}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756fi
9c60689e 2757
66170b30
JF
2758# Installed binaries are usually stripped using 'strip' when the user
2759# run "make install-strip". However 'strip' might not be the right
2760# tool to use in cross-compilation environments, therefore Automake
2761# will honor the 'STRIP' environment variable to overrule this program.
2762if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}strip; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
9c60689e 2788
66170b30
JF
2789fi
2790fi
2791STRIP=$ac_cv_prog_STRIP
2792if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794$as_echo "$STRIP" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
9c60689e 2799
9c60689e 2800
66170b30
JF
2801fi
2802if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805set dummy strip; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2809 $as_echo_n "(cached) " >&6
2810else
66170b30
JF
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826 done
2827IFS=$as_save_IFS
9c60689e
DWT
2828
2829fi
66170b30
JF
2830fi
2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834$as_echo "$ac_ct_STRIP" >&6; }
2835else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
9c60689e 2848esac
66170b30
JF
2849 STRIP=$ac_ct_STRIP
2850 fi
2851else
2852 STRIP="$ac_cv_prog_STRIP"
2853fi
9c60689e 2854
66170b30
JF
2855fi
2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2857
66170b30
JF
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860if test -z "$MKDIR_P"; then
2861 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2862 $as_echo_n "(cached) " >&6
2863else
66170b30
JF
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885
2886 test -d ./--version && rmdir ./--version
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898$as_echo "$MKDIR_P" >&6; }
2899
2900for ac_prog in gawk mawk nawk awk
2901do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
2906if ${ac_cv_prog_AWK+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923done
2924 done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929AWK=$ac_cv_prog_AWK
2930if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932$as_echo "$AWK" >&6; }
2933else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939 test -n "$AWK" && break
2940done
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944set x ${MAKE-make}
2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 cat >conftest.make <<\_ACEOF
2950SHELL = /bin/sh
2951all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953_ACEOF
2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960esac
2961rm -f conftest.make
2962fi
2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965$as_echo "yes" >&6; }
2966 SET_MAKE=
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976 am__leading_dot=.
2977else
2978 am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
2982# Check whether --enable-silent-rules was given.
2983if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985fi
2986
2987case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991esac
2992am_make=${MAKE-make}
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999BAR0=false
3000BAR1=true
3001V=1
3002am__doit:
3003 @$(TRUE)
3004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006else
3007 am_cv_make_support_nested_variables=no
3008fi
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011$as_echo "$am_cv_make_support_nested_variables" >&6; }
3012if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018fi
3019AM_BACKSLASH='\'
3020
3021if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 fi
3029fi
3030
3031# test whether we have cygpath
3032if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038fi
3039
3040
3041# Define the identity of the package.
3042 PACKAGE='cycript'
3043 VERSION='0.9'
3044
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE "$PACKAGE"
3048_ACEOF
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define VERSION "$VERSION"
3053_ACEOF
3054
3055# Some tools Automake needs.
3056
3057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
3071# For better backward compatibility. To be removed once Automake 1.9.x
3072# dies out for good. For more background, see:
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075mkdir_p='$(MKDIR_P)'
3076
3077# We need awk for the "check" target. The system "awk" is bad on
3078# some platforms.
3079# Always define AMTAR for backward compatibility. Yes, it's still used
3080# in the wild :-( We should find a proper way to deprecate it ...
3081AMTAR='$${TAR-tar}'
3082
3083am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3084
3085
3086
3087
3088
66170b30 3089
a243b558
JF
3090ac_ext=cpp
3091ac_cpp='$CXXCPP $CPPFLAGS'
3092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3095if test -z "$CXX"; then
3096 if test -n "$CCC"; then
3097 CXX=$CCC
3098 else
3099 if test -n "$ac_tool_prefix"; then
3100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3101 do
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dbadc56a
DWT
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3106if ${ac_cv_prog_CXX+:} false; then :
dbadc56a
DWT
3107 $as_echo_n "(cached) " >&6
3108else
a243b558
JF
3109 if test -n "$CXX"; then
3110 ac_cv_prog_CXX="$CXX" # Let the user override the test.
dbadc56a
DWT
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
dbadc56a
DWT
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123done
3124 done
3125IFS=$as_save_IFS
3126
3127fi
3128fi
a243b558
JF
3129CXX=$ac_cv_prog_CXX
3130if test -n "$CXX"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3132$as_echo "$CXX" >&6; }
35fa52c0
DWT
3133else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138
a243b558 3139 test -n "$CXX" && break
35fa52c0
DWT
3140 done
3141fi
a243b558
JF
3142if test -z "$CXX"; then
3143 ac_ct_CXX=$CXX
3144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35fa52c0
DWT
3145do
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147set dummy $ac_prog; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3150if ${ac_cv_prog_ac_ct_CXX+:} false; then :
35fa52c0
DWT
3151 $as_echo_n "(cached) " >&6
3152else
a243b558
JF
3153 if test -n "$ac_ct_CXX"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35fa52c0
DWT
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3163 ac_cv_prog_ac_ct_CXX="$ac_prog"
35fa52c0
DWT
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167done
3168 done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
a243b558
JF
3173ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3174if test -n "$ac_ct_CXX"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3176$as_echo "$ac_ct_CXX" >&6; }
35fa52c0
DWT
3177else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182
a243b558 3183 test -n "$ac_ct_CXX" && break
35fa52c0
DWT
3184done
3185
a243b558
JF
3186 if test "x$ac_ct_CXX" = x; then
3187 CXX="g++"
35fa52c0
DWT
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190yes:)
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193ac_tool_warned=yes ;;
3194esac
a243b558 3195 CXX=$ac_ct_CXX
35fa52c0
DWT
3196 fi
3197fi
3198
a243b558 3199 fi
35fa52c0 3200fi
35fa52c0 3201# Provide some information about the compiler.
a243b558 3202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
35fa52c0
DWT
3203set X $ac_compile
3204ac_compiler=$2
3205for ac_option in --version -v -V -qversion; do
3206 { { ac_try="$ac_compiler $ac_option >&5"
3207case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212$as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3214 ac_status=$?
3215 if test -s conftest.err; then
3216 sed '10a\
3217... rest of stderr output deleted ...
3218 10q' conftest.err >conftest.er1
3219 cat conftest.er1 >&5
35fa52c0 3220 fi
9c60689e 3221 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224done
3225
3226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227/* end confdefs.h. */
9c60689e 3228
35fa52c0
DWT
3229int
3230main ()
3231{
35fa52c0
DWT
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237ac_clean_files_save=$ac_clean_files
9c60689e 3238ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3239# Try to create an executable without -o first, disregard a.out.
3240# It will help us diagnose broken compilers, and finding out an intuition
3241# of exeext.
a243b558
JF
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3243$as_echo_n "checking whether the C++ compiler works... " >&6; }
35fa52c0
DWT
3244ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245
3246# The possible output files:
3247ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248
3249ac_rmfiles=
3250for ac_file in $ac_files
3251do
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255 esac
3256done
3257rm -f $ac_rmfiles
3258
3259if { { ac_try="$ac_link_default"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link_default") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272# in a Makefile. We should not override ac_cv_exeext if it was cached,
3273# so that the user can short-circuit this test for compilers unknown to
3274# Autoconf.
3275for ac_file in $ac_files ''
3276do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 ;;
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
3286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 fi
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
3295 break;;
3296 * )
3297 break;;
3298 esac
3299done
3300test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302else
3303 ac_file=''
3304fi
35fa52c0 3305if test -z "$ac_file"; then :
9c60689e
DWT
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3313as_fn_error 77 "C++ compiler cannot create executables
ee134472 3314See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3315else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
35fa52c0 3318fi
a243b558
JF
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3320$as_echo_n "checking for C++ compiler default output file name... " >&6; }
9c60689e
DWT
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3323ac_exeext=$ac_cv_exeext
3324
9c60689e 3325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3326ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3328$as_echo_n "checking for suffix of executables... " >&6; }
3329if { { ac_try="$ac_link"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; then :
3340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3342# work properly (i.e., refer to `conftest.exe'), while it won't with
3343# `rm'.
3344for ac_file in conftest.exe conftest conftest.*; do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 break;;
3350 * ) break;;
3351 esac
3352done
3353else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3356as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3357See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3358fi
9c60689e 3359rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3361$as_echo "$ac_cv_exeext" >&6; }
3362
3363rm -f conftest.$ac_ext
3364EXEEXT=$ac_cv_exeext
3365ac_exeext=$EXEEXT
9c60689e
DWT
3366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h. */
3368#include <stdio.h>
3369int
3370main ()
3371{
3372FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379ac_clean_files="$ac_clean_files conftest.out"
3380# Check that the compiler produces executables we can run. If not, either
3381# the compiler is broken, or we cross compile.
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383$as_echo_n "checking whether we are cross compiling... " >&6; }
3384if test "$cross_compiling" != yes; then
3385 { { ac_try="$ac_link"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 if { ac_try='./conftest$ac_cv_exeext'
3397 { { case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3414as_fn_error $? "cannot run C++ compiled programs.
9c60689e 3415If you meant to cross compile, use \`--host'.
ee134472 3416See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3417 fi
3418 fi
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421$as_echo "$cross_compiling" >&6; }
3422
3423rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3426$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3427if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3428 $as_echo_n "(cached) " >&6
3429else
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432
3433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.o conftest.obj
3442if { { ac_try="$ac_compile"
3443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compile") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458 break;;
3459 esac
3460done
3461else
3462 $as_echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3467as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3468See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3469fi
3470rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471fi
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3473$as_echo "$ac_cv_objext" >&6; }
3474OBJEXT=$ac_cv_objext
3475ac_objext=$OBJEXT
a243b558
JF
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3477$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3478if ${ac_cv_cxx_compiler_gnu+:} false; then :
35fa52c0
DWT
3479 $as_echo_n "(cached) " >&6
3480else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h. */
3483
3484int
3485main ()
3486{
3487#ifndef __GNUC__
3488 choke me
3489#endif
3490
3491 ;
3492 return 0;
3493}
3494_ACEOF
a243b558 3495if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3496 ac_compiler_gnu=yes
3497else
3498 ac_compiler_gnu=no
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3501ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3502
3503fi
a243b558
JF
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3505$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35fa52c0 3506if test $ac_compiler_gnu = yes; then
a243b558 3507 GXX=yes
35fa52c0 3508else
a243b558 3509 GXX=
35fa52c0 3510fi
a243b558
JF
3511ac_test_CXXFLAGS=${CXXFLAGS+set}
3512ac_save_CXXFLAGS=$CXXFLAGS
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3514$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3515if ${ac_cv_prog_cxx_g+:} false; then :
35fa52c0
DWT
3516 $as_echo_n "(cached) " >&6
3517else
a243b558
JF
3518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3519 ac_cxx_werror_flag=yes
3520 ac_cv_prog_cxx_g=no
3521 CXXFLAGS="-g"
35fa52c0
DWT
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
a243b558
JF
3533if ac_fn_cxx_try_compile "$LINENO"; then :
3534 ac_cv_prog_cxx_g=yes
35fa52c0 3535else
a243b558 3536 CXXFLAGS=""
35fa52c0
DWT
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
a243b558 3548if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3549
3550else
a243b558
JF
3551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3552 CXXFLAGS="-g"
35fa52c0
DWT
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
a243b558
JF
3564if ac_fn_cxx_try_compile "$LINENO"; then :
3565 ac_cv_prog_cxx_g=yes
35fa52c0
DWT
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568fi
3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570fi
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35fa52c0 3573fi
a243b558
JF
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3575$as_echo "$ac_cv_prog_cxx_g" >&6; }
3576if test "$ac_test_CXXFLAGS" = set; then
3577 CXXFLAGS=$ac_save_CXXFLAGS
3578elif test $ac_cv_prog_cxx_g = yes; then
3579 if test "$GXX" = yes; then
3580 CXXFLAGS="-g -O2"
35fa52c0 3581 else
a243b558 3582 CXXFLAGS="-g"
35fa52c0
DWT
3583 fi
3584else
a243b558
JF
3585 if test "$GXX" = yes; then
3586 CXXFLAGS="-O2"
35fa52c0 3587 else
a243b558 3588 CXXFLAGS=
35fa52c0
DWT
3589 fi
3590fi
a243b558
JF
3591ac_ext=c
3592ac_cpp='$CPP $CPPFLAGS'
3593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596DEPDIR="${am__leading_dot}deps"
35fa52c0 3597
a243b558 3598ac_config_commands="$ac_config_commands depfiles"
35fa52c0 3599
35fa52c0 3600
a243b558
JF
3601am_make=${MAKE-make}
3602cat > confinc << 'END'
3603am__doit:
3604 @echo this is the am__doit target
3605.PHONY: am__doit
3606END
3607# If we don't find an include directive, just comment out the code.
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3609$as_echo_n "checking for style of include used by $am_make... " >&6; }
3610am__include="#"
3611am__quote=
3612_am_result=none
3613# First try GNU make style include.
3614echo "include confinc" > confmf
3615# Ignore all kinds of additional output from 'make'.
3616case `$am_make -s -f confmf 2> /dev/null` in #(
3617*the\ am__doit\ target*)
3618 am__include=include
3619 am__quote=
3620 _am_result=GNU
3621 ;;
3622esac
3623# Now try BSD make style include.
3624if test "$am__include" = "#"; then
3625 echo '.include "confinc"' > confmf
3626 case `$am_make -s -f confmf 2> /dev/null` in #(
3627 *the\ am__doit\ target*)
3628 am__include=.include
3629 am__quote="\""
3630 _am_result=BSD
3631 ;;
3632 esac
35fa52c0 3633fi
35fa52c0 3634
a243b558
JF
3635
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3637$as_echo "$_am_result" >&6; }
3638rm -f confinc confmf
3639
3640# Check whether --enable-dependency-tracking was given.
3641if test "${enable_dependency_tracking+set}" = set; then :
3642 enableval=$enable_dependency_tracking;
35fa52c0 3643fi
35fa52c0 3644
a243b558
JF
3645if test "x$enable_dependency_tracking" != xno; then
3646 am_depcomp="$ac_aux_dir/depcomp"
3647 AMDEPBACKSLASH='\'
3648 am__nodep='_no'
3649fi
3650 if test "x$enable_dependency_tracking" != xno; then
3651 AMDEP_TRUE=
3652 AMDEP_FALSE='#'
3653else
3654 AMDEP_TRUE='#'
3655 AMDEP_FALSE=
35fa52c0
DWT
3656fi
3657
35fa52c0 3658
a243b558
JF
3659
3660depcc="$CXX" am_compiler_list=
66170b30
JF
3661
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3663$as_echo_n "checking dependency style of $depcc... " >&6; }
a243b558 3664if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
66170b30
JF
3665 $as_echo_n "(cached) " >&6
3666else
3667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3668 # We make a subdir and do the tests there. Otherwise we can end up
3669 # making bogus files that we don't know about and never remove. For
3670 # instance it was reported that on HP-UX the gcc test will end up
3671 # making a dummy file named 'D' -- because '-MD' means "put the output
3672 # in D".
3673 rm -rf conftest.dir
3674 mkdir conftest.dir
3675 # Copy depcomp to subdir because otherwise we won't find it if we're
3676 # using a relative directory.
3677 cp "$am_depcomp" conftest.dir
3678 cd conftest.dir
3679 # We will build objects and dependencies in a subdirectory because
3680 # it helps to detect inapplicable dependency modes. For instance
3681 # both Tru64's cc and ICC support -MD to output dependencies as a
3682 # side effect of compilation, but ICC will put the dependencies in
3683 # the current directory while Tru64 will put them in the object
3684 # directory.
3685 mkdir sub
3686
a243b558 3687 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3688 if test "$am_compiler_list" = ""; then
3689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3690 fi
3691 am__universal=false
3692 case " $depcc " in #(
3693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3694 esac
3695
3696 for depmode in $am_compiler_list; do
3697 # Setup a source with many dependencies, because some compilers
3698 # like to wrap large dependency lists on column 80 (with \), and
3699 # we should not choose a depcomp mode which is confused by this.
3700 #
3701 # We need to recreate these files for each test, as the compiler may
3702 # overwrite some of them when testing with obscure command lines.
3703 # This happens at least with the AIX C compiler.
3704 : > sub/conftest.c
3705 for i in 1 2 3 4 5 6; do
3706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3707 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3708 # Solaris 10 /bin/sh.
3709 echo '/* dummy */' > sub/conftst$i.h
3710 done
3711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3712
3713 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3714 # mode. It turns out that the SunPro C++ compiler does not properly
3715 # handle '-M -o', and we need to detect this. Also, some Intel
3716 # versions had trouble with output in subdirs.
3717 am__obj=sub/conftest.${OBJEXT-o}
3718 am__minus_obj="-o $am__obj"
3719 case $depmode in
3720 gcc)
3721 # This depmode causes a compiler race in universal mode.
3722 test "$am__universal" = false || continue
3723 ;;
3724 nosideeffect)
3725 # After this tag, mechanisms are not by side-effect, so they'll
3726 # only be used when explicitly requested.
3727 if test "x$enable_dependency_tracking" = xyes; then
3728 continue
3729 else
3730 break
3731 fi
3732 ;;
3733 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3734 # This compiler won't grok '-c -o', but also, the minuso test has
3735 # not run yet. These depmodes are late enough in the game, and
3736 # so weak that their functioning should not be impacted.
3737 am__obj=conftest.${OBJEXT-o}
3738 am__minus_obj=
3739 ;;
3740 none) break ;;
3741 esac
3742 if depmode=$depmode \
3743 source=sub/conftest.c object=$am__obj \
3744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3746 >/dev/null 2>conftest.err &&
3747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3751 # icc doesn't choke on unknown options, it will just issue warnings
3752 # or remarks (even with -Werror). So we grep stderr for any message
3753 # that says an option was ignored or not supported.
3754 # When given -MP, icc 7.0 and 7.1 complain thusly:
3755 # icc: Command line warning: ignoring option '-M'; no argument required
3756 # The diagnosis changed in icc 8.0:
3757 # icc: Command line remark: option '-MP' not supported
3758 if (grep 'ignoring option' conftest.err ||
3759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a243b558 3760 am_cv_CXX_dependencies_compiler_type=$depmode
66170b30
JF
3761 break
3762 fi
3763 fi
3764 done
3765
3766 cd ..
3767 rm -rf conftest.dir
3768else
a243b558 3769 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3770fi
3771
3772fi
a243b558
JF
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3774$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3775CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
66170b30
JF
3776
3777 if
3778 test "x$enable_dependency_tracking" != xno \
a243b558
JF
3779 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3780 am__fastdepCXX_TRUE=
3781 am__fastdepCXX_FALSE='#'
66170b30 3782else
a243b558
JF
3783 am__fastdepCXX_TRUE='#'
3784 am__fastdepCXX_FALSE=
66170b30
JF
3785fi
3786
3787
a243b558
JF
3788ac_ext=mm
3789ac_cpp='$OBJCXXCPP $CPPFLAGS'
3790ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3793if test -n "$ac_tool_prefix"; then
3794 for ac_prog in g++ objc++ objcxx c++ CXX
3795 do
3796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
3800if ${ac_cv_prog_OBJCXX+:} false; then :
35fa52c0
DWT
3801 $as_echo_n "(cached) " >&6
3802else
a243b558
JF
3803 if test -n "$OBJCXX"; then
3804 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
35fa52c0
DWT
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817done
9c60689e
DWT
3818 done
3819IFS=$as_save_IFS
35fa52c0 3820
9c60689e 3821fi
a243b558
JF
3822fi
3823OBJCXX=$ac_cv_prog_OBJCXX
3824if test -n "$OBJCXX"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3826$as_echo "$OBJCXX" >&6; }
3827else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
3830fi
35fa52c0 3831
35fa52c0 3832
a243b558
JF
3833 test -n "$OBJCXX" && break
3834 done
3835fi
3836if test -z "$OBJCXX"; then
3837 ac_ct_OBJCXX=$OBJCXX
3838 for ac_prog in g++ objc++ objcxx c++ CXX
3839do
3840 # Extract the first word of "$ac_prog", so it can be a program name with args.
3841set dummy $ac_prog; ac_word=$2
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843$as_echo_n "checking for $ac_word... " >&6; }
3844if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
9c60689e
DWT
3845 $as_echo_n "(cached) " >&6
3846else
a243b558
JF
3847 if test -n "$ac_ct_OBJCXX"; then
3848 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3849else
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
9c60689e
DWT
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
9c60689e 3855 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861done
9c60689e
DWT
3862 done
3863IFS=$as_save_IFS
a243b558
JF
3864
3865fi
3866fi
3867ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3868if test -n "$ac_ct_OBJCXX"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3870$as_echo "$ac_ct_OBJCXX" >&6; }
9c60689e 3871else
a243b558
JF
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873$as_echo "no" >&6; }
9c60689e 3874fi
6b66678a
DWT
3875
3876
a243b558
JF
3877 test -n "$ac_ct_OBJCXX" && break
3878done
6b66678a 3879
a243b558
JF
3880 if test "x$ac_ct_OBJCXX" = x; then
3881 OBJCXX="g++"
3882 else
3883 case $cross_compiling:$ac_tool_warned in
3884yes:)
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3887ac_tool_warned=yes ;;
9c60689e 3888esac
a243b558 3889 OBJCXX=$ac_ct_OBJCXX
9c60689e 3890 fi
9c60689e 3891fi
6b66678a 3892
a243b558
JF
3893# Provide some information about the compiler.
3894$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3895set X $ac_compile
3896ac_compiler=$2
3897for ac_option in --version -v -V -qversion; do
3898 { { ac_try="$ac_compiler $ac_option >&5"
3899case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902esac
3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904$as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3906 ac_status=$?
3907 if test -s conftest.err; then
3908 sed '10a\
3909... rest of stderr output deleted ...
3910 10q' conftest.err >conftest.er1
3911 cat conftest.er1 >&5
3912 fi
3913 rm -f conftest.er1 conftest.err
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }
3916done
6b66678a 3917
a243b558
JF
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3919$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3920if ${ac_cv_objcxx_compiler_gnu+:} false; then :
9c60689e 3921 $as_echo_n "(cached) " >&6
6b66678a 3922else
a243b558
JF
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h. */
6b66678a 3925
a243b558
JF
3926int
3927main ()
3928{
3929#ifndef __GNUC__
3930 choke me
3931#endif
3932
3933 ;
3934 return 0;
3935}
3936_ACEOF
3937if ac_fn_objcxx_try_compile "$LINENO"; then :
3938 ac_compiler_gnu=yes
9c60689e 3939else
a243b558 3940 ac_compiler_gnu=no
6b66678a 3941fi
a243b558
JF
3942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
3944
3945fi
a243b558
JF
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3947$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3948if test $ac_compiler_gnu = yes; then
3949 GOBJCXX=yes
3950else
3951 GOBJCXX=
3952fi
3953ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3954ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3956$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3957if ${ac_cv_prog_objcxx_g+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959else
3960 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3961 ac_objcxx_werror_flag=yes
3962 ac_cv_prog_objcxx_g=no
3963 OBJCXXFLAGS="-g"
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
309b0535 3966
a243b558
JF
3967int
3968main ()
3969{
309b0535 3970
a243b558
JF
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975if ac_fn_objcxx_try_compile "$LINENO"; then :
3976 ac_cv_prog_objcxx_g=yes
3977else
3978 OBJCXXFLAGS=""
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h. */
309b0535 3981
a243b558
JF
3982int
3983main ()
3984{
309b0535 3985
a243b558
JF
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990if ac_fn_objcxx_try_compile "$LINENO"; then :
309b0535 3991
a243b558
JF
3992else
3993 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3994 OBJCXXFLAGS="-g"
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h. */
309b0535 3997
a243b558
JF
3998int
3999main ()
4000{
309b0535 4001
a243b558
JF
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006if ac_fn_objcxx_try_compile "$LINENO"; then :
4007 ac_cv_prog_objcxx_g=yes
9c60689e 4008fi
a243b558 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4010fi
a243b558 4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4012fi
a243b558
JF
4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
9c60689e 4015fi
a243b558
JF
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4017$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4018if test "$ac_test_OBJCXXFLAGS" = set; then
4019 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4020elif test $ac_cv_prog_objcxx_g = yes; then
4021 if test "$GOBJCXX" = yes; then
4022 OBJCXXFLAGS="-g -O2"
4023 else
4024 OBJCXXFLAGS="-g"
4025 fi
9c60689e 4026else
a243b558
JF
4027 if test "$GOBJCXX" = yes; then
4028 OBJCXXFLAGS="-O2"
4029 else
4030 OBJCXXFLAGS=
4031 fi
9c60689e 4032fi
a243b558
JF
4033ac_ext=c
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4038
a243b558 4039depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
309b0535 4040
a243b558
JF
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4042$as_echo_n "checking dependency style of $depcc... " >&6; }
4043if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045else
4046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4047 # We make a subdir and do the tests there. Otherwise we can end up
4048 # making bogus files that we don't know about and never remove. For
4049 # instance it was reported that on HP-UX the gcc test will end up
4050 # making a dummy file named 'D' -- because '-MD' means "put the output
4051 # in D".
4052 rm -rf conftest.dir
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
309b0535 4065
a243b558
JF
4066 am_cv_OBJCXX_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
4070 am__universal=false
309b0535 4071
9c60689e 4072
a243b558
JF
4073 for depmode in $am_compiler_list; do
4074 # Setup a source with many dependencies, because some compilers
4075 # like to wrap large dependency lists on column 80 (with \), and
4076 # we should not choose a depcomp mode which is confused by this.
4077 #
4078 # We need to recreate these files for each test, as the compiler may
4079 # overwrite some of them when testing with obscure command lines.
4080 # This happens at least with the AIX C compiler.
4081 : > sub/conftest.c
4082 for i in 1 2 3 4 5 6; do
4083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4084 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4085 # Solaris 10 /bin/sh.
4086 echo '/* dummy */' > sub/conftst$i.h
4087 done
4088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4089
a243b558
JF
4090 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4091 # mode. It turns out that the SunPro C++ compiler does not properly
4092 # handle '-M -o', and we need to detect this. Also, some Intel
4093 # versions had trouble with output in subdirs.
4094 am__obj=sub/conftest.${OBJEXT-o}
4095 am__minus_obj="-o $am__obj"
4096 case $depmode in
4097 gcc)
4098 # This depmode causes a compiler race in universal mode.
4099 test "$am__universal" = false || continue
4100 ;;
4101 nosideeffect)
4102 # After this tag, mechanisms are not by side-effect, so they'll
4103 # only be used when explicitly requested.
4104 if test "x$enable_dependency_tracking" = xyes; then
4105 continue
4106 else
4107 break
309b0535 4108 fi
a243b558
JF
4109 ;;
4110 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4111 # This compiler won't grok '-c -o', but also, the minuso test has
4112 # not run yet. These depmodes are late enough in the game, and
4113 # so weak that their functioning should not be impacted.
4114 am__obj=conftest.${OBJEXT-o}
4115 am__minus_obj=
4116 ;;
4117 none) break ;;
4118 esac
4119 if depmode=$depmode \
4120 source=sub/conftest.c object=$am__obj \
4121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4123 >/dev/null 2>conftest.err &&
4124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4128 # icc doesn't choke on unknown options, it will just issue warnings
4129 # or remarks (even with -Werror). So we grep stderr for any message
4130 # that says an option was ignored or not supported.
4131 # When given -MP, icc 7.0 and 7.1 complain thusly:
4132 # icc: Command line warning: ignoring option '-M'; no argument required
4133 # The diagnosis changed in icc 8.0:
4134 # icc: Command line remark: option '-MP' not supported
4135 if (grep 'ignoring option' conftest.err ||
4136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4137 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4138 break
4139 fi
4140 fi
309b0535 4141 done
a243b558
JF
4142
4143 cd ..
4144 rm -rf conftest.dir
4145else
4146 am_cv_OBJCXX_dependencies_compiler_type=none
9c60689e 4147fi
a243b558 4148
9c60689e 4149fi
a243b558
JF
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4151$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4152OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4153
4154 if
4155 test "x$enable_dependency_tracking" != xno \
4156 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4157 am__fastdepOBJCXX_TRUE=
4158 am__fastdepOBJCXX_FALSE='#'
9c60689e 4159else
a243b558
JF
4160 am__fastdepOBJCXX_TRUE='#'
4161 am__fastdepOBJCXX_FALSE=
4162fi
4163
4164
4165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4172set dummy ${ac_tool_prefix}gcc; ac_word=$2
35fa52c0
DWT
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4175if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
4176 $as_echo_n "(cached) " >&6
4177else
a243b558
JF
4178 if test -n "$CC"; then
4179 ac_cv_prog_CC="$CC" # Let the user override the test.
35fa52c0
DWT
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
35fa52c0
DWT
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192done
4193 done
4194IFS=$as_save_IFS
4195
4196fi
4197fi
a243b558
JF
4198CC=$ac_cv_prog_CC
4199if test -n "$CC"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201$as_echo "$CC" >&6; }
35fa52c0
DWT
4202else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
4205fi
4206
4207
35fa52c0 4208fi
a243b558
JF
4209if test -z "$ac_cv_prog_CC"; then
4210 ac_ct_CC=$CC
4211 # Extract the first word of "gcc", so it can be a program name with args.
4212set dummy gcc; ac_word=$2
35fa52c0
DWT
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4215if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4216 $as_echo_n "(cached) " >&6
4217else
a243b558
JF
4218 if test -n "$ac_ct_CC"; then
4219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
4220else
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4228 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232done
4233 done
4234IFS=$as_save_IFS
4235
4236fi
4237fi
a243b558
JF
4238ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239if test -n "$ac_ct_CC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
4242else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246
a243b558
JF
4247 if test "x$ac_ct_CC" = x; then
4248 CC=""
35fa52c0
DWT
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251yes:)
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254ac_tool_warned=yes ;;
4255esac
a243b558 4256 CC=$ac_ct_CC
35fa52c0 4257 fi
a243b558
JF
4258else
4259 CC="$ac_cv_prog_CC"
35fa52c0
DWT
4260fi
4261
a243b558
JF
4262if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4265set dummy ${ac_tool_prefix}cc; ac_word=$2
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if ${ac_cv_prog_CC+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_prog_CC="${ac_tool_prefix}cc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
ee134472 4284 fi
a243b558
JF
4285done
4286 done
4287IFS=$as_save_IFS
9c60689e 4288
35fa52c0 4289fi
a243b558
JF
4290fi
4291CC=$ac_cv_prog_CC
4292if test -n "$CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294$as_echo "$CC" >&6; }
4295else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
4298fi
35fa52c0 4299
35fa52c0 4300
a243b558
JF
4301 fi
4302fi
4303if test -z "$CC"; then
4304 # Extract the first word of "cc", so it can be a program name with args.
4305set dummy cc; ac_word=$2
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if ${ac_cv_prog_CC+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310else
4311 if test -n "$CC"; then
4312 ac_cv_prog_CC="$CC" # Let the user override the test.
4313else
4314 ac_prog_rejected=no
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323 ac_prog_rejected=yes
4324 continue
4325 fi
4326 ac_cv_prog_CC="cc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331 done
4332IFS=$as_save_IFS
35fa52c0 4333
a243b558
JF
4334if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_CC
4337 shift
4338 if test $# != 0; then
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set CC to just the basename; use the full file name.
4342 shift
4343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4344 fi
4345fi
4346fi
4347fi
4348CC=$ac_cv_prog_CC
4349if test -n "$CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351$as_echo "$CC" >&6; }
4352else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354$as_echo "no" >&6; }
4355fi
9c60689e
DWT
4356
4357
a243b558
JF
4358fi
4359if test -z "$CC"; then
4360 if test -n "$ac_tool_prefix"; then
4361 for ac_prog in cl.exe
4362 do
4363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366$as_echo_n "checking for $ac_word... " >&6; }
4367if ${ac_cv_prog_CC+:} false; then :
9c60689e
DWT
4368 $as_echo_n "(cached) " >&6
4369else
a243b558
JF
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC="$CC" # Let the user override the test.
4372else
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
9c60689e 4383 fi
a243b558
JF
4384done
4385 done
4386IFS=$as_save_IFS
9c60689e 4387
a243b558
JF
4388fi
4389fi
4390CC=$ac_cv_prog_CC
4391if test -n "$CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4393$as_echo "$CC" >&6; }
35fa52c0 4394else
a243b558
JF
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396$as_echo "no" >&6; }
35fa52c0 4397fi
9c60689e 4398
a243b558
JF
4399
4400 test -n "$CC" && break
4401 done
4402fi
4403if test -z "$CC"; then
4404 ac_ct_CC=$CC
4405 for ac_prog in cl.exe
4406do
4407 # Extract the first word of "$ac_prog", so it can be a program name with args.
4408set dummy $ac_prog; ac_word=$2
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410$as_echo_n "checking for $ac_word... " >&6; }
4411if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4412 $as_echo_n "(cached) " >&6
4413else
a243b558
JF
4414 if test -n "$ac_ct_CC"; then
4415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4416else
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_prog_ac_ct_CC="$ac_prog"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428done
4429 done
4430IFS=$as_save_IFS
9c60689e 4431
a243b558
JF
4432fi
4433fi
4434ac_ct_CC=$ac_cv_prog_ac_ct_CC
4435if test -n "$ac_ct_CC"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4437$as_echo "$ac_ct_CC" >&6; }
4438else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440$as_echo "no" >&6; }
4441fi
35fa52c0 4442
35fa52c0 4443
a243b558
JF
4444 test -n "$ac_ct_CC" && break
4445done
35fa52c0 4446
a243b558
JF
4447 if test "x$ac_ct_CC" = x; then
4448 CC=""
4449 else
4450 case $cross_compiling:$ac_tool_warned in
4451yes:)
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4454ac_tool_warned=yes ;;
4455esac
4456 CC=$ac_ct_CC
4457 fi
4458fi
ee134472 4459
a243b558 4460fi
35fa52c0 4461
35fa52c0 4462
a243b558
JF
4463test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "no acceptable C compiler found in \$PATH
4466See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 4467
a243b558
JF
4468# Provide some information about the compiler.
4469$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4470set X $ac_compile
4471ac_compiler=$2
4472for ac_option in --version -v -V -qversion; do
4473 { { ac_try="$ac_compiler $ac_option >&5"
4474case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477esac
4478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479$as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4481 ac_status=$?
4482 if test -s conftest.err; then
4483 sed '10a\
4484... rest of stderr output deleted ...
4485 10q' conftest.err >conftest.er1
4486 cat conftest.er1 >&5
4487 fi
4488 rm -f conftest.er1 conftest.err
4489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }
4491done
53ba6704 4492
a243b558
JF
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4494$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4495if ${ac_cv_c_compiler_gnu+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497else
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h. */
35fa52c0 4500
a243b558
JF
4501int
4502main ()
4503{
4504#ifndef __GNUC__
4505 choke me
4506#endif
9c60689e 4507
a243b558
JF
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_compiler_gnu=yes
35fa52c0 4514else
a243b558 4515 ac_compiler_gnu=no
35fa52c0 4516fi
a243b558
JF
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518ac_cv_c_compiler_gnu=$ac_compiler_gnu
9c60689e 4519
a243b558
JF
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4522$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4523if test $ac_compiler_gnu = yes; then
4524 GCC=yes
35fa52c0 4525else
a243b558 4526 GCC=
9c60689e 4527fi
a243b558
JF
4528ac_test_CFLAGS=${CFLAGS+set}
4529ac_save_CFLAGS=$CFLAGS
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4531$as_echo_n "checking whether $CC accepts -g... " >&6; }
4532if ${ac_cv_prog_cc_g+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535 ac_save_c_werror_flag=$ac_c_werror_flag
4536 ac_c_werror_flag=yes
4537 ac_cv_prog_cc_g=no
4538 CFLAGS="-g"
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h. */
9c60689e 4541
a243b558
JF
4542int
4543main ()
4544{
9c60689e 4545
a243b558
JF
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550if ac_fn_c_try_compile "$LINENO"; then :
4551 ac_cv_prog_cc_g=yes
4552else
4553 CFLAGS=""
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555/* end confdefs.h. */
9c60689e 4556
a243b558
JF
4557int
4558main ()
4559{
9c60689e 4560
a243b558
JF
4561 ;
4562 return 0;
4563}
4564_ACEOF
4565if ac_fn_c_try_compile "$LINENO"; then :
9c60689e 4566
a243b558
JF
4567else
4568 ac_c_werror_flag=$ac_save_c_werror_flag
4569 CFLAGS="-g"
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h. */
35fa52c0 4572
a243b558
JF
4573int
4574main ()
4575{
9c60689e 4576
a243b558
JF
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_prog_cc_g=yes
ee134472 4583fi
a243b558
JF
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587fi
4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_c_werror_flag=$ac_save_c_werror_flag
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4592$as_echo "$ac_cv_prog_cc_g" >&6; }
4593if test "$ac_test_CFLAGS" = set; then
4594 CFLAGS=$ac_save_CFLAGS
4595elif test $ac_cv_prog_cc_g = yes; then
4596 if test "$GCC" = yes; then
4597 CFLAGS="-g -O2"
4598 else
4599 CFLAGS="-g"
4600 fi
ee134472 4601else
a243b558
JF
4602 if test "$GCC" = yes; then
4603 CFLAGS="-O2"
4604 else
4605 CFLAGS=
4606 fi
ee134472 4607fi
a243b558
JF
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4609$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4610if ${ac_cv_prog_cc_c89+:} false; then :
35fa52c0
DWT
4611 $as_echo_n "(cached) " >&6
4612else
a243b558
JF
4613 ac_cv_prog_cc_c89=no
4614ac_save_CC=$CC
4615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
4617#include <stdarg.h>
4618#include <stdio.h>
4619struct stat;
4620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4621struct buf { int x; };
4622FILE * (*rcsopen) (struct buf *, struct stat *, int);
4623static char *e (p, i)
4624 char **p;
4625 int i;
4626{
4627 return p[i];
4628}
4629static char *f (char * (*g) (char **, int), char **p, ...)
4630{
4631 char *s;
4632 va_list v;
4633 va_start (v,p);
4634 s = g (p, va_arg (v,int));
4635 va_end (v);
4636 return s;
4637}
9c60689e 4638
a243b558
JF
4639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4640 function prototypes and stuff, but not '\xHH' hex character constants.
4641 These don't provoke an error unfortunately, instead are silently treated
4642 as 'x'. The following induces an error, until -std is added to get
4643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4644 array size at least. It's necessary to write '\x00'==0 to get something
4645 that's true only with -std. */
4646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9c60689e 4647
a243b558
JF
4648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4649 inside strings and character constants. */
4650#define FOO(x) 'x'
4651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9c60689e 4652
a243b558
JF
4653int test (int i, double x);
4654struct s1 {int (*f) (int a);};
4655struct s2 {int (*f) (double a);};
4656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4657int argc;
4658char **argv;
4659int
4660main ()
4661{
4662return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9c60689e 4669do
a243b558
JF
4670 CC="$ac_save_CC $ac_arg"
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_prog_cc_c89=$ac_arg
4673fi
4674rm -f core conftest.err conftest.$ac_objext
4675 test "x$ac_cv_prog_cc_c89" != "xno" && break
9c60689e 4676done
a243b558
JF
4677rm -f conftest.$ac_ext
4678CC=$ac_save_CC
35fa52c0 4679
35fa52c0 4680fi
a243b558
JF
4681# AC_CACHE_VAL
4682case "x$ac_cv_prog_cc_c89" in
4683 x)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4685$as_echo "none needed" >&6; } ;;
4686 xno)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4688$as_echo "unsupported" >&6; } ;;
4689 *)
4690 CC="$CC $ac_cv_prog_cc_c89"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4692$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4693esac
4694if test "x$ac_cv_prog_cc_c89" != xno; then :
4695
35fa52c0 4696fi
9c60689e 4697
a243b558
JF
4698ac_ext=c
4699ac_cpp='$CPP $CPPFLAGS'
4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703
4704depcc="$CC" am_compiler_list=
9c60689e 4705
a243b558
JF
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4707$as_echo_n "checking dependency style of $depcc... " >&6; }
4708if ${am_cv_CC_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4709 $as_echo_n "(cached) " >&6
4710else
a243b558
JF
4711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4712 # We make a subdir and do the tests there. Otherwise we can end up
4713 # making bogus files that we don't know about and never remove. For
4714 # instance it was reported that on HP-UX the gcc test will end up
4715 # making a dummy file named 'D' -- because '-MD' means "put the output
4716 # in D".
4717 rm -rf conftest.dir
4718 mkdir conftest.dir
4719 # Copy depcomp to subdir because otherwise we won't find it if we're
4720 # using a relative directory.
4721 cp "$am_depcomp" conftest.dir
4722 cd conftest.dir
4723 # We will build objects and dependencies in a subdirectory because
4724 # it helps to detect inapplicable dependency modes. For instance
4725 # both Tru64's cc and ICC support -MD to output dependencies as a
4726 # side effect of compilation, but ICC will put the dependencies in
4727 # the current directory while Tru64 will put them in the object
4728 # directory.
4729 mkdir sub
4730
4731 am_cv_CC_dependencies_compiler_type=none
4732 if test "$am_compiler_list" = ""; then
4733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4734 fi
4735 am__universal=false
4736 case " $depcc " in #(
4737 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4738 esac
4739
4740 for depmode in $am_compiler_list; do
4741 # Setup a source with many dependencies, because some compilers
4742 # like to wrap large dependency lists on column 80 (with \), and
4743 # we should not choose a depcomp mode which is confused by this.
4744 #
4745 # We need to recreate these files for each test, as the compiler may
4746 # overwrite some of them when testing with obscure command lines.
4747 # This happens at least with the AIX C compiler.
4748 : > sub/conftest.c
4749 for i in 1 2 3 4 5 6; do
4750 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4751 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4752 # Solaris 10 /bin/sh.
4753 echo '/* dummy */' > sub/conftst$i.h
4754 done
4755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4756
4757 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4758 # mode. It turns out that the SunPro C++ compiler does not properly
4759 # handle '-M -o', and we need to detect this. Also, some Intel
4760 # versions had trouble with output in subdirs.
4761 am__obj=sub/conftest.${OBJEXT-o}
4762 am__minus_obj="-o $am__obj"
4763 case $depmode in
4764 gcc)
4765 # This depmode causes a compiler race in universal mode.
4766 test "$am__universal" = false || continue
4767 ;;
4768 nosideeffect)
4769 # After this tag, mechanisms are not by side-effect, so they'll
4770 # only be used when explicitly requested.
4771 if test "x$enable_dependency_tracking" = xyes; then
4772 continue
4773 else
4774 break
4775 fi
4776 ;;
4777 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4778 # This compiler won't grok '-c -o', but also, the minuso test has
4779 # not run yet. These depmodes are late enough in the game, and
4780 # so weak that their functioning should not be impacted.
4781 am__obj=conftest.${OBJEXT-o}
4782 am__minus_obj=
4783 ;;
4784 none) break ;;
4785 esac
4786 if depmode=$depmode \
4787 source=sub/conftest.c object=$am__obj \
4788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4789 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4790 >/dev/null 2>conftest.err &&
4791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4793 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4795 # icc doesn't choke on unknown options, it will just issue warnings
4796 # or remarks (even with -Werror). So we grep stderr for any message
4797 # that says an option was ignored or not supported.
4798 # When given -MP, icc 7.0 and 7.1 complain thusly:
4799 # icc: Command line warning: ignoring option '-M'; no argument required
4800 # The diagnosis changed in icc 8.0:
4801 # icc: Command line remark: option '-MP' not supported
4802 if (grep 'ignoring option' conftest.err ||
4803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4804 am_cv_CC_dependencies_compiler_type=$depmode
4805 break
4806 fi
4807 fi
4808 done
9c60689e 4809
a243b558
JF
4810 cd ..
4811 rm -rf conftest.dir
4812else
4813 am_cv_CC_dependencies_compiler_type=none
35fa52c0 4814fi
a243b558 4815
35fa52c0 4816fi
a243b558
JF
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4818$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4819CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4820
4821 if
4822 test "x$enable_dependency_tracking" != xno \
4823 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4824 am__fastdepCC_TRUE=
4825 am__fastdepCC_FALSE='#'
4826else
4827 am__fastdepCC_TRUE='#'
4828 am__fastdepCC_FALSE=
4829fi
4830
4831
4832
4833if test -n "$ac_tool_prefix"; then
4834 for ac_prog in ar lib "link -lib"
4835 do
4836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839$as_echo_n "checking for $ac_word... " >&6; }
4840if ${ac_cv_prog_AR+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 if test -n "$AR"; then
4844 ac_cv_prog_AR="$AR" # Let the user override the test.
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857done
4858 done
4859IFS=$as_save_IFS
4860
4861fi
4862fi
4863AR=$ac_cv_prog_AR
4864if test -n "$AR"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4866$as_echo "$AR" >&6; }
35fa52c0
DWT
4867else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869$as_echo "no" >&6; }
4870fi
9c60689e 4871
a243b558
JF
4872
4873 test -n "$AR" && break
4874 done
4875fi
4876if test -z "$AR"; then
4877 ac_ct_AR=$AR
4878 for ac_prog in ar lib "link -lib"
4879do
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881set dummy $ac_prog; ac_word=$2
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883$as_echo_n "checking for $ac_word... " >&6; }
4884if ${ac_cv_prog_ac_ct_AR+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886else
4887 if test -n "$ac_ct_AR"; then
4888 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_ac_ct_AR="$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901done
4902 done
4903IFS=$as_save_IFS
4904
4905fi
4906fi
4907ac_ct_AR=$ac_cv_prog_ac_ct_AR
4908if test -n "$ac_ct_AR"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4910$as_echo "$ac_ct_AR" >&6; }
4911else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
4915
4916
4917 test -n "$ac_ct_AR" && break
4918done
4919
4920 if test "x$ac_ct_AR" = x; then
4921 AR="false"
9c60689e
DWT
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924yes:)
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927ac_tool_warned=yes ;;
35fa52c0 4928esac
a243b558 4929 AR=$ac_ct_AR
9c60689e 4930 fi
a243b558
JF
4931fi
4932
4933: ${AR=ar}
4934
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4936$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4937if ${am_cv_ar_interface+:} false; then :
4938 $as_echo_n "(cached) " >&6
9c60689e 4939else
a243b558
JF
4940 am_cv_ar_interface=ar
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h. */
4943int some_variable = 0;
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4948 (eval $am_ar_try) 2>&5
4949 ac_status=$?
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952 if test "$ac_status" -eq 0; then
4953 am_cv_ar_interface=ar
4954 else
4955 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4957 (eval $am_ar_try) 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960 test $ac_status = 0; }
4961 if test "$ac_status" -eq 0; then
4962 am_cv_ar_interface=lib
4963 else
4964 am_cv_ar_interface=unknown
4965 fi
4966 fi
4967 rm -f conftest.lib libconftest.a
4968
35fa52c0 4969fi
a243b558 4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4971
a243b558
JF
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4974$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 4975
a243b558
JF
4976case $am_cv_ar_interface in
4977ar)
4978 ;;
4979lib)
4980 # Microsoft lib, so override with the ar-lib wrapper script.
4981 # FIXME: It is wrong to rewrite AR.
4982 # But if we don't then we get into trouble of one sort or another.
4983 # A longer-term fix would be to have automake use am__AR in this case,
4984 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4985 # similar.
4986 AR="$am_aux_dir/ar-lib $AR"
4987 ;;
4988unknown)
4989 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4990 ;;
4991esac
35fa52c0 4992
35fa52c0 4993
35fa52c0 4994
a243b558
JF
4995case `pwd` in
4996 *\ * | *\ *)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4998$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4999esac
35fa52c0
DWT
5000
5001
5002
a243b558
JF
5003macro_version='2.4.2'
5004macro_revision='1.3337'
35fa52c0
DWT
5005
5006
5007
5008
5009
5010
5011
5012
5013
35fa52c0 5014
35fa52c0 5015
ee134472 5016
35fa52c0 5017
a243b558 5018ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5019
a243b558
JF
5020# Make sure we can run config.sub.
5021$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5022 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5023
a243b558
JF
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5025$as_echo_n "checking build system type... " >&6; }
5026if ${ac_cv_build+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028else
5029 ac_build_alias=$build_alias
5030test "x$ac_build_alias" = x &&
5031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5032test "x$ac_build_alias" = x &&
5033 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5036
a243b558
JF
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5039$as_echo "$ac_cv_build" >&6; }
5040case $ac_cv_build in
5041*-*-*) ;;
5042*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5043esac
5044build=$ac_cv_build
5045ac_save_IFS=$IFS; IFS='-'
5046set x $ac_cv_build
5047shift
5048build_cpu=$1
5049build_vendor=$2
5050shift; shift
5051# Remember, the first character of IFS is used to create $*,
5052# except with old shells:
5053build_os=$*
5054IFS=$ac_save_IFS
5055case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5056
35fa52c0 5057
a243b558
JF
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5059$as_echo_n "checking host system type... " >&6; }
5060if ${ac_cv_host+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062else
5063 if test "x$host_alias" = x; then
5064 ac_cv_host=$ac_cv_build
5065else
5066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5068fi
35fa52c0 5069
a243b558
JF
5070fi
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5072$as_echo "$ac_cv_host" >&6; }
5073case $ac_cv_host in
5074*-*-*) ;;
5075*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5076esac
5077host=$ac_cv_host
5078ac_save_IFS=$IFS; IFS='-'
5079set x $ac_cv_host
5080shift
5081host_cpu=$1
5082host_vendor=$2
5083shift; shift
5084# Remember, the first character of IFS is used to create $*,
5085# except with old shells:
5086host_os=$*
5087IFS=$ac_save_IFS
5088case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5089
9c60689e 5090
a243b558
JF
5091# Backslashify metacharacters that are still active within
5092# double-quoted strings.
5093sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5094
a243b558
JF
5095# Same as above, but do not quote variable references.
5096double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5097
a243b558
JF
5098# Sed substitution to delay expansion of an escaped shell variable in a
5099# double_quote_subst'ed string.
5100delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5101
a243b558
JF
5102# Sed substitution to delay expansion of an escaped single quote.
5103delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5104
a243b558
JF
5105# Sed substitution to avoid accidental globbing in evaled expressions
5106no_glob_subst='s/\*/\\\*/g'
35fa52c0 5107
a243b558
JF
5108ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5109ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5110ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5111
a243b558
JF
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5113$as_echo_n "checking how to print strings... " >&6; }
5114# Test print first, because it will be a builtin if present.
5115if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5116 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5117 ECHO='print -r --'
5118elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5119 ECHO='printf %s\n'
5120else
5121 # Use this function as a fallback that always works.
5122 func_fallback_echo ()
5123 {
5124 eval 'cat <<_LTECHO_EOF
5125$1
5126_LTECHO_EOF'
5127 }
5128 ECHO='func_fallback_echo'
ee134472
JF
5129fi
5130
a243b558
JF
5131# func_echo_all arg...
5132# Invoke $ECHO with all args, space-separated.
5133func_echo_all ()
5134{
5135 $ECHO ""
5136}
35fa52c0 5137
a243b558
JF
5138case "$ECHO" in
5139 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5140$as_echo "printf" >&6; } ;;
5141 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5142$as_echo "print -r" >&6; } ;;
5143 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5144$as_echo "cat" >&6; } ;;
5145esac
35fa52c0 5146
35fa52c0 5147
ee134472
JF
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
35fa52c0 5158
9c60689e 5159
a243b558
JF
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5161$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5162if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5163 $as_echo_n "(cached) " >&6
5164else
a243b558
JF
5165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5166 for ac_i in 1 2 3 4 5 6 7; do
5167 ac_script="$ac_script$as_nl$ac_script"
5168 done
5169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5170 { ac_script=; unset ac_script;}
5171 if test -z "$SED"; then
5172 ac_path_SED_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
a243b558 5179 for ac_prog in sed gsed; do
9c60689e 5180 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p "$ac_path_SED" || continue
5183# Check for GNU ac_path_SED and select it if it is found.
5184 # Check for GNU $ac_path_SED
5185case `"$ac_path_SED" --version 2>&1` in
5186*GNU*)
5187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5188*)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo '' >> "conftest.nl"
5197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_SED_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_SED="$ac_path_SED"
5203 ac_path_SED_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
35fa52c0 5207 done
a243b558
JF
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209esac
9c60689e 5210
a243b558
JF
5211 $ac_path_SED_found && break 3
5212 done
5213 done
9c60689e
DWT
5214 done
5215IFS=$as_save_IFS
a243b558
JF
5216 if test -z "$ac_cv_path_SED"; then
5217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5218 fi
5219else
a243b558 5220 ac_cv_path_SED=$SED
9c60689e
DWT
5221fi
5222
a243b558
JF
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5225$as_echo "$ac_cv_path_SED" >&6; }
5226 SED="$ac_cv_path_SED"
5227 rm -f conftest.sed
9c60689e 5228
a243b558
JF
5229test -z "$SED" && SED=sed
5230Xsed="$SED -e 1s/^X//"
9c60689e 5231
ee134472 5232
ee134472 5233
9c60689e
DWT
5234
5235
5236
5237
5238
5239
5240
5241
a243b558
JF
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5243$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5244if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5245 $as_echo_n "(cached) " >&6
5246else
a243b558
JF
5247 if test -z "$GREP"; then
5248 ac_path_GREP_found=false
5249 # Loop through the user's path and test for each of PROGNAME-LIST
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
a243b558 5255 for ac_prog in grep ggrep; do
9c60689e 5256 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5258 as_fn_executable_p "$ac_path_GREP" || continue
5259# Check for GNU ac_path_GREP and select it if it is found.
5260 # Check for GNU $ac_path_GREP
5261case `"$ac_path_GREP" --version 2>&1` in
5262*GNU*)
5263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5264*)
5265 ac_count=0
5266 $as_echo_n 0123456789 >"conftest.in"
5267 while :
5268 do
5269 cat "conftest.in" "conftest.in" >"conftest.tmp"
5270 mv "conftest.tmp" "conftest.in"
5271 cp "conftest.in" "conftest.nl"
5272 $as_echo 'GREP' >> "conftest.nl"
5273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275 as_fn_arith $ac_count + 1 && ac_count=$as_val
5276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5277 # Best one so far, save it but keep looking for a better one
5278 ac_cv_path_GREP="$ac_path_GREP"
5279 ac_path_GREP_max=$ac_count
5280 fi
5281 # 10*(2^10) chars as input seems more than enough
5282 test $ac_count -gt 10 && break
5283 done
5284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285esac
9c60689e 5286
a243b558
JF
5287 $ac_path_GREP_found && break 3
5288 done
ee134472 5289 done
a243b558
JF
5290 done
5291IFS=$as_save_IFS
5292 if test -z "$ac_cv_path_GREP"; then
5293 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5294 fi
5295else
5296 ac_cv_path_GREP=$GREP
9c60689e 5297fi
a243b558
JF
5298
5299fi
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5301$as_echo "$ac_cv_path_GREP" >&6; }
5302 GREP="$ac_cv_path_GREP"
5303
5304
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5306$as_echo_n "checking for egrep... " >&6; }
5307if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5308 $as_echo_n "(cached) " >&6
5309else
a243b558
JF
5310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5311 then ac_cv_path_EGREP="$GREP -E"
5312 else
5313 if test -z "$EGREP"; then
5314 ac_path_EGREP_found=false
5315 # Loop through the user's path and test for each of PROGNAME-LIST
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
a243b558 5321 for ac_prog in egrep; do
9c60689e 5322 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5324 as_fn_executable_p "$ac_path_EGREP" || continue
5325# Check for GNU ac_path_EGREP and select it if it is found.
5326 # Check for GNU $ac_path_EGREP
5327case `"$ac_path_EGREP" --version 2>&1` in
5328*GNU*)
5329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5330*)
5331 ac_count=0
5332 $as_echo_n 0123456789 >"conftest.in"
5333 while :
5334 do
5335 cat "conftest.in" "conftest.in" >"conftest.tmp"
5336 mv "conftest.tmp" "conftest.in"
5337 cp "conftest.in" "conftest.nl"
5338 $as_echo 'EGREP' >> "conftest.nl"
5339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5341 as_fn_arith $ac_count + 1 && ac_count=$as_val
5342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5343 # Best one so far, save it but keep looking for a better one
5344 ac_cv_path_EGREP="$ac_path_EGREP"
5345 ac_path_EGREP_max=$ac_count
5346 fi
5347 # 10*(2^10) chars as input seems more than enough
5348 test $ac_count -gt 10 && break
9c60689e 5349 done
a243b558
JF
5350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5351esac
9c60689e 5352
a243b558
JF
5353 $ac_path_EGREP_found && break 3
5354 done
5355 done
5356 done
5357IFS=$as_save_IFS
5358 if test -z "$ac_cv_path_EGREP"; then
5359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5360 fi
9c60689e 5361else
a243b558 5362 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5363fi
5364
a243b558
JF
5365 fi
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5368$as_echo "$ac_cv_path_EGREP" >&6; }
5369 EGREP="$ac_cv_path_EGREP"
ee134472 5370
ee134472 5371
a243b558
JF
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5373$as_echo_n "checking for fgrep... " >&6; }
5374if ${ac_cv_path_FGREP+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5378 then ac_cv_path_FGREP="$GREP -F"
5379 else
5380 if test -z "$FGREP"; then
5381 ac_path_FGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in fgrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 as_fn_executable_p "$ac_path_FGREP" || continue
5392# Check for GNU ac_path_FGREP and select it if it is found.
5393 # Check for GNU $ac_path_FGREP
5394case `"$ac_path_FGREP" --version 2>&1` in
5395*GNU*)
5396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5397*)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'FGREP' >> "conftest.nl"
5406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_FGREP="$ac_path_FGREP"
5412 ac_path_FGREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5418esac
a243b558
JF
5419
5420 $ac_path_FGREP_found && break 3
5421 done
5422 done
5423 done
5424IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_FGREP"; then
5426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5427 fi
a243b558
JF
5428else
5429 ac_cv_path_FGREP=$FGREP
ee134472
JF
5430fi
5431
a243b558
JF
5432 fi
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5435$as_echo "$ac_cv_path_FGREP" >&6; }
5436 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5437
5438
a243b558 5439test -z "$GREP" && GREP=grep
ee134472
JF
5440
5441
5442
5443
5444
5445
5446
ee134472 5447
ee134472 5448
ee134472 5449
ee134472 5450
ee134472 5451
ee134472
JF
5452
5453
5454
5455
5456
5457
5458
a243b558
JF
5459# Check whether --with-gnu-ld was given.
5460if test "${with_gnu_ld+set}" = set; then :
5461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5462else
5463 with_gnu_ld=no
5464fi
5465
5466ac_prog=ld
5467if test "$GCC" = yes; then
5468 # Check if gcc -print-prog-name=ld gives a path.
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5470$as_echo_n "checking for ld used by $CC... " >&6; }
5471 case $host in
5472 *-*-mingw*)
5473 # gcc leaves a trailing carriage return which upsets mingw
5474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5475 *)
5476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5477 esac
5478 case $ac_prog in
5479 # Accept absolute paths.
5480 [\\/]* | ?:[\\/]*)
5481 re_direlt='/[^/][^/]*/\.\./'
5482 # Canonicalize the pathname of ld
5483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5486 done
5487 test -z "$LD" && LD="$ac_prog"
5488 ;;
5489 "")
5490 # If it fails, then pretend we aren't using GCC.
5491 ac_prog=ld
5492 ;;
5493 *)
5494 # If it is relative, then search for the first ld in PATH.
5495 with_gnu_ld=unknown
5496 ;;
5497 esac
5498elif test "$with_gnu_ld" = yes; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5500$as_echo_n "checking for GNU ld... " >&6; }
5501else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5503$as_echo_n "checking for non-GNU ld... " >&6; }
5504fi
5505if ${lt_cv_path_LD+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507else
5508 if test -z "$LD"; then
5509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5510 for ac_dir in $PATH; do
5511 IFS="$lt_save_ifs"
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514 lt_cv_path_LD="$ac_dir/$ac_prog"
5515 # Check to see if the program is GNU ld. I'd rather use --version,
5516 # but apparently some variants of GNU ld only accept -v.
5517 # Break only if it was the GNU/non-GNU ld that we prefer.
5518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519 *GNU* | *'with BFD'*)
5520 test "$with_gnu_ld" != no && break
5521 ;;
5522 *)
5523 test "$with_gnu_ld" != yes && break
5524 ;;
5525 esac
5526 fi
5527 done
5528 IFS="$lt_save_ifs"
5529else
5530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5531fi
5532fi
5533
5534LD="$lt_cv_path_LD"
5535if test -n "$LD"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5537$as_echo "$LD" >&6; }
5538else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }
5541fi
5542test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5544$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5545if ${lt_cv_prog_gnu_ld+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547else
5548 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5549case `$LD -v 2>&1 </dev/null` in
5550*GNU* | *'with BFD'*)
5551 lt_cv_prog_gnu_ld=yes
5552 ;;
5553*)
5554 lt_cv_prog_gnu_ld=no
5555 ;;
5556esac
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5559$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5560with_gnu_ld=$lt_cv_prog_gnu_ld
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5571$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5572if ${lt_cv_path_NM+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 if test -n "$NM"; then
5576 # Let the user override the test.
5577 lt_cv_path_NM="$NM"
5578else
5579 lt_nm_to_check="${ac_tool_prefix}nm"
5580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581 lt_nm_to_check="$lt_nm_to_check nm"
5582 fi
5583 for lt_tmp_nm in $lt_nm_to_check; do
5584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5586 IFS="$lt_save_ifs"
5587 test -z "$ac_dir" && ac_dir=.
5588 tmp_nm="$ac_dir/$lt_tmp_nm"
5589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5590 # Check to see if the nm accepts a BSD-compat flag.
5591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5592 # nm: unknown option "B" ignored
5593 # Tru64's nm complains that /dev/null is an invalid object file
5594 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5595 */dev/null* | *'Invalid file or object type'*)
5596 lt_cv_path_NM="$tmp_nm -B"
5597 break
5598 ;;
5599 *)
5600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5601 */dev/null*)
5602 lt_cv_path_NM="$tmp_nm -p"
5603 break
5604 ;;
5605 *)
5606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5607 continue # so that we can try to find one that supports BSD flags
5608 ;;
5609 esac
5610 ;;
5611 esac
5612 fi
5613 done
5614 IFS="$lt_save_ifs"
5615 done
5616 : ${lt_cv_path_NM=no}
5617fi
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5620$as_echo "$lt_cv_path_NM" >&6; }
5621if test "$lt_cv_path_NM" != "no"; then
5622 NM="$lt_cv_path_NM"
5623else
5624 # Didn't find any BSD compatible name lister, look for dumpbin.
5625 if test -n "$DUMPBIN"; then :
5626 # Let the user override the test.
5627 else
5628 if test -n "$ac_tool_prefix"; then
5629 for ac_prog in dumpbin "link -dump"
5630 do
5631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5635if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5636 $as_echo_n "(cached) " >&6
5637else
a243b558
JF
5638 if test -n "$DUMPBIN"; then
5639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652done
5653 done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
a243b558
JF
5658DUMPBIN=$ac_cv_prog_DUMPBIN
5659if test -n "$DUMPBIN"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5661$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5662else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
a243b558
JF
5668 test -n "$DUMPBIN" && break
5669 done
ee134472 5670fi
a243b558
JF
5671if test -z "$DUMPBIN"; then
5672 ac_ct_DUMPBIN=$DUMPBIN
5673 for ac_prog in dumpbin "link -dump"
5674do
5675 # Extract the first word of "$ac_prog", so it can be a program name with args.
5676set dummy $ac_prog; ac_word=$2
ee134472
JF
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5679if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5680 $as_echo_n "(cached) " >&6
5681else
a243b558
JF
5682 if test -n "$ac_ct_DUMPBIN"; then
5683 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5692 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696done
5697 done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
a243b558
JF
5702ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5703if test -n "$ac_ct_DUMPBIN"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5705$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5706else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
a243b558
JF
5711
5712 test -n "$ac_ct_DUMPBIN" && break
5713done
5714
5715 if test "x$ac_ct_DUMPBIN" = x; then
5716 DUMPBIN=":"
ee134472
JF
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719yes:)
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722ac_tool_warned=yes ;;
5723esac
a243b558 5724 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5725 fi
9c60689e
DWT
5726fi
5727
a243b558
JF
5728 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5729 *COFF*)
5730 DUMPBIN="$DUMPBIN -symbols"
5731 ;;
5732 *)
5733 DUMPBIN=:
5734 ;;
5735 esac
5736 fi
9c60689e 5737
a243b558
JF
5738 if test "$DUMPBIN" != ":"; then
5739 NM="$DUMPBIN"
5740 fi
5741fi
5742test -z "$NM" && NM=nm
9c60689e
DWT
5743
5744
5745
5746
5747
a243b558
JF
5748
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5750$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5751if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5752 $as_echo_n "(cached) " >&6
5753else
a243b558
JF
5754 lt_cv_nm_interface="BSD nm"
5755 echo "int some_variable = 0;" > conftest.$ac_ext
5756 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5757 (eval "$ac_compile" 2>conftest.err)
5758 cat conftest.err >&5
5759 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5761 cat conftest.err >&5
5762 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5763 cat conftest.out >&5
5764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5765 lt_cv_nm_interface="MS dumpbin"
9c60689e 5766 fi
a243b558 5767 rm -rf conftest*
9c60689e 5768fi
a243b558
JF
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5770$as_echo "$lt_cv_nm_interface" >&6; }
5771
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5773$as_echo_n "checking whether ln -s works... " >&6; }
5774LN_S=$as_ln_s
5775if test "$LN_S" = "ln -s"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777$as_echo "yes" >&6; }
9c60689e 5778else
a243b558
JF
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5780$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5781fi
5782
a243b558
JF
5783# find the maximum length of command line arguments
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5785$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5786if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5787 $as_echo_n "(cached) " >&6
5788else
a243b558
JF
5789 i=0
5790 teststring="ABCD"
9c60689e 5791
a243b558
JF
5792 case $build_os in
5793 msdosdjgpp*)
5794 # On DJGPP, this test can blow up pretty badly due to problems in libc
5795 # (any single argument exceeding 2000 bytes causes a buffer overrun
5796 # during glob expansion). Even if it were fixed, the result of this
5797 # check would be larger than it should be.
5798 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5799 ;;
9c60689e 5800
a243b558
JF
5801 gnu*)
5802 # Under GNU Hurd, this test is not required because there is
5803 # no limit to the length of command line arguments.
5804 # Libtool will interpret -1 as no limit whatsoever
5805 lt_cv_sys_max_cmd_len=-1;
5806 ;;
9c60689e 5807
a243b558
JF
5808 cygwin* | mingw* | cegcc*)
5809 # On Win9x/ME, this test blows up -- it succeeds, but takes
5810 # about 5 minutes as the teststring grows exponentially.
5811 # Worse, since 9x/ME are not pre-emptively multitasking,
5812 # you end up with a "frozen" computer, even though with patience
5813 # the test eventually succeeds (with a max line length of 256k).
5814 # Instead, let's just punt: use the minimum linelength reported by
5815 # all of the supported platforms: 8192 (on NT/2K/XP).
5816 lt_cv_sys_max_cmd_len=8192;
5817 ;;
9c60689e 5818
a243b558
JF
5819 mint*)
5820 # On MiNT this can take a long time and run out of memory.
5821 lt_cv_sys_max_cmd_len=8192;
5822 ;;
9c60689e 5823
a243b558
JF
5824 amigaos*)
5825 # On AmigaOS with pdksh, this test takes hours, literally.
5826 # So we just punt and use a minimum line length of 8192.
5827 lt_cv_sys_max_cmd_len=8192;
5828 ;;
9c60689e 5829
a243b558
JF
5830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5831 # This has been around since 386BSD, at least. Likely further.
5832 if test -x /sbin/sysctl; then
5833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5834 elif test -x /usr/sbin/sysctl; then
5835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5836 else
5837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5838 fi
5839 # And add a safety zone
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5842 ;;
9c60689e 5843
a243b558
JF
5844 interix*)
5845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5846 lt_cv_sys_max_cmd_len=196608
5847 ;;
9c60689e 5848
a243b558
JF
5849 os2*)
5850 # The test takes a long time on OS/2.
5851 lt_cv_sys_max_cmd_len=8192
5852 ;;
9c60689e 5853
a243b558
JF
5854 osf*)
5855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5857 # nice to cause kernel panics so lets avoid the loop below.
5858 # First set a reasonable default.
5859 lt_cv_sys_max_cmd_len=16384
5860 #
5861 if test -x /sbin/sysconfig; then
5862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5864 esac
5865 fi
5866 ;;
5867 sco3.2v5*)
5868 lt_cv_sys_max_cmd_len=102400
5869 ;;
5870 sysv5* | sco5v6* | sysv4.2uw2*)
5871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5872 if test -n "$kargmax"; then
5873 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5874 else
5875 lt_cv_sys_max_cmd_len=32768
5876 fi
9c60689e
DWT
5877 ;;
5878 *)
a243b558
JF
5879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5880 if test -n "$lt_cv_sys_max_cmd_len"; then
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5883 else
5884 # Make teststring a little bigger before we do anything with it.
5885 # a 1K string should be a reasonable start.
5886 for i in 1 2 3 4 5 6 7 8 ; do
5887 teststring=$teststring$teststring
5888 done
5889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5890 # If test is not a shell built-in, we'll probably end up computing a
5891 # maximum length that is only half of the actual maximum length, but
5892 # we can't tell.
5893 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5894 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5895 test $i != 17 # 1/2 MB should be enough
5896 do
5897 i=`expr $i + 1`
5898 teststring=$teststring$teststring
5899 done
5900 # Only check the string length outside the loop.
5901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5902 teststring=
5903 # Add a significant safety factor because C++ compilers can tack on
5904 # massive amounts of additional arguments before passing them to the
5905 # linker. It appears as though 1/2 is a usable value.
5906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5907 fi
9c60689e
DWT
5908 ;;
5909 esac
ee134472 5910
a243b558 5911fi
ee134472 5912
a243b558
JF
5913if test -n $lt_cv_sys_max_cmd_len ; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5915$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5916else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5918$as_echo "none" >&6; }
5919fi
5920max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
5921
5922
9c60689e
DWT
5923
5924
5925
5926
a243b558
JF
5927: ${CP="cp -f"}
5928: ${MV="mv -f"}
5929: ${RM="rm -f"}
9c60689e 5930
a243b558
JF
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5932$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5933# Try some XSI features
5934xsi_shell=no
5935( _lt_dummy="a/b/c"
5936 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5937 = c,a/b,b/c, \
5938 && eval 'test $(( 1 + 1 )) -eq 2 \
5939 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5940 && xsi_shell=yes
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5942$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
5943
5944
a243b558
JF
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5946$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5947lt_shell_append=no
5948( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5949 >/dev/null 2>&1 \
5950 && lt_shell_append=yes
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5952$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
5953
5954
a243b558
JF
5955if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5956 lt_unset=unset
5957else
5958 lt_unset=false
5959fi
9c60689e
DWT
5960
5961
5962
5963
5964
a243b558
JF
5965# test EBCDIC or ASCII
5966case `echo X|tr X '\101'` in
5967 A) # ASCII based system
5968 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5969 lt_SP2NL='tr \040 \012'
5970 lt_NL2SP='tr \015\012 \040\040'
5971 ;;
5972 *) # EBCDIC based system
5973 lt_SP2NL='tr \100 \n'
5974 lt_NL2SP='tr \r\n \100\100'
5975 ;;
5976esac
9c60689e
DWT
5977
5978
5979
5980
5981
5982
5983
5984
5985
a243b558
JF
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5987$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5988if ${lt_cv_to_host_file_cmd+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990else
5991 case $host in
5992 *-*-mingw* )
5993 case $build in
5994 *-*-mingw* ) # actually msys
5995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5996 ;;
5997 *-*-cygwin* )
5998 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5999 ;;
6000 * ) # otherwise, assume *nix
6001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6002 ;;
6003 esac
6004 ;;
6005 *-*-cygwin* )
6006 case $build in
6007 *-*-mingw* ) # actually msys
6008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6009 ;;
6010 *-*-cygwin* )
6011 lt_cv_to_host_file_cmd=func_convert_file_noop
6012 ;;
6013 * ) # otherwise, assume *nix
6014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6015 ;;
6016 esac
6017 ;;
6018 * ) # unhandled hosts (and "normal" native builds)
6019 lt_cv_to_host_file_cmd=func_convert_file_noop
6020 ;;
6021esac
9c60689e 6022
a243b558 6023fi
9c60689e 6024
a243b558
JF
6025to_host_file_cmd=$lt_cv_to_host_file_cmd
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6027$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6028
6029
6030
6031
6032
a243b558
JF
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6034$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6035if ${lt_cv_to_tool_file_cmd+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037else
6038 #assume ordinary cross tools, or native build.
6039lt_cv_to_tool_file_cmd=func_convert_file_noop
6040case $host in
6041 *-*-mingw* )
6042 case $build in
6043 *-*-mingw* ) # actually msys
6044 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6045 ;;
6046 esac
6047 ;;
6048esac
9c60689e 6049
a243b558 6050fi
9c60689e 6051
a243b558
JF
6052to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6054$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6055
9c60689e 6056
9c60689e 6057
9c60689e
DWT
6058
6059
a243b558
JF
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6061$as_echo_n "checking for $LD option to reload object files... " >&6; }
6062if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6063 $as_echo_n "(cached) " >&6
6064else
a243b558
JF
6065 lt_cv_ld_reload_flag='-r'
6066fi
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6068$as_echo "$lt_cv_ld_reload_flag" >&6; }
6069reload_flag=$lt_cv_ld_reload_flag
6070case $reload_flag in
6071"" | " "*) ;;
6072*) reload_flag=" $reload_flag" ;;
6073esac
6074reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6075case $host_os in
a243b558
JF
6076 cygwin* | mingw* | pw32* | cegcc*)
6077 if test "$GCC" != yes; then
6078 reload_cmds=false
6079 fi
6080 ;;
6081 darwin*)
6082 if test "$GCC" = yes; then
6083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6084 else
6085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6086 fi
6087 ;;
9c60689e
DWT
6088esac
6089
9c60689e 6090
9c60689e 6091
9c60689e 6092
9c60689e 6093
9c60689e 6094
9c60689e 6095
9c60689e 6096
9c60689e 6097
a243b558
JF
6098if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}objdump; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_prog_OBJDUMP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105else
6106 if test -n "$OBJDUMP"; then
6107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121 done
6122IFS=$as_save_IFS
9c60689e 6123
a243b558
JF
6124fi
6125fi
6126OBJDUMP=$ac_cv_prog_OBJDUMP
6127if test -n "$OBJDUMP"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6129$as_echo "$OBJDUMP" >&6; }
6130else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
9c60689e 6134
9c60689e 6135
a243b558
JF
6136fi
6137if test -z "$ac_cv_prog_OBJDUMP"; then
6138 ac_ct_OBJDUMP=$OBJDUMP
6139 # Extract the first word of "objdump", so it can be a program name with args.
6140set dummy objdump; ac_word=$2
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142$as_echo_n "checking for $ac_word... " >&6; }
6143if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145else
6146 if test -n "$ac_ct_OBJDUMP"; then
6147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
9c60689e
DWT
6159 fi
6160done
a243b558
JF
6161 done
6162IFS=$as_save_IFS
9c60689e
DWT
6163
6164fi
9c60689e 6165fi
a243b558
JF
6166ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6167if test -n "$ac_ct_OBJDUMP"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6169$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6170else
a243b558
JF
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
9c60689e
DWT
6173fi
6174
a243b558
JF
6175 if test "x$ac_ct_OBJDUMP" = x; then
6176 OBJDUMP="false"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179yes:)
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182ac_tool_warned=yes ;;
6183esac
6184 OBJDUMP=$ac_ct_OBJDUMP
6185 fi
6186else
6187 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6188fi
6189
a243b558 6190test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6191
6192
6193
6194
6195
6196
6197
6198
6199
a243b558
JF
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6201$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6202if ${lt_cv_deplibs_check_method+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204else
6205 lt_cv_file_magic_cmd='$MAGIC_CMD'
6206lt_cv_file_magic_test_file=
6207lt_cv_deplibs_check_method='unknown'
6208# Need to set the preceding variable on all platforms that support
6209# interlibrary dependencies.
6210# 'none' -- dependencies not supported.
6211# `unknown' -- same as none, but documents that we really don't know.
6212# 'pass_all' -- all dependencies passed with no checks.
6213# 'test_compile' -- check by making test program.
6214# 'file_magic [[regex]]' -- check by looking for files in library path
6215# which responds to the $file_magic_cmd with a given extended regex.
6216# If you have `file' or equivalent on your system and you're not sure
6217# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6218
a243b558
JF
6219case $host_os in
6220aix[4-9]*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
9c60689e 6223
a243b558
JF
6224beos*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
9c60689e 6227
a243b558
JF
6228bsdi[45]*)
6229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6230 lt_cv_file_magic_cmd='/usr/bin/file -L'
6231 lt_cv_file_magic_test_file=/shlib/libc.so
6232 ;;
9c60689e 6233
a243b558
JF
6234cygwin*)
6235 # func_win32_libid is a shell function defined in ltmain.sh
6236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6237 lt_cv_file_magic_cmd='func_win32_libid'
6238 ;;
9c60689e 6239
a243b558
JF
6240mingw* | pw32*)
6241 # Base MSYS/MinGW do not provide the 'file' command needed by
6242 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6243 # unless we find 'file', for example because we are cross-compiling.
6244 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6245 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6247 lt_cv_file_magic_cmd='func_win32_libid'
6248 else
6249 # Keep this pattern in sync with the one in func_win32_libid.
6250 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6251 lt_cv_file_magic_cmd='$OBJDUMP -f'
6252 fi
6253 ;;
9c60689e 6254
a243b558
JF
6255cegcc*)
6256 # use the weaker test based on 'objdump'. See mingw*.
6257 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6258 lt_cv_file_magic_cmd='$OBJDUMP -f'
6259 ;;
9c60689e 6260
a243b558
JF
6261darwin* | rhapsody*)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
9c60689e 6264
a243b558
JF
6265freebsd* | dragonfly*)
6266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6267 case $host_cpu in
6268 i*86 )
6269 # Not sure whether the presence of OpenBSD here was a mistake.
6270 # Let's accept both of them until this is cleared up.
6271 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6274 ;;
6275 esac
6276 else
6277 lt_cv_deplibs_check_method=pass_all
6278 fi
6279 ;;
9c60689e 6280
a243b558
JF
6281gnu*)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
9c60689e 6284
a243b558
JF
6285haiku*)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
9c60689e 6288
a243b558
JF
6289hpux10.20* | hpux11*)
6290 lt_cv_file_magic_cmd=/usr/bin/file
6291 case $host_cpu in
6292 ia64*)
6293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6295 ;;
6296 hppa*64*)
6297 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]'
6298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6299 ;;
6300 *)
6301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6303 ;;
6304 esac
6305 ;;
9c60689e 6306
a243b558
JF
6307interix[3-9]*)
6308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6310 ;;
9c60689e 6311
a243b558
JF
6312irix5* | irix6* | nonstopux*)
6313 case $LD in
6314 *-32|*"-32 ") libmagic=32-bit;;
6315 *-n32|*"-n32 ") libmagic=N32;;
6316 *-64|*"-64 ") libmagic=64-bit;;
6317 *) libmagic=never-match;;
6318 esac
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
9c60689e 6321
a243b558
JF
6322# This must be glibc/ELF.
6323linux* | k*bsd*-gnu | kopensolaris*-gnu)
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
9c60689e 6326
a243b558
JF
6327netbsd*)
6328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6330 else
6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6332 fi
6333 ;;
9c60689e 6334
a243b558
JF
6335newos6*)
6336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339 ;;
9c60689e 6340
a243b558
JF
6341*nto* | *qnx*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
9c60689e 6344
a243b558
JF
6345openbsd*)
6346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6348 else
6349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350 fi
6351 ;;
9c60689e 6352
a243b558
JF
6353osf3* | osf4* | osf5*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
9c60689e 6356
a243b558
JF
6357rdos*)
6358 lt_cv_deplibs_check_method=pass_all
9c60689e 6359 ;;
a243b558
JF
6360
6361solaris*)
6362 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6363 ;;
6364
a243b558
JF
6365sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6366 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6367 ;;
6368
a243b558
JF
6369sysv4 | sysv4.3*)
6370 case $host_vendor in
6371 motorola)
6372 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]'
6373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6374 ;;
6375 ncr)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378 sequent)
6379 lt_cv_file_magic_cmd='/bin/file'
6380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6381 ;;
6382 sni)
6383 lt_cv_file_magic_cmd='/bin/file'
6384 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6385 lt_cv_file_magic_test_file=/lib/libc.so
6386 ;;
6387 siemens)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390 pc)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393 esac
6394 ;;
9c60689e 6395
a243b558
JF
6396tpf*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399esac
9c60689e 6400
a243b558
JF
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6403$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6404
a243b558
JF
6405file_magic_glob=
6406want_nocaseglob=no
6407if test "$build" = "$host"; then
6408 case $host_os in
6409 mingw* | pw32*)
6410 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6411 want_nocaseglob=yes
6412 else
6413 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6414 fi
6415 ;;
6416 esac
9c60689e 6417fi
9c60689e 6418
a243b558
JF
6419file_magic_cmd=$lt_cv_file_magic_cmd
6420deplibs_check_method=$lt_cv_deplibs_check_method
6421test -z "$deplibs_check_method" && deplibs_check_method=unknown
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
9c60689e 6442
9c60689e 6443
ee134472 6444if test -n "$ac_tool_prefix"; then
a243b558
JF
6445 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6446set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6449if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6450 $as_echo_n "(cached) " >&6
6451else
a243b558
JF
6452 if test -n "$DLLTOOL"; then
6453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6462 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467 done
6468IFS=$as_save_IFS
6469
6470fi
6471fi
a243b558
JF
6472DLLTOOL=$ac_cv_prog_DLLTOOL
6473if test -n "$DLLTOOL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6475$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6476else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478$as_echo "no" >&6; }
6479fi
6480
6481
6482fi
a243b558
JF
6483if test -z "$ac_cv_prog_DLLTOOL"; then
6484 ac_ct_DLLTOOL=$DLLTOOL
6485 # Extract the first word of "dlltool", so it can be a program name with args.
6486set dummy dlltool; ac_word=$2
ee134472
JF
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6489if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6490 $as_echo_n "(cached) " >&6
6491else
a243b558
JF
6492 if test -n "$ac_ct_DLLTOOL"; then
6493 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6502 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507 done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
a243b558
JF
6512ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6513if test -n "$ac_ct_DLLTOOL"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6515$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6516else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
a243b558
JF
6521 if test "x$ac_ct_DLLTOOL" = x; then
6522 DLLTOOL="false"
ee134472
JF
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525yes:)
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528ac_tool_warned=yes ;;
6529esac
a243b558 6530 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6531 fi
6532else
a243b558 6533 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6534fi
6535
a243b558
JF
6536test -z "$DLLTOOL" && DLLTOOL=dlltool
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6548$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6549if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6550 $as_echo_n "(cached) " >&6
6551else
a243b558
JF
6552 lt_cv_sharedlib_from_linklib_cmd='unknown'
6553
6554case $host_os in
6555cygwin* | mingw* | pw32* | cegcc*)
6556 # two different shell functions defined in ltmain.sh
6557 # decide which to use based on capabilities of $DLLTOOL
6558 case `$DLLTOOL --help 2>&1` in
6559 *--identify-strict*)
6560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6561 ;;
6562 *)
6563 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6564 ;;
6565 esac
6566 ;;
6567*)
6568 # fallback: assume linklib IS sharedlib
6569 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6570 ;;
6571esac
6572
ee134472 6573fi
a243b558
JF
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6575$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6576sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6577test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6578
6579
6580
6581
6582
9c60689e 6583
a243b558
JF
6584
6585if test -n "$ac_tool_prefix"; then
6586 for ac_prog in ar
6587 do
6588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6592if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6593 $as_echo_n "(cached) " >&6
6594else
a243b558
JF
6595 if test -n "$AR"; then
6596 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6605 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610 done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
a243b558
JF
6615AR=$ac_cv_prog_AR
6616if test -n "$AR"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6618$as_echo "$AR" >&6; }
9c60689e
DWT
6619else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624
a243b558
JF
6625 test -n "$AR" && break
6626 done
9c60689e 6627fi
a243b558
JF
6628if test -z "$AR"; then
6629 ac_ct_AR=$AR
6630 for ac_prog in ar
6631do
6632 # Extract the first word of "$ac_prog", so it can be a program name with args.
6633set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6636if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6637 $as_echo_n "(cached) " >&6
6638else
a243b558
JF
6639 if test -n "$ac_ct_AR"; then
6640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6649 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653done
6654 done
6655IFS=$as_save_IFS
6656
6657fi
6658fi
a243b558
JF
6659ac_ct_AR=$ac_cv_prog_ac_ct_AR
6660if test -n "$ac_ct_AR"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6662$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6663else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
a243b558
JF
6668
6669 test -n "$ac_ct_AR" && break
6670done
6671
6672 if test "x$ac_ct_AR" = x; then
6673 AR="false"
9c60689e
DWT
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
a243b558 6681 AR=$ac_ct_AR
9c60689e 6682 fi
a243b558
JF
6683fi
6684
6685: ${AR=ar}
6686: ${AR_FLAGS=cru}
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6699$as_echo_n "checking for archiver @FILE support... " >&6; }
6700if ${lt_cv_ar_at_file+:} false; then :
6701 $as_echo_n "(cached) " >&6
9c60689e 6702else
a243b558
JF
6703 lt_cv_ar_at_file=no
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h. */
6706
6707int
6708main ()
6709{
6710
6711 ;
6712 return 0;
6713}
6714_ACEOF
6715if ac_fn_c_try_compile "$LINENO"; then :
6716 echo conftest.$ac_objext > conftest.lst
6717 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6719 (eval $lt_ar_try) 2>&5
6720 ac_status=$?
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }
6723 if test "$ac_status" -eq 0; then
6724 # Ensure the archiver fails upon bogus file names.
6725 rm -f conftest.$ac_objext libconftest.a
6726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6727 (eval $lt_ar_try) 2>&5
6728 ac_status=$?
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }
6731 if test "$ac_status" -ne 0; then
6732 lt_cv_ar_at_file=@
6733 fi
6734 fi
6735 rm -f conftest.* libconftest.a
6736
9c60689e 6737fi
a243b558 6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6739
a243b558
JF
6740fi
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6742$as_echo "$lt_cv_ar_at_file" >&6; }
6743
6744if test "x$lt_cv_ar_at_file" = xno; then
6745 archiver_list_spec=
6746else
6747 archiver_list_spec=$lt_cv_ar_at_file
6748fi
6749
6750
6751
6752
6753
6754
6755
6756if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6758set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6761if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6762 $as_echo_n "(cached) " >&6
6763else
a243b558
JF
6764 if test -n "$STRIP"; then
6765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778done
6779 done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
a243b558
JF
6784STRIP=$ac_cv_prog_STRIP
6785if test -n "$STRIP"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6787$as_echo "$STRIP" >&6; }
9c60689e
DWT
6788else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793
6794fi
a243b558
JF
6795if test -z "$ac_cv_prog_STRIP"; then
6796 ac_ct_STRIP=$STRIP
6797 # Extract the first word of "strip", so it can be a program name with args.
6798set dummy strip; ac_word=$2
9c60689e
DWT
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6801if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6802 $as_echo_n "(cached) " >&6
6803else
a243b558
JF
6804 if test -n "$ac_ct_STRIP"; then
6805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6814 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819 done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
a243b558
JF
6824ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6825if test -n "$ac_ct_STRIP"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6827$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6828else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
a243b558
JF
6833 if test "x$ac_ct_STRIP" = x; then
6834 STRIP=":"
9c60689e
DWT
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837yes:)
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840ac_tool_warned=yes ;;
6841esac
a243b558 6842 STRIP=$ac_ct_STRIP
9c60689e
DWT
6843 fi
6844else
a243b558 6845 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6846fi
6847
a243b558
JF
6848test -z "$STRIP" && STRIP=:
6849
6850
6851
6852
6853
6854
6855if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6857set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6860if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6861 $as_echo_n "(cached) " >&6
6862else
a243b558
JF
6863 if test -n "$RANLIB"; then
6864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878 done
6879IFS=$as_save_IFS
6880
6881fi
6882fi
a243b558
JF
6883RANLIB=$ac_cv_prog_RANLIB
6884if test -n "$RANLIB"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6886$as_echo "$RANLIB" >&6; }
9c60689e
DWT
6887else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889$as_echo "no" >&6; }
6890fi
6891
6892
6893fi
a243b558
JF
6894if test -z "$ac_cv_prog_RANLIB"; then
6895 ac_ct_RANLIB=$RANLIB
6896 # Extract the first word of "ranlib", so it can be a program name with args.
6897set dummy ranlib; ac_word=$2
9c60689e
DWT
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6900if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
6901 $as_echo_n "(cached) " >&6
6902else
a243b558
JF
6903 if test -n "$ac_ct_RANLIB"; then
6904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6913 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917done
6918 done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
a243b558
JF
6923ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6924if test -n "$ac_ct_RANLIB"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6926$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
6927else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
a243b558
JF
6932 if test "x$ac_ct_RANLIB" = x; then
6933 RANLIB=":"
9c60689e
DWT
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936yes:)
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939ac_tool_warned=yes ;;
6940esac
a243b558 6941 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
6942 fi
6943else
a243b558 6944 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
6945fi
6946
a243b558
JF
6947test -z "$RANLIB" && RANLIB=:
6948
6949
9c60689e 6950
9c60689e
DWT
6951
6952
a243b558
JF
6953
6954# Determine commands to create old-style static archives.
6955old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6956old_postinstall_cmds='chmod 644 $oldlib'
6957old_postuninstall_cmds=
6958
6959if test -n "$RANLIB"; then
6960 case $host_os in
6961 openbsd*)
6962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6963 ;;
6964 *)
6965 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6966 ;;
6967 esac
6968 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
6969fi
6970
a243b558
JF
6971case $host_os in
6972 darwin*)
6973 lock_old_archive_extraction=yes ;;
6974 *)
6975 lock_old_archive_extraction=no ;;
9c60689e 6976esac
9c60689e 6977
9c60689e 6978
9c60689e
DWT
6979
6980
9c60689e 6981
9c60689e 6982
9c60689e
DWT
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
53ba6704 7010
9c60689e 7011
9c60689e 7012
9c60689e 7013
53ba6704 7014
a243b558
JF
7015
7016# If no C compiler was specified, use CC.
7017LTCC=${LTCC-"$CC"}
7018
7019# If no C compiler flags were specified, use CFLAGS.
7020LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7021
7022# Allow CC to be a program name with arguments.
7023compiler=$CC
7024
7025
7026# Check for command to grab the raw symbol name followed by C symbol from nm.
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7028$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7029if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7030 $as_echo_n "(cached) " >&6
7031else
ee134472 7032
a243b558
JF
7033# These are sane defaults that work on at least a few old systems.
7034# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7035
a243b558
JF
7036# Character class describing NM global symbol codes.
7037symcode='[BCDEGRST]'
9c60689e 7038
a243b558
JF
7039# Regexp to match symbols that can be accessed directly from C.
7040sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7041
a243b558
JF
7042# Define system-specific variables.
7043case $host_os in
7044aix*)
7045 symcode='[BCDT]'
7046 ;;
7047cygwin* | mingw* | pw32* | cegcc*)
7048 symcode='[ABCDGISTW]'
7049 ;;
7050hpux*)
7051 if test "$host_cpu" = ia64; then
7052 symcode='[ABCDEGRST]'
7053 fi
7054 ;;
7055irix* | nonstopux*)
7056 symcode='[BCDEGRST]'
7057 ;;
7058osf*)
7059 symcode='[BCDEGQRST]'
7060 ;;
7061solaris*)
7062 symcode='[BDRT]'
7063 ;;
7064sco3.2v5*)
7065 symcode='[DT]'
7066 ;;
7067sysv4.2uw2*)
7068 symcode='[DT]'
7069 ;;
7070sysv5* | sco5v6* | unixware* | OpenUNIX*)
7071 symcode='[ABDT]'
7072 ;;
7073sysv4)
7074 symcode='[DFNSTU]'
7075 ;;
7076esac
9c60689e 7077
a243b558
JF
7078# If we're using GNU nm, then use its standard symbol codes.
7079case `$NM -V 2>&1` in
7080*GNU* | *'with BFD'*)
7081 symcode='[ABCDGIRSTW]' ;;
7082esac
9c60689e 7083
a243b558
JF
7084# Transform an extracted symbol line into a proper C declaration.
7085# Some systems (esp. on ia64) link data and code symbols differently,
7086# so use this general approach.
7087lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7088
a243b558
JF
7089# Transform an extracted symbol line into symbol name and symbol address
7090lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7091lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9c60689e 7092
a243b558
JF
7093# Handle CRLF in mingw tool chain
7094opt_cr=
7095case $build_os in
7096mingw*)
7097 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7098 ;;
7099esac
9c60689e 7100
a243b558
JF
7101# Try without a prefix underscore, then with it.
7102for ac_symprfx in "" "_"; do
9c60689e 7103
a243b558
JF
7104 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7105 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7106
a243b558
JF
7107 # Write the raw and C identifiers.
7108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7109 # Fake it for dumpbin and say T for any non-static function
7110 # and D for any global variable.
7111 # Also find C++ and __fastcall symbols from MSVC++,
7112 # which start with @ or ?.
7113 lt_cv_sys_global_symbol_pipe="$AWK '"\
7114" {last_section=section; section=\$ 3};"\
7115" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7116" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7117" \$ 0!~/External *\|/{next};"\
7118" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7119" {if(hide[section]) next};"\
7120" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7121" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7122" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7123" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7124" ' prfx=^$ac_symprfx"
7125 else
7126 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7127 fi
7128 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7129
a243b558
JF
7130 # Check to see that the pipe works correctly.
7131 pipe_works=no
9c60689e 7132
a243b558
JF
7133 rm -rf conftest*
7134 cat > conftest.$ac_ext <<_LT_EOF
7135#ifdef __cplusplus
7136extern "C" {
7137#endif
7138char nm_test_var;
7139void nm_test_func(void);
7140void nm_test_func(void){}
7141#ifdef __cplusplus
7142}
7143#endif
7144int main(){nm_test_var='a';nm_test_func();return(0);}
7145_LT_EOF
9c60689e 7146
a243b558
JF
7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7148 (eval $ac_compile) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }; then
7152 # Now try to grab the symbols.
7153 nlist=conftest.nm
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7155 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; } && test -s "$nlist"; then
7159 # Try sorting and uniquifying the output.
7160 if sort "$nlist" | uniq > "$nlist"T; then
7161 mv -f "$nlist"T "$nlist"
7162 else
7163 rm -f "$nlist"T
7164 fi
9c60689e 7165
a243b558
JF
7166 # Make sure that we snagged all the symbols we need.
7167 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7168 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7169 cat <<_LT_EOF > conftest.$ac_ext
7170/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7171#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7172/* DATA imports from DLLs on WIN32 con't be const, because runtime
7173 relocations are performed -- see ld's documentation on pseudo-relocs. */
7174# define LT_DLSYM_CONST
7175#elif defined(__osf__)
7176/* This system does not cope well with relocations in const data. */
7177# define LT_DLSYM_CONST
7178#else
7179# define LT_DLSYM_CONST const
7180#endif
9c60689e 7181
a243b558
JF
7182#ifdef __cplusplus
7183extern "C" {
7184#endif
9c60689e 7185
a243b558
JF
7186_LT_EOF
7187 # Now generate the symbol file.
7188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7189
a243b558 7190 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7191
a243b558
JF
7192/* The mapping between symbol names and symbols. */
7193LT_DLSYM_CONST struct {
7194 const char *name;
7195 void *address;
7196}
7197lt__PROGRAM__LTX_preloaded_symbols[] =
7198{
7199 { "@PROGRAM@", (void *) 0 },
7200_LT_EOF
7201 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7202 cat <<\_LT_EOF >> conftest.$ac_ext
7203 {0, (void *) 0}
7204};
9c60689e 7205
a243b558
JF
7206/* This works around a problem in FreeBSD linker */
7207#ifdef FREEBSD_WORKAROUND
7208static const void *lt_preloaded_setup() {
7209 return lt__PROGRAM__LTX_preloaded_symbols;
7210}
7211#endif
9c60689e 7212
a243b558
JF
7213#ifdef __cplusplus
7214}
7215#endif
7216_LT_EOF
7217 # Now try linking the two files.
7218 mv conftest.$ac_objext conftstm.$ac_objext
7219 lt_globsym_save_LIBS=$LIBS
7220 lt_globsym_save_CFLAGS=$CFLAGS
7221 LIBS="conftstm.$ac_objext"
7222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7224 (eval $ac_link) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7228 pipe_works=yes
7229 fi
7230 LIBS=$lt_globsym_save_LIBS
7231 CFLAGS=$lt_globsym_save_CFLAGS
7232 else
7233 echo "cannot find nm_test_func in $nlist" >&5
7234 fi
7235 else
7236 echo "cannot find nm_test_var in $nlist" >&5
7237 fi
7238 else
7239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7240 fi
7241 else
7242 echo "$progname: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 fi
7245 rm -rf conftest* conftst*
9c60689e 7246
a243b558
JF
7247 # Do not use the global_symbol_pipe unless it works.
7248 if test "$pipe_works" = yes; then
7249 break
7250 else
7251 lt_cv_sys_global_symbol_pipe=
7252 fi
7253done
9c60689e 7254
9c60689e 7255fi
9c60689e 7256
a243b558
JF
7257if test -z "$lt_cv_sys_global_symbol_pipe"; then
7258 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7259fi
a243b558
JF
7260if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7262$as_echo "failed" >&6; }
9c60689e 7263else
a243b558
JF
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7265$as_echo "ok" >&6; }
9c60689e
DWT
7266fi
7267
a243b558
JF
7268# Response file support.
7269if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7270 nm_file_list_spec='@'
7271elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7272 nm_file_list_spec='@'
9c60689e 7273fi
9c60689e 7274
9c60689e 7275
9c60689e 7276
9c60689e 7277
9c60689e 7278
9c60689e
DWT
7279
7280
9c60689e 7281
9c60689e 7282
9c60689e
DWT
7283
7284
7285
ee134472
JF
7286
7287
9c60689e
DWT
7288
7289
7290
7291
7292
7293
7294
7295
7296
549f29b5 7297
549f29b5
DWT
7298
7299
549f29b5 7300
a243b558
JF
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7302$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7303
a243b558
JF
7304# Check whether --with-sysroot was given.
7305if test "${with_sysroot+set}" = set; then :
7306 withval=$with_sysroot;
9c60689e 7307else
a243b558 7308 with_sysroot=no
9c60689e
DWT
7309fi
7310
7311
a243b558
JF
7312lt_sysroot=
7313case ${with_sysroot} in #(
7314 yes)
7315 if test "$GCC" = yes; then
7316 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7317 fi
7318 ;; #(
7319 /*)
7320 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7321 ;; #(
7322 no|'')
7323 ;; #(
7324 *)
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7326$as_echo "${with_sysroot}" >&6; }
7327 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7328 ;;
7329esac
9c60689e 7330
a243b558
JF
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7332$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7333
7334
7335
7336
7337
a243b558
JF
7338# Check whether --enable-libtool-lock was given.
7339if test "${enable_libtool_lock+set}" = set; then :
7340 enableval=$enable_libtool_lock;
9c60689e
DWT
7341fi
7342
a243b558 7343test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7344
a243b558
JF
7345# Some flags need to be propagated to the compiler or linker for good
7346# libtool support.
7347case $host in
7348ia64-*-hpux*)
7349 # Find out which ABI we are using.
7350 echo 'int i;' > conftest.$ac_ext
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 case `/usr/bin/file conftest.$ac_objext` in
7357 *ELF-32*)
7358 HPUX_IA64_MODE="32"
7359 ;;
7360 *ELF-64*)
7361 HPUX_IA64_MODE="64"
7362 ;;
7363 esac
7364 fi
7365 rm -rf conftest*
7366 ;;
7367*-*-irix6*)
7368 # Find out which ABI we are using.
7369 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371 (eval $ac_compile) 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; }; then
7375 if test "$lt_cv_prog_gnu_ld" = yes; then
7376 case `/usr/bin/file conftest.$ac_objext` in
7377 *32-bit*)
7378 LD="${LD-ld} -melf32bsmip"
7379 ;;
7380 *N32*)
7381 LD="${LD-ld} -melf32bmipn32"
7382 ;;
7383 *64-bit*)
7384 LD="${LD-ld} -melf64bmip"
7385 ;;
7386 esac
7387 else
7388 case `/usr/bin/file conftest.$ac_objext` in
7389 *32-bit*)
7390 LD="${LD-ld} -32"
7391 ;;
7392 *N32*)
7393 LD="${LD-ld} -n32"
7394 ;;
7395 *64-bit*)
7396 LD="${LD-ld} -64"
7397 ;;
7398 esac
7399 fi
7400 fi
7401 rm -rf conftest*
7402 ;;
9c60689e 7403
a243b558
JF
7404x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7405s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.o` in
7414 *32-bit*)
7415 case $host in
7416 x86_64-*kfreebsd*-gnu)
7417 LD="${LD-ld} -m elf_i386_fbsd"
7418 ;;
7419 x86_64-*linux*)
7420 LD="${LD-ld} -m elf_i386"
7421 ;;
7422 ppc64-*linux*|powerpc64-*linux*)
7423 LD="${LD-ld} -m elf32ppclinux"
7424 ;;
7425 s390x-*linux*)
7426 LD="${LD-ld} -m elf_s390"
7427 ;;
7428 sparc64-*linux*)
7429 LD="${LD-ld} -m elf32_sparc"
7430 ;;
7431 esac
7432 ;;
7433 *64-bit*)
7434 case $host in
7435 x86_64-*kfreebsd*-gnu)
7436 LD="${LD-ld} -m elf_x86_64_fbsd"
7437 ;;
7438 x86_64-*linux*)
7439 LD="${LD-ld} -m elf_x86_64"
7440 ;;
7441 ppc*-*linux*|powerpc*-*linux*)
7442 LD="${LD-ld} -m elf64ppc"
7443 ;;
7444 s390*-*linux*|s390*-*tpf*)
7445 LD="${LD-ld} -m elf64_s390"
7446 ;;
7447 sparc*-*linux*)
7448 LD="${LD-ld} -m elf64_sparc"
7449 ;;
7450 esac
7451 ;;
7452 esac
7453 fi
7454 rm -rf conftest*
7455 ;;
9c60689e 7456
a243b558
JF
7457*-*-sco3.2v5*)
7458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7459 SAVE_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS -belf"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7462$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7463if ${lt_cv_cc_needs_belf+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 ac_ext=c
7467ac_cpp='$CPP $CPPFLAGS'
7468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7471
a243b558
JF
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h. */
9c60689e 7474
a243b558
JF
7475int
7476main ()
7477{
9c60689e 7478
a243b558
JF
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483if ac_fn_c_try_link "$LINENO"; then :
7484 lt_cv_cc_needs_belf=yes
9c60689e 7485else
a243b558 7486 lt_cv_cc_needs_belf=no
9c60689e 7487fi
a243b558
JF
7488rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 ac_ext=c
7491ac_cpp='$CPP $CPPFLAGS'
7492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7495
a243b558
JF
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7498$as_echo "$lt_cv_cc_needs_belf" >&6; }
7499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7501 CFLAGS="$SAVE_CFLAGS"
7502 fi
7503 ;;
7504*-*solaris*)
7505 # Find out which ABI we are using.
7506 echo 'int i;' > conftest.$ac_ext
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508 (eval $ac_compile) 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 case `/usr/bin/file conftest.o` in
7513 *64-bit*)
7514 case $lt_cv_prog_gnu_ld in
7515 yes*)
7516 case $host in
7517 i?86-*-solaris*)
7518 LD="${LD-ld} -m elf_x86_64"
7519 ;;
7520 sparc*-*-solaris*)
7521 LD="${LD-ld} -m elf64_sparc"
7522 ;;
7523 esac
7524 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7525 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7526 LD="${LD-ld}_sol2"
7527 fi
7528 ;;
7529 *)
7530 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7531 LD="${LD-ld} -64"
7532 fi
7533 ;;
7534 esac
7535 ;;
7536 esac
7537 fi
7538 rm -rf conftest*
7539 ;;
7540esac
9c60689e 7541
a243b558 7542need_locks="$enable_libtool_lock"
9c60689e 7543
a243b558
JF
7544if test -n "$ac_tool_prefix"; then
7545 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7546set dummy ${ac_tool_prefix}mt; ac_word=$2
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$MANIFEST_TOOL"; then
7553 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567 done
7568IFS=$as_save_IFS
9c60689e 7569
a243b558
JF
7570fi
7571fi
7572MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7573if test -n "$MANIFEST_TOOL"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7575$as_echo "$MANIFEST_TOOL" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
9c60689e
DWT
7580
7581
a243b558
JF
7582fi
7583if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7584 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7585 # Extract the first word of "mt", so it can be a program name with args.
7586set dummy mt; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591else
7592 if test -n "$ac_ct_MANIFEST_TOOL"; then
7593 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606done
7607 done
7608IFS=$as_save_IFS
9c60689e 7609
a243b558
JF
7610fi
7611fi
7612ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7613if test -n "$ac_ct_MANIFEST_TOOL"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7615$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
9c60689e 7620
a243b558
JF
7621 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7622 MANIFEST_TOOL=":"
7623 else
7624 case $cross_compiling:$ac_tool_warned in
7625yes:)
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628ac_tool_warned=yes ;;
7629esac
7630 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7631 fi
7632else
7633 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7634fi
9c60689e 7635
a243b558
JF
7636test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7638$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7639if ${lt_cv_path_mainfest_tool+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641else
7642 lt_cv_path_mainfest_tool=no
7643 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7644 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7645 cat conftest.err >&5
7646 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7647 lt_cv_path_mainfest_tool=yes
7648 fi
7649 rm -rf conftest*
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7652$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7653if test "x$lt_cv_path_mainfest_tool" != xyes; then
7654 MANIFEST_TOOL=:
7655fi
9c60689e
DWT
7656
7657
7658
7659
7660
7661
a243b558
JF
7662 case $host_os in
7663 rhapsody* | darwin*)
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7666set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if ${ac_cv_prog_DSYMUTIL+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 if test -n "$DSYMUTIL"; then
7673 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686done
7687 done
7688IFS=$as_save_IFS
9c60689e 7689
a243b558
JF
7690fi
7691fi
7692DSYMUTIL=$ac_cv_prog_DSYMUTIL
7693if test -n "$DSYMUTIL"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7695$as_echo "$DSYMUTIL" >&6; }
7696else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
9c60689e
DWT
7700
7701
9c60689e 7702fi
a243b558
JF
7703if test -z "$ac_cv_prog_DSYMUTIL"; then
7704 ac_ct_DSYMUTIL=$DSYMUTIL
7705 # Extract the first word of "dsymutil", so it can be a program name with args.
7706set dummy dsymutil; ac_word=$2
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708$as_echo_n "checking for $ac_word... " >&6; }
7709if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7710 $as_echo_n "(cached) " >&6
7711else
a243b558
JF
7712 if test -n "$ac_ct_DSYMUTIL"; then
7713 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7714else
a243b558
JF
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727 done
7728IFS=$as_save_IFS
7729
9c60689e 7730fi
9c60689e 7731fi
a243b558
JF
7732ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7733if test -n "$ac_ct_DSYMUTIL"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7735$as_echo "$ac_ct_DSYMUTIL" >&6; }
7736else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738$as_echo "no" >&6; }
7739fi
9c60689e 7740
a243b558
JF
7741 if test "x$ac_ct_DSYMUTIL" = x; then
7742 DSYMUTIL=":"
7743 else
7744 case $cross_compiling:$ac_tool_warned in
7745yes:)
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748ac_tool_warned=yes ;;
9c60689e 7749esac
a243b558
JF
7750 DSYMUTIL=$ac_ct_DSYMUTIL
7751 fi
7752else
7753 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7754fi
9c60689e 7755
a243b558
JF
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7758set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760$as_echo_n "checking for $ac_word... " >&6; }
7761if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7762 $as_echo_n "(cached) " >&6
7763else
a243b558
JF
7764 if test -n "$NMEDIT"; then
7765 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
9c60689e 7779 done
a243b558 7780IFS=$as_save_IFS
9c60689e 7781
a243b558
JF
7782fi
7783fi
7784NMEDIT=$ac_cv_prog_NMEDIT
7785if test -n "$NMEDIT"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7787$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7788else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793
a243b558
JF
7794fi
7795if test -z "$ac_cv_prog_NMEDIT"; then
7796 ac_ct_NMEDIT=$NMEDIT
7797 # Extract the first word of "nmedit", so it can be a program name with args.
7798set dummy nmedit; ac_word=$2
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800$as_echo_n "checking for $ac_word... " >&6; }
7801if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7802 $as_echo_n "(cached) " >&6
7803else
a243b558
JF
7804 if test -n "$ac_ct_NMEDIT"; then
7805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818done
9c60689e 7819 done
a243b558 7820IFS=$as_save_IFS
9c60689e 7821
a243b558
JF
7822fi
7823fi
7824ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7825if test -n "$ac_ct_NMEDIT"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7827$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7828else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830$as_echo "no" >&6; }
7831fi
7832
a243b558
JF
7833 if test "x$ac_ct_NMEDIT" = x; then
7834 NMEDIT=":"
9c60689e 7835 else
a243b558
JF
7836 case $cross_compiling:$ac_tool_warned in
7837yes:)
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840ac_tool_warned=yes ;;
7841esac
7842 NMEDIT=$ac_ct_NMEDIT
9c60689e 7843 fi
a243b558
JF
7844else
7845 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7846fi
7847
a243b558
JF
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7850set dummy ${ac_tool_prefix}lipo; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_prog_LIPO+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855else
7856 if test -n "$LIPO"; then
7857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7858else
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870done
7871 done
7872IFS=$as_save_IFS
9c60689e 7873
a243b558
JF
7874fi
7875fi
7876LIPO=$ac_cv_prog_LIPO
7877if test -n "$LIPO"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7879$as_echo "$LIPO" >&6; }
7880else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883fi
9c60689e 7884
9c60689e 7885
a243b558
JF
7886fi
7887if test -z "$ac_cv_prog_LIPO"; then
7888 ac_ct_LIPO=$LIPO
7889 # Extract the first word of "lipo", so it can be a program name with args.
7890set dummy lipo; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
7894 $as_echo_n "(cached) " >&6
7895else
a243b558
JF
7896 if test -n "$ac_ct_LIPO"; then
7897 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_ac_ct_LIPO="lipo"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911 done
7912IFS=$as_save_IFS
9c60689e
DWT
7913
7914fi
a243b558
JF
7915fi
7916ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7917if test -n "$ac_ct_LIPO"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7919$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 7920else
a243b558
JF
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
9c60689e
DWT
7923fi
7924
a243b558
JF
7925 if test "x$ac_ct_LIPO" = x; then
7926 LIPO=":"
7927 else
7928 case $cross_compiling:$ac_tool_warned in
7929yes:)
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932ac_tool_warned=yes ;;
7933esac
7934 LIPO=$ac_ct_LIPO
7935 fi
7936else
7937 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
7938fi
7939
a243b558
JF
7940 if test -n "$ac_tool_prefix"; then
7941 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7942set dummy ${ac_tool_prefix}otool; ac_word=$2
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944$as_echo_n "checking for $ac_word... " >&6; }
7945if ${ac_cv_prog_OTOOL+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947else
7948 if test -n "$OTOOL"; then
7949 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7950else
7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952for as_dir in $PATH
7953do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962done
7963 done
7964IFS=$as_save_IFS
9c60689e 7965
a243b558
JF
7966fi
7967fi
7968OTOOL=$ac_cv_prog_OTOOL
7969if test -n "$OTOOL"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7971$as_echo "$OTOOL" >&6; }
7972else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975fi
9c60689e
DWT
7976
7977
a243b558
JF
7978fi
7979if test -z "$ac_cv_prog_OTOOL"; then
7980 ac_ct_OTOOL=$OTOOL
7981 # Extract the first word of "otool", so it can be a program name with args.
7982set dummy otool; ac_word=$2
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987else
7988 if test -n "$ac_ct_OTOOL"; then
7989 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_ac_ct_OTOOL="otool"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002done
8003 done
8004IFS=$as_save_IFS
9c60689e 8005
a243b558
JF
8006fi
8007fi
8008ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8009if test -n "$ac_ct_OTOOL"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8011$as_echo "$ac_ct_OTOOL" >&6; }
8012else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
8015fi
9c60689e 8016
a243b558
JF
8017 if test "x$ac_ct_OTOOL" = x; then
8018 OTOOL=":"
8019 else
8020 case $cross_compiling:$ac_tool_warned in
8021yes:)
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024ac_tool_warned=yes ;;
8025esac
8026 OTOOL=$ac_ct_OTOOL
8027 fi
8028else
8029 OTOOL="$ac_cv_prog_OTOOL"
8030fi
9c60689e 8031
a243b558
JF
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8034set dummy ${ac_tool_prefix}otool64; ac_word=$2
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036$as_echo_n "checking for $ac_word... " >&6; }
8037if ${ac_cv_prog_OTOOL64+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039else
8040 if test -n "$OTOOL64"; then
8041 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8042else
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054done
8055 done
8056IFS=$as_save_IFS
9c60689e 8057
a243b558
JF
8058fi
8059fi
8060OTOOL64=$ac_cv_prog_OTOOL64
8061if test -n "$OTOOL64"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8063$as_echo "$OTOOL64" >&6; }
8064else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
8067fi
9c60689e 8068
9c60689e 8069
a243b558
JF
8070fi
8071if test -z "$ac_cv_prog_OTOOL64"; then
8072 ac_ct_OTOOL64=$OTOOL64
8073 # Extract the first word of "otool64", so it can be a program name with args.
8074set dummy otool64; ac_word=$2
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076$as_echo_n "checking for $ac_word... " >&6; }
8077if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079else
8080 if test -n "$ac_ct_OTOOL64"; then
8081 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_ac_ct_OTOOL64="otool64"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8093 fi
8094done
8095 done
8096IFS=$as_save_IFS
9c60689e 8097
a243b558
JF
8098fi
8099fi
8100ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8101if test -n "$ac_ct_OTOOL64"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8103$as_echo "$ac_ct_OTOOL64" >&6; }
8104else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106$as_echo "no" >&6; }
8107fi
9c60689e 8108
a243b558
JF
8109 if test "x$ac_ct_OTOOL64" = x; then
8110 OTOOL64=":"
8111 else
8112 case $cross_compiling:$ac_tool_warned in
8113yes:)
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116ac_tool_warned=yes ;;
8117esac
8118 OTOOL64=$ac_ct_OTOOL64
8119 fi
8120else
8121 OTOOL64="$ac_cv_prog_OTOOL64"
8122fi
ee134472 8123
9c60689e 8124
9c60689e 8125
9c60689e 8126
9c60689e 8127
9c60689e 8128
ee134472 8129
9c60689e 8130
9c60689e 8131
9c60689e 8132
9c60689e 8133
9c60689e 8134
9c60689e 8135
9c60689e 8136
9c60689e 8137
9c60689e 8138
9c60689e 8139
9c60689e 8140
9c60689e 8141
9c60689e 8142
9c60689e 8143
9c60689e 8144
9c60689e 8145
9c60689e 8146
9c60689e 8147
a243b558
JF
8148
8149
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8151$as_echo_n "checking for -single_module linker flag... " >&6; }
8152if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8153 $as_echo_n "(cached) " >&6
8154else
a243b558
JF
8155 lt_cv_apple_cc_single_mod=no
8156 if test -z "${LT_MULTI_MODULE}"; then
8157 # By default we will add the -single_module flag. You can override
8158 # by either setting the environment variable LT_MULTI_MODULE
8159 # non-empty at configure time, or by adding -multi_module to the
8160 # link flags.
8161 rm -rf libconftest.dylib*
8162 echo "int foo(void){return 1;}" > conftest.c
8163 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8164-dynamiclib -Wl,-single_module conftest.c" >&5
8165 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8167 _lt_result=$?
8168 # If there is a non-empty error log, and "single_module"
8169 # appears in it, assume the flag caused a linker warning
8170 if test -s conftest.err && $GREP single_module conftest.err; then
8171 cat conftest.err >&5
8172 # Otherwise, if the output was created with a 0 exit code from
8173 # the compiler, it worked.
8174 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8175 lt_cv_apple_cc_single_mod=yes
8176 else
8177 cat conftest.err >&5
8178 fi
8179 rm -rf libconftest.dylib*
8180 rm -f conftest.*
8181 fi
ee134472 8182fi
a243b558
JF
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8184$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8185
a243b558
JF
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8187$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8188if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8189 $as_echo_n "(cached) " >&6
8190else
a243b558
JF
8191 lt_cv_ld_exported_symbols_list=no
8192 save_LDFLAGS=$LDFLAGS
8193 echo "_main" > conftest.sym
8194 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h. */
9c60689e 8197
a243b558
JF
8198int
8199main ()
8200{
9c60689e 8201
a243b558
JF
8202 ;
8203 return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_link "$LINENO"; then :
8207 lt_cv_ld_exported_symbols_list=yes
9c60689e 8208else
a243b558 8209 lt_cv_ld_exported_symbols_list=no
9c60689e 8210fi
a243b558
JF
8211rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8214
8215fi
a243b558
JF
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8217$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8218
a243b558
JF
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8220$as_echo_n "checking for -force_load linker flag... " >&6; }
8221if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8222 $as_echo_n "(cached) " >&6
8223else
a243b558
JF
8224 lt_cv_ld_force_load=no
8225 cat > conftest.c << _LT_EOF
8226int forced_loaded() { return 2;}
8227_LT_EOF
8228 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8229 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8230 echo "$AR cru libconftest.a conftest.o" >&5
8231 $AR cru libconftest.a conftest.o 2>&5
8232 echo "$RANLIB libconftest.a" >&5
8233 $RANLIB libconftest.a 2>&5
8234 cat > conftest.c << _LT_EOF
8235int main() { return 0;}
8236_LT_EOF
8237 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8238 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8239 _lt_result=$?
8240 if test -s conftest.err && $GREP force_load conftest.err; then
8241 cat conftest.err >&5
8242 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8243 lt_cv_ld_force_load=yes
8244 else
8245 cat conftest.err >&5
8246 fi
8247 rm -f conftest.err libconftest.a conftest conftest.c
8248 rm -rf conftest.dSYM
9c60689e
DWT
8249
8250fi
a243b558
JF
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8252$as_echo "$lt_cv_ld_force_load" >&6; }
8253 case $host_os in
8254 rhapsody* | darwin1.[012])
8255 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8256 darwin1.*)
8257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8258 darwin*) # darwin 5.x on
8259 # if running on 10.5 or later, the deployment target defaults
8260 # to the OS version, if on x86, and 10.4, the deployment
8261 # target defaults to 10.4. Don't you love it?
8262 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8263 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8265 10.[012]*)
8266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8267 10.*)
8268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8269 esac
8270 ;;
8271 esac
8272 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8273 _lt_dar_single_mod='$single_module'
8274 fi
8275 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8276 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8277 else
8278 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279 fi
8280 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8281 _lt_dsymutil='~$DSYMUTIL $lib || :'
8282 else
8283 _lt_dsymutil=
8284 fi
8285 ;;
8286 esac
9c60689e 8287
a243b558
JF
8288ac_ext=c
8289ac_cpp='$CPP $CPPFLAGS'
8290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8294$as_echo_n "checking how to run the C preprocessor... " >&6; }
8295# On Suns, sometimes $CPP names a directory.
8296if test -n "$CPP" && test -d "$CPP"; then
8297 CPP=
9c60689e 8298fi
a243b558
JF
8299if test -z "$CPP"; then
8300 if ${ac_cv_prog_CPP+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302else
8303 # Double quotes because CPP needs to be expanded
8304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8305 do
8306 ac_preproc_ok=false
8307for ac_c_preproc_warn_flag in '' yes
8308do
8309 # Use a header file that comes with gcc, so configuring glibc
8310 # with a fresh cross-compiler works.
8311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312 # <limits.h> exists even on freestanding compilers.
8313 # On the NeXT, cc -E runs the code through the compiler's parser,
8314 # not just through cpp. "Syntax error" is here to catch this case.
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316/* end confdefs.h. */
8317#ifdef __STDC__
8318# include <limits.h>
8319#else
8320# include <assert.h>
8321#endif
8322 Syntax error
8323_ACEOF
8324if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8325
a243b558
JF
8326else
8327 # Broken: fails on valid input.
8328continue
8329fi
8330rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8331
a243b558
JF
8332 # OK, works on sane cases. Now check whether nonexistent headers
8333 # can be detected and how.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h. */
8336#include <ac_nonexistent.h>
8337_ACEOF
8338if ac_fn_c_try_cpp "$LINENO"; then :
8339 # Broken: success on invalid input.
8340continue
8341else
8342 # Passes both tests.
8343ac_preproc_ok=:
8344break
8345fi
8346rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8347
a243b558
JF
8348done
8349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8350rm -f conftest.i conftest.err conftest.$ac_ext
8351if $ac_preproc_ok; then :
8352 break
8353fi
9c60689e 8354
a243b558
JF
8355 done
8356 ac_cv_prog_CPP=$CPP
9c60689e 8357
a243b558
JF
8358fi
8359 CPP=$ac_cv_prog_CPP
9c60689e 8360else
a243b558
JF
8361 ac_cv_prog_CPP=$CPP
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8364$as_echo "$CPP" >&6; }
8365ac_preproc_ok=false
8366for ac_c_preproc_warn_flag in '' yes
8367do
8368 # Use a header file that comes with gcc, so configuring glibc
8369 # with a fresh cross-compiler works.
8370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371 # <limits.h> exists even on freestanding compilers.
8372 # On the NeXT, cc -E runs the code through the compiler's parser,
8373 # not just through cpp. "Syntax error" is here to catch this case.
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h. */
8376#ifdef __STDC__
8377# include <limits.h>
8378#else
8379# include <assert.h>
8380#endif
8381 Syntax error
8382_ACEOF
8383if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8384
a243b558
JF
8385else
8386 # Broken: fails on valid input.
8387continue
9c60689e 8388fi
a243b558 8389rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8390
a243b558
JF
8391 # OK, works on sane cases. Now check whether nonexistent headers
8392 # can be detected and how.
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h. */
8395#include <ac_nonexistent.h>
8396_ACEOF
8397if ac_fn_c_try_cpp "$LINENO"; then :
8398 # Broken: success on invalid input.
8399continue
8400else
8401 # Passes both tests.
8402ac_preproc_ok=:
8403break
8404fi
8405rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8406
a243b558
JF
8407done
8408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8409rm -f conftest.i conftest.err conftest.$ac_ext
8410if $ac_preproc_ok; then :
9c60689e 8411
a243b558
JF
8412else
8413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8415as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8416See \`config.log' for more details" "$LINENO" 5; }
8417fi
9c60689e 8418
a243b558
JF
8419ac_ext=c
8420ac_cpp='$CPP $CPPFLAGS'
8421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8424
8425
a243b558
JF
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8427$as_echo_n "checking for ANSI C header files... " >&6; }
8428if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8429 $as_echo_n "(cached) " >&6
8430else
a243b558
JF
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h. */
8433#include <stdlib.h>
8434#include <stdarg.h>
8435#include <string.h>
8436#include <float.h>
9c60689e 8437
a243b558
JF
8438int
8439main ()
8440{
9c60689e 8441
a243b558
JF
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_compile "$LINENO"; then :
8447 ac_cv_header_stdc=yes
8448else
8449 ac_cv_header_stdc=no
9c60689e 8450fi
a243b558
JF
8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452
8453if test $ac_cv_header_stdc = yes; then
8454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h. */
8457#include <string.h>
9c60689e 8458
a243b558
JF
8459_ACEOF
8460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8461 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8462
a243b558
JF
8463else
8464 ac_cv_header_stdc=no
8465fi
8466rm -f conftest*
9c60689e 8467
a243b558
JF
8468fi
8469
8470if test $ac_cv_header_stdc = yes; then
8471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473/* end confdefs.h. */
8474#include <stdlib.h>
8475
8476_ACEOF
8477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8479
9c60689e 8480else
a243b558 8481 ac_cv_header_stdc=no
9c60689e 8482fi
a243b558 8483rm -f conftest*
9c60689e 8484
a243b558 8485fi
9c60689e 8486
a243b558
JF
8487if test $ac_cv_header_stdc = yes; then
8488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8489 if test "$cross_compiling" = yes; then :
8490 :
8491else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h. */
8494#include <ctype.h>
8495#include <stdlib.h>
8496#if ((' ' & 0x0FF) == 0x020)
8497# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8498# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8499#else
8500# define ISLOWER(c) \
8501 (('a' <= (c) && (c) <= 'i') \
8502 || ('j' <= (c) && (c) <= 'r') \
8503 || ('s' <= (c) && (c) <= 'z'))
8504# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8505#endif
9c60689e 8506
a243b558
JF
8507#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8508int
8509main ()
8510{
8511 int i;
8512 for (i = 0; i < 256; i++)
8513 if (XOR (islower (i), ISLOWER (i))
8514 || toupper (i) != TOUPPER (i))
8515 return 2;
8516 return 0;
8517}
8518_ACEOF
8519if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8520
a243b558
JF
8521else
8522 ac_cv_header_stdc=no
8523fi
8524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8525 conftest.$ac_objext conftest.beam conftest.$ac_ext
8526fi
9c60689e 8527
a243b558
JF
8528fi
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8531$as_echo "$ac_cv_header_stdc" >&6; }
8532if test $ac_cv_header_stdc = yes; then
9c60689e 8533
a243b558 8534$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8535
a243b558 8536fi
9c60689e 8537
a243b558
JF
8538# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8539for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8540 inttypes.h stdint.h unistd.h
8541do :
8542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8543ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8544"
8545if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8546 cat >>confdefs.h <<_ACEOF
8547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8548_ACEOF
9c60689e 8549
a243b558 8550fi
ee134472 8551
a243b558 8552done
ee134472 8553
9c60689e 8554
a243b558
JF
8555for ac_header in dlfcn.h
8556do :
8557 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8558"
8559if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8560 cat >>confdefs.h <<_ACEOF
8561#define HAVE_DLFCN_H 1
8562_ACEOF
9c60689e 8563
a243b558 8564fi
9c60689e 8565
a243b558 8566done
9c60689e 8567
9c60689e 8568
9c60689e 8569
9c60689e 8570
a243b558
JF
8571func_stripname_cnf ()
8572{
8573 case ${2} in
8574 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8575 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8576 esac
8577} # func_stripname_cnf
9c60689e 8578
9c60689e 8579
ee134472 8580
a243b558
JF
8581
8582
8583# Set options
8584# Check whether --enable-static was given.
8585if test "${enable_static+set}" = set; then :
8586 enableval=$enable_static; p=${PACKAGE-default}
8587 case $enableval in
8588 yes) enable_static=yes ;;
8589 no) enable_static=no ;;
8590 *)
8591 enable_static=no
8592 # Look at the argument we got. We use all the common list separators.
8593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8594 for pkg in $enableval; do
8595 IFS="$lt_save_ifs"
8596 if test "X$pkg" = "X$p"; then
8597 enable_static=yes
8598 fi
8599 done
8600 IFS="$lt_save_ifs"
9c60689e 8601 ;;
a243b558
JF
8602 esac
8603else
8604 enable_static=no
8605fi
9c60689e 8606
9c60689e 8607
9c60689e 8608
9c60689e 8609
9c60689e 8610
9c60689e 8611
9c60689e 8612
9c60689e 8613
9c60689e 8614
9c60689e 8615
a243b558 8616 enable_dlopen=no
9c60689e 8617
9c60689e 8618
a243b558
JF
8619 enable_win32_dll=no
8620
8621
8622 # Check whether --enable-shared was given.
8623if test "${enable_shared+set}" = set; then :
8624 enableval=$enable_shared; p=${PACKAGE-default}
8625 case $enableval in
8626 yes) enable_shared=yes ;;
8627 no) enable_shared=no ;;
9c60689e 8628 *)
a243b558
JF
8629 enable_shared=no
8630 # Look at the argument we got. We use all the common list separators.
8631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8632 for pkg in $enableval; do
8633 IFS="$lt_save_ifs"
8634 if test "X$pkg" = "X$p"; then
8635 enable_shared=yes
8636 fi
8637 done
8638 IFS="$lt_save_ifs"
9c60689e
DWT
8639 ;;
8640 esac
a243b558
JF
8641else
8642 enable_shared=yes
8643fi
9c60689e 8644
9c60689e 8645
9c60689e 8646
9c60689e 8647
9c60689e 8648
9c60689e 8649
9c60689e 8650
9c60689e 8651
9c60689e 8652
9c60689e 8653
9c60689e 8654
a243b558
JF
8655# Check whether --with-pic was given.
8656if test "${with_pic+set}" = set; then :
8657 withval=$with_pic; lt_p=${PACKAGE-default}
8658 case $withval in
8659 yes|no) pic_mode=$withval ;;
8660 *)
8661 pic_mode=default
8662 # Look at the argument we got. We use all the common list separators.
8663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8664 for lt_pkg in $withval; do
8665 IFS="$lt_save_ifs"
8666 if test "X$lt_pkg" = "X$lt_p"; then
8667 pic_mode=yes
8668 fi
8669 done
8670 IFS="$lt_save_ifs"
8671 ;;
8672 esac
8673else
8674 pic_mode=default
9c60689e 8675fi
ee134472 8676
ee134472 8677
a243b558 8678test -z "$pic_mode" && pic_mode=default
9c60689e 8679
9c60689e 8680
9c60689e 8681
9c60689e 8682
ee134472 8683
ee134472 8684
9c60689e 8685
a243b558
JF
8686 # Check whether --enable-fast-install was given.
8687if test "${enable_fast_install+set}" = set; then :
8688 enableval=$enable_fast_install; p=${PACKAGE-default}
8689 case $enableval in
8690 yes) enable_fast_install=yes ;;
8691 no) enable_fast_install=no ;;
8692 *)
8693 enable_fast_install=no
8694 # Look at the argument we got. We use all the common list separators.
8695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8696 for pkg in $enableval; do
8697 IFS="$lt_save_ifs"
8698 if test "X$pkg" = "X$p"; then
8699 enable_fast_install=yes
9c60689e 8700 fi
a243b558
JF
8701 done
8702 IFS="$lt_save_ifs"
9c60689e 8703 ;;
a243b558
JF
8704 esac
8705else
8706 enable_fast_install=yes
8707fi
9c60689e 8708
9c60689e 8709
9c60689e 8710
9c60689e 8711
9c60689e
DWT
8712
8713
53ba6704 8714
9c60689e 8715
9c60689e 8716
9c60689e 8717
9c60689e 8718
a243b558
JF
8719# This can be used to rebuild libtool when needed
8720LIBTOOL_DEPS="$ltmain"
9c60689e 8721
a243b558
JF
8722# Always use our own libtool.
8723LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8724
9c60689e 8725
9c60689e 8726
9c60689e 8727
9c60689e 8728
ee134472 8729
ee134472 8730
ee134472 8731
ee134472 8732
9c60689e 8733
9c60689e 8734
9c60689e 8735
9c60689e 8736
9c60689e 8737
9c60689e 8738
9c60689e 8739
9c60689e 8740
9c60689e 8741
9c60689e 8742
9c60689e 8743
9c60689e 8744
9c60689e 8745
9c60689e 8746
9c60689e 8747
9c60689e 8748
9c60689e 8749
9c60689e 8750
9c60689e 8751
9c60689e 8752
9c60689e 8753
a243b558 8754test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
a243b558
JF
8769if test -n "${ZSH_VERSION+set}" ; then
8770 setopt NO_GLOB_SUBST
8771fi
9c60689e 8772
a243b558
JF
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8774$as_echo_n "checking for objdir... " >&6; }
8775if ${lt_cv_objdir+:} false; then :
ee134472
JF
8776 $as_echo_n "(cached) " >&6
8777else
a243b558
JF
8778 rm -f .libs 2>/dev/null
8779mkdir .libs 2>/dev/null
8780if test -d .libs; then
8781 lt_cv_objdir=.libs
8782else
8783 # MS-DOS does not allow filenames that begin with a dot.
8784 lt_cv_objdir=_libs
ee134472 8785fi
a243b558
JF
8786rmdir .libs 2>/dev/null
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8789$as_echo "$lt_cv_objdir" >&6; }
8790objdir=$lt_cv_objdir
9c60689e
DWT
8791
8792
8793
8794
8795
a243b558
JF
8796cat >>confdefs.h <<_ACEOF
8797#define LT_OBJDIR "$lt_cv_objdir/"
8798_ACEOF
9c60689e
DWT
8799
8800
8801
8802
a243b558
JF
8803case $host_os in
8804aix3*)
8805 # AIX sometimes has problems with the GCC collect2 program. For some
8806 # reason, if we set the COLLECT_NAMES environment variable, the problems
8807 # vanish in a puff of smoke.
8808 if test "X${COLLECT_NAMES+set}" != Xset; then
8809 COLLECT_NAMES=
8810 export COLLECT_NAMES
8811 fi
8812 ;;
8813esac
9c60689e 8814
a243b558
JF
8815# Global variables:
8816ofile=libtool
8817can_build_shared=yes
9c60689e 8818
a243b558
JF
8819# All known linkers require a `.a' archive for static linking (except MSVC,
8820# which needs '.lib').
8821libext=a
9c60689e 8822
a243b558 8823with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8824
a243b558
JF
8825old_CC="$CC"
8826old_CFLAGS="$CFLAGS"
9c60689e 8827
a243b558
JF
8828# Set sane defaults for various variables
8829test -z "$CC" && CC=cc
8830test -z "$LTCC" && LTCC=$CC
8831test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8832test -z "$LD" && LD=ld
8833test -z "$ac_objext" && ac_objext=o
9c60689e 8834
a243b558
JF
8835for cc_temp in $compiler""; do
8836 case $cc_temp in
8837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8839 \-*) ;;
8840 *) break;;
8841 esac
8842done
8843cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8844
8845
a243b558
JF
8846# Only perform the check for file, if the check method requires it
8847test -z "$MAGIC_CMD" && MAGIC_CMD=file
8848case $deplibs_check_method in
8849file_magic*)
8850 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8852$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8853if ${lt_cv_path_MAGIC_CMD+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855else
8856 case $MAGIC_CMD in
8857[\\/*] | ?:[\\/]*)
8858 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8859 ;;
8860*)
8861 lt_save_MAGIC_CMD="$MAGIC_CMD"
8862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8863 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8864 for ac_dir in $ac_dummy; do
8865 IFS="$lt_save_ifs"
8866 test -z "$ac_dir" && ac_dir=.
8867 if test -f $ac_dir/${ac_tool_prefix}file; then
8868 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8869 if test -n "$file_magic_test_file"; then
8870 case $deplibs_check_method in
8871 "file_magic "*)
8872 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8874 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8875 $EGREP "$file_magic_regex" > /dev/null; then
8876 :
8877 else
8878 cat <<_LT_EOF 1>&2
9c60689e 8879
a243b558
JF
8880*** Warning: the command libtool uses to detect shared libraries,
8881*** $file_magic_cmd, produces output that libtool cannot recognize.
8882*** The result is that libtool may fail to recognize shared libraries
8883*** as such. This will affect the creation of libtool libraries that
8884*** depend on shared libraries, but programs linked with such libtool
8885*** libraries will work regardless of this problem. Nevertheless, you
8886*** may want to report the problem to your system manager and/or to
8887*** bug-libtool@gnu.org
9c60689e 8888
a243b558
JF
8889_LT_EOF
8890 fi ;;
8891 esac
8892 fi
8893 break
8894 fi
8895 done
8896 IFS="$lt_save_ifs"
8897 MAGIC_CMD="$lt_save_MAGIC_CMD"
8898 ;;
8899esac
8900fi
9c60689e 8901
a243b558
JF
8902MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8903if test -n "$MAGIC_CMD"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8905$as_echo "$MAGIC_CMD" >&6; }
8906else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
8909fi
9c60689e
DWT
8910
8911
8912
8913
8914
a243b558
JF
8915if test -z "$lt_cv_path_MAGIC_CMD"; then
8916 if test -n "$ac_tool_prefix"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8918$as_echo_n "checking for file... " >&6; }
8919if ${lt_cv_path_MAGIC_CMD+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921else
8922 case $MAGIC_CMD in
8923[\\/*] | ?:[\\/]*)
8924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8925 ;;
8926*)
8927 lt_save_MAGIC_CMD="$MAGIC_CMD"
8928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8930 for ac_dir in $ac_dummy; do
8931 IFS="$lt_save_ifs"
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/file; then
8934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8935 if test -n "$file_magic_test_file"; then
8936 case $deplibs_check_method in
8937 "file_magic "*)
8938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8941 $EGREP "$file_magic_regex" > /dev/null; then
8942 :
8943 else
8944 cat <<_LT_EOF 1>&2
9c60689e 8945
a243b558
JF
8946*** Warning: the command libtool uses to detect shared libraries,
8947*** $file_magic_cmd, produces output that libtool cannot recognize.
8948*** The result is that libtool may fail to recognize shared libraries
8949*** as such. This will affect the creation of libtool libraries that
8950*** depend on shared libraries, but programs linked with such libtool
8951*** libraries will work regardless of this problem. Nevertheless, you
8952*** may want to report the problem to your system manager and/or to
8953*** bug-libtool@gnu.org
9c60689e 8954
a243b558
JF
8955_LT_EOF
8956 fi ;;
8957 esac
8958 fi
8959 break
8960 fi
8961 done
8962 IFS="$lt_save_ifs"
8963 MAGIC_CMD="$lt_save_MAGIC_CMD"
8964 ;;
8965esac
8966fi
9c60689e 8967
a243b558
JF
8968MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8969if test -n "$MAGIC_CMD"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8971$as_echo "$MAGIC_CMD" >&6; }
8972else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974$as_echo "no" >&6; }
8975fi
9c60689e
DWT
8976
8977
a243b558
JF
8978 else
8979 MAGIC_CMD=:
8980 fi
8981fi
9c60689e 8982
a243b558
JF
8983 fi
8984 ;;
8985esac
9c60689e 8986
a243b558 8987# Use C for the default configuration in the libtool script
9c60689e 8988
a243b558
JF
8989lt_save_CC="$CC"
8990ac_ext=c
8991ac_cpp='$CPP $CPPFLAGS'
8992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8995
8996
a243b558
JF
8997# Source file extension for C test sources.
8998ac_ext=c
9c60689e 8999
a243b558
JF
9000# Object file extension for compiled C test sources.
9001objext=o
9002objext=$objext
9c60689e 9003
a243b558
JF
9004# Code to be used in simple compile tests
9005lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9006
a243b558
JF
9007# Code to be used in simple link tests
9008lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9009
9010
9011
9012
9013
9014
9015
a243b558
JF
9016# If no C compiler was specified, use CC.
9017LTCC=${LTCC-"$CC"}
9c60689e 9018
a243b558
JF
9019# If no C compiler flags were specified, use CFLAGS.
9020LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9021
a243b558
JF
9022# Allow CC to be a program name with arguments.
9023compiler=$CC
9c60689e 9024
a243b558
JF
9025# Save the default compiler, since it gets overwritten when the other
9026# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9027compiler_DEFAULT=$CC
9c60689e 9028
a243b558
JF
9029# save warnings/boilerplate of simple test code
9030ac_outfile=conftest.$ac_objext
9031echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9033_lt_compiler_boilerplate=`cat conftest.err`
9034$RM -r conftest*
9c60689e 9035
a243b558
JF
9036ac_outfile=conftest.$ac_objext
9037echo "$lt_simple_link_test_code" >conftest.$ac_ext
9038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9039_lt_linker_boilerplate=`cat conftest.err`
9040$RM -r conftest*
9c60689e
DWT
9041
9042
a243b558
JF
9043## CAVEAT EMPTOR:
9044## There is no encapsulation within the following macros, do not change
9045## the running order or otherwise move them around unless you know exactly
9046## what you are doing...
9047if test -n "$compiler"; then
9c60689e 9048
a243b558 9049lt_prog_compiler_no_builtin_flag=
9c60689e 9050
a243b558
JF
9051if test "$GCC" = yes; then
9052 case $cc_basename in
9053 nvcc*)
9054 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9055 *)
9056 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9057 esac
9c60689e 9058
a243b558
JF
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9060$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9061if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063else
9064 lt_cv_prog_compiler_rtti_exceptions=no
9065 ac_outfile=conftest.$ac_objext
9066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067 lt_compiler_flag="-fno-rtti -fno-exceptions"
9068 # Insert the option either (1) after the last *FLAGS variable, or
9069 # (2) before a word containing "conftest.", or (3) at the end.
9070 # Note that $ac_compile itself does not contain backslashes and begins
9071 # with a dollar sign (not a hyphen), so the echo should work correctly.
9072 # The option is referenced via a variable to avoid confusing sed.
9073 lt_compile=`echo "$ac_compile" | $SED \
9074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9076 -e 's:$: $lt_compiler_flag:'`
9077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9078 (eval "$lt_compile" 2>conftest.err)
9079 ac_status=$?
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 if (exit $ac_status) && test -s "$ac_outfile"; then
9083 # The compiler can only warn and ignore the option if not recognized
9084 # So say no if there are warnings other than the usual output.
9085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9088 lt_cv_prog_compiler_rtti_exceptions=yes
9089 fi
9090 fi
9091 $RM -r conftest*
9c60689e 9092
a243b558
JF
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9095$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9096
a243b558
JF
9097if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9099else
9100 :
9101fi
9c60689e 9102
a243b558 9103fi
9c60689e
DWT
9104
9105
9106
9107
9108
9109
a243b558
JF
9110 lt_prog_compiler_wl=
9111lt_prog_compiler_pic=
9112lt_prog_compiler_static=
9c60689e
DWT
9113
9114
a243b558
JF
9115 if test "$GCC" = yes; then
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_static='-static'
9c60689e 9118
a243b558
JF
9119 case $host_os in
9120 aix*)
9121 # All AIX code is PIC.
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 now supports IA64 processor
9124 lt_prog_compiler_static='-Bstatic'
9125 fi
9126 ;;
9c60689e 9127
a243b558
JF
9128 amigaos*)
9129 case $host_cpu in
9130 powerpc)
9131 # see comment about AmigaOS4 .so support
9132 lt_prog_compiler_pic='-fPIC'
9133 ;;
9134 m68k)
9135 # FIXME: we need at least 68020 code to build shared libraries, but
9136 # adding the `-m68020' flag to GCC prevents building anything better,
9137 # like `-m68040'.
9138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9139 ;;
9140 esac
9141 ;;
9c60689e 9142
a243b558
JF
9143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9144 # PIC is the default for these OSes.
9145 ;;
9c60689e 9146
a243b558
JF
9147 mingw* | cygwin* | pw32* | os2* | cegcc*)
9148 # This hack is so that the source file can tell whether it is being
9149 # built for inclusion in a dll (and should export symbols for example).
9150 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9151 # (--disable-auto-import) libraries
9152 lt_prog_compiler_pic='-DDLL_EXPORT'
9153 ;;
9c60689e 9154
a243b558
JF
9155 darwin* | rhapsody*)
9156 # PIC is the default on this platform
9157 # Common symbols not allowed in MH_DYLIB files
9158 lt_prog_compiler_pic='-fno-common'
9159 ;;
9c60689e 9160
a243b558
JF
9161 haiku*)
9162 # PIC is the default for Haiku.
9163 # The "-static" flag exists, but is broken.
9164 lt_prog_compiler_static=
9165 ;;
9c60689e 9166
a243b558
JF
9167 hpux*)
9168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9170 # sets the default TLS model and affects inlining.
9171 case $host_cpu in
9172 hppa*64*)
9173 # +Z the default
9174 ;;
9175 *)
9176 lt_prog_compiler_pic='-fPIC'
9177 ;;
9178 esac
9179 ;;
9c60689e 9180
a243b558
JF
9181 interix[3-9]*)
9182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9183 # Instead, we relocate shared libraries at runtime.
9184 ;;
9c60689e 9185
a243b558
JF
9186 msdosdjgpp*)
9187 # Just because we use GCC doesn't mean we suddenly get shared libraries
9188 # on systems that don't support them.
9189 lt_prog_compiler_can_build_shared=no
9190 enable_shared=no
9191 ;;
9c60689e 9192
a243b558
JF
9193 *nto* | *qnx*)
9194 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 # it will coredump.
9196 lt_prog_compiler_pic='-fPIC -shared'
9197 ;;
9c60689e 9198
a243b558
JF
9199 sysv4*MP*)
9200 if test -d /usr/nec; then
9201 lt_prog_compiler_pic=-Kconform_pic
9202 fi
9203 ;;
9c60689e 9204
a243b558
JF
9205 *)
9206 lt_prog_compiler_pic='-fPIC'
9207 ;;
9208 esac
9c60689e 9209
a243b558
JF
9210 case $cc_basename in
9211 nvcc*) # Cuda Compiler Driver 2.2
9212 lt_prog_compiler_wl='-Xlinker '
9213 if test -n "$lt_prog_compiler_pic"; then
9214 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9215 fi
9216 ;;
9217 esac
9218 else
9219 # PORTME Check for flag to pass linker flags through the system compiler.
9220 case $host_os in
9221 aix*)
9222 lt_prog_compiler_wl='-Wl,'
9223 if test "$host_cpu" = ia64; then
9224 # AIX 5 now supports IA64 processor
9225 lt_prog_compiler_static='-Bstatic'
9226 else
9227 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9228 fi
9229 ;;
9c60689e 9230
a243b558
JF
9231 mingw* | cygwin* | pw32* | os2* | cegcc*)
9232 # This hack is so that the source file can tell whether it is being
9233 # built for inclusion in a dll (and should export symbols for example).
9234 lt_prog_compiler_pic='-DDLL_EXPORT'
9235 ;;
9c60689e 9236
a243b558
JF
9237 hpux9* | hpux10* | hpux11*)
9238 lt_prog_compiler_wl='-Wl,'
9239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9240 # not for PA HP-UX.
9241 case $host_cpu in
9242 hppa*64*|ia64*)
9243 # +Z the default
9244 ;;
9245 *)
9246 lt_prog_compiler_pic='+Z'
9247 ;;
9248 esac
9249 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9250 lt_prog_compiler_static='${wl}-a ${wl}archive'
9251 ;;
9c60689e 9252
a243b558
JF
9253 irix5* | irix6* | nonstopux*)
9254 lt_prog_compiler_wl='-Wl,'
9255 # PIC (with -KPIC) is the default.
9256 lt_prog_compiler_static='-non_shared'
9257 ;;
9c60689e 9258
a243b558
JF
9259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9260 case $cc_basename in
9261 # old Intel for x86_64 which still supported -KPIC.
9262 ecc*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-static'
9266 ;;
9267 # icc used to be incompatible with GCC.
9268 # ICC 10 doesn't accept -KPIC any more.
9269 icc* | ifort*)
9270 lt_prog_compiler_wl='-Wl,'
9271 lt_prog_compiler_pic='-fPIC'
9272 lt_prog_compiler_static='-static'
9273 ;;
9274 # Lahey Fortran 8.1.
9275 lf95*)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='--shared'
9278 lt_prog_compiler_static='--static'
9279 ;;
9280 nagfor*)
9281 # NAG Fortran compiler
9282 lt_prog_compiler_wl='-Wl,-Wl,,'
9283 lt_prog_compiler_pic='-PIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 ;;
9286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9287 # Portland Group compilers (*not* the Pentium gcc compiler,
9288 # which looks to be a dead project)
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='-fpic'
9291 lt_prog_compiler_static='-Bstatic'
9292 ;;
9293 ccc*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # All Alpha code is PIC.
9296 lt_prog_compiler_static='-non_shared'
9297 ;;
9298 xl* | bgxl* | bgf* | mpixl*)
9299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9300 lt_prog_compiler_wl='-Wl,'
9301 lt_prog_compiler_pic='-qpic'
9302 lt_prog_compiler_static='-qstaticlink'
9303 ;;
9304 *)
9305 case `$CC -V 2>&1 | sed 5q` in
9306 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 lt_prog_compiler_wl=''
9311 ;;
9312 *Sun\ F* | *Sun*Fortran*)
9313 lt_prog_compiler_pic='-KPIC'
9314 lt_prog_compiler_static='-Bstatic'
9315 lt_prog_compiler_wl='-Qoption ld '
9316 ;;
9317 *Sun\ C*)
9318 # Sun C 5.9
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 lt_prog_compiler_wl='-Wl,'
9322 ;;
9323 *Intel*\ [CF]*Compiler*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-fPIC'
9326 lt_prog_compiler_static='-static'
9327 ;;
9328 *Portland\ Group*)
9329 lt_prog_compiler_wl='-Wl,'
9330 lt_prog_compiler_pic='-fpic'
9331 lt_prog_compiler_static='-Bstatic'
9332 ;;
9333 esac
9334 ;;
9335 esac
9336 ;;
9c60689e 9337
a243b558
JF
9338 newsos6)
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 ;;
9c60689e 9342
a243b558
JF
9343 *nto* | *qnx*)
9344 # QNX uses GNU C++, but need to define -shared option too, otherwise
9345 # it will coredump.
9346 lt_prog_compiler_pic='-fPIC -shared'
9347 ;;
9c60689e 9348
a243b558
JF
9349 osf3* | osf4* | osf5*)
9350 lt_prog_compiler_wl='-Wl,'
9351 # All OSF/1 code is PIC.
9352 lt_prog_compiler_static='-non_shared'
9353 ;;
9c60689e 9354
a243b558
JF
9355 rdos*)
9356 lt_prog_compiler_static='-non_shared'
9357 ;;
9c60689e 9358
a243b558
JF
9359 solaris*)
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 case $cc_basename in
9363 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9364 lt_prog_compiler_wl='-Qoption ld ';;
9365 *)
9366 lt_prog_compiler_wl='-Wl,';;
9367 esac
9368 ;;
9c60689e 9369
a243b558
JF
9370 sunos4*)
9371 lt_prog_compiler_wl='-Qoption ld '
9372 lt_prog_compiler_pic='-PIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 ;;
9c60689e 9375
a243b558
JF
9376 sysv4 | sysv4.2uw2* | sysv4.3*)
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_pic='-KPIC'
9379 lt_prog_compiler_static='-Bstatic'
9380 ;;
9c60689e 9381
a243b558
JF
9382 sysv4*MP*)
9383 if test -d /usr/nec ;then
9384 lt_prog_compiler_pic='-Kconform_pic'
9385 lt_prog_compiler_static='-Bstatic'
9386 fi
9387 ;;
9c60689e 9388
a243b558
JF
9389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_pic='-KPIC'
9392 lt_prog_compiler_static='-Bstatic'
9393 ;;
9c60689e 9394
a243b558
JF
9395 unicos*)
9396 lt_prog_compiler_wl='-Wl,'
9397 lt_prog_compiler_can_build_shared=no
9398 ;;
9c60689e 9399
a243b558
JF
9400 uts4*)
9401 lt_prog_compiler_pic='-pic'
9402 lt_prog_compiler_static='-Bstatic'
9403 ;;
9c60689e 9404
a243b558
JF
9405 *)
9406 lt_prog_compiler_can_build_shared=no
9407 ;;
9408 esac
9409 fi
9c60689e 9410
a243b558
JF
9411case $host_os in
9412 # For platforms which do not support PIC, -DPIC is meaningless:
9413 *djgpp*)
9414 lt_prog_compiler_pic=
9415 ;;
9416 *)
9417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9418 ;;
9419esac
9c60689e 9420
a243b558
JF
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9422$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9423if ${lt_cv_prog_compiler_pic+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425else
9426 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9427fi
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9429$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9430lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9431
a243b558
JF
9432#
9433# Check to make sure the PIC flag actually works.
9434#
9435if test -n "$lt_prog_compiler_pic"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9437$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9438if ${lt_cv_prog_compiler_pic_works+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440else
9441 lt_cv_prog_compiler_pic_works=no
9442 ac_outfile=conftest.$ac_objext
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9445 # Insert the option either (1) after the last *FLAGS variable, or
9446 # (2) before a word containing "conftest.", or (3) at the end.
9447 # Note that $ac_compile itself does not contain backslashes and begins
9448 # with a dollar sign (not a hyphen), so the echo should work correctly.
9449 # The option is referenced via a variable to avoid confusing sed.
9450 lt_compile=`echo "$ac_compile" | $SED \
9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453 -e 's:$: $lt_compiler_flag:'`
9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455 (eval "$lt_compile" 2>conftest.err)
9456 ac_status=$?
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 if (exit $ac_status) && test -s "$ac_outfile"; then
9460 # The compiler can only warn and ignore the option if not recognized
9461 # So say no if there are warnings other than the usual output.
9462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9465 lt_cv_prog_compiler_pic_works=yes
9466 fi
9467 fi
9468 $RM -r conftest*
9c60689e 9469
a243b558
JF
9470fi
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9472$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9473
a243b558
JF
9474if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9475 case $lt_prog_compiler_pic in
9476 "" | " "*) ;;
9477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9478 esac
9479else
9480 lt_prog_compiler_pic=
9481 lt_prog_compiler_can_build_shared=no
9482fi
9c60689e 9483
a243b558 9484fi
9c60689e
DWT
9485
9486
9487
9488
9489
9490
9c60689e
DWT
9491
9492
9493
9494
9495
a243b558
JF
9496#
9497# Check to make sure the static flag actually works.
9498#
9499wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9501$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9502if ${lt_cv_prog_compiler_static_works+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504else
9505 lt_cv_prog_compiler_static_works=no
9506 save_LDFLAGS="$LDFLAGS"
9507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9510 # The linker can only warn and ignore the option if not recognized
9511 # So say no if there are warnings
9512 if test -s conftest.err; then
9513 # Append any errors to the config.log.
9514 cat conftest.err 1>&5
9515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9517 if diff conftest.exp conftest.er2 >/dev/null; then
9518 lt_cv_prog_compiler_static_works=yes
9519 fi
9520 else
9521 lt_cv_prog_compiler_static_works=yes
9522 fi
9523 fi
9524 $RM -r conftest*
9525 LDFLAGS="$save_LDFLAGS"
9c60689e 9526
a243b558
JF
9527fi
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9529$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9530
a243b558
JF
9531if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9532 :
9c60689e 9533else
a243b558 9534 lt_prog_compiler_static=
9c60689e 9535fi
9c60689e 9536
9c60689e 9537
9c60689e 9538
9c60689e 9539
9c60689e 9540
9c60689e 9541
9c60689e 9542
a243b558
JF
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9544$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9545if ${lt_cv_prog_compiler_c_o+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547else
9548 lt_cv_prog_compiler_c_o=no
9549 $RM -r conftest 2>/dev/null
9550 mkdir conftest
9551 cd conftest
9552 mkdir out
9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9554
a243b558
JF
9555 lt_compiler_flag="-o out/conftest2.$ac_objext"
9556 # Insert the option either (1) after the last *FLAGS variable, or
9557 # (2) before a word containing "conftest.", or (3) at the end.
9558 # Note that $ac_compile itself does not contain backslashes and begins
9559 # with a dollar sign (not a hyphen), so the echo should work correctly.
9560 lt_compile=`echo "$ac_compile" | $SED \
9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9563 -e 's:$: $lt_compiler_flag:'`
9564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9565 (eval "$lt_compile" 2>out/conftest.err)
9566 ac_status=$?
9567 cat out/conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9570 then
9571 # The compiler can only warn and ignore the option if not recognized
9572 # So say no if there are warnings
9573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9576 lt_cv_prog_compiler_c_o=yes
9577 fi
9578 fi
9579 chmod u+w . 2>&5
9580 $RM -r conftest*
9581 # SGI C++ compiler will create directory out/ii_files/ for
9582 # template instantiation
9583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9584 $RM out/* && rmdir out
9585 cd ..
9586 $RM -r conftest
9587 $RM -r conftest*
9c60689e 9588
a243b558
JF
9589fi
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9591$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9592
ee134472 9593
ee134472 9594
ee134472 9595
ee134472 9596
9c60689e 9597
a243b558
JF
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9599$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9600if ${lt_cv_prog_compiler_c_o+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602else
9603 lt_cv_prog_compiler_c_o=no
9604 $RM -r conftest 2>/dev/null
9605 mkdir conftest
9606 cd conftest
9607 mkdir out
9608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9609
a243b558
JF
9610 lt_compiler_flag="-o out/conftest2.$ac_objext"
9611 # Insert the option either (1) after the last *FLAGS variable, or
9612 # (2) before a word containing "conftest.", or (3) at the end.
9613 # Note that $ac_compile itself does not contain backslashes and begins
9614 # with a dollar sign (not a hyphen), so the echo should work correctly.
9615 lt_compile=`echo "$ac_compile" | $SED \
9616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9618 -e 's:$: $lt_compiler_flag:'`
9619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9620 (eval "$lt_compile" 2>out/conftest.err)
9621 ac_status=$?
9622 cat out/conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9625 then
9626 # The compiler can only warn and ignore the option if not recognized
9627 # So say no if there are warnings
9628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9631 lt_cv_prog_compiler_c_o=yes
9632 fi
9633 fi
9634 chmod u+w . 2>&5
9635 $RM -r conftest*
9636 # SGI C++ compiler will create directory out/ii_files/ for
9637 # template instantiation
9638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9639 $RM out/* && rmdir out
9640 cd ..
9641 $RM -r conftest
9642 $RM -r conftest*
9c60689e 9643
a243b558
JF
9644fi
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9646$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9647
9c60689e 9648
a243b558
JF
9649
9650
9651hard_links="nottested"
9652if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9653 # do not overwrite the value of need_locks provided by the user
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9655$as_echo_n "checking if we can lock with hard links... " >&6; }
9656 hard_links=yes
9657 $RM -r conftest*
9658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9659 touch conftest.a
9660 ln conftest.a conftest.b 2>&5 || hard_links=no
9661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9663$as_echo "$hard_links" >&6; }
9664 if test "$hard_links" = no; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9666$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9667 need_locks=warn
9c60689e 9668 fi
a243b558
JF
9669else
9670 need_locks=no
9671fi
9c60689e 9672
ee134472 9673
9c60689e 9674
9c60689e 9675
9c60689e 9676
a243b558
JF
9677
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9679$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9680
9681 runpath_var=
9682 allow_undefined_flag=
9683 always_export_symbols=no
9684 archive_cmds=
9685 archive_expsym_cmds=
9686 compiler_needs_object=no
9687 enable_shared_with_static_runtimes=no
9688 export_dynamic_flag_spec=
9689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9690 hardcode_automatic=no
9691 hardcode_direct=no
9692 hardcode_direct_absolute=no
9693 hardcode_libdir_flag_spec=
9694 hardcode_libdir_separator=
9695 hardcode_minus_L=no
9696 hardcode_shlibpath_var=unsupported
9697 inherit_rpath=no
9698 link_all_deplibs=unknown
9699 module_cmds=
9700 module_expsym_cmds=
9701 old_archive_from_new_cmds=
9702 old_archive_from_expsyms_cmds=
9703 thread_safe_flag_spec=
9704 whole_archive_flag_spec=
9705 # include_expsyms should be a list of space-separated symbols to be *always*
9706 # included in the symbol list
9707 include_expsyms=
9708 # exclude_expsyms can be an extended regexp of symbols to exclude
9709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9711 # as well as any symbol that contains `d'.
9712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9714 # platforms (ab)use it in PIC code, but their linkers get confused if
9715 # the symbol is explicitly referenced. Since portable code cannot
9716 # rely on this symbol name, it's probably fine to never include it in
9717 # preloaded symbol tables.
9718 # Exclude shared library initialization/finalization symbols.
9719 extract_expsyms_cmds=
9720
9c60689e 9721 case $host_os in
a243b558
JF
9722 cygwin* | mingw* | pw32* | cegcc*)
9723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9724 # When not using gcc, we currently assume that we are using
9725 # Microsoft Visual C++.
9726 if test "$GCC" != yes; then
9727 with_gnu_ld=no
9728 fi
9c60689e 9729 ;;
a243b558
JF
9730 interix*)
9731 # we just hope/assume this is gcc and not c89 (= MSVC++)
9732 with_gnu_ld=yes
9733 ;;
9734 openbsd*)
9735 with_gnu_ld=no
9c60689e
DWT
9736 ;;
9737 esac
9c60689e 9738
a243b558 9739 ld_shlibs=yes
ee134472 9740
a243b558
JF
9741 # On some targets, GNU ld is compatible enough with the native linker
9742 # that we're better off using the native interface for both.
9743 lt_use_gnu_ld_interface=no
9744 if test "$with_gnu_ld" = yes; then
9745 case $host_os in
9746 aix*)
9747 # The AIX port of GNU ld has always aspired to compatibility
9748 # with the native linker. However, as the warning in the GNU ld
9749 # block says, versions before 2.19.5* couldn't really create working
9750 # shared libraries, regardless of the interface used.
9751 case `$LD -v 2>&1` in
9752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9755 *)
9756 lt_use_gnu_ld_interface=yes
9757 ;;
9758 esac
9759 ;;
9760 *)
9761 lt_use_gnu_ld_interface=yes
9762 ;;
9763 esac
9764 fi
9c60689e 9765
a243b558
JF
9766 if test "$lt_use_gnu_ld_interface" = yes; then
9767 # If archive_cmds runs LD, not CC, wlarc should be empty
9768 wlarc='${wl}'
9c60689e 9769
a243b558
JF
9770 # Set some defaults for GNU ld with shared library support. These
9771 # are reset later if shared libraries are not supported. Putting them
9772 # here allows them to be overridden if necessary.
9773 runpath_var=LD_RUN_PATH
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 export_dynamic_flag_spec='${wl}--export-dynamic'
9776 # ancient GNU ld didn't support --whole-archive et. al.
9777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9779 else
9780 whole_archive_flag_spec=
9781 fi
9782 supports_anon_versioning=no
9783 case `$LD -v 2>&1` in
9784 *GNU\ gold*) supports_anon_versioning=yes ;;
9785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9788 *\ 2.11.*) ;; # other 2.11 versions
9789 *) supports_anon_versioning=yes ;;
9790 esac
ee134472 9791
a243b558
JF
9792 # See if GNU ld supports shared libraries.
9793 case $host_os in
9794 aix[3-9]*)
9795 # On AIX/PPC, the GNU linker is very broken
9796 if test "$host_cpu" != ia64; then
9797 ld_shlibs=no
9798 cat <<_LT_EOF 1>&2
ee134472 9799
a243b558
JF
9800*** Warning: the GNU linker, at least up to release 2.19, is reported
9801*** to be unable to reliably create shared libraries on AIX.
9802*** Therefore, libtool is disabling shared libraries support. If you
9803*** really care for shared libraries, you may want to install binutils
9804*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9805*** You will then need to restart the configuration process.
9c60689e 9806
a243b558
JF
9807_LT_EOF
9808 fi
9809 ;;
9c60689e 9810
a243b558
JF
9811 amigaos*)
9812 case $host_cpu in
9813 powerpc)
9814 # see comment about AmigaOS4 .so support
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 archive_expsym_cmds=''
9817 ;;
9818 m68k)
9819 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)'
9820 hardcode_libdir_flag_spec='-L$libdir'
9821 hardcode_minus_L=yes
9822 ;;
9823 esac
9824 ;;
9c60689e 9825
a243b558
JF
9826 beos*)
9827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9828 allow_undefined_flag=unsupported
9829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9830 # support --undefined. This deserves some investigation. FIXME
9831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9c60689e 9836
a243b558
JF
9837 cygwin* | mingw* | pw32* | cegcc*)
9838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9839 # as there is no search path for DLLs.
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 export_dynamic_flag_spec='${wl}--export-all-symbols'
9842 allow_undefined_flag=unsupported
9843 always_export_symbols=no
9844 enable_shared_with_static_runtimes=yes
9845 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'
9846 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9847
a243b558
JF
9848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9850 # If the export-symbols file already is a .def file (1st line
9851 # is EXPORTS), use it as is; otherwise, prepend...
9852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9853 cp $export_symbols $output_objdir/$soname.def;
9854 else
9855 echo EXPORTS > $output_objdir/$soname.def;
9856 cat $export_symbols >> $output_objdir/$soname.def;
9857 fi~
9858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9859 else
9860 ld_shlibs=no
9861 fi
9862 ;;
9c60689e 9863
a243b558
JF
9864 haiku*)
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866 link_all_deplibs=yes
9867 ;;
9c60689e 9868
a243b558
JF
9869 interix[3-9]*)
9870 hardcode_direct=no
9871 hardcode_shlibpath_var=no
9872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9873 export_dynamic_flag_spec='${wl}-E'
9874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9875 # Instead, shared libraries are loaded at an image base (0x10000000 by
9876 # default) and relocated if they conflict, which is a slow very memory
9877 # consuming and fragmenting process. To avoid this, we pick a random,
9878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9881 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'
9882 ;;
9c60689e 9883
a243b558
JF
9884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9885 tmp_diet=no
9886 if test "$host_os" = linux-dietlibc; then
9887 case $cc_basename in
9888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9889 esac
9890 fi
9891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9892 && test "$tmp_diet" = no
9893 then
9894 tmp_addflag=' $pic_flag'
9895 tmp_sharedflag='-shared'
9896 case $cc_basename,$host_cpu in
9897 pgcc*) # Portland Group C compiler
9898 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'
9899 tmp_addflag=' $pic_flag'
9900 ;;
9901 pgf77* | pgf90* | pgf95* | pgfortran*)
9902 # Portland Group f77 and f90 compilers
9903 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'
9904 tmp_addflag=' $pic_flag -Mnomain' ;;
9905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9906 tmp_addflag=' -i_dynamic' ;;
9907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9908 tmp_addflag=' -i_dynamic -nofor_main' ;;
9909 ifc* | ifort*) # Intel Fortran compiler
9910 tmp_addflag=' -nofor_main' ;;
9911 lf95*) # Lahey Fortran 8.1
9912 whole_archive_flag_spec=
9913 tmp_sharedflag='--shared' ;;
9914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9915 tmp_sharedflag='-qmkshrobj'
9916 tmp_addflag= ;;
9917 nvcc*) # Cuda Compiler Driver 2.2
9918 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'
9919 compiler_needs_object=yes
9920 ;;
9921 esac
9922 case `$CC -V 2>&1 | sed 5q` in
9923 *Sun\ C*) # Sun C 5.9
9924 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'
9925 compiler_needs_object=yes
9926 tmp_sharedflag='-G' ;;
9927 *Sun\ F*) # Sun Fortran 8.3
9928 tmp_sharedflag='-G' ;;
9929 esac
9930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 9931
a243b558
JF
9932 if test "x$supports_anon_versioning" = xyes; then
9933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9935 echo "local: *; };" >> $output_objdir/$libname.ver~
9936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9937 fi
9c60689e 9938
a243b558
JF
9939 case $cc_basename in
9940 xlf* | bgf* | bgxlf* | mpixlf*)
9941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9944 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9945 if test "x$supports_anon_versioning" = xyes; then
9946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9948 echo "local: *; };" >> $output_objdir/$libname.ver~
9949 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9950 fi
9951 ;;
9952 esac
9953 else
9954 ld_shlibs=no
9955 fi
9956 ;;
9c60689e 9957
a243b558
JF
9958 netbsd*)
9959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9961 wlarc=
9962 else
9963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9965 fi
9966 ;;
9c60689e 9967
a243b558
JF
9968 solaris*)
9969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9970 ld_shlibs=no
9971 cat <<_LT_EOF 1>&2
9c60689e 9972
a243b558
JF
9973*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9974*** create shared libraries on Solaris systems. Therefore, libtool
9975*** is disabling shared libraries support. We urge you to upgrade GNU
9976*** binutils to release 2.9.1 or newer. Another option is to modify
9977*** your PATH or compiler configuration so that the native linker is
9978*** used, and then restart.
9c60689e 9979
a243b558
JF
9980_LT_EOF
9981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9984 else
9985 ld_shlibs=no
9986 fi
9987 ;;
9c60689e 9988
a243b558
JF
9989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9990 case `$LD -v 2>&1` in
9991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9992 ld_shlibs=no
9993 cat <<_LT_EOF 1>&2
9c60689e 9994
a243b558
JF
9995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9996*** reliably create shared libraries on SCO systems. Therefore, libtool
9997*** is disabling shared libraries support. We urge you to upgrade GNU
9998*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9999*** your PATH or compiler configuration so that the native linker is
10000*** used, and then restart.
9c60689e 10001
a243b558
JF
10002_LT_EOF
10003 ;;
10004 *)
10005 # For security reasons, it is highly recommended that you always
10006 # use absolute paths for naming shared libraries, and exclude the
10007 # DT_RUNPATH tag from executables and libraries. But doing so
10008 # requires that you compile everything twice, which is a pain.
10009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10013 else
10014 ld_shlibs=no
10015 fi
10016 ;;
10017 esac
10018 ;;
9c60689e 10019
a243b558
JF
10020 sunos4*)
10021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10022 wlarc=
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 ;;
9c60689e 10026
a243b558
JF
10027 *)
10028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10031 else
10032 ld_shlibs=no
10033 fi
10034 ;;
10035 esac
9c60689e 10036
a243b558
JF
10037 if test "$ld_shlibs" = no; then
10038 runpath_var=
10039 hardcode_libdir_flag_spec=
10040 export_dynamic_flag_spec=
10041 whole_archive_flag_spec=
10042 fi
10043 else
10044 # PORTME fill in a description of your system's linker (not GNU ld)
10045 case $host_os in
10046 aix3*)
10047 allow_undefined_flag=unsupported
10048 always_export_symbols=yes
10049 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'
10050 # Note: this linker hardcodes the directories in LIBPATH if there
10051 # are no directories specified by -L.
10052 hardcode_minus_L=yes
10053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10054 # Neither direct hardcoding nor static linking is supported with a
10055 # broken collect2.
10056 hardcode_direct=unsupported
10057 fi
10058 ;;
9c60689e 10059
a243b558
JF
10060 aix[4-9]*)
10061 if test "$host_cpu" = ia64; then
10062 # On IA64, the linker does run time linking by default, so we don't
10063 # have to do anything special.
10064 aix_use_runtimelinking=no
10065 exp_sym_flag='-Bexport'
10066 no_entry_flag=""
10067 else
10068 # If we're using GNU nm, then we don't want the "-C" option.
10069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10070 # Also, AIX nm treats weak defined symbols like other global
10071 # defined symbols, whereas GNU nm marks them as "W".
10072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10073 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10074 else
10075 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10076 fi
10077 aix_use_runtimelinking=no
9c60689e 10078
a243b558
JF
10079 # Test if we are trying to use run time linking or normal
10080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10081 # need to do runtime linking.
10082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10083 for ld_flag in $LDFLAGS; do
10084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10085 aix_use_runtimelinking=yes
10086 break
10087 fi
10088 done
10089 ;;
10090 esac
9c60689e 10091
a243b558
JF
10092 exp_sym_flag='-bexport'
10093 no_entry_flag='-bnoentry'
10094 fi
9c60689e 10095
a243b558
JF
10096 # When large executables or shared objects are built, AIX ld can
10097 # have problems creating the table of contents. If linking a library
10098 # or program results in "error TOC overflow" add -mminimal-toc to
10099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10101
a243b558
JF
10102 archive_cmds=''
10103 hardcode_direct=yes
10104 hardcode_direct_absolute=yes
10105 hardcode_libdir_separator=':'
10106 link_all_deplibs=yes
10107 file_list_spec='${wl}-f,'
9c60689e 10108
a243b558
JF
10109 if test "$GCC" = yes; then
10110 case $host_os in aix4.[012]|aix4.[012].*)
10111 # We only want to do this on AIX 4.2 and lower, the check
10112 # below for broken collect2 doesn't work under 4.3+
10113 collect2name=`${CC} -print-prog-name=collect2`
10114 if test -f "$collect2name" &&
10115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10116 then
10117 # We have reworked collect2
10118 :
10119 else
10120 # We have old collect2
10121 hardcode_direct=unsupported
10122 # It fails to find uninstalled libraries when the uninstalled
10123 # path is not listed in the libpath. Setting hardcode_minus_L
10124 # to unsupported forces relinking
10125 hardcode_minus_L=yes
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_libdir_separator=
10128 fi
10129 ;;
10130 esac
10131 shared_flag='-shared'
10132 if test "$aix_use_runtimelinking" = yes; then
10133 shared_flag="$shared_flag "'${wl}-G'
10134 fi
10135 else
10136 # not using gcc
10137 if test "$host_cpu" = ia64; then
10138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10139 # chokes on -Wl,-G. The following line is correct:
10140 shared_flag='-G'
10141 else
10142 if test "$aix_use_runtimelinking" = yes; then
10143 shared_flag='${wl}-G'
10144 else
10145 shared_flag='${wl}-bM:SRE'
10146 fi
10147 fi
10148 fi
9c60689e 10149
a243b558
JF
10150 export_dynamic_flag_spec='${wl}-bexpall'
10151 # It seems that -bexpall does not export symbols beginning with
10152 # underscore (_), so it is better to generate a list of symbols to export.
10153 always_export_symbols=yes
10154 if test "$aix_use_runtimelinking" = yes; then
10155 # Warning - without using the other runtime loading flags (-brtl),
10156 # -berok will link without error, but may produce a broken library.
10157 allow_undefined_flag='-berok'
10158 # Determine the default libpath from the value encoded in an
10159 # empty executable.
10160 if test "${lt_cv_aix_libpath+set}" = set; then
10161 aix_libpath=$lt_cv_aix_libpath
9c60689e 10162else
a243b558 10163 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10164 $as_echo_n "(cached) " >&6
10165else
a243b558 10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10167/* end confdefs.h. */
10168
9c60689e
DWT
10169int
10170main ()
10171{
a243b558 10172
9c60689e
DWT
10173 ;
10174 return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10178
10179 lt_aix_libpath_sed='
10180 /Import File Strings/,/^$/ {
10181 /^0/ {
10182 s/^0 *\([^ ]*\) *$/\1/
10183 p
10184 }
10185 }'
10186 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10187 # Check for a 64-bit object if we didn't find anything.
10188 if test -z "$lt_cv_aix_libpath_"; then
10189 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190 fi
9c60689e
DWT
10191fi
10192rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10194 if test -z "$lt_cv_aix_libpath_"; then
10195 lt_cv_aix_libpath_="/usr/lib:/lib"
10196 fi
9c60689e
DWT
10197
10198fi
10199
a243b558
JF
10200 aix_libpath=$lt_cv_aix_libpath_
10201fi
9c60689e 10202
a243b558
JF
10203 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10204 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10205 else
10206 if test "$host_cpu" = ia64; then
10207 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10208 allow_undefined_flag="-z nodefs"
10209 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"
10210 else
10211 # Determine the default libpath from the value encoded in an
10212 # empty executable.
10213 if test "${lt_cv_aix_libpath+set}" = set; then
10214 aix_libpath=$lt_cv_aix_libpath
9c60689e 10215else
a243b558 10216 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10217 $as_echo_n "(cached) " >&6
10218else
a243b558 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10220/* end confdefs.h. */
10221
9c60689e
DWT
10222int
10223main ()
10224{
a243b558 10225
9c60689e
DWT
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10231
a243b558
JF
10232 lt_aix_libpath_sed='
10233 /Import File Strings/,/^$/ {
10234 /^0/ {
10235 s/^0 *\([^ ]*\) *$/\1/
10236 p
10237 }
10238 }'
10239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10240 # Check for a 64-bit object if we didn't find anything.
10241 if test -z "$lt_cv_aix_libpath_"; then
10242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10243 fi
9c60689e
DWT
10244fi
10245rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10247 if test -z "$lt_cv_aix_libpath_"; then
10248 lt_cv_aix_libpath_="/usr/lib:/lib"
10249 fi
10250
9c60689e 10251fi
9c60689e 10252
a243b558
JF
10253 aix_libpath=$lt_cv_aix_libpath_
10254fi
10255
10256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10257 # Warning - without using the other run time loading flags,
10258 # -berok will link without error, but may produce a broken library.
10259 no_undefined_flag=' ${wl}-bernotok'
10260 allow_undefined_flag=' ${wl}-berok'
10261 if test "$with_gnu_ld" = yes; then
10262 # We only use this code for GNU lds that support --whole-archive.
10263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10264 else
10265 # Exported symbols can be pulled into shared objects from archives
10266 whole_archive_flag_spec='$convenience'
10267 fi
10268 archive_cmds_need_lc=yes
10269 # This is similar to how AIX traditionally builds its shared libraries.
10270 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10271 fi
10272 fi
10273 ;;
10274
10275 amigaos*)
10276 case $host_cpu in
10277 powerpc)
10278 # see comment about AmigaOS4 .so support
10279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280 archive_expsym_cmds=''
10281 ;;
10282 m68k)
10283 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)'
10284 hardcode_libdir_flag_spec='-L$libdir'
10285 hardcode_minus_L=yes
10286 ;;
10287 esac
10288 ;;
10289
10290 bsdi[45]*)
10291 export_dynamic_flag_spec=-rdynamic
10292 ;;
10293
10294 cygwin* | mingw* | pw32* | cegcc*)
10295 # When not using gcc, we currently assume that we are using
10296 # Microsoft Visual C++.
10297 # hardcode_libdir_flag_spec is actually meaningless, as there is
10298 # no search path for DLLs.
10299 case $cc_basename in
10300 cl*)
10301 # Native MSVC
10302 hardcode_libdir_flag_spec=' '
10303 allow_undefined_flag=unsupported
10304 always_export_symbols=yes
10305 file_list_spec='@'
10306 # Tell ltmain to make .lib files, not .a files.
10307 libext=lib
10308 # Tell ltmain to make .dll files, not .so files.
10309 shrext_cmds=".dll"
10310 # FIXME: Setting linknames here is a bad hack.
10311 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10313 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10314 else
10315 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10316 fi~
10317 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10318 linknames='
10319 # The linker will not automatically build a static lib if we build a DLL.
10320 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10321 enable_shared_with_static_runtimes=yes
10322 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10324 # Don't use ranlib
10325 old_postinstall_cmds='chmod 644 $oldlib'
10326 postlink_cmds='lt_outputfile="@OUTPUT@"~
10327 lt_tool_outputfile="@TOOL_OUTPUT@"~
10328 case $lt_outputfile in
10329 *.exe|*.EXE) ;;
10330 *)
10331 lt_outputfile="$lt_outputfile.exe"
10332 lt_tool_outputfile="$lt_tool_outputfile.exe"
10333 ;;
10334 esac~
10335 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10336 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10337 $RM "$lt_outputfile.manifest";
10338 fi'
10339 ;;
10340 *)
10341 # Assume MSVC wrapper
10342 hardcode_libdir_flag_spec=' '
10343 allow_undefined_flag=unsupported
10344 # Tell ltmain to make .lib files, not .a files.
10345 libext=lib
10346 # Tell ltmain to make .dll files, not .so files.
10347 shrext_cmds=".dll"
10348 # FIXME: Setting linknames here is a bad hack.
10349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10350 # The linker will automatically build a .lib file if we build a DLL.
10351 old_archive_from_new_cmds='true'
10352 # FIXME: Should let the user specify the lib program.
10353 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10354 enable_shared_with_static_runtimes=yes
10355 ;;
10356 esac
10357 ;;
10358
10359 darwin* | rhapsody*)
10360
10361
10362 archive_cmds_need_lc=no
10363 hardcode_direct=no
10364 hardcode_automatic=yes
10365 hardcode_shlibpath_var=unsupported
10366 if test "$lt_cv_ld_force_load" = "yes"; then
10367 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\"`'
10368
10369 else
10370 whole_archive_flag_spec=''
10371 fi
10372 link_all_deplibs=yes
10373 allow_undefined_flag="$_lt_dar_allow_undefined"
10374 case $cc_basename in
10375 ifort*) _lt_dar_can_shared=yes ;;
10376 *) _lt_dar_can_shared=$GCC ;;
10377 esac
10378 if test "$_lt_dar_can_shared" = "yes"; then
10379 output_verbose_link_cmd=func_echo_all
10380 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10381 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10382 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}"
10383 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}"
10384
10385 else
10386 ld_shlibs=no
10387 fi
10388
10389 ;;
10390
10391 dgux*)
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10398 # support. Future versions do this automatically, but an explicit c++rt0.o
10399 # does not break anything, and helps significantly (at the cost of a little
10400 # extra space).
10401 freebsd2.2*)
10402 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10403 hardcode_libdir_flag_spec='-R$libdir'
10404 hardcode_direct=yes
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10409 freebsd2.*)
10410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10411 hardcode_direct=yes
10412 hardcode_minus_L=yes
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10417 freebsd* | dragonfly*)
10418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10419 hardcode_libdir_flag_spec='-R$libdir'
10420 hardcode_direct=yes
10421 hardcode_shlibpath_var=no
10422 ;;
10423
10424 hpux9*)
10425 if test "$GCC" = yes; then
10426 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10427 else
10428 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10429 fi
10430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10431 hardcode_libdir_separator=:
10432 hardcode_direct=yes
10433
10434 # hardcode_minus_L: Not really in the search PATH,
10435 # but as the default location of the library.
10436 hardcode_minus_L=yes
10437 export_dynamic_flag_spec='${wl}-E'
10438 ;;
10439
10440 hpux10*)
10441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10442 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443 else
10444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445 fi
10446 if test "$with_gnu_ld" = no; then
10447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_direct=yes
10450 hardcode_direct_absolute=yes
10451 export_dynamic_flag_spec='${wl}-E'
10452 # hardcode_minus_L: Not really in the search PATH,
10453 # but as the default location of the library.
10454 hardcode_minus_L=yes
10455 fi
10456 ;;
10457
10458 hpux11*)
10459 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10460 case $host_cpu in
10461 hppa*64*)
10462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 ia64*)
10465 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10466 ;;
10467 *)
10468 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 esac
10471 else
10472 case $host_cpu in
10473 hppa*64*)
10474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 ;;
10476 ia64*)
10477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10478 ;;
10479 *)
10480
10481 # Older versions of the 11.00 compiler do not understand -b yet
10482 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10484$as_echo_n "checking if $CC understands -b... " >&6; }
10485if ${lt_cv_prog_compiler__b+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487else
10488 lt_cv_prog_compiler__b=no
10489 save_LDFLAGS="$LDFLAGS"
10490 LDFLAGS="$LDFLAGS -b"
10491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10493 # The linker can only warn and ignore the option if not recognized
10494 # So say no if there are warnings
10495 if test -s conftest.err; then
10496 # Append any errors to the config.log.
10497 cat conftest.err 1>&5
10498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10500 if diff conftest.exp conftest.er2 >/dev/null; then
10501 lt_cv_prog_compiler__b=yes
10502 fi
10503 else
10504 lt_cv_prog_compiler__b=yes
10505 fi
10506 fi
10507 $RM -r conftest*
10508 LDFLAGS="$save_LDFLAGS"
10509
10510fi
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10512$as_echo "$lt_cv_prog_compiler__b" >&6; }
10513
10514if test x"$lt_cv_prog_compiler__b" = xyes; then
10515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10516else
10517 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10518fi
10519
10520 ;;
10521 esac
10522 fi
10523 if test "$with_gnu_ld" = no; then
10524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10525 hardcode_libdir_separator=:
10526
10527 case $host_cpu in
10528 hppa*64*|ia64*)
10529 hardcode_direct=no
10530 hardcode_shlibpath_var=no
10531 ;;
10532 *)
10533 hardcode_direct=yes
10534 hardcode_direct_absolute=yes
10535 export_dynamic_flag_spec='${wl}-E'
10536
10537 # hardcode_minus_L: Not really in the search PATH,
10538 # but as the default location of the library.
10539 hardcode_minus_L=yes
10540 ;;
10541 esac
10542 fi
10543 ;;
10544
10545 irix5* | irix6* | nonstopux*)
10546 if test "$GCC" = yes; then
10547 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'
10548 # Try to use the -exported_symbol ld option, if it does not
10549 # work, assume that -exports_file does not work either and
10550 # implicitly export all symbols.
10551 # This should be the same for all languages, so no per-tag cache variable.
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10553$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10554if ${lt_cv_irix_exported_symbol+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556else
10557 save_LDFLAGS="$LDFLAGS"
10558 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h. */
10561int foo (void) { return 0; }
10562_ACEOF
10563if ac_fn_c_try_link "$LINENO"; then :
10564 lt_cv_irix_exported_symbol=yes
10565else
10566 lt_cv_irix_exported_symbol=no
10567fi
10568rm -f core conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LDFLAGS="$save_LDFLAGS"
10571fi
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10573$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10574 if test "$lt_cv_irix_exported_symbol" = yes; then
10575 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'
10576 fi
10577 else
10578 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'
10579 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'
10580 fi
10581 archive_cmds_need_lc='no'
10582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10583 hardcode_libdir_separator=:
10584 inherit_rpath=yes
10585 link_all_deplibs=yes
10586 ;;
10587
10588 netbsd*)
10589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10591 else
10592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10593 fi
10594 hardcode_libdir_flag_spec='-R$libdir'
10595 hardcode_direct=yes
10596 hardcode_shlibpath_var=no
10597 ;;
10598
10599 newsos6)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_direct=yes
10602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10603 hardcode_libdir_separator=:
10604 hardcode_shlibpath_var=no
10605 ;;
10606
10607 *nto* | *qnx*)
10608 ;;
10609
10610 openbsd*)
10611 if test -f /usr/libexec/ld.so; then
10612 hardcode_direct=yes
10613 hardcode_shlibpath_var=no
10614 hardcode_direct_absolute=yes
10615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10619 export_dynamic_flag_spec='${wl}-E'
10620 else
10621 case $host_os in
10622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_libdir_flag_spec='-R$libdir'
10625 ;;
10626 *)
10627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10629 ;;
10630 esac
10631 fi
10632 else
10633 ld_shlibs=no
10634 fi
10635 ;;
10636
10637 os2*)
10638 hardcode_libdir_flag_spec='-L$libdir'
10639 hardcode_minus_L=yes
10640 allow_undefined_flag=unsupported
10641 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10643 ;;
10644
10645 osf3*)
10646 if test "$GCC" = yes; then
10647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10648 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'
10649 else
10650 allow_undefined_flag=' -expect_unresolved \*'
10651 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'
10652 fi
10653 archive_cmds_need_lc='no'
10654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10655 hardcode_libdir_separator=:
10656 ;;
10657
10658 osf4* | osf5*) # as osf3* with the addition of -msym flag
10659 if test "$GCC" = yes; then
10660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10661 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'
10662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10663 else
10664 allow_undefined_flag=' -expect_unresolved \*'
10665 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'
10666 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~
10667 $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'
10668
10669 # Both c and cxx compiler support -rpath directly
10670 hardcode_libdir_flag_spec='-rpath $libdir'
10671 fi
10672 archive_cmds_need_lc='no'
10673 hardcode_libdir_separator=:
10674 ;;
10675
10676 solaris*)
10677 no_undefined_flag=' -z defs'
10678 if test "$GCC" = yes; then
10679 wlarc='${wl}'
10680 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10682 $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'
10683 else
10684 case `$CC -V 2>&1` in
10685 *"Compilers 5.0"*)
10686 wlarc=''
10687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10690 ;;
10691 *)
10692 wlarc='${wl}'
10693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10696 ;;
10697 esac
10698 fi
10699 hardcode_libdir_flag_spec='-R$libdir'
10700 hardcode_shlibpath_var=no
10701 case $host_os in
10702 solaris2.[0-5] | solaris2.[0-5].*) ;;
10703 *)
10704 # The compiler driver will combine and reorder linker options,
10705 # but understands `-z linker_flag'. GCC discards it without `$wl',
10706 # but is careful enough not to reorder.
10707 # Supported since Solaris 2.6 (maybe 2.5.1?)
10708 if test "$GCC" = yes; then
10709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10710 else
10711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10712 fi
10713 ;;
10714 esac
10715 link_all_deplibs=yes
10716 ;;
10717
10718 sunos4*)
10719 if test "x$host_vendor" = xsequent; then
10720 # Use $CC to link under sequent, because it throws in some extra .o
10721 # files that make .init and .fini sections work.
10722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10723 else
10724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10725 fi
10726 hardcode_libdir_flag_spec='-L$libdir'
10727 hardcode_direct=yes
10728 hardcode_minus_L=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 sysv4)
10733 case $host_vendor in
10734 sni)
10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736 hardcode_direct=yes # is this really true???
10737 ;;
10738 siemens)
10739 ## LD is ld it makes a PLAMLIB
10740 ## CC just makes a GrossModule.
10741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10742 reload_cmds='$CC -r -o $output$reload_objs'
10743 hardcode_direct=no
10744 ;;
10745 motorola)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10748 ;;
10749 esac
10750 runpath_var='LD_RUN_PATH'
10751 hardcode_shlibpath_var=no
10752 ;;
10753
10754 sysv4.3*)
10755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756 hardcode_shlibpath_var=no
10757 export_dynamic_flag_spec='-Bexport'
10758 ;;
10759
10760 sysv4*MP*)
10761 if test -d /usr/nec; then
10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_shlibpath_var=no
10764 runpath_var=LD_RUN_PATH
10765 hardcode_runpath_var=yes
10766 ld_shlibs=yes
10767 fi
10768 ;;
10769
10770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10771 no_undefined_flag='${wl}-z,text'
10772 archive_cmds_need_lc=no
10773 hardcode_shlibpath_var=no
10774 runpath_var='LD_RUN_PATH'
10775
10776 if test "$GCC" = yes; then
10777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 else
10780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782 fi
10783 ;;
10784
10785 sysv5* | sco3.2v5* | sco5v6*)
10786 # Note: We can NOT use -z defs as we might desire, because we do not
10787 # link with -lc, and that would cause any symbols used from libc to
10788 # always be unresolved, which means just about no library would
10789 # ever link correctly. If we're not using GNU ld we use -z text
10790 # though, which does catch some bad symbols but isn't as heavy-handed
10791 # as -z defs.
10792 no_undefined_flag='${wl}-z,text'
10793 allow_undefined_flag='${wl}-z,nodefs'
10794 archive_cmds_need_lc=no
10795 hardcode_shlibpath_var=no
10796 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10797 hardcode_libdir_separator=':'
10798 link_all_deplibs=yes
10799 export_dynamic_flag_spec='${wl}-Bexport'
10800 runpath_var='LD_RUN_PATH'
10801
10802 if test "$GCC" = yes; then
10803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10805 else
10806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 fi
10809 ;;
10810
10811 uts4*)
10812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10813 hardcode_libdir_flag_spec='-L$libdir'
10814 hardcode_shlibpath_var=no
10815 ;;
10816
10817 *)
10818 ld_shlibs=no
10819 ;;
10820 esac
10821
10822 if test x$host_vendor = xsni; then
10823 case $host in
10824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10825 export_dynamic_flag_spec='${wl}-Blargedynsym'
10826 ;;
10827 esac
10828 fi
10829 fi
10830
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10832$as_echo "$ld_shlibs" >&6; }
10833test "$ld_shlibs" = no && can_build_shared=no
10834
10835with_gnu_ld=$with_gnu_ld
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851#
10852# Do we need to explicitly link libc?
10853#
10854case "x$archive_cmds_need_lc" in
10855x|xyes)
10856 # Assume -lc should be added
10857 archive_cmds_need_lc=yes
10858
10859 if test "$enable_shared" = yes && test "$GCC" = yes; then
10860 case $archive_cmds in
10861 *'~'*)
10862 # FIXME: we may have to deal with multi-command sequences.
10863 ;;
10864 '$CC '*)
10865 # Test whether the compiler implicitly links with -lc since on some
10866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10867 # to ld, don't add -lc before -lgcc.
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10869$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10870if ${lt_cv_archive_cmds_need_lc+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872else
10873 $RM -r conftest*
10874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10875
10876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10877 (eval $ac_compile) 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880 test $ac_status = 0; } 2>conftest.err; then
10881 soname=conftest
10882 lib=conftest
10883 libobjs=conftest.$ac_objext
10884 deplibs=
10885 wl=$lt_prog_compiler_wl
10886 pic_flag=$lt_prog_compiler_pic
10887 compiler_flags=-v
10888 linker_flags=-v
10889 verstring=
10890 output_objdir=.
10891 libname=conftest
10892 lt_save_allow_undefined_flag=$allow_undefined_flag
10893 allow_undefined_flag=
10894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10895 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10896 ac_status=$?
10897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10898 test $ac_status = 0; }
10899 then
10900 lt_cv_archive_cmds_need_lc=no
10901 else
10902 lt_cv_archive_cmds_need_lc=yes
10903 fi
10904 allow_undefined_flag=$lt_save_allow_undefined_flag
10905 else
10906 cat conftest.err 1>&5
10907 fi
10908 $RM -r conftest*
10909
10910fi
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10912$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10913 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10914 ;;
10915 esac
10916 fi
10917 ;;
10918esac
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11072$as_echo_n "checking dynamic linker characteristics... " >&6; }
11073
11074if test "$GCC" = yes; then
11075 case $host_os in
11076 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11077 *) lt_awk_arg="/^libraries:/" ;;
11078 esac
11079 case $host_os in
11080 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11081 *) lt_sed_strip_eq="s,=/,/,g" ;;
11082 esac
11083 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11084 case $lt_search_path_spec in
11085 *\;*)
11086 # if the path contains ";" then we assume it to be the separator
11087 # otherwise default to the standard path separator (i.e. ":") - it is
11088 # assumed that no part of a normal pathname contains ";" but that should
11089 # okay in the real world where ";" in dirpaths is itself problematic.
11090 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11091 ;;
11092 *)
11093 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11094 ;;
11095 esac
11096 # Ok, now we have the path, separated by spaces, we can step through it
11097 # and add multilib dir if necessary.
11098 lt_tmp_lt_search_path_spec=
11099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11100 for lt_sys_path in $lt_search_path_spec; do
11101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11103 else
11104 test -d "$lt_sys_path" && \
11105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11106 fi
11107 done
11108 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11109BEGIN {RS=" "; FS="/|\n";} {
11110 lt_foo="";
11111 lt_count=0;
11112 for (lt_i = NF; lt_i > 0; lt_i--) {
11113 if ($lt_i != "" && $lt_i != ".") {
11114 if ($lt_i == "..") {
11115 lt_count++;
11116 } else {
11117 if (lt_count == 0) {
11118 lt_foo="/" $lt_i lt_foo;
11119 } else {
11120 lt_count--;
11121 }
11122 }
11123 }
11124 }
11125 if (lt_foo != "") { lt_freq[lt_foo]++; }
11126 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11127}'`
11128 # AWK program above erroneously prepends '/' to C:/dos/paths
11129 # for these hosts.
11130 case $host_os in
11131 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11132 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11133 esac
11134 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11135else
11136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137fi
11138library_names_spec=
11139libname_spec='lib$name'
11140soname_spec=
11141shrext_cmds=".so"
11142postinstall_cmds=
11143postuninstall_cmds=
11144finish_cmds=
11145finish_eval=
11146shlibpath_var=
11147shlibpath_overrides_runpath=unknown
11148version_type=none
11149dynamic_linker="$host_os ld.so"
11150sys_lib_dlsearch_path_spec="/lib /usr/lib"
11151need_lib_prefix=unknown
11152hardcode_into_libs=no
11153
11154# when you set need_version to no, make sure it does not cause -set_version
11155# flags to be left without arguments
11156need_version=unknown
11157
11158case $host_os in
11159aix3*)
11160 version_type=linux # correct to gnu/linux during the next big refactor
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11162 shlibpath_var=LIBPATH
11163
11164 # AIX 3 has no versioning support, so we append a major version to the name.
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 ;;
11167
11168aix[4-9]*)
11169 version_type=linux # correct to gnu/linux during the next big refactor
11170 need_lib_prefix=no
11171 need_version=no
11172 hardcode_into_libs=yes
11173 if test "$host_cpu" = ia64; then
11174 # AIX 5 supports IA64
11175 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 else
11178 # With GCC up to 2.95.x, collect2 would create an import file
11179 # for dependence libraries. The import file would start with
11180 # the line `#! .'. This would cause the generated library to
11181 # depend on `.', always an invalid library. This was fixed in
11182 # development snapshots of GCC prior to 3.0.
11183 case $host_os in
11184 aix4 | aix4.[01] | aix4.[01].*)
11185 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11186 echo ' yes '
11187 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11188 :
11189 else
11190 can_build_shared=no
11191 fi
11192 ;;
11193 esac
11194 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11195 # soname into executable. Probably we can add versioning support to
11196 # collect2, so additional links can be useful in future.
11197 if test "$aix_use_runtimelinking" = yes; then
11198 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11199 # instead of lib<name>.a to let people know that these are not
11200 # typical AIX shared libraries.
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 else
11203 # We preserve .a as extension for shared libraries through AIX4.2
11204 # and later when we are not doing run time linking.
11205 library_names_spec='${libname}${release}.a $libname.a'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 fi
11208 shlibpath_var=LIBPATH
11209 fi
11210 ;;
11211
11212amigaos*)
11213 case $host_cpu in
11214 powerpc)
11215 # Since July 2007 AmigaOS4 officially supports .so libraries.
11216 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 ;;
11219 m68k)
11220 library_names_spec='$libname.ixlibrary $libname.a'
11221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11222 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11223 ;;
11224 esac
11225 ;;
11226
11227beos*)
11228 library_names_spec='${libname}${shared_ext}'
11229 dynamic_linker="$host_os ld.so"
11230 shlibpath_var=LIBRARY_PATH
11231 ;;
11232
11233bsdi[45]*)
11234 version_type=linux # correct to gnu/linux during the next big refactor
11235 need_version=no
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11241 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11242 # the default ld.so.conf also contains /usr/contrib/lib and
11243 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11244 # libtool to hard-code these into programs
11245 ;;
11246
11247cygwin* | mingw* | pw32* | cegcc*)
11248 version_type=windows
11249 shrext_cmds=".dll"
11250 need_version=no
11251 need_lib_prefix=no
9c60689e 11252
a243b558
JF
11253 case $GCC,$cc_basename in
11254 yes,*)
11255 # gcc
11256 library_names_spec='$libname.dll.a'
11257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11258 postinstall_cmds='base_file=`basename \${file}`~
11259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11260 dldir=$destdir/`dirname \$dlpath`~
11261 test -d \$dldir || mkdir -p \$dldir~
11262 $install_prog $dir/$dlname \$dldir/$dlname~
11263 chmod a+x \$dldir/$dlname~
11264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11266 fi'
11267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11268 dlpath=$dir/\$dldll~
11269 $RM \$dlpath'
11270 shlibpath_overrides_runpath=yes
9c60689e 11271
a243b558
JF
11272 case $host_os in
11273 cygwin*)
11274 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11275 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11276
a243b558
JF
11277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11278 ;;
11279 mingw* | cegcc*)
11280 # MinGW DLLs use traditional 'lib' prefix
11281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282 ;;
11283 pw32*)
11284 # pw32 DLLs use 'pw' prefix rather than 'lib'
11285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11286 ;;
11287 esac
11288 dynamic_linker='Win32 ld.exe'
11289 ;;
9c60689e 11290
a243b558
JF
11291 *,cl*)
11292 # Native MSVC
11293 libname_spec='$name'
11294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11295 library_names_spec='${libname}.dll.lib'
9c60689e 11296
a243b558
JF
11297 case $build_os in
11298 mingw*)
11299 sys_lib_search_path_spec=
11300 lt_save_ifs=$IFS
11301 IFS=';'
11302 for lt_path in $LIB
11303 do
11304 IFS=$lt_save_ifs
11305 # Let DOS variable expansion print the short 8.3 style file name.
11306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11308 done
11309 IFS=$lt_save_ifs
11310 # Convert to MSYS style.
11311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11312 ;;
11313 cygwin*)
11314 # Convert to unix form, then to dos form, then back to unix form
11315 # but this time dos style (no spaces!) so that the unix form looks
11316 # like /cygdrive/c/PROGRA~1:/cygdr...
11317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11320 ;;
11321 *)
11322 sys_lib_search_path_spec="$LIB"
11323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11324 # It is most probably a Windows format PATH.
11325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11326 else
11327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11328 fi
11329 # FIXME: find the short name or the path components, as spaces are
11330 # common. (e.g. "Program Files" -> "PROGRA~1")
11331 ;;
11332 esac
11333
11334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11335 postinstall_cmds='base_file=`basename \${file}`~
11336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11337 dldir=$destdir/`dirname \$dlpath`~
11338 test -d \$dldir || mkdir -p \$dldir~
11339 $install_prog $dir/$dlname \$dldir/$dlname'
11340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11341 dlpath=$dir/\$dldll~
11342 $RM \$dlpath'
11343 shlibpath_overrides_runpath=yes
11344 dynamic_linker='Win32 link.exe'
11345 ;;
9c60689e 11346
a243b558
JF
11347 *)
11348 # Assume MSVC wrapper
11349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11350 dynamic_linker='Win32 ld.exe'
11351 ;;
11352 esac
11353 # FIXME: first we should search . and the directory the executable is in
11354 shlibpath_var=PATH
11355 ;;
9c60689e 11356
a243b558
JF
11357darwin* | rhapsody*)
11358 dynamic_linker="$host_os dyld"
11359 version_type=darwin
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11363 soname_spec='${libname}${release}${major}$shared_ext'
11364 shlibpath_overrides_runpath=yes
11365 shlibpath_var=DYLD_LIBRARY_PATH
11366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11367
a243b558
JF
11368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11370 ;;
9c60689e 11371
a243b558
JF
11372dgux*)
11373 version_type=linux # correct to gnu/linux during the next big refactor
11374 need_lib_prefix=no
11375 need_version=no
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 ;;
11380
11381freebsd* | dragonfly*)
11382 # DragonFly does not have aout. When/if they implement a new
11383 # versioning mechanism, adjust this.
11384 if test -x /usr/bin/objformat; then
11385 objformat=`/usr/bin/objformat`
11386 else
11387 case $host_os in
11388 freebsd[23].*) objformat=aout ;;
11389 *) objformat=elf ;;
11390 esac
11391 fi
11392 version_type=freebsd-$objformat
11393 case $version_type in
11394 freebsd-elf*)
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11396 need_version=no
11397 need_lib_prefix=no
11398 ;;
11399 freebsd-*)
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11401 need_version=yes
11402 ;;
11403 esac
11404 shlibpath_var=LD_LIBRARY_PATH
11405 case $host_os in
11406 freebsd2.*)
11407 shlibpath_overrides_runpath=yes
11408 ;;
11409 freebsd3.[01]* | freebsdelf3.[01]*)
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 ;;
11413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11415 shlibpath_overrides_runpath=no
11416 hardcode_into_libs=yes
11417 ;;
11418 *) # from 4.6 on, and DragonFly
11419 shlibpath_overrides_runpath=yes
11420 hardcode_into_libs=yes
11421 ;;
11422 esac
11423 ;;
9c60689e 11424
a243b558
JF
11425gnu*)
11426 version_type=linux # correct to gnu/linux during the next big refactor
11427 need_lib_prefix=no
11428 need_version=no
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=no
11433 hardcode_into_libs=yes
11434 ;;
9c60689e 11435
a243b558
JF
11436haiku*)
11437 version_type=linux # correct to gnu/linux during the next big refactor
11438 need_lib_prefix=no
11439 need_version=no
11440 dynamic_linker="$host_os runtime_loader"
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11446 hardcode_into_libs=yes
11447 ;;
9c60689e 11448
a243b558
JF
11449hpux9* | hpux10* | hpux11*)
11450 # Give a soname corresponding to the major version so that dld.sl refuses to
11451 # link against other versions.
11452 version_type=sunos
11453 need_lib_prefix=no
11454 need_version=no
11455 case $host_cpu in
11456 ia64*)
11457 shrext_cmds='.so'
11458 hardcode_into_libs=yes
11459 dynamic_linker="$host_os dld.so"
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 if test "X$HPUX_IA64_MODE" = X32; then
11465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11466 else
11467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11468 fi
11469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11470 ;;
11471 hppa*64*)
11472 shrext_cmds='.sl'
11473 hardcode_into_libs=yes
11474 dynamic_linker="$host_os dld.sl"
11475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11481 ;;
11482 *)
11483 shrext_cmds='.sl'
11484 dynamic_linker="$host_os dld.sl"
11485 shlibpath_var=SHLIB_PATH
11486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11489 ;;
11490 esac
a243b558
JF
11491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11492 postinstall_cmds='chmod 555 $lib'
11493 # or fails outright, so override atomically:
11494 install_override_mode=555
11495 ;;
9c60689e 11496
a243b558
JF
11497interix[3-9]*)
11498 version_type=linux # correct to gnu/linux during the next big refactor
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=no
11506 hardcode_into_libs=yes
11507 ;;
9c60689e 11508
a243b558
JF
11509irix5* | irix6* | nonstopux*)
11510 case $host_os in
11511 nonstopux*) version_type=nonstopux ;;
11512 *)
11513 if test "$lt_cv_prog_gnu_ld" = yes; then
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 else
11516 version_type=irix
11517 fi ;;
11518 esac
11519 need_lib_prefix=no
11520 need_version=no
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11523 case $host_os in
11524 irix5* | nonstopux*)
11525 libsuff= shlibsuff=
11526 ;;
11527 *)
11528 case $LD in # libtool.m4 will add one of these switches to LD
11529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11530 libsuff= shlibsuff= libmagic=32-bit;;
11531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11532 libsuff=32 shlibsuff=N32 libmagic=N32;;
11533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11535 *) libsuff= shlibsuff= libmagic=never-match;;
11536 esac
11537 ;;
11538 esac
11539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11540 shlibpath_overrides_runpath=no
11541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11543 hardcode_into_libs=yes
11544 ;;
9c60689e 11545
a243b558
JF
11546# No shared lib support for Linux oldld, aout, or coff.
11547linux*oldld* | linux*aout* | linux*coff*)
11548 dynamic_linker=no
11549 ;;
9c60689e 11550
a243b558
JF
11551# This must be glibc/ELF.
11552linux* | k*bsd*-gnu | kopensolaris*-gnu)
11553 version_type=linux # correct to gnu/linux during the next big refactor
11554 need_lib_prefix=no
11555 need_version=no
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=no
9c60689e 11561
a243b558
JF
11562 # Some binutils ld are patched to set DT_RUNPATH
11563 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11564 $as_echo_n "(cached) " >&6
11565else
a243b558
JF
11566 lt_cv_shlibpath_overrides_runpath=no
11567 save_LDFLAGS=$LDFLAGS
11568 save_libdir=$libdir
11569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h. */
ee134472 11573
a243b558
JF
11574int
11575main ()
9c60689e 11576{
9c60689e 11577
a243b558
JF
11578 ;
11579 return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_link "$LINENO"; then :
11583 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11584 lt_cv_shlibpath_overrides_runpath=yes
11585fi
11586fi
11587rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LDFLAGS=$save_LDFLAGS
11590 libdir=$save_libdir
9c60689e 11591
a243b558 11592fi
9c60689e 11593
a243b558 11594 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11595
a243b558
JF
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
9c60689e 11600
a243b558
JF
11601 # Append ld.so.conf contents to the search path
11602 if test -f /etc/ld.so.conf; then
11603 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' ' '`
11604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11605 fi
ee134472 11606
a243b558
JF
11607 # We used to test for /lib/ld.so.1 and disable shared libraries on
11608 # powerpc, because MkLinux only supported shared libraries with the
11609 # GNU dynamic linker. Since this was broken with cross compilers,
11610 # most powerpc-linux boxes support dynamic linking these days and
11611 # people can always --disable-shared, the test was removed, and we
11612 # assume the GNU/Linux dynamic linker is in use.
11613 dynamic_linker='GNU/Linux ld.so'
11614 ;;
9c60689e 11615
a243b558
JF
11616netbsd*)
11617 version_type=sunos
11618 need_lib_prefix=no
11619 need_version=no
11620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11623 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11624 else
a243b558
JF
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11628 fi
a243b558
JF
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=yes
11631 hardcode_into_libs=yes
11632 ;;
9c60689e 11633
a243b558
JF
11634newsos6)
11635 version_type=linux # correct to gnu/linux during the next big refactor
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes
11639 ;;
9c60689e 11640
a243b558
JF
11641*nto* | *qnx*)
11642 version_type=qnx
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 dynamic_linker='ldqnx.so'
11651 ;;
9c60689e 11652
a243b558
JF
11653openbsd*)
11654 version_type=sunos
11655 sys_lib_dlsearch_path_spec="/usr/lib"
11656 need_lib_prefix=no
11657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11658 case $host_os in
11659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11660 *) need_version=no ;;
9c60689e 11661 esac
a243b558
JF
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11666 case $host_os in
11667 openbsd2.[89] | openbsd2.[89].*)
11668 shlibpath_overrides_runpath=no
11669 ;;
11670 *)
11671 shlibpath_overrides_runpath=yes
11672 ;;
11673 esac
11674 else
11675 shlibpath_overrides_runpath=yes
11676 fi
11677 ;;
9c60689e 11678
a243b558
JF
11679os2*)
11680 libname_spec='$name'
11681 shrext_cmds=".dll"
11682 need_lib_prefix=no
11683 library_names_spec='$libname${shared_ext} $libname.a'
11684 dynamic_linker='OS/2 ld.exe'
11685 shlibpath_var=LIBPATH
11686 ;;
9c60689e 11687
a243b558
JF
11688osf3* | osf4* | osf5*)
11689 version_type=osf
11690 need_lib_prefix=no
11691 need_version=no
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11697 ;;
11698
11699rdos*)
11700 dynamic_linker=no
11701 ;;
11702
11703solaris*)
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 need_lib_prefix=no
11706 need_version=no
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 shlibpath_var=LD_LIBRARY_PATH
11710 shlibpath_overrides_runpath=yes
11711 hardcode_into_libs=yes
11712 # ldd complains unless libraries are executable
11713 postinstall_cmds='chmod +x $lib'
11714 ;;
9c60689e 11715
a243b558
JF
11716sunos4*)
11717 version_type=sunos
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 if test "$with_gnu_ld" = yes; then
11723 need_lib_prefix=no
11724 fi
11725 need_version=yes
11726 ;;
9c60689e 11727
a243b558
JF
11728sysv4 | sysv4.3*)
11729 version_type=linux # correct to gnu/linux during the next big refactor
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731 soname_spec='${libname}${release}${shared_ext}$major'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 case $host_vendor in
11734 sni)
11735 shlibpath_overrides_runpath=no
11736 need_lib_prefix=no
11737 runpath_var=LD_RUN_PATH
11738 ;;
11739 siemens)
11740 need_lib_prefix=no
11741 ;;
11742 motorola)
11743 need_lib_prefix=no
11744 need_version=no
11745 shlibpath_overrides_runpath=no
11746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11747 ;;
11748 esac
11749 ;;
9c60689e 11750
a243b558
JF
11751sysv4*MP*)
11752 if test -d /usr/nec ;then
11753 version_type=linux # correct to gnu/linux during the next big refactor
11754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11755 soname_spec='$libname${shared_ext}.$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 fi
11758 ;;
9c60689e 11759
a243b558
JF
11760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11761 version_type=freebsd-elf
11762 need_lib_prefix=no
11763 need_version=no
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11769 if test "$with_gnu_ld" = yes; then
11770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11771 else
11772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11773 case $host_os in
11774 sco3.2v5*)
11775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11776 ;;
11777 esac
11778 fi
11779 sys_lib_dlsearch_path_spec='/usr/lib'
11780 ;;
9c60689e 11781
a243b558
JF
11782tpf*)
11783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11784 version_type=linux # correct to gnu/linux during the next big refactor
11785 need_lib_prefix=no
11786 need_version=no
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=no
11790 hardcode_into_libs=yes
11791 ;;
9c60689e 11792
a243b558
JF
11793uts4*)
11794 version_type=linux # correct to gnu/linux during the next big refactor
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 ;;
9c60689e 11799
a243b558
JF
11800*)
11801 dynamic_linker=no
11802 ;;
11803esac
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11805$as_echo "$dynamic_linker" >&6; }
11806test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11807
a243b558
JF
11808variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11809if test "$GCC" = yes; then
11810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11811fi
9c60689e 11812
a243b558
JF
11813if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11815fi
11816if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11818fi
9c60689e
DWT
11819
11820
11821
11822
11823
11824
11825
11826
9c60689e
DWT
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
9c60689e 11839
9c60689e 11840
9c60689e 11841
9c60689e 11842
9c60689e
DWT
11843
11844
11845
11846
9c60689e 11847
9c60689e
DWT
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
53ba6704
JF
11861
11862
9c60689e
DWT
11863
11864
11865
11866
9c60689e
DWT
11867
11868
3fd51f51 11869
66170b30
JF
11870
11871
11872
3fd51f51 11873
12833ad8
JF
11874
11875
11876
11877
3fd51f51 11878
3fd51f51
DWT
11879
11880
3fd51f51 11881
3fd51f51 11882
3fd51f51 11883
66170b30 11884
632b71ea 11885
632b71ea
DWT
11886
11887
790e5246 11888
66170b30 11889
9c60689e 11890
9c60689e
DWT
11891
11892
9c60689e 11893
9c60689e
DWT
11894
11895
66170b30 11896
66170b30 11897
9c60689e 11898
e9c9a47c
DWT
11899
11900
11901
66170b30
JF
11902
11903
66170b30 11904
e9c9a47c 11905
a243b558
JF
11906
11907
11908
11909
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11912$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11913hardcode_action=
11914if test -n "$hardcode_libdir_flag_spec" ||
11915 test -n "$runpath_var" ||
11916 test "X$hardcode_automatic" = "Xyes" ; then
11917
11918 # We can hardcode non-existent directories.
11919 if test "$hardcode_direct" != no &&
11920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11921 # have to relink, otherwise we might link with an installed library
11922 # when we should be linking with a yet-to-be-installed one
11923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11924 test "$hardcode_minus_L" != no; then
11925 # Linking always hardcodes the temporary library directory.
11926 hardcode_action=relink
11927 else
11928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11929 hardcode_action=immediate
9c60689e 11930 fi
e9c9a47c 11931else
a243b558
JF
11932 # We cannot hardcode anything, or else we can only hardcode existing
11933 # directories.
11934 hardcode_action=unsupported
11935fi
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11937$as_echo "$hardcode_action" >&6; }
11938
11939if test "$hardcode_action" = relink ||
11940 test "$inherit_rpath" = yes; then
11941 # Fast installation is not supported
11942 enable_fast_install=no
11943elif test "$shlibpath_overrides_runpath" = yes ||
11944 test "$enable_shared" = no; then
11945 # Fast installation is not necessary
11946 enable_fast_install=needless
9c60689e 11947fi
9c60689e 11948
9c60689e 11949
66170b30 11950
66170b30 11951
9c60689e 11952
a243b558
JF
11953
11954 if test "x$enable_dlopen" != xyes; then
11955 enable_dlopen=unknown
11956 enable_dlopen_self=unknown
11957 enable_dlopen_self_static=unknown
66170b30 11958else
a243b558
JF
11959 lt_cv_dlopen=no
11960 lt_cv_dlopen_libs=
66170b30 11961
a243b558
JF
11962 case $host_os in
11963 beos*)
11964 lt_cv_dlopen="load_add_on"
11965 lt_cv_dlopen_libs=
11966 lt_cv_dlopen_self=yes
11967 ;;
66170b30 11968
a243b558
JF
11969 mingw* | pw32* | cegcc*)
11970 lt_cv_dlopen="LoadLibrary"
11971 lt_cv_dlopen_libs=
11972 ;;
66170b30 11973
a243b558
JF
11974 cygwin*)
11975 lt_cv_dlopen="dlopen"
11976 lt_cv_dlopen_libs=
11977 ;;
66170b30 11978
a243b558
JF
11979 darwin*)
11980 # if libdl is installed we need to link against it
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11982$as_echo_n "checking for dlopen in -ldl... " >&6; }
11983if ${ac_cv_lib_dl_dlopen+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985else
11986 ac_check_lib_save_LIBS=$LIBS
11987LIBS="-ldl $LIBS"
11988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989/* end confdefs.h. */
66170b30 11990
a243b558
JF
11991/* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11994#ifdef __cplusplus
11995extern "C"
11996#endif
11997char dlopen ();
11998int
11999main ()
12000{
12001return dlopen ();
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006if ac_fn_c_try_link "$LINENO"; then :
12007 ac_cv_lib_dl_dlopen=yes
12008else
12009 ac_cv_lib_dl_dlopen=no
66170b30 12010fi
a243b558
JF
12011rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013LIBS=$ac_check_lib_save_LIBS
66170b30 12014fi
a243b558
JF
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12016$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12017if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12019else
66170b30 12020
a243b558
JF
12021 lt_cv_dlopen="dyld"
12022 lt_cv_dlopen_libs=
12023 lt_cv_dlopen_self=yes
66170b30 12024
a243b558 12025fi
9c60689e 12026
a243b558 12027 ;;
9c60689e 12028
a243b558
JF
12029 *)
12030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12031if test "x$ac_cv_func_shl_load" = xyes; then :
12032 lt_cv_dlopen="shl_load"
12033else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12035$as_echo_n "checking for shl_load in -ldld... " >&6; }
12036if ${ac_cv_lib_dld_shl_load+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038else
12039 ac_check_lib_save_LIBS=$LIBS
12040LIBS="-ldld $LIBS"
12041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042/* end confdefs.h. */
66170b30 12043
a243b558
JF
12044/* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char shl_load ();
12051int
12052main ()
12053{
12054return shl_load ();
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_dld_shl_load=yes
66170b30 12061else
a243b558
JF
12062 ac_cv_lib_dld_shl_load=no
12063fi
12064rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066LIBS=$ac_check_lib_save_LIBS
66170b30 12067fi
a243b558
JF
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12069$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12070if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12072else
12073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12074if test "x$ac_cv_func_dlopen" = xyes; then :
12075 lt_cv_dlopen="dlopen"
12076else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12078$as_echo_n "checking for dlopen in -ldl... " >&6; }
12079if ${ac_cv_lib_dl_dlopen+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081else
12082 ac_check_lib_save_LIBS=$LIBS
12083LIBS="-ldl $LIBS"
12084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085/* end confdefs.h. */
e9c9a47c 12086
a243b558
JF
12087/* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12090#ifdef __cplusplus
12091extern "C"
12092#endif
12093char dlopen ();
12094int
12095main ()
12096{
12097return dlopen ();
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_lib_dl_dlopen=yes
12104else
12105 ac_cv_lib_dl_dlopen=no
12106fi
12107rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109LIBS=$ac_check_lib_save_LIBS
12110fi
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12112$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12113if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12115else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12117$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12118if ${ac_cv_lib_svld_dlopen+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120else
12121 ac_check_lib_save_LIBS=$LIBS
12122LIBS="-lsvld $LIBS"
12123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124/* end confdefs.h. */
12125
12126/* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129#ifdef __cplusplus
12130extern "C"
12131#endif
12132char dlopen ();
12133int
12134main ()
12135{
12136return dlopen ();
12137 ;
12138 return 0;
12139}
12140_ACEOF
12141if ac_fn_c_try_link "$LINENO"; then :
12142 ac_cv_lib_svld_dlopen=yes
12143else
12144 ac_cv_lib_svld_dlopen=no
12145fi
12146rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148LIBS=$ac_check_lib_save_LIBS
12149fi
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12151$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12152if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12154else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12156$as_echo_n "checking for dld_link in -ldld... " >&6; }
12157if ${ac_cv_lib_dld_dld_link+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159else
12160 ac_check_lib_save_LIBS=$LIBS
12161LIBS="-ldld $LIBS"
12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163/* end confdefs.h. */
12164
12165/* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168#ifdef __cplusplus
12169extern "C"
12170#endif
12171char dld_link ();
12172int
12173main ()
12174{
12175return dld_link ();
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_lib_dld_dld_link=yes
9c60689e 12182else
a243b558
JF
12183 ac_cv_lib_dld_dld_link=no
12184fi
12185rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187LIBS=$ac_check_lib_save_LIBS
12188fi
12189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12190$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12191if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12193fi
12194
12195
a243b558 12196fi
66170b30 12197
66170b30 12198
a243b558 12199fi
66170b30 12200
66170b30
JF
12201
12202fi
e9c9a47c 12203
66170b30 12204
a243b558 12205fi
66170b30 12206
66170b30 12207
66170b30 12208fi
e9c9a47c 12209
a243b558
JF
12210 ;;
12211 esac
9c60689e 12212
a243b558
JF
12213 if test "x$lt_cv_dlopen" != xno; then
12214 enable_dlopen=yes
12215 else
12216 enable_dlopen=no
12217 fi
9c60689e 12218
a243b558
JF
12219 case $lt_cv_dlopen in
12220 dlopen)
12221 save_CPPFLAGS="$CPPFLAGS"
12222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12223
a243b558
JF
12224 save_LDFLAGS="$LDFLAGS"
12225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12226
a243b558
JF
12227 save_LIBS="$LIBS"
12228 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12229
a243b558
JF
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12231$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12232if ${lt_cv_dlopen_self+:} false; then :
12233 $as_echo_n "(cached) " >&6
e9c9a47c 12234else
a243b558
JF
12235 if test "$cross_compiling" = yes; then :
12236 lt_cv_dlopen_self=cross
12237else
12238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12239 lt_status=$lt_dlunknown
12240 cat > conftest.$ac_ext <<_LT_EOF
12241#line $LINENO "configure"
12242#include "confdefs.h"
e9c9a47c 12243
a243b558
JF
12244#if HAVE_DLFCN_H
12245#include <dlfcn.h>
12246#endif
e9c9a47c 12247
a243b558 12248#include <stdio.h>
66170b30 12249
a243b558
JF
12250#ifdef RTLD_GLOBAL
12251# define LT_DLGLOBAL RTLD_GLOBAL
12252#else
12253# ifdef DL_GLOBAL
12254# define LT_DLGLOBAL DL_GLOBAL
12255# else
12256# define LT_DLGLOBAL 0
12257# endif
12258#endif
66170b30 12259
a243b558
JF
12260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12261 find out it does not work in some platform. */
12262#ifndef LT_DLLAZY_OR_NOW
12263# ifdef RTLD_LAZY
12264# define LT_DLLAZY_OR_NOW RTLD_LAZY
12265# else
12266# ifdef DL_LAZY
12267# define LT_DLLAZY_OR_NOW DL_LAZY
12268# else
12269# ifdef RTLD_NOW
12270# define LT_DLLAZY_OR_NOW RTLD_NOW
12271# else
12272# ifdef DL_NOW
12273# define LT_DLLAZY_OR_NOW DL_NOW
12274# else
12275# define LT_DLLAZY_OR_NOW 0
12276# endif
12277# endif
12278# endif
12279# endif
12280#endif
e9c9a47c 12281
a243b558
JF
12282/* When -fvisbility=hidden is used, assume the code has been annotated
12283 correspondingly for the symbols needed. */
12284#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12285int fnord () __attribute__((visibility("default")));
12286#endif
e9c9a47c 12287
a243b558
JF
12288int fnord () { return 42; }
12289int main ()
12290{
12291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12292 int status = $lt_dlunknown;
e9c9a47c 12293
a243b558
JF
12294 if (self)
12295 {
12296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12297 else
12298 {
12299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12300 else puts (dlerror ());
12301 }
12302 /* dlclose (self); */
12303 }
12304 else
12305 puts (dlerror ());
e9c9a47c 12306
a243b558
JF
12307 return status;
12308}
12309_LT_EOF
12310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12311 (eval $ac_link) 2>&5
12312 ac_status=$?
12313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12315 (./conftest; exit; ) >&5 2>/dev/null
12316 lt_status=$?
12317 case x$lt_status in
12318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12321 esac
12322 else :
12323 # compilation failed
12324 lt_cv_dlopen_self=no
12325 fi
12326fi
12327rm -fr conftest*
e9c9a47c 12328
e9c9a47c 12329
e9c9a47c 12330fi
a243b558
JF
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12332$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12333
a243b558
JF
12334 if test "x$lt_cv_dlopen_self" = xyes; then
12335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12337$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12338if ${lt_cv_dlopen_self_static+:} false; then :
12339 $as_echo_n "(cached) " >&6
e9c9a47c 12340else
a243b558
JF
12341 if test "$cross_compiling" = yes; then :
12342 lt_cv_dlopen_self_static=cross
12343else
12344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12345 lt_status=$lt_dlunknown
12346 cat > conftest.$ac_ext <<_LT_EOF
12347#line $LINENO "configure"
12348#include "confdefs.h"
12349
12350#if HAVE_DLFCN_H
12351#include <dlfcn.h>
12352#endif
12353
12354#include <stdio.h>
e9c9a47c 12355
a243b558
JF
12356#ifdef RTLD_GLOBAL
12357# define LT_DLGLOBAL RTLD_GLOBAL
12358#else
12359# ifdef DL_GLOBAL
12360# define LT_DLGLOBAL DL_GLOBAL
12361# else
12362# define LT_DLGLOBAL 0
12363# endif
12364#endif
e9c9a47c 12365
a243b558
JF
12366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12367 find out it does not work in some platform. */
12368#ifndef LT_DLLAZY_OR_NOW
12369# ifdef RTLD_LAZY
12370# define LT_DLLAZY_OR_NOW RTLD_LAZY
12371# else
12372# ifdef DL_LAZY
12373# define LT_DLLAZY_OR_NOW DL_LAZY
12374# else
12375# ifdef RTLD_NOW
12376# define LT_DLLAZY_OR_NOW RTLD_NOW
12377# else
12378# ifdef DL_NOW
12379# define LT_DLLAZY_OR_NOW DL_NOW
12380# else
12381# define LT_DLLAZY_OR_NOW 0
12382# endif
12383# endif
12384# endif
12385# endif
12386#endif
66170b30 12387
a243b558
JF
12388/* When -fvisbility=hidden is used, assume the code has been annotated
12389 correspondingly for the symbols needed. */
12390#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12391int fnord () __attribute__((visibility("default")));
12392#endif
e9c9a47c 12393
a243b558
JF
12394int fnord () { return 42; }
12395int main ()
12396{
12397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12398 int status = $lt_dlunknown;
e9c9a47c 12399
a243b558
JF
12400 if (self)
12401 {
12402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12403 else
12404 {
12405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12406 else puts (dlerror ());
12407 }
12408 /* dlclose (self); */
12409 }
12410 else
12411 puts (dlerror ());
e9c9a47c 12412
a243b558
JF
12413 return status;
12414}
12415_LT_EOF
12416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12417 (eval $ac_link) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12421 (./conftest; exit; ) >&5 2>/dev/null
12422 lt_status=$?
12423 case x$lt_status in
12424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12427 esac
12428 else :
12429 # compilation failed
12430 lt_cv_dlopen_self_static=no
12431 fi
12432fi
12433rm -fr conftest*
e9c9a47c 12434
b65019fe 12435
a243b558
JF
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12438$as_echo "$lt_cv_dlopen_self_static" >&6; }
12439 fi
66170b30 12440
a243b558
JF
12441 CPPFLAGS="$save_CPPFLAGS"
12442 LDFLAGS="$save_LDFLAGS"
12443 LIBS="$save_LIBS"
12444 ;;
12445 esac
66170b30 12446
a243b558
JF
12447 case $lt_cv_dlopen_self in
12448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12449 *) enable_dlopen_self=unknown ;;
12450 esac
12451
12452 case $lt_cv_dlopen_self_static in
12453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12454 *) enable_dlopen_self_static=unknown ;;
12455 esac
b65019fe
DWT
12456fi
12457
12458
66170b30 12459
b65019fe 12460
e9c9a47c 12461
e9c9a47c
DWT
12462
12463
e9c9a47c 12464
e9c9a47c
DWT
12465
12466
e9c9a47c 12467
e9c9a47c 12468
3530897b 12469
47aaa820 12470
47aaa820 12471
a243b558
JF
12472
12473
12474striplib=
12475old_striplib=
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12477$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12478if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482$as_echo "yes" >&6; }
47aaa820 12483else
a243b558
JF
12484# FIXME - insert some real tests, host_os isn't really good enough
12485 case $host_os in
12486 darwin*)
12487 if test -n "$STRIP" ; then
12488 striplib="$STRIP -x"
12489 old_striplib="$STRIP -S"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491$as_echo "yes" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495 fi
12496 ;;
12497 *)
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499$as_echo "no" >&6; }
12500 ;;
12501 esac
3530897b 12502fi
47aaa820 12503
3530897b
DWT
12504
12505
9c60689e 12506
9c60689e 12507
9c60689e 12508
9c60689e 12509
9c60689e 12510
66170b30 12511
66170b30 12512
66170b30 12513
66170b30 12514
a243b558
JF
12515 # Report which library types will actually be built
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12517$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12519$as_echo "$can_build_shared" >&6; }
66170b30 12520
a243b558
JF
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12522$as_echo_n "checking whether to build shared libraries... " >&6; }
12523 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12524
a243b558
JF
12525 # On AIX, shared libraries and static libraries use the same namespace, and
12526 # are all built from PIC.
12527 case $host_os in
12528 aix3*)
12529 test "$enable_shared" = yes && enable_static=no
12530 if test -n "$RANLIB"; then
12531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12532 postinstall_cmds='$RANLIB $lib'
12533 fi
12534 ;;
66170b30 12535
a243b558
JF
12536 aix[4-9]*)
12537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12538 test "$enable_shared" = yes && enable_static=no
12539 fi
12540 ;;
12541 esac
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12543$as_echo "$enable_shared" >&6; }
66170b30 12544
a243b558
JF
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12546$as_echo_n "checking whether to build static libraries... " >&6; }
12547 # Make sure either enable_shared or enable_static is yes.
12548 test "$enable_shared" = yes || enable_static=yes
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12550$as_echo "$enable_static" >&6; }
66170b30 12551
9c60689e 12552
e9c9a47c 12553
9c60689e 12554
a243b558
JF
12555fi
12556ac_ext=c
12557ac_cpp='$CPP $CPPFLAGS'
12558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12560ac_compiler_gnu=$ac_cv_c_compiler_gnu
12561
12562CC="$lt_save_CC"
e9c9a47c 12563
ee134472 12564 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12566 (test "X$CXX" != "Xg++"))) ; then
12567 ac_ext=cpp
12568ac_cpp='$CXXCPP $CPPFLAGS'
12569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12573$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12574if test -z "$CXXCPP"; then
ee134472 12575 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12576 $as_echo_n "(cached) " >&6
12577else
12578 # Double quotes because CXXCPP needs to be expanded
12579 for CXXCPP in "$CXX -E" "/lib/cpp"
12580 do
12581 ac_preproc_ok=false
12582for ac_cxx_preproc_warn_flag in '' yes
12583do
12584 # Use a header file that comes with gcc, so configuring glibc
12585 # with a fresh cross-compiler works.
12586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12587 # <limits.h> exists even on freestanding compilers.
12588 # On the NeXT, cc -E runs the code through the compiler's parser,
12589 # not just through cpp. "Syntax error" is here to catch this case.
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591/* end confdefs.h. */
12592#ifdef __STDC__
12593# include <limits.h>
12594#else
12595# include <assert.h>
12596#endif
12597 Syntax error
12598_ACEOF
12599if ac_fn_cxx_try_cpp "$LINENO"; then :
12600
12601else
12602 # Broken: fails on valid input.
12603continue
12604fi
12833ad8 12605rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12606
12607 # OK, works on sane cases. Now check whether nonexistent headers
12608 # can be detected and how.
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h. */
12611#include <ac_nonexistent.h>
12612_ACEOF
12613if ac_fn_cxx_try_cpp "$LINENO"; then :
12614 # Broken: success on invalid input.
12615continue
12616else
12617 # Passes both tests.
12618ac_preproc_ok=:
12619break
12620fi
12833ad8 12621rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12622
12623done
12624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12625rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12626if $ac_preproc_ok; then :
12627 break
12628fi
12629
12630 done
12631 ac_cv_prog_CXXCPP=$CXXCPP
12632
12633fi
12634 CXXCPP=$ac_cv_prog_CXXCPP
12635else
12636 ac_cv_prog_CXXCPP=$CXXCPP
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12639$as_echo "$CXXCPP" >&6; }
12640ac_preproc_ok=false
12641for ac_cxx_preproc_warn_flag in '' yes
12642do
12643 # Use a header file that comes with gcc, so configuring glibc
12644 # with a fresh cross-compiler works.
12645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646 # <limits.h> exists even on freestanding compilers.
12647 # On the NeXT, cc -E runs the code through the compiler's parser,
12648 # not just through cpp. "Syntax error" is here to catch this case.
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650/* end confdefs.h. */
12651#ifdef __STDC__
12652# include <limits.h>
12653#else
12654# include <assert.h>
12655#endif
12656 Syntax error
12657_ACEOF
12658if ac_fn_cxx_try_cpp "$LINENO"; then :
12659
12660else
12661 # Broken: fails on valid input.
12662continue
12663fi
12833ad8 12664rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12665
12666 # OK, works on sane cases. Now check whether nonexistent headers
12667 # can be detected and how.
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h. */
12670#include <ac_nonexistent.h>
12671_ACEOF
12672if ac_fn_cxx_try_cpp "$LINENO"; then :
12673 # Broken: success on invalid input.
12674continue
12675else
12676 # Passes both tests.
12677ac_preproc_ok=:
12678break
12679fi
12833ad8 12680rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12681
12682done
12683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12684rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12685if $ac_preproc_ok; then :
12686
12687else
12688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12690as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12691See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12692fi
12693
a243b558
JF
12694ac_ext=c
12695ac_cpp='$CPP $CPPFLAGS'
12696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12699
12700else
e9c9a47c
DWT
12701 _lt_caught_CXX_error=yes
12702fi
12703
9c60689e
DWT
12704ac_ext=cpp
12705ac_cpp='$CXXCPP $CPPFLAGS'
12706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12709
47aaa820
DWT
12710archive_cmds_need_lc_CXX=no
12711allow_undefined_flag_CXX=
12712always_export_symbols_CXX=no
12713archive_expsym_cmds_CXX=
12714compiler_needs_object_CXX=no
12715export_dynamic_flag_spec_CXX=
12716hardcode_direct_CXX=no
12717hardcode_direct_absolute_CXX=no
12718hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12719hardcode_libdir_separator_CXX=
12720hardcode_minus_L_CXX=no
12721hardcode_shlibpath_var_CXX=unsupported
12722hardcode_automatic_CXX=no
12723inherit_rpath_CXX=no
12724module_cmds_CXX=
12725module_expsym_cmds_CXX=
12726link_all_deplibs_CXX=unknown
12727old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12728reload_flag_CXX=$reload_flag
12729reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12730no_undefined_flag_CXX=
12731whole_archive_flag_spec_CXX=
12732enable_shared_with_static_runtimes_CXX=no
9c60689e 12733
47aaa820
DWT
12734# Source file extension for C++ test sources.
12735ac_ext=cpp
9c60689e 12736
47aaa820
DWT
12737# Object file extension for compiled C++ test sources.
12738objext=o
12739objext_CXX=$objext
9c60689e 12740
47aaa820
DWT
12741# No sense in running all these tests if we already determined that
12742# the CXX compiler isn't working. Some variables (like enable_shared)
12743# are currently assumed to apply to all compilers on this platform,
12744# and will be corrupted by setting them based on a non-working compiler.
12745if test "$_lt_caught_CXX_error" != yes; then
12746 # Code to be used in simple compile tests
12747 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12748
47aaa820
DWT
12749 # Code to be used in simple link tests
12750 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12751
47aaa820 12752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12753
9c60689e 12754
9c60689e 12755
9c60689e 12756
9c60689e 12757
9c60689e 12758
47aaa820
DWT
12759# If no C compiler was specified, use CC.
12760LTCC=${LTCC-"$CC"}
9c60689e 12761
47aaa820
DWT
12762# If no C compiler flags were specified, use CFLAGS.
12763LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12764
47aaa820
DWT
12765# Allow CC to be a program name with arguments.
12766compiler=$CC
9c60689e 12767
9c60689e 12768
47aaa820
DWT
12769 # save warnings/boilerplate of simple test code
12770 ac_outfile=conftest.$ac_objext
12771echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12772eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12773_lt_compiler_boilerplate=`cat conftest.err`
53ba6704 12774$RM -r conftest*
9c60689e 12775
47aaa820
DWT
12776 ac_outfile=conftest.$ac_objext
12777echo "$lt_simple_link_test_code" >conftest.$ac_ext
12778eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12779_lt_linker_boilerplate=`cat conftest.err`
12780$RM -r conftest*
9c60689e 12781
9c60689e 12782
47aaa820
DWT
12783 # Allow CC to be a program name with arguments.
12784 lt_save_CC=$CC
ee134472 12785 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12786 lt_save_LD=$LD
12787 lt_save_GCC=$GCC
12788 GCC=$GXX
12789 lt_save_with_gnu_ld=$with_gnu_ld
12790 lt_save_path_LD=$lt_cv_path_LD
12791 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12792 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12793 else
47aaa820 12794 $as_unset lt_cv_prog_gnu_ld
9c60689e 12795 fi
47aaa820
DWT
12796 if test -n "${lt_cv_path_LDCXX+set}"; then
12797 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12798 else
47aaa820 12799 $as_unset lt_cv_path_LD
9c60689e 12800 fi
47aaa820
DWT
12801 test -z "${LDCXX+set}" || LD=$LDCXX
12802 CC=${CXX-"c++"}
ee134472 12803 CFLAGS=$CXXFLAGS
47aaa820
DWT
12804 compiler=$CC
12805 compiler_CXX=$CC
12806 for cc_temp in $compiler""; do
12807 case $cc_temp in
12808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12810 \-*) ;;
12811 *) break;;
12812 esac
12813done
ee134472 12814cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12815
12816
47aaa820
DWT
12817 if test -n "$compiler"; then
12818 # We don't want -fno-exception when compiling C++ code, so set the
12819 # no_builtin_flag separately
12820 if test "$GXX" = yes; then
12821 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12822 else
12823 lt_prog_compiler_no_builtin_flag_CXX=
12824 fi
9c60689e 12825
47aaa820
DWT
12826 if test "$GXX" = yes; then
12827 # Set up default GNU C++ configuration
12828
12829
12830
12831# Check whether --with-gnu-ld was given.
12832if test "${with_gnu_ld+set}" = set; then :
12833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12834else
47aaa820 12835 with_gnu_ld=no
9c60689e
DWT
12836fi
12837
47aaa820
DWT
12838ac_prog=ld
12839if test "$GCC" = yes; then
12840 # Check if gcc -print-prog-name=ld gives a path.
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12842$as_echo_n "checking for ld used by $CC... " >&6; }
12843 case $host in
12844 *-*-mingw*)
12845 # gcc leaves a trailing carriage return which upsets mingw
12846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12847 *)
12848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12849 esac
12850 case $ac_prog in
12851 # Accept absolute paths.
12852 [\\/]* | ?:[\\/]*)
12853 re_direlt='/[^/][^/]*/\.\./'
12854 # Canonicalize the pathname of ld
12855 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12856 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12857 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12858 done
12859 test -z "$LD" && LD="$ac_prog"
12860 ;;
12861 "")
12862 # If it fails, then pretend we aren't using GCC.
12863 ac_prog=ld
12864 ;;
12865 *)
12866 # If it is relative, then search for the first ld in PATH.
12867 with_gnu_ld=unknown
12868 ;;
12869 esac
12870elif test "$with_gnu_ld" = yes; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12872$as_echo_n "checking for GNU ld... " >&6; }
12873else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12875$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 12876fi
ee134472 12877if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
12878 $as_echo_n "(cached) " >&6
12879else
47aaa820
DWT
12880 if test -z "$LD"; then
12881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12882 for ac_dir in $PATH; do
12883 IFS="$lt_save_ifs"
12884 test -z "$ac_dir" && ac_dir=.
12885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12886 lt_cv_path_LD="$ac_dir/$ac_prog"
12887 # Check to see if the program is GNU ld. I'd rather use --version,
12888 # but apparently some variants of GNU ld only accept -v.
12889 # Break only if it was the GNU/non-GNU ld that we prefer.
12890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12891 *GNU* | *'with BFD'*)
12892 test "$with_gnu_ld" != no && break
12893 ;;
12894 *)
12895 test "$with_gnu_ld" != yes && break
12896 ;;
12897 esac
12898 fi
9c60689e 12899 done
47aaa820
DWT
12900 IFS="$lt_save_ifs"
12901else
12902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
12903fi
12904fi
47aaa820
DWT
12905
12906LD="$lt_cv_path_LD"
12907if test -n "$LD"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12909$as_echo "$LD" >&6; }
9c60689e
DWT
12910else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912$as_echo "no" >&6; }
12913fi
12833ad8 12914test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12916$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 12917if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
12918 $as_echo_n "(cached) " >&6
12919else
12920 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12921case `$LD -v 2>&1 </dev/null` in
12922*GNU* | *'with BFD'*)
12923 lt_cv_prog_gnu_ld=yes
12924 ;;
12925*)
12926 lt_cv_prog_gnu_ld=no
12927 ;;
12928esac
12929fi
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12931$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12932with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
12933
12934
9c60689e 12935
9c60689e 12936
9c60689e 12937
9c60689e 12938
9c60689e 12939
47aaa820
DWT
12940 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12941 # archiving commands below assume that GNU ld is being used.
12942 if test "$with_gnu_ld" = yes; then
ee134472
JF
12943 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944 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 12945
47aaa820
DWT
12946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12948
47aaa820
DWT
12949 # If archive_cmds runs LD, not CC, wlarc should be empty
12950 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12951 # investigate it a little bit more. (MM)
12952 wlarc='${wl}'
9c60689e 12953
47aaa820
DWT
12954 # ancient GNU ld didn't support --whole-archive et. al.
12955 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12956 $GREP 'no-whole-archive' > /dev/null; then
12957 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12958 else
12959 whole_archive_flag_spec_CXX=
12960 fi
12961 else
12962 with_gnu_ld=no
12963 wlarc=
12964
12965 # A generic and very simple default shared library creation
12966 # command for GNU C++ for the case where it uses the native
12967 # linker, instead of GNU ld. If possible, this setting should
12968 # overridden to take advantage of the native linker features on
12969 # the platform it is being used on.
12970 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12971 fi
12972
12973 # Commands to make compiler produce verbose output that lists
12974 # what "hidden" libraries, object files and flags are used when
12975 # linking a shared library.
ee134472 12976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
12977
12978 else
12979 GXX=no
12980 with_gnu_ld=no
12981 wlarc=
12982 fi
12983
12984 # PORTME: fill in a description of your system's C++ link characteristics
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12986$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12987 ld_shlibs_CXX=yes
12988 case $host_os in
12989 aix3*)
12990 # FIXME: insert proper C++ library support
12991 ld_shlibs_CXX=no
12992 ;;
12993 aix[4-9]*)
12994 if test "$host_cpu" = ia64; then
12995 # On IA64, the linker does run time linking by default, so we don't
12996 # have to do anything special.
12997 aix_use_runtimelinking=no
12998 exp_sym_flag='-Bexport'
12999 no_entry_flag=""
13000 else
13001 aix_use_runtimelinking=no
13002
13003 # Test if we are trying to use run time linking or normal
13004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13005 # need to do runtime linking.
13006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13007 for ld_flag in $LDFLAGS; do
13008 case $ld_flag in
13009 *-brtl*)
13010 aix_use_runtimelinking=yes
13011 break
13012 ;;
13013 esac
13014 done
13015 ;;
13016 esac
13017
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13020 fi
13021
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028 archive_cmds_CXX=''
13029 hardcode_direct_CXX=yes
13030 hardcode_direct_absolute_CXX=yes
13031 hardcode_libdir_separator_CXX=':'
13032 link_all_deplibs_CXX=yes
13033 file_list_spec_CXX='${wl}-f,'
13034
13035 if test "$GXX" = yes; then
13036 case $host_os in aix4.[012]|aix4.[012].*)
13037 # We only want to do this on AIX 4.2 and lower, the check
13038 # below for broken collect2 doesn't work under 4.3+
13039 collect2name=`${CC} -print-prog-name=collect2`
13040 if test -f "$collect2name" &&
13041 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13042 then
13043 # We have reworked collect2
13044 :
13045 else
13046 # We have old collect2
13047 hardcode_direct_CXX=unsupported
13048 # It fails to find uninstalled libraries when the uninstalled
13049 # path is not listed in the libpath. Setting hardcode_minus_L
13050 # to unsupported forces relinking
13051 hardcode_minus_L_CXX=yes
13052 hardcode_libdir_flag_spec_CXX='-L$libdir'
13053 hardcode_libdir_separator_CXX=
13054 fi
13055 esac
13056 shared_flag='-shared'
13057 if test "$aix_use_runtimelinking" = yes; then
13058 shared_flag="$shared_flag "'${wl}-G'
13059 fi
13060 else
13061 # not using gcc
13062 if test "$host_cpu" = ia64; then
13063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13064 # chokes on -Wl,-G. The following line is correct:
13065 shared_flag='-G'
13066 else
13067 if test "$aix_use_runtimelinking" = yes; then
13068 shared_flag='${wl}-G'
13069 else
13070 shared_flag='${wl}-bM:SRE'
13071 fi
13072 fi
13073 fi
13074
13075 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13076 # It seems that -bexpall does not export symbols beginning with
13077 # underscore (_), so it is better to generate a list of symbols to
13078 # export.
13079 always_export_symbols_CXX=yes
13080 if test "$aix_use_runtimelinking" = yes; then
13081 # Warning - without using the other runtime loading flags (-brtl),
13082 # -berok will link without error, but may produce a broken library.
13083 allow_undefined_flag_CXX='-berok'
13084 # Determine the default libpath from the value encoded in an empty
13085 # executable.
ee134472
JF
13086 if test "${lt_cv_aix_libpath+set}" = set; then
13087 aix_libpath=$lt_cv_aix_libpath
13088else
13089 if ${lt_cv_aix_libpath__CXX+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091else
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13093/* end confdefs.h. */
13094
13095int
13096main ()
13097{
13098
13099 ;
13100 return 0;
13101}
13102_ACEOF
47aaa820 13103if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13104
ee134472
JF
13105 lt_aix_libpath_sed='
13106 /Import File Strings/,/^$/ {
13107 /^0/ {
13108 s/^0 *\([^ ]*\) *$/\1/
13109 p
13110 }
13111 }'
13112 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13113 # Check for a 64-bit object if we didn't find anything.
13114 if test -z "$lt_cv_aix_libpath__CXX"; then
13115 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13116 fi
47aaa820
DWT
13117fi
13118rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13120 if test -z "$lt_cv_aix_libpath__CXX"; then
13121 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13122 fi
13123
13124fi
13125
13126 aix_libpath=$lt_cv_aix_libpath__CXX
13127fi
47aaa820
DWT
13128
13129 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13130
ee134472 13131 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47aaa820
DWT
13132 else
13133 if test "$host_cpu" = ia64; then
13134 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13135 allow_undefined_flag_CXX="-z nodefs"
13136 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"
13137 else
13138 # Determine the default libpath from the value encoded in an
13139 # empty executable.
ee134472
JF
13140 if test "${lt_cv_aix_libpath+set}" = set; then
13141 aix_libpath=$lt_cv_aix_libpath
13142else
13143 if ${lt_cv_aix_libpath__CXX+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145else
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13147/* end confdefs.h. */
13148
13149int
13150main ()
13151{
13152
13153 ;
13154 return 0;
13155}
13156_ACEOF
47aaa820 13157if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13158
ee134472
JF
13159 lt_aix_libpath_sed='
13160 /Import File Strings/,/^$/ {
13161 /^0/ {
13162 s/^0 *\([^ ]*\) *$/\1/
13163 p
13164 }
13165 }'
13166 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167 # Check for a 64-bit object if we didn't find anything.
13168 if test -z "$lt_cv_aix_libpath__CXX"; then
13169 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13170 fi
9c60689e 13171fi
47aaa820
DWT
13172rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13174 if test -z "$lt_cv_aix_libpath__CXX"; then
13175 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13176 fi
13177
13178fi
13179
13180 aix_libpath=$lt_cv_aix_libpath__CXX
13181fi
9c60689e 13182
47aaa820
DWT
13183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13184 # Warning - without using the other run time loading flags,
13185 # -berok will link without error, but may produce a broken library.
13186 no_undefined_flag_CXX=' ${wl}-bernotok'
13187 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13188 if test "$with_gnu_ld" = yes; then
13189 # We only use this code for GNU lds that support --whole-archive.
13190 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13191 else
13192 # Exported symbols can be pulled into shared objects from archives
13193 whole_archive_flag_spec_CXX='$convenience'
13194 fi
47aaa820
DWT
13195 archive_cmds_need_lc_CXX=yes
13196 # This is similar to how AIX traditionally builds its shared
13197 # libraries.
13198 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13199 fi
13200 fi
13201 ;;
9c60689e 13202
47aaa820
DWT
13203 beos*)
13204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13205 allow_undefined_flag_CXX=unsupported
13206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13207 # support --undefined. This deserves some investigation. FIXME
13208 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 else
13210 ld_shlibs_CXX=no
13211 fi
13212 ;;
9c60689e 13213
47aaa820
DWT
13214 chorus*)
13215 case $cc_basename in
13216 *)
13217 # FIXME: insert proper C++ library support
13218 ld_shlibs_CXX=no
13219 ;;
13220 esac
13221 ;;
9c60689e 13222
47aaa820 13223 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13224 case $GXX,$cc_basename in
13225 ,cl* | no,cl*)
13226 # Native MSVC
13227 # hardcode_libdir_flag_spec is actually meaningless, as there is
13228 # no search path for DLLs.
13229 hardcode_libdir_flag_spec_CXX=' '
13230 allow_undefined_flag_CXX=unsupported
13231 always_export_symbols_CXX=yes
13232 file_list_spec_CXX='@'
13233 # Tell ltmain to make .lib files, not .a files.
13234 libext=lib
13235 # Tell ltmain to make .dll files, not .so files.
13236 shrext_cmds=".dll"
13237 # FIXME: Setting linknames here is a bad hack.
13238 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13239 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13240 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13241 else
13242 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13243 fi~
13244 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13245 linknames='
13246 # The linker will not automatically build a static lib if we build a DLL.
13247 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13248 enable_shared_with_static_runtimes_CXX=yes
13249 # Don't use ranlib
13250 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13251 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13252 lt_tool_outputfile="@TOOL_OUTPUT@"~
13253 case $lt_outputfile in
13254 *.exe|*.EXE) ;;
13255 *)
13256 lt_outputfile="$lt_outputfile.exe"
13257 lt_tool_outputfile="$lt_tool_outputfile.exe"
13258 ;;
13259 esac~
13260 func_to_tool_file "$lt_outputfile"~
13261 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13262 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13263 $RM "$lt_outputfile.manifest";
13264 fi'
13265 ;;
13266 *)
13267 # g++
13268 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13269 # as there is no search path for DLLs.
13270 hardcode_libdir_flag_spec_CXX='-L$libdir'
13271 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13272 allow_undefined_flag_CXX=unsupported
13273 always_export_symbols_CXX=no
13274 enable_shared_with_static_runtimes_CXX=yes
13275
13276 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13277 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'
13278 # If the export-symbols file already is a .def file (1st line
13279 # is EXPORTS), use it as is; otherwise, prepend...
13280 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13281 cp $export_symbols $output_objdir/$soname.def;
13282 else
13283 echo EXPORTS > $output_objdir/$soname.def;
13284 cat $export_symbols >> $output_objdir/$soname.def;
13285 fi~
13286 $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'
13287 else
13288 ld_shlibs_CXX=no
13289 fi
13290 ;;
13291 esac
13292 ;;
47aaa820 13293 darwin* | rhapsody*)
9c60689e 13294
9c60689e 13295
47aaa820
DWT
13296 archive_cmds_need_lc_CXX=no
13297 hardcode_direct_CXX=no
13298 hardcode_automatic_CXX=yes
13299 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13300 if test "$lt_cv_ld_force_load" = "yes"; then
13301 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 13302
ee134472
JF
13303 else
13304 whole_archive_flag_spec_CXX=''
13305 fi
47aaa820
DWT
13306 link_all_deplibs_CXX=yes
13307 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13308 case $cc_basename in
13309 ifort*) _lt_dar_can_shared=yes ;;
13310 *) _lt_dar_can_shared=$GCC ;;
13311 esac
13312 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13313 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13314 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}"
13315 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13316 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}"
13317 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}"
13318 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13319 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}"
13320 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}"
13321 fi
9c60689e 13322
47aaa820
DWT
13323 else
13324 ld_shlibs_CXX=no
13325 fi
9c60689e 13326
47aaa820 13327 ;;
9c60689e 13328
47aaa820
DWT
13329 dgux*)
13330 case $cc_basename in
13331 ec++*)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13334 ;;
13335 ghcx*)
13336 # Green Hills C++ Compiler
13337 # FIXME: insert proper C++ library support
13338 ld_shlibs_CXX=no
13339 ;;
13340 *)
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13343 ;;
13344 esac
13345 ;;
9c60689e 13346
53ba6704 13347 freebsd2.*)
47aaa820
DWT
13348 # C++ shared libraries reported to be fairly broken before
13349 # switch to ELF
13350 ld_shlibs_CXX=no
13351 ;;
9c60689e 13352
47aaa820
DWT
13353 freebsd-elf*)
13354 archive_cmds_need_lc_CXX=no
13355 ;;
9c60689e 13356
47aaa820
DWT
13357 freebsd* | dragonfly*)
13358 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13359 # conventions
13360 ld_shlibs_CXX=yes
13361 ;;
9c60689e 13362
47aaa820
DWT
13363 gnu*)
13364 ;;
9c60689e 13365
ee134472
JF
13366 haiku*)
13367 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13368 link_all_deplibs_CXX=yes
13369 ;;
13370
47aaa820
DWT
13371 hpux9*)
13372 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13373 hardcode_libdir_separator_CXX=:
13374 export_dynamic_flag_spec_CXX='${wl}-E'
13375 hardcode_direct_CXX=yes
13376 hardcode_minus_L_CXX=yes # Not in the search PATH,
13377 # but as the default
13378 # location of the library.
9c60689e 13379
47aaa820
DWT
13380 case $cc_basename in
13381 CC*)
13382 # FIXME: insert proper C++ library support
13383 ld_shlibs_CXX=no
13384 ;;
13385 aCC*)
13386 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13387 # Commands to make compiler produce verbose output that lists
13388 # what "hidden" libraries, object files and flags are used when
13389 # linking a shared library.
13390 #
13391 # There doesn't appear to be a way to prevent this compiler from
13392 # explicitly linking system object files so we need to strip them
13393 # from the output so that they don't get included in the library
13394 # dependencies.
ee134472 13395 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
13396 ;;
13397 *)
13398 if test "$GXX" = yes; then
ee134472 13399 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47aaa820
DWT
13400 else
13401 # FIXME: insert proper C++ library support
13402 ld_shlibs_CXX=no
13403 fi
13404 ;;
13405 esac
13406 ;;
9c60689e 13407
47aaa820
DWT
13408 hpux10*|hpux11*)
13409 if test $with_gnu_ld = no; then
13410 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13411 hardcode_libdir_separator_CXX=:
9c60689e 13412
47aaa820
DWT
13413 case $host_cpu in
13414 hppa*64*|ia64*)
13415 ;;
13416 *)
13417 export_dynamic_flag_spec_CXX='${wl}-E'
13418 ;;
13419 esac
13420 fi
13421 case $host_cpu in
13422 hppa*64*|ia64*)
13423 hardcode_direct_CXX=no
13424 hardcode_shlibpath_var_CXX=no
13425 ;;
13426 *)
13427 hardcode_direct_CXX=yes
13428 hardcode_direct_absolute_CXX=yes
13429 hardcode_minus_L_CXX=yes # Not in the search PATH,
13430 # but as the default
13431 # location of the library.
13432 ;;
13433 esac
9c60689e 13434
47aaa820
DWT
13435 case $cc_basename in
13436 CC*)
13437 # FIXME: insert proper C++ library support
13438 ld_shlibs_CXX=no
13439 ;;
13440 aCC*)
13441 case $host_cpu in
13442 hppa*64*)
13443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13444 ;;
13445 ia64*)
13446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13447 ;;
13448 *)
13449 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13450 ;;
13451 esac
13452 # Commands to make compiler produce verbose output that lists
13453 # what "hidden" libraries, object files and flags are used when
13454 # linking a shared library.
13455 #
13456 # There doesn't appear to be a way to prevent this compiler from
13457 # explicitly linking system object files so we need to strip them
13458 # from the output so that they don't get included in the library
13459 # dependencies.
ee134472 13460 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
13461 ;;
13462 *)
13463 if test "$GXX" = yes; then
13464 if test $with_gnu_ld = no; then
13465 case $host_cpu in
13466 hppa*64*)
13467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13468 ;;
13469 ia64*)
ee134472 13470 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
13471 ;;
13472 *)
ee134472 13473 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
13474 ;;
13475 esac
13476 fi
13477 else
13478 # FIXME: insert proper C++ library support
13479 ld_shlibs_CXX=no
13480 fi
13481 ;;
13482 esac
13483 ;;
9c60689e 13484
47aaa820
DWT
13485 interix[3-9]*)
13486 hardcode_direct_CXX=no
13487 hardcode_shlibpath_var_CXX=no
13488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13489 export_dynamic_flag_spec_CXX='${wl}-E'
13490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13491 # Instead, shared libraries are loaded at an image base (0x10000000 by
13492 # default) and relocated if they conflict, which is a slow very memory
13493 # consuming and fragmenting process. To avoid this, we pick a random,
13494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13496 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'
13497 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'
13498 ;;
13499 irix5* | irix6*)
13500 case $cc_basename in
13501 CC*)
13502 # SGI C++
ee134472 13503 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 13504
47aaa820
DWT
13505 # Archives containing C++ object files must be created using
13506 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13507 # necessary to make sure instantiated templates are included
13508 # in the archive.
13509 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13510 ;;
13511 *)
13512 if test "$GXX" = yes; then
13513 if test "$with_gnu_ld" = no; then
ee134472 13514 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 13515 else
ee134472 13516 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
13517 fi
13518 fi
13519 link_all_deplibs_CXX=yes
13520 ;;
13521 esac
13522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523 hardcode_libdir_separator_CXX=:
13524 inherit_rpath_CXX=yes
13525 ;;
9c60689e 13526
1504c9b8 13527 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13528 case $cc_basename in
13529 KCC*)
13530 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13531
47aaa820
DWT
13532 # KCC will only create a shared library if the output file
13533 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13534 # to its proper name (with version) after linking.
13535 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'
13536 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'
13537 # Commands to make compiler produce verbose output that lists
13538 # what "hidden" libraries, object files and flags are used when
13539 # linking a shared library.
13540 #
13541 # There doesn't appear to be a way to prevent this compiler from
13542 # explicitly linking system object files so we need to strip them
13543 # from the output so that they don't get included in the library
13544 # dependencies.
ee134472 13545 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 13546
47aaa820
DWT
13547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13548 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13549
47aaa820
DWT
13550 # Archives containing C++ object files must be created using
13551 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13552 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13553 ;;
13554 icpc* | ecpc* )
13555 # Intel C++
13556 with_gnu_ld=yes
13557 # version 8.0 and above of icpc choke on multiply defined symbols
13558 # if we add $predep_objects and $postdep_objects, however 7.1 and
13559 # earlier do not add the objects themselves.
13560 case `$CC -V 2>&1` in
13561 *"Version 7."*)
13562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13563 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'
13564 ;;
13565 *) # Version 8.0 or newer
13566 tmp_idyn=
13567 case $host_cpu in
13568 ia64*) tmp_idyn=' -i_dynamic';;
13569 esac
13570 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13571 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'
13572 ;;
13573 esac
13574 archive_cmds_need_lc_CXX=no
13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13577 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13578 ;;
13579 pgCC* | pgcpp*)
13580 # Portland Group C++ compiler
13581 case `$CC -V` in
ee134472 13582 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13583 prelink_cmds_CXX='tpldir=Template.dir~
13584 rm -rf $tpldir~
13585 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13586 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13587 old_archive_cmds_CXX='tpldir=Template.dir~
13588 rm -rf $tpldir~
13589 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13590 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13591 $RANLIB $oldlib'
13592 archive_cmds_CXX='tpldir=Template.dir~
13593 rm -rf $tpldir~
13594 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13595 $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
DWT
13596 archive_expsym_cmds_CXX='tpldir=Template.dir~
13597 rm -rf $tpldir~
13598 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13599 $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 13600 ;;
ee134472 13601 *) # Version 6 and above use weak symbols
47aaa820
DWT
13602 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13603 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'
13604 ;;
13605 esac
9c60689e 13606
47aaa820
DWT
13607 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13609 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
13610 ;;
13611 cxx*)
13612 # Compaq C++
13613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614 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 13615
47aaa820
DWT
13616 runpath_var=LD_RUN_PATH
13617 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13618 hardcode_libdir_separator_CXX=:
9c60689e 13619
47aaa820
DWT
13620 # Commands to make compiler produce verbose output that lists
13621 # what "hidden" libraries, object files and flags are used when
13622 # linking a shared library.
13623 #
13624 # There doesn't appear to be a way to prevent this compiler from
13625 # explicitly linking system object files so we need to strip them
13626 # from the output so that they don't get included in the library
13627 # dependencies.
ee134472 13628 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 13629 ;;
ee134472 13630 xl* | mpixl* | bgxl*)
47aaa820
DWT
13631 # IBM XL 8.0 on PPC, with GNU ld
13632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13634 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 if test "x$supports_anon_versioning" = xyes; then
13636 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13638 echo "local: *; };" >> $output_objdir/$libname.ver~
13639 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13640 fi
13641 ;;
13642 *)
13643 case `$CC -V 2>&1 | sed 5q` in
13644 *Sun\ C*)
13645 # Sun C++ 5.9
13646 no_undefined_flag_CXX=' -zdefs'
13647 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648 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'
13649 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13650 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 13651 compiler_needs_object_CXX=yes
9c60689e 13652
47aaa820
DWT
13653 # Not sure whether something based on
13654 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13655 # would be better.
ee134472 13656 output_verbose_link_cmd='func_echo_all'
9c60689e 13657
47aaa820
DWT
13658 # Archives containing C++ object files must be created using
13659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13660 # necessary to make sure instantiated templates are included
13661 # in the archive.
13662 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13663 ;;
13664 esac
13665 ;;
13666 esac
13667 ;;
9c60689e 13668
47aaa820
DWT
13669 lynxos*)
13670 # FIXME: insert proper C++ library support
13671 ld_shlibs_CXX=no
13672 ;;
9c60689e 13673
47aaa820
DWT
13674 m88k*)
13675 # FIXME: insert proper C++ library support
13676 ld_shlibs_CXX=no
13677 ;;
9c60689e 13678
47aaa820
DWT
13679 mvs*)
13680 case $cc_basename in
13681 cxx*)
13682 # FIXME: insert proper C++ library support
13683 ld_shlibs_CXX=no
13684 ;;
13685 *)
13686 # FIXME: insert proper C++ library support
13687 ld_shlibs_CXX=no
13688 ;;
13689 esac
13690 ;;
9c60689e 13691
47aaa820
DWT
13692 netbsd*)
13693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13694 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13695 wlarc=
13696 hardcode_libdir_flag_spec_CXX='-R$libdir'
13697 hardcode_direct_CXX=yes
13698 hardcode_shlibpath_var_CXX=no
13699 fi
13700 # Workaround some broken pre-1.5 toolchains
13701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13702 ;;
47aaa820
DWT
13703
13704 *nto* | *qnx*)
13705 ld_shlibs_CXX=yes
9c60689e 13706 ;;
9c60689e 13707
47aaa820
DWT
13708 openbsd2*)
13709 # C++ shared libraries are fairly broken
13710 ld_shlibs_CXX=no
13711 ;;
9c60689e 13712
47aaa820
DWT
13713 openbsd*)
13714 if test -f /usr/libexec/ld.so; then
13715 hardcode_direct_CXX=yes
13716 hardcode_shlibpath_var_CXX=no
13717 hardcode_direct_absolute_CXX=yes
13718 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13721 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13722 export_dynamic_flag_spec_CXX='${wl}-E'
13723 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13724 fi
ee134472 13725 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13726 else
13727 ld_shlibs_CXX=no
13728 fi
13729 ;;
9c60689e 13730
47aaa820
DWT
13731 osf3* | osf4* | osf5*)
13732 case $cc_basename in
13733 KCC*)
13734 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13735
47aaa820
DWT
13736 # KCC will only create a shared library if the output file
13737 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13738 # to its proper name (with version) after linking.
13739 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 13740
47aaa820
DWT
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742 hardcode_libdir_separator_CXX=:
9c60689e 13743
47aaa820
DWT
13744 # Archives containing C++ object files must be created using
13745 # the KAI C++ compiler.
13746 case $host in
13747 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13748 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13749 esac
13750 ;;
13751 RCC*)
13752 # Rational C++ 2.4.1
13753 # FIXME: insert proper C++ library support
13754 ld_shlibs_CXX=no
13755 ;;
13756 cxx*)
13757 case $host in
13758 osf3*)
13759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13760 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'
47aaa820
DWT
13761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13762 ;;
13763 *)
13764 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13765 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
DWT
13766 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13767 echo "-hidden">> $lib.exp~
ee134472 13768 $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~
47aaa820
DWT
13769 $RM $lib.exp'
13770 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13771 ;;
13772 esac
9c60689e 13773
47aaa820 13774 hardcode_libdir_separator_CXX=:
9c60689e 13775
47aaa820
DWT
13776 # Commands to make compiler produce verbose output that lists
13777 # what "hidden" libraries, object files and flags are used when
13778 # linking a shared library.
13779 #
13780 # There doesn't appear to be a way to prevent this compiler from
13781 # explicitly linking system object files so we need to strip them
13782 # from the output so that they don't get included in the library
13783 # dependencies.
ee134472 13784 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
13785 ;;
13786 *)
13787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13788 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13789 case $host in
13790 osf3*)
ee134472 13791 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
13792 ;;
13793 *)
ee134472 13794 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
13795 ;;
13796 esac
9c60689e 13797
47aaa820
DWT
13798 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13799 hardcode_libdir_separator_CXX=:
9c60689e 13800
47aaa820
DWT
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
ee134472 13804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13805
47aaa820
DWT
13806 else
13807 # FIXME: insert proper C++ library support
13808 ld_shlibs_CXX=no
13809 fi
13810 ;;
13811 esac
13812 ;;
9c60689e 13813
47aaa820 13814 psos*)
9c60689e
DWT
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
9c60689e 13818
47aaa820
DWT
13819 sunos4*)
13820 case $cc_basename in
13821 CC*)
13822 # Sun C++ 4.x
13823 # FIXME: insert proper C++ library support
13824 ld_shlibs_CXX=no
9c60689e 13825 ;;
47aaa820
DWT
13826 lcc*)
13827 # Lucid
13828 # FIXME: insert proper C++ library support
13829 ld_shlibs_CXX=no
13830 ;;
13831 *)
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13834 ;;
13835 esac
13836 ;;
9c60689e 13837
47aaa820
DWT
13838 solaris*)
13839 case $cc_basename in
ee134472 13840 CC* | sunCC*)
47aaa820
DWT
13841 # Sun C++ 4.2, 5.x and Centerline C++
13842 archive_cmds_need_lc_CXX=yes
13843 no_undefined_flag_CXX=' -zdefs'
13844 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13846 $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 13847
47aaa820
DWT
13848 hardcode_libdir_flag_spec_CXX='-R$libdir'
13849 hardcode_shlibpath_var_CXX=no
13850 case $host_os in
13851 solaris2.[0-5] | solaris2.[0-5].*) ;;
13852 *)
13853 # The compiler driver will combine and reorder linker options,
13854 # but understands `-z linker_flag'.
13855 # Supported since Solaris 2.6 (maybe 2.5.1?)
13856 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13857 ;;
13858 esac
13859 link_all_deplibs_CXX=yes
9c60689e 13860
ee134472 13861 output_verbose_link_cmd='func_echo_all'
9c60689e 13862
47aaa820
DWT
13863 # Archives containing C++ object files must be created using
13864 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13865 # necessary to make sure instantiated templates are included
13866 # in the archive.
13867 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13868 ;;
13869 gcx*)
13870 # Green Hills C++ Compiler
13871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 13872
47aaa820
DWT
13873 # The C++ compiler must be used to create the archive.
13874 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13875 ;;
13876 *)
13877 # GNU C++ compiler with Solaris linker
13878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13879 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13880 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 13881 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 13882 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 13883 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13884
47aaa820
DWT
13885 # Commands to make compiler produce verbose output that lists
13886 # what "hidden" libraries, object files and flags are used when
13887 # linking a shared library.
ee134472 13888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13889 else
13890 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13891 # platform.
13892 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13893 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13894 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13895
47aaa820
DWT
13896 # Commands to make compiler produce verbose output that lists
13897 # what "hidden" libraries, object files and flags are used when
13898 # linking a shared library.
ee134472 13899 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 13900 fi
9c60689e 13901
47aaa820
DWT
13902 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13903 case $host_os in
13904 solaris2.[0-5] | solaris2.[0-5].*) ;;
13905 *)
13906 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13907 ;;
13908 esac
13909 fi
13910 ;;
13911 esac
13912 ;;
9c60689e 13913
47aaa820
DWT
13914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13915 no_undefined_flag_CXX='${wl}-z,text'
13916 archive_cmds_need_lc_CXX=no
13917 hardcode_shlibpath_var_CXX=no
13918 runpath_var='LD_RUN_PATH'
9c60689e 13919
47aaa820
DWT
13920 case $cc_basename in
13921 CC*)
13922 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 ;;
13925 *)
13926 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 ;;
13929 esac
13930 ;;
9c60689e 13931
47aaa820
DWT
13932 sysv5* | sco3.2v5* | sco5v6*)
13933 # Note: We can NOT use -z defs as we might desire, because we do not
13934 # link with -lc, and that would cause any symbols used from libc to
13935 # always be unresolved, which means just about no library would
13936 # ever link correctly. If we're not using GNU ld we use -z text
13937 # though, which does catch some bad symbols but isn't as heavy-handed
13938 # as -z defs.
13939 no_undefined_flag_CXX='${wl}-z,text'
13940 allow_undefined_flag_CXX='${wl}-z,nodefs'
13941 archive_cmds_need_lc_CXX=no
13942 hardcode_shlibpath_var_CXX=no
13943 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13944 hardcode_libdir_separator_CXX=':'
13945 link_all_deplibs_CXX=yes
13946 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13947 runpath_var='LD_RUN_PATH'
9c60689e 13948
47aaa820
DWT
13949 case $cc_basename in
13950 CC*)
13951 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
13953 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13954 '"$old_archive_cmds_CXX"
13955 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13956 '"$reload_cmds_CXX"
47aaa820
DWT
13957 ;;
13958 *)
13959 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13961 ;;
13962 esac
13963 ;;
9c60689e 13964
47aaa820 13965 tandem*)
9c60689e 13966 case $cc_basename in
47aaa820
DWT
13967 NCC*)
13968 # NonStop-UX NCC 3.20
13969 # FIXME: insert proper C++ library support
13970 ld_shlibs_CXX=no
13971 ;;
9c60689e 13972 *)
47aaa820
DWT
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13975 ;;
9c60689e
DWT
13976 esac
13977 ;;
13978
47aaa820
DWT
13979 vxworks*)
13980 # FIXME: insert proper C++ library support
13981 ld_shlibs_CXX=no
13982 ;;
9c60689e 13983
47aaa820
DWT
13984 *)
13985 # FIXME: insert proper C++ library support
13986 ld_shlibs_CXX=no
9c60689e 13987 ;;
47aaa820 13988 esac
9c60689e 13989
47aaa820
DWT
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13991$as_echo "$ld_shlibs_CXX" >&6; }
13992 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 13993
47aaa820
DWT
13994 GCC_CXX="$GXX"
13995 LD_CXX="$LD"
9c60689e 13996
47aaa820
DWT
13997 ## CAVEAT EMPTOR:
13998 ## There is no encapsulation within the following macros, do not change
13999 ## the running order or otherwise move them around unless you know exactly
14000 ## what you are doing...
14001 # Dependencies to place before and after the object being linked:
14002predep_objects_CXX=
14003postdep_objects_CXX=
14004predeps_CXX=
14005postdeps_CXX=
14006compiler_lib_search_path_CXX=
9c60689e 14007
47aaa820
DWT
14008cat > conftest.$ac_ext <<_LT_EOF
14009class Foo
14010{
14011public:
14012 Foo (void) { a = 0; }
14013private:
14014 int a;
14015};
14016_LT_EOF
9c60689e 14017
ee134472
JF
14018
14019_lt_libdeps_save_CFLAGS=$CFLAGS
14020case "$CC $CFLAGS " in #(
14021*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14022*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14023*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14024esac
14025
47aaa820
DWT
14026if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14027 (eval $ac_compile) 2>&5
14028 ac_status=$?
14029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14030 test $ac_status = 0; }; then
14031 # Parse the compiler output and extract the necessary
14032 # objects, libraries and library flags.
9c60689e 14033
47aaa820
DWT
14034 # Sentinel used to keep track of whether or not we are before
14035 # the conftest object file.
14036 pre_test_object_deps_done=no
9c60689e 14037
47aaa820 14038 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14039 case ${prev}${p} in
9c60689e 14040
47aaa820
DWT
14041 -L* | -R* | -l*)
14042 # Some compilers place space between "-{L,R}" and the path.
14043 # Remove the space.
14044 if test $p = "-L" ||
14045 test $p = "-R"; then
14046 prev=$p
14047 continue
47aaa820 14048 fi
9c60689e 14049
ee134472
JF
14050 # Expand the sysroot to ease extracting the directories later.
14051 if test -z "$prev"; then
14052 case $p in
14053 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14054 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14055 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14056 esac
14057 fi
14058 case $p in
14059 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14060 esac
47aaa820 14061 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14062 case ${prev} in
14063 -L | -R)
47aaa820
DWT
14064 # Internal compiler library paths should come after those
14065 # provided the user. The postdeps already come after the
14066 # user supplied libs so there is no need to process them.
14067 if test -z "$compiler_lib_search_path_CXX"; then
14068 compiler_lib_search_path_CXX="${prev}${p}"
14069 else
14070 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14071 fi
14072 ;;
14073 # The "-l" case would never come before the object being
14074 # linked, so don't bother handling this case.
14075 esac
14076 else
14077 if test -z "$postdeps_CXX"; then
14078 postdeps_CXX="${prev}${p}"
14079 else
14080 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14081 fi
14082 fi
ee134472 14083 prev=
47aaa820 14084 ;;
9c60689e 14085
ee134472 14086 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14087 *.$objext)
14088 # This assumes that the test object file only shows up
14089 # once in the compiler output.
14090 if test "$p" = "conftest.$objext"; then
14091 pre_test_object_deps_done=yes
14092 continue
14093 fi
9c60689e 14094
47aaa820
DWT
14095 if test "$pre_test_object_deps_done" = no; then
14096 if test -z "$predep_objects_CXX"; then
14097 predep_objects_CXX="$p"
14098 else
14099 predep_objects_CXX="$predep_objects_CXX $p"
14100 fi
14101 else
14102 if test -z "$postdep_objects_CXX"; then
14103 postdep_objects_CXX="$p"
14104 else
14105 postdep_objects_CXX="$postdep_objects_CXX $p"
14106 fi
14107 fi
14108 ;;
9c60689e 14109
47aaa820 14110 *) ;; # Ignore the rest.
9c60689e 14111
47aaa820
DWT
14112 esac
14113 done
9c60689e 14114
47aaa820
DWT
14115 # Clean up.
14116 rm -f a.out a.exe
14117else
14118 echo "libtool.m4: error: problem compiling CXX test program"
14119fi
9c60689e 14120
47aaa820 14121$RM -f confest.$objext
ee134472 14122CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14123
47aaa820
DWT
14124# PORTME: override above test on systems where it is broken
14125case $host_os in
14126interix[3-9]*)
14127 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14128 # hack all around it, let's just trust "g++" to DTRT.
14129 predep_objects_CXX=
14130 postdep_objects_CXX=
14131 postdeps_CXX=
14132 ;;
9c60689e 14133
47aaa820
DWT
14134linux*)
14135 case `$CC -V 2>&1 | sed 5q` in
14136 *Sun\ C*)
14137 # Sun C++ 5.9
9c60689e 14138
47aaa820
DWT
14139 # The more standards-conforming stlport4 library is
14140 # incompatible with the Cstd library. Avoid specifying
14141 # it if it's in CXXFLAGS. Ignore libCrun as
14142 # -library=stlport4 depends on it.
14143 case " $CXX $CXXFLAGS " in
14144 *" -library=stlport4 "*)
14145 solaris_use_stlport4=yes
14146 ;;
14147 esac
9c60689e 14148
47aaa820
DWT
14149 if test "$solaris_use_stlport4" != yes; then
14150 postdeps_CXX='-library=Cstd -library=Crun'
14151 fi
14152 ;;
14153 esac
14154 ;;
9c60689e 14155
47aaa820
DWT
14156solaris*)
14157 case $cc_basename in
ee134472 14158 CC* | sunCC*)
47aaa820
DWT
14159 # The more standards-conforming stlport4 library is
14160 # incompatible with the Cstd library. Avoid specifying
14161 # it if it's in CXXFLAGS. Ignore libCrun as
14162 # -library=stlport4 depends on it.
14163 case " $CXX $CXXFLAGS " in
14164 *" -library=stlport4 "*)
14165 solaris_use_stlport4=yes
14166 ;;
14167 esac
9c60689e 14168
47aaa820
DWT
14169 # Adding this requires a known-good setup of shared libraries for
14170 # Sun compiler versions before 5.6, else PIC objects from an old
14171 # archive will be linked into the output, leading to subtle bugs.
14172 if test "$solaris_use_stlport4" != yes; then
14173 postdeps_CXX='-library=Cstd -library=Crun'
14174 fi
14175 ;;
14176 esac
14177 ;;
14178esac
9c60689e 14179
9c60689e 14180
47aaa820
DWT
14181case " $postdeps_CXX " in
14182*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14183esac
14184 compiler_lib_search_dirs_CXX=
14185if test -n "${compiler_lib_search_path_CXX}"; then
14186 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14187fi
9c60689e 14188
9c60689e 14189
9c60689e 14190
9c60689e 14191
9c60689e 14192
9c60689e 14193
9c60689e 14194
9c60689e 14195
9c60689e 14196
9c60689e 14197
9c60689e 14198
9c60689e 14199
9c60689e 14200
9c60689e 14201
9c60689e 14202
9c60689e 14203
9c60689e 14204
9c60689e 14205
9c60689e 14206
9c60689e 14207
9c60689e 14208
9c60689e 14209
9c60689e 14210
9c60689e 14211
9c60689e 14212
9c60689e 14213
9c60689e 14214
9c60689e 14215
9c60689e 14216
9c60689e 14217
9c60689e 14218
47aaa820
DWT
14219 lt_prog_compiler_wl_CXX=
14220lt_prog_compiler_pic_CXX=
14221lt_prog_compiler_static_CXX=
9c60689e 14222
9c60689e
DWT
14223
14224 # C++ specific cases for pic, static, wl, etc.
14225 if test "$GXX" = yes; then
14226 lt_prog_compiler_wl_CXX='-Wl,'
14227 lt_prog_compiler_static_CXX='-static'
14228
14229 case $host_os in
14230 aix*)
14231 # All AIX code is PIC.
14232 if test "$host_cpu" = ia64; then
14233 # AIX 5 now supports IA64 processor
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 fi
14236 ;;
14237
14238 amigaos*)
14239 case $host_cpu in
14240 powerpc)
14241 # see comment about AmigaOS4 .so support
14242 lt_prog_compiler_pic_CXX='-fPIC'
14243 ;;
14244 m68k)
14245 # FIXME: we need at least 68020 code to build shared libraries, but
14246 # adding the `-m68020' flag to GCC prevents building anything better,
14247 # like `-m68040'.
14248 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14249 ;;
14250 esac
14251 ;;
14252
14253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14254 # PIC is the default for these OSes.
14255 ;;
14256 mingw* | cygwin* | os2* | pw32* | cegcc*)
14257 # This hack is so that the source file can tell whether it is being
14258 # built for inclusion in a dll (and should export symbols for example).
14259 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14260 # (--disable-auto-import) libraries
14261 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14262 ;;
14263 darwin* | rhapsody*)
14264 # PIC is the default on this platform
14265 # Common symbols not allowed in MH_DYLIB files
14266 lt_prog_compiler_pic_CXX='-fno-common'
14267 ;;
14268 *djgpp*)
14269 # DJGPP does not support shared libraries at all
14270 lt_prog_compiler_pic_CXX=
14271 ;;
ee134472
JF
14272 haiku*)
14273 # PIC is the default for Haiku.
14274 # The "-static" flag exists, but is broken.
14275 lt_prog_compiler_static_CXX=
14276 ;;
9c60689e
DWT
14277 interix[3-9]*)
14278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14279 # Instead, we relocate shared libraries at runtime.
14280 ;;
14281 sysv4*MP*)
14282 if test -d /usr/nec; then
14283 lt_prog_compiler_pic_CXX=-Kconform_pic
14284 fi
14285 ;;
14286 hpux*)
14287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14289 # sets the default TLS model and affects inlining.
14290 case $host_cpu in
14291 hppa*64*)
14292 ;;
14293 *)
14294 lt_prog_compiler_pic_CXX='-fPIC'
14295 ;;
14296 esac
14297 ;;
14298 *qnx* | *nto*)
14299 # QNX uses GNU C++, but need to define -shared option too, otherwise
14300 # it will coredump.
14301 lt_prog_compiler_pic_CXX='-fPIC -shared'
14302 ;;
14303 *)
14304 lt_prog_compiler_pic_CXX='-fPIC'
14305 ;;
14306 esac
14307 else
14308 case $host_os in
14309 aix[4-9]*)
14310 # All AIX code is PIC.
14311 if test "$host_cpu" = ia64; then
14312 # AIX 5 now supports IA64 processor
14313 lt_prog_compiler_static_CXX='-Bstatic'
14314 else
14315 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14316 fi
14317 ;;
14318 chorus*)
14319 case $cc_basename in
14320 cxch68*)
14321 # Green Hills C++ Compiler
14322 # _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"
14323 ;;
14324 esac
14325 ;;
ee134472
JF
14326 mingw* | cygwin* | os2* | pw32* | cegcc*)
14327 # This hack is so that the source file can tell whether it is being
14328 # built for inclusion in a dll (and should export symbols for example).
14329 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14330 ;;
9c60689e
DWT
14331 dgux*)
14332 case $cc_basename in
14333 ec++*)
14334 lt_prog_compiler_pic_CXX='-KPIC'
14335 ;;
14336 ghcx*)
14337 # Green Hills C++ Compiler
14338 lt_prog_compiler_pic_CXX='-pic'
14339 ;;
14340 *)
14341 ;;
14342 esac
14343 ;;
14344 freebsd* | dragonfly*)
14345 # FreeBSD uses GNU C++
14346 ;;
14347 hpux9* | hpux10* | hpux11*)
14348 case $cc_basename in
14349 CC*)
14350 lt_prog_compiler_wl_CXX='-Wl,'
14351 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14352 if test "$host_cpu" != ia64; then
14353 lt_prog_compiler_pic_CXX='+Z'
14354 fi
14355 ;;
14356 aCC*)
14357 lt_prog_compiler_wl_CXX='-Wl,'
14358 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14359 case $host_cpu in
14360 hppa*64*|ia64*)
14361 # +Z the default
14362 ;;
14363 *)
14364 lt_prog_compiler_pic_CXX='+Z'
14365 ;;
14366 esac
14367 ;;
14368 *)
14369 ;;
14370 esac
14371 ;;
14372 interix*)
14373 # This is c89, which is MS Visual C++ (no shared libs)
14374 # Anyone wants to do a port?
14375 ;;
14376 irix5* | irix6* | nonstopux*)
14377 case $cc_basename in
14378 CC*)
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_static_CXX='-non_shared'
14381 # CC pic flag -KPIC is the default.
14382 ;;
14383 *)
14384 ;;
14385 esac
14386 ;;
1504c9b8 14387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14388 case $cc_basename in
14389 KCC*)
14390 # KAI C++ Compiler
14391 lt_prog_compiler_wl_CXX='--backend -Wl,'
14392 lt_prog_compiler_pic_CXX='-fPIC'
14393 ;;
14394 ecpc* )
14395 # old Intel C++ for x86_64 which still supported -KPIC.
14396 lt_prog_compiler_wl_CXX='-Wl,'
14397 lt_prog_compiler_pic_CXX='-KPIC'
14398 lt_prog_compiler_static_CXX='-static'
14399 ;;
14400 icpc* )
14401 # Intel C++, used to be incompatible with GCC.
14402 # ICC 10 doesn't accept -KPIC any more.
14403 lt_prog_compiler_wl_CXX='-Wl,'
14404 lt_prog_compiler_pic_CXX='-fPIC'
14405 lt_prog_compiler_static_CXX='-static'
14406 ;;
14407 pgCC* | pgcpp*)
14408 # Portland Group C++ compiler
14409 lt_prog_compiler_wl_CXX='-Wl,'
14410 lt_prog_compiler_pic_CXX='-fpic'
14411 lt_prog_compiler_static_CXX='-Bstatic'
14412 ;;
14413 cxx*)
14414 # Compaq C++
14415 # Make sure the PIC flag is empty. It appears that all Alpha
14416 # Linux and Compaq Tru64 Unix objects are PIC.
14417 lt_prog_compiler_pic_CXX=
14418 lt_prog_compiler_static_CXX='-non_shared'
14419 ;;
ee134472
JF
14420 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14421 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14422 lt_prog_compiler_wl_CXX='-Wl,'
14423 lt_prog_compiler_pic_CXX='-qpic'
14424 lt_prog_compiler_static_CXX='-qstaticlink'
14425 ;;
14426 *)
14427 case `$CC -V 2>&1 | sed 5q` in
14428 *Sun\ C*)
14429 # Sun C++ 5.9
14430 lt_prog_compiler_pic_CXX='-KPIC'
14431 lt_prog_compiler_static_CXX='-Bstatic'
14432 lt_prog_compiler_wl_CXX='-Qoption ld '
14433 ;;
14434 esac
14435 ;;
14436 esac
14437 ;;
14438 lynxos*)
14439 ;;
14440 m88k*)
14441 ;;
14442 mvs*)
14443 case $cc_basename in
14444 cxx*)
14445 lt_prog_compiler_pic_CXX='-W c,exportall'
14446 ;;
14447 *)
14448 ;;
14449 esac
14450 ;;
53ba6704 14451 netbsd*)
9c60689e
DWT
14452 ;;
14453 *qnx* | *nto*)
14454 # QNX uses GNU C++, but need to define -shared option too, otherwise
14455 # it will coredump.
14456 lt_prog_compiler_pic_CXX='-fPIC -shared'
14457 ;;
14458 osf3* | osf4* | osf5*)
14459 case $cc_basename in
14460 KCC*)
14461 lt_prog_compiler_wl_CXX='--backend -Wl,'
14462 ;;
14463 RCC*)
14464 # Rational C++ 2.4.1
14465 lt_prog_compiler_pic_CXX='-pic'
14466 ;;
14467 cxx*)
14468 # Digital/Compaq C++
14469 lt_prog_compiler_wl_CXX='-Wl,'
14470 # Make sure the PIC flag is empty. It appears that all Alpha
14471 # Linux and Compaq Tru64 Unix objects are PIC.
14472 lt_prog_compiler_pic_CXX=
14473 lt_prog_compiler_static_CXX='-non_shared'
14474 ;;
14475 *)
14476 ;;
14477 esac
14478 ;;
14479 psos*)
14480 ;;
14481 solaris*)
14482 case $cc_basename in
ee134472 14483 CC* | sunCC*)
9c60689e
DWT
14484 # Sun C++ 4.2, 5.x and Centerline C++
14485 lt_prog_compiler_pic_CXX='-KPIC'
14486 lt_prog_compiler_static_CXX='-Bstatic'
14487 lt_prog_compiler_wl_CXX='-Qoption ld '
14488 ;;
14489 gcx*)
14490 # Green Hills C++ Compiler
14491 lt_prog_compiler_pic_CXX='-PIC'
14492 ;;
14493 *)
14494 ;;
14495 esac
14496 ;;
14497 sunos4*)
14498 case $cc_basename in
14499 CC*)
14500 # Sun C++ 4.x
14501 lt_prog_compiler_pic_CXX='-pic'
14502 lt_prog_compiler_static_CXX='-Bstatic'
14503 ;;
14504 lcc*)
14505 # Lucid
14506 lt_prog_compiler_pic_CXX='-pic'
14507 ;;
14508 *)
14509 ;;
14510 esac
14511 ;;
14512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14513 case $cc_basename in
14514 CC*)
14515 lt_prog_compiler_wl_CXX='-Wl,'
14516 lt_prog_compiler_pic_CXX='-KPIC'
14517 lt_prog_compiler_static_CXX='-Bstatic'
14518 ;;
14519 esac
14520 ;;
14521 tandem*)
14522 case $cc_basename in
14523 NCC*)
14524 # NonStop-UX NCC 3.20
14525 lt_prog_compiler_pic_CXX='-KPIC'
14526 ;;
14527 *)
14528 ;;
14529 esac
14530 ;;
14531 vxworks*)
14532 ;;
14533 *)
14534 lt_prog_compiler_can_build_shared_CXX=no
14535 ;;
14536 esac
14537 fi
14538
14539case $host_os in
14540 # For platforms which do not support PIC, -DPIC is meaningless:
14541 *djgpp*)
14542 lt_prog_compiler_pic_CXX=
14543 ;;
14544 *)
14545 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14546 ;;
14547esac
9c60689e 14548
ee134472
JF
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14550$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14551if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553else
14554 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14555fi
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14557$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14558lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14559
14560#
14561# Check to make sure the PIC flag actually works.
14562#
14563if test -n "$lt_prog_compiler_pic_CXX"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14565$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14566if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14567 $as_echo_n "(cached) " >&6
14568else
14569 lt_cv_prog_compiler_pic_works_CXX=no
14570 ac_outfile=conftest.$ac_objext
14571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 # The option is referenced via a variable to avoid confusing sed.
14578 lt_compile=`echo "$ac_compile" | $SED \
14579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581 -e 's:$: $lt_compiler_flag:'`
ee134472 14582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14583 (eval "$lt_compile" 2>conftest.err)
14584 ac_status=$?
14585 cat conftest.err >&5
ee134472 14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14587 if (exit $ac_status) && test -s "$ac_outfile"; then
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings other than the usual output.
ee134472 14590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_pic_works_CXX=yes
14594 fi
14595 fi
53ba6704 14596 $RM -r conftest*
9c60689e
DWT
14597
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14600$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14601
14602if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14603 case $lt_prog_compiler_pic_CXX in
14604 "" | " "*) ;;
14605 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14606 esac
14607else
14608 lt_prog_compiler_pic_CXX=
14609 lt_prog_compiler_can_build_shared_CXX=no
14610fi
14611
14612fi
14613
14614
14615
ee134472
JF
14616
14617
47aaa820
DWT
14618#
14619# Check to make sure the static flag actually works.
14620#
14621wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14623$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14624if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14625 $as_echo_n "(cached) " >&6
14626else
14627 lt_cv_prog_compiler_static_works_CXX=no
14628 save_LDFLAGS="$LDFLAGS"
14629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14632 # The linker can only warn and ignore the option if not recognized
14633 # So say no if there are warnings
14634 if test -s conftest.err; then
14635 # Append any errors to the config.log.
14636 cat conftest.err 1>&5
ee134472 14637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14639 if diff conftest.exp conftest.er2 >/dev/null; then
14640 lt_cv_prog_compiler_static_works_CXX=yes
14641 fi
14642 else
14643 lt_cv_prog_compiler_static_works_CXX=yes
14644 fi
14645 fi
14646 $RM -r conftest*
14647 LDFLAGS="$save_LDFLAGS"
14648
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14651$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14652
14653if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14654 :
14655else
14656 lt_prog_compiler_static_CXX=
14657fi
14658
14659
14660
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14663$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14664if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14665 $as_echo_n "(cached) " >&6
14666else
14667 lt_cv_prog_compiler_c_o_CXX=no
14668 $RM -r conftest 2>/dev/null
14669 mkdir conftest
14670 cd conftest
14671 mkdir out
14672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14673
14674 lt_compiler_flag="-o out/conftest2.$ac_objext"
14675 # Insert the option either (1) after the last *FLAGS variable, or
14676 # (2) before a word containing "conftest.", or (3) at the end.
14677 # Note that $ac_compile itself does not contain backslashes and begins
14678 # with a dollar sign (not a hyphen), so the echo should work correctly.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
ee134472 14683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14684 (eval "$lt_compile" 2>out/conftest.err)
14685 ac_status=$?
14686 cat out/conftest.err >&5
ee134472 14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14689 then
14690 # The compiler can only warn and ignore the option if not recognized
14691 # So say no if there are warnings
ee134472 14692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_c_o_CXX=yes
14696 fi
14697 fi
14698 chmod u+w . 2>&5
53ba6704 14699 $RM -r conftest*
47aaa820
DWT
14700 # SGI C++ compiler will create directory out/ii_files/ for
14701 # template instantiation
14702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14703 $RM out/* && rmdir out
14704 cd ..
14705 $RM -r conftest
53ba6704 14706 $RM -r conftest*
47aaa820
DWT
14707
14708fi
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14710$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14711
14712
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14716if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14717 $as_echo_n "(cached) " >&6
14718else
14719 lt_cv_prog_compiler_c_o_CXX=no
14720 $RM -r conftest 2>/dev/null
14721 mkdir conftest
14722 cd conftest
14723 mkdir out
14724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725
14726 lt_compiler_flag="-o out/conftest2.$ac_objext"
14727 # Insert the option either (1) after the last *FLAGS variable, or
14728 # (2) before a word containing "conftest.", or (3) at the end.
14729 # Note that $ac_compile itself does not contain backslashes and begins
14730 # with a dollar sign (not a hyphen), so the echo should work correctly.
14731 lt_compile=`echo "$ac_compile" | $SED \
14732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734 -e 's:$: $lt_compiler_flag:'`
ee134472 14735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14736 (eval "$lt_compile" 2>out/conftest.err)
14737 ac_status=$?
14738 cat out/conftest.err >&5
ee134472 14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14741 then
14742 # The compiler can only warn and ignore the option if not recognized
14743 # So say no if there are warnings
ee134472 14744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14747 lt_cv_prog_compiler_c_o_CXX=yes
14748 fi
14749 fi
14750 chmod u+w . 2>&5
53ba6704 14751 $RM -r conftest*
47aaa820
DWT
14752 # SGI C++ compiler will create directory out/ii_files/ for
14753 # template instantiation
14754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14755 $RM out/* && rmdir out
14756 cd ..
14757 $RM -r conftest
53ba6704 14758 $RM -r conftest*
47aaa820
DWT
14759
14760fi
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14762$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14763
14764
14765
14766
14767hard_links="nottested"
14768if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14769 # do not overwrite the value of need_locks provided by the user
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14771$as_echo_n "checking if we can lock with hard links... " >&6; }
14772 hard_links=yes
53ba6704 14773 $RM -r conftest*
47aaa820
DWT
14774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14775 touch conftest.a
14776 ln conftest.a conftest.b 2>&5 || hard_links=no
14777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14779$as_echo "$hard_links" >&6; }
14780 if test "$hard_links" = no; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14782$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14783 need_locks=warn
14784 fi
14785else
14786 need_locks=no
14787fi
14788
14789
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14792$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14793
14794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14795 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14796 case $host_os in
14797 aix[4-9]*)
14798 # If we're using GNU nm, then we don't want the "-C" option.
14799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14800 # Also, AIX nm treats weak defined symbols like other global defined
14801 # symbols, whereas GNU nm marks them as "W".
47aaa820 14802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14803 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
14804 else
14805 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14806 fi
14807 ;;
14808 pw32*)
14809 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14810 ;;
47aaa820 14811 cygwin* | mingw* | cegcc*)
ee134472 14812 case $cc_basename in
53ba6704
JF
14813 cl*)
14814 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14815 ;;
ee134472
JF
14816 *)
14817 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'
14818 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14819 ;;
14820 esac
14821 ;;
47aaa820
DWT
14822 *)
14823 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14824 ;;
47aaa820 14825 esac
47aaa820
DWT
14826
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14828$as_echo "$ld_shlibs_CXX" >&6; }
14829test "$ld_shlibs_CXX" = no && can_build_shared=no
14830
14831with_gnu_ld_CXX=$with_gnu_ld
14832
14833
14834
14835
14836
14837
14838#
14839# Do we need to explicitly link libc?
14840#
14841case "x$archive_cmds_need_lc_CXX" in
14842x|xyes)
14843 # Assume -lc should be added
14844 archive_cmds_need_lc_CXX=yes
14845
14846 if test "$enable_shared" = yes && test "$GCC" = yes; then
14847 case $archive_cmds_CXX in
14848 *'~'*)
14849 # FIXME: we may have to deal with multi-command sequences.
14850 ;;
14851 '$CC '*)
14852 # Test whether the compiler implicitly links with -lc since on some
14853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14854 # to ld, don't add -lc before -lgcc.
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14856$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14857if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859else
53ba6704 14860 $RM -r conftest*
ee134472 14861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 14862
ee134472 14863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
14864 (eval $ac_compile) 2>&5
14865 ac_status=$?
14866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
14868 soname=conftest
14869 lib=conftest
14870 libobjs=conftest.$ac_objext
14871 deplibs=
14872 wl=$lt_prog_compiler_wl_CXX
14873 pic_flag=$lt_prog_compiler_pic_CXX
14874 compiler_flags=-v
14875 linker_flags=-v
14876 verstring=
14877 output_objdir=.
14878 libname=conftest
14879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14880 allow_undefined_flag_CXX=
14881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
14882 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14883 ac_status=$?
14884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14885 test $ac_status = 0; }
ee134472
JF
14886 then
14887 lt_cv_archive_cmds_need_lc_CXX=no
14888 else
14889 lt_cv_archive_cmds_need_lc_CXX=yes
14890 fi
14891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14892 else
14893 cat conftest.err 1>&5
14894 fi
53ba6704 14895 $RM -r conftest*
ee134472
JF
14896
14897fi
14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14899$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14900 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
14901 ;;
14902 esac
14903 fi
14904 ;;
14905esac
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
47aaa820
DWT
14965
14966
14967
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14969$as_echo_n "checking dynamic linker characteristics... " >&6; }
14970
14971library_names_spec=
14972libname_spec='lib$name'
14973soname_spec=
14974shrext_cmds=".so"
14975postinstall_cmds=
14976postuninstall_cmds=
14977finish_cmds=
14978finish_eval=
14979shlibpath_var=
14980shlibpath_overrides_runpath=unknown
14981version_type=none
14982dynamic_linker="$host_os ld.so"
14983sys_lib_dlsearch_path_spec="/lib /usr/lib"
14984need_lib_prefix=unknown
14985hardcode_into_libs=no
14986
14987# when you set need_version to no, make sure it does not cause -set_version
14988# flags to be left without arguments
14989need_version=unknown
14990
14991case $host_os in
14992aix3*)
53ba6704 14993 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14995 shlibpath_var=LIBPATH
14996
14997 # AIX 3 has no versioning support, so we append a major version to the name.
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 ;;
15000
15001aix[4-9]*)
53ba6704 15002 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15003 need_lib_prefix=no
15004 need_version=no
15005 hardcode_into_libs=yes
15006 if test "$host_cpu" = ia64; then
15007 # AIX 5 supports IA64
15008 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 else
15011 # With GCC up to 2.95.x, collect2 would create an import file
15012 # for dependence libraries. The import file would start with
15013 # the line `#! .'. This would cause the generated library to
15014 # depend on `.', always an invalid library. This was fixed in
15015 # development snapshots of GCC prior to 3.0.
15016 case $host_os in
15017 aix4 | aix4.[01] | aix4.[01].*)
15018 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15019 echo ' yes '
15020 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15021 :
15022 else
15023 can_build_shared=no
15024 fi
15025 ;;
15026 esac
15027 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15028 # soname into executable. Probably we can add versioning support to
15029 # collect2, so additional links can be useful in future.
15030 if test "$aix_use_runtimelinking" = yes; then
15031 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15032 # instead of lib<name>.a to let people know that these are not
15033 # typical AIX shared libraries.
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 else
15036 # We preserve .a as extension for shared libraries through AIX4.2
15037 # and later when we are not doing run time linking.
15038 library_names_spec='${libname}${release}.a $libname.a'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 fi
15041 shlibpath_var=LIBPATH
15042 fi
15043 ;;
15044
15045amigaos*)
15046 case $host_cpu in
15047 powerpc)
15048 # Since July 2007 AmigaOS4 officially supports .so libraries.
15049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15051 ;;
15052 m68k)
15053 library_names_spec='$libname.ixlibrary $libname.a'
15054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15055 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
47aaa820
DWT
15056 ;;
15057 esac
15058 ;;
15059
15060beos*)
15061 library_names_spec='${libname}${shared_ext}'
15062 dynamic_linker="$host_os ld.so"
15063 shlibpath_var=LIBRARY_PATH
15064 ;;
15065
15066bsdi[45]*)
53ba6704 15067 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15068 need_version=no
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15075 # the default ld.so.conf also contains /usr/contrib/lib and
15076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15077 # libtool to hard-code these into programs
15078 ;;
9c60689e 15079
47aaa820
DWT
15080cygwin* | mingw* | pw32* | cegcc*)
15081 version_type=windows
15082 shrext_cmds=".dll"
15083 need_version=no
15084 need_lib_prefix=no
9c60689e 15085
ee134472
JF
15086 case $GCC,$cc_basename in
15087 yes,*)
15088 # gcc
47aaa820
DWT
15089 library_names_spec='$libname.dll.a'
15090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15091 postinstall_cmds='base_file=`basename \${file}`~
15092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15093 dldir=$destdir/`dirname \$dlpath`~
15094 test -d \$dldir || mkdir -p \$dldir~
15095 $install_prog $dir/$dlname \$dldir/$dlname~
15096 chmod a+x \$dldir/$dlname~
15097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15099 fi'
15100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15101 dlpath=$dir/\$dldll~
15102 $RM \$dlpath'
15103 shlibpath_overrides_runpath=yes
9c60689e 15104
47aaa820
DWT
15105 case $host_os in
15106 cygwin*)
15107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15109
47aaa820
DWT
15110 ;;
15111 mingw* | cegcc*)
15112 # MinGW DLLs use traditional 'lib' prefix
15113 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15114 ;;
15115 pw32*)
15116 # pw32 DLLs use 'pw' prefix rather than 'lib'
15117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118 ;;
15119 esac
ee134472
JF
15120 dynamic_linker='Win32 ld.exe'
15121 ;;
15122
15123 *,cl*)
15124 # Native MSVC
15125 libname_spec='$name'
15126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15127 library_names_spec='${libname}.dll.lib'
15128
15129 case $build_os in
15130 mingw*)
15131 sys_lib_search_path_spec=
15132 lt_save_ifs=$IFS
15133 IFS=';'
15134 for lt_path in $LIB
15135 do
15136 IFS=$lt_save_ifs
15137 # Let DOS variable expansion print the short 8.3 style file name.
15138 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15139 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15140 done
15141 IFS=$lt_save_ifs
15142 # Convert to MSYS style.
15143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15144 ;;
15145 cygwin*)
15146 # Convert to unix form, then to dos form, then back to unix form
15147 # but this time dos style (no spaces!) so that the unix form looks
15148 # like /cygdrive/c/PROGRA~1:/cygdr...
15149 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15150 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15151 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15152 ;;
15153 *)
15154 sys_lib_search_path_spec="$LIB"
15155 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15156 # It is most probably a Windows format PATH.
15157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15158 else
15159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15160 fi
15161 # FIXME: find the short name or the path components, as spaces are
15162 # common. (e.g. "Program Files" -> "PROGRA~1")
15163 ;;
15164 esac
15165
15166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15167 postinstall_cmds='base_file=`basename \${file}`~
15168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15169 dldir=$destdir/`dirname \$dlpath`~
15170 test -d \$dldir || mkdir -p \$dldir~
15171 $install_prog $dir/$dlname \$dldir/$dlname'
15172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15173 dlpath=$dir/\$dldll~
15174 $RM \$dlpath'
15175 shlibpath_overrides_runpath=yes
15176 dynamic_linker='Win32 link.exe'
47aaa820 15177 ;;
9c60689e 15178
47aaa820 15179 *)
ee134472 15180 # Assume MSVC wrapper
47aaa820 15181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15182 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15183 ;;
15184 esac
47aaa820
DWT
15185 # FIXME: first we should search . and the directory the executable is in
15186 shlibpath_var=PATH
15187 ;;
9c60689e 15188
47aaa820
DWT
15189darwin* | rhapsody*)
15190 dynamic_linker="$host_os dyld"
15191 version_type=darwin
15192 need_lib_prefix=no
15193 need_version=no
15194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15195 soname_spec='${libname}${release}${major}$shared_ext'
15196 shlibpath_overrides_runpath=yes
15197 shlibpath_var=DYLD_LIBRARY_PATH
15198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15199
47aaa820
DWT
15200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15201 ;;
9c60689e 15202
47aaa820 15203dgux*)
53ba6704 15204 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15205 need_lib_prefix=no
15206 need_version=no
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 ;;
9c60689e 15211
47aaa820
DWT
15212freebsd* | dragonfly*)
15213 # DragonFly does not have aout. When/if they implement a new
15214 # versioning mechanism, adjust this.
15215 if test -x /usr/bin/objformat; then
15216 objformat=`/usr/bin/objformat`
15217 else
15218 case $host_os in
53ba6704 15219 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15220 *) objformat=elf ;;
15221 esac
15222 fi
15223 version_type=freebsd-$objformat
15224 case $version_type in
15225 freebsd-elf*)
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15227 need_version=no
15228 need_lib_prefix=no
15229 ;;
15230 freebsd-*)
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15232 need_version=yes
15233 ;;
15234 esac
15235 shlibpath_var=LD_LIBRARY_PATH
15236 case $host_os in
53ba6704 15237 freebsd2.*)
47aaa820
DWT
15238 shlibpath_overrides_runpath=yes
15239 ;;
15240 freebsd3.[01]* | freebsdelf3.[01]*)
15241 shlibpath_overrides_runpath=yes
15242 hardcode_into_libs=yes
15243 ;;
15244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15248 ;;
15249 *) # from 4.6 on, and DragonFly
15250 shlibpath_overrides_runpath=yes
15251 hardcode_into_libs=yes
15252 ;;
15253 esac
15254 ;;
9c60689e 15255
47aaa820 15256gnu*)
53ba6704 15257 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15263 shlibpath_overrides_runpath=no
15264 hardcode_into_libs=yes
15265 ;;
15266
15267haiku*)
53ba6704 15268 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15269 need_lib_prefix=no
15270 need_version=no
15271 dynamic_linker="$host_os runtime_loader"
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LIBRARY_PATH
15275 shlibpath_overrides_runpath=yes
15276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15277 hardcode_into_libs=yes
15278 ;;
9c60689e 15279
47aaa820
DWT
15280hpux9* | hpux10* | hpux11*)
15281 # Give a soname corresponding to the major version so that dld.sl refuses to
15282 # link against other versions.
15283 version_type=sunos
15284 need_lib_prefix=no
15285 need_version=no
15286 case $host_cpu in
15287 ia64*)
15288 shrext_cmds='.so'
15289 hardcode_into_libs=yes
15290 dynamic_linker="$host_os dld.so"
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 if test "X$HPUX_IA64_MODE" = X32; then
15296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15297 else
15298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15299 fi
15300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15301 ;;
15302 hppa*64*)
15303 shrext_cmds='.sl'
15304 hardcode_into_libs=yes
15305 dynamic_linker="$host_os dld.sl"
15306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15312 ;;
15313 *)
15314 shrext_cmds='.sl'
15315 dynamic_linker="$host_os dld.sl"
15316 shlibpath_var=SHLIB_PATH
15317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 ;;
15321 esac
ee134472 15322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15323 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15324 # or fails outright, so override atomically:
15325 install_override_mode=555
47aaa820 15326 ;;
9c60689e 15327
47aaa820 15328interix[3-9]*)
53ba6704 15329 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15330 need_lib_prefix=no
15331 need_version=no
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=no
15337 hardcode_into_libs=yes
15338 ;;
9c60689e 15339
47aaa820
DWT
15340irix5* | irix6* | nonstopux*)
15341 case $host_os in
15342 nonstopux*) version_type=nonstopux ;;
15343 *)
15344 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15345 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15346 else
15347 version_type=irix
15348 fi ;;
15349 esac
15350 need_lib_prefix=no
15351 need_version=no
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15354 case $host_os in
15355 irix5* | nonstopux*)
15356 libsuff= shlibsuff=
15357 ;;
15358 *)
15359 case $LD in # libtool.m4 will add one of these switches to LD
15360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15361 libsuff= shlibsuff= libmagic=32-bit;;
15362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15363 libsuff=32 shlibsuff=N32 libmagic=N32;;
15364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15366 *) libsuff= shlibsuff= libmagic=never-match;;
15367 esac
15368 ;;
15369 esac
15370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15371 shlibpath_overrides_runpath=no
15372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15374 hardcode_into_libs=yes
15375 ;;
9c60689e 15376
47aaa820
DWT
15377# No shared lib support for Linux oldld, aout, or coff.
15378linux*oldld* | linux*aout* | linux*coff*)
15379 dynamic_linker=no
15380 ;;
9c60689e 15381
53ba6704 15382# This must be glibc/ELF.
1504c9b8 15383linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15384 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15385 need_lib_prefix=no
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=no
ee134472 15392
47aaa820 15393 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15394 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396else
15397 lt_cv_shlibpath_overrides_runpath=no
15398 save_LDFLAGS=$LDFLAGS
15399 save_libdir=$libdir
15400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15403/* end confdefs.h. */
9c60689e 15404
47aaa820
DWT
15405int
15406main ()
15407{
9c60689e 15408
47aaa820
DWT
15409 ;
15410 return 0;
15411}
15412_ACEOF
15413if ac_fn_cxx_try_link "$LINENO"; then :
15414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15415 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15416fi
47aaa820
DWT
15417fi
15418rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15420 LDFLAGS=$save_LDFLAGS
15421 libdir=$save_libdir
15422
15423fi
15424
15425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15426
47aaa820
DWT
15427 # This implies no fast_install, which is unacceptable.
15428 # Some rework will be needed to allow for fast_install
15429 # before this can be enabled.
15430 hardcode_into_libs=yes
9c60689e 15431
47aaa820
DWT
15432 # Append ld.so.conf contents to the search path
15433 if test -f /etc/ld.so.conf; then
ee134472 15434 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
15435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15436 fi
9c60689e 15437
47aaa820
DWT
15438 # We used to test for /lib/ld.so.1 and disable shared libraries on
15439 # powerpc, because MkLinux only supported shared libraries with the
15440 # GNU dynamic linker. Since this was broken with cross compilers,
15441 # most powerpc-linux boxes support dynamic linking these days and
15442 # people can always --disable-shared, the test was removed, and we
15443 # assume the GNU/Linux dynamic linker is in use.
15444 dynamic_linker='GNU/Linux ld.so'
9c60689e 15445 ;;
47aaa820 15446
47aaa820
DWT
15447netbsd*)
15448 version_type=sunos
15449 need_lib_prefix=no
15450 need_version=no
15451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15454 dynamic_linker='NetBSD (a.out) ld.so'
15455 else
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 dynamic_linker='NetBSD ld.elf_so'
15459 fi
15460 shlibpath_var=LD_LIBRARY_PATH
15461 shlibpath_overrides_runpath=yes
15462 hardcode_into_libs=yes
9c60689e 15463 ;;
9c60689e 15464
47aaa820 15465newsos6)
53ba6704 15466 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=yes
15470 ;;
9c60689e 15471
47aaa820
DWT
15472*nto* | *qnx*)
15473 version_type=qnx
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 dynamic_linker='ldqnx.so'
15482 ;;
9c60689e 15483
47aaa820
DWT
15484openbsd*)
15485 version_type=sunos
15486 sys_lib_dlsearch_path_spec="/usr/lib"
15487 need_lib_prefix=no
15488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15489 case $host_os in
15490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15491 *) need_version=no ;;
15492 esac
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15497 case $host_os in
15498 openbsd2.[89] | openbsd2.[89].*)
15499 shlibpath_overrides_runpath=no
15500 ;;
15501 *)
15502 shlibpath_overrides_runpath=yes
15503 ;;
15504 esac
15505 else
15506 shlibpath_overrides_runpath=yes
15507 fi
15508 ;;
9c60689e 15509
47aaa820
DWT
15510os2*)
15511 libname_spec='$name'
15512 shrext_cmds=".dll"
15513 need_lib_prefix=no
15514 library_names_spec='$libname${shared_ext} $libname.a'
15515 dynamic_linker='OS/2 ld.exe'
15516 shlibpath_var=LIBPATH
15517 ;;
9c60689e 15518
47aaa820
DWT
15519osf3* | osf4* | osf5*)
15520 version_type=osf
15521 need_lib_prefix=no
15522 need_version=no
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 shlibpath_var=LD_LIBRARY_PATH
15526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15528 ;;
9c60689e 15529
47aaa820
DWT
15530rdos*)
15531 dynamic_linker=no
15532 ;;
9c60689e 15533
47aaa820 15534solaris*)
53ba6704 15535 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15536 need_lib_prefix=no
15537 need_version=no
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=yes
15542 hardcode_into_libs=yes
15543 # ldd complains unless libraries are executable
15544 postinstall_cmds='chmod +x $lib'
15545 ;;
9c60689e 15546
47aaa820
DWT
15547sunos4*)
15548 version_type=sunos
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=yes
15553 if test "$with_gnu_ld" = yes; then
15554 need_lib_prefix=no
15555 fi
15556 need_version=yes
15557 ;;
9c60689e 15558
47aaa820 15559sysv4 | sysv4.3*)
53ba6704 15560 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 case $host_vendor in
15565 sni)
15566 shlibpath_overrides_runpath=no
15567 need_lib_prefix=no
15568 runpath_var=LD_RUN_PATH
9c60689e 15569 ;;
47aaa820
DWT
15570 siemens)
15571 need_lib_prefix=no
9c60689e 15572 ;;
47aaa820
DWT
15573 motorola)
15574 need_lib_prefix=no
15575 need_version=no
15576 shlibpath_overrides_runpath=no
15577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15578 ;;
15579 esac
9c60689e 15580 ;;
9c60689e 15581
47aaa820
DWT
15582sysv4*MP*)
15583 if test -d /usr/nec ;then
53ba6704 15584 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15586 soname_spec='$libname${shared_ext}.$major'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 fi
15589 ;;
9c60689e 15590
47aaa820
DWT
15591sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15592 version_type=freebsd-elf
15593 need_lib_prefix=no
15594 need_version=no
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath=yes
15599 hardcode_into_libs=yes
15600 if test "$with_gnu_ld" = yes; then
15601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15602 else
15603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15604 case $host_os in
15605 sco3.2v5*)
15606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15607 ;;
15608 esac
15609 fi
15610 sys_lib_dlsearch_path_spec='/usr/lib'
15611 ;;
9c60689e 15612
47aaa820
DWT
15613tpf*)
15614 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15615 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15616 need_lib_prefix=no
15617 need_version=no
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=no
15621 hardcode_into_libs=yes
15622 ;;
9c60689e 15623
47aaa820 15624uts4*)
53ba6704 15625 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 ;;
9c60689e 15630
47aaa820
DWT
15631*)
15632 dynamic_linker=no
e9c9a47c
DWT
15633 ;;
15634esac
15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15636$as_echo "$dynamic_linker" >&6; }
15637test "$dynamic_linker" = no && can_build_shared=no
15638
15639variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15640if test "$GCC" = yes; then
15641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15642fi
9c60689e 15643
e9c9a47c
DWT
15644if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15645 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15646fi
e9c9a47c
DWT
15647if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15649fi
9c60689e 15650
9c60689e 15651
9c60689e 15652
9c60689e 15653
47aaa820 15654
47aaa820 15655
47aaa820 15656
9c60689e 15657
9c60689e 15658
47aaa820 15659
47aaa820 15660
47aaa820 15661
47aaa820 15662
47aaa820 15663
47aaa820 15664
47aaa820 15665
47aaa820 15666
9c60689e 15667
9c60689e 15668
9c60689e 15669
9c60689e 15670
9c60689e 15671
e9c9a47c
DWT
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
ee134472
JF
15683
15684
e9c9a47c
DWT
15685
15686
15687
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15689$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15690hardcode_action_CXX=
15691if test -n "$hardcode_libdir_flag_spec_CXX" ||
15692 test -n "$runpath_var_CXX" ||
15693 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15694
15695 # We can hardcode non-existent directories.
15696 if test "$hardcode_direct_CXX" != no &&
15697 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15698 # have to relink, otherwise we might link with an installed library
15699 # when we should be linking with a yet-to-be-installed one
15700 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15701 test "$hardcode_minus_L_CXX" != no; then
15702 # Linking always hardcodes the temporary library directory.
15703 hardcode_action_CXX=relink
15704 else
15705 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15706 hardcode_action_CXX=immediate
15707 fi
15708else
15709 # We cannot hardcode anything, or else we can only hardcode existing
15710 # directories.
15711 hardcode_action_CXX=unsupported
15712fi
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15714$as_echo "$hardcode_action_CXX" >&6; }
15715
15716if test "$hardcode_action_CXX" = relink ||
15717 test "$inherit_rpath_CXX" = yes; then
15718 # Fast installation is not supported
15719 enable_fast_install=no
15720elif test "$shlibpath_overrides_runpath" = yes ||
15721 test "$enable_shared" = no; then
15722 # Fast installation is not necessary
15723 enable_fast_install=needless
47aaa820 15724fi
9c60689e 15725
47aaa820 15726
47aaa820 15727
e9c9a47c
DWT
15728
15729
15730
15731
a243b558
JF
15732 fi # test -n "$compiler"
15733
15734 CC=$lt_save_CC
15735 CFLAGS=$lt_save_CFLAGS
15736 LDCXX=$LD
15737 LD=$lt_save_LD
15738 GCC=$lt_save_GCC
15739 with_gnu_ld=$lt_save_with_gnu_ld
15740 lt_cv_path_LDCXX=$lt_cv_path_LD
15741 lt_cv_path_LD=$lt_save_path_LD
15742 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15743 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15744fi # test "$_lt_caught_CXX_error" != yes
15745
15746ac_ext=c
15747ac_cpp='$CPP $CPPFLAGS'
15748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15750ac_compiler_gnu=$ac_cv_c_compiler_gnu
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766 ac_config_commands="$ac_config_commands libtool"
15767
15768
15769
15770
15771# Only expand once:
15772
15773
15774
15775ac_ext=cpp
15776ac_cpp='$CXXCPP $CPPFLAGS'
15777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15780
15781
15782
15783
15784
15785
15786
15787
15788if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15789 if test -n "$ac_tool_prefix"; then
15790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15791set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793$as_echo_n "checking for $ac_word... " >&6; }
15794if ${ac_cv_path_PKG_CONFIG+:} false; then :
15795 $as_echo_n "(cached) " >&6
15796else
15797 case $PKG_CONFIG in
15798 [\\/]* | ?:[\\/]*)
15799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15800 ;;
15801 *)
15802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15803for as_dir in $PATH
15804do
15805 IFS=$as_save_IFS
15806 test -z "$as_dir" && as_dir=.
15807 for ac_exec_ext in '' $ac_executable_extensions; do
15808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15811 break 2
15812 fi
15813done
15814 done
15815IFS=$as_save_IFS
15816
15817 ;;
15818esac
15819fi
15820PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15821if test -n "$PKG_CONFIG"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15823$as_echo "$PKG_CONFIG" >&6; }
15824else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826$as_echo "no" >&6; }
15827fi
15828
15829
15830fi
15831if test -z "$ac_cv_path_PKG_CONFIG"; then
15832 ac_pt_PKG_CONFIG=$PKG_CONFIG
15833 # Extract the first word of "pkg-config", so it can be a program name with args.
15834set dummy pkg-config; ac_word=$2
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15836$as_echo_n "checking for $ac_word... " >&6; }
15837if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15838 $as_echo_n "(cached) " >&6
15839else
15840 case $ac_pt_PKG_CONFIG in
15841 [\\/]* | ?:[\\/]*)
15842 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15843 ;;
15844 *)
15845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15846for as_dir in $PATH
15847do
15848 IFS=$as_save_IFS
15849 test -z "$as_dir" && as_dir=.
15850 for ac_exec_ext in '' $ac_executable_extensions; do
15851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15852 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15854 break 2
15855 fi
15856done
15857 done
15858IFS=$as_save_IFS
15859
15860 ;;
15861esac
15862fi
15863ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15864if test -n "$ac_pt_PKG_CONFIG"; then
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15866$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15867else
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15869$as_echo "no" >&6; }
15870fi
15871
15872 if test "x$ac_pt_PKG_CONFIG" = x; then
15873 PKG_CONFIG=""
15874 else
15875 case $cross_compiling:$ac_tool_warned in
15876yes:)
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15879ac_tool_warned=yes ;;
15880esac
15881 PKG_CONFIG=$ac_pt_PKG_CONFIG
15882 fi
15883else
15884 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15885fi
15886
15887fi
15888if test -n "$PKG_CONFIG"; then
15889 _pkg_min_version=0.22
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15891$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15892 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15894$as_echo "yes" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897$as_echo "no" >&6; }
15898 PKG_CONFIG=""
15899 fi
15900fi
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
15903$as_echo_n "checking for GNU make... " >&6; }
15904if ${_cv_gnu_make_command+:} false; then :
15905 $as_echo_n "(cached) " >&6
15906else
15907 _cv_gnu_make_command='' ;
15908 for a in "$MAKE" make gmake gnumake ; do
15909 if test -z "$a" ; then continue ; fi ;
15910 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
15911 _cv_gnu_make_command=$a ;
15912 break;
15913 fi
15914 done ;
15915
15916fi
15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
15918$as_echo "$_cv_gnu_make_command" >&6; } ;
15919 if test "x$_cv_gnu_make_command" != "x" ; then
15920 ifGNUmake='' ;
15921 else
15922 ifGNUmake='#' ;
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
15924$as_echo "\"Not found\"" >&6; };
15925 fi
15926
15927
15928GMAKE=$_cv_gnu_make_command
15929
15930if test "x$GMAKE" = x; then :
15931 as_fn_error $? "You need GNU make" "$LINENO" 5
15932fi
15933
15934# Extract the first word of "bash", so it can be a program name with args.
15935set dummy bash; ac_word=$2
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937$as_echo_n "checking for $ac_word... " >&6; }
15938if ${ac_cv_path__BASH+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940else
15941 case $_BASH in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947for as_dir in $PATH
15948do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957done
15958 done
15959IFS=$as_save_IFS
15960
15961 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15962 ;;
15963esac
15964fi
15965_BASH=$ac_cv_path__BASH
15966if test -n "$_BASH"; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15968$as_echo "$_BASH" >&6; }
15969else
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971$as_echo "no" >&6; }
15972fi
15973
e9c9a47c 15974
a243b558
JF
15975# Extract the first word of "git", so it can be a program name with args.
15976set dummy git; ac_word=$2
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15978$as_echo_n "checking for $ac_word... " >&6; }
15979if ${ac_cv_path_GIT+:} false; then :
15980 $as_echo_n "(cached) " >&6
15981else
15982 case $GIT in
15983 [\\/]* | ?:[\\/]*)
15984 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15985 ;;
15986 *)
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988for as_dir in $PATH
15989do
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15994 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996 break 2
15997 fi
15998done
15999 done
16000IFS=$as_save_IFS
e9c9a47c 16001
a243b558
JF
16002 ;;
16003esac
16004fi
16005GIT=$ac_cv_path_GIT
16006if test -n "$GIT"; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16008$as_echo "$GIT" >&6; }
16009else
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16011$as_echo "no" >&6; }
16012fi
e9c9a47c
DWT
16013
16014
a243b558
JF
16015# Extract the first word of "time", so it can be a program name with args.
16016set dummy time; ac_word=$2
632b71ea
DWT
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16018$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16019if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16020 $as_echo_n "(cached) " >&6
16021else
a243b558
JF
16022 case $TIME in
16023 [\\/]* | ?:[\\/]*)
16024 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16025 ;;
16026 *)
16027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16028for as_dir in $PATH
16029do
16030 IFS=$as_save_IFS
16031 test -z "$as_dir" && as_dir=.
16032 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16034 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16036 break 2
16037 fi
16038done
16039 done
16040IFS=$as_save_IFS
16041
a243b558
JF
16042 ;;
16043esac
632b71ea 16044fi
a243b558
JF
16045TIME=$ac_cv_path_TIME
16046if test -n "$TIME"; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16048$as_echo "$TIME" >&6; }
632b71ea
DWT
16049else
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051$as_echo "no" >&6; }
16052fi
16053
16054
a243b558
JF
16055
16056
16057
16058
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16061$as_echo_n "checking for bison >= 2.3... " >&6; }
16062 if test -z "$BISON"; then
16063 ac_path_BISON_found=false
16064 # Loop through the user's path and test for each of PROGNAME-LIST
16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066for as_dir in $PATH
16067do
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
16070 for ac_prog in bison; do
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16073 as_fn_executable_p "$ac_path_BISON" || continue
16074version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16075 if ${version:+false} :; then :
16076
16077else
16078 as_awk_strverscmp='
16079 # Use only awk features that work with 7th edition Unix awk (1978).
16080 # My, what an old awk you have, Mr. Solaris!
16081 END {
16082 while (length(v1) && length(v2)) {
16083 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16084 # Normally this is a single character, but if v1 and v2 contain digits,
16085 # compare them as integers and fractions as strverscmp does.
16086 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16087 # Split v1 and v2 into their leading digit string components d1 and d2,
16088 # and advance v1 and v2 past the leading digit strings.
16089 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16090 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16091 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16092 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16093 if (d1 ~ /^0/) {
16094 if (d2 ~ /^0/) {
16095 # Compare two fractions.
16096 while (d1 ~ /^0/ && d2 ~ /^0/) {
16097 d1 = substr(d1, 2); len1--
16098 d2 = substr(d2, 2); len2--
16099 }
16100 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16101 # The two components differ in length, and the common prefix
16102 # contains only leading zeros. Consider the longer to be less.
16103 d1 = -len1
16104 d2 = -len2
16105 } else {
16106 # Otherwise, compare as strings.
16107 d1 = "x" d1
16108 d2 = "x" d2
16109 }
16110 } else {
16111 # A fraction is less than an integer.
16112 exit 1
16113 }
16114 } else {
16115 if (d2 ~ /^0/) {
16116 # An integer is greater than a fraction.
16117 exit 2
16118 } else {
16119 # Compare two integers.
16120 d1 += 0
16121 d2 += 0
16122 }
16123 }
16124 } else {
16125 # The normal case, without worrying about digits.
16126 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16127 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16128 }
16129 if (d1 < d2) exit 1
16130 if (d1 > d2) exit 2
16131 }
16132 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16133 # which mishandles some comparisons of empty strings to integers.
16134 if (length(v2)) exit 1
16135 if (length(v1)) exit 2
16136 }
16137'
16138as_arg_v1=$version
16139as_arg_v2=2.3
16140awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16141case $? in #(
16142 1) :
16143 ;; #(
16144 0) :
16145 ac_cv_path_BISON=$ac_path_BISON ;; #(
16146 2) :
16147 ac_cv_path_BISON=$ac_path_BISON ;; #(
16148 *) :
16149 ;;
16150esac
16151fi
16152
16153 $ac_path_BISON_found && break 3
16154 done
16155 done
e9c9a47c 16156 done
a243b558
JF
16157IFS=$as_save_IFS
16158 if test -z "$ac_cv_path_BISON"; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160$as_echo "no" >&6; }
16161 fi
16162else
16163 ac_cv_path_BISON=$BISON
632b71ea 16164fi
a243b558
JF
16165
16166
16167 if true; then :
16168
16169 BISON=$ac_cv_path_BISON
16170
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16172$as_echo "$BISON" >&6; }
16173
47aaa820 16174else
a243b558
JF
16175 if true; then :
16176
16177 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16178
47aaa820 16179else
a243b558
JF
16180
16181 BISON=:
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185
16186fi
16187fi
16188
16189
16190
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16193$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16194 if test -z "$FLEX"; then
16195 ac_path_FLEX_found=false
16196 # Loop through the user's path and test for each of PROGNAME-LIST
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16198for as_dir in $PATH
16199do
16200 IFS=$as_save_IFS
16201 test -z "$as_dir" && as_dir=.
a243b558 16202 for ac_prog in flex; do
47aaa820 16203 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16204 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16205 as_fn_executable_p "$ac_path_FLEX" || continue
16206version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16207 if ${version:+false} :; then :
9c60689e 16208
47aaa820 16209else
a243b558
JF
16210 as_arg_v1=$version
16211as_arg_v2=2.5.33
16212awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16213case $? in #(
16214 1) :
16215 ;; #(
16216 0) :
16217 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16218 2) :
16219 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16220 *) :
16221 ;;
16222esac
16223fi
16224
16225 $ac_path_FLEX_found && break 3
16226 done
16227 done
16228 done
16229IFS=$as_save_IFS
16230 if test -z "$ac_cv_path_FLEX"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16232$as_echo "no" >&6; }
a243b558
JF
16233 fi
16234else
16235 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16236fi
16237
16238
a243b558 16239 if true; then :
e9c9a47c 16240
a243b558 16241 FLEX=$ac_cv_path_FLEX
e9c9a47c 16242
a243b558
JF
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16244$as_echo "$FLEX" >&6; }
9c60689e 16245
632b71ea 16246else
a243b558 16247 if true; then :
e9c9a47c 16248
a243b558 16249 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16250
e9c9a47c 16251else
a243b558
JF
16252
16253 FLEX=:
16254
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256$as_echo "no" >&6; }
9c60689e 16257
632b71ea 16258fi
a243b558
JF
16259fi
16260
16261
16262
16263
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16265$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16266 if test -z "$GPERF"; then
16267 ac_path_GPERF_found=false
16268 # Loop through the user's path and test for each of PROGNAME-LIST
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270for as_dir in $PATH
16271do
16272 IFS=$as_save_IFS
16273 test -z "$as_dir" && as_dir=.
16274 for ac_prog in gperf; do
16275 for ac_exec_ext in '' $ac_executable_extensions; do
16276 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16277 as_fn_executable_p "$ac_path_GPERF" || continue
16278version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16279 if ${version:+false} :; then :
16280
e9c9a47c 16281else
a243b558
JF
16282 as_arg_v1=$version
16283as_arg_v2=3.0.3
16284awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16285case $? in #(
16286 1) :
16287 ;; #(
16288 0) :
16289 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16290 2) :
16291 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16292 *) :
16293 ;;
16294esac
632b71ea 16295fi
a243b558
JF
16296
16297 $ac_path_GPERF_found && break 3
16298 done
16299 done
16300 done
16301IFS=$as_save_IFS
16302 if test -z "$ac_cv_path_GPERF"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304$as_echo "no" >&6; }
16305 fi
47aaa820 16306else
a243b558
JF
16307 ac_cv_path_GPERF=$GPERF
16308fi
9c60689e
DWT
16309
16310
a243b558 16311 if true; then :
9c60689e 16312
a243b558 16313 GPERF=$ac_cv_path_GPERF
9c60689e 16314
a243b558
JF
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16316$as_echo "$GPERF" >&6; }
9c60689e 16317
47aaa820 16318else
a243b558 16319 if true; then :
9c60689e 16320
a243b558
JF
16321 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16322
16323else
16324
16325 GPERF=:
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328$as_echo "no" >&6; }
9c60689e 16329
47aaa820 16330fi
47aaa820 16331fi
a243b558
JF
16332
16333
16334
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16337$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16338 if test -z "$GNUTAR"; then
16339 ac_path_GNUTAR_found=false
16340 # Loop through the user's path and test for each of PROGNAME-LIST
16341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16342for as_dir in $PATH
16343do
16344 IFS=$as_save_IFS
16345 test -z "$as_dir" && as_dir=.
16346 for ac_prog in tar gtar gnutar; do
16347 for ac_exec_ext in '' $ac_executable_extensions; do
16348 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16349 as_fn_executable_p "$ac_path_GNUTAR" || continue
16350version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16351 if ${version:+false} :; then :
16352
16353else
16354 as_arg_v1=$version
16355as_arg_v2=1.19
16356awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16357case $? in #(
16358 1) :
16359 ;; #(
16360 0) :
16361 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16362 2) :
16363 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16364 *) :
16365 ;;
16366esac
790e5246 16367fi
a243b558
JF
16368
16369 $ac_path_GNUTAR_found && break 3
16370 done
16371 done
16372 done
16373IFS=$as_save_IFS
16374 if test -z "$ac_cv_path_GNUTAR"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376$as_echo "no" >&6; }
632b71ea 16377 fi
632b71ea 16378else
a243b558 16379 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16380fi
66170b30 16381
66170b30 16382
a243b558 16383 if true; then :
66170b30 16384
a243b558 16385 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16386
a243b558
JF
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16388$as_echo "$GNUTAR" >&6; }
66170b30 16389
a243b558
JF
16390else
16391 if true; then :
66170b30 16392
a243b558 16393 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16394
66170b30 16395else
66170b30 16396
a243b558 16397 GNUTAR=:
66170b30 16398
a243b558
JF
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400$as_echo "no" >&6; }
66170b30 16401
a243b558
JF
16402fi
16403fi
66170b30
JF
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414if ${CFLAGS+:} false; then :
16415 case " $CFLAGS " in
16416 *" "*)
16417 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16418 (: CFLAGS already contains ) 2>&5
16419 ac_status=$?
16420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16421 test $ac_status = 0; }
16422 ;;
16423 *)
16424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16425 (: CFLAGS="$CFLAGS ") 2>&5
16426 ac_status=$?
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }
16429 CFLAGS="$CFLAGS "
16430 ;;
16431 esac
16432else
16433 CFLAGS=""
16434fi
16435
e9c9a47c
DWT
16436ac_ext=c
16437ac_cpp='$CPP $CPPFLAGS'
16438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16440ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16441
66170b30
JF
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16443$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16444if ${ac_cv_cflags_warn_all+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446else
16447 ac_cv_cflags_warn_all="no, unknown"
16448ac_save_CFLAGS="$CFLAGS"
16449for 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" #
16450do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452/* end confdefs.h. */
16453
16454int
16455main ()
16456{
16457
16458 ;
16459 return 0;
16460}
16461_ACEOF
16462if ac_fn_c_try_compile "$LINENO"; then :
16463 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16464fi
16465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466done
16467CFLAGS="$ac_save_CFLAGS"
16468
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16471$as_echo "$ac_cv_cflags_warn_all" >&6; }
16472
16473case ".$ac_cv_cflags_warn_all" in
16474 .ok|.ok,*) ;;
16475 .|.no|.no,*) ;;
16476 *) if ${CFLAGS+:} false; then :
16477 case " $CFLAGS " in
16478 *" $ac_cv_cflags_warn_all "*)
16479 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16480 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16481 ac_status=$?
16482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16483 test $ac_status = 0; }
16484 ;;
16485 *)
16486 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16487 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16488 ac_status=$?
16489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16490 test $ac_status = 0; }
16491 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16492 ;;
16493 esac
16494else
16495 CFLAGS="$ac_cv_cflags_warn_all"
16496fi
16497 ;;
16498esac
16499
b816329d
JF
16500ac_ext=cpp
16501ac_cpp='$CXXCPP $CPPFLAGS'
16502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16505
9c60689e 16506
66170b30
JF
16507ac_ext=cpp
16508ac_cpp='$CXXCPP $CPPFLAGS'
16509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16512
66170b30
JF
16513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16514$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16515if ${ac_cv_cxxflags_warn_all+:} false; then :
16516 $as_echo_n "(cached) " >&6
16517else
16518 ac_cv_cxxflags_warn_all="no, unknown"
16519ac_save_CXXFLAGS="$CXXFLAGS"
16520for 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" #
16521do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523/* end confdefs.h. */
1504c9b8 16524
66170b30
JF
16525int
16526main ()
16527{
1504c9b8 16528
66170b30
JF
16529 ;
16530 return 0;
16531}
16532_ACEOF
16533if ac_fn_cxx_try_compile "$LINENO"; then :
16534 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16535fi
16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537done
16538CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16539
66170b30
JF
16540fi
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16542$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16543
16544case ".$ac_cv_cxxflags_warn_all" in
16545 .ok|.ok,*) ;;
16546 .|.no|.no,*) ;;
16547 *) if ${CXXFLAGS+:} false; then :
16548 case " $CXXFLAGS " in
16549 *" $ac_cv_cxxflags_warn_all "*)
16550 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16551 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16552 ac_status=$?
16553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554 test $ac_status = 0; }
16555 ;;
16556 *)
16557 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16558 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16559 ac_status=$?
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }
16562 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16563 ;;
16564 esac
16565else
16566 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16567fi
16568 ;;
16569esac
16570
16571ac_ext=cpp
16572ac_cpp='$CXXCPP $CPPFLAGS'
16573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16576
16577
16578
16579
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5
16581$as_echo_n "checking for -Wno-overloaded-virtual... " >&6; }
16582
16583 cy_save=$CXXFLAGS
16584
16585 for element in -Wno-overloaded-virtual; do
1504c9b8
DWT
16586 haveit=
16587 for x in $CXXFLAGS; do
16588
16589 acl_save_prefix="$prefix"
16590 prefix="$acl_final_prefix"
16591 acl_save_exec_prefix="$exec_prefix"
16592 exec_prefix="$acl_final_exec_prefix"
16593 eval x=\"$x\"
16594 exec_prefix="$acl_save_exec_prefix"
16595 prefix="$acl_save_prefix"
16596
16597 if test "X$x" = "X$element"; then
16598 haveit=yes
16599 break
16600 fi
16601 done
16602 if test -z "$haveit"; then
16603 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16604 fi
16605 done
16606
66170b30
JF
16607
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
16609/* end confdefs.h. */
16610
66170b30
JF
16611_ACEOF
16612if ac_fn_cxx_try_compile "$LINENO"; then :
16613 cy_good=1
16614else
16615 cy_good=0
16616fi
16617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618
16619 CXXFLAGS=$cy_save
16620 if test "x$cy_good" = x1; then :
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622$as_echo "yes" >&6; }
16623
16624
16625 for element in -Wno-overloaded-virtual; do
16626 haveit=
16627 for x in $CFLAGS; do
16628
16629 acl_save_prefix="$prefix"
16630 prefix="$acl_final_prefix"
16631 acl_save_exec_prefix="$exec_prefix"
16632 exec_prefix="$acl_final_exec_prefix"
16633 eval x=\"$x\"
16634 exec_prefix="$acl_save_exec_prefix"
16635 prefix="$acl_save_prefix"
16636
16637 if test "X$x" = "X$element"; then
16638 haveit=yes
16639 break
16640 fi
16641 done
16642 if test -z "$haveit"; then
16643 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16644 fi
16645 done
16646
16647
16648 for element in -Wno-overloaded-virtual; do
16649 haveit=
16650 for x in $CXXFLAGS; do
16651
16652 acl_save_prefix="$prefix"
16653 prefix="$acl_final_prefix"
16654 acl_save_exec_prefix="$exec_prefix"
16655 exec_prefix="$acl_final_exec_prefix"
16656 eval x=\"$x\"
16657 exec_prefix="$acl_save_exec_prefix"
16658 prefix="$acl_save_prefix"
16659
16660 if test "X$x" = "X$element"; then
16661 haveit=yes
16662 break
16663 fi
16664 done
16665 if test -z "$haveit"; then
16666 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16667 fi
16668 done
16669
16670
16671 for element in -Wno-overloaded-virtual; do
16672 haveit=
16673 for x in $OBJCCXXFLAGS; do
16674
16675 acl_save_prefix="$prefix"
16676 prefix="$acl_final_prefix"
16677 acl_save_exec_prefix="$exec_prefix"
16678 exec_prefix="$acl_final_exec_prefix"
16679 eval x=\"$x\"
16680 exec_prefix="$acl_save_exec_prefix"
16681 prefix="$acl_save_prefix"
16682
16683 if test "X$x" = "X$element"; then
16684 haveit=yes
16685 break
16686 fi
16687 done
16688 if test -z "$haveit"; then
16689 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16690 fi
16691 done
16692
16693
16694
16695else
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697$as_echo "no" >&6; }
16698fi
16699
16700
16701
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5
16703$as_echo_n "checking for -Wno-parentheses... " >&6; }
16704
16705 cy_save=$CXXFLAGS
16706
16707 for element in -Wno-parentheses; do
16708 haveit=
16709 for x in $CXXFLAGS; do
16710
16711 acl_save_prefix="$prefix"
16712 prefix="$acl_final_prefix"
16713 acl_save_exec_prefix="$exec_prefix"
16714 exec_prefix="$acl_final_exec_prefix"
16715 eval x=\"$x\"
16716 exec_prefix="$acl_save_exec_prefix"
16717 prefix="$acl_save_prefix"
16718
16719 if test "X$x" = "X$element"; then
16720 haveit=yes
16721 break
16722 fi
16723 done
16724 if test -z "$haveit"; then
16725 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16726 fi
16727 done
16728
16729
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h. */
1504c9b8 16732
1504c9b8 16733_ACEOF
66170b30
JF
16734if ac_fn_cxx_try_compile "$LINENO"; then :
16735 cy_good=1
16736else
16737 cy_good=0
16738fi
16739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740
16741 CXXFLAGS=$cy_save
16742 if test "x$cy_good" = x1; then :
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744$as_echo "yes" >&6; }
1504c9b8
DWT
16745
16746
66170b30 16747 for element in -Wno-parentheses; do
1504c9b8 16748 haveit=
66170b30 16749 for x in $CFLAGS; do
1504c9b8
DWT
16750
16751 acl_save_prefix="$prefix"
16752 prefix="$acl_final_prefix"
16753 acl_save_exec_prefix="$exec_prefix"
16754 exec_prefix="$acl_final_exec_prefix"
16755 eval x=\"$x\"
16756 exec_prefix="$acl_save_exec_prefix"
16757 prefix="$acl_save_prefix"
16758
16759 if test "X$x" = "X$element"; then
16760 haveit=yes
16761 break
16762 fi
16763 done
16764 if test -z "$haveit"; then
66170b30 16765 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
16766 fi
16767 done
16768
16769
66170b30
JF
16770 for element in -Wno-parentheses; do
16771 haveit=
16772 for x in $CXXFLAGS; do
16773
16774 acl_save_prefix="$prefix"
16775 prefix="$acl_final_prefix"
16776 acl_save_exec_prefix="$exec_prefix"
16777 exec_prefix="$acl_final_exec_prefix"
16778 eval x=\"$x\"
16779 exec_prefix="$acl_save_exec_prefix"
16780 prefix="$acl_save_prefix"
16781
16782 if test "X$x" = "X$element"; then
16783 haveit=yes
16784 break
16785 fi
16786 done
16787 if test -z "$haveit"; then
16788 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16789 fi
16790 done
16791
16792
16793 for element in -Wno-parentheses; do
16794 haveit=
16795 for x in $OBJCCXXFLAGS; do
16796
16797 acl_save_prefix="$prefix"
16798 prefix="$acl_final_prefix"
16799 acl_save_exec_prefix="$exec_prefix"
16800 exec_prefix="$acl_final_exec_prefix"
16801 eval x=\"$x\"
16802 exec_prefix="$acl_save_exec_prefix"
16803 prefix="$acl_save_prefix"
16804
16805 if test "X$x" = "X$element"; then
16806 haveit=yes
16807 break
16808 fi
16809 done
16810 if test -z "$haveit"; then
16811 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16812 fi
16813 done
16814
16815
16816
16817else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819$as_echo "no" >&6; }
16820fi
16821
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5
16825$as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; }
16826
16827 cy_save=$CXXFLAGS
16828
16829 for element in -Wno-unneeded-internal-declaration; do
16830 haveit=
16831 for x in $CXXFLAGS; do
16832
16833 acl_save_prefix="$prefix"
16834 prefix="$acl_final_prefix"
16835 acl_save_exec_prefix="$exec_prefix"
16836 exec_prefix="$acl_final_exec_prefix"
16837 eval x=\"$x\"
16838 exec_prefix="$acl_save_exec_prefix"
16839 prefix="$acl_save_prefix"
16840
16841 if test "X$x" = "X$element"; then
16842 haveit=yes
16843 break
16844 fi
16845 done
16846 if test -z "$haveit"; then
16847 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16848 fi
16849 done
16850
16851
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h. */
16854
16855_ACEOF
16856if ac_fn_cxx_try_compile "$LINENO"; then :
16857 cy_good=1
16858else
16859 cy_good=0
16860fi
16861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862
16863 CXXFLAGS=$cy_save
16864 if test "x$cy_good" = x1; then :
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16866$as_echo "yes" >&6; }
16867
16868
16869 for element in -Wno-unneeded-internal-declaration; do
1504c9b8
DWT
16870 haveit=
16871 for x in $CFLAGS; do
16872
16873 acl_save_prefix="$prefix"
16874 prefix="$acl_final_prefix"
16875 acl_save_exec_prefix="$exec_prefix"
16876 exec_prefix="$acl_final_exec_prefix"
16877 eval x=\"$x\"
16878 exec_prefix="$acl_save_exec_prefix"
16879 prefix="$acl_save_prefix"
16880
16881 if test "X$x" = "X$element"; then
16882 haveit=yes
16883 break
16884 fi
16885 done
16886 if test -z "$haveit"; then
16887 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16888 fi
16889 done
16890
16891
66170b30 16892 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 16893 haveit=
66170b30 16894 for x in $CXXFLAGS; do
1504c9b8
DWT
16895
16896 acl_save_prefix="$prefix"
16897 prefix="$acl_final_prefix"
16898 acl_save_exec_prefix="$exec_prefix"
16899 exec_prefix="$acl_final_exec_prefix"
16900 eval x=\"$x\"
16901 exec_prefix="$acl_save_exec_prefix"
16902 prefix="$acl_save_prefix"
16903
16904 if test "X$x" = "X$element"; then
16905 haveit=yes
16906 break
16907 fi
16908 done
16909 if test -z "$haveit"; then
66170b30 16910 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
16911 fi
16912 done
16913
16914
66170b30 16915 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 16916 haveit=
66170b30 16917 for x in $OBJCCXXFLAGS; do
1504c9b8
DWT
16918
16919 acl_save_prefix="$prefix"
16920 prefix="$acl_final_prefix"
16921 acl_save_exec_prefix="$exec_prefix"
16922 exec_prefix="$acl_final_exec_prefix"
16923 eval x=\"$x\"
16924 exec_prefix="$acl_save_exec_prefix"
16925 prefix="$acl_save_prefix"
16926
16927 if test "X$x" = "X$element"; then
16928 haveit=yes
16929 break
16930 fi
16931 done
16932 if test -z "$haveit"; then
66170b30 16933 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
1504c9b8
DWT
16934 fi
16935 done
16936
16937
1504c9b8 16938
66170b30
JF
16939else
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16941$as_echo "no" >&6; }
1504c9b8 16942fi
1504c9b8 16943
1504c9b8 16944
1504c9b8 16945
66170b30
JF
16946for cy_arch in ppc ppc64 i386 x86_64 armv6; do
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
16948$as_echo_n "checking for -arch $cy_arch... " >&6; }
1504c9b8 16949
66170b30 16950 cy_save=$CXXFLAGS
1504c9b8
DWT
16951
16952 for element in "-arch $cy_arch"; do
16953 haveit=
16954 for x in $CXXFLAGS; do
16955
16956 acl_save_prefix="$prefix"
16957 prefix="$acl_final_prefix"
16958 acl_save_exec_prefix="$exec_prefix"
16959 exec_prefix="$acl_final_exec_prefix"
16960 eval x=\"$x\"
16961 exec_prefix="$acl_save_exec_prefix"
16962 prefix="$acl_save_prefix"
16963
16964 if test "X$x" = "X$element"; then
16965 haveit=yes
16966 break
16967 fi
16968 done
16969 if test -z "$haveit"; then
16970 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16971 fi
16972 done
16973
66170b30
JF
16974
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
16976/* end confdefs.h. */
16977
16978int
16979main ()
16980{
16981
16982 ;
16983 return 0;
a243b558
JF
16984}
16985_ACEOF
16986if ac_fn_cxx_try_link "$LINENO"; then :
16987 cy_good=1
16988else
16989 cy_good=0
16990fi
16991rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
1504c9b8 16993
a243b558
JF
16994 CXXFLAGS=$cy_save
16995 if test "x$cy_good" = x1; then :
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997$as_echo "yes" >&6; }
66170b30 16998
1504c9b8
DWT
16999 for element in "-arch $cy_arch"; do
17000 haveit=
a243b558 17001 for x in $CY_ARCH; do
1504c9b8
DWT
17002
17003 acl_save_prefix="$prefix"
17004 prefix="$acl_final_prefix"
17005 acl_save_exec_prefix="$exec_prefix"
17006 exec_prefix="$acl_final_exec_prefix"
17007 eval x=\"$x\"
17008 exec_prefix="$acl_save_exec_prefix"
17009 prefix="$acl_save_prefix"
17010
17011 if test "X$x" = "X$element"; then
17012 haveit=yes
17013 break
17014 fi
17015 done
17016 if test -z "$haveit"; then
a243b558 17017 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
1504c9b8
DWT
17018 fi
17019 done
17020
17021
17022else
66170b30
JF
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024$as_echo "no" >&6; }
1504c9b8
DWT
17025fi
17026
66170b30 17027done
1504c9b8 17028
a243b558
JF
17029
17030
e9c9a47c
DWT
17031# Check whether --with-frameworks was given.
17032if test "${with_frameworks+set}" = set; then :
17033 withval=$with_frameworks;
66170b30
JF
17034 for cy_framework in $withval; do
17035
9c60689e 17036
1504c9b8 17037 for element in -F$cy_framework; do
e9c9a47c
DWT
17038 haveit=
17039 for x in $CFLAGS; do
9c60689e 17040
e9c9a47c
DWT
17041 acl_save_prefix="$prefix"
17042 prefix="$acl_final_prefix"
17043 acl_save_exec_prefix="$exec_prefix"
17044 exec_prefix="$acl_final_exec_prefix"
17045 eval x=\"$x\"
17046 exec_prefix="$acl_save_exec_prefix"
17047 prefix="$acl_save_prefix"
17048
17049 if test "X$x" = "X$element"; then
17050 haveit=yes
17051 break
17052 fi
17053 done
17054 if test -z "$haveit"; then
17055 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17056 fi
9c60689e 17057 done
9c60689e 17058
94690cff 17059
1504c9b8 17060 for element in -F$cy_framework; do
e9c9a47c
DWT
17061 haveit=
17062 for x in $CXXFLAGS; do
9c60689e 17063
e9c9a47c
DWT
17064 acl_save_prefix="$prefix"
17065 prefix="$acl_final_prefix"
17066 acl_save_exec_prefix="$exec_prefix"
17067 exec_prefix="$acl_final_exec_prefix"
17068 eval x=\"$x\"
17069 exec_prefix="$acl_save_exec_prefix"
17070 prefix="$acl_save_prefix"
9c60689e 17071
e9c9a47c
DWT
17072 if test "X$x" = "X$element"; then
17073 haveit=yes
17074 break
17075 fi
17076 done
17077 if test -z "$haveit"; then
17078 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17079 fi
17080 done
9c60689e 17081
e9c9a47c 17082
1504c9b8 17083 for element in -F$cy_framework; do
e9c9a47c
DWT
17084 haveit=
17085 for x in $OBJCCXXFLAGS; do
17086
17087 acl_save_prefix="$prefix"
17088 prefix="$acl_final_prefix"
17089 acl_save_exec_prefix="$exec_prefix"
17090 exec_prefix="$acl_final_exec_prefix"
17091 eval x=\"$x\"
17092 exec_prefix="$acl_save_exec_prefix"
17093 prefix="$acl_save_prefix"
17094
17095 if test "X$x" = "X$element"; then
17096 haveit=yes
17097 break
17098 fi
17099 done
17100 if test -z "$haveit"; then
17101 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17102 fi
9c60689e 17103 done
632b71ea 17104
9c60689e 17105
632b71ea 17106 done
9c60689e 17107
632b71ea 17108fi
9c60689e 17109
9c60689e 17110
632b71ea
DWT
17111
17112
5053a6d1
DWT
17113# Check whether --enable-javascript was given.
17114if test "${enable_javascript+set}" = set; then :
17115 enableval=$enable_javascript;
66170b30 17116 case $enableval in #(
5053a6d1 17117 yes) :
9c60689e
DWT
17118
17119
9c60689e 17120
66170b30 17121
5053a6d1
DWT
17122pkg_failed=no
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17124$as_echo_n "checking for WEBKIT... " >&6; }
17125
12833ad8
JF
17126if test -n "$WEBKIT_CFLAGS"; then
17127 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17128 elif test -n "$PKG_CONFIG"; then
17129 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17131 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17132 ac_status=$?
17133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17134 test $ac_status = 0; }; then
17135 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
9c60689e 17136else
5053a6d1 17137 pkg_failed=yes
9c60689e 17138fi
12833ad8
JF
17139 else
17140 pkg_failed=untried
632b71ea 17141fi
12833ad8
JF
17142if test -n "$WEBKIT_LIBS"; then
17143 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17144 elif test -n "$PKG_CONFIG"; then
17145 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17147 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17148 ac_status=$?
17149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17150 test $ac_status = 0; }; then
17151 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
9c60689e 17152else
5053a6d1 17153 pkg_failed=yes
9c60689e 17154fi
12833ad8
JF
17155 else
17156 pkg_failed=untried
9c60689e
DWT
17157fi
17158
17159
17160
5053a6d1 17161if test $pkg_failed = yes; then
12833ad8
JF
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17163$as_echo "no" >&6; }
9c60689e 17164
5053a6d1
DWT
17165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17166 _pkg_short_errors_supported=yes
9c60689e 17167else
5053a6d1
DWT
17168 _pkg_short_errors_supported=no
17169fi
17170 if test $_pkg_short_errors_supported = yes; then
53ba6704 17171 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
5053a6d1 17172 else
53ba6704 17173 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
5053a6d1
DWT
17174 fi
17175 # Put the nasty error message in config.log where it belongs
17176 echo "$WEBKIT_PKG_ERRORS" >&5
632b71ea 17177
5053a6d1
DWT
17178
17179
17180pkg_failed=no
17181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17182$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 17183
12833ad8
JF
17184if test -n "$WEBKIT_CFLAGS"; then
17185 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17186 elif test -n "$PKG_CONFIG"; then
17187 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17189 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17190 ac_status=$?
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17192 test $ac_status = 0; }; then
17193 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17194else
17195 pkg_failed=yes
9c60689e 17196fi
12833ad8
JF
17197 else
17198 pkg_failed=untried
5053a6d1 17199fi
12833ad8
JF
17200if test -n "$WEBKIT_LIBS"; then
17201 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17202 elif test -n "$PKG_CONFIG"; then
17203 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17205 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17206 ac_status=$?
17207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208 test $ac_status = 0; }; then
17209 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17210else
17211 pkg_failed=yes
17212fi
12833ad8
JF
17213 else
17214 pkg_failed=untried
632b71ea
DWT
17215fi
17216
17217
17218
5053a6d1 17219if test $pkg_failed = yes; then
12833ad8
JF
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221$as_echo "no" >&6; }
5053a6d1
DWT
17222
17223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17224 _pkg_short_errors_supported=yes
17225else
17226 _pkg_short_errors_supported=no
17227fi
17228 if test $_pkg_short_errors_supported = yes; then
53ba6704 17229 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
5053a6d1 17230 else
53ba6704 17231 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
5053a6d1
DWT
17232 fi
17233 # Put the nasty error message in config.log where it belongs
17234 echo "$WEBKIT_PKG_ERRORS" >&5
17235
5053a6d1 17236
632b71ea 17237
5053a6d1
DWT
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17239$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17240if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17241 $as_echo_n "(cached) " >&6
17242else
632b71ea 17243
5053a6d1
DWT
17244 ac_check_framework_save_LIBS=$LIBS
17245 LIBS="-framework JavaScriptCore $LIBS"
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247/* end confdefs.h. */
632b71ea 17248
66170b30 17249 #include <JavaScriptCore/JSBase.h>
632b71ea 17250
5053a6d1
DWT
17251int
17252main ()
17253{
66170b30
JF
17254
17255 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17256
5053a6d1
DWT
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261if ac_fn_cxx_try_link "$LINENO"; then :
632b71ea 17262
5053a6d1 17263 ac_cv_framework_JavaScriptCore=yes
632b71ea 17264
5053a6d1
DWT
17265else
17266 ac_cv_framework_JavaScriptCore=no
17267fi
17268rm -f core conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_framework_save_LIBS
632b71ea 17271
5053a6d1
DWT
17272fi
17273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17274$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17275 if test $ac_cv_framework_JavaScriptCore = yes; then :
632b71ea
DWT
17276
17277
5053a6d1
DWT
17278 for element in "-framework JavaScriptCore $LIBS"; do
17279 haveit=
17280 for x in $LIBS; do
632b71ea
DWT
17281
17282 acl_save_prefix="$prefix"
17283 prefix="$acl_final_prefix"
17284 acl_save_exec_prefix="$exec_prefix"
17285 exec_prefix="$acl_final_exec_prefix"
5053a6d1 17286 eval x=\"$x\"
632b71ea
DWT
17287 exec_prefix="$acl_save_exec_prefix"
17288 prefix="$acl_save_prefix"
17289
5053a6d1
DWT
17290 if test "X$x" = "X$element"; then
17291 haveit=yes
17292 break
17293 fi
17294 done
17295 if test -z "$haveit"; then
17296 LIBS="${LIBS}${LIBS:+ }$element"
17297 fi
17298 done
17299
66170b30
JF
17300
17301 CY_EXECUTE=1
17302
17303
632b71ea 17304
5053a6d1
DWT
17305fi
17306
17307elif test $pkg_failed = untried; then
12833ad8
JF
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309$as_echo "no" >&6; }
5053a6d1
DWT
17310
17311
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17313$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17314if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17315 $as_echo_n "(cached) " >&6
17316else
17317
17318 ac_check_framework_save_LIBS=$LIBS
17319 LIBS="-framework JavaScriptCore $LIBS"
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321/* end confdefs.h. */
17322
66170b30 17323 #include <JavaScriptCore/JSBase.h>
5053a6d1
DWT
17324
17325int
17326main ()
17327{
66170b30
JF
17328
17329 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17330
5053a6d1
DWT
17331 ;
17332 return 0;
17333}
17334_ACEOF
17335if ac_fn_cxx_try_link "$LINENO"; then :
17336
17337 ac_cv_framework_JavaScriptCore=yes
17338
17339else
17340 ac_cv_framework_JavaScriptCore=no
17341fi
17342rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_framework_save_LIBS
17345
17346fi
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17348$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17349 if test $ac_cv_framework_JavaScriptCore = yes; then :
17350
17351
17352 for element in "-framework JavaScriptCore $LIBS"; do
17353 haveit=
17354 for x in $LIBS; do
632b71ea
DWT
17355
17356 acl_save_prefix="$prefix"
17357 prefix="$acl_final_prefix"
17358 acl_save_exec_prefix="$exec_prefix"
17359 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
17360 eval x=\"$x\"
17361 exec_prefix="$acl_save_exec_prefix"
17362 prefix="$acl_save_prefix"
632b71ea 17363
5053a6d1
DWT
17364 if test "X$x" = "X$element"; then
17365 haveit=yes
17366 break
17367 fi
17368 done
17369 if test -z "$haveit"; then
17370 LIBS="${LIBS}${LIBS:+ }$element"
17371 fi
17372 done
17373
66170b30
JF
17374
17375 CY_EXECUTE=1
17376
17377
5053a6d1
DWT
17378
17379fi
17380
17381else
17382 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17383 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385$as_echo "yes" >&6; }
17386
66170b30
JF
17387 CY_EXECUTE=1
17388
5053a6d1
DWT
17389
17390 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17391 haveit=
17392 for x in $CXXFLAGS; do
632b71ea 17393
5053a6d1
DWT
17394 acl_save_prefix="$prefix"
17395 prefix="$acl_final_prefix"
17396 acl_save_exec_prefix="$exec_prefix"
17397 exec_prefix="$acl_final_exec_prefix"
17398 eval x=\"$x\"
632b71ea
DWT
17399 exec_prefix="$acl_save_exec_prefix"
17400 prefix="$acl_save_prefix"
17401
5053a6d1
DWT
17402 if test "X$x" = "X$element"; then
17403 haveit=yes
17404 break
632b71ea 17405 fi
5053a6d1
DWT
17406 done
17407 if test -z "$haveit"; then
17408 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
632b71ea 17409 fi
5053a6d1 17410 done
632b71ea 17411
632b71ea 17412
5053a6d1
DWT
17413 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17414 haveit=
17415 for x in $LIBS; do
632b71ea
DWT
17416
17417 acl_save_prefix="$prefix"
17418 prefix="$acl_final_prefix"
17419 acl_save_exec_prefix="$exec_prefix"
17420 exec_prefix="$acl_final_exec_prefix"
17421 eval x=\"$x\"
17422 exec_prefix="$acl_save_exec_prefix"
17423 prefix="$acl_save_prefix"
17424
5053a6d1
DWT
17425 if test "X$x" = "X$element"; then
17426 haveit=yes
17427 break
17428 fi
17429 done
17430 if test -z "$haveit"; then
17431 LIBS="${LIBS}${LIBS:+ }$element"
17432 fi
17433 done
632b71ea 17434
632b71ea 17435
5053a6d1 17436fi
632b71ea 17437
5053a6d1 17438elif test $pkg_failed = untried; then
12833ad8
JF
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17440$as_echo "no" >&6; }
632b71ea 17441
632b71ea 17442
5053a6d1
DWT
17443pkg_failed=no
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17445$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 17446
12833ad8
JF
17447if test -n "$WEBKIT_CFLAGS"; then
17448 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17449 elif test -n "$PKG_CONFIG"; then
17450 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17452 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17453 ac_status=$?
17454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17455 test $ac_status = 0; }; then
17456 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17457else
17458 pkg_failed=yes
17459fi
12833ad8
JF
17460 else
17461 pkg_failed=untried
5053a6d1 17462fi
12833ad8
JF
17463if test -n "$WEBKIT_LIBS"; then
17464 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17465 elif test -n "$PKG_CONFIG"; then
17466 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17468 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471 test $ac_status = 0; }; then
17472 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17473else
17474 pkg_failed=yes
17475fi
12833ad8
JF
17476 else
17477 pkg_failed=untried
5053a6d1 17478fi
9c60689e 17479
9c60689e
DWT
17480
17481
5053a6d1 17482if test $pkg_failed = yes; then
12833ad8
JF
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484$as_echo "no" >&6; }
5053a6d1
DWT
17485
17486if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17487 _pkg_short_errors_supported=yes
17488else
17489 _pkg_short_errors_supported=no
17490fi
17491 if test $_pkg_short_errors_supported = yes; then
53ba6704 17492 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
5053a6d1 17493 else
53ba6704 17494 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
5053a6d1
DWT
17495 fi
17496 # Put the nasty error message in config.log where it belongs
17497 echo "$WEBKIT_PKG_ERRORS" >&5
17498
9c60689e 17499
9c60689e 17500
5053a6d1
DWT
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17502$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17503if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
17504 $as_echo_n "(cached) " >&6
17505else
9c60689e 17506
5053a6d1
DWT
17507 ac_check_framework_save_LIBS=$LIBS
17508 LIBS="-framework JavaScriptCore $LIBS"
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h. */
9c60689e 17511
66170b30 17512 #include <JavaScriptCore/JSBase.h>
9c60689e 17513
5053a6d1
DWT
17514int
17515main ()
17516{
66170b30
JF
17517
17518 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17519
5053a6d1
DWT
17520 ;
17521 return 0;
17522}
17523_ACEOF
17524if ac_fn_cxx_try_link "$LINENO"; then :
17525
17526 ac_cv_framework_JavaScriptCore=yes
17527
17528else
17529 ac_cv_framework_JavaScriptCore=no
17530fi
17531rm -f core conftest.err conftest.$ac_objext \
17532 conftest$ac_exeext conftest.$ac_ext
17533 LIBS=$ac_check_framework_save_LIBS
17534
17535fi
17536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17537$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17538 if test $ac_cv_framework_JavaScriptCore = yes; then :
17539
17540
17541 for element in "-framework JavaScriptCore $LIBS"; do
632b71ea 17542 haveit=
5053a6d1 17543 for x in $LIBS; do
9c60689e 17544
632b71ea
DWT
17545 acl_save_prefix="$prefix"
17546 prefix="$acl_final_prefix"
17547 acl_save_exec_prefix="$exec_prefix"
17548 exec_prefix="$acl_final_exec_prefix"
17549 eval x=\"$x\"
17550 exec_prefix="$acl_save_exec_prefix"
17551 prefix="$acl_save_prefix"
17552
17553 if test "X$x" = "X$element"; then
17554 haveit=yes
17555 break
17556 fi
17557 done
17558 if test -z "$haveit"; then
5053a6d1 17559 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
17560 fi
17561 done
b128dfee 17562
66170b30
JF
17563
17564 CY_EXECUTE=1
17565
17566
5053a6d1
DWT
17567
17568fi
c823f118 17569
5053a6d1 17570elif test $pkg_failed = untried; then
12833ad8
JF
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572$as_echo "no" >&6; }
5053a6d1
DWT
17573
17574
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17576$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17577if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
17578 $as_echo_n "(cached) " >&6
17579else
17580
5053a6d1
DWT
17581 ac_check_framework_save_LIBS=$LIBS
17582 LIBS="-framework JavaScriptCore $LIBS"
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 17584/* end confdefs.h. */
5053a6d1 17585
66170b30 17586 #include <JavaScriptCore/JSBase.h>
5053a6d1 17587
632b71ea
DWT
17588int
17589main ()
17590{
66170b30
JF
17591
17592 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17593
632b71ea
DWT
17594 ;
17595 return 0;
17596}
17597_ACEOF
5053a6d1
DWT
17598if ac_fn_cxx_try_link "$LINENO"; then :
17599
17600 ac_cv_framework_JavaScriptCore=yes
17601
17602else
17603 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
17604fi
17605rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
5053a6d1 17607 LIBS=$ac_check_framework_save_LIBS
b128dfee 17608
c823f118 17609fi
5053a6d1
DWT
17610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17611$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17612 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
17613
17614
5053a6d1
DWT
17615 for element in "-framework JavaScriptCore $LIBS"; do
17616 haveit=
17617 for x in $LIBS; do
17618
17619 acl_save_prefix="$prefix"
17620 prefix="$acl_final_prefix"
17621 acl_save_exec_prefix="$exec_prefix"
17622 exec_prefix="$acl_final_exec_prefix"
17623 eval x=\"$x\"
17624 exec_prefix="$acl_save_exec_prefix"
17625 prefix="$acl_save_prefix"
17626
17627 if test "X$x" = "X$element"; then
17628 haveit=yes
17629 break
17630 fi
17631 done
17632 if test -z "$haveit"; then
17633 LIBS="${LIBS}${LIBS:+ }$element"
17634 fi
17635 done
c823f118 17636
66170b30
JF
17637
17638 CY_EXECUTE=1
17639
17640
b128dfee 17641
632b71ea 17642fi
c823f118 17643
5053a6d1
DWT
17644else
17645 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17646 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17648$as_echo "yes" >&6; }
c823f118 17649
66170b30
JF
17650 CY_EXECUTE=1
17651
b128dfee 17652
5053a6d1
DWT
17653 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17654 haveit=
17655 for x in $CXXFLAGS; do
b128dfee 17656
5053a6d1
DWT
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17661 eval x=\"$x\"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
c823f118 17664
5053a6d1
DWT
17665 if test "X$x" = "X$element"; then
17666 haveit=yes
17667 break
17668 fi
17669 done
17670 if test -z "$haveit"; then
17671 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17672 fi
17673 done
c823f118 17674
c823f118 17675
5053a6d1
DWT
17676 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17677 haveit=
17678 for x in $LIBS; do
17679
17680 acl_save_prefix="$prefix"
17681 prefix="$acl_final_prefix"
17682 acl_save_exec_prefix="$exec_prefix"
17683 exec_prefix="$acl_final_exec_prefix"
17684 eval x=\"$x\"
17685 exec_prefix="$acl_save_exec_prefix"
17686 prefix="$acl_save_prefix"
17687
17688 if test "X$x" = "X$element"; then
17689 haveit=yes
17690 break
17691 fi
17692 done
17693 if test -z "$haveit"; then
17694 LIBS="${LIBS}${LIBS:+ }$element"
17695 fi
17696 done
c823f118 17697
632b71ea 17698
b128dfee
DWT
17699fi
17700
5053a6d1
DWT
17701else
17702 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17703 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17705$as_echo "yes" >&6; }
b128dfee 17706
66170b30
JF
17707 CY_EXECUTE=1
17708
c823f118 17709
5053a6d1
DWT
17710 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17711 haveit=
17712 for x in $CXXFLAGS; do
c823f118 17713
5053a6d1
DWT
17714 acl_save_prefix="$prefix"
17715 prefix="$acl_final_prefix"
17716 acl_save_exec_prefix="$exec_prefix"
17717 exec_prefix="$acl_final_exec_prefix"
17718 eval x=\"$x\"
17719 exec_prefix="$acl_save_exec_prefix"
17720 prefix="$acl_save_prefix"
c823f118 17721
5053a6d1
DWT
17722 if test "X$x" = "X$element"; then
17723 haveit=yes
17724 break
17725 fi
17726 done
17727 if test -z "$haveit"; then
17728 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17729 fi
17730 done
c823f118 17731
b66977f1 17732
5053a6d1
DWT
17733 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17734 haveit=
17735 for x in $LIBS; do
17736
17737 acl_save_prefix="$prefix"
17738 prefix="$acl_final_prefix"
17739 acl_save_exec_prefix="$exec_prefix"
17740 exec_prefix="$acl_final_exec_prefix"
17741 eval x=\"$x\"
17742 exec_prefix="$acl_save_exec_prefix"
17743 prefix="$acl_save_prefix"
17744
17745 if test "X$x" = "X$element"; then
17746 haveit=yes
17747 break
17748 fi
17749 done
17750 if test -z "$haveit"; then
17751 LIBS="${LIBS}${LIBS:+ }$element"
17752 fi
17753 done
17754
17755
17756fi
5053a6d1
DWT
17757 ;; #(
17758 no) :
17759
66170b30
JF
17760 CY_EXECUTE=0
17761 ;; #(
5053a6d1 17762 JavaScriptCore) :
b66977f1
DWT
17763
17764
17765
17766pkg_failed=no
17767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17768$as_echo_n "checking for WEBKIT... " >&6; }
17769
12833ad8
JF
17770if test -n "$WEBKIT_CFLAGS"; then
17771 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17772 elif test -n "$PKG_CONFIG"; then
17773 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17775 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17776 ac_status=$?
17777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17778 test $ac_status = 0; }; then
17779 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17780else
17781 pkg_failed=yes
17782fi
12833ad8
JF
17783 else
17784 pkg_failed=untried
b66977f1 17785fi
12833ad8
JF
17786if test -n "$WEBKIT_LIBS"; then
17787 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17788 elif test -n "$PKG_CONFIG"; then
17789 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17791 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17792 ac_status=$?
17793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17794 test $ac_status = 0; }; then
17795 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17796else
17797 pkg_failed=yes
17798fi
12833ad8
JF
17799 else
17800 pkg_failed=untried
b66977f1
DWT
17801fi
17802
17803
17804
17805if test $pkg_failed = yes; then
12833ad8
JF
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17807$as_echo "no" >&6; }
b66977f1
DWT
17808
17809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17810 _pkg_short_errors_supported=yes
17811else
17812 _pkg_short_errors_supported=no
17813fi
17814 if test $_pkg_short_errors_supported = yes; then
53ba6704 17815 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
b66977f1 17816 else
53ba6704 17817 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
b66977f1
DWT
17818 fi
17819 # Put the nasty error message in config.log where it belongs
17820 echo "$WEBKIT_PKG_ERRORS" >&5
17821
b66977f1
DWT
17822
17823
17824pkg_failed=no
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17826$as_echo_n "checking for WEBKIT... " >&6; }
17827
12833ad8
JF
17828if test -n "$WEBKIT_CFLAGS"; then
17829 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17830 elif test -n "$PKG_CONFIG"; then
17831 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17833 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17834 ac_status=$?
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; then
17837 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17838else
17839 pkg_failed=yes
17840fi
12833ad8
JF
17841 else
17842 pkg_failed=untried
b66977f1 17843fi
12833ad8
JF
17844if test -n "$WEBKIT_LIBS"; then
17845 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17846 elif test -n "$PKG_CONFIG"; then
17847 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17849 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17850 ac_status=$?
17851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17852 test $ac_status = 0; }; then
17853 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17854else
17855 pkg_failed=yes
17856fi
12833ad8
JF
17857 else
17858 pkg_failed=untried
b66977f1
DWT
17859fi
17860
17861
17862
17863if test $pkg_failed = yes; then
12833ad8
JF
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865$as_echo "no" >&6; }
b66977f1
DWT
17866
17867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17868 _pkg_short_errors_supported=yes
17869else
17870 _pkg_short_errors_supported=no
17871fi
17872 if test $_pkg_short_errors_supported = yes; then
53ba6704 17873 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 17874 else
53ba6704 17875 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
17876 fi
17877 # Put the nasty error message in config.log where it belongs
17878 echo "$WEBKIT_PKG_ERRORS" >&5
17879
b66977f1
DWT
17880
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17883$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17884if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17885 $as_echo_n "(cached) " >&6
17886else
17887
17888 ac_check_framework_save_LIBS=$LIBS
17889 LIBS="-framework JavaScriptCore $LIBS"
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h. */
17892
66170b30 17893 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
17894
17895int
17896main ()
17897{
66170b30
JF
17898
17899 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17900
b66977f1
DWT
17901 ;
17902 return 0;
17903}
17904_ACEOF
17905if ac_fn_cxx_try_link "$LINENO"; then :
17906
17907 ac_cv_framework_JavaScriptCore=yes
17908
17909else
17910 ac_cv_framework_JavaScriptCore=no
17911fi
17912rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17914 LIBS=$ac_check_framework_save_LIBS
17915
17916fi
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17918$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17919 if test $ac_cv_framework_JavaScriptCore = yes; then :
17920
17921
17922 for element in "-framework JavaScriptCore $LIBS"; do
17923 haveit=
17924 for x in $LIBS; do
17925
17926 acl_save_prefix="$prefix"
17927 prefix="$acl_final_prefix"
17928 acl_save_exec_prefix="$exec_prefix"
17929 exec_prefix="$acl_final_exec_prefix"
17930 eval x=\"$x\"
17931 exec_prefix="$acl_save_exec_prefix"
17932 prefix="$acl_save_prefix"
17933
17934 if test "X$x" = "X$element"; then
17935 haveit=yes
17936 break
17937 fi
17938 done
17939 if test -z "$haveit"; then
17940 LIBS="${LIBS}${LIBS:+ }$element"
17941 fi
17942 done
17943
66170b30
JF
17944
17945 CY_EXECUTE=1
17946
17947
b66977f1
DWT
17948
17949fi
17950
17951elif test $pkg_failed = untried; then
12833ad8
JF
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953$as_echo "no" >&6; }
b66977f1
DWT
17954
17955
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17957$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17958if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17959 $as_echo_n "(cached) " >&6
17960else
17961
17962 ac_check_framework_save_LIBS=$LIBS
17963 LIBS="-framework JavaScriptCore $LIBS"
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965/* end confdefs.h. */
17966
66170b30 17967 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
17968
17969int
17970main ()
17971{
66170b30
JF
17972
17973 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17974
b66977f1
DWT
17975 ;
17976 return 0;
17977}
17978_ACEOF
17979if ac_fn_cxx_try_link "$LINENO"; then :
17980
17981 ac_cv_framework_JavaScriptCore=yes
17982
17983else
17984 ac_cv_framework_JavaScriptCore=no
17985fi
17986rm -f core conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17988 LIBS=$ac_check_framework_save_LIBS
17989
17990fi
17991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17992$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17993 if test $ac_cv_framework_JavaScriptCore = yes; then :
17994
17995
17996 for element in "-framework JavaScriptCore $LIBS"; do
17997 haveit=
17998 for x in $LIBS; do
17999
18000 acl_save_prefix="$prefix"
18001 prefix="$acl_final_prefix"
18002 acl_save_exec_prefix="$exec_prefix"
18003 exec_prefix="$acl_final_exec_prefix"
18004 eval x=\"$x\"
18005 exec_prefix="$acl_save_exec_prefix"
18006 prefix="$acl_save_prefix"
18007
18008 if test "X$x" = "X$element"; then
18009 haveit=yes
18010 break
18011 fi
18012 done
18013 if test -z "$haveit"; then
18014 LIBS="${LIBS}${LIBS:+ }$element"
18015 fi
18016 done
18017
66170b30
JF
18018
18019 CY_EXECUTE=1
18020
18021
b66977f1
DWT
18022
18023fi
18024
18025else
18026 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18027 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029$as_echo "yes" >&6; }
18030
66170b30
JF
18031 CY_EXECUTE=1
18032
b66977f1
DWT
18033
18034 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18035 haveit=
18036 for x in $CXXFLAGS; do
18037
18038 acl_save_prefix="$prefix"
18039 prefix="$acl_final_prefix"
18040 acl_save_exec_prefix="$exec_prefix"
18041 exec_prefix="$acl_final_exec_prefix"
18042 eval x=\"$x\"
18043 exec_prefix="$acl_save_exec_prefix"
18044 prefix="$acl_save_prefix"
18045
18046 if test "X$x" = "X$element"; then
18047 haveit=yes
18048 break
18049 fi
18050 done
18051 if test -z "$haveit"; then
18052 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18053 fi
18054 done
18055
18056
18057 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18058 haveit=
18059 for x in $LIBS; do
18060
18061 acl_save_prefix="$prefix"
18062 prefix="$acl_final_prefix"
18063 acl_save_exec_prefix="$exec_prefix"
18064 exec_prefix="$acl_final_exec_prefix"
18065 eval x=\"$x\"
18066 exec_prefix="$acl_save_exec_prefix"
18067 prefix="$acl_save_prefix"
18068
18069 if test "X$x" = "X$element"; then
18070 haveit=yes
18071 break
18072 fi
18073 done
18074 if test -z "$haveit"; then
18075 LIBS="${LIBS}${LIBS:+ }$element"
18076 fi
18077 done
18078
18079
18080fi
18081
18082elif test $pkg_failed = untried; then
12833ad8
JF
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084$as_echo "no" >&6; }
b66977f1
DWT
18085
18086
18087pkg_failed=no
18088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18089$as_echo_n "checking for WEBKIT... " >&6; }
18090
12833ad8
JF
18091if test -n "$WEBKIT_CFLAGS"; then
18092 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18093 elif test -n "$PKG_CONFIG"; then
18094 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18096 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18097 ac_status=$?
18098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18099 test $ac_status = 0; }; then
18100 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18101else
18102 pkg_failed=yes
18103fi
12833ad8
JF
18104 else
18105 pkg_failed=untried
b66977f1 18106fi
12833ad8
JF
18107if test -n "$WEBKIT_LIBS"; then
18108 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18109 elif test -n "$PKG_CONFIG"; then
18110 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18112 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18113 ac_status=$?
18114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115 test $ac_status = 0; }; then
18116 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18117else
18118 pkg_failed=yes
18119fi
12833ad8
JF
18120 else
18121 pkg_failed=untried
b66977f1
DWT
18122fi
18123
18124
18125
18126if test $pkg_failed = yes; then
12833ad8
JF
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18128$as_echo "no" >&6; }
b66977f1
DWT
18129
18130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18131 _pkg_short_errors_supported=yes
18132else
18133 _pkg_short_errors_supported=no
18134fi
18135 if test $_pkg_short_errors_supported = yes; then
53ba6704 18136 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 18137 else
53ba6704 18138 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
18139 fi
18140 # Put the nasty error message in config.log where it belongs
18141 echo "$WEBKIT_PKG_ERRORS" >&5
18142
b66977f1
DWT
18143
18144
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18146$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18147if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18148 $as_echo_n "(cached) " >&6
18149else
18150
18151 ac_check_framework_save_LIBS=$LIBS
18152 LIBS="-framework JavaScriptCore $LIBS"
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h. */
18155
66170b30 18156 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18157
18158int
18159main ()
18160{
66170b30
JF
18161
18162 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18163
b66977f1
DWT
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168if ac_fn_cxx_try_link "$LINENO"; then :
18169
18170 ac_cv_framework_JavaScriptCore=yes
18171
18172else
18173 ac_cv_framework_JavaScriptCore=no
18174fi
18175rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_framework_save_LIBS
18178
18179fi
18180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18181$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18182 if test $ac_cv_framework_JavaScriptCore = yes; then :
18183
18184
18185 for element in "-framework JavaScriptCore $LIBS"; do
18186 haveit=
18187 for x in $LIBS; do
18188
18189 acl_save_prefix="$prefix"
18190 prefix="$acl_final_prefix"
18191 acl_save_exec_prefix="$exec_prefix"
18192 exec_prefix="$acl_final_exec_prefix"
18193 eval x=\"$x\"
18194 exec_prefix="$acl_save_exec_prefix"
18195 prefix="$acl_save_prefix"
18196
18197 if test "X$x" = "X$element"; then
18198 haveit=yes
18199 break
18200 fi
18201 done
18202 if test -z "$haveit"; then
18203 LIBS="${LIBS}${LIBS:+ }$element"
18204 fi
18205 done
18206
66170b30
JF
18207
18208 CY_EXECUTE=1
18209
18210
b66977f1
DWT
18211
18212fi
18213
18214elif test $pkg_failed = untried; then
12833ad8
JF
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216$as_echo "no" >&6; }
b66977f1
DWT
18217
18218
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18220$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18221if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18222 $as_echo_n "(cached) " >&6
18223else
18224
18225 ac_check_framework_save_LIBS=$LIBS
18226 LIBS="-framework JavaScriptCore $LIBS"
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228/* end confdefs.h. */
18229
66170b30 18230 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18231
18232int
18233main ()
18234{
66170b30
JF
18235
18236 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18237
b66977f1
DWT
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242if ac_fn_cxx_try_link "$LINENO"; then :
18243
18244 ac_cv_framework_JavaScriptCore=yes
18245
18246else
18247 ac_cv_framework_JavaScriptCore=no
18248fi
18249rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_framework_save_LIBS
18252
18253fi
18254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18255$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18256 if test $ac_cv_framework_JavaScriptCore = yes; then :
18257
18258
18259 for element in "-framework JavaScriptCore $LIBS"; do
18260 haveit=
18261 for x in $LIBS; do
18262
18263 acl_save_prefix="$prefix"
18264 prefix="$acl_final_prefix"
18265 acl_save_exec_prefix="$exec_prefix"
18266 exec_prefix="$acl_final_exec_prefix"
18267 eval x=\"$x\"
18268 exec_prefix="$acl_save_exec_prefix"
18269 prefix="$acl_save_prefix"
18270
18271 if test "X$x" = "X$element"; then
18272 haveit=yes
18273 break
18274 fi
18275 done
18276 if test -z "$haveit"; then
18277 LIBS="${LIBS}${LIBS:+ }$element"
18278 fi
18279 done
18280
66170b30
JF
18281
18282 CY_EXECUTE=1
18283
18284
b66977f1
DWT
18285
18286fi
18287
18288else
18289 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18290 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18292$as_echo "yes" >&6; }
18293
66170b30
JF
18294 CY_EXECUTE=1
18295
b66977f1
DWT
18296
18297 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18298 haveit=
18299 for x in $CXXFLAGS; do
18300
18301 acl_save_prefix="$prefix"
18302 prefix="$acl_final_prefix"
18303 acl_save_exec_prefix="$exec_prefix"
18304 exec_prefix="$acl_final_exec_prefix"
18305 eval x=\"$x\"
18306 exec_prefix="$acl_save_exec_prefix"
18307 prefix="$acl_save_prefix"
18308
18309 if test "X$x" = "X$element"; then
18310 haveit=yes
18311 break
18312 fi
18313 done
18314 if test -z "$haveit"; then
18315 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18316 fi
18317 done
18318
18319
18320 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18321 haveit=
18322 for x in $LIBS; do
18323
18324 acl_save_prefix="$prefix"
18325 prefix="$acl_final_prefix"
18326 acl_save_exec_prefix="$exec_prefix"
18327 exec_prefix="$acl_final_exec_prefix"
18328 eval x=\"$x\"
18329 exec_prefix="$acl_save_exec_prefix"
18330 prefix="$acl_save_prefix"
18331
18332 if test "X$x" = "X$element"; then
18333 haveit=yes
18334 break
18335 fi
18336 done
18337 if test -z "$haveit"; then
18338 LIBS="${LIBS}${LIBS:+ }$element"
18339 fi
18340 done
18341
18342
18343fi
18344
18345else
18346 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18347 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349$as_echo "yes" >&6; }
18350
66170b30
JF
18351 CY_EXECUTE=1
18352
b66977f1
DWT
18353
18354 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18355 haveit=
18356 for x in $CXXFLAGS; do
18357
18358 acl_save_prefix="$prefix"
18359 prefix="$acl_final_prefix"
18360 acl_save_exec_prefix="$exec_prefix"
18361 exec_prefix="$acl_final_exec_prefix"
18362 eval x=\"$x\"
18363 exec_prefix="$acl_save_exec_prefix"
18364 prefix="$acl_save_prefix"
18365
18366 if test "X$x" = "X$element"; then
18367 haveit=yes
18368 break
18369 fi
18370 done
18371 if test -z "$haveit"; then
18372 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18373 fi
18374 done
18375
18376
18377 for element in `$PKG_CONFIG --libs webkit-1.0`; do
18378 haveit=
18379 for x in $LIBS; do
18380
18381 acl_save_prefix="$prefix"
18382 prefix="$acl_final_prefix"
18383 acl_save_exec_prefix="$exec_prefix"
18384 exec_prefix="$acl_final_exec_prefix"
18385 eval x=\"$x\"
18386 exec_prefix="$acl_save_exec_prefix"
18387 prefix="$acl_save_prefix"
18388
18389 if test "X$x" = "X$element"; then
18390 haveit=yes
18391 break
18392 fi
18393 done
18394 if test -z "$haveit"; then
18395 LIBS="${LIBS}${LIBS:+ }$element"
18396 fi
18397 done
18398
18399
18400fi
66170b30 18401 ;; #(
5053a6d1 18402 *) :
ee134472 18403 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
5053a6d1
DWT
18404esac
18405
18406else
b66977f1
DWT
18407
18408
18409
18410pkg_failed=no
18411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18412$as_echo_n "checking for WEBKIT... " >&6; }
18413
12833ad8
JF
18414if test -n "$WEBKIT_CFLAGS"; then
18415 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18416 elif test -n "$PKG_CONFIG"; then
18417 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18419 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18420 ac_status=$?
18421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18422 test $ac_status = 0; }; then
18423 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
18424else
18425 pkg_failed=yes
18426fi
12833ad8
JF
18427 else
18428 pkg_failed=untried
b66977f1 18429fi
12833ad8
JF
18430if test -n "$WEBKIT_LIBS"; then
18431 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18432 elif test -n "$PKG_CONFIG"; then
18433 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18435 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18436 ac_status=$?
18437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18438 test $ac_status = 0; }; then
18439 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
18440else
18441 pkg_failed=yes
18442fi
12833ad8
JF
18443 else
18444 pkg_failed=untried
b66977f1
DWT
18445fi
18446
18447
18448
18449if test $pkg_failed = yes; then
12833ad8
JF
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451$as_echo "no" >&6; }
b66977f1
DWT
18452
18453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18454 _pkg_short_errors_supported=yes
18455else
18456 _pkg_short_errors_supported=no
18457fi
18458 if test $_pkg_short_errors_supported = yes; then
53ba6704 18459 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
b66977f1 18460 else
53ba6704 18461 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
b66977f1
DWT
18462 fi
18463 # Put the nasty error message in config.log where it belongs
18464 echo "$WEBKIT_PKG_ERRORS" >&5
18465
b66977f1
DWT
18466
18467
18468pkg_failed=no
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18470$as_echo_n "checking for WEBKIT... " >&6; }
18471
12833ad8
JF
18472if test -n "$WEBKIT_CFLAGS"; then
18473 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18474 elif test -n "$PKG_CONFIG"; then
18475 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18477 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18478 ac_status=$?
18479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18480 test $ac_status = 0; }; then
18481 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18482else
18483 pkg_failed=yes
18484fi
12833ad8
JF
18485 else
18486 pkg_failed=untried
b66977f1 18487fi
12833ad8
JF
18488if test -n "$WEBKIT_LIBS"; then
18489 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18490 elif test -n "$PKG_CONFIG"; then
18491 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18493 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18496 test $ac_status = 0; }; then
18497 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18498else
18499 pkg_failed=yes
18500fi
12833ad8
JF
18501 else
18502 pkg_failed=untried
b66977f1
DWT
18503fi
18504
18505
18506
18507if test $pkg_failed = yes; then
12833ad8
JF
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509$as_echo "no" >&6; }
b66977f1
DWT
18510
18511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18512 _pkg_short_errors_supported=yes
18513else
18514 _pkg_short_errors_supported=no
18515fi
18516 if test $_pkg_short_errors_supported = yes; then
53ba6704 18517 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 18518 else
53ba6704 18519 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
18520 fi
18521 # Put the nasty error message in config.log where it belongs
18522 echo "$WEBKIT_PKG_ERRORS" >&5
18523
b66977f1
DWT
18524
18525
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18527$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18528if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18529 $as_echo_n "(cached) " >&6
18530else
18531
18532 ac_check_framework_save_LIBS=$LIBS
18533 LIBS="-framework JavaScriptCore $LIBS"
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535/* end confdefs.h. */
18536
66170b30 18537 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18538
18539int
18540main ()
18541{
66170b30
JF
18542
18543 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18544
b66977f1
DWT
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549if ac_fn_cxx_try_link "$LINENO"; then :
18550
18551 ac_cv_framework_JavaScriptCore=yes
18552
18553else
18554 ac_cv_framework_JavaScriptCore=no
18555fi
18556rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_framework_save_LIBS
18559
18560fi
18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18562$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18563 if test $ac_cv_framework_JavaScriptCore = yes; then :
18564
18565
18566 for element in "-framework JavaScriptCore $LIBS"; do
18567 haveit=
18568 for x in $LIBS; do
18569
18570 acl_save_prefix="$prefix"
18571 prefix="$acl_final_prefix"
18572 acl_save_exec_prefix="$exec_prefix"
18573 exec_prefix="$acl_final_exec_prefix"
18574 eval x=\"$x\"
18575 exec_prefix="$acl_save_exec_prefix"
18576 prefix="$acl_save_prefix"
18577
18578 if test "X$x" = "X$element"; then
18579 haveit=yes
18580 break
18581 fi
18582 done
18583 if test -z "$haveit"; then
18584 LIBS="${LIBS}${LIBS:+ }$element"
18585 fi
18586 done
18587
66170b30
JF
18588
18589 CY_EXECUTE=1
18590
18591
b66977f1
DWT
18592
18593fi
18594
18595elif test $pkg_failed = untried; then
12833ad8
JF
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597$as_echo "no" >&6; }
b66977f1
DWT
18598
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18601$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18602if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18603 $as_echo_n "(cached) " >&6
18604else
18605
18606 ac_check_framework_save_LIBS=$LIBS
18607 LIBS="-framework JavaScriptCore $LIBS"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609/* end confdefs.h. */
18610
66170b30 18611 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18612
18613int
18614main ()
18615{
66170b30
JF
18616
18617 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18618
b66977f1
DWT
18619 ;
18620 return 0;
18621}
18622_ACEOF
18623if ac_fn_cxx_try_link "$LINENO"; then :
18624
18625 ac_cv_framework_JavaScriptCore=yes
18626
18627else
18628 ac_cv_framework_JavaScriptCore=no
18629fi
18630rm -f core conftest.err conftest.$ac_objext \
18631 conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_framework_save_LIBS
18633
18634fi
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18636$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18637 if test $ac_cv_framework_JavaScriptCore = yes; then :
18638
18639
18640 for element in "-framework JavaScriptCore $LIBS"; do
18641 haveit=
18642 for x in $LIBS; do
18643
18644 acl_save_prefix="$prefix"
18645 prefix="$acl_final_prefix"
18646 acl_save_exec_prefix="$exec_prefix"
18647 exec_prefix="$acl_final_exec_prefix"
18648 eval x=\"$x\"
18649 exec_prefix="$acl_save_exec_prefix"
18650 prefix="$acl_save_prefix"
18651
18652 if test "X$x" = "X$element"; then
18653 haveit=yes
18654 break
18655 fi
18656 done
18657 if test -z "$haveit"; then
18658 LIBS="${LIBS}${LIBS:+ }$element"
18659 fi
18660 done
18661
66170b30
JF
18662
18663 CY_EXECUTE=1
18664
18665
b66977f1
DWT
18666
18667fi
18668
18669else
18670 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18671 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673$as_echo "yes" >&6; }
18674
66170b30
JF
18675 CY_EXECUTE=1
18676
b66977f1
DWT
18677
18678 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18679 haveit=
18680 for x in $CXXFLAGS; do
18681
18682 acl_save_prefix="$prefix"
18683 prefix="$acl_final_prefix"
18684 acl_save_exec_prefix="$exec_prefix"
18685 exec_prefix="$acl_final_exec_prefix"
18686 eval x=\"$x\"
18687 exec_prefix="$acl_save_exec_prefix"
18688 prefix="$acl_save_prefix"
18689
18690 if test "X$x" = "X$element"; then
18691 haveit=yes
18692 break
18693 fi
18694 done
18695 if test -z "$haveit"; then
18696 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18697 fi
18698 done
18699
18700
18701 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18702 haveit=
18703 for x in $LIBS; do
18704
18705 acl_save_prefix="$prefix"
18706 prefix="$acl_final_prefix"
18707 acl_save_exec_prefix="$exec_prefix"
18708 exec_prefix="$acl_final_exec_prefix"
18709 eval x=\"$x\"
18710 exec_prefix="$acl_save_exec_prefix"
18711 prefix="$acl_save_prefix"
18712
18713 if test "X$x" = "X$element"; then
18714 haveit=yes
18715 break
18716 fi
18717 done
18718 if test -z "$haveit"; then
18719 LIBS="${LIBS}${LIBS:+ }$element"
18720 fi
18721 done
18722
18723
18724fi
18725
18726elif test $pkg_failed = untried; then
12833ad8
JF
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728$as_echo "no" >&6; }
b66977f1
DWT
18729
18730
18731pkg_failed=no
18732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18733$as_echo_n "checking for WEBKIT... " >&6; }
18734
12833ad8
JF
18735if test -n "$WEBKIT_CFLAGS"; then
18736 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18737 elif test -n "$PKG_CONFIG"; then
18738 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18740 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18741 ac_status=$?
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; then
18744 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18745else
18746 pkg_failed=yes
18747fi
12833ad8
JF
18748 else
18749 pkg_failed=untried
b66977f1 18750fi
12833ad8
JF
18751if test -n "$WEBKIT_LIBS"; then
18752 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18753 elif test -n "$PKG_CONFIG"; then
18754 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
18755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18756 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18757 ac_status=$?
18758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18759 test $ac_status = 0; }; then
18760 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18761else
18762 pkg_failed=yes
18763fi
12833ad8
JF
18764 else
18765 pkg_failed=untried
b66977f1
DWT
18766fi
18767
18768
18769
18770if test $pkg_failed = yes; then
12833ad8
JF
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772$as_echo "no" >&6; }
b66977f1
DWT
18773
18774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18775 _pkg_short_errors_supported=yes
18776else
18777 _pkg_short_errors_supported=no
18778fi
18779 if test $_pkg_short_errors_supported = yes; then
53ba6704 18780 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 18781 else
53ba6704 18782 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
18783 fi
18784 # Put the nasty error message in config.log where it belongs
18785 echo "$WEBKIT_PKG_ERRORS" >&5
18786
b66977f1
DWT
18787
18788
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18790$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18791if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18792 $as_echo_n "(cached) " >&6
18793else
18794
18795 ac_check_framework_save_LIBS=$LIBS
18796 LIBS="-framework JavaScriptCore $LIBS"
18797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798/* end confdefs.h. */
18799
66170b30 18800 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18801
18802int
18803main ()
18804{
66170b30
JF
18805
18806 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18807
b66977f1
DWT
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812if ac_fn_cxx_try_link "$LINENO"; then :
18813
18814 ac_cv_framework_JavaScriptCore=yes
18815
18816else
18817 ac_cv_framework_JavaScriptCore=no
18818fi
18819rm -f core conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_framework_save_LIBS
18822
18823fi
18824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18825$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18826 if test $ac_cv_framework_JavaScriptCore = yes; then :
18827
18828
18829 for element in "-framework JavaScriptCore $LIBS"; do
18830 haveit=
18831 for x in $LIBS; do
18832
18833 acl_save_prefix="$prefix"
18834 prefix="$acl_final_prefix"
18835 acl_save_exec_prefix="$exec_prefix"
18836 exec_prefix="$acl_final_exec_prefix"
18837 eval x=\"$x\"
18838 exec_prefix="$acl_save_exec_prefix"
18839 prefix="$acl_save_prefix"
18840
18841 if test "X$x" = "X$element"; then
18842 haveit=yes
18843 break
18844 fi
18845 done
18846 if test -z "$haveit"; then
18847 LIBS="${LIBS}${LIBS:+ }$element"
18848 fi
18849 done
18850
66170b30
JF
18851
18852 CY_EXECUTE=1
18853
18854
b66977f1
DWT
18855
18856fi
18857
18858elif test $pkg_failed = untried; then
12833ad8
JF
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860$as_echo "no" >&6; }
b66977f1
DWT
18861
18862
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18864$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18865if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
18866 $as_echo_n "(cached) " >&6
18867else
18868
18869 ac_check_framework_save_LIBS=$LIBS
18870 LIBS="-framework JavaScriptCore $LIBS"
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872/* end confdefs.h. */
18873
66170b30 18874 #include <JavaScriptCore/JSBase.h>
b66977f1
DWT
18875
18876int
18877main ()
18878{
66170b30
JF
18879
18880 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18881
b66977f1
DWT
18882 ;
18883 return 0;
18884}
18885_ACEOF
18886if ac_fn_cxx_try_link "$LINENO"; then :
18887
18888 ac_cv_framework_JavaScriptCore=yes
18889
18890else
18891 ac_cv_framework_JavaScriptCore=no
18892fi
18893rm -f core conftest.err conftest.$ac_objext \
18894 conftest$ac_exeext conftest.$ac_ext
18895 LIBS=$ac_check_framework_save_LIBS
18896
18897fi
18898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18899$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18900 if test $ac_cv_framework_JavaScriptCore = yes; then :
18901
18902
18903 for element in "-framework JavaScriptCore $LIBS"; do
18904 haveit=
18905 for x in $LIBS; do
18906
18907 acl_save_prefix="$prefix"
18908 prefix="$acl_final_prefix"
18909 acl_save_exec_prefix="$exec_prefix"
18910 exec_prefix="$acl_final_exec_prefix"
18911 eval x=\"$x\"
18912 exec_prefix="$acl_save_exec_prefix"
18913 prefix="$acl_save_prefix"
18914
18915 if test "X$x" = "X$element"; then
18916 haveit=yes
18917 break
18918 fi
18919 done
18920 if test -z "$haveit"; then
18921 LIBS="${LIBS}${LIBS:+ }$element"
18922 fi
18923 done
18924
66170b30
JF
18925
18926 CY_EXECUTE=1
18927
18928
b66977f1
DWT
18929
18930fi
18931
18932else
18933 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18934 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18936$as_echo "yes" >&6; }
18937
66170b30
JF
18938 CY_EXECUTE=1
18939
b66977f1
DWT
18940
18941 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18942 haveit=
18943 for x in $CXXFLAGS; do
18944
18945 acl_save_prefix="$prefix"
18946 prefix="$acl_final_prefix"
18947 acl_save_exec_prefix="$exec_prefix"
18948 exec_prefix="$acl_final_exec_prefix"
18949 eval x=\"$x\"
18950 exec_prefix="$acl_save_exec_prefix"
18951 prefix="$acl_save_prefix"
18952
18953 if test "X$x" = "X$element"; then
18954 haveit=yes
18955 break
18956 fi
18957 done
18958 if test -z "$haveit"; then
18959 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18960 fi
18961 done
18962
18963
18964 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18965 haveit=
18966 for x in $LIBS; do
18967
18968 acl_save_prefix="$prefix"
18969 prefix="$acl_final_prefix"
18970 acl_save_exec_prefix="$exec_prefix"
18971 exec_prefix="$acl_final_exec_prefix"
18972 eval x=\"$x\"
18973 exec_prefix="$acl_save_exec_prefix"
18974 prefix="$acl_save_prefix"
18975
18976 if test "X$x" = "X$element"; then
18977 haveit=yes
18978 break
18979 fi
18980 done
18981 if test -z "$haveit"; then
18982 LIBS="${LIBS}${LIBS:+ }$element"
18983 fi
18984 done
18985
18986
18987fi
18988
18989else
18990 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18991 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18993$as_echo "yes" >&6; }
18994
66170b30
JF
18995 CY_EXECUTE=1
18996
b66977f1
DWT
18997
18998 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18999 haveit=
19000 for x in $CXXFLAGS; do
19001
19002 acl_save_prefix="$prefix"
19003 prefix="$acl_final_prefix"
19004 acl_save_exec_prefix="$exec_prefix"
19005 exec_prefix="$acl_final_exec_prefix"
19006 eval x=\"$x\"
19007 exec_prefix="$acl_save_exec_prefix"
19008 prefix="$acl_save_prefix"
19009
19010 if test "X$x" = "X$element"; then
19011 haveit=yes
19012 break
19013 fi
19014 done
19015 if test -z "$haveit"; then
19016 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19017 fi
19018 done
19019
19020
19021 for element in `$PKG_CONFIG --libs webkit-1.0`; do
19022 haveit=
19023 for x in $LIBS; do
19024
19025 acl_save_prefix="$prefix"
19026 prefix="$acl_final_prefix"
19027 acl_save_exec_prefix="$exec_prefix"
19028 exec_prefix="$acl_final_exec_prefix"
19029 eval x=\"$x\"
19030 exec_prefix="$acl_save_exec_prefix"
19031 prefix="$acl_save_prefix"
19032
19033 if test "X$x" = "X$element"; then
19034 haveit=yes
19035 break
19036 fi
19037 done
19038 if test -z "$haveit"; then
19039 LIBS="${LIBS}${LIBS:+ }$element"
19040 fi
19041 done
19042
19043
19044fi
5053a6d1 19045
66170b30
JF
19046fi
19047
19048
19049
19050 apr_found="no"
19051
19052 if test "$target_os" = "os2-emx"; then
19053 # Scripts don't pass test -x on OS/2
19054 TEST_X="test -f"
19055 else
19056 TEST_X="test -x"
19057 fi
19058
19059 acceptable_majors="1"
19060
19061 apr_temp_acceptable_apr_config=""
19062 for apr_temp_major in $acceptable_majors
19063 do
19064 case $apr_temp_major in
19065 0)
19066 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19067 ;;
19068 *)
19069 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19070 ;;
19071 esac
19072 done
19073
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19075$as_echo_n "checking for APR... " >&6; }
19076
19077# Check whether --with-apr was given.
19078if test "${with_apr+set}" = set; then :
19079 withval=$with_apr;
19080 if test "$withval" = "no" || test "$withval" = "yes"; then
19081 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19082 fi
19083
19084 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19085 do
19086 for lookdir in "$withval/bin" "$withval"
19087 do
19088 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19089 apr_config="$lookdir/$apr_temp_apr_config_file"
19090
19091 apr_found="yes"
19092 break 2
19093 fi
19094 done
19095 done
19096
19097 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19098 apr_config="$withval"
19099 apr_found="yes"
19100 fi
19101
19102 if test "$apr_found" != "yes"; then
19103 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
19104 fi
19105
19106else
19107
19108 if test -n "1" && test "1" = "1"; then
19109 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19110 do
19111 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19112 apr_config="$apr_temp_apr_config_file"
19113
19114 apr_found="yes"
19115 break
19116 else
19117 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19118 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19119 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19120
19121 apr_found="yes"
19122 break 2
19123 fi
19124 done
19125 fi
19126 done
19127 fi
19128 if test "$apr_found" = "no" && test -d ""; then
19129 apr_temp_abs_srcdir="`cd && pwd`"
19130 apr_found="reconfig"
19131 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19132 case $apr_bundled_major in
19133 "")
19134 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19135 ;;
19136 0)
19137 apr_temp_apr_config_file="apr-config"
19138 ;;
19139 *)
19140 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19141 ;;
19142 esac
19143 if test -n ""; then
19144 apr_config="/$apr_temp_apr_config_file"
19145 else
19146 apr_config="/$apr_temp_apr_config_file"
19147 fi
19148 fi
5053a6d1 19149
9c60689e
DWT
19150fi
19151
5053a6d1 19152
66170b30
JF
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19154$as_echo "$apr_found" >&6; }
19155
19156case $apr_found in #(
19157 yes) :
19158
19159
19160 for element in `$apr_config --includes`; do
19161 haveit=
19162 for x in $CPPFLAGS; do
19163
19164 acl_save_prefix="$prefix"
19165 prefix="$acl_final_prefix"
19166 acl_save_exec_prefix="$exec_prefix"
19167 exec_prefix="$acl_final_exec_prefix"
19168 eval x=\"$x\"
19169 exec_prefix="$acl_save_exec_prefix"
19170 prefix="$acl_save_prefix"
19171
19172 if test "X$x" = "X$element"; then
19173 haveit=yes
19174 break
19175 fi
19176 done
19177 if test -z "$haveit"; then
19178 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19179 fi
19180 done
19181
a243b558
JF
19182
19183 for element in `$apr_config --link-libtool`; do
19184 haveit=
19185 for x in $LIBS; do
19186
19187 acl_save_prefix="$prefix"
19188 prefix="$acl_final_prefix"
19189 acl_save_exec_prefix="$exec_prefix"
19190 exec_prefix="$acl_final_exec_prefix"
19191 eval x=\"$x\"
19192 exec_prefix="$acl_save_exec_prefix"
19193 prefix="$acl_save_prefix"
19194
19195 if test "X$x" = "X$element"; then
19196 haveit=yes
19197 break
19198 fi
19199 done
19200 if test -z "$haveit"; then
19201 LIBS="${LIBS}${LIBS:+ }$element"
19202 fi
19203 done
66170b30
JF
19204
19205 ;; #(
19206 *) :
19207 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19208esac
19209
19210
19211
a243b558
JF
19212 if test "x$CY_EXECUTE" = x1; then
19213 CY_EXECUTE_TRUE=
19214 CY_EXECUTE_FALSE='#'
19215else
19216 CY_EXECUTE_TRUE='#'
19217 CY_EXECUTE_FALSE=
19218fi
19219
19220
058f1bc8 19221
e5cca37d 19222
5053a6d1
DWT
19223case $CY_EXECUTE in #(
19224 1) :
19225
66170b30 19226 for ac_header in ffi.h ffi/ffi.h
e5cca37d
DWT
19227do :
19228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19229ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 19230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e5cca37d
DWT
19231 cat >>confdefs.h <<_ACEOF
19232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19233_ACEOF
19234 break
19235fi
19236
19237done
19238
66170b30 19239 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
e5cca37d
DWT
19240
19241
9c60689e
DWT
19242
19243pkg_failed=no
5053a6d1
DWT
19244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19245$as_echo_n "checking for LIBFFI... " >&6; }
9c60689e 19246
12833ad8
JF
19247if test -n "$LIBFFI_CFLAGS"; then
19248 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19249 elif test -n "$PKG_CONFIG"; then
19250 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
19251 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19252 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
19253 ac_status=$?
19254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19255 test $ac_status = 0; }; then
5053a6d1 19256 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
9c60689e
DWT
19257else
19258 pkg_failed=yes
19259fi
12833ad8
JF
19260 else
19261 pkg_failed=untried
9c60689e 19262fi
12833ad8
JF
19263if test -n "$LIBFFI_LIBS"; then
19264 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19265 elif test -n "$PKG_CONFIG"; then
19266 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
19267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19268 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
19269 ac_status=$?
19270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19271 test $ac_status = 0; }; then
5053a6d1 19272 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
9c60689e
DWT
19273else
19274 pkg_failed=yes
19275fi
12833ad8
JF
19276 else
19277 pkg_failed=untried
9c60689e
DWT
19278fi
19279
19280
19281
19282if test $pkg_failed = yes; then
12833ad8
JF
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284$as_echo "no" >&6; }
9c60689e
DWT
19285
19286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19287 _pkg_short_errors_supported=yes
19288else
19289 _pkg_short_errors_supported=no
19290fi
19291 if test $_pkg_short_errors_supported = yes; then
53ba6704 19292 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
9c60689e 19293 else
53ba6704 19294 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
9c60689e
DWT
19295 fi
19296 # Put the nasty error message in config.log where it belongs
5053a6d1 19297 echo "$LIBFFI_PKG_ERRORS" >&5
9c60689e 19298
66170b30 19299 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
e5cca37d 19300elif test $pkg_failed = untried; then
12833ad8
JF
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19302$as_echo "no" >&6; }
66170b30 19303 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
e5cca37d
DWT
19304else
19305 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19306 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308$as_echo "yes" >&6; }
19309
19310
19311 for element in `$PKG_CONFIG --cflags libffi`; do
19312 haveit=
19313 for x in $CXXFLAGS; do
19314
19315 acl_save_prefix="$prefix"
19316 prefix="$acl_final_prefix"
19317 acl_save_exec_prefix="$exec_prefix"
19318 exec_prefix="$acl_final_exec_prefix"
19319 eval x=\"$x\"
19320 exec_prefix="$acl_save_exec_prefix"
19321 prefix="$acl_save_prefix"
19322
19323 if test "X$x" = "X$element"; then
19324 haveit=yes
19325 break
19326 fi
19327 done
19328 if test -z "$haveit"; then
19329 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19330 fi
19331 done
c823f118 19332
5053a6d1 19333
e5cca37d
DWT
19334 for element in `$PKG_CONFIG --libs libffi`; do
19335 haveit=
19336 for x in $LIBS; do
19337
19338 acl_save_prefix="$prefix"
19339 prefix="$acl_final_prefix"
19340 acl_save_exec_prefix="$exec_prefix"
19341 exec_prefix="$acl_final_exec_prefix"
19342 eval x=\"$x\"
19343 exec_prefix="$acl_save_exec_prefix"
19344 prefix="$acl_save_prefix"
19345
19346 if test "X$x" = "X$element"; then
19347 haveit=yes
19348 break
19349 fi
19350 done
19351 if test -z "$haveit"; then
19352 LIBS="${LIBS}${LIBS:+ }$element"
19353 fi
19354 done
19355
5053a6d1
DWT
19356
19357fi
e5cca37d 19358
e5cca37d
DWT
19359else
19360
66170b30 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
5053a6d1 19362$as_echo_n "checking for library containing ffi_call... " >&6; }
ee134472 19363if ${ac_cv_search_ffi_call+:} false; then :
c823f118
DWT
19364 $as_echo_n "(cached) " >&6
19365else
5053a6d1
DWT
19366 ac_func_search_save_LIBS=$LIBS
19367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
19368/* end confdefs.h. */
19369
5053a6d1
DWT
19370/* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19373#ifdef __cplusplus
19374extern "C"
19375#endif
19376char ffi_call ();
c823f118
DWT
19377int
19378main ()
19379{
5053a6d1 19380return ffi_call ();
c823f118
DWT
19381 ;
19382 return 0;
19383}
b128dfee 19384_ACEOF
5053a6d1
DWT
19385for ac_lib in '' ffi; do
19386 if test -z "$ac_lib"; then
19387 ac_res="none required"
19388 else
19389 ac_res=-l$ac_lib
19390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19391 fi
19392 if ac_fn_cxx_try_link "$LINENO"; then :
19393 ac_cv_search_ffi_call=$ac_res
c823f118
DWT
19394fi
19395rm -f core conftest.err conftest.$ac_objext \
5053a6d1 19396 conftest$ac_exeext
ee134472 19397 if ${ac_cv_search_ffi_call+:} false; then :
5053a6d1 19398 break
b128dfee 19399fi
5053a6d1 19400done
ee134472 19401if ${ac_cv_search_ffi_call+:} false; then :
b128dfee 19402
5053a6d1
DWT
19403else
19404 ac_cv_search_ffi_call=no
19405fi
19406rm conftest.$ac_ext
19407LIBS=$ac_func_search_save_LIBS
19408fi
19409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19410$as_echo "$ac_cv_search_ffi_call" >&6; }
19411ac_res=$ac_cv_search_ffi_call
19412if test "$ac_res" != no; then :
19413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b128dfee 19414
5053a6d1 19415fi
c823f118 19416
66170b30 19417 case $ac_cv_search_ffi_call in #(
5053a6d1 19418 no) :
c823f118 19419
c823f118 19420
e5cca37d
DWT
19421pkg_failed=no
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19423$as_echo_n "checking for LIBFFI... " >&6; }
c823f118 19424
12833ad8
JF
19425if test -n "$LIBFFI_CFLAGS"; then
19426 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19427 elif test -n "$PKG_CONFIG"; then
19428 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
19429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19430 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19431 ac_status=$?
19432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19433 test $ac_status = 0; }; then
19434 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19435else
19436 pkg_failed=yes
c823f118 19437fi
12833ad8
JF
19438 else
19439 pkg_failed=untried
5053a6d1 19440fi
12833ad8
JF
19441if test -n "$LIBFFI_LIBS"; then
19442 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19443 elif test -n "$PKG_CONFIG"; then
19444 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
19445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19446 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19447 ac_status=$?
19448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19449 test $ac_status = 0; }; then
19450 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
c823f118 19451else
e5cca37d 19452 pkg_failed=yes
632b71ea 19453fi
12833ad8
JF
19454 else
19455 pkg_failed=untried
632b71ea 19456fi
3fd51f51 19457
e5cca37d
DWT
19458
19459
19460if test $pkg_failed = yes; then
12833ad8
JF
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19462$as_echo "no" >&6; }
e5cca37d
DWT
19463
19464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19465 _pkg_short_errors_supported=yes
5053a6d1 19466else
e5cca37d 19467 _pkg_short_errors_supported=no
5053a6d1 19468fi
e5cca37d 19469 if test $_pkg_short_errors_supported = yes; then
53ba6704 19470 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
e5cca37d 19471 else
53ba6704 19472 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
e5cca37d
DWT
19473 fi
19474 # Put the nasty error message in config.log where it belongs
19475 echo "$LIBFFI_PKG_ERRORS" >&5
3fd51f51 19476
66170b30 19477 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
e5cca37d 19478elif test $pkg_failed = untried; then
12833ad8
JF
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19480$as_echo "no" >&6; }
66170b30 19481 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
9c60689e 19482else
5053a6d1
DWT
19483 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19484 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
9c60689e
DWT
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19486$as_echo "yes" >&6; }
3fd51f51 19487
3fd51f51 19488
5053a6d1 19489 for element in `$PKG_CONFIG --cflags libffi`; do
3fd51f51
DWT
19490 haveit=
19491 for x in $CXXFLAGS; do
19492
19493 acl_save_prefix="$prefix"
19494 prefix="$acl_final_prefix"
19495 acl_save_exec_prefix="$exec_prefix"
19496 exec_prefix="$acl_final_exec_prefix"
19497 eval x=\"$x\"
19498 exec_prefix="$acl_save_exec_prefix"
19499 prefix="$acl_save_prefix"
19500
19501 if test "X$x" = "X$element"; then
19502 haveit=yes
19503 break
19504 fi
19505 done
19506 if test -z "$haveit"; then
19507 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19508 fi
19509 done
19510
19511
5053a6d1 19512 for element in `$PKG_CONFIG --libs libffi`; do
3fd51f51
DWT
19513 haveit=
19514 for x in $LIBS; do
19515
19516 acl_save_prefix="$prefix"
19517 prefix="$acl_final_prefix"
19518 acl_save_exec_prefix="$exec_prefix"
19519 exec_prefix="$acl_final_exec_prefix"
19520 eval x=\"$x\"
19521 exec_prefix="$acl_save_exec_prefix"
19522 prefix="$acl_save_prefix"
19523
19524 if test "X$x" = "X$element"; then
19525 haveit=yes
19526 break
19527 fi
19528 done
19529 if test -z "$haveit"; then
19530 LIBS="${LIBS}${LIBS:+ }$element"
19531 fi
19532 done
19533
19534
66170b30 19535fi ;; #(
e5cca37d
DWT
19536 *) :
19537 ;;
19538esac
19539
9c60689e 19540fi
66170b30
JF
19541
19542 ac_ext=mm
5053a6d1
DWT
19543ac_cpp='$OBJCXXCPP $CPPFLAGS'
19544ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a667869d 19547
66170b30
JF
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
5053a6d1 19550$as_echo_n "checking if we really have Objective C++... " >&6; }
66170b30 19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 19552/* end confdefs.h. */
9c60689e 19553
5053a6d1
DWT
19554_ACEOF
19555if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 19556
66170b30
JF
19557 CY_OBJECTIVEC=1
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053a6d1 19559$as_echo "yes" >&6; }
632b71ea 19560
632b71ea 19561else
5053a6d1 19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
632b71ea 19563$as_echo "no" >&6; }
5053a6d1
DWT
19564fi
19565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66170b30
JF
19566
19567 if test "x$CY_OBJECTIVEC" = x1; then :
9c60689e 19568
632b71ea 19569
5053a6d1
DWT
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19571$as_echo_n "checking for framework CoreFoundation... " >&6; }
ee134472 19572if ${ac_cv_framework_CoreFoundation+:} false; then :
9c60689e
DWT
19573 $as_echo_n "(cached) " >&6
19574else
632b71ea
DWT
19575
19576 ac_check_framework_save_LIBS=$LIBS
5053a6d1 19577 LIBS="-framework CoreFoundation $LIBS"
632b71ea 19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
19579/* end confdefs.h. */
19580
66170b30 19581 #include <CoreFoundation/CFBase.h>
632b71ea 19582
9c60689e
DWT
19583int
19584main ()
19585{
5053a6d1 19586CFAllocatorGetDefault();
9c60689e
DWT
19587 ;
19588 return 0;
19589}
19590_ACEOF
5053a6d1 19591if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 19592
5053a6d1 19593 ac_cv_framework_CoreFoundation=yes
632b71ea 19594
9c60689e 19595else
5053a6d1 19596 ac_cv_framework_CoreFoundation=no
9c60689e 19597fi
632b71ea
DWT
19598rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_framework_save_LIBS
9c60689e
DWT
19601
19602fi
5053a6d1
DWT
19603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19604$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19605 if test $ac_cv_framework_CoreFoundation = yes; then :
632b71ea
DWT
19606
19607
5053a6d1 19608 for element in "-framework CoreFoundation $LIBS"; do
632b71ea
DWT
19609 haveit=
19610 for x in $LIBS; do
19611
19612 acl_save_prefix="$prefix"
19613 prefix="$acl_final_prefix"
19614 acl_save_exec_prefix="$exec_prefix"
19615 exec_prefix="$acl_final_exec_prefix"
19616 eval x=\"$x\"
19617 exec_prefix="$acl_save_exec_prefix"
19618 prefix="$acl_save_prefix"
19619
19620 if test "X$x" = "X$element"; then
19621 haveit=yes
19622 break
19623 fi
19624 done
19625 if test -z "$haveit"; then
19626 LIBS="${LIBS}${LIBS:+ }$element"
19627 fi
19628 done
19629
632b71ea 19630
632b71ea 19631
632b71ea
DWT
19632
19633
66170b30 19634
5053a6d1
DWT
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19636$as_echo_n "checking for framework Foundation... " >&6; }
ee134472 19637if ${ac_cv_framework_Foundation+:} false; then :
a667869d
DWT
19638 $as_echo_n "(cached) " >&6
19639else
632b71ea
DWT
19640
19641 ac_check_framework_save_LIBS=$LIBS
5053a6d1 19642 LIBS="-framework Foundation $LIBS"
632b71ea 19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a667869d
DWT
19644/* end confdefs.h. */
19645
66170b30 19646 #include <Foundation/NSObject.h>
632b71ea 19647
a667869d
DWT
19648int
19649main ()
19650{
5053a6d1 19651[[NSObject alloc] init];
a667869d
DWT
19652 ;
19653 return 0;
19654}
19655_ACEOF
5053a6d1 19656if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 19657
5053a6d1 19658 ac_cv_framework_Foundation=yes
632b71ea 19659
a667869d 19660else
5053a6d1 19661 ac_cv_framework_Foundation=no
632b71ea
DWT
19662fi
19663rm -f core conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_framework_save_LIBS
a667869d 19666
632b71ea 19667fi
5053a6d1
DWT
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19669$as_echo "$ac_cv_framework_Foundation" >&6; }
19670 if test $ac_cv_framework_Foundation = yes; then :
a667869d 19671
a667869d 19672
5053a6d1 19673 for element in "-framework Foundation $LIBS"; do
632b71ea
DWT
19674 haveit=
19675 for x in $LIBS; do
a667869d 19676
632b71ea
DWT
19677 acl_save_prefix="$prefix"
19678 prefix="$acl_final_prefix"
19679 acl_save_exec_prefix="$exec_prefix"
19680 exec_prefix="$acl_final_exec_prefix"
19681 eval x=\"$x\"
19682 exec_prefix="$acl_save_exec_prefix"
19683 prefix="$acl_save_prefix"
19684
19685 if test "X$x" = "X$element"; then
19686 haveit=yes
19687 break
19688 fi
19689 done
19690 if test -z "$haveit"; then
19691 LIBS="${LIBS}${LIBS:+ }$element"
19692 fi
19693 done
19694
5053a6d1
DWT
19695 cat >>confdefs.h <<_ACEOF
19696#define HAVE_FRAMEWORK_FOUNDATION 1
19697_ACEOF
19698
a667869d 19699
a667869d 19700fi
632b71ea 19701
5053a6d1 19702
66170b30 19703
5053a6d1
DWT
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19705$as_echo_n "checking for framework WebKit... " >&6; }
ee134472 19706if ${ac_cv_framework_WebKit+:} false; then :
5053a6d1 19707 $as_echo_n "(cached) " >&6
a667869d 19708else
632b71ea 19709
5053a6d1
DWT
19710 ac_check_framework_save_LIBS=$LIBS
19711 LIBS="-framework WebKit $LIBS"
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713/* end confdefs.h. */
632b71ea 19714
66170b30 19715 #include <WebKit/WebScriptObject.h>
632b71ea 19716
5053a6d1
DWT
19717int
19718main ()
19719{
19720[[WebScriptObject alloc] init];
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 19726
5053a6d1 19727 ac_cv_framework_WebKit=yes
632b71ea 19728
5053a6d1
DWT
19729else
19730 ac_cv_framework_WebKit=no
19731fi
19732rm -f core conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_framework_save_LIBS
632b71ea 19735
5053a6d1
DWT
19736fi
19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19738$as_echo "$ac_cv_framework_WebKit" >&6; }
19739 if test $ac_cv_framework_WebKit = yes; then :
19740
19741
19742 for element in "-framework WebKit $LIBS"; do
632b71ea
DWT
19743 haveit=
19744 for x in $LIBS; do
19745
19746 acl_save_prefix="$prefix"
19747 prefix="$acl_final_prefix"
19748 acl_save_exec_prefix="$exec_prefix"
19749 exec_prefix="$acl_final_exec_prefix"
19750 eval x=\"$x\"
19751 exec_prefix="$acl_save_exec_prefix"
19752 prefix="$acl_save_prefix"
19753
19754 if test "X$x" = "X$element"; then
19755 haveit=yes
19756 break
19757 fi
19758 done
19759 if test -z "$haveit"; then
19760 LIBS="${LIBS}${LIBS:+ }$element"
19761 fi
19762 done
19763
5053a6d1
DWT
19764 cat >>confdefs.h <<_ACEOF
19765#define HAVE_FRAMEWORK_WEBKIT 1
19766_ACEOF
19767
19768
19769fi
19770
19771
19772else
19773
19774
66170b30 19775 for ac_prog in gnustep-config
5053a6d1
DWT
19776do
19777 # Extract the first word of "$ac_prog", so it can be a program name with args.
19778set dummy $ac_prog; ac_word=$2
19779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19780$as_echo_n "checking for $ac_word... " >&6; }
ee134472 19781if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
5053a6d1
DWT
19782 $as_echo_n "(cached) " >&6
19783else
19784 if test -n "$GNUSTEP_CONFIG"; then
19785 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19786else
19787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788for as_dir in $PATH
19789do
19790 IFS=$as_save_IFS
19791 test -z "$as_dir" && as_dir=.
19792 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 19793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053a6d1
DWT
19794 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19796 break 2
19797 fi
19798done
19799 done
19800IFS=$as_save_IFS
19801
19802fi
19803fi
19804GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19805if test -n "$GNUSTEP_CONFIG"; then
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19807$as_echo "$GNUSTEP_CONFIG" >&6; }
19808else
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19810$as_echo "no" >&6; }
19811fi
19812
19813
19814 test -n "$GNUSTEP_CONFIG" && break
19815done
632b71ea 19816
66170b30
JF
19817
19818 if test "x$GNUSTEP_CONFIG" != x; then :
a667869d 19819
632b71ea 19820
632b71ea 19821
5053a6d1 19822 for element in `$GNUSTEP_CONFIG --objc-flags`; do
632b71ea 19823 haveit=
5053a6d1 19824 for x in $OBJCXXFLAGS; do
632b71ea
DWT
19825
19826 acl_save_prefix="$prefix"
19827 prefix="$acl_final_prefix"
19828 acl_save_exec_prefix="$exec_prefix"
19829 exec_prefix="$acl_final_exec_prefix"
19830 eval x=\"$x\"
19831 exec_prefix="$acl_save_exec_prefix"
19832 prefix="$acl_save_prefix"
19833
19834 if test "X$x" = "X$element"; then
19835 haveit=yes
19836 break
19837 fi
19838 done
19839 if test -z "$haveit"; then
5053a6d1 19840 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
632b71ea
DWT
19841 fi
19842 done
19843
19844
5053a6d1 19845 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea
DWT
19846 haveit=
19847 for x in $LIBS; do
19848
19849 acl_save_prefix="$prefix"
19850 prefix="$acl_final_prefix"
19851 acl_save_exec_prefix="$exec_prefix"
19852 exec_prefix="$acl_final_exec_prefix"
19853 eval x=\"$x\"
19854 exec_prefix="$acl_save_exec_prefix"
19855 prefix="$acl_save_prefix"
19856
19857 if test "X$x" = "X$element"; then
19858 haveit=yes
19859 break
19860 fi
19861 done
19862 if test -z "$haveit"; then
19863 LIBS="${LIBS}${LIBS:+ }$element"
19864 fi
19865 done
19866
19867
5053a6d1
DWT
19868else
19869 CY_OBJECTIVEC=0
a667869d 19870
5053a6d1 19871fi
b66977f1
DWT
19872
19873fi
19874
5053a6d1 19875fi
66170b30
JF
19876
19877 ac_ext=cpp
5053a6d1
DWT
19878ac_cpp='$CXXCPP $CPPFLAGS'
19879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
b66977f1 19882
5053a6d1
DWT
19883 ;; #(
19884 *) :
19885 ;;
19886esac
a667869d 19887
a243b558
JF
19888 if test "x$CY_OBJECTIVEC" = x1; then
19889 CY_OBJECTIVEC_TRUE=
19890 CY_OBJECTIVEC_FALSE='#'
19891else
19892 CY_OBJECTIVEC_TRUE='#'
19893 CY_OBJECTIVEC_FALSE=
19894fi
19895
19896
66170b30 19897
058f1bc8
DWT
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19899$as_echo_n "checking for a readline compatible library... " >&6; }
ee134472 19900if ${ax_cv_lib_readline+:} false; then :
058f1bc8
DWT
19901 $as_echo_n "(cached) " >&6
19902else
a667869d 19903
058f1bc8
DWT
19904 ORIG_LIBS="$LIBS"
19905 for readline_lib in readline edit editline; do
19906 for termcap_lib in "" termcap curses ncurses; do
19907 if test -z "$termcap_lib"; then
19908 TRY_LIB="-l$readline_lib"
19909 else
19910 TRY_LIB="-l$readline_lib -l$termcap_lib"
19911 fi
19912 LIBS="$ORIG_LIBS $TRY_LIB"
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914/* end confdefs.h. */
a667869d 19915
058f1bc8
DWT
19916/* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19919#ifdef __cplusplus
19920extern "C"
19921#endif
19922char readline ();
19923int
19924main ()
19925{
19926return readline ();
19927 ;
19928 return 0;
19929}
19930_ACEOF
19931if ac_fn_cxx_try_link "$LINENO"; then :
ee134472 19932 ax_cv_lib_readline="$TRY_LIB"
058f1bc8
DWT
19933fi
19934rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
ee134472 19936 if test -n "$ax_cv_lib_readline"; then
058f1bc8
DWT
19937 break
19938 fi
19939 done
ee134472 19940 if test -n "$ax_cv_lib_readline"; then
058f1bc8
DWT
19941 break
19942 fi
19943 done
ee134472
JF
19944 if test -z "$ax_cv_lib_readline"; then
19945 ax_cv_lib_readline="no"
058f1bc8 19946 fi
ee134472 19947 LIBS="$ORIG_LIBS"
a667869d 19948
a667869d 19949fi
ee134472
JF
19950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19951$as_echo "$ax_cv_lib_readline" >&6; }
058f1bc8 19952
ee134472
JF
19953 if test "$ax_cv_lib_readline" != "no"; then
19954 LIBS="$LIBS $ax_cv_lib_readline"
058f1bc8
DWT
19955
19956$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19957
19958 for ac_header in readline.h readline/readline.h
19959do :
19960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19961ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 19962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
19963 cat >>confdefs.h <<_ACEOF
19964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19965_ACEOF
5053a6d1 19966
a667869d 19967fi
058f1bc8
DWT
19968
19969done
19970
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19972$as_echo_n "checking whether readline supports history... " >&6; }
ee134472 19973if ${ax_cv_lib_readline_history+:} false; then :
058f1bc8
DWT
19974 $as_echo_n "(cached) " >&6
19975else
19976
ee134472 19977 ax_cv_lib_readline_history="no"
058f1bc8
DWT
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979/* end confdefs.h. */
19980
19981/* Override any GCC internal prototype to avoid an error.
19982 Use char because int might match the return type of a GCC
19983 builtin and then its argument prototype would still apply. */
19984#ifdef __cplusplus
19985extern "C"
19986#endif
19987char add_history ();
19988int
19989main ()
19990{
19991return add_history ();
19992 ;
19993 return 0;
19994}
19995_ACEOF
19996if ac_fn_cxx_try_link "$LINENO"; then :
ee134472 19997 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
19998fi
19999rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001
20002fi
ee134472
JF
20003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20004$as_echo "$ax_cv_lib_readline_history" >&6; }
20005 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8
DWT
20006
20007$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20008
20009 for ac_header in history.h readline/history.h
20010do :
20011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20012ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 20013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
20014 cat >>confdefs.h <<_ACEOF
20015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016_ACEOF
20017
20018fi
20019
20020done
20021
20022 fi
20023 fi
20024
20025case $vl_cv_lib_readline in #(
20026 no) :
66170b30 20027 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
058f1bc8
DWT
20028 *) :
20029 ;;
20030esac
66170b30 20031
a243b558
JF
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20033$as_echo_n "checking for library containing cur_term... " >&6; }
20034if ${ac_cv_search_cur_term+:} false; then :
20035 $as_echo_n "(cached) " >&6
20036else
20037 ac_func_search_save_LIBS=$LIBS
20038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039/* end confdefs.h. */
20040
20041/* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044#ifdef __cplusplus
20045extern "C"
20046#endif
20047char cur_term ();
20048int
20049main ()
20050{
20051return cur_term ();
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056for ac_lib in '' termcap; do
20057 if test -z "$ac_lib"; then
20058 ac_res="none required"
20059 else
20060 ac_res=-l$ac_lib
20061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20062 fi
20063 if ac_fn_cxx_try_link "$LINENO"; then :
20064 ac_cv_search_cur_term=$ac_res
20065fi
20066rm -f core conftest.err conftest.$ac_objext \
20067 conftest$ac_exeext
20068 if ${ac_cv_search_cur_term+:} false; then :
20069 break
20070fi
20071done
20072if ${ac_cv_search_cur_term+:} false; then :
20073
20074else
20075 ac_cv_search_cur_term=no
20076fi
20077rm conftest.$ac_ext
20078LIBS=$ac_func_search_save_LIBS
20079fi
20080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20081$as_echo "$ac_cv_search_cur_term" >&6; }
20082ac_res=$ac_cv_search_cur_term
20083if test "$ac_res" != no; then :
20084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20085
20086fi
20087
20088
058f1bc8
DWT
20089ac_ext=c
20090ac_cpp='$CPP $CPPFLAGS'
20091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094
20095
20096 if test "X$prefix" = "XNONE"; then
20097 acl_final_prefix="$ac_default_prefix"
20098 else
20099 acl_final_prefix="$prefix"
20100 fi
20101 if test "X$exec_prefix" = "XNONE"; then
20102 acl_final_exec_prefix='${prefix}'
20103 else
20104 acl_final_exec_prefix="$exec_prefix"
20105 fi
20106 acl_save_prefix="$prefix"
20107 prefix="$acl_final_prefix"
20108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20109 prefix="$acl_save_prefix"
20110
20111
53ba6704 20112
058f1bc8
DWT
20113# Check whether --with-gnu-ld was given.
20114if test "${with_gnu_ld+set}" = set; then :
20115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20116else
20117 with_gnu_ld=no
20118fi
20119
20120# Prepare PATH_SEPARATOR.
20121# The user is always right.
20122if test "${PATH_SEPARATOR+set}" != set; then
53ba6704
JF
20123 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20124 # contains only /bin. Note that ksh looks also at the FPATH variable,
20125 # so we have to set that as well for the test.
20126 PATH_SEPARATOR=:
20127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20128 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20129 || PATH_SEPARATOR=';'
20130 }
058f1bc8 20131fi
53ba6704 20132
058f1bc8
DWT
20133ac_prog=ld
20134if test "$GCC" = yes; then
20135 # Check if gcc -print-prog-name=ld gives a path.
53ba6704
JF
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20137$as_echo_n "checking for ld used by $CC... " >&6; }
058f1bc8
DWT
20138 case $host in
20139 *-*-mingw*)
20140 # gcc leaves a trailing carriage return which upsets mingw
20141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20142 *)
20143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20144 esac
20145 case $ac_prog in
20146 # Accept absolute paths.
53ba6704 20147 [\\/]* | ?:[\\/]*)
058f1bc8 20148 re_direlt='/[^/][^/]*/\.\./'
53ba6704
JF
20149 # Canonicalize the pathname of ld
20150 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
20151 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12833ad8 20152 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5053a6d1
DWT
20153 done
20154 test -z "$LD" && LD="$ac_prog"
20155 ;;
20156 "")
20157 # If it fails, then pretend we aren't using GCC.
20158 ac_prog=ld
20159 ;;
20160 *)
20161 # If it is relative, then search for the first ld in PATH.
20162 with_gnu_ld=unknown
20163 ;;
20164 esac
20165elif test "$with_gnu_ld" = yes; then
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20167$as_echo_n "checking for GNU ld... " >&6; }
a667869d 20168else
5053a6d1
DWT
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20170$as_echo_n "checking for non-GNU ld... " >&6; }
a667869d 20171fi
ee134472 20172if ${acl_cv_path_LD+:} false; then :
5053a6d1
DWT
20173 $as_echo_n "(cached) " >&6
20174else
20175 if test -z "$LD"; then
53ba6704 20176 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5053a6d1 20177 for ac_dir in $PATH; do
53ba6704 20178 IFS="$acl_save_ifs"
5053a6d1
DWT
20179 test -z "$ac_dir" && ac_dir=.
20180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20181 acl_cv_path_LD="$ac_dir/$ac_prog"
20182 # Check to see if the program is GNU ld. I'd rather use --version,
53ba6704 20183 # but apparently some variants of GNU ld only accept -v.
5053a6d1 20184 # Break only if it was the GNU/non-GNU ld that we prefer.
53ba6704 20185 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5053a6d1 20186 *GNU* | *'with BFD'*)
53ba6704
JF
20187 test "$with_gnu_ld" != no && break
20188 ;;
5053a6d1 20189 *)
53ba6704
JF
20190 test "$with_gnu_ld" != yes && break
20191 ;;
5053a6d1 20192 esac
a667869d 20193 fi
5053a6d1 20194 done
53ba6704 20195 IFS="$acl_save_ifs"
a667869d 20196else
5053a6d1 20197 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a667869d 20198fi
a667869d 20199fi
a667869d 20200
5053a6d1
DWT
20201LD="$acl_cv_path_LD"
20202if test -n "$LD"; then
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20204$as_echo "$LD" >&6; }
20205else
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a667869d 20207$as_echo "no" >&6; }
a667869d 20208fi
12833ad8 20209test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5053a6d1
DWT
20210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20211$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 20212if ${acl_cv_prog_gnu_ld+:} false; then :
a667869d
DWT
20213 $as_echo_n "(cached) " >&6
20214else
53ba6704 20215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5053a6d1
DWT
20216case `$LD -v 2>&1 </dev/null` in
20217*GNU* | *'with BFD'*)
53ba6704
JF
20218 acl_cv_prog_gnu_ld=yes
20219 ;;
5053a6d1 20220*)
53ba6704
JF
20221 acl_cv_prog_gnu_ld=no
20222 ;;
5053a6d1 20223esac
a667869d 20224fi
5053a6d1
DWT
20225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20226$as_echo "$acl_cv_prog_gnu_ld" >&6; }
20227with_gnu_ld=$acl_cv_prog_gnu_ld
20228
20229
20230
a667869d 20231
5053a6d1
DWT
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20233$as_echo_n "checking for shared library run path origin... " >&6; }
ee134472 20234if ${acl_cv_rpath+:} false; then :
5053a6d1 20235 $as_echo_n "(cached) " >&6
a667869d 20236else
5053a6d1
DWT
20237
20238 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20239 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20240 . ./conftest.sh
20241 rm -f ./conftest.sh
20242 acl_cv_rpath=done
20243
a667869d 20244fi
5053a6d1
DWT
20245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20246$as_echo "$acl_cv_rpath" >&6; }
20247 wl="$acl_cv_wl"
20248 acl_libext="$acl_cv_libext"
20249 acl_shlibext="$acl_cv_shlibext"
20250 acl_libname_spec="$acl_cv_libname_spec"
20251 acl_library_names_spec="$acl_cv_library_names_spec"
20252 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20253 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20254 acl_hardcode_direct="$acl_cv_hardcode_direct"
20255 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20256 # Check whether --enable-rpath was given.
20257if test "${enable_rpath+set}" = set; then :
20258 enableval=$enable_rpath; :
20259else
20260 enable_rpath=yes
a667869d 20261fi
a667869d 20262
a667869d 20263
a667869d 20264
12833ad8
JF
20265
20266 acl_libdirstem=lib
20267 acl_libdirstem2=
20268 case "$host_os" in
20269 solaris*)
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20271$as_echo_n "checking for 64-bit host... " >&6; }
ee134472 20272if ${gl_cv_solaris_64bit+:} false; then :
12833ad8
JF
20273 $as_echo_n "(cached) " >&6
20274else
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276/* end confdefs.h. */
20277
20278#ifdef _LP64
20279sixtyfour bits
20280#endif
20281
20282_ACEOF
20283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20284 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
20285 gl_cv_solaris_64bit=yes
20286else
20287 gl_cv_solaris_64bit=no
20288fi
20289rm -f conftest*
20290
20291
20292fi
20293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20294$as_echo "$gl_cv_solaris_64bit" >&6; }
20295 if test $gl_cv_solaris_64bit = yes; then
20296 acl_libdirstem=lib/64
20297 case "$host_cpu" in
20298 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20299 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5053a6d1
DWT
20300 esac
20301 fi
12833ad8
JF
20302 ;;
20303 *)
20304 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20305 if test -n "$searchpath"; then
20306 acl_save_IFS="${IFS= }"; IFS=":"
20307 for searchdir in $searchpath; do
20308 if test -d "$searchdir"; then
20309 case "$searchdir" in
20310 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20311 */../ | */.. )
20312 # Better ignore directories of this form. They are misleading.
20313 ;;
20314 *) searchdir=`cd "$searchdir" && pwd`
20315 case "$searchdir" in
20316 */lib64 ) acl_libdirstem=lib64 ;;
20317 esac ;;
20318 esac
20319 fi
20320 done
20321 IFS="$acl_save_IFS"
20322 fi
20323 ;;
20324 esac
20325 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20326
20327
20328
9c60689e 20329
9c60689e 20330
9c60689e 20331
9c60689e 20332
9c60689e 20333
9c60689e 20334
9c60689e 20335
9c60689e 20336
9c60689e 20337
5053a6d1 20338 use_additional=yes
9c60689e 20339
5053a6d1
DWT
20340 acl_save_prefix="$prefix"
20341 prefix="$acl_final_prefix"
20342 acl_save_exec_prefix="$exec_prefix"
20343 exec_prefix="$acl_final_exec_prefix"
9c60689e 20344
5053a6d1
DWT
20345 eval additional_includedir=\"$includedir\"
20346 eval additional_libdir=\"$libdir\"
9c60689e 20347
5053a6d1
DWT
20348 exec_prefix="$acl_save_exec_prefix"
20349 prefix="$acl_save_prefix"
3fd51f51
DWT
20350
20351
5053a6d1
DWT
20352# Check whether --with-libiconv-prefix was given.
20353if test "${with_libiconv_prefix+set}" = set; then :
20354 withval=$with_libiconv_prefix;
20355 if test "X$withval" = "Xno"; then
20356 use_additional=no
20357 else
20358 if test "X$withval" = "X"; then
3fd51f51
DWT
20359
20360 acl_save_prefix="$prefix"
20361 prefix="$acl_final_prefix"
20362 acl_save_exec_prefix="$exec_prefix"
20363 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
20364
20365 eval additional_includedir=\"$includedir\"
20366 eval additional_libdir=\"$libdir\"
20367
3fd51f51
DWT
20368 exec_prefix="$acl_save_exec_prefix"
20369 prefix="$acl_save_prefix"
20370
5053a6d1
DWT
20371 else
20372 additional_includedir="$withval/include"
20373 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
20374 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20375 && ! test -d "$withval/$acl_libdirstem"; then
20376 additional_libdir="$withval/$acl_libdirstem2"
20377 fi
3fd51f51 20378 fi
3fd51f51 20379 fi
3fd51f51 20380
5053a6d1 20381fi
3fd51f51 20382
5053a6d1
DWT
20383 LIBICONV=
20384 LTLIBICONV=
20385 INCICONV=
20386 LIBICONV_PREFIX=
12833ad8 20387 HAVE_LIBICONV=
5053a6d1
DWT
20388 rpathdirs=
20389 ltrpathdirs=
20390 names_already_handled=
20391 names_next_round='iconv '
20392 while test -n "$names_next_round"; do
20393 names_this_round="$names_next_round"
20394 names_next_round=
20395 for name in $names_this_round; do
20396 already_handled=
20397 for n in $names_already_handled; do
20398 if test "$n" = "$name"; then
20399 already_handled=yes
20400 break
20401 fi
20402 done
20403 if test -z "$already_handled"; then
20404 names_already_handled="$names_already_handled $name"
53ba6704 20405 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5053a6d1
DWT
20406 eval value=\"\$HAVE_LIB$uppername\"
20407 if test -n "$value"; then
20408 if test "$value" = yes; then
20409 eval value=\"\$LIB$uppername\"
20410 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20411 eval value=\"\$LTLIB$uppername\"
20412 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20413 else
20414 :
20415 fi
20416 else
20417 found_dir=
20418 found_la=
20419 found_so=
20420 found_a=
20421 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20422 if test -n "$acl_shlibext"; then
20423 shrext=".$acl_shlibext" # typically: shrext=.so
20424 else
20425 shrext=
20426 fi
20427 if test $use_additional = yes; then
20428 dir="$additional_libdir"
20429 if test -n "$acl_shlibext"; then
20430 if test -f "$dir/$libname$shrext"; then
20431 found_dir="$dir"
20432 found_so="$dir/$libname$shrext"
20433 else
20434 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20435 ver=`(cd "$dir" && \
20436 for f in "$libname$shrext".*; do echo "$f"; done \
20437 | sed -e "s,^$libname$shrext\\\\.,," \
20438 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20439 | sed 1q ) 2>/dev/null`
20440 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20441 found_dir="$dir"
20442 found_so="$dir/$libname$shrext.$ver"
20443 fi
20444 else
20445 eval library_names=\"$acl_library_names_spec\"
20446 for f in $library_names; do
20447 if test -f "$dir/$f"; then
20448 found_dir="$dir"
20449 found_so="$dir/$f"
20450 break
20451 fi
20452 done
20453 fi
20454 fi
20455 fi
20456 if test "X$found_dir" = "X"; then
20457 if test -f "$dir/$libname.$acl_libext"; then
20458 found_dir="$dir"
20459 found_a="$dir/$libname.$acl_libext"
20460 fi
20461 fi
20462 if test "X$found_dir" != "X"; then
20463 if test -f "$dir/$libname.la"; then
20464 found_la="$dir/$libname.la"
20465 fi
20466 fi
20467 fi
20468 if test "X$found_dir" = "X"; then
20469 for x in $LDFLAGS $LTLIBICONV; do
3fd51f51
DWT
20470
20471 acl_save_prefix="$prefix"
20472 prefix="$acl_final_prefix"
20473 acl_save_exec_prefix="$exec_prefix"
20474 exec_prefix="$acl_final_exec_prefix"
20475 eval x=\"$x\"
20476 exec_prefix="$acl_save_exec_prefix"
20477 prefix="$acl_save_prefix"
20478
5053a6d1
DWT
20479 case "$x" in
20480 -L*)
20481 dir=`echo "X$x" | sed -e 's/^X-L//'`
20482 if test -n "$acl_shlibext"; then
20483 if test -f "$dir/$libname$shrext"; then
20484 found_dir="$dir"
20485 found_so="$dir/$libname$shrext"
20486 else
20487 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20488 ver=`(cd "$dir" && \
20489 for f in "$libname$shrext".*; do echo "$f"; done \
20490 | sed -e "s,^$libname$shrext\\\\.,," \
20491 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20492 | sed 1q ) 2>/dev/null`
20493 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20494 found_dir="$dir"
20495 found_so="$dir/$libname$shrext.$ver"
20496 fi
20497 else
20498 eval library_names=\"$acl_library_names_spec\"
20499 for f in $library_names; do
20500 if test -f "$dir/$f"; then
20501 found_dir="$dir"
20502 found_so="$dir/$f"
20503 break
20504 fi
20505 done
20506 fi
20507 fi
20508 fi
20509 if test "X$found_dir" = "X"; then
20510 if test -f "$dir/$libname.$acl_libext"; then
20511 found_dir="$dir"
20512 found_a="$dir/$libname.$acl_libext"
20513 fi
20514 fi
20515 if test "X$found_dir" != "X"; then
20516 if test -f "$dir/$libname.la"; then
20517 found_la="$dir/$libname.la"
20518 fi
20519 fi
20520 ;;
20521 esac
20522 if test "X$found_dir" != "X"; then
20523 break
20524 fi
20525 done
20526 fi
20527 if test "X$found_dir" != "X"; then
20528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20529 if test "X$found_so" != "X"; then
12833ad8
JF
20530 if test "$enable_rpath" = no \
20531 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20532 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5053a6d1
DWT
20533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20534 else
20535 haveit=
20536 for x in $ltrpathdirs; do
20537 if test "X$x" = "X$found_dir"; then
20538 haveit=yes
20539 break
20540 fi
20541 done
20542 if test -z "$haveit"; then
20543 ltrpathdirs="$ltrpathdirs $found_dir"
20544 fi
20545 if test "$acl_hardcode_direct" = yes; then
20546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20547 else
20548 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20550 haveit=
20551 for x in $rpathdirs; do
20552 if test "X$x" = "X$found_dir"; then
20553 haveit=yes
20554 break
20555 fi
20556 done
20557 if test -z "$haveit"; then
20558 rpathdirs="$rpathdirs $found_dir"
20559 fi
20560 else
20561 haveit=
20562 for x in $LDFLAGS $LIBICONV; do
c823f118
DWT
20563
20564 acl_save_prefix="$prefix"
20565 prefix="$acl_final_prefix"
20566 acl_save_exec_prefix="$exec_prefix"
20567 exec_prefix="$acl_final_exec_prefix"
20568 eval x=\"$x\"
20569 exec_prefix="$acl_save_exec_prefix"
20570 prefix="$acl_save_prefix"
20571
5053a6d1
DWT
20572 if test "X$x" = "X-L$found_dir"; then
20573 haveit=yes
20574 break
20575 fi
20576 done
20577 if test -z "$haveit"; then
20578 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20579 fi
20580 if test "$acl_hardcode_minus_L" != no; then
20581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20582 else
20583 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20584 fi
20585 fi
20586 fi
20587 fi
20588 else
20589 if test "X$found_a" != "X"; then
20590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20591 else
20592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20593 fi
20594 fi
20595 additional_includedir=
20596 case "$found_dir" in
20597 */$acl_libdirstem | */$acl_libdirstem/)
20598 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
20599 if test "$name" = 'iconv'; then
20600 LIBICONV_PREFIX="$basedir"
20601 fi
20602 additional_includedir="$basedir/include"
20603 ;;
20604 */$acl_libdirstem2 | */$acl_libdirstem2/)
20605 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20606 if test "$name" = 'iconv'; then
20607 LIBICONV_PREFIX="$basedir"
20608 fi
5053a6d1
DWT
20609 additional_includedir="$basedir/include"
20610 ;;
20611 esac
20612 if test "X$additional_includedir" != "X"; then
20613 if test "X$additional_includedir" != "X/usr/include"; then
20614 haveit=
20615 if test "X$additional_includedir" = "X/usr/local/include"; then
20616 if test -n "$GCC"; then
20617 case $host_os in
20618 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20619 esac
20620 fi
20621 fi
20622 if test -z "$haveit"; then
20623 for x in $CPPFLAGS $INCICONV; do
c823f118
DWT
20624
20625 acl_save_prefix="$prefix"
20626 prefix="$acl_final_prefix"
20627 acl_save_exec_prefix="$exec_prefix"
20628 exec_prefix="$acl_final_exec_prefix"
20629 eval x=\"$x\"
20630 exec_prefix="$acl_save_exec_prefix"
20631 prefix="$acl_save_prefix"
20632
5053a6d1
DWT
20633 if test "X$x" = "X-I$additional_includedir"; then
20634 haveit=yes
20635 break
20636 fi
20637 done
20638 if test -z "$haveit"; then
20639 if test -d "$additional_includedir"; then
20640 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20641 fi
20642 fi
20643 fi
20644 fi
20645 fi
20646 if test -n "$found_la"; then
20647 save_libdir="$libdir"
20648 case "$found_la" in
20649 */* | *\\*) . "$found_la" ;;
20650 *) . "./$found_la" ;;
20651 esac
20652 libdir="$save_libdir"
20653 for dep in $dependency_libs; do
20654 case "$dep" in
20655 -L*)
20656 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
20657 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20658 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5053a6d1 20659 haveit=
12833ad8
JF
20660 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20661 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5053a6d1
DWT
20662 if test -n "$GCC"; then
20663 case $host_os in
20664 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20665 esac
20666 fi
20667 fi
20668 if test -z "$haveit"; then
20669 haveit=
20670 for x in $LDFLAGS $LIBICONV; do
c823f118 20671
5053a6d1
DWT
20672 acl_save_prefix="$prefix"
20673 prefix="$acl_final_prefix"
20674 acl_save_exec_prefix="$exec_prefix"
20675 exec_prefix="$acl_final_exec_prefix"
20676 eval x=\"$x\"
20677 exec_prefix="$acl_save_exec_prefix"
20678 prefix="$acl_save_prefix"
c823f118 20679
5053a6d1
DWT
20680 if test "X$x" = "X-L$additional_libdir"; then
20681 haveit=yes
20682 break
20683 fi
20684 done
20685 if test -z "$haveit"; then
20686 if test -d "$additional_libdir"; then
20687 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20688 fi
20689 fi
20690 haveit=
20691 for x in $LDFLAGS $LTLIBICONV; do
c823f118
DWT
20692
20693 acl_save_prefix="$prefix"
20694 prefix="$acl_final_prefix"
20695 acl_save_exec_prefix="$exec_prefix"
20696 exec_prefix="$acl_final_exec_prefix"
20697 eval x=\"$x\"
20698 exec_prefix="$acl_save_exec_prefix"
20699 prefix="$acl_save_prefix"
20700
5053a6d1
DWT
20701 if test "X$x" = "X-L$additional_libdir"; then
20702 haveit=yes
20703 break
20704 fi
20705 done
20706 if test -z "$haveit"; then
20707 if test -d "$additional_libdir"; then
20708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20709 fi
20710 fi
20711 fi
20712 fi
20713 ;;
20714 -R*)
20715 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20716 if test "$enable_rpath" != no; then
20717 haveit=
20718 for x in $rpathdirs; do
20719 if test "X$x" = "X$dir"; then
20720 haveit=yes
20721 break
20722 fi
20723 done
20724 if test -z "$haveit"; then
20725 rpathdirs="$rpathdirs $dir"
20726 fi
20727 haveit=
20728 for x in $ltrpathdirs; do
20729 if test "X$x" = "X$dir"; then
20730 haveit=yes
20731 break
20732 fi
20733 done
20734 if test -z "$haveit"; then
20735 ltrpathdirs="$ltrpathdirs $dir"
20736 fi
20737 fi
20738 ;;
20739 -l*)
20740 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20741 ;;
20742 *.la)
20743 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20744 ;;
20745 *)
20746 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20748 ;;
20749 esac
20750 done
20751 fi
20752 else
20753 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20754 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20755 fi
20756 fi
c823f118
DWT
20757 fi
20758 done
c823f118 20759 done
5053a6d1
DWT
20760 if test "X$rpathdirs" != "X"; then
20761 if test -n "$acl_hardcode_libdir_separator"; then
20762 alldirs=
20763 for found_dir in $rpathdirs; do
20764 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20765 done
20766 acl_save_libdir="$libdir"
20767 libdir="$alldirs"
20768 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20769 libdir="$acl_save_libdir"
20770 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20771 else
20772 for found_dir in $rpathdirs; do
20773 acl_save_libdir="$libdir"
20774 libdir="$found_dir"
20775 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20776 libdir="$acl_save_libdir"
20777 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20778 done
20779 fi
20780 fi
20781 if test "X$ltrpathdirs" != "X"; then
20782 for found_dir in $ltrpathdirs; do
20783 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20784 done
47aaa820 20785 fi
47aaa820
DWT
20786
20787
47aaa820 20788
47aaa820
DWT
20789
20790
20791
5053a6d1 20792
12833ad8
JF
20793
20794
20795
20796
20797
5053a6d1
DWT
20798 am_save_CPPFLAGS="$CPPFLAGS"
20799
20800 for element in $INCICONV; do
47aaa820 20801 haveit=
5053a6d1 20802 for x in $CPPFLAGS; do
47aaa820
DWT
20803
20804 acl_save_prefix="$prefix"
20805 prefix="$acl_final_prefix"
20806 acl_save_exec_prefix="$exec_prefix"
20807 exec_prefix="$acl_final_exec_prefix"
20808 eval x=\"$x\"
20809 exec_prefix="$acl_save_exec_prefix"
20810 prefix="$acl_save_prefix"
9c60689e 20811
47aaa820
DWT
20812 if test "X$x" = "X$element"; then
20813 haveit=yes
20814 break
20815 fi
20816 done
20817 if test -z "$haveit"; then
5053a6d1 20818 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
47aaa820
DWT
20819 fi
20820 done
20821
20822
5053a6d1
DWT
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20824$as_echo_n "checking for iconv... " >&6; }
ee134472 20825if ${am_cv_func_iconv+:} false; then :
5053a6d1
DWT
20826 $as_echo_n "(cached) " >&6
20827else
47aaa820 20828
5053a6d1
DWT
20829 am_cv_func_iconv="no, consider installing GNU libiconv"
20830 am_cv_lib_iconv=no
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832/* end confdefs.h. */
53ba6704 20833
5053a6d1
DWT
20834#include <stdlib.h>
20835#include <iconv.h>
53ba6704 20836
5053a6d1
DWT
20837int
20838main ()
20839{
20840iconv_t cd = iconv_open("","");
53ba6704
JF
20841 iconv(cd,NULL,NULL,NULL,NULL);
20842 iconv_close(cd);
5053a6d1
DWT
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847if ac_fn_c_try_link "$LINENO"; then :
20848 am_cv_func_iconv=yes
20849fi
20850rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20852 if test "$am_cv_func_iconv" != yes; then
20853 am_save_LIBS="$LIBS"
20854 LIBS="$LIBS $LIBICONV"
20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856/* end confdefs.h. */
53ba6704 20857
5053a6d1
DWT
20858#include <stdlib.h>
20859#include <iconv.h>
53ba6704 20860
5053a6d1
DWT
20861int
20862main ()
20863{
20864iconv_t cd = iconv_open("","");
53ba6704
JF
20865 iconv(cd,NULL,NULL,NULL,NULL);
20866 iconv_close(cd);
5053a6d1
DWT
20867 ;
20868 return 0;
20869}
20870_ACEOF
20871if ac_fn_c_try_link "$LINENO"; then :
20872 am_cv_lib_iconv=yes
20873 am_cv_func_iconv=yes
20874fi
20875rm -f core conftest.err conftest.$ac_objext \
20876 conftest$ac_exeext conftest.$ac_ext
20877 LIBS="$am_save_LIBS"
47aaa820 20878 fi
47aaa820 20879
5053a6d1
DWT
20880fi
20881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20882$as_echo "$am_cv_func_iconv" >&6; }
20883 if test "$am_cv_func_iconv" = yes; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20885$as_echo_n "checking for working iconv... " >&6; }
ee134472 20886if ${am_cv_func_iconv_works+:} false; then :
5053a6d1
DWT
20887 $as_echo_n "(cached) " >&6
20888else
47aaa820 20889
53ba6704 20890 am_save_LIBS="$LIBS"
5053a6d1
DWT
20891 if test $am_cv_lib_iconv = yes; then
20892 LIBS="$LIBS $LIBICONV"
20893 fi
20894 if test "$cross_compiling" = yes; then :
53ba6704
JF
20895
20896 case "$host_os" in
5053a6d1
DWT
20897 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20898 *) am_cv_func_iconv_works="guessing yes" ;;
20899 esac
53ba6704 20900
c823f118 20901else
5053a6d1
DWT
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903/* end confdefs.h. */
c823f118 20904
5053a6d1
DWT
20905#include <iconv.h>
20906#include <string.h>
20907int main ()
20908{
53ba6704 20909 int result = 0;
5053a6d1
DWT
20910 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20911 returns. */
20912 {
20913 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20914 if (cd_utf8_to_88591 != (iconv_t)(-1))
20915 {
20916 static const char input[] = "\342\202\254"; /* EURO SIGN */
20917 char buf[10];
20918 const char *inptr = input;
20919 size_t inbytesleft = strlen (input);
20920 char *outptr = buf;
20921 size_t outbytesleft = sizeof (buf);
20922 size_t res = iconv (cd_utf8_to_88591,
20923 (char **) &inptr, &inbytesleft,
20924 &outptr, &outbytesleft);
20925 if (res == 0)
53ba6704
JF
20926 result |= 1;
20927 iconv_close (cd_utf8_to_88591);
5053a6d1
DWT
20928 }
20929 }
12833ad8
JF
20930 /* Test against Solaris 10 bug: Failures are not distinguishable from
20931 successful returns. */
20932 {
20933 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20934 if (cd_ascii_to_88591 != (iconv_t)(-1))
20935 {
20936 static const char input[] = "\263";
20937 char buf[10];
20938 const char *inptr = input;
20939 size_t inbytesleft = strlen (input);
20940 char *outptr = buf;
20941 size_t outbytesleft = sizeof (buf);
20942 size_t res = iconv (cd_ascii_to_88591,
20943 (char **) &inptr, &inbytesleft,
20944 &outptr, &outbytesleft);
20945 if (res == 0)
53ba6704
JF
20946 result |= 2;
20947 iconv_close (cd_ascii_to_88591);
20948 }
20949 }
20950 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20951 {
20952 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20953 if (cd_88591_to_utf8 != (iconv_t)(-1))
20954 {
20955 static const char input[] = "\304";
20956 static char buf[2] = { (char)0xDE, (char)0xAD };
20957 const char *inptr = input;
20958 size_t inbytesleft = 1;
20959 char *outptr = buf;
20960 size_t outbytesleft = 1;
20961 size_t res = iconv (cd_88591_to_utf8,
20962 (char **) &inptr, &inbytesleft,
20963 &outptr, &outbytesleft);
20964 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20965 result |= 4;
20966 iconv_close (cd_88591_to_utf8);
12833ad8
JF
20967 }
20968 }
5053a6d1
DWT
20969#if 0 /* This bug could be worked around by the caller. */
20970 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20971 {
20972 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20973 if (cd_88591_to_utf8 != (iconv_t)(-1))
20974 {
20975 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20976 char buf[50];
20977 const char *inptr = input;
20978 size_t inbytesleft = strlen (input);
20979 char *outptr = buf;
20980 size_t outbytesleft = sizeof (buf);
20981 size_t res = iconv (cd_88591_to_utf8,
20982 (char **) &inptr, &inbytesleft,
20983 &outptr, &outbytesleft);
20984 if ((int)res > 0)
53ba6704
JF
20985 result |= 8;
20986 iconv_close (cd_88591_to_utf8);
5053a6d1
DWT
20987 }
20988 }
20989#endif
20990 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20991 provided. */
20992 if (/* Try standardized names. */
20993 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20994 /* Try IRIX, OSF/1 names. */
20995 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20996 /* Try AIX names. */
20997 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20998 /* Try HP-UX names. */
20999 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
53ba6704
JF
21000 result |= 16;
21001 return result;
5053a6d1
DWT
21002}
21003_ACEOF
21004if ac_fn_c_try_run "$LINENO"; then :
21005 am_cv_func_iconv_works=yes
21006else
21007 am_cv_func_iconv_works=no
21008fi
21009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21010 conftest.$ac_objext conftest.beam conftest.$ac_ext
c823f118
DWT
21011fi
21012
5053a6d1
DWT
21013 LIBS="$am_save_LIBS"
21014
47aaa820 21015fi
5053a6d1
DWT
21016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21017$as_echo "$am_cv_func_iconv_works" >&6; }
21018 case "$am_cv_func_iconv_works" in
21019 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21020 *) am_func_iconv=yes ;;
21021 esac
21022 else
21023 am_func_iconv=no am_cv_lib_iconv=no
21024 fi
21025 if test "$am_func_iconv" = yes; then
21026
21027$as_echo "#define HAVE_ICONV 1" >>confdefs.h
21028
21029 fi
21030 if test "$am_cv_lib_iconv" = yes; then
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21032$as_echo_n "checking how to link with libiconv... " >&6; }
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21034$as_echo "$LIBICONV" >&6; }
21035 else
21036 CPPFLAGS="$am_save_CPPFLAGS"
21037 LIBICONV=
21038 LTLIBICONV=
21039 fi
21040
21041
21042
21043 if test "$am_cv_func_iconv" = yes; then
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21045$as_echo_n "checking for iconv declaration... " >&6; }
ee134472 21046 if ${am_cv_proto_iconv+:} false; then :
5053a6d1
DWT
21047 $as_echo_n "(cached) " >&6
21048else
21049
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051/* end confdefs.h. */
21052
21053#include <stdlib.h>
21054#include <iconv.h>
21055extern
21056#ifdef __cplusplus
21057"C"
21058#endif
53ba6704 21059#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
5053a6d1
DWT
21060size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21061#else
21062size_t iconv();
21063#endif
21064
21065int
21066main ()
21067{
47aaa820 21068
5053a6d1
DWT
21069 ;
21070 return 0;
21071}
21072_ACEOF
21073if ac_fn_c_try_compile "$LINENO"; then :
21074 am_cv_proto_iconv_arg1=""
21075else
21076 am_cv_proto_iconv_arg1="const"
47aaa820 21077fi
5053a6d1
DWT
21078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21080fi
21081
21082 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12833ad8
JF
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21084 $am_cv_proto_iconv" >&5
21085$as_echo "
21086 $am_cv_proto_iconv" >&6; }
5053a6d1
DWT
21087
21088cat >>confdefs.h <<_ACEOF
21089#define ICONV_CONST $am_cv_proto_iconv_arg1
21090_ACEOF
21091
53ba6704 21092
5053a6d1
DWT
21093 fi
21094
5053a6d1
DWT
21095case $am_cv_func_iconv in #(
21096 yes) :
21097 ;; #(
a667869d 21098 *) :
058f1bc8 21099
66170b30
JF
21100 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
21101 case $cy_iconv_prefix_arg in #(
058f1bc8
DWT
21102 -I*) :
21103
21104
21105 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
21106 haveit=
21107 for x in $cy_iconv_prefixes; do
21108
21109 acl_save_prefix="$prefix"
21110 prefix="$acl_final_prefix"
21111 acl_save_exec_prefix="$exec_prefix"
21112 exec_prefix="$acl_final_exec_prefix"
21113 eval x=\"$x\"
21114 exec_prefix="$acl_save_exec_prefix"
21115 prefix="$acl_save_prefix"
21116
21117 if test "X$x" = "X$element"; then
21118 haveit=yes
21119 break
21120 fi
21121 done
21122 if test -z "$haveit"; then
21123 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21124 fi
21125 done
21126
66170b30 21127 ;; #(
058f1bc8
DWT
21128 -L*) :
21129
21130
21131 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
21132 haveit=
21133 for x in $cy_iconv_prefixes; do
21134
21135 acl_save_prefix="$prefix"
21136 prefix="$acl_final_prefix"
21137 acl_save_exec_prefix="$exec_prefix"
21138 exec_prefix="$acl_final_exec_prefix"
21139 eval x=\"$x\"
21140 exec_prefix="$acl_save_exec_prefix"
21141 prefix="$acl_save_prefix"
21142
21143 if test "X$x" = "X$element"; then
21144 haveit=yes
21145 break
21146 fi
21147 done
21148 if test -z "$haveit"; then
21149 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21150 fi
21151 done
21152
66170b30 21153 ;; #(
058f1bc8
DWT
21154 *) :
21155 ;;
a667869d 21156esac
66170b30
JF
21157 done
21158 for with_libiconv_prefix in $cy_iconv_prefixes; do
21159 { am_cv_func_iconv=; unset am_cv_func_iconv;}
058f1bc8
DWT
21160
21161
21162
21163
21164
21165
21166
21167
12833ad8
JF
21168
21169
21170
058f1bc8
DWT
21171 use_additional=yes
21172
21173 acl_save_prefix="$prefix"
21174 prefix="$acl_final_prefix"
21175 acl_save_exec_prefix="$exec_prefix"
21176 exec_prefix="$acl_final_exec_prefix"
21177
21178 eval additional_includedir=\"$includedir\"
21179 eval additional_libdir=\"$libdir\"
21180
21181 exec_prefix="$acl_save_exec_prefix"
21182 prefix="$acl_save_prefix"
21183
21184
21185# Check whether --with-libiconv-prefix was given.
21186if test "${with_libiconv_prefix+set}" = set; then :
21187 withval=$with_libiconv_prefix;
21188 if test "X$withval" = "Xno"; then
21189 use_additional=no
21190 else
21191 if test "X$withval" = "X"; then
21192
21193 acl_save_prefix="$prefix"
21194 prefix="$acl_final_prefix"
21195 acl_save_exec_prefix="$exec_prefix"
21196 exec_prefix="$acl_final_exec_prefix"
21197
21198 eval additional_includedir=\"$includedir\"
21199 eval additional_libdir=\"$libdir\"
21200
21201 exec_prefix="$acl_save_exec_prefix"
21202 prefix="$acl_save_prefix"
21203
21204 else
21205 additional_includedir="$withval/include"
21206 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
21207 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21208 && ! test -d "$withval/$acl_libdirstem"; then
21209 additional_libdir="$withval/$acl_libdirstem2"
21210 fi
058f1bc8
DWT
21211 fi
21212 fi
21213
21214fi
21215
21216 LIBICONV=
21217 LTLIBICONV=
21218 INCICONV=
21219 LIBICONV_PREFIX=
12833ad8 21220 HAVE_LIBICONV=
058f1bc8
DWT
21221 rpathdirs=
21222 ltrpathdirs=
21223 names_already_handled=
21224 names_next_round='iconv '
21225 while test -n "$names_next_round"; do
21226 names_this_round="$names_next_round"
21227 names_next_round=
21228 for name in $names_this_round; do
21229 already_handled=
21230 for n in $names_already_handled; do
21231 if test "$n" = "$name"; then
21232 already_handled=yes
21233 break
21234 fi
21235 done
21236 if test -z "$already_handled"; then
21237 names_already_handled="$names_already_handled $name"
53ba6704 21238 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
058f1bc8
DWT
21239 eval value=\"\$HAVE_LIB$uppername\"
21240 if test -n "$value"; then
21241 if test "$value" = yes; then
21242 eval value=\"\$LIB$uppername\"
21243 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21244 eval value=\"\$LTLIB$uppername\"
21245 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21246 else
21247 :
21248 fi
21249 else
21250 found_dir=
21251 found_la=
21252 found_so=
21253 found_a=
21254 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21255 if test -n "$acl_shlibext"; then
21256 shrext=".$acl_shlibext" # typically: shrext=.so
21257 else
21258 shrext=
21259 fi
21260 if test $use_additional = yes; then
21261 dir="$additional_libdir"
21262 if test -n "$acl_shlibext"; then
21263 if test -f "$dir/$libname$shrext"; then
21264 found_dir="$dir"
21265 found_so="$dir/$libname$shrext"
21266 else
21267 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21268 ver=`(cd "$dir" && \
21269 for f in "$libname$shrext".*; do echo "$f"; done \
21270 | sed -e "s,^$libname$shrext\\\\.,," \
21271 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21272 | sed 1q ) 2>/dev/null`
21273 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21274 found_dir="$dir"
21275 found_so="$dir/$libname$shrext.$ver"
21276 fi
21277 else
21278 eval library_names=\"$acl_library_names_spec\"
21279 for f in $library_names; do
21280 if test -f "$dir/$f"; then
21281 found_dir="$dir"
21282 found_so="$dir/$f"
21283 break
21284 fi
21285 done
21286 fi
21287 fi
21288 fi
21289 if test "X$found_dir" = "X"; then
21290 if test -f "$dir/$libname.$acl_libext"; then
21291 found_dir="$dir"
21292 found_a="$dir/$libname.$acl_libext"
21293 fi
21294 fi
21295 if test "X$found_dir" != "X"; then
21296 if test -f "$dir/$libname.la"; then
21297 found_la="$dir/$libname.la"
21298 fi
21299 fi
21300 fi
21301 if test "X$found_dir" = "X"; then
21302 for x in $LDFLAGS $LTLIBICONV; do
21303
21304 acl_save_prefix="$prefix"
21305 prefix="$acl_final_prefix"
21306 acl_save_exec_prefix="$exec_prefix"
21307 exec_prefix="$acl_final_exec_prefix"
21308 eval x=\"$x\"
21309 exec_prefix="$acl_save_exec_prefix"
21310 prefix="$acl_save_prefix"
21311
21312 case "$x" in
21313 -L*)
21314 dir=`echo "X$x" | sed -e 's/^X-L//'`
21315 if test -n "$acl_shlibext"; then
21316 if test -f "$dir/$libname$shrext"; then
21317 found_dir="$dir"
21318 found_so="$dir/$libname$shrext"
21319 else
21320 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21321 ver=`(cd "$dir" && \
21322 for f in "$libname$shrext".*; do echo "$f"; done \
21323 | sed -e "s,^$libname$shrext\\\\.,," \
21324 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21325 | sed 1q ) 2>/dev/null`
21326 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21327 found_dir="$dir"
21328 found_so="$dir/$libname$shrext.$ver"
21329 fi
21330 else
21331 eval library_names=\"$acl_library_names_spec\"
21332 for f in $library_names; do
21333 if test -f "$dir/$f"; then
21334 found_dir="$dir"
21335 found_so="$dir/$f"
21336 break
21337 fi
21338 done
21339 fi
21340 fi
21341 fi
21342 if test "X$found_dir" = "X"; then
21343 if test -f "$dir/$libname.$acl_libext"; then
21344 found_dir="$dir"
21345 found_a="$dir/$libname.$acl_libext"
21346 fi
21347 fi
21348 if test "X$found_dir" != "X"; then
21349 if test -f "$dir/$libname.la"; then
21350 found_la="$dir/$libname.la"
21351 fi
21352 fi
21353 ;;
21354 esac
21355 if test "X$found_dir" != "X"; then
21356 break
21357 fi
21358 done
21359 fi
21360 if test "X$found_dir" != "X"; then
21361 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21362 if test "X$found_so" != "X"; then
12833ad8
JF
21363 if test "$enable_rpath" = no \
21364 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21365 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
058f1bc8
DWT
21366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21367 else
21368 haveit=
21369 for x in $ltrpathdirs; do
21370 if test "X$x" = "X$found_dir"; then
21371 haveit=yes
21372 break
21373 fi
21374 done
21375 if test -z "$haveit"; then
21376 ltrpathdirs="$ltrpathdirs $found_dir"
21377 fi
21378 if test "$acl_hardcode_direct" = yes; then
21379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21380 else
21381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21383 haveit=
21384 for x in $rpathdirs; do
21385 if test "X$x" = "X$found_dir"; then
21386 haveit=yes
21387 break
21388 fi
21389 done
21390 if test -z "$haveit"; then
21391 rpathdirs="$rpathdirs $found_dir"
21392 fi
21393 else
21394 haveit=
21395 for x in $LDFLAGS $LIBICONV; do
21396
21397 acl_save_prefix="$prefix"
21398 prefix="$acl_final_prefix"
21399 acl_save_exec_prefix="$exec_prefix"
21400 exec_prefix="$acl_final_exec_prefix"
21401 eval x=\"$x\"
21402 exec_prefix="$acl_save_exec_prefix"
21403 prefix="$acl_save_prefix"
21404
21405 if test "X$x" = "X-L$found_dir"; then
21406 haveit=yes
21407 break
21408 fi
21409 done
21410 if test -z "$haveit"; then
21411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21412 fi
21413 if test "$acl_hardcode_minus_L" != no; then
21414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21415 else
21416 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21417 fi
21418 fi
21419 fi
21420 fi
21421 else
21422 if test "X$found_a" != "X"; then
21423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21424 else
21425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21426 fi
21427 fi
21428 additional_includedir=
21429 case "$found_dir" in
21430 */$acl_libdirstem | */$acl_libdirstem/)
21431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
21432 if test "$name" = 'iconv'; then
21433 LIBICONV_PREFIX="$basedir"
21434 fi
21435 additional_includedir="$basedir/include"
21436 ;;
21437 */$acl_libdirstem2 | */$acl_libdirstem2/)
21438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21439 if test "$name" = 'iconv'; then
21440 LIBICONV_PREFIX="$basedir"
21441 fi
058f1bc8
DWT
21442 additional_includedir="$basedir/include"
21443 ;;
21444 esac
21445 if test "X$additional_includedir" != "X"; then
21446 if test "X$additional_includedir" != "X/usr/include"; then
21447 haveit=
21448 if test "X$additional_includedir" = "X/usr/local/include"; then
21449 if test -n "$GCC"; then
21450 case $host_os in
21451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21452 esac
21453 fi
21454 fi
21455 if test -z "$haveit"; then
21456 for x in $CPPFLAGS $INCICONV; do
21457
21458 acl_save_prefix="$prefix"
21459 prefix="$acl_final_prefix"
21460 acl_save_exec_prefix="$exec_prefix"
21461 exec_prefix="$acl_final_exec_prefix"
21462 eval x=\"$x\"
21463 exec_prefix="$acl_save_exec_prefix"
21464 prefix="$acl_save_prefix"
21465
21466 if test "X$x" = "X-I$additional_includedir"; then
21467 haveit=yes
21468 break
21469 fi
21470 done
21471 if test -z "$haveit"; then
21472 if test -d "$additional_includedir"; then
21473 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21474 fi
21475 fi
21476 fi
21477 fi
21478 fi
21479 if test -n "$found_la"; then
21480 save_libdir="$libdir"
21481 case "$found_la" in
21482 */* | *\\*) . "$found_la" ;;
21483 *) . "./$found_la" ;;
21484 esac
21485 libdir="$save_libdir"
21486 for dep in $dependency_libs; do
21487 case "$dep" in
21488 -L*)
21489 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
21490 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21491 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
058f1bc8 21492 haveit=
12833ad8
JF
21493 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21494 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
058f1bc8
DWT
21495 if test -n "$GCC"; then
21496 case $host_os in
21497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21498 esac
21499 fi
21500 fi
21501 if test -z "$haveit"; then
21502 haveit=
21503 for x in $LDFLAGS $LIBICONV; do
21504
21505 acl_save_prefix="$prefix"
21506 prefix="$acl_final_prefix"
21507 acl_save_exec_prefix="$exec_prefix"
21508 exec_prefix="$acl_final_exec_prefix"
21509 eval x=\"$x\"
21510 exec_prefix="$acl_save_exec_prefix"
21511 prefix="$acl_save_prefix"
21512
21513 if test "X$x" = "X-L$additional_libdir"; then
21514 haveit=yes
21515 break
21516 fi
21517 done
21518 if test -z "$haveit"; then
21519 if test -d "$additional_libdir"; then
21520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21521 fi
21522 fi
21523 haveit=
21524 for x in $LDFLAGS $LTLIBICONV; do
21525
21526 acl_save_prefix="$prefix"
21527 prefix="$acl_final_prefix"
21528 acl_save_exec_prefix="$exec_prefix"
21529 exec_prefix="$acl_final_exec_prefix"
21530 eval x=\"$x\"
21531 exec_prefix="$acl_save_exec_prefix"
21532 prefix="$acl_save_prefix"
21533
21534 if test "X$x" = "X-L$additional_libdir"; then
21535 haveit=yes
21536 break
21537 fi
21538 done
21539 if test -z "$haveit"; then
21540 if test -d "$additional_libdir"; then
21541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21542 fi
21543 fi
21544 fi
21545 fi
21546 ;;
21547 -R*)
21548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21549 if test "$enable_rpath" != no; then
21550 haveit=
21551 for x in $rpathdirs; do
21552 if test "X$x" = "X$dir"; then
21553 haveit=yes
21554 break
21555 fi
21556 done
21557 if test -z "$haveit"; then
21558 rpathdirs="$rpathdirs $dir"
21559 fi
21560 haveit=
21561 for x in $ltrpathdirs; do
21562 if test "X$x" = "X$dir"; then
21563 haveit=yes
21564 break
21565 fi
21566 done
21567 if test -z "$haveit"; then
21568 ltrpathdirs="$ltrpathdirs $dir"
21569 fi
21570 fi
21571 ;;
21572 -l*)
21573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21574 ;;
21575 *.la)
21576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21577 ;;
21578 *)
21579 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21581 ;;
21582 esac
21583 done
21584 fi
21585 else
21586 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21588 fi
21589 fi
21590 fi
21591 done
21592 done
21593 if test "X$rpathdirs" != "X"; then
21594 if test -n "$acl_hardcode_libdir_separator"; then
21595 alldirs=
21596 for found_dir in $rpathdirs; do
21597 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21598 done
21599 acl_save_libdir="$libdir"
21600 libdir="$alldirs"
21601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21602 libdir="$acl_save_libdir"
21603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21604 else
21605 for found_dir in $rpathdirs; do
21606 acl_save_libdir="$libdir"
21607 libdir="$found_dir"
21608 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21609 libdir="$acl_save_libdir"
21610 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21611 done
21612 fi
21613 fi
21614 if test "X$ltrpathdirs" != "X"; then
21615 for found_dir in $ltrpathdirs; do
21616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21617 done
21618 fi
21619
21620
21621
21622
21623
21624
21625
058f1bc8 21626
66170b30 21627 done
058f1bc8
DWT
21628 ;;
21629esac
21630case $am_cv_func_iconv in #(
21631 yes) :
21632 ;; #(
21633 *) :
66170b30 21634 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
058f1bc8
DWT
21635esac
21636ac_ext=cpp
21637ac_cpp='$CXXCPP $CPPFLAGS'
21638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21641
66170b30
JF
21642
21643
9777bd50
JF
21644SO=$acl_shlibext
21645
e1cce270 21646
66170b30 21647ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 21648if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 21649
66170b30 21650 if test -n "$ac_tool_prefix"; then
a243b558 21651 for ac_prog in lipo
794e88e7
DWT
21652 do
21653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21656$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21657if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
21658 $as_echo_n "(cached) " >&6
21659else
a243b558
JF
21660 if test -n "$_LIPO"; then
21661 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
21662else
21663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21664for as_dir in $PATH
21665do
21666 IFS=$as_save_IFS
21667 test -z "$as_dir" && as_dir=.
21668 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21670 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21672 break 2
21673 fi
21674done
21675 done
21676IFS=$as_save_IFS
21677
21678fi
21679fi
a243b558
JF
21680_LIPO=$ac_cv_prog__LIPO
21681if test -n "$_LIPO"; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21683$as_echo "$_LIPO" >&6; }
794e88e7
DWT
21684else
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686$as_echo "no" >&6; }
21687fi
21688
21689
a243b558 21690 test -n "$_LIPO" && break
794e88e7
DWT
21691 done
21692fi
a243b558
JF
21693if test -z "$_LIPO"; then
21694 ac_ct__LIPO=$_LIPO
21695 for ac_prog in lipo
794e88e7
DWT
21696do
21697 # Extract the first word of "$ac_prog", so it can be a program name with args.
21698set dummy $ac_prog; ac_word=$2
21699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21700$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21701if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
21702 $as_echo_n "(cached) " >&6
21703else
a243b558
JF
21704 if test -n "$ac_ct__LIPO"; then
21705 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
21706else
21707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21708for as_dir in $PATH
21709do
21710 IFS=$as_save_IFS
21711 test -z "$as_dir" && as_dir=.
21712 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21714 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
21715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21716 break 2
21717 fi
21718done
21719 done
21720IFS=$as_save_IFS
21721
21722fi
21723fi
a243b558
JF
21724ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21725if test -n "$ac_ct__LIPO"; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21727$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
21728else
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730$as_echo "no" >&6; }
21731fi
21732
21733
a243b558 21734 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
21735done
21736
a243b558
JF
21737 if test "x$ac_ct__LIPO" = x; then
21738 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
21739 else
21740 case $cross_compiling:$ac_tool_warned in
21741yes:)
21742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21744ac_tool_warned=yes ;;
e1cce270 21745esac
a243b558 21746 _LIPO=$ac_ct__LIPO
794e88e7
DWT
21747 fi
21748fi
21749
66170b30 21750 if test -n "$ac_tool_prefix"; then
a243b558 21751 for ac_prog in nm
794e88e7
DWT
21752 do
21753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21756$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21757if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
21758 $as_echo_n "(cached) " >&6
21759else
a243b558
JF
21760 if test -n "$_NM"; then
21761 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
21762else
21763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21764for as_dir in $PATH
21765do
21766 IFS=$as_save_IFS
21767 test -z "$as_dir" && as_dir=.
21768 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21770 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21772 break 2
21773 fi
21774done
21775 done
21776IFS=$as_save_IFS
21777
21778fi
21779fi
a243b558
JF
21780_NM=$ac_cv_prog__NM
21781if test -n "$_NM"; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21783$as_echo "$_NM" >&6; }
794e88e7
DWT
21784else
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786$as_echo "no" >&6; }
21787fi
21788
21789
a243b558 21790 test -n "$_NM" && break
794e88e7
DWT
21791 done
21792fi
a243b558
JF
21793if test -z "$_NM"; then
21794 ac_ct__NM=$_NM
21795 for ac_prog in nm
794e88e7
DWT
21796do
21797 # Extract the first word of "$ac_prog", so it can be a program name with args.
21798set dummy $ac_prog; ac_word=$2
21799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21801if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
21802 $as_echo_n "(cached) " >&6
21803else
a243b558
JF
21804 if test -n "$ac_ct__NM"; then
21805 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
21806else
21807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21808for as_dir in $PATH
21809do
21810 IFS=$as_save_IFS
21811 test -z "$as_dir" && as_dir=.
21812 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21814 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
21815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21816 break 2
21817 fi
21818done
21819 done
21820IFS=$as_save_IFS
21821
21822fi
21823fi
a243b558
JF
21824ac_ct__NM=$ac_cv_prog_ac_ct__NM
21825if test -n "$ac_ct__NM"; then
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21827$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
21828else
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830$as_echo "no" >&6; }
21831fi
21832
21833
a243b558 21834 test -n "$ac_ct__NM" && break
794e88e7
DWT
21835done
21836
a243b558
JF
21837 if test "x$ac_ct__NM" = x; then
21838 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
21839 else
21840 case $cross_compiling:$ac_tool_warned in
21841yes:)
21842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21844ac_tool_warned=yes ;;
21845esac
a243b558 21846 _NM=$ac_ct__NM
794e88e7
DWT
21847 fi
21848fi
21849
66170b30 21850 if test -n "$ac_tool_prefix"; then
a243b558 21851 for ac_prog in otool
794e88e7
DWT
21852 do
21853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21856$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21857if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
21858 $as_echo_n "(cached) " >&6
21859else
a243b558
JF
21860 if test -n "$_OTOOL"; then
21861 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
21862else
21863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864for as_dir in $PATH
21865do
21866 IFS=$as_save_IFS
21867 test -z "$as_dir" && as_dir=.
21868 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21870 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21872 break 2
21873 fi
21874done
21875 done
21876IFS=$as_save_IFS
21877
21878fi
21879fi
a243b558
JF
21880_OTOOL=$ac_cv_prog__OTOOL
21881if test -n "$_OTOOL"; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21883$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
21884else
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886$as_echo "no" >&6; }
21887fi
21888
21889
a243b558 21890 test -n "$_OTOOL" && break
794e88e7
DWT
21891 done
21892fi
a243b558
JF
21893if test -z "$_OTOOL"; then
21894 ac_ct__OTOOL=$_OTOOL
21895 for ac_prog in otool
794e88e7
DWT
21896do
21897 # Extract the first word of "$ac_prog", so it can be a program name with args.
21898set dummy $ac_prog; ac_word=$2
21899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21900$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21901if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
21902 $as_echo_n "(cached) " >&6
21903else
a243b558
JF
21904 if test -n "$ac_ct__OTOOL"; then
21905 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
21906else
21907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908for as_dir in $PATH
21909do
21910 IFS=$as_save_IFS
21911 test -z "$as_dir" && as_dir=.
21912 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21914 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
21915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21916 break 2
21917 fi
21918done
21919 done
21920IFS=$as_save_IFS
21921
21922fi
21923fi
a243b558
JF
21924ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21925if test -n "$ac_ct__OTOOL"; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21927$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
21928else
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930$as_echo "no" >&6; }
21931fi
21932
21933
a243b558 21934 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
21935done
21936
a243b558
JF
21937 if test "x$ac_ct__OTOOL" = x; then
21938 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
21939 else
21940 case $cross_compiling:$ac_tool_warned in
21941yes:)
21942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21944ac_tool_warned=yes ;;
21945esac
a243b558 21946 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
21947 fi
21948fi
21949
66170b30 21950 CY_MACH=1
794e88e7 21951
66170b30 21952 CY_ATTACH_GROUP=procmod
794e88e7 21953
e1cce270
DWT
21954
21955fi
21956
21957
21958
a243b558
JF
21959 if test "x$CY_MACH" = x1; then
21960 CY_MACH_TRUE=
21961 CY_MACH_FALSE='#'
21962else
21963 CY_MACH_TRUE='#'
21964 CY_MACH_FALSE=
47aaa820 21965fi
9c60689e 21966
66170b30 21967
a243b558
JF
21968ac_config_files="$ac_config_files Makefile"
21969
9c60689e
DWT
21970cat >confcache <<\_ACEOF
21971# This file is a shell script that caches the results of configure
21972# tests run on this system so they can be shared between configure
21973# scripts and configure runs, see configure's option --config-cache.
21974# It is not useful on other systems. If it contains results you don't
21975# want to keep, you may remove or edit it.
21976#
21977# config.status only pays attention to the cache file if you give it
21978# the --recheck option to rerun configure.
21979#
21980# `ac_cv_env_foo' variables (set or unset) will be overridden when
21981# loading this file, other *unset* `ac_cv_foo' will be assigned the
21982# following values.
21983
21984_ACEOF
21985
21986# The following way of writing the cache mishandles newlines in values,
21987# but we know of no workaround that is simple, portable, and efficient.
21988# So, we kill variables containing newlines.
21989# Ultrix sh set writes to stderr and can't be redirected directly,
21990# and sets the high bit in the cache file unless we assign to the vars.
21991(
21992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21993 eval ac_val=\$$ac_var
21994 case $ac_val in #(
21995 *${as_nl}*)
21996 case $ac_var in #(
21997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21999 esac
22000 case $ac_var in #(
22001 _ | IFS | as_nl) ;; #(
22002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22003 *) { eval $ac_var=; unset $ac_var;} ;;
22004 esac ;;
22005 esac
22006 done
22007
22008 (set) 2>&1 |
22009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22010 *${as_nl}ac_space=\ *)
22011 # `set' does not quote correctly, so add quotes: double-quote
22012 # substitution turns \\\\ into \\, and sed turns \\ into \.
22013 sed -n \
22014 "s/'/'\\\\''/g;
22015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22016 ;; #(
22017 *)
22018 # `set' quotes correctly as required by POSIX, so do not add quotes.
22019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22020 ;;
22021 esac |
22022 sort
22023) |
22024 sed '
22025 /^ac_cv_env_/b end
22026 t clear
22027 :clear
22028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22029 t end
22030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22031 :end' >>confcache
22032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22033 if test -w "$cache_file"; then
ee134472 22034 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22036$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
22037 if test ! -f "$cache_file" || test -h "$cache_file"; then
22038 cat confcache >"$cache_file"
22039 else
22040 case $cache_file in #(
22041 */* | ?:*)
22042 mv -f confcache "$cache_file"$$ &&
22043 mv -f "$cache_file"$$ "$cache_file" ;; #(
22044 *)
22045 mv -f confcache "$cache_file" ;;
22046 esac
22047 fi
22048 fi
9c60689e
DWT
22049 else
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22051$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22052 fi
22053fi
22054rm -f confcache
22055
22056test "x$prefix" = xNONE && prefix=$ac_default_prefix
22057# Let make expand exec_prefix.
22058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22059
22060# Transform confdefs.h into DEFS.
22061# Protect against shell expansion while executing Makefile rules.
22062# Protect against Makefile macro expansion.
22063#
22064# If the first sed substitution is executed (which looks for macros that
22065# take arguments), then branch to the quote section. Otherwise,
22066# look for a macro that doesn't take arguments.
22067ac_script='
22068:mline
22069/\\$/{
22070 N
22071 s,\\\n,,
22072 b mline
22073}
22074t clear
22075:clear
22076s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22077t quote
22078s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22079t quote
22080b any
22081:quote
22082s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22083s/\[/\\&/g
22084s/\]/\\&/g
22085s/\$/$$/g
22086H
22087:any
22088${
22089 g
22090 s/^\n//
22091 s/\n/ /g
22092 p
22093}
22094'
22095DEFS=`sed -n "$ac_script" confdefs.h`
22096
22097
22098ac_libobjs=
22099ac_ltlibobjs=
12833ad8 22100U=
9c60689e
DWT
22101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22102 # 1. Remove the extension, and $U if already installed.
22103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22106 # will be set to the directory where LIBOBJS objects are built.
22107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22109done
22110LIBOBJS=$ac_libobjs
22111
22112LTLIBOBJS=$ac_ltlibobjs
22113
22114
66170b30
JF
22115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22116$as_echo_n "checking that generated files are newer than configure... " >&6; }
22117 if test -n "$am_sleep_pid"; then
22118 # Hide warnings about reused PIDs.
22119 wait $am_sleep_pid 2>/dev/null
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22122$as_echo "done" >&6; }
22123 if test -n "$EXEEXT"; then
22124 am__EXEEXT_TRUE=
22125 am__EXEEXT_FALSE='#'
22126else
22127 am__EXEEXT_TRUE='#'
22128 am__EXEEXT_FALSE=
22129fi
22130
22131if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22132 as_fn_error $? "conditional \"AMDEP\" was never defined.
22133Usually this means the macro was only invoked conditionally." "$LINENO" 5
22134fi
66170b30
JF
22135if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22136 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22137Usually this means the macro was only invoked conditionally." "$LINENO" 5
22138fi
22139if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22140 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22141Usually this means the macro was only invoked conditionally." "$LINENO" 5
22142fi
a243b558
JF
22143if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22144 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22145Usually this means the macro was only invoked conditionally." "$LINENO" 5
22146fi
22147if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22148 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22149Usually this means the macro was only invoked conditionally." "$LINENO" 5
22150fi
22151if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22152 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22153Usually this means the macro was only invoked conditionally." "$LINENO" 5
22154fi
22155if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
22156 as_fn_error $? "conditional \"CY_MACH\" was never defined.
22157Usually this means the macro was only invoked conditionally." "$LINENO" 5
22158fi
9c60689e 22159
ee134472 22160: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
22161ac_write_fail=0
22162ac_clean_files_save=$ac_clean_files
22163ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22164{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22165$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22166as_write_fail=0
22167cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22168#! $SHELL
22169# Generated by $as_me.
22170# Run this file to recreate the current configuration.
22171# Compiler output produced by configure, useful for debugging
22172# configure, is in config.log if it exists.
22173
22174debug=false
22175ac_cs_recheck=false
22176ac_cs_silent=false
22177
22178SHELL=\${CONFIG_SHELL-$SHELL}
22179export SHELL
22180_ASEOF
22181cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22182## -------------------- ##
22183## M4sh Initialization. ##
22184## -------------------- ##
22185
22186# Be more Bourne compatible
22187DUALCASE=1; export DUALCASE # for MKS sh
22188if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22189 emulate sh
22190 NULLCMD=:
22191 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22192 # is contrary to our usage. Disable this feature.
22193 alias -g '${1+"$@"}'='"$@"'
22194 setopt NO_GLOB_SUBST
22195else
22196 case `(set -o) 2>/dev/null` in #(
22197 *posix*) :
22198 set -o posix ;; #(
22199 *) :
22200 ;;
22201esac
22202fi
22203
22204
22205as_nl='
22206'
22207export as_nl
22208# Printing a long string crashes Solaris 7 /usr/bin/printf.
22209as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22210as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22211as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22212# Prefer a ksh shell builtin over an external printf program on Solaris,
22213# but without wasting forks for bash or zsh.
22214if test -z "$BASH_VERSION$ZSH_VERSION" \
22215 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22216 as_echo='print -r --'
22217 as_echo_n='print -rn --'
22218elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22219 as_echo='printf %s\n'
22220 as_echo_n='printf %s'
22221else
22222 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22223 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22224 as_echo_n='/usr/ucb/echo -n'
22225 else
22226 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22227 as_echo_n_body='eval
22228 arg=$1;
22229 case $arg in #(
22230 *"$as_nl"*)
22231 expr "X$arg" : "X\\(.*\\)$as_nl";
22232 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22233 esac;
22234 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22235 '
22236 export as_echo_n_body
22237 as_echo_n='sh -c $as_echo_n_body as_echo'
22238 fi
22239 export as_echo_body
22240 as_echo='sh -c $as_echo_body as_echo'
22241fi
22242
22243# The user is always right.
22244if test "${PATH_SEPARATOR+set}" != set; then
22245 PATH_SEPARATOR=:
22246 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22247 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22248 PATH_SEPARATOR=';'
22249 }
22250fi
22251
22252
22253# IFS
22254# We need space, tab and new line, in precisely that order. Quoting is
22255# there to prevent editors from complaining about space-tab.
22256# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22257# splitting by setting IFS to empty value.)
22258IFS=" "" $as_nl"
22259
22260# Find who we are. Look in the path if we contain no directory separator.
ee134472 22261as_myself=
9c60689e
DWT
22262case $0 in #((
22263 *[\\/]* ) as_myself=$0 ;;
22264 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265for as_dir in $PATH
22266do
22267 IFS=$as_save_IFS
22268 test -z "$as_dir" && as_dir=.
22269 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22270 done
22271IFS=$as_save_IFS
22272
22273 ;;
22274esac
22275# We did not find ourselves, most probably we were run as `sh COMMAND'
22276# in which case we are not to be found in the path.
22277if test "x$as_myself" = x; then
22278 as_myself=$0
22279fi
22280if test ! -f "$as_myself"; then
22281 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22282 exit 1
22283fi
22284
22285# Unset variables that we do not need and which cause bugs (e.g. in
22286# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22287# suppresses any "Segmentation fault" message there. '((' could
22288# trigger a bug in pdksh 5.2.14.
22289for as_var in BASH_ENV ENV MAIL MAILPATH
22290do eval test x\${$as_var+set} = xset \
22291 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22292done
22293PS1='$ '
22294PS2='> '
22295PS4='+ '
22296
22297# NLS nuisances.
22298LC_ALL=C
22299export LC_ALL
22300LANGUAGE=C
22301export LANGUAGE
22302
22303# CDPATH.
22304(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22305
22306
12833ad8
JF
22307# as_fn_error STATUS ERROR [LINENO LOG_FD]
22308# ----------------------------------------
9c60689e
DWT
22309# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22310# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 22311# script with STATUS, using 1 if that was 0.
9c60689e
DWT
22312as_fn_error ()
22313{
12833ad8
JF
22314 as_status=$1; test $as_status -eq 0 && as_status=1
22315 if test "$4"; then
22316 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22317 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 22318 fi
12833ad8 22319 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
22320 as_fn_exit $as_status
22321} # as_fn_error
22322
22323
22324# as_fn_set_status STATUS
22325# -----------------------
22326# Set $? to STATUS, without forking.
22327as_fn_set_status ()
22328{
22329 return $1
22330} # as_fn_set_status
22331
22332# as_fn_exit STATUS
22333# -----------------
22334# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22335as_fn_exit ()
22336{
22337 set +e
22338 as_fn_set_status $1
22339 exit $1
22340} # as_fn_exit
22341
22342# as_fn_unset VAR
22343# ---------------
22344# Portably unset VAR.
22345as_fn_unset ()
22346{
22347 { eval $1=; unset $1;}
22348}
22349as_unset=as_fn_unset
22350# as_fn_append VAR VALUE
22351# ----------------------
22352# Append the text in VALUE to the end of the definition contained in VAR. Take
22353# advantage of any shell optimizations that allow amortized linear growth over
22354# repeated appends, instead of the typical quadratic growth present in naive
22355# implementations.
22356if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22357 eval 'as_fn_append ()
22358 {
22359 eval $1+=\$2
22360 }'
22361else
22362 as_fn_append ()
22363 {
22364 eval $1=\$$1\$2
22365 }
22366fi # as_fn_append
22367
22368# as_fn_arith ARG...
22369# ------------------
22370# Perform arithmetic evaluation on the ARGs, and store the result in the
22371# global $as_val. Take advantage of shells that can avoid forks. The arguments
22372# must be portable across $(()) and expr.
22373if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22374 eval 'as_fn_arith ()
22375 {
22376 as_val=$(( $* ))
22377 }'
22378else
22379 as_fn_arith ()
22380 {
22381 as_val=`expr "$@" || test $? -eq 1`
22382 }
22383fi # as_fn_arith
22384
22385
22386if expr a : '\(a\)' >/dev/null 2>&1 &&
22387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22388 as_expr=expr
22389else
22390 as_expr=false
22391fi
22392
22393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22394 as_basename=basename
22395else
22396 as_basename=false
22397fi
22398
22399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22400 as_dirname=dirname
22401else
22402 as_dirname=false
22403fi
22404
22405as_me=`$as_basename -- "$0" ||
22406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22407 X"$0" : 'X\(//\)$' \| \
22408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22409$as_echo X/"$0" |
22410 sed '/^.*\/\([^/][^/]*\)\/*$/{
22411 s//\1/
22412 q
22413 }
22414 /^X\/\(\/\/\)$/{
22415 s//\1/
22416 q
22417 }
22418 /^X\/\(\/\).*/{
22419 s//\1/
22420 q
22421 }
22422 s/.*/./; q'`
22423
22424# Avoid depending upon Character Ranges.
22425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22428as_cr_digits='0123456789'
22429as_cr_alnum=$as_cr_Letters$as_cr_digits
22430
22431ECHO_C= ECHO_N= ECHO_T=
22432case `echo -n x` in #(((((
22433-n*)
22434 case `echo 'xy\c'` in
22435 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22436 xy) ECHO_C='\c';;
22437 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22438 ECHO_T=' ';;
22439 esac;;
22440*)
22441 ECHO_N='-n';;
22442esac
22443
22444rm -f conf$$ conf$$.exe conf$$.file
22445if test -d conf$$.dir; then
22446 rm -f conf$$.dir/conf$$.file
22447else
22448 rm -f conf$$.dir
22449 mkdir conf$$.dir 2>/dev/null
22450fi
22451if (echo >conf$$.file) 2>/dev/null; then
22452 if ln -s conf$$.file conf$$ 2>/dev/null; then
22453 as_ln_s='ln -s'
22454 # ... but there are two gotchas:
22455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 22457 # In both cases, we have to default to `cp -pR'.
9c60689e 22458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 22459 as_ln_s='cp -pR'
9c60689e
DWT
22460 elif ln conf$$.file conf$$ 2>/dev/null; then
22461 as_ln_s=ln
22462 else
53ba6704 22463 as_ln_s='cp -pR'
9c60689e
DWT
22464 fi
22465else
53ba6704 22466 as_ln_s='cp -pR'
9c60689e
DWT
22467fi
22468rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22469rmdir conf$$.dir 2>/dev/null
22470
22471
22472# as_fn_mkdir_p
22473# -------------
22474# Create "$as_dir" as a directory, including parents if necessary.
22475as_fn_mkdir_p ()
22476{
22477
22478 case $as_dir in #(
22479 -*) as_dir=./$as_dir;;
22480 esac
22481 test -d "$as_dir" || eval $as_mkdir_p || {
22482 as_dirs=
22483 while :; do
22484 case $as_dir in #(
22485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22486 *) as_qdir=$as_dir;;
22487 esac
22488 as_dirs="'$as_qdir' $as_dirs"
22489 as_dir=`$as_dirname -- "$as_dir" ||
22490$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$as_dir" : 'X\(//\)[^/]' \| \
22492 X"$as_dir" : 'X\(//\)$' \| \
22493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22494$as_echo X"$as_dir" |
22495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\(\/\/\)[^/].*/{
22500 s//\1/
22501 q
22502 }
22503 /^X\(\/\/\)$/{
22504 s//\1/
22505 q
22506 }
22507 /^X\(\/\).*/{
22508 s//\1/
22509 q
22510 }
22511 s/.*/./; q'`
22512 test -d "$as_dir" && break
22513 done
22514 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 22515 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
22516
22517
22518} # as_fn_mkdir_p
22519if mkdir -p . 2>/dev/null; then
22520 as_mkdir_p='mkdir -p "$as_dir"'
22521else
22522 test -d ./-p && rmdir ./-p
22523 as_mkdir_p=false
22524fi
22525
53ba6704
JF
22526
22527# as_fn_executable_p FILE
22528# -----------------------
22529# Test if FILE is an executable regular file.
22530as_fn_executable_p ()
22531{
22532 test -f "$1" && test -x "$1"
22533} # as_fn_executable_p
22534as_test_x='test -x'
22535as_executable_p=as_fn_executable_p
9c60689e
DWT
22536
22537# Sed expression to map a string onto a valid CPP name.
22538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22539
22540# Sed expression to map a string onto a valid variable name.
22541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22542
22543
22544exec 6>&1
22545## ----------------------------------- ##
22546## Main body of $CONFIG_STATUS script. ##
22547## ----------------------------------- ##
22548_ASEOF
22549test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22550
22551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22552# Save the log message, to keep $0 and so on meaningful, and to
22553# report actual input values of CONFIG_FILES etc. instead of their
22554# values after options handling.
22555ac_log="
22556This file was extended by Cycript $as_me 0.9, which was
53ba6704 22557generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
22558
22559 CONFIG_FILES = $CONFIG_FILES
22560 CONFIG_HEADERS = $CONFIG_HEADERS
22561 CONFIG_LINKS = $CONFIG_LINKS
22562 CONFIG_COMMANDS = $CONFIG_COMMANDS
22563 $ $0 $@
22564
22565on `(hostname || uname -n) 2>/dev/null | sed 1q`
22566"
22567
22568_ACEOF
22569
22570case $ac_config_files in *"
22571"*) set x $ac_config_files; shift; ac_config_files=$*;;
22572esac
22573
22574
22575
22576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22577# Files that config.status was made for.
22578config_files="$ac_config_files"
22579config_commands="$ac_config_commands"
22580
22581_ACEOF
22582
22583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22584ac_cs_usage="\
22585\`$as_me' instantiates files and other configuration actions
22586from templates according to the current configuration. Unless the files
22587and actions are specified as TAGs, all are instantiated by default.
22588
22589Usage: $0 [OPTION]... [TAG]...
22590
22591 -h, --help print this help, then exit
22592 -V, --version print version number and configuration settings, then exit
22593 --config print configuration, then exit
22594 -q, --quiet, --silent
22595 do not print progress messages
22596 -d, --debug don't remove temporary files
22597 --recheck update $as_me by reconfiguring in the same conditions
22598 --file=FILE[:TEMPLATE]
22599 instantiate the configuration file FILE
22600
22601Configuration files:
22602$config_files
22603
22604Configuration commands:
22605$config_commands
22606
22607Report bugs to <saurik@saurik.com>.
22608Cycript home page: <http://www.cycript.org/>."
22609
22610_ACEOF
22611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22612ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22613ac_cs_version="\\
22614Cycript config.status 0.9
53ba6704 22615configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
22616 with options \\"\$ac_cs_config\\"
22617
53ba6704 22618Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
22619This config.status script is free software; the Free Software Foundation
22620gives unlimited permission to copy, distribute and modify it."
22621
22622ac_pwd='$ac_pwd'
22623srcdir='$srcdir'
22624INSTALL='$INSTALL'
66170b30
JF
22625MKDIR_P='$MKDIR_P'
22626AWK='$AWK'
9c60689e
DWT
22627test -n "\$AWK" || AWK=awk
22628_ACEOF
22629
22630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22631# The default lists apply if the user does not specify any file.
22632ac_need_defaults=:
22633while test $# != 0
22634do
22635 case $1 in
12833ad8 22636 --*=?*)
9c60689e
DWT
22637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22639 ac_shift=:
22640 ;;
12833ad8
JF
22641 --*=)
22642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22643 ac_optarg=
22644 ac_shift=:
22645 ;;
9c60689e
DWT
22646 *)
22647 ac_option=$1
22648 ac_optarg=$2
22649 ac_shift=shift
22650 ;;
22651 esac
22652
22653 case $ac_option in
22654 # Handling of the options.
22655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22656 ac_cs_recheck=: ;;
22657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22658 $as_echo "$ac_cs_version"; exit ;;
22659 --config | --confi | --conf | --con | --co | --c )
22660 $as_echo "$ac_cs_config"; exit ;;
22661 --debug | --debu | --deb | --de | --d | -d )
22662 debug=: ;;
22663 --file | --fil | --fi | --f )
22664 $ac_shift
22665 case $ac_optarg in
22666 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 22667 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
22668 esac
22669 as_fn_append CONFIG_FILES " '$ac_optarg'"
22670 ac_need_defaults=false;;
22671 --he | --h | --help | --hel | -h )
22672 $as_echo "$ac_cs_usage"; exit ;;
22673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22674 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22675 ac_cs_silent=: ;;
22676
22677 # This is an error.
12833ad8 22678 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
22679Try \`$0 --help' for more information." ;;
22680
22681 *) as_fn_append ac_config_targets " $1"
22682 ac_need_defaults=false ;;
22683
22684 esac
22685 shift
22686done
22687
22688ac_configure_extra_args=
22689
22690if $ac_cs_silent; then
22691 exec 6>/dev/null
22692 ac_configure_extra_args="$ac_configure_extra_args --silent"
22693fi
22694
22695_ACEOF
22696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22697if \$ac_cs_recheck; then
53ba6704 22698 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
22699 shift
22700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22701 CONFIG_SHELL='$SHELL'
22702 export CONFIG_SHELL
22703 exec "\$@"
22704fi
22705
22706_ACEOF
22707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22708exec 5>>config.log
22709{
22710 echo
22711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22712## Running $as_me. ##
22713_ASBOX
22714 $as_echo "$ac_log"
22715} >&5
22716
22717_ACEOF
22718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22719#
22720# INIT-COMMANDS
22721#
66170b30 22722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
22723
22724
22725# The HP-UX ksh and POSIX shell print the target directory to stdout
22726# if CDPATH is set.
22727(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22728
22729sed_quote_subst='$sed_quote_subst'
22730double_quote_subst='$double_quote_subst'
22731delay_variable_subst='$delay_variable_subst'
ee134472
JF
22732macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22733macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22734enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22735enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22736pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22737enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22738SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22739ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 22740PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22741host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22742host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22743host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22744build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22745build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22746build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22747SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22748Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22749GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22750EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22751FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22752LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22753NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22754LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22755max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22756ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22757exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22758lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22759lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22760lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22761lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22762lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22763reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22764reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22765OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22766deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22767file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22768file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22769want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22770DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22771sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22772AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22773AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22774archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22775STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22776RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22777old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22778old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22779old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22780lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22781CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22782CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22783compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22784GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22785lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22786lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22787lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22788lt_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"`'
22789nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22790lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22791objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22792MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22793lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22794lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22795lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22796lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22797lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22798need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22799MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22800DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22801NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22802LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22803OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22804OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22805libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22806shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22807extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22808archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22809enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22810export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22811whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22812compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22813old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22814old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22815archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22816archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22817module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22818module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22819with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22820allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22821no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22822hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22823hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22824hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22825hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22826hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22827hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22828hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22829inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22830link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22831always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22832export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22833exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22834include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22835prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22836postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22837file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22838variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22839need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22840need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22841version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22842runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22843shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22844shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22845libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22846library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22847soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22848install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22849postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22850postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22851finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22852finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22853hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22854sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22855sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22856hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22857enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22858enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22859enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22860old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22861striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22862compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22863predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22864postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22865predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22866postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22867compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22868LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22869reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22870reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22871old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22872compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22873GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22874lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22875lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22876lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22877lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22878lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22879archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22880enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22881export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22882whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22883compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22884old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22885old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22886archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22887archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22888module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22889module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22890with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22891allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22892no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22893hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22894hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22895hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22896hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22897hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22898hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22899hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22900inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22901link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22902always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22903export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22904exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22905include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22906prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22907postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22908file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22909hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22910compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22911predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22912postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22913predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22914postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22915compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
22916
22917LTCC='$LTCC'
22918LTCFLAGS='$LTCFLAGS'
22919compiler='$compiler_DEFAULT'
22920
ee134472
JF
22921# A function that is used when there is no print builtin or printf.
22922func_fallback_echo ()
22923{
22924 eval 'cat <<_LTECHO_EOF
22925\$1
22926_LTECHO_EOF'
22927}
22928
9c60689e 22929# Quote evaled strings.
ee134472
JF
22930for var in SHELL \
22931ECHO \
53ba6704 22932PATH_SEPARATOR \
ee134472 22933SED \
9c60689e
DWT
22934GREP \
22935EGREP \
22936FGREP \
22937LD \
22938NM \
22939LN_S \
22940lt_SP2NL \
22941lt_NL2SP \
22942reload_flag \
22943OBJDUMP \
22944deplibs_check_method \
22945file_magic_cmd \
ee134472
JF
22946file_magic_glob \
22947want_nocaseglob \
22948DLLTOOL \
22949sharedlib_from_linklib_cmd \
9c60689e
DWT
22950AR \
22951AR_FLAGS \
ee134472 22952archiver_list_spec \
9c60689e
DWT
22953STRIP \
22954RANLIB \
22955CC \
22956CFLAGS \
22957compiler \
22958lt_cv_sys_global_symbol_pipe \
22959lt_cv_sys_global_symbol_to_cdecl \
22960lt_cv_sys_global_symbol_to_c_name_address \
22961lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 22962nm_file_list_spec \
9c60689e 22963lt_prog_compiler_no_builtin_flag \
9c60689e 22964lt_prog_compiler_pic \
ee134472 22965lt_prog_compiler_wl \
9c60689e
DWT
22966lt_prog_compiler_static \
22967lt_cv_prog_compiler_c_o \
22968need_locks \
ee134472 22969MANIFEST_TOOL \
9c60689e
DWT
22970DSYMUTIL \
22971NMEDIT \
22972LIPO \
22973OTOOL \
22974OTOOL64 \
22975shrext_cmds \
22976export_dynamic_flag_spec \
22977whole_archive_flag_spec \
22978compiler_needs_object \
22979with_gnu_ld \
22980allow_undefined_flag \
22981no_undefined_flag \
22982hardcode_libdir_flag_spec \
9c60689e 22983hardcode_libdir_separator \
9c60689e
DWT
22984exclude_expsyms \
22985include_expsyms \
22986file_list_spec \
22987variables_saved_for_relink \
22988libname_spec \
22989library_names_spec \
22990soname_spec \
ee134472 22991install_override_mode \
9c60689e
DWT
22992finish_eval \
22993old_striplib \
22994striplib \
22995compiler_lib_search_dirs \
22996predep_objects \
22997postdep_objects \
22998predeps \
22999postdeps \
23000compiler_lib_search_path \
23001LD_CXX \
ee134472 23002reload_flag_CXX \
9c60689e
DWT
23003compiler_CXX \
23004lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 23005lt_prog_compiler_pic_CXX \
ee134472 23006lt_prog_compiler_wl_CXX \
9c60689e
DWT
23007lt_prog_compiler_static_CXX \
23008lt_cv_prog_compiler_c_o_CXX \
23009export_dynamic_flag_spec_CXX \
23010whole_archive_flag_spec_CXX \
23011compiler_needs_object_CXX \
23012with_gnu_ld_CXX \
23013allow_undefined_flag_CXX \
23014no_undefined_flag_CXX \
23015hardcode_libdir_flag_spec_CXX \
9c60689e 23016hardcode_libdir_separator_CXX \
9c60689e
DWT
23017exclude_expsyms_CXX \
23018include_expsyms_CXX \
23019file_list_spec_CXX \
23020compiler_lib_search_dirs_CXX \
23021predep_objects_CXX \
23022postdep_objects_CXX \
23023predeps_CXX \
23024postdeps_CXX \
23025compiler_lib_search_path_CXX; do
ee134472 23026 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 23027 *[\\\\\\\`\\"\\\$]*)
ee134472 23028 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
23029 ;;
23030 *)
23031 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23032 ;;
23033 esac
23034done
23035
23036# Double-quote double-evaled strings.
23037for var in reload_cmds \
23038old_postinstall_cmds \
23039old_postuninstall_cmds \
23040old_archive_cmds \
23041extract_expsyms_cmds \
23042old_archive_from_new_cmds \
23043old_archive_from_expsyms_cmds \
23044archive_cmds \
23045archive_expsym_cmds \
23046module_cmds \
23047module_expsym_cmds \
23048export_symbols_cmds \
23049prelink_cmds \
ee134472 23050postlink_cmds \
9c60689e
DWT
23051postinstall_cmds \
23052postuninstall_cmds \
23053finish_cmds \
23054sys_lib_search_path_spec \
23055sys_lib_dlsearch_path_spec \
ee134472 23056reload_cmds_CXX \
9c60689e
DWT
23057old_archive_cmds_CXX \
23058old_archive_from_new_cmds_CXX \
23059old_archive_from_expsyms_cmds_CXX \
23060archive_cmds_CXX \
23061archive_expsym_cmds_CXX \
23062module_cmds_CXX \
23063module_expsym_cmds_CXX \
23064export_symbols_cmds_CXX \
ee134472
JF
23065prelink_cmds_CXX \
23066postlink_cmds_CXX; do
23067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 23068 *[\\\\\\\`\\"\\\$]*)
ee134472 23069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
23070 ;;
23071 *)
23072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23073 ;;
23074 esac
23075done
23076
9c60689e
DWT
23077ac_aux_dir='$ac_aux_dir'
23078xsi_shell='$xsi_shell'
23079lt_shell_append='$lt_shell_append'
23080
23081# See if we are running on zsh, and set the options which allow our
23082# commands through without removal of \ escapes INIT.
23083if test -n "\${ZSH_VERSION+set}" ; then
23084 setopt NO_GLOB_SUBST
23085fi
23086
23087
23088 PACKAGE='$PACKAGE'
23089 VERSION='$VERSION'
23090 TIMESTAMP='$TIMESTAMP'
23091 RM='$RM'
23092 ofile='$ofile'
23093
23094
23095
23096
23097
23098
23099_ACEOF
23100
23101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23102
23103# Handling of arguments.
23104for ac_config_target in $ac_config_targets
23105do
23106 case $ac_config_target in
66170b30 23107 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 23108 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 23109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 23110
ee134472 23111 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
23112 esac
23113done
23114
23115
23116# If the user did not use the arguments to specify the items to instantiate,
23117# then the envvar interface is used. Set only those that are not.
23118# We use the long form for the default assignment because of an extremely
23119# bizarre bug on SunOS 4.1.3.
23120if $ac_need_defaults; then
23121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23122 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23123fi
23124
23125# Have a temporary directory for convenience. Make it in the build tree
23126# simply because there is no reason against having it here, and in addition,
23127# creating and moving files from /tmp can sometimes cause problems.
23128# Hook for its removal unless debugging.
23129# Note that there is a small window in which the directory will not be cleaned:
23130# after its creation but before its name has been assigned to `$tmp'.
23131$debug ||
23132{
ee134472 23133 tmp= ac_tmp=
9c60689e 23134 trap 'exit_status=$?
ee134472
JF
23135 : "${ac_tmp:=$tmp}"
23136 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
23137' 0
23138 trap 'as_fn_exit 1' 1 2 13 15
23139}
23140# Create a (secure) tmp directory for tmp files.
23141
23142{
23143 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 23144 test -d "$tmp"
9c60689e
DWT
23145} ||
23146{
23147 tmp=./conf$$-$RANDOM
23148 (umask 077 && mkdir "$tmp")
12833ad8 23149} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 23150ac_tmp=$tmp
9c60689e
DWT
23151
23152# Set up the scripts for CONFIG_FILES section.
23153# No need to generate them if there are no CONFIG_FILES.
23154# This happens for instance with `./config.status config.h'.
23155if test -n "$CONFIG_FILES"; then
23156
23157
23158ac_cr=`echo X | tr X '\015'`
23159# On cygwin, bash can eat \r inside `` if the user requested igncr.
23160# But we know of no other shell where ac_cr would be empty at this
23161# point, so we can use a bashism as a fallback.
23162if test "x$ac_cr" = x; then
23163 eval ac_cr=\$\'\\r\'
23164fi
23165ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23166if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 23167 ac_cs_awk_cr='\\r'
9c60689e
DWT
23168else
23169 ac_cs_awk_cr=$ac_cr
23170fi
23171
ee134472 23172echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
23173_ACEOF
23174
23175
23176{
23177 echo "cat >conf$$subs.awk <<_ACEOF" &&
23178 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23179 echo "_ACEOF"
23180} >conf$$subs.sh ||
12833ad8
JF
23181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23182ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
23183ac_delim='%!_!# '
23184for ac_last_try in false false false false false :; do
23185 . ./conf$$subs.sh ||
12833ad8 23186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23187
23188 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23189 if test $ac_delim_n = $ac_delim_num; then
23190 break
23191 elif $ac_last_try; then
12833ad8 23192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23193 else
23194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23195 fi
23196done
23197rm -f conf$$subs.sh
23198
23199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 23200cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
23201_ACEOF
23202sed -n '
23203h
23204s/^/S["/; s/!.*/"]=/
23205p
23206g
23207s/^[^!]*!//
23208:repl
23209t repl
23210s/'"$ac_delim"'$//
23211t delim
23212:nl
23213h
23214s/\(.\{148\}\)..*/\1/
23215t more1
23216s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23217p
23218n
23219b repl
23220:more1
23221s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23222p
23223g
23224s/.\{148\}//
23225t nl
23226:delim
23227h
23228s/\(.\{148\}\)..*/\1/
23229t more2
23230s/["\\]/\\&/g; s/^/"/; s/$/"/
23231p
23232b
23233:more2
23234s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23235p
23236g
23237s/.\{148\}//
23238t delim
23239' <conf$$subs.awk | sed '
23240/^[^""]/{
23241 N
23242 s/\n//
23243}
23244' >>$CONFIG_STATUS || ac_write_fail=1
23245rm -f conf$$subs.awk
23246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23247_ACAWK
ee134472 23248cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
23249 for (key in S) S_is_set[key] = 1
23250 FS = "\a"
23251
23252}
23253{
23254 line = $ 0
23255 nfields = split(line, field, "@")
23256 substed = 0
23257 len = length(field[1])
23258 for (i = 2; i < nfields; i++) {
23259 key = field[i]
23260 keylen = length(key)
23261 if (S_is_set[key]) {
23262 value = S[key]
23263 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23264 len += length(value) + length(field[++i])
23265 substed = 1
23266 } else
23267 len += 1 + keylen
23268 }
23269
23270 print line
23271}
23272
23273_ACAWK
23274_ACEOF
23275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23276if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23278else
23279 cat
ee134472 23280fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 23281 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
23282_ACEOF
23283
12833ad8
JF
23284# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23285# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
23286# trailing colons and then remove the whole line if VPATH becomes empty
23287# (actually we leave an empty line to preserve line numbers).
23288if test "x$srcdir" = x.; then
12833ad8
JF
23289 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23290h
23291s///
23292s/^/:/
23293s/[ ]*$/:/
23294s/:\$(srcdir):/:/g
23295s/:\${srcdir}:/:/g
23296s/:@srcdir@:/:/g
23297s/^:*//
9c60689e 23298s/:*$//
12833ad8
JF
23299x
23300s/\(=[ ]*\).*/\1/
23301G
23302s/\n//
9c60689e
DWT
23303s/^[^=]*=[ ]*$//
23304}'
23305fi
23306
23307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23308fi # test -n "$CONFIG_FILES"
23309
23310
23311eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
23312shift
23313for ac_tag
23314do
23315 case $ac_tag in
23316 :[FHLC]) ac_mode=$ac_tag; continue;;
23317 esac
23318 case $ac_mode$ac_tag in
23319 :[FHL]*:*);;
ee134472 23320 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
23321 :[FH]-) ac_tag=-:-;;
23322 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23323 esac
23324 ac_save_IFS=$IFS
23325 IFS=:
23326 set x $ac_tag
23327 IFS=$ac_save_IFS
23328 shift
23329 ac_file=$1
23330 shift
23331
23332 case $ac_mode in
23333 :L) ac_source=$1;;
23334 :[FH])
23335 ac_file_inputs=
23336 for ac_f
23337 do
23338 case $ac_f in
ee134472 23339 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
23340 *) # Look for the file first in the build tree, then in the source tree
23341 # (if the path is not absolute). The absolute path cannot be DOS-style,
23342 # because $ac_f cannot contain `:'.
23343 test -f "$ac_f" ||
23344 case $ac_f in
23345 [\\/$]*) false;;
23346 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23347 esac ||
ee134472 23348 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
23349 esac
23350 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23351 as_fn_append ac_file_inputs " '$ac_f'"
23352 done
23353
23354 # Let's still pretend it is `configure' which instantiates (i.e., don't
23355 # use $as_me), people would be surprised to read:
23356 # /* config.h. Generated by config.status. */
23357 configure_input='Generated from '`
23358 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23359 `' by configure.'
23360 if test x"$ac_file" != x-; then
23361 configure_input="$ac_file. $configure_input"
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23363$as_echo "$as_me: creating $ac_file" >&6;}
23364 fi
23365 # Neutralize special characters interpreted by sed in replacement strings.
23366 case $configure_input in #(
23367 *\&* | *\|* | *\\* )
23368 ac_sed_conf_input=`$as_echo "$configure_input" |
23369 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23370 *) ac_sed_conf_input=$configure_input;;
23371 esac
23372
23373 case $ac_tag in
ee134472
JF
23374 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
23376 esac
23377 ;;
23378 esac
23379
23380 ac_dir=`$as_dirname -- "$ac_file" ||
23381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23382 X"$ac_file" : 'X\(//\)[^/]' \| \
23383 X"$ac_file" : 'X\(//\)$' \| \
23384 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23385$as_echo X"$ac_file" |
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23387 s//\1/
23388 q
23389 }
23390 /^X\(\/\/\)[^/].*/{
23391 s//\1/
23392 q
23393 }
23394 /^X\(\/\/\)$/{
23395 s//\1/
23396 q
23397 }
23398 /^X\(\/\).*/{
23399 s//\1/
23400 q
23401 }
23402 s/.*/./; q'`
23403 as_dir="$ac_dir"; as_fn_mkdir_p
23404 ac_builddir=.
23405
23406case "$ac_dir" in
23407.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23408*)
23409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23410 # A ".." for each directory in $ac_dir_suffix.
23411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23412 case $ac_top_builddir_sub in
23413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23415 esac ;;
23416esac
23417ac_abs_top_builddir=$ac_pwd
23418ac_abs_builddir=$ac_pwd$ac_dir_suffix
23419# for backward compatibility:
23420ac_top_builddir=$ac_top_build_prefix
35fa52c0 23421
9c60689e
DWT
23422case $srcdir in
23423 .) # We are building in place.
23424 ac_srcdir=.
23425 ac_top_srcdir=$ac_top_builddir_sub
23426 ac_abs_top_srcdir=$ac_pwd ;;
23427 [\\/]* | ?:[\\/]* ) # Absolute name.
23428 ac_srcdir=$srcdir$ac_dir_suffix;
23429 ac_top_srcdir=$srcdir
23430 ac_abs_top_srcdir=$srcdir ;;
23431 *) # Relative name.
23432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23433 ac_top_srcdir=$ac_top_build_prefix$srcdir
23434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23435esac
23436ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
23437
23438
9c60689e
DWT
23439 case $ac_mode in
23440 :F)
23441 #
23442 # CONFIG_FILE
23443 #
35fa52c0 23444
9c60689e
DWT
23445 case $INSTALL in
23446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23448 esac
66170b30
JF
23449 ac_MKDIR_P=$MKDIR_P
23450 case $MKDIR_P in
23451 [\\/$]* | ?:[\\/]* ) ;;
23452 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23453 esac
9c60689e 23454_ACEOF
35fa52c0 23455
9c60689e
DWT
23456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23457# If the template does not know about datarootdir, expand it.
23458# FIXME: This hack should be removed a few years after 2.60.
23459ac_datarootdir_hack=; ac_datarootdir_seen=
23460ac_sed_dataroot='
23461/datarootdir/ {
23462 p
23463 q
23464}
23465/@datadir@/p
23466/@docdir@/p
23467/@infodir@/p
23468/@localedir@/p
23469/@mandir@/p'
23470case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23471*datarootdir*) ac_datarootdir_seen=yes;;
23472*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23474$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23475_ACEOF
23476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23477 ac_datarootdir_hack='
23478 s&@datadir@&$datadir&g
23479 s&@docdir@&$docdir&g
23480 s&@infodir@&$infodir&g
23481 s&@localedir@&$localedir&g
23482 s&@mandir@&$mandir&g
23483 s&\\\${datarootdir}&$datarootdir&g' ;;
23484esac
23485_ACEOF
35fa52c0 23486
9c60689e
DWT
23487# Neutralize VPATH when `$srcdir' = `.'.
23488# Shell code in configure.ac might set extrasub.
23489# FIXME: do we really want to maintain this feature?
23490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23491ac_sed_extra="$ac_vpsub
23492$extrasub
23493_ACEOF
23494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23495:t
23496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23497s|@configure_input@|$ac_sed_conf_input|;t t
23498s&@top_builddir@&$ac_top_builddir_sub&;t t
23499s&@top_build_prefix@&$ac_top_build_prefix&;t t
23500s&@srcdir@&$ac_srcdir&;t t
23501s&@abs_srcdir@&$ac_abs_srcdir&;t t
23502s&@top_srcdir@&$ac_top_srcdir&;t t
23503s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23504s&@builddir@&$ac_builddir&;t t
23505s&@abs_builddir@&$ac_abs_builddir&;t t
23506s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23507s&@INSTALL@&$ac_INSTALL&;t t
66170b30 23508s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
23509$ac_datarootdir_hack
23510"
ee134472
JF
23511eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23512 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
23513
23514test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
23515 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23517 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23519which seems to be undefined. Please make sure it is defined" >&5
9c60689e 23520$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23521which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 23522
ee134472 23523 rm -f "$ac_tmp/stdin"
9c60689e 23524 case $ac_file in
ee134472
JF
23525 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23526 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 23527 esac \
12833ad8 23528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 23529 ;;
35fa52c0 23530
35fa52c0 23531
9c60689e
DWT
23532 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23533$as_echo "$as_me: executing $ac_file commands" >&6;}
23534 ;;
23535 esac
35fa52c0 23536
35fa52c0 23537
9c60689e 23538 case $ac_file$ac_mode in
66170b30
JF
23539 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23540 # Older Autoconf quotes --file arguments for eval, but not when files
23541 # are listed without --file. Let's play safe and only enable the eval
23542 # if we detect the quoting.
23543 case $CONFIG_FILES in
23544 *\'*) eval set x "$CONFIG_FILES" ;;
23545 *) set x $CONFIG_FILES ;;
23546 esac
23547 shift
23548 for mf
23549 do
23550 # Strip MF so we end up with the name of the file.
23551 mf=`echo "$mf" | sed -e 's/:.*$//'`
23552 # Check whether this is an Automake generated Makefile or not.
23553 # We used to match only the files named 'Makefile.in', but
23554 # some people rename them; so instead we look at the file content.
23555 # Grep'ing the first line is not enough: some people post-process
23556 # each Makefile.in and add a new line on top of each file to say so.
23557 # Grep'ing the whole file is not good either: AIX grep has a line
23558 # limit of 2048, but all sed's we know have understand at least 4000.
23559 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23560 dirpart=`$as_dirname -- "$mf" ||
23561$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23562 X"$mf" : 'X\(//\)[^/]' \| \
23563 X"$mf" : 'X\(//\)$' \| \
23564 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23565$as_echo X"$mf" |
23566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23567 s//\1/
23568 q
23569 }
23570 /^X\(\/\/\)[^/].*/{
23571 s//\1/
23572 q
23573 }
23574 /^X\(\/\/\)$/{
23575 s//\1/
23576 q
23577 }
23578 /^X\(\/\).*/{
23579 s//\1/
23580 q
23581 }
23582 s/.*/./; q'`
23583 else
23584 continue
23585 fi
23586 # Extract the definition of DEPDIR, am__include, and am__quote
23587 # from the Makefile without running 'make'.
23588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23589 test -z "$DEPDIR" && continue
23590 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23591 test -z "am__include" && continue
23592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23593 # Find all dependency output files, they are included files with
23594 # $(DEPDIR) in their names. We invoke sed twice because it is the
23595 # simplest approach to changing $(DEPDIR) to its actual value in the
23596 # expansion.
23597 for file in `sed -n "
23598 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23599 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23600 # Make sure the directory exists.
23601 test -f "$dirpart/$file" && continue
23602 fdir=`$as_dirname -- "$file" ||
23603$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23604 X"$file" : 'X\(//\)[^/]' \| \
23605 X"$file" : 'X\(//\)$' \| \
23606 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23607$as_echo X"$file" |
23608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23609 s//\1/
23610 q
23611 }
23612 /^X\(\/\/\)[^/].*/{
23613 s//\1/
23614 q
23615 }
23616 /^X\(\/\/\)$/{
23617 s//\1/
23618 q
23619 }
23620 /^X\(\/\).*/{
23621 s//\1/
23622 q
23623 }
23624 s/.*/./; q'`
23625 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23626 # echo "creating $dirpart/$file"
23627 echo '# dummy' > "$dirpart/$file"
23628 done
23629 done
23630}
23631 ;;
9c60689e
DWT
23632 "libtool":C)
23633
23634 # See if we are running on zsh, and set the options which allow our
23635 # commands through without removal of \ escapes.
23636 if test -n "${ZSH_VERSION+set}" ; then
23637 setopt NO_GLOB_SUBST
35fa52c0 23638 fi
35fa52c0 23639
9c60689e
DWT
23640 cfgfile="${ofile}T"
23641 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23642 $RM "$cfgfile"
35fa52c0 23643
9c60689e
DWT
23644 cat <<_LT_EOF >> "$cfgfile"
23645#! $SHELL
35fa52c0 23646
9c60689e
DWT
23647# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23648# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23649# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23650# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23651#
23652# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
23653# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23654# Foundation, Inc.
9c60689e
DWT
23655# Written by Gordon Matzigkeit, 1996
23656#
23657# This file is part of GNU Libtool.
23658#
23659# GNU Libtool is free software; you can redistribute it and/or
23660# modify it under the terms of the GNU General Public License as
23661# published by the Free Software Foundation; either version 2 of
23662# the License, or (at your option) any later version.
23663#
23664# As a special exception to the GNU General Public License,
23665# if you distribute this file as part of a program or library that
23666# is built using GNU Libtool, you may include this file under the
23667# same distribution terms that you use for the rest of that program.
23668#
23669# GNU Libtool is distributed in the hope that it will be useful,
23670# but WITHOUT ANY WARRANTY; without even the implied warranty of
23671# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23672# GNU General Public License for more details.
23673#
23674# You should have received a copy of the GNU General Public License
23675# along with GNU Libtool; see the file COPYING. If not, a copy
23676# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23677# obtained by writing to the Free Software Foundation, Inc.,
23678# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 23679
35fa52c0 23680
9c60689e
DWT
23681# The names of the tagged configurations supported by this script.
23682available_tags="CXX "
35fa52c0 23683
9c60689e 23684# ### BEGIN LIBTOOL CONFIG
35fa52c0 23685
9c60689e
DWT
23686# Which release of libtool.m4 was used?
23687macro_version=$macro_version
23688macro_revision=$macro_revision
35fa52c0 23689
9c60689e
DWT
23690# Whether or not to build static libraries.
23691build_old_libs=$enable_static
35fa52c0 23692
549f29b5
DWT
23693# Whether or not to build shared libraries.
23694build_libtool_libs=$enable_shared
23695
9c60689e
DWT
23696# What type of objects to build.
23697pic_mode=$pic_mode
35fa52c0 23698
9c60689e
DWT
23699# Whether or not to optimize for fast installation.
23700fast_install=$enable_fast_install
35fa52c0 23701
ee134472
JF
23702# Shell to use when invoking shell scripts.
23703SHELL=$lt_SHELL
23704
23705# An echo program that protects backslashes.
23706ECHO=$lt_ECHO
23707
53ba6704
JF
23708# The PATH separator for the build system.
23709PATH_SEPARATOR=$lt_PATH_SEPARATOR
23710
9c60689e
DWT
23711# The host system.
23712host_alias=$host_alias
23713host=$host
23714host_os=$host_os
35fa52c0 23715
9c60689e
DWT
23716# The build system.
23717build_alias=$build_alias
23718build=$build
23719build_os=$build_os
23720
23721# A sed program that does not truncate output.
23722SED=$lt_SED
23723
23724# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23725Xsed="\$SED -e 1s/^X//"
23726
23727# A grep program that handles long lines.
23728GREP=$lt_GREP
23729
23730# An ERE matcher.
23731EGREP=$lt_EGREP
23732
23733# A literal string matcher.
23734FGREP=$lt_FGREP
23735
23736# A BSD- or MS-compatible name lister.
23737NM=$lt_NM
23738
23739# Whether we need soft or hard links.
23740LN_S=$lt_LN_S
23741
23742# What is the maximum length of a command?
23743max_cmd_len=$max_cmd_len
23744
23745# Object file suffix (normally "o").
23746objext=$ac_objext
23747
23748# Executable file suffix (normally "").
23749exeext=$exeext
23750
23751# whether the shell understands "unset".
23752lt_unset=$lt_unset
23753
23754# turn spaces into newlines.
23755SP2NL=$lt_lt_SP2NL
23756
23757# turn newlines into spaces.
23758NL2SP=$lt_lt_NL2SP
23759
ee134472
JF
23760# convert \$build file names to \$host format.
23761to_host_file_cmd=$lt_cv_to_host_file_cmd
23762
23763# convert \$build files to toolchain format.
23764to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
23765
23766# An object symbol dumper.
23767OBJDUMP=$lt_OBJDUMP
23768
23769# Method to check whether dependent libraries are shared objects.
23770deplibs_check_method=$lt_deplibs_check_method
23771
ee134472 23772# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
23773file_magic_cmd=$lt_file_magic_cmd
23774
ee134472
JF
23775# How to find potential files when deplibs_check_method = "file_magic".
23776file_magic_glob=$lt_file_magic_glob
23777
23778# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23779want_nocaseglob=$lt_want_nocaseglob
23780
23781# DLL creation program.
23782DLLTOOL=$lt_DLLTOOL
23783
23784# Command to associate shared and link libraries.
23785sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23786
9c60689e
DWT
23787# The archiver.
23788AR=$lt_AR
ee134472
JF
23789
23790# Flags to create an archive.
9c60689e
DWT
23791AR_FLAGS=$lt_AR_FLAGS
23792
ee134472
JF
23793# How to feed a file listing to the archiver.
23794archiver_list_spec=$lt_archiver_list_spec
23795
9c60689e
DWT
23796# A symbol stripping program.
23797STRIP=$lt_STRIP
23798
23799# Commands used to install an old-style archive.
23800RANLIB=$lt_RANLIB
23801old_postinstall_cmds=$lt_old_postinstall_cmds
23802old_postuninstall_cmds=$lt_old_postuninstall_cmds
23803
ee134472
JF
23804# Whether to use a lock for old archive extraction.
23805lock_old_archive_extraction=$lock_old_archive_extraction
23806
9c60689e
DWT
23807# A C compiler.
23808LTCC=$lt_CC
23809
23810# LTCC compiler flags.
23811LTCFLAGS=$lt_CFLAGS
23812
23813# Take the output of nm and produce a listing of raw symbols and C names.
23814global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23815
23816# Transform the output of nm in a proper C declaration.
23817global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23818
23819# Transform the output of nm in a C name address pair.
23820global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23821
23822# Transform the output of nm in a C name address pair when lib prefix is needed.
23823global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23824
ee134472
JF
23825# Specify filename containing input files for \$NM.
23826nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 23827
ee134472
JF
23828# The root where to search for dependent libraries,and in which our libraries should be installed.
23829lt_sysroot=$lt_sysroot
9c60689e 23830
ee134472
JF
23831# The name of the directory that contains temporary libtool files.
23832objdir=$objdir
9c60689e
DWT
23833
23834# Used to examine libraries when file_magic_cmd begins with "file".
23835MAGIC_CMD=$MAGIC_CMD
23836
23837# Must we lock files when doing compilation?
23838need_locks=$lt_need_locks
23839
ee134472
JF
23840# Manifest tool.
23841MANIFEST_TOOL=$lt_MANIFEST_TOOL
23842
9c60689e
DWT
23843# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23844DSYMUTIL=$lt_DSYMUTIL
23845
23846# Tool to change global to local symbols on Mac OS X.
23847NMEDIT=$lt_NMEDIT
23848
23849# Tool to manipulate fat objects and archives on Mac OS X.
23850LIPO=$lt_LIPO
23851
23852# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23853OTOOL=$lt_OTOOL
23854
23855# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23856OTOOL64=$lt_OTOOL64
23857
23858# Old archive suffix (normally "a").
23859libext=$libext
23860
23861# Shared library suffix (normally ".so").
23862shrext_cmds=$lt_shrext_cmds
35fa52c0 23863
9c60689e
DWT
23864# The commands to extract the exported symbol list from a shared archive.
23865extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23866
9c60689e
DWT
23867# Variables whose values should be saved in libtool wrapper scripts and
23868# restored at link time.
23869variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23870
9c60689e
DWT
23871# Do we need the "lib" prefix for modules?
23872need_lib_prefix=$need_lib_prefix
35fa52c0 23873
9c60689e
DWT
23874# Do we need a version for libraries?
23875need_version=$need_version
35fa52c0 23876
9c60689e
DWT
23877# Library versioning type.
23878version_type=$version_type
35fa52c0 23879
9c60689e
DWT
23880# Shared library runtime path variable.
23881runpath_var=$runpath_var
35fa52c0 23882
9c60689e
DWT
23883# Shared library path variable.
23884shlibpath_var=$shlibpath_var
35fa52c0 23885
9c60689e
DWT
23886# Is shlibpath searched before the hard-coded library search path?
23887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23888
9c60689e
DWT
23889# Format of library name prefix.
23890libname_spec=$lt_libname_spec
35fa52c0 23891
9c60689e
DWT
23892# List of archive names. First name is the real one, the rest are links.
23893# The last name is the one that the linker finds with -lNAME
23894library_names_spec=$lt_library_names_spec
dbadc56a 23895
9c60689e
DWT
23896# The coded name of the library, if different from the real name.
23897soname_spec=$lt_soname_spec
dbadc56a 23898
ee134472
JF
23899# Permission mode override for installation of shared libraries.
23900install_override_mode=$lt_install_override_mode
23901
9c60689e
DWT
23902# Command to use after installation of a shared archive.
23903postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23904
9c60689e
DWT
23905# Command to use after uninstallation of a shared archive.
23906postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23907
9c60689e
DWT
23908# Commands used to finish a libtool library installation in a directory.
23909finish_cmds=$lt_finish_cmds
35fa52c0 23910
9c60689e
DWT
23911# As "finish_cmds", except a single script fragment to be evaled but
23912# not shown.
23913finish_eval=$lt_finish_eval
35fa52c0 23914
9c60689e
DWT
23915# Whether we should hardcode library paths into libraries.
23916hardcode_into_libs=$hardcode_into_libs
dbadc56a 23917
9c60689e
DWT
23918# Compile-time system search path for libraries.
23919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 23920
9c60689e
DWT
23921# Run-time system search path for libraries.
23922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 23923
9c60689e
DWT
23924# Whether dlopen is supported.
23925dlopen_support=$enable_dlopen
dbadc56a 23926
9c60689e
DWT
23927# Whether dlopen of programs is supported.
23928dlopen_self=$enable_dlopen_self
35fa52c0 23929
9c60689e
DWT
23930# Whether dlopen of statically linked programs is supported.
23931dlopen_self_static=$enable_dlopen_self_static
35fa52c0 23932
9c60689e
DWT
23933# Commands to strip libraries.
23934old_striplib=$lt_old_striplib
23935striplib=$lt_striplib
35fa52c0 23936
35fa52c0 23937
9c60689e
DWT
23938# The linker used to build libraries.
23939LD=$lt_LD
dbadc56a 23940
ee134472
JF
23941# How to create reloadable object files.
23942reload_flag=$lt_reload_flag
23943reload_cmds=$lt_reload_cmds
23944
9c60689e
DWT
23945# Commands used to build an old-style archive.
23946old_archive_cmds=$lt_old_archive_cmds
dbadc56a 23947
9c60689e
DWT
23948# A language specific compiler.
23949CC=$lt_compiler
35fa52c0 23950
9c60689e
DWT
23951# Is the compiler the GNU compiler?
23952with_gcc=$GCC
dbadc56a 23953
9c60689e
DWT
23954# Compiler flag to turn off builtin functions.
23955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 23956
9c60689e
DWT
23957# Additional compiler flags for building library objects.
23958pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 23959
ee134472
JF
23960# How to pass a linker flag through the compiler.
23961wl=$lt_lt_prog_compiler_wl
23962
9c60689e
DWT
23963# Compiler flag to prevent dynamic linking.
23964link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 23965
9c60689e
DWT
23966# Does compiler simultaneously support -c and -o options?
23967compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 23968
9c60689e
DWT
23969# Whether or not to add -lc for building shared libraries.
23970build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 23971
9c60689e
DWT
23972# Whether or not to disallow shared libs when runtime libs are static.
23973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 23974
9c60689e
DWT
23975# Compiler flag to allow reflexive dlopens.
23976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 23977
9c60689e
DWT
23978# Compiler flag to generate shared objects directly from archives.
23979whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 23980
9c60689e
DWT
23981# Whether the compiler copes with passing no objects directly.
23982compiler_needs_object=$lt_compiler_needs_object
dbadc56a 23983
9c60689e
DWT
23984# Create an old-style archive from a shared archive.
23985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 23986
9c60689e
DWT
23987# Create a temporary old-style archive to link instead of a shared archive.
23988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 23989
9c60689e
DWT
23990# Commands used to build a shared archive.
23991archive_cmds=$lt_archive_cmds
23992archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 23993
9c60689e
DWT
23994# Commands used to build a loadable module if different from building
23995# a shared archive.
23996module_cmds=$lt_module_cmds
23997module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 23998
9c60689e
DWT
23999# Whether we are building with GNU ld or not.
24000with_gnu_ld=$lt_with_gnu_ld
6b66678a 24001
9c60689e
DWT
24002# Flag that allows shared libraries with undefined symbols to be built.
24003allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 24004
9c60689e
DWT
24005# Flag that enforces no undefined symbols.
24006no_undefined_flag=$lt_no_undefined_flag
6b66678a 24007
9c60689e
DWT
24008# Flag to hardcode \$libdir into a binary during linking.
24009# This must work even if \$libdir does not exist
24010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 24011
9c60689e
DWT
24012# Whether we need a single "-rpath" flag with a separated argument.
24013hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 24014
9c60689e
DWT
24015# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24016# DIR into the resulting binary.
24017hardcode_direct=$hardcode_direct
6b66678a 24018
9c60689e
DWT
24019# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24020# DIR into the resulting binary and the resulting library dependency is
24021# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24022# library is relocated.
24023hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 24024
9c60689e
DWT
24025# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24026# into the resulting binary.
24027hardcode_minus_L=$hardcode_minus_L
6b66678a 24028
9c60689e
DWT
24029# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24030# into the resulting binary.
24031hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 24032
9c60689e
DWT
24033# Set to "yes" if building a shared library automatically hardcodes DIR
24034# into the library and all subsequent libraries and executables linked
24035# against it.
24036hardcode_automatic=$hardcode_automatic
6b66678a 24037
9c60689e
DWT
24038# Set to yes if linker adds runtime paths of dependent libraries
24039# to runtime path list.
24040inherit_rpath=$inherit_rpath
6b66678a 24041
9c60689e
DWT
24042# Whether libtool must link a program against all its dependency libraries.
24043link_all_deplibs=$link_all_deplibs
24044
9c60689e
DWT
24045# Set to "yes" if exported symbols are required.
24046always_export_symbols=$always_export_symbols
6b66678a 24047
9c60689e
DWT
24048# The commands to list exported symbols.
24049export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 24050
9c60689e
DWT
24051# Symbols that should not be listed in the preloaded symbols.
24052exclude_expsyms=$lt_exclude_expsyms
6b66678a 24053
9c60689e
DWT
24054# Symbols that must always be exported.
24055include_expsyms=$lt_include_expsyms
6b66678a 24056
9c60689e
DWT
24057# Commands necessary for linking programs (against libraries) with templates.
24058prelink_cmds=$lt_prelink_cmds
6b66678a 24059
ee134472
JF
24060# Commands necessary for finishing linking programs.
24061postlink_cmds=$lt_postlink_cmds
24062
9c60689e
DWT
24063# Specify filename containing input files.
24064file_list_spec=$lt_file_list_spec
6b66678a 24065
9c60689e
DWT
24066# How to hardcode a shared library path into an executable.
24067hardcode_action=$hardcode_action
24068
24069# The directories searched by this compiler when creating a shared library.
24070compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24071
24072# Dependencies to place before and after the objects being linked to
24073# create a shared library.
24074predep_objects=$lt_predep_objects
24075postdep_objects=$lt_postdep_objects
24076predeps=$lt_predeps
24077postdeps=$lt_postdeps
24078
24079# The library search path used internally by the compiler when linking
24080# a shared library.
24081compiler_lib_search_path=$lt_compiler_lib_search_path
24082
24083# ### END LIBTOOL CONFIG
24084
24085_LT_EOF
24086
24087 case $host_os in
24088 aix3*)
24089 cat <<\_LT_EOF >> "$cfgfile"
24090# AIX sometimes has problems with the GCC collect2 program. For some
24091# reason, if we set the COLLECT_NAMES environment variable, the problems
24092# vanish in a puff of smoke.
24093if test "X${COLLECT_NAMES+set}" != Xset; then
24094 COLLECT_NAMES=
24095 export COLLECT_NAMES
6b66678a 24096fi
9c60689e
DWT
24097_LT_EOF
24098 ;;
24099 esac
6b66678a
DWT
24100
24101
9c60689e 24102ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 24103
9c60689e
DWT
24104
24105 # We use sed instead of cat because bash on DJGPP gets confused if
24106 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24107 # text mode, it properly converts lines to CR/LF. This bash problem
24108 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
24109 sed '$q' "$ltmain" >> "$cfgfile" \
24110 || (rm -f "$cfgfile"; exit 1)
24111
24112 if test x"$xsi_shell" = xyes; then
24113 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24114func_dirname ()\
24115{\
24116\ case ${1} in\
24117\ */*) func_dirname_result="${1%/*}${2}" ;;\
24118\ * ) func_dirname_result="${3}" ;;\
24119\ esac\
24120} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24121 && mv -f "$cfgfile.tmp" "$cfgfile" \
24122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24123test 0 -eq $? || _lt_function_replace_fail=:
24124
24125
24126 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24127func_basename ()\
24128{\
24129\ func_basename_result="${1##*/}"\
24130} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24131 && mv -f "$cfgfile.tmp" "$cfgfile" \
24132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24133test 0 -eq $? || _lt_function_replace_fail=:
24134
24135
24136 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24137func_dirname_and_basename ()\
24138{\
24139\ case ${1} in\
24140\ */*) func_dirname_result="${1%/*}${2}" ;;\
24141\ * ) func_dirname_result="${3}" ;;\
24142\ esac\
24143\ func_basename_result="${1##*/}"\
24144} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24145 && mv -f "$cfgfile.tmp" "$cfgfile" \
24146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24147test 0 -eq $? || _lt_function_replace_fail=:
24148
24149
24150 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24151func_stripname ()\
24152{\
24153\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24154\ # positional parameters, so assign one to ordinary parameter first.\
24155\ func_stripname_result=${3}\
24156\ func_stripname_result=${func_stripname_result#"${1}"}\
24157\ func_stripname_result=${func_stripname_result%"${2}"}\
24158} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24159 && mv -f "$cfgfile.tmp" "$cfgfile" \
24160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24161test 0 -eq $? || _lt_function_replace_fail=:
24162
24163
24164 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24165func_split_long_opt ()\
24166{\
24167\ func_split_long_opt_name=${1%%=*}\
24168\ func_split_long_opt_arg=${1#*=}\
24169} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24170 && mv -f "$cfgfile.tmp" "$cfgfile" \
24171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24172test 0 -eq $? || _lt_function_replace_fail=:
24173
24174
24175 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24176func_split_short_opt ()\
24177{\
24178\ func_split_short_opt_arg=${1#??}\
24179\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24180} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24181 && mv -f "$cfgfile.tmp" "$cfgfile" \
24182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24183test 0 -eq $? || _lt_function_replace_fail=:
24184
24185
24186 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24187func_lo2o ()\
24188{\
24189\ case ${1} in\
24190\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24191\ *) func_lo2o_result=${1} ;;\
24192\ esac\
24193} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24194 && mv -f "$cfgfile.tmp" "$cfgfile" \
24195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24196test 0 -eq $? || _lt_function_replace_fail=:
24197
24198
24199 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24200func_xform ()\
24201{\
24202 func_xform_result=${1%.*}.lo\
24203} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24204 && mv -f "$cfgfile.tmp" "$cfgfile" \
24205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24206test 0 -eq $? || _lt_function_replace_fail=:
24207
24208
24209 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24210func_arith ()\
24211{\
24212 func_arith_result=$(( $* ))\
24213} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24214 && mv -f "$cfgfile.tmp" "$cfgfile" \
24215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24216test 0 -eq $? || _lt_function_replace_fail=:
24217
24218
24219 sed -e '/^func_len ()$/,/^} # func_len /c\
24220func_len ()\
24221{\
24222 func_len_result=${#1}\
24223} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24224 && mv -f "$cfgfile.tmp" "$cfgfile" \
24225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24226test 0 -eq $? || _lt_function_replace_fail=:
24227
24228fi
24229
24230if test x"$lt_shell_append" = xyes; then
24231 sed -e '/^func_append ()$/,/^} # func_append /c\
24232func_append ()\
24233{\
24234 eval "${1}+=\\${2}"\
24235} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24236 && mv -f "$cfgfile.tmp" "$cfgfile" \
24237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24238test 0 -eq $? || _lt_function_replace_fail=:
24239
24240
24241 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24242func_append_quoted ()\
24243{\
24244\ func_quote_for_eval "${2}"\
24245\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24246} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24247 && mv -f "$cfgfile.tmp" "$cfgfile" \
24248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24249test 0 -eq $? || _lt_function_replace_fail=:
24250
24251
24252 # Save a `func_append' function call where possible by direct use of '+='
24253 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24254 && mv -f "$cfgfile.tmp" "$cfgfile" \
24255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24256 test 0 -eq $? || _lt_function_replace_fail=:
24257else
24258 # Save a `func_append' function call even when '+=' is not available
24259 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24260 && mv -f "$cfgfile.tmp" "$cfgfile" \
24261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24262 test 0 -eq $? || _lt_function_replace_fail=:
24263fi
24264
24265if test x"$_lt_function_replace_fail" = x":"; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24267$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24268fi
24269
24270
24271 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
24272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24273 chmod +x "$ofile"
24274
24275
24276 cat <<_LT_EOF >> "$ofile"
24277
24278# ### BEGIN LIBTOOL TAG CONFIG: CXX
24279
24280# The linker used to build libraries.
24281LD=$lt_LD_CXX
24282
ee134472
JF
24283# How to create reloadable object files.
24284reload_flag=$lt_reload_flag_CXX
24285reload_cmds=$lt_reload_cmds_CXX
24286
9c60689e
DWT
24287# Commands used to build an old-style archive.
24288old_archive_cmds=$lt_old_archive_cmds_CXX
24289
24290# A language specific compiler.
24291CC=$lt_compiler_CXX
24292
24293# Is the compiler the GNU compiler?
24294with_gcc=$GCC_CXX
24295
24296# Compiler flag to turn off builtin functions.
24297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 24298
9c60689e
DWT
24299# Additional compiler flags for building library objects.
24300pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 24301
ee134472
JF
24302# How to pass a linker flag through the compiler.
24303wl=$lt_lt_prog_compiler_wl_CXX
24304
9c60689e
DWT
24305# Compiler flag to prevent dynamic linking.
24306link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 24307
9c60689e
DWT
24308# Does compiler simultaneously support -c and -o options?
24309compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 24310
9c60689e
DWT
24311# Whether or not to add -lc for building shared libraries.
24312build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 24313
9c60689e
DWT
24314# Whether or not to disallow shared libs when runtime libs are static.
24315allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 24316
9c60689e
DWT
24317# Compiler flag to allow reflexive dlopens.
24318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 24319
9c60689e
DWT
24320# Compiler flag to generate shared objects directly from archives.
24321whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 24322
9c60689e
DWT
24323# Whether the compiler copes with passing no objects directly.
24324compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 24325
9c60689e
DWT
24326# Create an old-style archive from a shared archive.
24327old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 24328
9c60689e
DWT
24329# Create a temporary old-style archive to link instead of a shared archive.
24330old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 24331
9c60689e
DWT
24332# Commands used to build a shared archive.
24333archive_cmds=$lt_archive_cmds_CXX
24334archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 24335
9c60689e
DWT
24336# Commands used to build a loadable module if different from building
24337# a shared archive.
24338module_cmds=$lt_module_cmds_CXX
24339module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 24340
9c60689e
DWT
24341# Whether we are building with GNU ld or not.
24342with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 24343
9c60689e
DWT
24344# Flag that allows shared libraries with undefined symbols to be built.
24345allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 24346
9c60689e
DWT
24347# Flag that enforces no undefined symbols.
24348no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 24349
9c60689e
DWT
24350# Flag to hardcode \$libdir into a binary during linking.
24351# This must work even if \$libdir does not exist
24352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 24353
9c60689e
DWT
24354# Whether we need a single "-rpath" flag with a separated argument.
24355hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 24356
9c60689e
DWT
24357# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24358# DIR into the resulting binary.
24359hardcode_direct=$hardcode_direct_CXX
6b66678a 24360
9c60689e
DWT
24361# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24362# DIR into the resulting binary and the resulting library dependency is
24363# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24364# library is relocated.
24365hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 24366
9c60689e
DWT
24367# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24368# into the resulting binary.
24369hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 24370
9c60689e
DWT
24371# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24372# into the resulting binary.
24373hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 24374
9c60689e
DWT
24375# Set to "yes" if building a shared library automatically hardcodes DIR
24376# into the library and all subsequent libraries and executables linked
24377# against it.
24378hardcode_automatic=$hardcode_automatic_CXX
6b66678a 24379
9c60689e
DWT
24380# Set to yes if linker adds runtime paths of dependent libraries
24381# to runtime path list.
24382inherit_rpath=$inherit_rpath_CXX
6b66678a 24383
9c60689e
DWT
24384# Whether libtool must link a program against all its dependency libraries.
24385link_all_deplibs=$link_all_deplibs_CXX
6b66678a 24386
9c60689e
DWT
24387# Set to "yes" if exported symbols are required.
24388always_export_symbols=$always_export_symbols_CXX
6b66678a 24389
9c60689e
DWT
24390# The commands to list exported symbols.
24391export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 24392
9c60689e
DWT
24393# Symbols that should not be listed in the preloaded symbols.
24394exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 24395
9c60689e
DWT
24396# Symbols that must always be exported.
24397include_expsyms=$lt_include_expsyms_CXX
6b66678a 24398
9c60689e
DWT
24399# Commands necessary for linking programs (against libraries) with templates.
24400prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 24401
ee134472
JF
24402# Commands necessary for finishing linking programs.
24403postlink_cmds=$lt_postlink_cmds_CXX
24404
9c60689e
DWT
24405# Specify filename containing input files.
24406file_list_spec=$lt_file_list_spec_CXX
dbadc56a 24407
9c60689e
DWT
24408# How to hardcode a shared library path into an executable.
24409hardcode_action=$hardcode_action_CXX
309b0535 24410
9c60689e
DWT
24411# The directories searched by this compiler when creating a shared library.
24412compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 24413
9c60689e
DWT
24414# Dependencies to place before and after the objects being linked to
24415# create a shared library.
24416predep_objects=$lt_predep_objects_CXX
24417postdep_objects=$lt_postdep_objects_CXX
24418predeps=$lt_predeps_CXX
24419postdeps=$lt_postdeps_CXX
309b0535 24420
9c60689e
DWT
24421# The library search path used internally by the compiler when linking
24422# a shared library.
24423compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24424
24425# ### END LIBTOOL TAG CONFIG: CXX
24426_LT_EOF
24427
24428 ;;
24429
24430 esac
24431done # for ac_tag
24432
24433
24434as_fn_exit 0
24435_ACEOF
24436ac_clean_files=$ac_clean_files_save
24437
24438test $ac_write_fail = 0 ||
12833ad8 24439 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24440
24441
24442# configure is writing to config.log, and then calls config.status.
24443# config.status does its own redirection, appending to config.log.
24444# Unfortunately, on DOS this fails, as config.log is still kept open
24445# by configure, so config.status won't be able to write to it; its
24446# output is simply discarded. So we exec the FD to /dev/null,
24447# effectively closing config.log, so it can be properly (re)opened and
24448# appended to by config.status. When coming back to configure, we
24449# need to make the FD available again.
24450if test "$no_create" != yes; then
24451 ac_cs_success=:
24452 ac_config_status_args=
24453 test "$silent" = yes &&
24454 ac_config_status_args="$ac_config_status_args --quiet"
24455 exec 5>/dev/null
24456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24457 exec 5>>config.log
24458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24459 # would make configure fail if this is the last instruction.
12833ad8 24460 $ac_cs_success || as_fn_exit 1
309b0535 24461fi
9c60689e
DWT
24462if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24464$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24465fi
24466