]> git.saurik.com Git - cycript.git/blame - configure
Use new ^ syntax to bridge Blocks (with @ offset).
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ee134472 3# Generated by GNU Autoconf 2.68 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
c7aa54aa 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12833ad8
JF
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
9c60689e 11#
c7aa54aa
DWT
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
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
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 185test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
ee134472 228 # Preserve -v and -x to the replacement shell.
c7aa54aa
DWT
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
ee134472
JF
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
c7aa54aa
DWT
240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
250$0: about your system, including any error possibly output
251$0: before this message. Then install a modern shell, or
252$0: manually run the script under such a shell if you do
253$0: have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
12833ad8
JF
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
c7aa54aa
DWT
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 382# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
383as_fn_error ()
384{
12833ad8
JF
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 389 fi
12833ad8 390 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
391 as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480*)
481 ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
9c60689e
DWT
547SHELL=${CONFIG_SHELL-/bin/sh}
548
c7aa54aa 549
9c60689e
DWT
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
c7aa54aa
DWT
552
553# Name of the host.
12833ad8 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='Cycript'
572PACKAGE_TARNAME='cycript'
573PACKAGE_VERSION='0.9'
574PACKAGE_STRING='Cycript 0.9'
575PACKAGE_BUGREPORT='saurik@saurik.com'
576PACKAGE_URL='http://www.cycript.org/'
577
35fa52c0 578ac_unique_file="Console.cpp"
6b66678a
DWT
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593# include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598# include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
9c60689e
DWT
615ac_subst_vars='LTLIBOBJS
616LIBOBJS
794e88e7 617CY_ATTACH_GROUP
e1cce270 618CY_OBJECTIVEC_MACH
794e88e7
DWT
619ac_ct__NM
620_NM
621ac_ct__LIPO
622_LIPO
623ac_ct__OTOOL
624_OTOOL
9777bd50 625SO
5053a6d1
DWT
626LTLIBICONV
627LIBICONV
47aaa820 628GNUSTEP_CONFIG
c823f118 629CY_OBJECTIVEC
309b0535 630LIBFFI_LIBS
35fa52c0 631LIBFFI_CFLAGS
3fd51f51 632CY_EXECUTE
35fa52c0
DWT
633WEBKIT_LIBS
634WEBKIT_CFLAGS
549f29b5 635LTLIBAPR
632b71ea
DWT
636ac_ct_OBJCXX
637OBJCXXFLAGS
638OBJCXX
47aaa820
DWT
639CXXCPP
640ac_ct_CXX
641CXXFLAGS
642CXX
fb726fc5 643GIT
e9c9a47c
DWT
644GNUTAR
645INSTALL_DATA
646INSTALL_SCRIPT
647INSTALL_PROGRAM
648GPERF
649FLEX
650BISON
651TIME
652_BASH
9d13f949 653LTFLAGS
12833ad8 654GMAKE
632b71ea 655ifGNUmake
12833ad8
JF
656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
3fd51f51 658PKG_CONFIG
9c60689e
DWT
659CPP
660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
ee134472 665MANIFEST_TOOL
9c60689e
DWT
666RANLIB
667STRIP
ee134472 668ac_ct_AR
9c60689e 669AR
ee134472 670DLLTOOL
9c60689e
DWT
671OBJDUMP
672LN_S
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
678EGREP
679GREP
680SED
35fa52c0
DWT
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
9c60689e
DWT
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696LIBTOOL
dbadc56a 697target_alias
c7aa54aa
DWT
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files=''
736ac_user_opts='
737enable_option_checking
9c60689e 738enable_static
549f29b5 739enable_shared
9c60689e
DWT
740with_pic
741enable_fast_install
35fa52c0 742with_gnu_ld
ee134472 743with_sysroot
9c60689e 744enable_libtool_lock
1504c9b8 745enable_universal_binary
632b71ea 746with_frameworks
9c60689e 747with_apr
5053a6d1 748enable_javascript
35fa52c0
DWT
749enable_rpath
750with_libiconv_prefix
c7aa54aa
DWT
751'
752 ac_precious_vars='build_alias
753host_alias
dbadc56a 754target_alias
35fa52c0
DWT
755CC
756CFLAGS
dbadc56a
DWT
757LDFLAGS
758LIBS
759CPPFLAGS
9c60689e 760CPP
3fd51f51 761PKG_CONFIG
12833ad8
JF
762PKG_CONFIG_PATH
763PKG_CONFIG_LIBDIR
e9c9a47c
DWT
764BISON
765FLEX
766GPERF
35fa52c0
DWT
767CXX
768CXXFLAGS
769CCC
9c60689e 770CXXCPP
632b71ea
DWT
771OBJCXX
772OBJCXXFLAGS
35fa52c0
DWT
773WEBKIT_CFLAGS
774WEBKIT_LIBS
a667869d 775LIBFFI_CFLAGS
790e5246
DWT
776LIBFFI_LIBS
777GNUSTEP_CONFIG'
c7aa54aa
DWT
778
779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
783ac_unrecognized_opts=
784ac_unrecognized_sep=
785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
807# (The list follows the same order as the GNU Coding Standards.)
808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
816includedir='${prefix}/include'
817oldincludedir='/usr/include'
818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
827
828ac_prev=
829ac_dashdash=
830for ac_option
831do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
12833ad8
JF
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
c7aa54aa
DWT
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 887 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 913 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1117 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1133 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
12833ad8
JF
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
c7aa54aa
DWT
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1190 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1191fi
1192
1193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
12833ad8 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199fi
1200
1201# Check all directory arguments for consistency.
1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
12833ad8 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
12833ad8
JF
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
c7aa54aa
DWT
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1249 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1251 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
12833ad8 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
12833ad8 1334 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373_ACEOF
1374
1375 cat <<\_ACEOF
35fa52c0
DWT
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of Cycript 0.9:";;
1386 esac
1387 cat <<\_ACEOF
1388
35fa52c0
DWT
1389Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549f29b5 1393 --enable-static[=PKGS] build static libraries [default=no]
9c60689e 1394 --enable-shared[=PKGS] build shared libraries [default=yes]
9c60689e
DWT
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1504c9b8
DWT
1398 --disable-universal-binary
1399 do not build with universal binary support on Darwin
b66977f1 1400 --enable-javascript[=ENGINE]
790e5246 1401 use a JavaScript runtime (currently the only
b66977f1
DWT
1402 available option for ENGINE is JavaScriptCore)
1403 [default=yes]
5053a6d1 1404 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1405
1406Optional Packages:
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9c60689e
DWT
1409 --with-pic try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1412 --with-sysroot=DIR Search for dependent libraries within DIR
1413 (or the compiler's sysroot if not specified).
632b71ea
DWT
1414 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1415 path for frameworks with -F
309b0535
DWT
1416 --with-apr=PATH prefix for installed APR or the full path to
1417 apr-config
35fa52c0
DWT
1418 --with-gnu-ld assume the C compiler uses GNU ld default=no
1419 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1420 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1421
dbadc56a 1422Some influential environment variables:
35fa52c0
DWT
1423 CC C compiler command
1424 CFLAGS C compiler flags
dbadc56a
DWT
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1429 you have headers in a nonstandard directory <include dir>
9c60689e 1430 CPP C preprocessor
3fd51f51 1431 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1432 PKG_CONFIG_PATH
1433 directories to add to pkg-config's search path
1434 PKG_CONFIG_LIBDIR
1435 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1436 BISON GNU Project parser generator (yacc replacement)
1437 FLEX the fast lexical analyser generator
1438 GPERF perfect hash function generator
47aaa820
DWT
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 CXXCPP C++ preprocessor
632b71ea
DWT
1442 OBJCXX Objective C++ compiler command
1443 OBJCXXFLAGS Objective C++ compiler flags
35fa52c0
DWT
1444 WEBKIT_CFLAGS
1445 C compiler flags for WEBKIT, overriding pkg-config
1446 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1447 LIBFFI_CFLAGS
1448 C compiler flags for LIBFFI, overriding pkg-config
1449 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1450 GNUSTEP_CONFIG
1451 prints information about the current gnustep installation
dbadc56a
DWT
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
c7aa54aa
DWT
1456Report bugs to <saurik@saurik.com>.
1457Cycript home page: <http://www.cycript.org/>.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1515fi
1516
1517test -n "$ac_init_help" && exit $ac_status
1518if $ac_init_version; then
1519 cat <<\_ACEOF
1520Cycript configure 0.9
ee134472 1521generated by GNU Autoconf 2.68
c7aa54aa 1522
12833ad8 1523Copyright (C) 2010 Free Software Foundation, Inc.
c7aa54aa
DWT
1524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
1527 exit
1528fi
1529
1530## ------------------------ ##
1531## Autoconf initialization. ##
1532## ------------------------ ##
dbadc56a 1533
35fa52c0
DWT
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566fi
ee134472 1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1568 as_fn_set_status $ac_retval
35fa52c0
DWT
1569
1570} # ac_fn_c_try_compile
1571
1572# ac_fn_c_try_link LINENO
1573# -----------------------
1574# Try to link conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_link ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext conftest$ac_exeext
1579 if { { ac_try="$ac_link"
1580case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest$ac_exeext && {
1598 test "$cross_compiling" = yes ||
1599 $as_test_x conftest$ac_exeext
1600 }; then :
1601 ac_retval=0
1602else
1603 $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607fi
1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610 # interfere with the next link command; also delete a directory that is
1611 # left behind by Apple's compiler. We do this before executing the actions.
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1614 as_fn_set_status $ac_retval
35fa52c0
DWT
1615
1616} # ac_fn_c_try_link
1617
9c60689e
DWT
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
dbadc56a
DWT
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
ee134472 1627if eval \${$3+:} false; then :
9c60689e
DWT
1628 $as_echo_n "(cached) " >&6
1629else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637else
1638 eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
ee134472 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
9c60689e 1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1670 test $ac_status = 0; } > conftest.i && {
9c60689e 1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1672 test ! -s conftest.err
9c60689e 1673 }; then :
dbadc56a
DWT
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
9c60689e 1679 ac_retval=1
dbadc56a 1680fi
ee134472 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1682 as_fn_set_status $ac_retval
dbadc56a 1683
9c60689e 1684} # ac_fn_c_try_cpp
35fa52c0
DWT
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1724 as_fn_set_status $ac_retval
35fa52c0
DWT
1725
1726} # ac_fn_c_try_run
6b66678a 1727
9c60689e
DWT
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
6b66678a
DWT
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
ee134472 1736if eval \${$3+:} false; then :
9c60689e 1737 $as_echo_n "(cached) " >&6
6b66678a 1738else
9c60689e
DWT
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h. */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743#define $2 innocuous_$2
6b66678a 1744
9c60689e
DWT
1745/* System header to define __stub macros and hopefully few prototypes,
1746 which can conflict with char $2 (); below.
1747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748 <limits.h> exists even on freestanding compilers. */
1749
1750#ifdef __STDC__
1751# include <limits.h>
1752#else
1753# include <assert.h>
1754#endif
1755
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 ();
1765/* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main ()
1774{
1775return $2 ();
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"; then :
1781 eval "$3=yes"
1782else
1783 eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext \
1786 conftest$ac_exeext conftest.$ac_ext
6b66678a 1787fi
9c60689e
DWT
1788eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
ee134472 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1792
9c60689e 1793} # ac_fn_c_check_func
6b66678a 1794
9c60689e
DWT
1795# ac_fn_cxx_try_compile LINENO
1796# ----------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_compile ()
6b66678a
DWT
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
ee134472 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1829 as_fn_set_status $ac_retval
1830
1831} # ac_fn_cxx_try_compile
1832
1833# ac_fn_cxx_try_cpp LINENO
1834# ------------------------
1835# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_try_cpp ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1854 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
ee134472 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1866 as_fn_set_status $ac_retval
1867
1868} # ac_fn_cxx_try_cpp
1869
1870# ac_fn_cxx_try_link LINENO
1871# -------------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_cxx_try_link ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 $as_test_x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1912 as_fn_set_status $ac_retval
1913
1914} # ac_fn_cxx_try_link
1915
632b71ea
DWT
1916# ac_fn_objcxx_try_compile LINENO
1917# -------------------------------
1918# Try to compile conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_objcxx_try_compile ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext
1923 if { { ac_try="$ac_compile"
1924case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_compile") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_objcxx_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest.$ac_objext; then :
1942 ac_retval=0
1943else
1944 $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948fi
ee134472 1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
632b71ea
DWT
1950 as_fn_set_status $ac_retval
1951
1952} # ac_fn_objcxx_try_compile
1953
47aaa820
DWT
1954# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1955# ---------------------------------------------------------
1956# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1957# the include files in INCLUDES and setting the cache variable VAR
1958# accordingly.
1959ac_fn_cxx_check_header_mongrel ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 1962 if eval \${$3+:} false; then :
47aaa820
DWT
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
ee134472 1965if eval \${$3+:} false; then :
47aaa820
DWT
1966 $as_echo_n "(cached) " >&6
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971else
1972 # Is the header compilable?
1973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1974$as_echo_n "checking $2 usability... " >&6; }
1975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978#include <$2>
1979_ACEOF
1980if ac_fn_cxx_try_compile "$LINENO"; then :
1981 ac_header_compiler=yes
1982else
1983 ac_header_compiler=no
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1987$as_echo "$ac_header_compiler" >&6; }
1988
1989# Is the header present?
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1991$as_echo_n "checking $2 presence... " >&6; }
1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994#include <$2>
1995_ACEOF
1996if ac_fn_cxx_try_cpp "$LINENO"; then :
1997 ac_header_preproc=yes
1998else
1999 ac_header_preproc=no
2000fi
12833ad8 2001rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2003$as_echo "$ac_header_preproc" >&6; }
2004
2005# So? What about this header?
2006case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2007 yes:no: )
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2009$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ;;
2013 no:yes:* )
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2015$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2017$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2019$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2021$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2024( $as_echo "## -------------------------------- ##
47aaa820 2025## Report this to saurik@saurik.com ##
12833ad8 2026## -------------------------------- ##"
47aaa820
DWT
2027 ) | sed "s/^/$as_me: WARNING: /" >&2
2028 ;;
2029esac
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031$as_echo_n "checking for $2... " >&6; }
ee134472 2032if eval \${$3+:} false; then :
47aaa820
DWT
2033 $as_echo_n "(cached) " >&6
2034else
2035 eval "$3=\$ac_header_compiler"
2036fi
2037eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039$as_echo "$ac_res" >&6; }
2040fi
ee134472 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2042
2043} # ac_fn_cxx_check_header_mongrel
2044
c823f118
DWT
2045# ac_fn_objcxx_try_link LINENO
2046# ----------------------------
2047# Try to link conftest.$ac_ext, and return whether this succeeded.
2048ac_fn_objcxx_try_link ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2053case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056esac
2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058$as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_objcxx_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 $as_test_x conftest$ac_exeext
2073 }; then :
2074 ac_retval=0
2075else
2076 $as_echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080fi
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2087 as_fn_set_status $ac_retval
2088
2089} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2090cat >config.log <<_ACEOF
2091This file contains any messages produced by compilers while
2092running configure, to aid debugging if configure makes a mistake.
2093
2094It was created by Cycript $as_me 0.9, which was
ee134472 2095generated by GNU Autoconf 2.68. Invocation command line was
c7aa54aa
DWT
2096
2097 $ $0 $@
2098
2099_ACEOF
2100exec 5>>config.log
2101{
2102cat <<_ASUNAME
2103## --------- ##
2104## Platform. ##
2105## --------- ##
2106
2107hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
2113/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115
2116/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2123
2124_ASUNAME
2125
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133IFS=$as_save_IFS
2134
2135} >&5
2136
2137cat >&5 <<_ACEOF
2138
2139
2140## ----------- ##
2141## Core tests. ##
2142## ----------- ##
2143
2144_ACEOF
2145
2146
2147# Keep a trace of the command line.
2148# Strip out --no-create and --no-recursion so they do not pile up.
2149# Strip out --silent because we don't want to record it for future runs.
2150# Also quote any args containing shell meta-characters.
2151# Make two passes to allow for proper duplicate-argument suppression.
2152ac_configure_args=
2153ac_configure_args0=
2154ac_configure_args1=
2155ac_must_keep_next=false
2156for ac_pass in 1 2
2157do
2158 for ac_arg
2159 do
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170 2)
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2183 ;;
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2186 fi
2187 as_fn_append ac_configure_args " '$ac_arg'"
2188 ;;
2189 esac
2190 done
2191done
2192{ ac_configure_args0=; unset ac_configure_args0;}
2193{ ac_configure_args1=; unset ac_configure_args1;}
2194
2195# When interrupted or exit'd, cleanup temporary files, and complete
2196# config.log. We remove comments because anyway the quotes in there
2197# would cause problems or look ugly.
2198# WARNING: Use '\'' to represent an apostrophe within the trap.
2199# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2202 {
2203 echo
2204
12833ad8 2205 $as_echo "## ---------------- ##
c7aa54aa 2206## Cache variables. ##
12833ad8 2207## ---------------- ##"
c7aa54aa
DWT
2208 echo
2209 # The following way of writing the cache mishandles newlines in values,
2210(
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in #(
2214 *${as_nl}*)
2215 case $ac_var in #(
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 esac
2219 case $ac_var in #(
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2223 esac ;;
2224 esac
2225 done
2226 (set) 2>&1 |
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2229 sed -n \
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 ;; #(
2233 *)
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2235 ;;
2236 esac |
2237 sort
2238)
2239 echo
2240
12833ad8 2241 $as_echo "## ----------------- ##
c7aa54aa 2242## Output variables. ##
12833ad8 2243## ----------------- ##"
c7aa54aa
DWT
2244 echo
2245 for ac_var in $ac_subst_vars
2246 do
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2254
2255 if test -n "$ac_subst_files"; then
12833ad8 2256 $as_echo "## ------------------- ##
c7aa54aa 2257## File substitutions. ##
12833ad8 2258## ------------------- ##"
c7aa54aa
DWT
2259 echo
2260 for ac_var in $ac_subst_files
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269 fi
2270
2271 if test -s confdefs.h; then
12833ad8 2272 $as_echo "## ----------- ##
c7aa54aa 2273## confdefs.h. ##
12833ad8 2274## ----------- ##"
c7aa54aa
DWT
2275 echo
2276 cat confdefs.h
2277 echo
2278 fi
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2286' 0
2287for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289done
2290ac_signal=0
2291
2292# confdefs.h avoids OS command line length limits that DEFS can exceed.
2293rm -f -r conftest* confdefs.h
2294
2295$as_echo "/* confdefs.h */" > confdefs.h
2296
2297# Predefined preprocessor variables.
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_NAME "$PACKAGE_NAME"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305_ACEOF
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_VERSION "$PACKAGE_VERSION"
2309_ACEOF
2310
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_STRING "$PACKAGE_STRING"
2313_ACEOF
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_URL "$PACKAGE_URL"
2321_ACEOF
2322
2323
2324# Let the site file select an alternate cache file if it wants to.
2325# Prefer an explicitly selected file to automatically selected ones.
2326ac_site_file1=NONE
2327ac_site_file2=NONE
2328if test -n "$CONFIG_SITE"; then
12833ad8
JF
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1=./$CONFIG_SITE;;
2332 */*) ac_site_file1=$CONFIG_SITE;;
2333 *) ac_site_file1=./$CONFIG_SITE;;
2334 esac
c7aa54aa
DWT
2335elif test "x$prefix" != xNONE; then
2336 ac_site_file1=$prefix/share/config.site
2337 ac_site_file2=$prefix/etc/config.site
2338else
2339 ac_site_file1=$ac_default_prefix/share/config.site
2340 ac_site_file2=$ac_default_prefix/etc/config.site
2341fi
2342for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2343do
2344 test "x$ac_site_file" = xNONE && continue
9c60689e 2345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2349 . "$ac_site_file" \
2350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352as_fn_error $? "failed to load site script $ac_site_file
ee134472 2353See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2354 fi
2355done
2356
2357if test -r "$cache_file"; then
9c60689e
DWT
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362$as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370$as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372fi
2373
2374# Check that the precious variables saved in the cache have kept the same
2375# value.
2376ac_cache_corrupted=false
2377for ac_var in $ac_precious_vars; do
2378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379 eval ac_new_set=\$ac_env_${ac_var}_set
2380 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381 eval ac_new_val=\$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2383 set,)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,set)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,);;
2392 *)
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w=`echo x $ac_old_val`
2396 ac_new_val_w=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted=:
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\$ac_old_val
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410 fi;;
2411 esac
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2414 case $ac_new_val in
2415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg=$ac_var=$ac_new_val ;;
2417 esac
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 esac
2422 fi
2423done
2424if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2429 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2430fi
2431## -------------------- ##
2432## Main body of script. ##
2433## -------------------- ##
2434
2435ac_ext=c
2436ac_cpp='$CPP $CPPFLAGS'
2437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
2441
35fa52c0 2442
6b66678a
DWT
2443ac_aux_dir=
2444for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2445 if test -f "$ac_dir/install-sh"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/install-sh -c"
2448 break
2449 elif test -f "$ac_dir/install.sh"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/install.sh -c"
2452 break
2453 elif test -f "$ac_dir/shtool"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/shtool install -c"
2456 break
2457 fi
6b66678a
DWT
2458done
2459if test -z "$ac_aux_dir"; then
12833ad8 2460 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2461fi
2462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
2471
9c60689e
DWT
2472case `pwd` in
2473 *\ * | *\ *)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2475$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2476esac
2477
2478
2479
ee134472
JF
2480macro_version='2.4'
2481macro_revision='1.3293'
9c60689e
DWT
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495ltmain="$ac_aux_dir/ltmain.sh"
2496
2497# Make sure we can run config.sub.
2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12833ad8 2499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
9c60689e
DWT
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502$as_echo_n "checking build system type... " >&6; }
ee134472 2503if ${ac_cv_build+:} false; then :
9c60689e
DWT
2504 $as_echo_n "(cached) " >&6
2505else
2506 ac_build_alias=$build_alias
2507test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509test "x$ac_build_alias" = x &&
12833ad8 2510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
9c60689e 2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12833ad8 2512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
9c60689e
DWT
2513
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516$as_echo "$ac_cv_build" >&6; }
2517case $ac_cv_build in
2518*-*-*) ;;
ee134472 2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
9c60689e
DWT
2520esac
2521build=$ac_cv_build
2522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_build
2524shift
2525build_cpu=$1
2526build_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530build_os=$*
2531IFS=$ac_save_IFS
2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536$as_echo_n "checking host system type... " >&6; }
ee134472 2537if ${ac_cv_host+:} false; then :
9c60689e
DWT
2538 $as_echo_n "(cached) " >&6
2539else
2540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12833ad8 2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
9c60689e
DWT
2545fi
2546
2547fi
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549$as_echo "$ac_cv_host" >&6; }
2550case $ac_cv_host in
2551*-*-*) ;;
ee134472 2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
9c60689e
DWT
2553esac
2554host=$ac_cv_host
2555ac_save_IFS=$IFS; IFS='-'
2556set x $ac_cv_host
2557shift
2558host_cpu=$1
2559host_vendor=$2
2560shift; shift
2561# Remember, the first character of IFS is used to create $*,
2562# except with old shells:
2563host_os=$*
2564IFS=$ac_save_IFS
2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566
2567
ee134472
JF
2568# Backslashify metacharacters that are still active within
2569# double-quoted strings.
2570sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2571
2572# Same as above, but do not quote variable references.
2573double_quote_subst='s/\(["`\\]\)/\\\1/g'
2574
2575# Sed substitution to delay expansion of an escaped shell variable in a
2576# double_quote_subst'ed string.
2577delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2578
2579# Sed substitution to delay expansion of an escaped single quote.
2580delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2581
2582# Sed substitution to avoid accidental globbing in evaled expressions
2583no_glob_subst='s/\*/\\\*/g'
2584
2585ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2586ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2587ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2590$as_echo_n "checking how to print strings... " >&6; }
2591# Test print first, because it will be a builtin if present.
2592if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2593 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2594 ECHO='print -r --'
2595elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2596 ECHO='printf %s\n'
2597else
2598 # Use this function as a fallback that always works.
2599 func_fallback_echo ()
2600 {
2601 eval 'cat <<_LTECHO_EOF
2602$1
2603_LTECHO_EOF'
2604 }
2605 ECHO='func_fallback_echo'
2606fi
2607
2608# func_echo_all arg...
2609# Invoke $ECHO with all args, space-separated.
2610func_echo_all ()
2611{
2612 $ECHO ""
2613}
2614
2615case "$ECHO" in
2616 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2617$as_echo "printf" >&6; } ;;
2618 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2619$as_echo "print -r" >&6; } ;;
2620 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2621$as_echo "cat" >&6; } ;;
2622esac
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
9c60689e
DWT
2637ac_ext=c
2638ac_cpp='$CPP $CPPFLAGS'
2639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
ee134472 2647if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
2648 $as_echo_n "(cached) " >&6
2649else
9c60689e
DWT
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 2660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665 done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
9c60689e
DWT
2670CC=$ac_cv_prog_CC
2671if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673$as_echo "$CC" >&6; }
35fa52c0
DWT
2674else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680fi
2681if test -z "$ac_cv_prog_CC"; then
2682 ac_ct_CC=$CC
2683 # Extract the first word of "gcc", so it can be a program name with args.
2684set dummy gcc; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
ee134472 2687if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
2688 $as_echo_n "(cached) " >&6
2689else
2690 if test -n "$ac_ct_CC"; then
2691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_ac_ct_CC="gcc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704done
2705 done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711if test -n "$ac_ct_CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2713$as_echo "$ac_ct_CC" >&6; }
2714else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719 if test "x$ac_ct_CC" = x; then
2720 CC=""
2721 else
2722 case $cross_compiling:$ac_tool_warned in
2723yes:)
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728 CC=$ac_ct_CC
2729 fi
2730else
2731 CC="$ac_cv_prog_CC"
2732fi
2733
2734if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}cc; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
ee134472 2740if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
2741 $as_echo_n "(cached) " >&6
2742else
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_CC="${ac_tool_prefix}cc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757done
2758 done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766$as_echo "$CC" >&6; }
2767else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773 fi
2774fi
2775if test -z "$CC"; then
2776 # Extract the first word of "cc", so it can be a program name with args.
2777set dummy cc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
ee134472 2780if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
2781 $as_echo_n "(cached) " >&6
2782else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786 ac_prog_rejected=no
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2795 ac_prog_rejected=yes
2796 continue
2797 fi
2798 ac_cv_prog_CC="cc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802done
2803 done
2804IFS=$as_save_IFS
2805
2806if test $ac_prog_rejected = yes; then
2807 # We found a bogon in the path, so make sure we never use it.
2808 set dummy $ac_cv_prog_CC
2809 shift
2810 if test $# != 0; then
2811 # We chose a different compiler from the bogus one.
2812 # However, it has the same basename, so the bogon will be chosen
2813 # first if we set CC to just the basename; use the full file name.
2814 shift
2815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 fi
2817fi
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823$as_echo "$CC" >&6; }
2824else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 for ac_prog in cl.exe
2834 do
2835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
ee134472 2839if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
2840 $as_echo_n "(cached) " >&6
2841else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856done
2857 done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
2866else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871
2872 test -n "$CC" && break
2873 done
2874fi
2875if test -z "$CC"; then
2876 ac_ct_CC=$CC
2877 for ac_prog in cl.exe
2878do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
ee134472 2883if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
2884 $as_echo_n "(cached) " >&6
2885else
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_CC="$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900done
2901 done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909$as_echo "$ac_ct_CC" >&6; }
2910else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916 test -n "$ac_ct_CC" && break
2917done
2918
2919 if test "x$ac_ct_CC" = x; then
2920 CC=""
2921 else
2922 case $cross_compiling:$ac_tool_warned in
2923yes:)
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926ac_tool_warned=yes ;;
2927esac
2928 CC=$ac_ct_CC
2929 fi
2930fi
2931
2932fi
2933
2934
2935test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 2937as_fn_error $? "no acceptable C compiler found in \$PATH
ee134472 2938See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
2939
2940# Provide some information about the compiler.
2941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2942set X $ac_compile
2943ac_compiler=$2
2944for ac_option in --version -v -V -qversion; do
2945 { { ac_try="$ac_compiler $ac_option >&5"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951$as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953 ac_status=$?
2954 if test -s conftest.err; then
2955 sed '10a\
2956... rest of stderr output deleted ...
2957 10q' conftest.err >conftest.er1
2958 cat conftest.er1 >&5
35fa52c0 2959 fi
9c60689e 2960 rm -f conftest.er1 conftest.err
35fa52c0
DWT
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }
2963done
2964
2965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966/* end confdefs.h. */
9c60689e 2967
35fa52c0
DWT
2968int
2969main ()
2970{
35fa52c0
DWT
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976ac_clean_files_save=$ac_clean_files
9c60689e 2977ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
2978# Try to create an executable without -o first, disregard a.out.
2979# It will help us diagnose broken compilers, and finding out an intuition
2980# of exeext.
9c60689e
DWT
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982$as_echo_n "checking whether the C compiler works... " >&6; }
35fa52c0
DWT
2983ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984
2985# The possible output files:
2986ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987
2988ac_rmfiles=
2989for ac_file in $ac_files
2990do
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 esac
2995done
2996rm -f $ac_rmfiles
2997
2998if { { ac_try="$ac_link_default"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link_default") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011# in a Makefile. We should not override ac_cv_exeext if it was cached,
3012# so that the user can short-circuit this test for compilers unknown to
3013# Autoconf.
3014for ac_file in $ac_files ''
3015do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019 ;;
3020 [ab].out )
3021 # We found the default executable, but exeext='' is most
3022 # certainly right.
3023 break;;
3024 *.* )
3025 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026 then :; else
3027 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 fi
3029 # We set ac_cv_exeext here because the later test for it is not
3030 # safe: cross compilers may not add the suffix if given an `-o'
3031 # argument, so we may need to know it at that point already.
3032 # Even if this section looks crufty: it has the advantage of
3033 # actually working.
3034 break;;
3035 * )
3036 break;;
3037 esac
3038done
3039test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041else
3042 ac_file=''
3043fi
35fa52c0 3044if test -z "$ac_file"; then :
9c60689e
DWT
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3052as_fn_error 77 "C compiler cannot create executables
ee134472 3053See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056$as_echo "yes" >&6; }
35fa52c0 3057fi
9c60689e
DWT
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3059$as_echo_n "checking for C compiler default output file name... " >&6; }
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3062ac_exeext=$ac_cv_exeext
3063
9c60689e 3064rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3065ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067$as_echo_n "checking for suffix of executables... " >&6; }
3068if { { ac_try="$ac_link"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081# work properly (i.e., refer to `conftest.exe'), while it won't with
3082# `rm'.
3083for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 break;;
3089 * ) break;;
3090 esac
3091done
3092else
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3095as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3096See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3097fi
9c60689e 3098rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100$as_echo "$ac_cv_exeext" >&6; }
3101
3102rm -f conftest.$ac_ext
3103EXEEXT=$ac_cv_exeext
3104ac_exeext=$EXEEXT
9c60689e
DWT
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
3107#include <stdio.h>
3108int
3109main ()
3110{
3111FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118ac_clean_files="$ac_clean_files conftest.out"
3119# Check that the compiler produces executables we can run. If not, either
3120# the compiler is broken, or we cross compile.
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122$as_echo_n "checking whether we are cross compiling... " >&6; }
3123if test "$cross_compiling" != yes; then
3124 { { ac_try="$ac_link"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130$as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 if { ac_try='./conftest$ac_cv_exeext'
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3153as_fn_error $? "cannot run C compiled programs.
9c60689e 3154If you meant to cross compile, use \`--host'.
ee134472 3155See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3156 fi
3157 fi
3158fi
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160$as_echo "$cross_compiling" >&6; }
3161
3162rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3166if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3167 $as_echo_n "(cached) " >&6
3168else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180rm -f conftest.o conftest.obj
3181if { { ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_compile") 2>&5
3189 ac_status=$?
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 for ac_file in conftest.o conftest.obj conftest.*; do
3193 test -f "$ac_file" || continue;
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 break;;
3198 esac
3199done
3200else
3201 $as_echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3206as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3207See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3208fi
3209rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212$as_echo "$ac_cv_objext" >&6; }
3213OBJEXT=$ac_cv_objext
3214ac_objext=$OBJEXT
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ee134472 3217if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3218 $as_echo_n "(cached) " >&6
3219else
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h. */
3222
3223int
3224main ()
3225{
3226#ifndef __GNUC__
3227 choke me
3228#endif
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_compiler_gnu=yes
3236else
3237 ac_compiler_gnu=no
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240ac_cv_c_compiler_gnu=$ac_compiler_gnu
3241
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245if test $ac_compiler_gnu = yes; then
3246 GCC=yes
3247else
3248 GCC=
3249fi
3250ac_test_CFLAGS=${CFLAGS+set}
3251ac_save_CFLAGS=$CFLAGS
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253$as_echo_n "checking whether $CC accepts -g... " >&6; }
ee134472 3254if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3255 $as_echo_n "(cached) " >&6
3256else
3257 ac_save_c_werror_flag=$ac_c_werror_flag
3258 ac_c_werror_flag=yes
3259 ac_cv_prog_cc_g=no
3260 CFLAGS="-g"
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h. */
3263
3264int
3265main ()
3266{
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272if ac_fn_c_try_compile "$LINENO"; then :
3273 ac_cv_prog_cc_g=yes
3274else
3275 CFLAGS=""
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h. */
3278
3279int
3280main ()
3281{
3282
3283 ;
3284 return 0;
3285}
3286_ACEOF
3287if ac_fn_c_try_compile "$LINENO"; then :
3288
3289else
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309fi
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3312fi
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314$as_echo "$ac_cv_prog_cc_g" >&6; }
3315if test "$ac_test_CFLAGS" = set; then
3316 CFLAGS=$ac_save_CFLAGS
3317elif test $ac_cv_prog_cc_g = yes; then
3318 if test "$GCC" = yes; then
3319 CFLAGS="-g -O2"
3320 else
3321 CFLAGS="-g"
3322 fi
3323else
3324 if test "$GCC" = yes; then
3325 CFLAGS="-O2"
3326 else
3327 CFLAGS=
3328 fi
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
ee134472 3332if ${ac_cv_prog_cc_c89+:} false; then :
35fa52c0
DWT
3333 $as_echo_n "(cached) " >&6
3334else
3335 ac_cv_prog_cc_c89=no
3336ac_save_CC=$CC
3337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338/* end confdefs.h. */
3339#include <stdarg.h>
3340#include <stdio.h>
3341#include <sys/types.h>
3342#include <sys/stat.h>
3343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344struct buf { int x; };
3345FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346static char *e (p, i)
3347 char **p;
3348 int i;
3349{
3350 return p[i];
3351}
3352static char *f (char * (*g) (char **, int), char **p, ...)
3353{
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360}
3361
3362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370
3371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373#define FOO(x) 'x'
3374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375
3376int test (int i, double x);
3377struct s1 {int (*f) (int a);};
3378struct s2 {int (*f) (double a);};
3379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380int argc;
3381char **argv;
3382int
3383main ()
3384{
3385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 ;
3387 return 0;
3388}
3389_ACEOF
3390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392do
3393 CC="$ac_save_CC $ac_arg"
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_c89=$ac_arg
3396fi
3397rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3399done
3400rm -f conftest.$ac_ext
3401CC=$ac_save_CC
3402
3403fi
3404# AC_CACHE_VAL
3405case "x$ac_cv_prog_cc_c89" in
3406 x)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408$as_echo "none needed" >&6; } ;;
3409 xno)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411$as_echo "unsupported" >&6; } ;;
3412 *)
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3415$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3416esac
3417if test "x$ac_cv_prog_cc_c89" != xno; then :
3418
3419fi
3420
3421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
9c60689e
DWT
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3428$as_echo_n "checking for a sed that does not truncate output... " >&6; }
ee134472 3429if ${ac_cv_path_SED+:} false; then :
35fa52c0
DWT
3430 $as_echo_n "(cached) " >&6
3431else
9c60689e
DWT
3432 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3433 for ac_i in 1 2 3 4 5 6 7; do
3434 ac_script="$ac_script$as_nl$ac_script"
3435 done
3436 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3437 { ac_script=; unset ac_script;}
3438 if test -z "$SED"; then
3439 ac_path_SED_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35fa52c0
DWT
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
9c60689e 3446 for ac_prog in sed gsed; do
35fa52c0 3447 for ac_exec_ext in '' $ac_executable_extensions; do
9c60689e
DWT
3448 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3450# Check for GNU ac_path_SED and select it if it is found.
3451 # Check for GNU $ac_path_SED
3452case `"$ac_path_SED" --version 2>&1` in
3453*GNU*)
3454 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3455*)
3456 ac_count=0
3457 $as_echo_n 0123456789 >"conftest.in"
3458 while :
3459 do
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 $as_echo '' >> "conftest.nl"
3464 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 as_fn_arith $ac_count + 1 && ac_count=$as_val
3467 if test $ac_count -gt ${ac_path_SED_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_SED="$ac_path_SED"
3470 ac_path_SED_max=$ac_count
3471 fi
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
35fa52c0 3474 done
9c60689e
DWT
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476esac
35fa52c0 3477
9c60689e
DWT
3478 $ac_path_SED_found && break 3
3479 done
3480 done
3481 done
3482IFS=$as_save_IFS
3483 if test -z "$ac_cv_path_SED"; then
12833ad8 3484 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e 3485 fi
35fa52c0 3486else
9c60689e 3487 ac_cv_path_SED=$SED
35fa52c0
DWT
3488fi
3489
9c60689e
DWT
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3492$as_echo "$ac_cv_path_SED" >&6; }
3493 SED="$ac_cv_path_SED"
3494 rm -f conftest.sed
35fa52c0 3495
9c60689e
DWT
3496test -z "$SED" && SED=sed
3497Xsed="$SED -e 1s/^X//"
35fa52c0 3498
35fa52c0 3499
35fa52c0 3500
35fa52c0 3501
35fa52c0 3502
35fa52c0
DWT
3503
3504
35fa52c0 3505
35fa52c0 3506
35fa52c0 3507
35fa52c0 3508
9c60689e
DWT
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3510$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
ee134472 3511if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
3512 $as_echo_n "(cached) " >&6
3513else
3514 if test -z "$GREP"; then
3515 ac_path_GREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in grep ggrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3526# Check for GNU ac_path_GREP and select it if it is found.
3527 # Check for GNU $ac_path_GREP
3528case `"$ac_path_GREP" --version 2>&1` in
3529*GNU*)
3530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3531*)
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3535 do
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'GREP' >> "conftest.nl"
3540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_GREP="$ac_path_GREP"
3546 ac_path_GREP_max=$ac_count
3547 fi
3548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552esac
6b66678a 3553
9c60689e
DWT
3554 $ac_path_GREP_found && break 3
3555 done
3556 done
3557 done
3558IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_GREP"; then
12833ad8 3560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9c60689e
DWT
3561 fi
3562else
3563 ac_cv_path_GREP=$GREP
3564fi
6b66678a 3565
9c60689e
DWT
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3568$as_echo "$ac_cv_path_GREP" >&6; }
3569 GREP="$ac_cv_path_GREP"
6b66678a
DWT
3570
3571
9c60689e
DWT
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3573$as_echo_n "checking for egrep... " >&6; }
ee134472 3574if ${ac_cv_path_EGREP+:} false; then :
6b66678a
DWT
3575 $as_echo_n "(cached) " >&6
3576else
9c60689e
DWT
3577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3578 then ac_cv_path_EGREP="$GREP -E"
3579 else
3580 if test -z "$EGREP"; then
3581 ac_path_EGREP_found=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in egrep; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3592# Check for GNU ac_path_EGREP and select it if it is found.
3593 # Check for GNU $ac_path_EGREP
3594case `"$ac_path_EGREP" --version 2>&1` in
3595*GNU*)
3596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3597*)
3598 ac_count=0
3599 $as_echo_n 0123456789 >"conftest.in"
3600 while :
3601 do
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 $as_echo 'EGREP' >> "conftest.nl"
3606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3608 as_fn_arith $ac_count + 1 && ac_count=$as_val
3609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_EGREP="$ac_path_EGREP"
3612 ac_path_EGREP_max=$ac_count
3613 fi
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3616 done
3617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3618esac
3619
3620 $ac_path_EGREP_found && break 3
3621 done
3622 done
3623 done
3624IFS=$as_save_IFS
3625 if test -z "$ac_cv_path_EGREP"; then
12833ad8 3626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9c60689e
DWT
3627 fi
3628else
3629 ac_cv_path_EGREP=$EGREP
3630fi
6b66678a 3631
9c60689e
DWT
3632 fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3635$as_echo "$ac_cv_path_EGREP" >&6; }
3636 EGREP="$ac_cv_path_EGREP"
6b66678a 3637
6b66678a 3638
9c60689e
DWT
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3640$as_echo_n "checking for fgrep... " >&6; }
ee134472 3641if ${ac_cv_path_FGREP+:} false; then :
9c60689e 3642 $as_echo_n "(cached) " >&6
6b66678a 3643else
9c60689e
DWT
3644 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3645 then ac_cv_path_FGREP="$GREP -F"
3646 else
3647 if test -z "$FGREP"; then
3648 ac_path_FGREP_found=false
3649 # Loop through the user's path and test for each of PROGNAME-LIST
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_prog in fgrep; do
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3658 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3659# Check for GNU ac_path_FGREP and select it if it is found.
3660 # Check for GNU $ac_path_FGREP
3661case `"$ac_path_FGREP" --version 2>&1` in
3662*GNU*)
3663 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3664*)
3665 ac_count=0
3666 $as_echo_n 0123456789 >"conftest.in"
3667 while :
3668 do
3669 cat "conftest.in" "conftest.in" >"conftest.tmp"
3670 mv "conftest.tmp" "conftest.in"
3671 cp "conftest.in" "conftest.nl"
3672 $as_echo 'FGREP' >> "conftest.nl"
3673 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3675 as_fn_arith $ac_count + 1 && ac_count=$as_val
3676 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3677 # Best one so far, save it but keep looking for a better one
3678 ac_cv_path_FGREP="$ac_path_FGREP"
3679 ac_path_FGREP_max=$ac_count
3680 fi
3681 # 10*(2^10) chars as input seems more than enough
3682 test $ac_count -gt 10 && break
3683 done
3684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685esac
6b66678a 3686
9c60689e
DWT
3687 $ac_path_FGREP_found && break 3
3688 done
3689 done
3690 done
3691IFS=$as_save_IFS
3692 if test -z "$ac_cv_path_FGREP"; then
12833ad8 3693 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9c60689e
DWT
3694 fi
3695else
3696 ac_cv_path_FGREP=$FGREP
6b66678a
DWT
3697fi
3698
9c60689e 3699 fi
6b66678a 3700fi
9c60689e
DWT
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3702$as_echo "$ac_cv_path_FGREP" >&6; }
3703 FGREP="$ac_cv_path_FGREP"
6b66678a 3704
35fa52c0 3705
9c60689e 3706test -z "$GREP" && GREP=grep
35fa52c0 3707
309b0535 3708
35fa52c0 3709
6b66678a 3710
6b66678a
DWT
3711
3712
6b66678a 3713
6b66678a 3714
35fa52c0 3715
35fa52c0 3716
309b0535 3717
309b0535 3718
309b0535 3719
309b0535 3720
309b0535 3721
309b0535 3722
309b0535 3723
309b0535 3724
309b0535 3725
9c60689e
DWT
3726# Check whether --with-gnu-ld was given.
3727if test "${with_gnu_ld+set}" = set; then :
3728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
309b0535 3729else
9c60689e
DWT
3730 with_gnu_ld=no
3731fi
309b0535 3732
9c60689e
DWT
3733ac_prog=ld
3734if test "$GCC" = yes; then
3735 # Check if gcc -print-prog-name=ld gives a path.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3737$as_echo_n "checking for ld used by $CC... " >&6; }
3738 case $host in
3739 *-*-mingw*)
3740 # gcc leaves a trailing carriage return which upsets mingw
3741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3742 *)
3743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3744 esac
3745 case $ac_prog in
3746 # Accept absolute paths.
3747 [\\/]* | ?:[\\/]*)
3748 re_direlt='/[^/][^/]*/\.\./'
3749 # Canonicalize the pathname of ld
3750 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3751 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3752 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
309b0535 3753 done
9c60689e
DWT
3754 test -z "$LD" && LD="$ac_prog"
3755 ;;
3756 "")
3757 # If it fails, then pretend we aren't using GCC.
3758 ac_prog=ld
3759 ;;
3760 *)
3761 # If it is relative, then search for the first ld in PATH.
3762 with_gnu_ld=unknown
3763 ;;
3764 esac
3765elif test "$with_gnu_ld" = yes; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3767$as_echo_n "checking for GNU ld... " >&6; }
3768else
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3770$as_echo_n "checking for non-GNU ld... " >&6; }
3771fi
ee134472 3772if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
3773 $as_echo_n "(cached) " >&6
3774else
3775 if test -z "$LD"; then
3776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3777 for ac_dir in $PATH; do
3778 IFS="$lt_save_ifs"
3779 test -z "$ac_dir" && ac_dir=.
3780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3781 lt_cv_path_LD="$ac_dir/$ac_prog"
3782 # Check to see if the program is GNU ld. I'd rather use --version,
3783 # but apparently some variants of GNU ld only accept -v.
3784 # Break only if it was the GNU/non-GNU ld that we prefer.
3785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3786 *GNU* | *'with BFD'*)
3787 test "$with_gnu_ld" != no && break
3788 ;;
3789 *)
3790 test "$with_gnu_ld" != yes && break
3791 ;;
309b0535 3792 esac
309b0535 3793 fi
9c60689e
DWT
3794 done
3795 IFS="$lt_save_ifs"
3796else
3797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3798fi
3799fi
309b0535 3800
9c60689e
DWT
3801LD="$lt_cv_path_LD"
3802if test -n "$LD"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3804$as_echo "$LD" >&6; }
3805else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807$as_echo "no" >&6; }
3808fi
12833ad8 3809test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9c60689e
DWT
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3811$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 3812if ${lt_cv_prog_gnu_ld+:} false; then :
9c60689e
DWT
3813 $as_echo_n "(cached) " >&6
3814else
3815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3816case `$LD -v 2>&1 </dev/null` in
3817*GNU* | *'with BFD'*)
3818 lt_cv_prog_gnu_ld=yes
3819 ;;
3820*)
3821 lt_cv_prog_gnu_ld=no
3822 ;;
3823esac
309b0535 3824fi
9c60689e
DWT
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3826$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3827with_gnu_ld=$lt_cv_prog_gnu_ld
309b0535
DWT
3828
3829
309b0535 3830
309b0535
DWT
3831
3832
309b0535 3833
309b0535 3834
9c60689e
DWT
3835
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3838$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
ee134472 3839if ${lt_cv_path_NM+:} false; then :
9c60689e
DWT
3840 $as_echo_n "(cached) " >&6
3841else
3842 if test -n "$NM"; then
3843 # Let the user override the test.
3844 lt_cv_path_NM="$NM"
3845else
3846 lt_nm_to_check="${ac_tool_prefix}nm"
3847 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3848 lt_nm_to_check="$lt_nm_to_check nm"
3849 fi
3850 for lt_tmp_nm in $lt_nm_to_check; do
3851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3852 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3853 IFS="$lt_save_ifs"
3854 test -z "$ac_dir" && ac_dir=.
3855 tmp_nm="$ac_dir/$lt_tmp_nm"
3856 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3857 # Check to see if the nm accepts a BSD-compat flag.
3858 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3859 # nm: unknown option "B" ignored
3860 # Tru64's nm complains that /dev/null is an invalid object file
3861 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3862 */dev/null* | *'Invalid file or object type'*)
3863 lt_cv_path_NM="$tmp_nm -B"
3864 break
3865 ;;
3866 *)
3867 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3868 */dev/null*)
3869 lt_cv_path_NM="$tmp_nm -p"
3870 break
3871 ;;
3872 *)
3873 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3874 continue # so that we can try to find one that supports BSD flags
3875 ;;
3876 esac
3877 ;;
3878 esac
309b0535
DWT
3879 fi
3880 done
9c60689e 3881 IFS="$lt_save_ifs"
309b0535 3882 done
9c60689e
DWT
3883 : ${lt_cv_path_NM=no}
3884fi
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3887$as_echo "$lt_cv_path_NM" >&6; }
3888if test "$lt_cv_path_NM" != "no"; then
3889 NM="$lt_cv_path_NM"
3890else
3891 # Didn't find any BSD compatible name lister, look for dumpbin.
ee134472
JF
3892 if test -n "$DUMPBIN"; then :
3893 # Let the user override the test.
3894 else
3895 if test -n "$ac_tool_prefix"; then
3896 for ac_prog in dumpbin "link -dump"
35fa52c0
DWT
3897 do
3898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
ee134472 3902if ${ac_cv_prog_DUMPBIN+:} false; then :
35fa52c0
DWT
3903 $as_echo_n "(cached) " >&6
3904else
9c60689e
DWT
3905 if test -n "$DUMPBIN"; then
3906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3915 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35fa52c0
DWT
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919done
3920 done
3921IFS=$as_save_IFS
3922
3923fi
3924fi
9c60689e
DWT
3925DUMPBIN=$ac_cv_prog_DUMPBIN
3926if test -n "$DUMPBIN"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3928$as_echo "$DUMPBIN" >&6; }
35fa52c0
DWT
3929else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932fi
3933
3934
9c60689e 3935 test -n "$DUMPBIN" && break
35fa52c0
DWT
3936 done
3937fi
9c60689e
DWT
3938if test -z "$DUMPBIN"; then
3939 ac_ct_DUMPBIN=$DUMPBIN
ee134472 3940 for ac_prog in dumpbin "link -dump"
35fa52c0
DWT
3941do
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943set dummy $ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
ee134472 3946if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
35fa52c0
DWT
3947 $as_echo_n "(cached) " >&6
3948else
9c60689e
DWT
3949 if test -n "$ac_ct_DUMPBIN"; then
3950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35fa52c0
DWT
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
9c60689e
DWT
3969ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3970if test -n "$ac_ct_DUMPBIN"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3972$as_echo "$ac_ct_DUMPBIN" >&6; }
35fa52c0
DWT
3973else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
9c60689e 3979 test -n "$ac_ct_DUMPBIN" && break
35fa52c0
DWT
3980done
3981
9c60689e
DWT
3982 if test "x$ac_ct_DUMPBIN" = x; then
3983 DUMPBIN=":"
35fa52c0
DWT
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986yes:)
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989ac_tool_warned=yes ;;
3990esac
9c60689e 3991 DUMPBIN=$ac_ct_DUMPBIN
35fa52c0
DWT
3992 fi
3993fi
3994
ee134472
JF
3995 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3996 *COFF*)
3997 DUMPBIN="$DUMPBIN -symbols"
3998 ;;
3999 *)
4000 DUMPBIN=:
4001 ;;
4002 esac
4003 fi
9c60689e
DWT
4004
4005 if test "$DUMPBIN" != ":"; then
4006 NM="$DUMPBIN"
35fa52c0
DWT
4007 fi
4008fi
9c60689e 4009test -z "$NM" && NM=nm
35fa52c0 4010
35fa52c0 4011
35fa52c0 4012
35fa52c0 4013
9c60689e
DWT
4014
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4017$as_echo_n "checking the name lister ($NM) interface... " >&6; }
ee134472 4018if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
4019 $as_echo_n "(cached) " >&6
4020else
4021 lt_cv_nm_interface="BSD nm"
4022 echo "int some_variable = 0;" > conftest.$ac_ext
ee134472 4023 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9c60689e
DWT
4024 (eval "$ac_compile" 2>conftest.err)
4025 cat conftest.err >&5
ee134472 4026 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9c60689e
DWT
4027 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4028 cat conftest.err >&5
ee134472 4029 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9c60689e
DWT
4030 cat conftest.out >&5
4031 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4032 lt_cv_nm_interface="MS dumpbin"
4033 fi
4034 rm -f conftest*
35fa52c0 4035fi
9c60689e
DWT
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4037$as_echo "$lt_cv_nm_interface" >&6; }
4038
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4040$as_echo_n "checking whether ln -s works... " >&6; }
4041LN_S=$as_ln_s
4042if test "$LN_S" = "ln -s"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044$as_echo "yes" >&6; }
35fa52c0 4045else
9c60689e
DWT
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4047$as_echo "no, using $LN_S" >&6; }
35fa52c0 4048fi
9c60689e
DWT
4049
4050# find the maximum length of command line arguments
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4052$as_echo_n "checking the maximum length of command line arguments... " >&6; }
ee134472 4053if ${lt_cv_sys_max_cmd_len+:} false; then :
35fa52c0
DWT
4054 $as_echo_n "(cached) " >&6
4055else
9c60689e
DWT
4056 i=0
4057 teststring="ABCD"
4058
4059 case $build_os in
4060 msdosdjgpp*)
4061 # On DJGPP, this test can blow up pretty badly due to problems in libc
4062 # (any single argument exceeding 2000 bytes causes a buffer overrun
4063 # during glob expansion). Even if it were fixed, the result of this
4064 # check would be larger than it should be.
4065 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4066 ;;
35fa52c0 4067
9c60689e
DWT
4068 gnu*)
4069 # Under GNU Hurd, this test is not required because there is
4070 # no limit to the length of command line arguments.
4071 # Libtool will interpret -1 as no limit whatsoever
4072 lt_cv_sys_max_cmd_len=-1;
4073 ;;
35fa52c0 4074
9c60689e
DWT
4075 cygwin* | mingw* | cegcc*)
4076 # On Win9x/ME, this test blows up -- it succeeds, but takes
4077 # about 5 minutes as the teststring grows exponentially.
4078 # Worse, since 9x/ME are not pre-emptively multitasking,
4079 # you end up with a "frozen" computer, even though with patience
4080 # the test eventually succeeds (with a max line length of 256k).
4081 # Instead, let's just punt: use the minimum linelength reported by
4082 # all of the supported platforms: 8192 (on NT/2K/XP).
4083 lt_cv_sys_max_cmd_len=8192;
4084 ;;
35fa52c0 4085
ee134472
JF
4086 mint*)
4087 # On MiNT this can take a long time and run out of memory.
4088 lt_cv_sys_max_cmd_len=8192;
4089 ;;
4090
9c60689e
DWT
4091 amigaos*)
4092 # On AmigaOS with pdksh, this test takes hours, literally.
4093 # So we just punt and use a minimum line length of 8192.
4094 lt_cv_sys_max_cmd_len=8192;
4095 ;;
35fa52c0 4096
9c60689e
DWT
4097 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4098 # This has been around since 386BSD, at least. Likely further.
4099 if test -x /sbin/sysctl; then
4100 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4101 elif test -x /usr/sbin/sysctl; then
4102 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4103 else
4104 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4105 fi
4106 # And add a safety zone
4107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4109 ;;
35fa52c0 4110
9c60689e
DWT
4111 interix*)
4112 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4113 lt_cv_sys_max_cmd_len=196608
4114 ;;
35fa52c0 4115
9c60689e
DWT
4116 osf*)
4117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4119 # nice to cause kernel panics so lets avoid the loop below.
4120 # First set a reasonable default.
4121 lt_cv_sys_max_cmd_len=16384
4122 #
4123 if test -x /sbin/sysconfig; then
4124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4125 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4126 esac
4127 fi
4128 ;;
4129 sco3.2v5*)
4130 lt_cv_sys_max_cmd_len=102400
4131 ;;
4132 sysv5* | sco5v6* | sysv4.2uw2*)
4133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4134 if test -n "$kargmax"; then
4135 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4136 else
4137 lt_cv_sys_max_cmd_len=32768
4138 fi
4139 ;;
4140 *)
4141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4142 if test -n "$lt_cv_sys_max_cmd_len"; then
4143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4145 else
4146 # Make teststring a little bigger before we do anything with it.
4147 # a 1K string should be a reasonable start.
4148 for i in 1 2 3 4 5 6 7 8 ; do
4149 teststring=$teststring$teststring
4150 done
4151 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4152 # If test is not a shell built-in, we'll probably end up computing a
4153 # maximum length that is only half of the actual maximum length, but
4154 # we can't tell.
ee134472
JF
4155 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4156 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9c60689e
DWT
4157 test $i != 17 # 1/2 MB should be enough
4158 do
4159 i=`expr $i + 1`
4160 teststring=$teststring$teststring
4161 done
4162 # Only check the string length outside the loop.
4163 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4164 teststring=
4165 # Add a significant safety factor because C++ compilers can tack on
4166 # massive amounts of additional arguments before passing them to the
4167 # linker. It appears as though 1/2 is a usable value.
4168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4169 fi
4170 ;;
4171 esac
35fa52c0 4172
35fa52c0 4173fi
9c60689e
DWT
4174
4175if test -n $lt_cv_sys_max_cmd_len ; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4177$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35fa52c0 4178else
9c60689e
DWT
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4180$as_echo "none" >&6; }
35fa52c0 4181fi
9c60689e 4182max_cmd_len=$lt_cv_sys_max_cmd_len
35fa52c0 4183
9c60689e
DWT
4184
4185
4186
4187
4188
4189: ${CP="cp -f"}
4190: ${MV="mv -f"}
4191: ${RM="rm -f"}
4192
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4194$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4195# Try some XSI features
4196xsi_shell=no
4197( _lt_dummy="a/b/c"
ee134472
JF
4198 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4199 = c,a/b,b/c, \
9c60689e
DWT
4200 && eval 'test $(( 1 + 1 )) -eq 2 \
4201 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4202 && xsi_shell=yes
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4204$as_echo "$xsi_shell" >&6; }
4205
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4208$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4209lt_shell_append=no
4210( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4211 >/dev/null 2>&1 \
4212 && lt_shell_append=yes
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4214$as_echo "$lt_shell_append" >&6; }
4215
4216
4217if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4218 lt_unset=unset
35fa52c0 4219else
9c60689e
DWT
4220 lt_unset=false
4221fi
4222
4223
4224
4225
4226
4227# test EBCDIC or ASCII
4228case `echo X|tr X '\101'` in
4229 A) # ASCII based system
4230 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4231 lt_SP2NL='tr \040 \012'
4232 lt_NL2SP='tr \015\012 \040\040'
4233 ;;
4234 *) # EBCDIC based system
4235 lt_SP2NL='tr \100 \n'
4236 lt_NL2SP='tr \r\n \100\100'
4237 ;;
35fa52c0
DWT
4238esac
4239
35fa52c0 4240
35fa52c0 4241
35fa52c0 4242
35fa52c0 4243
35fa52c0 4244
35fa52c0 4245
35fa52c0 4246
9c60689e 4247
ee134472
JF
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4249$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4250if ${lt_cv_to_host_file_cmd+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252else
4253 case $host in
4254 *-*-mingw* )
4255 case $build in
4256 *-*-mingw* ) # actually msys
4257 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4258 ;;
4259 *-*-cygwin* )
4260 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4261 ;;
4262 * ) # otherwise, assume *nix
4263 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4264 ;;
4265 esac
4266 ;;
4267 *-*-cygwin* )
4268 case $build in
4269 *-*-mingw* ) # actually msys
4270 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4271 ;;
4272 *-*-cygwin* )
4273 lt_cv_to_host_file_cmd=func_convert_file_noop
4274 ;;
4275 * ) # otherwise, assume *nix
4276 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4277 ;;
4278 esac
4279 ;;
4280 * ) # unhandled hosts (and "normal" native builds)
4281 lt_cv_to_host_file_cmd=func_convert_file_noop
4282 ;;
4283esac
4284
4285fi
4286
4287to_host_file_cmd=$lt_cv_to_host_file_cmd
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4289$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4290
4291
4292
4293
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4296$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4297if ${lt_cv_to_tool_file_cmd+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299else
4300 #assume ordinary cross tools, or native build.
4301lt_cv_to_tool_file_cmd=func_convert_file_noop
4302case $host in
4303 *-*-mingw* )
4304 case $build in
4305 *-*-mingw* ) # actually msys
4306 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4307 ;;
4308 esac
4309 ;;
4310esac
4311
4312fi
4313
4314to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4316$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4317
4318
4319
4320
4321
9c60689e
DWT
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4323$as_echo_n "checking for $LD option to reload object files... " >&6; }
ee134472 4324if ${lt_cv_ld_reload_flag+:} false; then :
35fa52c0
DWT
4325 $as_echo_n "(cached) " >&6
4326else
9c60689e 4327 lt_cv_ld_reload_flag='-r'
35fa52c0 4328fi
9c60689e
DWT
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4330$as_echo "$lt_cv_ld_reload_flag" >&6; }
4331reload_flag=$lt_cv_ld_reload_flag
4332case $reload_flag in
4333"" | " "*) ;;
4334*) reload_flag=" $reload_flag" ;;
4335esac
4336reload_cmds='$LD$reload_flag -o $output$reload_objs'
4337case $host_os in
ee134472
JF
4338 cygwin* | mingw* | pw32* | cegcc*)
4339 if test "$GCC" != yes; then
4340 reload_cmds=false
4341 fi
4342 ;;
9c60689e
DWT
4343 darwin*)
4344 if test "$GCC" = yes; then
4345 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4346 else
4347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4348 fi
4349 ;;
35fa52c0 4350esac
35fa52c0
DWT
4351
4352
9c60689e
DWT
4353
4354
4355
4356
4357
4358
4359
4360if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4362set dummy ${ac_tool_prefix}objdump; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
ee134472 4365if ${ac_cv_prog_OBJDUMP+:} false; then :
35fa52c0
DWT
4366 $as_echo_n "(cached) " >&6
4367else
9c60689e
DWT
4368 if test -n "$OBJDUMP"; then
4369 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35fa52c0 4370else
9c60689e
DWT
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
35fa52c0 4381 fi
9c60689e
DWT
4382done
4383 done
4384IFS=$as_save_IFS
35fa52c0 4385
35fa52c0 4386fi
35fa52c0 4387fi
9c60689e
DWT
4388OBJDUMP=$ac_cv_prog_OBJDUMP
4389if test -n "$OBJDUMP"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4391$as_echo "$OBJDUMP" >&6; }
35fa52c0 4392else
9c60689e
DWT
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
35fa52c0 4395fi
9c60689e
DWT
4396
4397
4398fi
4399if test -z "$ac_cv_prog_OBJDUMP"; then
4400 ac_ct_OBJDUMP=$OBJDUMP
4401 # Extract the first word of "objdump", so it can be a program name with args.
4402set dummy objdump; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
ee134472 4405if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
35fa52c0
DWT
4406 $as_echo_n "(cached) " >&6
4407else
9c60689e
DWT
4408 if test -n "$ac_ct_OBJDUMP"; then
4409 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
35fa52c0 4410else
9c60689e
DWT
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423 done
4424IFS=$as_save_IFS
4425
35fa52c0
DWT
4426fi
4427fi
9c60689e
DWT
4428ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4429if test -n "$ac_ct_OBJDUMP"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4431$as_echo "$ac_ct_OBJDUMP" >&6; }
35fa52c0
DWT
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
9c60689e
DWT
4436
4437 if test "x$ac_ct_OBJDUMP" = x; then
4438 OBJDUMP="false"
4439 else
4440 case $cross_compiling:$ac_tool_warned in
4441yes:)
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444ac_tool_warned=yes ;;
35fa52c0 4445esac
9c60689e
DWT
4446 OBJDUMP=$ac_ct_OBJDUMP
4447 fi
4448else
4449 OBJDUMP="$ac_cv_prog_OBJDUMP"
35fa52c0 4450fi
35fa52c0 4451
9c60689e 4452test -z "$OBJDUMP" && OBJDUMP=objdump
35fa52c0
DWT
4453
4454
35fa52c0 4455
35fa52c0 4456
35fa52c0
DWT
4457
4458
4459
35fa52c0
DWT
4460
4461
9c60689e
DWT
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4463$as_echo_n "checking how to recognize dependent libraries... " >&6; }
ee134472 4464if ${lt_cv_deplibs_check_method+:} false; then :
9c60689e
DWT
4465 $as_echo_n "(cached) " >&6
4466else
4467 lt_cv_file_magic_cmd='$MAGIC_CMD'
4468lt_cv_file_magic_test_file=
4469lt_cv_deplibs_check_method='unknown'
4470# Need to set the preceding variable on all platforms that support
4471# interlibrary dependencies.
4472# 'none' -- dependencies not supported.
4473# `unknown' -- same as none, but documents that we really don't know.
4474# 'pass_all' -- all dependencies passed with no checks.
4475# 'test_compile' -- check by making test program.
4476# 'file_magic [[regex]]' -- check by looking for files in library path
4477# which responds to the $file_magic_cmd with a given extended regex.
4478# If you have `file' or equivalent on your system and you're not sure
4479# whether `pass_all' will *always* work, you probably want this one.
4480
4481case $host_os in
4482aix[4-9]*)
4483 lt_cv_deplibs_check_method=pass_all
4484 ;;
35fa52c0 4485
9c60689e
DWT
4486beos*)
4487 lt_cv_deplibs_check_method=pass_all
4488 ;;
35fa52c0 4489
9c60689e
DWT
4490bsdi[45]*)
4491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4492 lt_cv_file_magic_cmd='/usr/bin/file -L'
4493 lt_cv_file_magic_test_file=/shlib/libc.so
4494 ;;
35fa52c0 4495
9c60689e
DWT
4496cygwin*)
4497 # func_win32_libid is a shell function defined in ltmain.sh
4498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4499 lt_cv_file_magic_cmd='func_win32_libid'
4500 ;;
35fa52c0 4501
9c60689e
DWT
4502mingw* | pw32*)
4503 # Base MSYS/MinGW do not provide the 'file' command needed by
4504 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4505 # unless we find 'file', for example because we are cross-compiling.
ee134472
JF
4506 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4507 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9c60689e
DWT
4508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4509 lt_cv_file_magic_cmd='func_win32_libid'
4510 else
ee134472
JF
4511 # Keep this pattern in sync with the one in func_win32_libid.
4512 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9c60689e
DWT
4513 lt_cv_file_magic_cmd='$OBJDUMP -f'
4514 fi
4515 ;;
35fa52c0 4516
ee134472 4517cegcc*)
9c60689e
DWT
4518 # use the weaker test based on 'objdump'. See mingw*.
4519 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4520 lt_cv_file_magic_cmd='$OBJDUMP -f'
4521 ;;
35fa52c0 4522
9c60689e
DWT
4523darwin* | rhapsody*)
4524 lt_cv_deplibs_check_method=pass_all
4525 ;;
35fa52c0 4526
9c60689e
DWT
4527freebsd* | dragonfly*)
4528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4529 case $host_cpu in
4530 i*86 )
4531 # Not sure whether the presence of OpenBSD here was a mistake.
4532 # Let's accept both of them until this is cleared up.
4533 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4534 lt_cv_file_magic_cmd=/usr/bin/file
4535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4536 ;;
4537 esac
4538 else
4539 lt_cv_deplibs_check_method=pass_all
4540 fi
4541 ;;
35fa52c0 4542
9c60689e
DWT
4543gnu*)
4544 lt_cv_deplibs_check_method=pass_all
4545 ;;
35fa52c0 4546
ee134472
JF
4547haiku*)
4548 lt_cv_deplibs_check_method=pass_all
4549 ;;
4550
9c60689e
DWT
4551hpux10.20* | hpux11*)
4552 lt_cv_file_magic_cmd=/usr/bin/file
4553 case $host_cpu in
4554 ia64*)
4555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4556 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4557 ;;
4558 hppa*64*)
ee134472 4559 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]'
9c60689e
DWT
4560 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4561 ;;
4562 *)
ee134472 4563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9c60689e
DWT
4564 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4565 ;;
4566 esac
4567 ;;
35fa52c0 4568
9c60689e
DWT
4569interix[3-9]*)
4570 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4572 ;;
35fa52c0 4573
9c60689e
DWT
4574irix5* | irix6* | nonstopux*)
4575 case $LD in
4576 *-32|*"-32 ") libmagic=32-bit;;
4577 *-n32|*"-n32 ") libmagic=N32;;
4578 *-64|*"-64 ") libmagic=64-bit;;
4579 *) libmagic=never-match;;
4580 esac
4581 lt_cv_deplibs_check_method=pass_all
4582 ;;
35fa52c0 4583
9c60689e 4584# This must be Linux ELF.
1504c9b8 4585linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
4586 lt_cv_deplibs_check_method=pass_all
4587 ;;
35fa52c0 4588
1504c9b8 4589netbsd* | netbsdelf*-gnu)
9c60689e
DWT
4590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4592 else
4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4594 fi
4595 ;;
35fa52c0 4596
9c60689e
DWT
4597newos6*)
4598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4599 lt_cv_file_magic_cmd=/usr/bin/file
4600 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4601 ;;
35fa52c0 4602
9c60689e
DWT
4603*nto* | *qnx*)
4604 lt_cv_deplibs_check_method=pass_all
4605 ;;
35fa52c0 4606
9c60689e
DWT
4607openbsd*)
4608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4610 else
4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4612 fi
4613 ;;
4614
4615osf3* | osf4* | osf5*)
4616 lt_cv_deplibs_check_method=pass_all
4617 ;;
4618
4619rdos*)
4620 lt_cv_deplibs_check_method=pass_all
4621 ;;
4622
4623solaris*)
4624 lt_cv_deplibs_check_method=pass_all
4625 ;;
4626
4627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4628 lt_cv_deplibs_check_method=pass_all
4629 ;;
4630
4631sysv4 | sysv4.3*)
4632 case $host_vendor in
4633 motorola)
4634 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]'
4635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4636 ;;
4637 ncr)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640 sequent)
4641 lt_cv_file_magic_cmd='/bin/file'
4642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4643 ;;
4644 sni)
4645 lt_cv_file_magic_cmd='/bin/file'
4646 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4647 lt_cv_file_magic_test_file=/lib/libc.so
4648 ;;
4649 siemens)
4650 lt_cv_deplibs_check_method=pass_all
4651 ;;
4652 pc)
4653 lt_cv_deplibs_check_method=pass_all
4654 ;;
4655 esac
4656 ;;
4657
4658tpf*)
4659 lt_cv_deplibs_check_method=pass_all
4660 ;;
4661esac
35fa52c0
DWT
4662
4663fi
9c60689e
DWT
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4665$as_echo "$lt_cv_deplibs_check_method" >&6; }
ee134472
JF
4666
4667file_magic_glob=
4668want_nocaseglob=no
4669if test "$build" = "$host"; then
4670 case $host_os in
4671 mingw* | pw32*)
4672 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4673 want_nocaseglob=yes
4674 else
4675 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4676 fi
4677 ;;
4678 esac
4679fi
4680
9c60689e
DWT
4681file_magic_cmd=$lt_cv_file_magic_cmd
4682deplibs_check_method=$lt_cv_deplibs_check_method
4683test -z "$deplibs_check_method" && deplibs_check_method=unknown
dbadc56a 4684
35fa52c0 4685
35fa52c0 4686
35fa52c0 4687
35fa52c0 4688
35fa52c0 4689
35fa52c0 4690
35fa52c0 4691
35fa52c0 4692
35fa52c0 4693
ee134472
JF
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
35fa52c0 4704
9c60689e
DWT
4705
4706if test -n "$ac_tool_prefix"; then
ee134472
JF
4707 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4708set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9c60689e
DWT
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
ee134472 4711if ${ac_cv_prog_DLLTOOL+:} false; then :
9c60689e
DWT
4712 $as_echo_n "(cached) " >&6
4713else
ee134472
JF
4714 if test -n "$DLLTOOL"; then
4715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9c60689e
DWT
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ee134472 4724 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9c60689e
DWT
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
35fa52c0 4729 done
9c60689e
DWT
4730IFS=$as_save_IFS
4731
4732fi
4733fi
ee134472
JF
4734DLLTOOL=$ac_cv_prog_DLLTOOL
4735if test -n "$DLLTOOL"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4737$as_echo "$DLLTOOL" >&6; }
9c60689e
DWT
4738else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742
4743
4744fi
ee134472
JF
4745if test -z "$ac_cv_prog_DLLTOOL"; then
4746 ac_ct_DLLTOOL=$DLLTOOL
4747 # Extract the first word of "dlltool", so it can be a program name with args.
4748set dummy dlltool; ac_word=$2
9c60689e
DWT
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
ee134472 4751if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9c60689e
DWT
4752 $as_echo_n "(cached) " >&6
4753else
ee134472
JF
4754 if test -n "$ac_ct_DLLTOOL"; then
4755 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9c60689e
DWT
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ee134472 4764 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9c60689e
DWT
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
35fa52c0 4767 fi
9c60689e
DWT
4768done
4769 done
4770IFS=$as_save_IFS
4771
4772fi
4773fi
ee134472
JF
4774ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4775if test -n "$ac_ct_DLLTOOL"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4777$as_echo "$ac_ct_DLLTOOL" >&6; }
9c60689e
DWT
4778else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
4781fi
4782
ee134472
JF
4783 if test "x$ac_ct_DLLTOOL" = x; then
4784 DLLTOOL="false"
9c60689e
DWT
4785 else
4786 case $cross_compiling:$ac_tool_warned in
4787yes:)
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4790ac_tool_warned=yes ;;
4791esac
ee134472 4792 DLLTOOL=$ac_ct_DLLTOOL
9c60689e
DWT
4793 fi
4794else
ee134472 4795 DLLTOOL="$ac_cv_prog_DLLTOOL"
9c60689e
DWT
4796fi
4797
ee134472
JF
4798test -z "$DLLTOOL" && DLLTOOL=dlltool
4799
4800
4801
4802
4803
4804
4805
9c60689e
DWT
4806
4807
4808
ee134472
JF
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4810$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4811if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813else
4814 lt_cv_sharedlib_from_linklib_cmd='unknown'
4815
4816case $host_os in
4817cygwin* | mingw* | pw32* | cegcc*)
4818 # two different shell functions defined in ltmain.sh
4819 # decide which to use based on capabilities of $DLLTOOL
4820 case `$DLLTOOL --help 2>&1` in
4821 *--identify-strict*)
4822 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4823 ;;
4824 *)
4825 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4826 ;;
4827 esac
4828 ;;
4829*)
4830 # fallback: assume linklib IS sharedlib
4831 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4832 ;;
4833esac
4834
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4837$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4838sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4839test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9c60689e
DWT
4840
4841
4842
4843
4844
4845
4846
4847
4848if test -n "$ac_tool_prefix"; then
ee134472
JF
4849 for ac_prog in ar
4850 do
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
ee134472 4855if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
4856 $as_echo_n "(cached) " >&6
4857else
ee134472
JF
4858 if test -n "$AR"; then
4859 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ee134472 4868 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
35fa52c0 4871 fi
9c60689e
DWT
4872done
4873 done
4874IFS=$as_save_IFS
4875
4876fi
4877fi
ee134472
JF
4878AR=$ac_cv_prog_AR
4879if test -n "$AR"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4881$as_echo "$AR" >&6; }
9c60689e
DWT
4882else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887
ee134472
JF
4888 test -n "$AR" && break
4889 done
9c60689e 4890fi
ee134472
JF
4891if test -z "$AR"; then
4892 ac_ct_AR=$AR
4893 for ac_prog in ar
4894do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896set dummy $ac_prog; ac_word=$2
9c60689e
DWT
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
ee134472 4899if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
4900 $as_echo_n "(cached) " >&6
4901else
ee134472
JF
4902 if test -n "$ac_ct_AR"; then
4903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ee134472 4912 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916done
4917 done
4918IFS=$as_save_IFS
4919
4920fi
4921fi
ee134472
JF
4922ac_ct_AR=$ac_cv_prog_ac_ct_AR
4923if test -n "$ac_ct_AR"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4925$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
4926else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930
ee134472
JF
4931
4932 test -n "$ac_ct_AR" && break
4933done
4934
4935 if test "x$ac_ct_AR" = x; then
4936 AR="false"
9c60689e
DWT
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939yes:)
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942ac_tool_warned=yes ;;
4943esac
ee134472
JF
4944 AR=$ac_ct_AR
4945 fi
4946fi
4947
4948: ${AR=ar}
4949: ${AR_FLAGS=cru}
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4962$as_echo_n "checking for archiver @FILE support... " >&6; }
4963if ${lt_cv_ar_at_file+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965else
4966 lt_cv_ar_at_file=no
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978if ac_fn_c_try_compile "$LINENO"; then :
4979 echo conftest.$ac_objext > conftest.lst
4980 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4982 (eval $lt_ar_try) 2>&5
4983 ac_status=$?
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }
4986 if test "$ac_status" -eq 0; then
4987 # Ensure the archiver fails upon bogus file names.
4988 rm -f conftest.$ac_objext libconftest.a
4989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4990 (eval $lt_ar_try) 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }
4994 if test "$ac_status" -ne 0; then
4995 lt_cv_ar_at_file=@
4996 fi
4997 fi
4998 rm -f conftest.* libconftest.a
4999
5000fi
5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5005$as_echo "$lt_cv_ar_at_file" >&6; }
5006
5007if test "x$lt_cv_ar_at_file" = xno; then
5008 archiver_list_spec=
5009else
5010 archiver_list_spec=$lt_cv_ar_at_file
5011fi
5012
5013
5014
5015
5016
5017
5018
5019if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5021set dummy ${ac_tool_prefix}strip; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if ${ac_cv_prog_STRIP+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 if test -n "$STRIP"; then
5028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5029else
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042 done
5043IFS=$as_save_IFS
5044
5045fi
5046fi
5047STRIP=$ac_cv_prog_STRIP
5048if test -n "$STRIP"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5050$as_echo "$STRIP" >&6; }
5051else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057fi
5058if test -z "$ac_cv_prog_STRIP"; then
5059 ac_ct_STRIP=$STRIP
5060 # Extract the first word of "strip", so it can be a program name with args.
5061set dummy strip; ac_word=$2
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063$as_echo_n "checking for $ac_word... " >&6; }
5064if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 if test -n "$ac_ct_STRIP"; then
5068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_STRIP="strip"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082 done
5083IFS=$as_save_IFS
5084
5085fi
5086fi
5087ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5088if test -n "$ac_ct_STRIP"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5090$as_echo "$ac_ct_STRIP" >&6; }
5091else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
5094fi
5095
5096 if test "x$ac_ct_STRIP" = x; then
5097 STRIP=":"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100yes:)
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105 STRIP=$ac_ct_STRIP
9c60689e
DWT
5106 fi
5107else
5108 STRIP="$ac_cv_prog_STRIP"
5109fi
5110
5111test -z "$STRIP" && STRIP=:
5112
5113
5114
5115
5116
5117
5118if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122$as_echo_n "checking for $ac_word... " >&6; }
ee134472 5123if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
5124 $as_echo_n "(cached) " >&6
5125else
5126 if test -n "$RANLIB"; then
5127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128else
5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130for as_dir in $PATH
5131do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140done
5141 done
5142IFS=$as_save_IFS
5143
5144fi
5145fi
5146RANLIB=$ac_cv_prog_RANLIB
5147if test -n "$RANLIB"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5149$as_echo "$RANLIB" >&6; }
5150else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152$as_echo "no" >&6; }
5153fi
5154
5155
5156fi
5157if test -z "$ac_cv_prog_RANLIB"; then
5158 ac_ct_RANLIB=$RANLIB
5159 # Extract the first word of "ranlib", so it can be a program name with args.
5160set dummy ranlib; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
ee134472 5163if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
5164 $as_echo_n "(cached) " >&6
5165else
5166 if test -n "$ac_ct_RANLIB"; then
5167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_ac_ct_RANLIB="ranlib"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181 done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5187if test -n "$ac_ct_RANLIB"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5189$as_echo "$ac_ct_RANLIB" >&6; }
5190else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195 if test "x$ac_ct_RANLIB" = x; then
5196 RANLIB=":"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204 RANLIB=$ac_ct_RANLIB
5205 fi
5206else
5207 RANLIB="$ac_cv_prog_RANLIB"
5208fi
5209
5210test -z "$RANLIB" && RANLIB=:
5211
5212
5213
5214
5215
5216
5217# Determine commands to create old-style static archives.
5218old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5219old_postinstall_cmds='chmod 644 $oldlib'
5220old_postuninstall_cmds=
5221
5222if test -n "$RANLIB"; then
5223 case $host_os in
5224 openbsd*)
5225 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5226 ;;
5227 *)
5228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5229 ;;
5230 esac
5231 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5232fi
5233
ee134472
JF
5234case $host_os in
5235 darwin*)
5236 lock_old_archive_extraction=yes ;;
5237 *)
5238 lock_old_archive_extraction=no ;;
5239esac
5240
5241
5242
5243
5244
5245
9c60689e
DWT
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279# If no C compiler was specified, use CC.
5280LTCC=${LTCC-"$CC"}
5281
5282# If no C compiler flags were specified, use CFLAGS.
5283LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5284
5285# Allow CC to be a program name with arguments.
5286compiler=$CC
5287
5288
5289# Check for command to grab the raw symbol name followed by C symbol from nm.
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5291$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
ee134472 5292if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9c60689e
DWT
5293 $as_echo_n "(cached) " >&6
5294else
5295
5296# These are sane defaults that work on at least a few old systems.
5297# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5298
5299# Character class describing NM global symbol codes.
5300symcode='[BCDEGRST]'
5301
5302# Regexp to match symbols that can be accessed directly from C.
5303sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5304
5305# Define system-specific variables.
5306case $host_os in
5307aix*)
5308 symcode='[BCDT]'
5309 ;;
5310cygwin* | mingw* | pw32* | cegcc*)
5311 symcode='[ABCDGISTW]'
5312 ;;
5313hpux*)
5314 if test "$host_cpu" = ia64; then
5315 symcode='[ABCDEGRST]'
5316 fi
5317 ;;
5318irix* | nonstopux*)
5319 symcode='[BCDEGRST]'
5320 ;;
5321osf*)
5322 symcode='[BCDEGQRST]'
5323 ;;
5324solaris*)
5325 symcode='[BDRT]'
5326 ;;
5327sco3.2v5*)
5328 symcode='[DT]'
5329 ;;
5330sysv4.2uw2*)
5331 symcode='[DT]'
5332 ;;
5333sysv5* | sco5v6* | unixware* | OpenUNIX*)
5334 symcode='[ABDT]'
5335 ;;
5336sysv4)
5337 symcode='[DFNSTU]'
5338 ;;
5339esac
5340
5341# If we're using GNU nm, then use its standard symbol codes.
5342case `$NM -V 2>&1` in
5343*GNU* | *'with BFD'*)
5344 symcode='[ABCDGIRSTW]' ;;
5345esac
5346
5347# Transform an extracted symbol line into a proper C declaration.
5348# Some systems (esp. on ia64) link data and code symbols differently,
5349# so use this general approach.
5350lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5351
5352# Transform an extracted symbol line into symbol name and symbol address
ee134472
JF
5353lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5354lt_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
DWT
5355
5356# Handle CRLF in mingw tool chain
5357opt_cr=
5358case $build_os in
5359mingw*)
5360 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361 ;;
5362esac
5363
5364# Try without a prefix underscore, then with it.
5365for ac_symprfx in "" "_"; do
5366
5367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5368 symxfrm="\\1 $ac_symprfx\\2 \\2"
5369
5370 # Write the raw and C identifiers.
5371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5372 # Fake it for dumpbin and say T for any non-static function
5373 # and D for any global variable.
5374 # Also find C++ and __fastcall symbols from MSVC++,
5375 # which start with @ or ?.
5376 lt_cv_sys_global_symbol_pipe="$AWK '"\
5377" {last_section=section; section=\$ 3};"\
5378" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5379" \$ 0!~/External *\|/{next};"\
5380" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5381" {if(hide[section]) next};"\
5382" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5383" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5384" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5385" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5386" ' prfx=^$ac_symprfx"
5387 else
5388 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5389 fi
ee134472 5390 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e
DWT
5391
5392 # Check to see that the pipe works correctly.
5393 pipe_works=no
5394
5395 rm -f conftest*
5396 cat > conftest.$ac_ext <<_LT_EOF
5397#ifdef __cplusplus
5398extern "C" {
5399#endif
5400char nm_test_var;
5401void nm_test_func(void);
5402void nm_test_func(void){}
5403#ifdef __cplusplus
5404}
5405#endif
5406int main(){nm_test_var='a';nm_test_func();return(0);}
5407_LT_EOF
5408
5409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5410 (eval $ac_compile) 2>&5
5411 ac_status=$?
5412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5413 test $ac_status = 0; }; then
5414 # Now try to grab the symbols.
5415 nlist=conftest.nm
ee134472
JF
5416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5417 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9c60689e
DWT
5418 ac_status=$?
5419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; } && test -s "$nlist"; then
5421 # Try sorting and uniquifying the output.
5422 if sort "$nlist" | uniq > "$nlist"T; then
5423 mv -f "$nlist"T "$nlist"
5424 else
5425 rm -f "$nlist"T
5426 fi
5427
5428 # Make sure that we snagged all the symbols we need.
5429 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5430 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5431 cat <<_LT_EOF > conftest.$ac_ext
ee134472
JF
5432/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5433#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5434/* DATA imports from DLLs on WIN32 con't be const, because runtime
5435 relocations are performed -- see ld's documentation on pseudo-relocs. */
5436# define LT_DLSYM_CONST
5437#elif defined(__osf__)
5438/* This system does not cope well with relocations in const data. */
5439# define LT_DLSYM_CONST
5440#else
5441# define LT_DLSYM_CONST const
5442#endif
5443
9c60689e
DWT
5444#ifdef __cplusplus
5445extern "C" {
5446#endif
5447
5448_LT_EOF
5449 # Now generate the symbol file.
5450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5451
5452 cat <<_LT_EOF >> conftest.$ac_ext
5453
5454/* The mapping between symbol names and symbols. */
ee134472 5455LT_DLSYM_CONST struct {
9c60689e
DWT
5456 const char *name;
5457 void *address;
5458}
5459lt__PROGRAM__LTX_preloaded_symbols[] =
5460{
5461 { "@PROGRAM@", (void *) 0 },
5462_LT_EOF
5463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5464 cat <<\_LT_EOF >> conftest.$ac_ext
5465 {0, (void *) 0}
5466};
5467
5468/* This works around a problem in FreeBSD linker */
5469#ifdef FREEBSD_WORKAROUND
5470static const void *lt_preloaded_setup() {
5471 return lt__PROGRAM__LTX_preloaded_symbols;
5472}
5473#endif
5474
5475#ifdef __cplusplus
5476}
5477#endif
5478_LT_EOF
5479 # Now try linking the two files.
5480 mv conftest.$ac_objext conftstm.$ac_objext
ee134472
JF
5481 lt_globsym_save_LIBS=$LIBS
5482 lt_globsym_save_CFLAGS=$CFLAGS
9c60689e
DWT
5483 LIBS="conftstm.$ac_objext"
5484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5486 (eval $ac_link) 2>&5
5487 ac_status=$?
5488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5490 pipe_works=yes
5491 fi
ee134472
JF
5492 LIBS=$lt_globsym_save_LIBS
5493 CFLAGS=$lt_globsym_save_CFLAGS
9c60689e
DWT
5494 else
5495 echo "cannot find nm_test_func in $nlist" >&5
5496 fi
5497 else
5498 echo "cannot find nm_test_var in $nlist" >&5
5499 fi
5500 else
5501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5502 fi
5503 else
5504 echo "$progname: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5506 fi
5507 rm -rf conftest* conftst*
5508
5509 # Do not use the global_symbol_pipe unless it works.
5510 if test "$pipe_works" = yes; then
5511 break
5512 else
5513 lt_cv_sys_global_symbol_pipe=
5514 fi
5515done
5516
5517fi
5518
5519if test -z "$lt_cv_sys_global_symbol_pipe"; then
5520 lt_cv_sys_global_symbol_to_cdecl=
5521fi
5522if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5524$as_echo "failed" >&6; }
5525else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5527$as_echo "ok" >&6; }
5528fi
5529
ee134472
JF
5530# Response file support.
5531if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5532 nm_file_list_spec='@'
5533elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5534 nm_file_list_spec='@'
5535fi
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
9c60689e
DWT
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
ee134472
JF
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5564$as_echo_n "checking for sysroot... " >&6; }
5565
5566# Check whether --with-sysroot was given.
5567if test "${with_sysroot+set}" = set; then :
5568 withval=$with_sysroot;
5569else
5570 with_sysroot=no
5571fi
5572
5573
5574lt_sysroot=
5575case ${with_sysroot} in #(
5576 yes)
5577 if test "$GCC" = yes; then
5578 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5579 fi
5580 ;; #(
5581 /*)
5582 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5583 ;; #(
5584 no|'')
5585 ;; #(
5586 *)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5588$as_echo "${with_sysroot}" >&6; }
5589 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5590 ;;
5591esac
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5594$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
5595
5596
5597
5598
5599
5600# Check whether --enable-libtool-lock was given.
5601if test "${enable_libtool_lock+set}" = set; then :
5602 enableval=$enable_libtool_lock;
5603fi
5604
5605test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5606
5607# Some flags need to be propagated to the compiler or linker for good
5608# libtool support.
5609case $host in
5610ia64-*-hpux*)
5611 # Find out which ABI we are using.
5612 echo 'int i;' > conftest.$ac_ext
5613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; }; then
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *ELF-32*)
5620 HPUX_IA64_MODE="32"
5621 ;;
5622 *ELF-64*)
5623 HPUX_IA64_MODE="64"
5624 ;;
5625 esac
5626 fi
5627 rm -rf conftest*
5628 ;;
5629*-*-irix6*)
5630 # Find out which ABI we are using.
ee134472 5631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9c60689e
DWT
5632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5633 (eval $ac_compile) 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; }; then
5637 if test "$lt_cv_prog_gnu_ld" = yes; then
5638 case `/usr/bin/file conftest.$ac_objext` in
5639 *32-bit*)
5640 LD="${LD-ld} -melf32bsmip"
5641 ;;
5642 *N32*)
5643 LD="${LD-ld} -melf32bmipn32"
5644 ;;
5645 *64-bit*)
5646 LD="${LD-ld} -melf64bmip"
5647 ;;
5648 esac
5649 else
5650 case `/usr/bin/file conftest.$ac_objext` in
5651 *32-bit*)
5652 LD="${LD-ld} -32"
5653 ;;
5654 *N32*)
5655 LD="${LD-ld} -n32"
5656 ;;
5657 *64-bit*)
5658 LD="${LD-ld} -64"
5659 ;;
5660 esac
5661 fi
5662 fi
5663 rm -rf conftest*
5664 ;;
5665
5666x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5667s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5668 # Find out which ABI we are using.
5669 echo 'int i;' > conftest.$ac_ext
5670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5671 (eval $ac_compile) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; }; then
5675 case `/usr/bin/file conftest.o` in
5676 *32-bit*)
5677 case $host in
5678 x86_64-*kfreebsd*-gnu)
5679 LD="${LD-ld} -m elf_i386_fbsd"
5680 ;;
5681 x86_64-*linux*)
5682 LD="${LD-ld} -m elf_i386"
5683 ;;
5684 ppc64-*linux*|powerpc64-*linux*)
5685 LD="${LD-ld} -m elf32ppclinux"
5686 ;;
5687 s390x-*linux*)
5688 LD="${LD-ld} -m elf_s390"
5689 ;;
5690 sparc64-*linux*)
5691 LD="${LD-ld} -m elf32_sparc"
5692 ;;
5693 esac
5694 ;;
5695 *64-bit*)
5696 case $host in
5697 x86_64-*kfreebsd*-gnu)
5698 LD="${LD-ld} -m elf_x86_64_fbsd"
5699 ;;
5700 x86_64-*linux*)
5701 LD="${LD-ld} -m elf_x86_64"
5702 ;;
5703 ppc*-*linux*|powerpc*-*linux*)
5704 LD="${LD-ld} -m elf64ppc"
5705 ;;
5706 s390*-*linux*|s390*-*tpf*)
5707 LD="${LD-ld} -m elf64_s390"
5708 ;;
5709 sparc*-*linux*)
5710 LD="${LD-ld} -m elf64_sparc"
5711 ;;
5712 esac
5713 ;;
5714 esac
5715 fi
5716 rm -rf conftest*
5717 ;;
5718
5719*-*-sco3.2v5*)
5720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5721 SAVE_CFLAGS="$CFLAGS"
5722 CFLAGS="$CFLAGS -belf"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5724$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
ee134472 5725if ${lt_cv_cc_needs_belf+:} false; then :
9c60689e
DWT
5726 $as_echo_n "(cached) " >&6
5727else
5728 ac_ext=c
5729ac_cpp='$CPP $CPPFLAGS'
5730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h. */
5736
5737int
5738main ()
5739{
5740
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_link "$LINENO"; then :
5746 lt_cv_cc_needs_belf=yes
5747else
5748 lt_cv_cc_needs_belf=no
5749fi
5750rm -f core conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 ac_ext=c
5753ac_cpp='$CPP $CPPFLAGS'
5754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757
5758fi
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5760$as_echo "$lt_cv_cc_needs_belf" >&6; }
5761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5763 CFLAGS="$SAVE_CFLAGS"
5764 fi
5765 ;;
5766sparc*-*solaris*)
5767 # Find out which ABI we are using.
5768 echo 'int i;' > conftest.$ac_ext
5769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }; then
5774 case `/usr/bin/file conftest.o` in
5775 *64-bit*)
5776 case $lt_cv_prog_gnu_ld in
5777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5778 *)
5779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5780 LD="${LD-ld} -64"
5781 fi
5782 ;;
5783 esac
5784 ;;
5785 esac
5786 fi
5787 rm -rf conftest*
5788 ;;
5789esac
5790
5791need_locks="$enable_libtool_lock"
5792
ee134472
JF
5793if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5795set dummy ${ac_tool_prefix}mt; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800else
5801 if test -n "$MANIFEST_TOOL"; then
5802 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816 done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5822if test -n "$MANIFEST_TOOL"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5824$as_echo "$MANIFEST_TOOL" >&6; }
5825else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831fi
5832if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5833 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5834 # Extract the first word of "mt", so it can be a program name with args.
5835set dummy mt; ac_word=$2
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837$as_echo_n "checking for $ac_word... " >&6; }
5838if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840else
5841 if test -n "$ac_ct_MANIFEST_TOOL"; then
5842 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856 done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
5861ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5862if test -n "$ac_ct_MANIFEST_TOOL"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5864$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
5870 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5871 MANIFEST_TOOL=":"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874yes:)
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877ac_tool_warned=yes ;;
5878esac
5879 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5880 fi
5881else
5882 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5883fi
5884
5885test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5887$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5888if ${lt_cv_path_mainfest_tool+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890else
5891 lt_cv_path_mainfest_tool=no
5892 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5893 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5894 cat conftest.err >&5
5895 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5896 lt_cv_path_mainfest_tool=yes
5897 fi
5898 rm -f conftest*
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5901$as_echo "$lt_cv_path_mainfest_tool" >&6; }
5902if test "x$lt_cv_path_mainfest_tool" != xyes; then
5903 MANIFEST_TOOL=:
5904fi
5905
5906
5907
5908
5909
9c60689e
DWT
5910
5911 case $host_os in
5912 rhapsody* | darwin*)
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917$as_echo_n "checking for $ac_word... " >&6; }
ee134472 5918if ${ac_cv_prog_DSYMUTIL+:} false; then :
9c60689e
DWT
5919 $as_echo_n "(cached) " >&6
5920else
5921 if test -n "$DSYMUTIL"; then
5922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936 done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941DSYMUTIL=$ac_cv_prog_DSYMUTIL
5942if test -n "$DSYMUTIL"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5944$as_echo "$DSYMUTIL" >&6; }
5945else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948fi
5949
5950
5951fi
5952if test -z "$ac_cv_prog_DSYMUTIL"; then
5953 ac_ct_DSYMUTIL=$DSYMUTIL
5954 # Extract the first word of "dsymutil", so it can be a program name with args.
5955set dummy dsymutil; ac_word=$2
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957$as_echo_n "checking for $ac_word... " >&6; }
ee134472 5958if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
5959 $as_echo_n "(cached) " >&6
5960else
5961 if test -n "$ac_ct_DSYMUTIL"; then
5962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975done
5976 done
5977IFS=$as_save_IFS
5978
5979fi
5980fi
5981ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5982if test -n "$ac_ct_DSYMUTIL"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5984$as_echo "$ac_ct_DSYMUTIL" >&6; }
5985else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988fi
5989
5990 if test "x$ac_ct_DSYMUTIL" = x; then
5991 DSYMUTIL=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994yes:)
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997ac_tool_warned=yes ;;
5998esac
5999 DSYMUTIL=$ac_ct_DSYMUTIL
6000 fi
6001else
6002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6003fi
6004
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6007set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6010if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
6011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$NMEDIT"; then
6014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033NMEDIT=$ac_cv_prog_NMEDIT
6034if test -n "$NMEDIT"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6036$as_echo "$NMEDIT" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043fi
6044if test -z "$ac_cv_prog_NMEDIT"; then
6045 ac_ct_NMEDIT=$NMEDIT
6046 # Extract the first word of "nmedit", so it can be a program name with args.
6047set dummy nmedit; ac_word=$2
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6050if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
6051 $as_echo_n "(cached) " >&6
6052else
6053 if test -n "$ac_ct_NMEDIT"; then
6054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068 done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6074if test -n "$ac_ct_NMEDIT"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6076$as_echo "$ac_ct_NMEDIT" >&6; }
6077else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081
6082 if test "x$ac_ct_NMEDIT" = x; then
6083 NMEDIT=":"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086yes:)
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089ac_tool_warned=yes ;;
6090esac
6091 NMEDIT=$ac_ct_NMEDIT
6092 fi
6093else
6094 NMEDIT="$ac_cv_prog_NMEDIT"
6095fi
6096
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6099set dummy ${ac_tool_prefix}lipo; ac_word=$2
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6102if ${ac_cv_prog_LIPO+:} false; then :
9c60689e
DWT
6103 $as_echo_n "(cached) " >&6
6104else
6105 if test -n "$LIPO"; then
6106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119done
6120 done
6121IFS=$as_save_IFS
6122
6123fi
6124fi
6125LIPO=$ac_cv_prog_LIPO
6126if test -n "$LIPO"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6128$as_echo "$LIPO" >&6; }
6129else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132fi
6133
6134
6135fi
6136if test -z "$ac_cv_prog_LIPO"; then
6137 ac_ct_LIPO=$LIPO
6138 # Extract the first word of "lipo", so it can be a program name with args.
6139set dummy lipo; ac_word=$2
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6142if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
6143 $as_echo_n "(cached) " >&6
6144else
6145 if test -n "$ac_ct_LIPO"; then
6146 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_LIPO="lipo"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159done
6160 done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6166if test -n "$ac_ct_LIPO"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6168$as_echo "$ac_ct_LIPO" >&6; }
6169else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171$as_echo "no" >&6; }
6172fi
6173
6174 if test "x$ac_ct_LIPO" = x; then
6175 LIPO=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178yes:)
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183 LIPO=$ac_ct_LIPO
6184 fi
6185else
6186 LIPO="$ac_cv_prog_LIPO"
6187fi
6188
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6191set dummy ${ac_tool_prefix}otool; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6194if ${ac_cv_prog_OTOOL+:} false; then :
9c60689e
DWT
6195 $as_echo_n "(cached) " >&6
6196else
6197 if test -n "$OTOOL"; then
6198 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211done
6212 done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217OTOOL=$ac_cv_prog_OTOOL
6218if test -n "$OTOOL"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6220$as_echo "$OTOOL" >&6; }
6221else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226
6227fi
6228if test -z "$ac_cv_prog_OTOOL"; then
6229 ac_ct_OTOOL=$OTOOL
6230 # Extract the first word of "otool", so it can be a program name with args.
6231set dummy otool; ac_word=$2
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6234if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9c60689e
DWT
6235 $as_echo_n "(cached) " >&6
6236else
6237 if test -n "$ac_ct_OTOOL"; then
6238 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_OTOOL="otool"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251done
6252 done
6253IFS=$as_save_IFS
6254
6255fi
6256fi
6257ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6258if test -n "$ac_ct_OTOOL"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6260$as_echo "$ac_ct_OTOOL" >&6; }
6261else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
6264fi
6265
6266 if test "x$ac_ct_OTOOL" = x; then
6267 OTOOL=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273ac_tool_warned=yes ;;
6274esac
6275 OTOOL=$ac_ct_OTOOL
6276 fi
6277else
6278 OTOOL="$ac_cv_prog_OTOOL"
6279fi
6280
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6283set dummy ${ac_tool_prefix}otool64; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6286if ${ac_cv_prog_OTOOL64+:} false; then :
9c60689e
DWT
6287 $as_echo_n "(cached) " >&6
6288else
6289 if test -n "$OTOOL64"; then
6290 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303done
6304 done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309OTOOL64=$ac_cv_prog_OTOOL64
6310if test -n "$OTOOL64"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6312$as_echo "$OTOOL64" >&6; }
6313else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316fi
6317
6318
6319fi
6320if test -z "$ac_cv_prog_OTOOL64"; then
6321 ac_ct_OTOOL64=$OTOOL64
6322 # Extract the first word of "otool64", so it can be a program name with args.
6323set dummy otool64; ac_word=$2
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
ee134472 6326if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9c60689e
DWT
6327 $as_echo_n "(cached) " >&6
6328else
6329 if test -n "$ac_ct_OTOOL64"; then
6330 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_OTOOL64="otool64"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344 done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6350if test -n "$ac_ct_OTOOL64"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6352$as_echo "$ac_ct_OTOOL64" >&6; }
6353else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358 if test "x$ac_ct_OTOOL64" = x; then
6359 OTOOL64=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367 OTOOL64=$ac_ct_OTOOL64
6368 fi
6369else
6370 OTOOL64="$ac_cv_prog_OTOOL64"
6371fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6400$as_echo_n "checking for -single_module linker flag... " >&6; }
ee134472 6401if ${lt_cv_apple_cc_single_mod+:} false; then :
9c60689e
DWT
6402 $as_echo_n "(cached) " >&6
6403else
6404 lt_cv_apple_cc_single_mod=no
6405 if test -z "${LT_MULTI_MODULE}"; then
6406 # By default we will add the -single_module flag. You can override
6407 # by either setting the environment variable LT_MULTI_MODULE
6408 # non-empty at configure time, or by adding -multi_module to the
6409 # link flags.
6410 rm -rf libconftest.dylib*
6411 echo "int foo(void){return 1;}" > conftest.c
6412 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6413-dynamiclib -Wl,-single_module conftest.c" >&5
6414 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6415 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6416 _lt_result=$?
6417 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6418 lt_cv_apple_cc_single_mod=yes
6419 else
6420 cat conftest.err >&5
6421 fi
6422 rm -rf libconftest.dylib*
6423 rm -f conftest.*
6424 fi
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6427$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6429$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
ee134472 6430if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
6431 $as_echo_n "(cached) " >&6
6432else
6433 lt_cv_ld_exported_symbols_list=no
6434 save_LDFLAGS=$LDFLAGS
6435 echo "_main" > conftest.sym
6436 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h. */
6439
6440int
6441main ()
6442{
6443
6444 ;
6445 return 0;
6446}
6447_ACEOF
6448if ac_fn_c_try_link "$LINENO"; then :
6449 lt_cv_ld_exported_symbols_list=yes
6450else
6451 lt_cv_ld_exported_symbols_list=no
6452fi
6453rm -f core conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
6455 LDFLAGS="$save_LDFLAGS"
6456
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6459$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
ee134472
JF
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6461$as_echo_n "checking for -force_load linker flag... " >&6; }
6462if ${lt_cv_ld_force_load+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464else
6465 lt_cv_ld_force_load=no
6466 cat > conftest.c << _LT_EOF
6467int forced_loaded() { return 2;}
6468_LT_EOF
6469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6471 echo "$AR cru libconftest.a conftest.o" >&5
6472 $AR cru libconftest.a conftest.o 2>&5
6473 echo "$RANLIB libconftest.a" >&5
6474 $RANLIB libconftest.a 2>&5
6475 cat > conftest.c << _LT_EOF
6476int main() { return 0;}
6477_LT_EOF
6478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6480 _lt_result=$?
6481 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6482 lt_cv_ld_force_load=yes
6483 else
6484 cat conftest.err >&5
6485 fi
6486 rm -f conftest.err libconftest.a conftest conftest.c
6487 rm -rf conftest.dSYM
6488
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6491$as_echo "$lt_cv_ld_force_load" >&6; }
9c60689e
DWT
6492 case $host_os in
6493 rhapsody* | darwin1.[012])
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6495 darwin1.*)
6496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6497 darwin*) # darwin 5.x on
6498 # if running on 10.5 or later, the deployment target defaults
6499 # to the OS version, if on x86, and 10.4, the deployment
6500 # target defaults to 10.4. Don't you love it?
6501 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6502 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6504 10.[012]*)
6505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6506 10.*)
6507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6508 esac
6509 ;;
6510 esac
6511 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6512 _lt_dar_single_mod='$single_module'
6513 fi
6514 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6515 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6516 else
6517 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6518 fi
ee134472 6519 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9c60689e
DWT
6520 _lt_dsymutil='~$DSYMUTIL $lib || :'
6521 else
6522 _lt_dsymutil=
6523 fi
6524 ;;
6525 esac
6526
6527ac_ext=c
6528ac_cpp='$CPP $CPPFLAGS'
6529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6531ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6533$as_echo_n "checking how to run the C preprocessor... " >&6; }
6534# On Suns, sometimes $CPP names a directory.
6535if test -n "$CPP" && test -d "$CPP"; then
6536 CPP=
6537fi
6538if test -z "$CPP"; then
ee134472 6539 if ${ac_cv_prog_CPP+:} false; then :
9c60689e
DWT
6540 $as_echo_n "(cached) " >&6
6541else
6542 # Double quotes because CPP needs to be expanded
6543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6544 do
6545 ac_preproc_ok=false
6546for ac_c_preproc_warn_flag in '' yes
6547do
6548 # Use a header file that comes with gcc, so configuring glibc
6549 # with a fresh cross-compiler works.
6550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6551 # <limits.h> exists even on freestanding compilers.
6552 # On the NeXT, cc -E runs the code through the compiler's parser,
6553 # not just through cpp. "Syntax error" is here to catch this case.
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556#ifdef __STDC__
6557# include <limits.h>
6558#else
6559# include <assert.h>
6560#endif
6561 Syntax error
6562_ACEOF
6563if ac_fn_c_try_cpp "$LINENO"; then :
6564
6565else
6566 # Broken: fails on valid input.
6567continue
6568fi
12833ad8 6569rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6570
6571 # OK, works on sane cases. Now check whether nonexistent headers
6572 # can be detected and how.
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
6575#include <ac_nonexistent.h>
6576_ACEOF
6577if ac_fn_c_try_cpp "$LINENO"; then :
6578 # Broken: success on invalid input.
6579continue
6580else
6581 # Passes both tests.
6582ac_preproc_ok=:
6583break
6584fi
12833ad8 6585rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6586
6587done
6588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 6589rm -f conftest.i conftest.err conftest.$ac_ext
9c60689e
DWT
6590if $ac_preproc_ok; then :
6591 break
6592fi
6593
6594 done
6595 ac_cv_prog_CPP=$CPP
6596
6597fi
6598 CPP=$ac_cv_prog_CPP
6599else
6600 ac_cv_prog_CPP=$CPP
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6603$as_echo "$CPP" >&6; }
6604ac_preproc_ok=false
6605for ac_c_preproc_warn_flag in '' yes
6606do
6607 # Use a header file that comes with gcc, so configuring glibc
6608 # with a fresh cross-compiler works.
6609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6610 # <limits.h> exists even on freestanding compilers.
6611 # On the NeXT, cc -E runs the code through the compiler's parser,
6612 # not just through cpp. "Syntax error" is here to catch this case.
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h. */
6615#ifdef __STDC__
6616# include <limits.h>
6617#else
6618# include <assert.h>
6619#endif
6620 Syntax error
6621_ACEOF
6622if ac_fn_c_try_cpp "$LINENO"; then :
6623
6624else
6625 # Broken: fails on valid input.
6626continue
6627fi
12833ad8 6628rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6629
6630 # OK, works on sane cases. Now check whether nonexistent headers
6631 # can be detected and how.
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634#include <ac_nonexistent.h>
6635_ACEOF
6636if ac_fn_c_try_cpp "$LINENO"; then :
6637 # Broken: success on invalid input.
6638continue
6639else
6640 # Passes both tests.
6641ac_preproc_ok=:
6642break
6643fi
12833ad8 6644rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6645
6646done
6647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 6648rm -f conftest.i conftest.err conftest.$ac_ext
9c60689e
DWT
6649if $ac_preproc_ok; then :
6650
6651else
6652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 6654as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
ee134472 6655See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
6656fi
6657
6658ac_ext=c
6659ac_cpp='$CPP $CPPFLAGS'
6660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6666$as_echo_n "checking for ANSI C header files... " >&6; }
ee134472 6667if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
6668 $as_echo_n "(cached) " >&6
6669else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h. */
6672#include <stdlib.h>
6673#include <stdarg.h>
6674#include <string.h>
6675#include <float.h>
6676
6677int
6678main ()
6679{
6680
6681 ;
6682 return 0;
6683}
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"; then :
6686 ac_cv_header_stdc=yes
6687else
6688 ac_cv_header_stdc=no
6689fi
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691
6692if test $ac_cv_header_stdc = yes; then
6693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h. */
6696#include <string.h>
6697
6698_ACEOF
6699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "memchr" >/dev/null 2>&1; then :
6701
6702else
6703 ac_cv_header_stdc=no
6704fi
6705rm -f conftest*
6706
6707fi
6708
6709if test $ac_cv_header_stdc = yes; then
6710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h. */
6713#include <stdlib.h>
6714
6715_ACEOF
6716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717 $EGREP "free" >/dev/null 2>&1; then :
6718
6719else
6720 ac_cv_header_stdc=no
6721fi
6722rm -f conftest*
6723
6724fi
6725
6726if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6728 if test "$cross_compiling" = yes; then :
6729 :
6730else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733#include <ctype.h>
6734#include <stdlib.h>
6735#if ((' ' & 0x0FF) == 0x020)
6736# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6737# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6738#else
6739# define ISLOWER(c) \
6740 (('a' <= (c) && (c) <= 'i') \
6741 || ('j' <= (c) && (c) <= 'r') \
6742 || ('s' <= (c) && (c) <= 'z'))
6743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6744#endif
6745
6746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6747int
6748main ()
6749{
6750 int i;
6751 for (i = 0; i < 256; i++)
6752 if (XOR (islower (i), ISLOWER (i))
6753 || toupper (i) != TOUPPER (i))
6754 return 2;
6755 return 0;
6756}
6757_ACEOF
6758if ac_fn_c_try_run "$LINENO"; then :
6759
6760else
6761 ac_cv_header_stdc=no
6762fi
6763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6764 conftest.$ac_objext conftest.beam conftest.$ac_ext
6765fi
6766
6767fi
6768fi
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6770$as_echo "$ac_cv_header_stdc" >&6; }
6771if test $ac_cv_header_stdc = yes; then
6772
6773$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6774
6775fi
6776
6777# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6778for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6779 inttypes.h stdint.h unistd.h
6780do :
6781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6782ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6783"
12833ad8 6784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9c60689e
DWT
6785 cat >>confdefs.h <<_ACEOF
6786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6787_ACEOF
6788
6789fi
6790
6791done
6792
6793
6794for ac_header in dlfcn.h
6795do :
6796 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6797"
ee134472 6798if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9c60689e
DWT
6799 cat >>confdefs.h <<_ACEOF
6800#define HAVE_DLFCN_H 1
6801_ACEOF
6802
6803fi
6804
6805done
6806
6807
6808
ee134472
JF
6809
6810
9c60689e 6811# Set options
549f29b5
DWT
6812# Check whether --enable-static was given.
6813if test "${enable_static+set}" = set; then :
6814 enableval=$enable_static; p=${PACKAGE-default}
9c60689e 6815 case $enableval in
549f29b5
DWT
6816 yes) enable_static=yes ;;
6817 no) enable_static=no ;;
9c60689e 6818 *)
549f29b5 6819 enable_static=no
9c60689e
DWT
6820 # Look at the argument we got. We use all the common list separators.
6821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6822 for pkg in $enableval; do
6823 IFS="$lt_save_ifs"
6824 if test "X$pkg" = "X$p"; then
549f29b5 6825 enable_static=yes
9c60689e
DWT
6826 fi
6827 done
6828 IFS="$lt_save_ifs"
6829 ;;
6830 esac
6831else
549f29b5 6832 enable_static=no
9c60689e
DWT
6833fi
6834
6835
6836
6837
6838
6839
6840
6841
6842
549f29b5
DWT
6843
6844 enable_dlopen=no
6845
6846
6847 enable_win32_dll=no
6848
6849
6850 # Check whether --enable-shared was given.
6851if test "${enable_shared+set}" = set; then :
6852 enableval=$enable_shared; p=${PACKAGE-default}
9c60689e 6853 case $enableval in
549f29b5
DWT
6854 yes) enable_shared=yes ;;
6855 no) enable_shared=no ;;
9c60689e 6856 *)
549f29b5 6857 enable_shared=no
9c60689e
DWT
6858 # Look at the argument we got. We use all the common list separators.
6859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6860 for pkg in $enableval; do
6861 IFS="$lt_save_ifs"
6862 if test "X$pkg" = "X$p"; then
549f29b5 6863 enable_shared=yes
9c60689e
DWT
6864 fi
6865 done
6866 IFS="$lt_save_ifs"
6867 ;;
6868 esac
6869else
549f29b5 6870 enable_shared=yes
9c60689e
DWT
6871fi
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
549f29b5 6882
9c60689e
DWT
6883# Check whether --with-pic was given.
6884if test "${with_pic+set}" = set; then :
6885 withval=$with_pic; pic_mode="$withval"
6886else
6887 pic_mode=default
6888fi
6889
6890
6891test -z "$pic_mode" && pic_mode=default
6892
6893
6894
6895
6896
6897
6898
6899 # Check whether --enable-fast-install was given.
6900if test "${enable_fast_install+set}" = set; then :
6901 enableval=$enable_fast_install; p=${PACKAGE-default}
6902 case $enableval in
6903 yes) enable_fast_install=yes ;;
6904 no) enable_fast_install=no ;;
6905 *)
6906 enable_fast_install=no
6907 # Look at the argument we got. We use all the common list separators.
6908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6909 for pkg in $enableval; do
6910 IFS="$lt_save_ifs"
6911 if test "X$pkg" = "X$p"; then
6912 enable_fast_install=yes
6913 fi
6914 done
6915 IFS="$lt_save_ifs"
6916 ;;
6917 esac
6918else
6919 enable_fast_install=yes
6920fi
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932# This can be used to rebuild libtool when needed
6933LIBTOOL_DEPS="$ltmain"
6934
6935# Always use our own libtool.
6936LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
ee134472 6960
9c60689e
DWT
6961
6962
6963test -z "$LN_S" && LN_S="ln -s"
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978if test -n "${ZSH_VERSION+set}" ; then
6979 setopt NO_GLOB_SUBST
6980fi
6981
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6983$as_echo_n "checking for objdir... " >&6; }
ee134472 6984if ${lt_cv_objdir+:} false; then :
9c60689e
DWT
6985 $as_echo_n "(cached) " >&6
6986else
6987 rm -f .libs 2>/dev/null
6988mkdir .libs 2>/dev/null
6989if test -d .libs; then
6990 lt_cv_objdir=.libs
6991else
6992 # MS-DOS does not allow filenames that begin with a dot.
6993 lt_cv_objdir=_libs
6994fi
6995rmdir .libs 2>/dev/null
6996fi
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6998$as_echo "$lt_cv_objdir" >&6; }
6999objdir=$lt_cv_objdir
7000
7001
7002
7003
7004
7005cat >>confdefs.h <<_ACEOF
7006#define LT_OBJDIR "$lt_cv_objdir/"
7007_ACEOF
7008
7009
7010
7011
9c60689e
DWT
7012case $host_os in
7013aix3*)
7014 # AIX sometimes has problems with the GCC collect2 program. For some
7015 # reason, if we set the COLLECT_NAMES environment variable, the problems
7016 # vanish in a puff of smoke.
7017 if test "X${COLLECT_NAMES+set}" != Xset; then
7018 COLLECT_NAMES=
7019 export COLLECT_NAMES
7020 fi
7021 ;;
7022esac
7023
9c60689e
DWT
7024# Global variables:
7025ofile=libtool
7026can_build_shared=yes
7027
7028# All known linkers require a `.a' archive for static linking (except MSVC,
7029# which needs '.lib').
7030libext=a
7031
7032with_gnu_ld="$lt_cv_prog_gnu_ld"
7033
7034old_CC="$CC"
7035old_CFLAGS="$CFLAGS"
7036
7037# Set sane defaults for various variables
7038test -z "$CC" && CC=cc
7039test -z "$LTCC" && LTCC=$CC
7040test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7041test -z "$LD" && LD=ld
7042test -z "$ac_objext" && ac_objext=o
7043
7044for cc_temp in $compiler""; do
7045 case $cc_temp in
7046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7048 \-*) ;;
7049 *) break;;
7050 esac
7051done
ee134472 7052cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
7053
7054
7055# Only perform the check for file, if the check method requires it
7056test -z "$MAGIC_CMD" && MAGIC_CMD=file
7057case $deplibs_check_method in
7058file_magic*)
7059 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7061$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
ee134472 7062if ${lt_cv_path_MAGIC_CMD+:} false; then :
9c60689e
DWT
7063 $as_echo_n "(cached) " >&6
7064else
7065 case $MAGIC_CMD in
7066[\\/*] | ?:[\\/]*)
7067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7068 ;;
7069*)
7070 lt_save_MAGIC_CMD="$MAGIC_CMD"
7071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7073 for ac_dir in $ac_dummy; do
7074 IFS="$lt_save_ifs"
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/${ac_tool_prefix}file; then
7077 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7078 if test -n "$file_magic_test_file"; then
7079 case $deplibs_check_method in
7080 "file_magic "*)
7081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7084 $EGREP "$file_magic_regex" > /dev/null; then
7085 :
7086 else
7087 cat <<_LT_EOF 1>&2
7088
7089*** Warning: the command libtool uses to detect shared libraries,
7090*** $file_magic_cmd, produces output that libtool cannot recognize.
7091*** The result is that libtool may fail to recognize shared libraries
7092*** as such. This will affect the creation of libtool libraries that
7093*** depend on shared libraries, but programs linked with such libtool
7094*** libraries will work regardless of this problem. Nevertheless, you
7095*** may want to report the problem to your system manager and/or to
7096*** bug-libtool@gnu.org
7097
7098_LT_EOF
7099 fi ;;
7100 esac
7101 fi
7102 break
7103 fi
7104 done
7105 IFS="$lt_save_ifs"
7106 MAGIC_CMD="$lt_save_MAGIC_CMD"
7107 ;;
7108esac
7109fi
7110
7111MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112if test -n "$MAGIC_CMD"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7114$as_echo "$MAGIC_CMD" >&6; }
7115else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120
7121
7122
7123
7124if test -z "$lt_cv_path_MAGIC_CMD"; then
7125 if test -n "$ac_tool_prefix"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7127$as_echo_n "checking for file... " >&6; }
ee134472 7128if ${lt_cv_path_MAGIC_CMD+:} false; then :
9c60689e
DWT
7129 $as_echo_n "(cached) " >&6
7130else
7131 case $MAGIC_CMD in
7132[\\/*] | ?:[\\/]*)
7133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7134 ;;
7135*)
7136 lt_save_MAGIC_CMD="$MAGIC_CMD"
7137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7138 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7139 for ac_dir in $ac_dummy; do
7140 IFS="$lt_save_ifs"
7141 test -z "$ac_dir" && ac_dir=.
7142 if test -f $ac_dir/file; then
7143 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7144 if test -n "$file_magic_test_file"; then
7145 case $deplibs_check_method in
7146 "file_magic "*)
7147 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7150 $EGREP "$file_magic_regex" > /dev/null; then
7151 :
7152 else
7153 cat <<_LT_EOF 1>&2
7154
7155*** Warning: the command libtool uses to detect shared libraries,
7156*** $file_magic_cmd, produces output that libtool cannot recognize.
7157*** The result is that libtool may fail to recognize shared libraries
7158*** as such. This will affect the creation of libtool libraries that
7159*** depend on shared libraries, but programs linked with such libtool
7160*** libraries will work regardless of this problem. Nevertheless, you
7161*** may want to report the problem to your system manager and/or to
7162*** bug-libtool@gnu.org
7163
7164_LT_EOF
7165 fi ;;
7166 esac
7167 fi
7168 break
7169 fi
7170 done
7171 IFS="$lt_save_ifs"
7172 MAGIC_CMD="$lt_save_MAGIC_CMD"
7173 ;;
7174esac
7175fi
7176
7177MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178if test -n "$MAGIC_CMD"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7180$as_echo "$MAGIC_CMD" >&6; }
7181else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183$as_echo "no" >&6; }
7184fi
7185
7186
7187 else
7188 MAGIC_CMD=:
7189 fi
7190fi
7191
7192 fi
7193 ;;
7194esac
7195
7196# Use C for the default configuration in the libtool script
7197
7198lt_save_CC="$CC"
7199ac_ext=c
7200ac_cpp='$CPP $CPPFLAGS'
7201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204
7205
7206# Source file extension for C test sources.
7207ac_ext=c
7208
7209# Object file extension for compiled C test sources.
7210objext=o
7211objext=$objext
7212
7213# Code to be used in simple compile tests
7214lt_simple_compile_test_code="int some_variable = 0;"
7215
7216# Code to be used in simple link tests
7217lt_simple_link_test_code='int main(){return(0);}'
7218
7219
7220
7221
7222
7223
7224
7225# If no C compiler was specified, use CC.
7226LTCC=${LTCC-"$CC"}
7227
7228# If no C compiler flags were specified, use CFLAGS.
7229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7230
7231# Allow CC to be a program name with arguments.
7232compiler=$CC
7233
7234# Save the default compiler, since it gets overwritten when the other
7235# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7236compiler_DEFAULT=$CC
7237
7238# save warnings/boilerplate of simple test code
7239ac_outfile=conftest.$ac_objext
7240echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7242_lt_compiler_boilerplate=`cat conftest.err`
7243$RM conftest*
7244
7245ac_outfile=conftest.$ac_objext
7246echo "$lt_simple_link_test_code" >conftest.$ac_ext
7247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7248_lt_linker_boilerplate=`cat conftest.err`
7249$RM -r conftest*
7250
7251
7252if test -n "$compiler"; then
7253
7254lt_prog_compiler_no_builtin_flag=
7255
7256if test "$GCC" = yes; then
ee134472
JF
7257 case $cc_basename in
7258 nvcc*)
7259 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7260 *)
7261 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7262 esac
9c60689e
DWT
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7265$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
ee134472 7266if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9c60689e
DWT
7267 $as_echo_n "(cached) " >&6
7268else
7269 lt_cv_prog_compiler_rtti_exceptions=no
7270 ac_outfile=conftest.$ac_objext
7271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272 lt_compiler_flag="-fno-rtti -fno-exceptions"
7273 # Insert the option either (1) after the last *FLAGS variable, or
7274 # (2) before a word containing "conftest.", or (3) at the end.
7275 # Note that $ac_compile itself does not contain backslashes and begins
7276 # with a dollar sign (not a hyphen), so the echo should work correctly.
7277 # The option is referenced via a variable to avoid confusing sed.
7278 lt_compile=`echo "$ac_compile" | $SED \
7279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
ee134472 7282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
7283 (eval "$lt_compile" 2>conftest.err)
7284 ac_status=$?
7285 cat conftest.err >&5
ee134472 7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
7287 if (exit $ac_status) && test -s "$ac_outfile"; then
7288 # The compiler can only warn and ignore the option if not recognized
7289 # So say no if there are warnings other than the usual output.
ee134472 7290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
7291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7293 lt_cv_prog_compiler_rtti_exceptions=yes
7294 fi
7295 fi
7296 $RM conftest*
7297
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7300$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7301
7302if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7304else
7305 :
7306fi
7307
7308fi
7309
7310
7311
7312
7313
7314
7315 lt_prog_compiler_wl=
7316lt_prog_compiler_pic=
7317lt_prog_compiler_static=
7318
9c60689e
DWT
7319
7320 if test "$GCC" = yes; then
7321 lt_prog_compiler_wl='-Wl,'
7322 lt_prog_compiler_static='-static'
7323
7324 case $host_os in
7325 aix*)
7326 # All AIX code is PIC.
7327 if test "$host_cpu" = ia64; then
7328 # AIX 5 now supports IA64 processor
7329 lt_prog_compiler_static='-Bstatic'
7330 fi
7331 ;;
7332
7333 amigaos*)
7334 case $host_cpu in
7335 powerpc)
7336 # see comment about AmigaOS4 .so support
7337 lt_prog_compiler_pic='-fPIC'
7338 ;;
7339 m68k)
7340 # FIXME: we need at least 68020 code to build shared libraries, but
7341 # adding the `-m68020' flag to GCC prevents building anything better,
7342 # like `-m68040'.
7343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7344 ;;
7345 esac
7346 ;;
7347
7348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7349 # PIC is the default for these OSes.
7350 ;;
7351
7352 mingw* | cygwin* | pw32* | os2* | cegcc*)
7353 # This hack is so that the source file can tell whether it is being
7354 # built for inclusion in a dll (and should export symbols for example).
7355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7356 # (--disable-auto-import) libraries
7357 lt_prog_compiler_pic='-DDLL_EXPORT'
7358 ;;
7359
7360 darwin* | rhapsody*)
7361 # PIC is the default on this platform
7362 # Common symbols not allowed in MH_DYLIB files
7363 lt_prog_compiler_pic='-fno-common'
7364 ;;
7365
ee134472
JF
7366 haiku*)
7367 # PIC is the default for Haiku.
7368 # The "-static" flag exists, but is broken.
7369 lt_prog_compiler_static=
7370 ;;
7371
9c60689e
DWT
7372 hpux*)
7373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7375 # sets the default TLS model and affects inlining.
7376 case $host_cpu in
7377 hppa*64*)
7378 # +Z the default
7379 ;;
7380 *)
7381 lt_prog_compiler_pic='-fPIC'
7382 ;;
7383 esac
7384 ;;
7385
7386 interix[3-9]*)
7387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7388 # Instead, we relocate shared libraries at runtime.
7389 ;;
7390
7391 msdosdjgpp*)
7392 # Just because we use GCC doesn't mean we suddenly get shared libraries
7393 # on systems that don't support them.
7394 lt_prog_compiler_can_build_shared=no
7395 enable_shared=no
7396 ;;
7397
7398 *nto* | *qnx*)
7399 # QNX uses GNU C++, but need to define -shared option too, otherwise
7400 # it will coredump.
7401 lt_prog_compiler_pic='-fPIC -shared'
7402 ;;
7403
7404 sysv4*MP*)
7405 if test -d /usr/nec; then
7406 lt_prog_compiler_pic=-Kconform_pic
7407 fi
7408 ;;
7409
7410 *)
7411 lt_prog_compiler_pic='-fPIC'
7412 ;;
7413 esac
ee134472
JF
7414
7415 case $cc_basename in
7416 nvcc*) # Cuda Compiler Driver 2.2
7417 lt_prog_compiler_wl='-Xlinker '
7418 lt_prog_compiler_pic='-Xcompiler -fPIC'
7419 ;;
7420 esac
9c60689e
DWT
7421 else
7422 # PORTME Check for flag to pass linker flags through the system compiler.
7423 case $host_os in
7424 aix*)
7425 lt_prog_compiler_wl='-Wl,'
7426 if test "$host_cpu" = ia64; then
7427 # AIX 5 now supports IA64 processor
7428 lt_prog_compiler_static='-Bstatic'
7429 else
7430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7431 fi
7432 ;;
7433
7434 mingw* | cygwin* | pw32* | os2* | cegcc*)
7435 # This hack is so that the source file can tell whether it is being
7436 # built for inclusion in a dll (and should export symbols for example).
7437 lt_prog_compiler_pic='-DDLL_EXPORT'
7438 ;;
7439
7440 hpux9* | hpux10* | hpux11*)
7441 lt_prog_compiler_wl='-Wl,'
7442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7443 # not for PA HP-UX.
7444 case $host_cpu in
7445 hppa*64*|ia64*)
7446 # +Z the default
7447 ;;
7448 *)
7449 lt_prog_compiler_pic='+Z'
7450 ;;
7451 esac
7452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7453 lt_prog_compiler_static='${wl}-a ${wl}archive'
7454 ;;
7455
7456 irix5* | irix6* | nonstopux*)
7457 lt_prog_compiler_wl='-Wl,'
7458 # PIC (with -KPIC) is the default.
7459 lt_prog_compiler_static='-non_shared'
7460 ;;
7461
1504c9b8 7462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
7463 case $cc_basename in
7464 # old Intel for x86_64 which still supported -KPIC.
7465 ecc*)
7466 lt_prog_compiler_wl='-Wl,'
7467 lt_prog_compiler_pic='-KPIC'
7468 lt_prog_compiler_static='-static'
7469 ;;
7470 # icc used to be incompatible with GCC.
7471 # ICC 10 doesn't accept -KPIC any more.
7472 icc* | ifort*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_pic='-fPIC'
7475 lt_prog_compiler_static='-static'
7476 ;;
7477 # Lahey Fortran 8.1.
7478 lf95*)
7479 lt_prog_compiler_wl='-Wl,'
7480 lt_prog_compiler_pic='--shared'
7481 lt_prog_compiler_static='--static'
7482 ;;
ee134472
JF
7483 nagfor*)
7484 # NAG Fortran compiler
7485 lt_prog_compiler_wl='-Wl,-Wl,,'
7486 lt_prog_compiler_pic='-PIC'
7487 lt_prog_compiler_static='-Bstatic'
7488 ;;
7489 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9c60689e
DWT
7490 # Portland Group compilers (*not* the Pentium gcc compiler,
7491 # which looks to be a dead project)
7492 lt_prog_compiler_wl='-Wl,'
7493 lt_prog_compiler_pic='-fpic'
7494 lt_prog_compiler_static='-Bstatic'
7495 ;;
7496 ccc*)
7497 lt_prog_compiler_wl='-Wl,'
7498 # All Alpha code is PIC.
7499 lt_prog_compiler_static='-non_shared'
7500 ;;
ee134472
JF
7501 xl* | bgxl* | bgf* | mpixl*)
7502 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9c60689e
DWT
7503 lt_prog_compiler_wl='-Wl,'
7504 lt_prog_compiler_pic='-qpic'
7505 lt_prog_compiler_static='-qstaticlink'
7506 ;;
7507 *)
7508 case `$CC -V 2>&1 | sed 5q` in
ee134472
JF
7509 *Sun\ F* | *Sun*Fortran*)
7510 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9c60689e
DWT
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-Bstatic'
ee134472 7513 lt_prog_compiler_wl=''
9c60689e 7514 ;;
ee134472
JF
7515 *Sun\ C*)
7516 # Sun C 5.9
9c60689e
DWT
7517 lt_prog_compiler_pic='-KPIC'
7518 lt_prog_compiler_static='-Bstatic'
ee134472 7519 lt_prog_compiler_wl='-Wl,'
9c60689e
DWT
7520 ;;
7521 esac
7522 ;;
7523 esac
7524 ;;
7525
7526 newsos6)
7527 lt_prog_compiler_pic='-KPIC'
7528 lt_prog_compiler_static='-Bstatic'
7529 ;;
7530
7531 *nto* | *qnx*)
7532 # QNX uses GNU C++, but need to define -shared option too, otherwise
7533 # it will coredump.
7534 lt_prog_compiler_pic='-fPIC -shared'
7535 ;;
7536
7537 osf3* | osf4* | osf5*)
7538 lt_prog_compiler_wl='-Wl,'
7539 # All OSF/1 code is PIC.
7540 lt_prog_compiler_static='-non_shared'
7541 ;;
7542
7543 rdos*)
7544 lt_prog_compiler_static='-non_shared'
7545 ;;
7546
7547 solaris*)
7548 lt_prog_compiler_pic='-KPIC'
7549 lt_prog_compiler_static='-Bstatic'
7550 case $cc_basename in
ee134472 7551 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9c60689e
DWT
7552 lt_prog_compiler_wl='-Qoption ld ';;
7553 *)
7554 lt_prog_compiler_wl='-Wl,';;
7555 esac
7556 ;;
7557
7558 sunos4*)
7559 lt_prog_compiler_wl='-Qoption ld '
7560 lt_prog_compiler_pic='-PIC'
7561 lt_prog_compiler_static='-Bstatic'
7562 ;;
7563
7564 sysv4 | sysv4.2uw2* | sysv4.3*)
7565 lt_prog_compiler_wl='-Wl,'
7566 lt_prog_compiler_pic='-KPIC'
7567 lt_prog_compiler_static='-Bstatic'
7568 ;;
7569
7570 sysv4*MP*)
7571 if test -d /usr/nec ;then
7572 lt_prog_compiler_pic='-Kconform_pic'
7573 lt_prog_compiler_static='-Bstatic'
7574 fi
7575 ;;
7576
7577 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7578 lt_prog_compiler_wl='-Wl,'
7579 lt_prog_compiler_pic='-KPIC'
7580 lt_prog_compiler_static='-Bstatic'
7581 ;;
7582
7583 unicos*)
7584 lt_prog_compiler_wl='-Wl,'
7585 lt_prog_compiler_can_build_shared=no
7586 ;;
7587
7588 uts4*)
7589 lt_prog_compiler_pic='-pic'
7590 lt_prog_compiler_static='-Bstatic'
7591 ;;
7592
7593 *)
7594 lt_prog_compiler_can_build_shared=no
7595 ;;
7596 esac
7597 fi
7598
7599case $host_os in
7600 # For platforms which do not support PIC, -DPIC is meaningless:
7601 *djgpp*)
7602 lt_prog_compiler_pic=
7603 ;;
7604 *)
7605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7606 ;;
7607esac
9c60689e 7608
ee134472
JF
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7610$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7611if ${lt_cv_prog_compiler_pic+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613else
7614 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7617$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7618lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e
DWT
7619
7620#
7621# Check to make sure the PIC flag actually works.
7622#
7623if test -n "$lt_prog_compiler_pic"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7625$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
ee134472 7626if ${lt_cv_prog_compiler_pic_works+:} false; then :
9c60689e
DWT
7627 $as_echo_n "(cached) " >&6
7628else
7629 lt_cv_prog_compiler_pic_works=no
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7632 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7633 # Insert the option either (1) after the last *FLAGS variable, or
7634 # (2) before a word containing "conftest.", or (3) at the end.
7635 # Note that $ac_compile itself does not contain backslashes and begins
7636 # with a dollar sign (not a hyphen), so the echo should work correctly.
7637 # The option is referenced via a variable to avoid confusing sed.
7638 lt_compile=`echo "$ac_compile" | $SED \
7639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7641 -e 's:$: $lt_compiler_flag:'`
ee134472 7642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
7643 (eval "$lt_compile" 2>conftest.err)
7644 ac_status=$?
7645 cat conftest.err >&5
ee134472 7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
7647 if (exit $ac_status) && test -s "$ac_outfile"; then
7648 # The compiler can only warn and ignore the option if not recognized
7649 # So say no if there are warnings other than the usual output.
ee134472 7650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
7651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7653 lt_cv_prog_compiler_pic_works=yes
7654 fi
7655 fi
7656 $RM conftest*
7657
7658fi
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7660$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7661
7662if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7663 case $lt_prog_compiler_pic in
7664 "" | " "*) ;;
7665 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7666 esac
7667else
7668 lt_prog_compiler_pic=
7669 lt_prog_compiler_can_build_shared=no
7670fi
7671
7672fi
7673
7674
7675
7676
7677
7678
ee134472
JF
7679
7680
7681
7682
7683
9c60689e
DWT
7684#
7685# Check to make sure the static flag actually works.
7686#
7687wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7689$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 7690if ${lt_cv_prog_compiler_static_works+:} false; then :
9c60689e
DWT
7691 $as_echo_n "(cached) " >&6
7692else
7693 lt_cv_prog_compiler_static_works=no
7694 save_LDFLAGS="$LDFLAGS"
7695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7698 # The linker can only warn and ignore the option if not recognized
7699 # So say no if there are warnings
7700 if test -s conftest.err; then
7701 # Append any errors to the config.log.
7702 cat conftest.err 1>&5
ee134472 7703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9c60689e
DWT
7704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7705 if diff conftest.exp conftest.er2 >/dev/null; then
7706 lt_cv_prog_compiler_static_works=yes
7707 fi
7708 else
7709 lt_cv_prog_compiler_static_works=yes
7710 fi
7711 fi
7712 $RM -r conftest*
7713 LDFLAGS="$save_LDFLAGS"
7714
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7717$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7718
7719if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7720 :
7721else
7722 lt_prog_compiler_static=
7723fi
7724
7725
7726
7727
7728
7729
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7732$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 7733if ${lt_cv_prog_compiler_c_o+:} false; then :
9c60689e
DWT
7734 $as_echo_n "(cached) " >&6
7735else
7736 lt_cv_prog_compiler_c_o=no
7737 $RM -r conftest 2>/dev/null
7738 mkdir conftest
7739 cd conftest
7740 mkdir out
7741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742
7743 lt_compiler_flag="-o out/conftest2.$ac_objext"
7744 # Insert the option either (1) after the last *FLAGS variable, or
7745 # (2) before a word containing "conftest.", or (3) at the end.
7746 # Note that $ac_compile itself does not contain backslashes and begins
7747 # with a dollar sign (not a hyphen), so the echo should work correctly.
7748 lt_compile=`echo "$ac_compile" | $SED \
7749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751 -e 's:$: $lt_compiler_flag:'`
ee134472 7752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
7753 (eval "$lt_compile" 2>out/conftest.err)
7754 ac_status=$?
7755 cat out/conftest.err >&5
ee134472 7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
7757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7758 then
7759 # The compiler can only warn and ignore the option if not recognized
7760 # So say no if there are warnings
ee134472 7761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9c60689e
DWT
7762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7764 lt_cv_prog_compiler_c_o=yes
7765 fi
7766 fi
7767 chmod u+w . 2>&5
7768 $RM conftest*
7769 # SGI C++ compiler will create directory out/ii_files/ for
7770 # template instantiation
7771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7772 $RM out/* && rmdir out
7773 cd ..
7774 $RM -r conftest
7775 $RM conftest*
7776
7777fi
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7779$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7780
7781
7782
7783
7784
7785
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7787$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 7788if ${lt_cv_prog_compiler_c_o+:} false; then :
9c60689e
DWT
7789 $as_echo_n "(cached) " >&6
7790else
7791 lt_cv_prog_compiler_c_o=no
7792 $RM -r conftest 2>/dev/null
7793 mkdir conftest
7794 cd conftest
7795 mkdir out
7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797
7798 lt_compiler_flag="-o out/conftest2.$ac_objext"
7799 # Insert the option either (1) after the last *FLAGS variable, or
7800 # (2) before a word containing "conftest.", or (3) at the end.
7801 # Note that $ac_compile itself does not contain backslashes and begins
7802 # with a dollar sign (not a hyphen), so the echo should work correctly.
7803 lt_compile=`echo "$ac_compile" | $SED \
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806 -e 's:$: $lt_compiler_flag:'`
ee134472 7807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
7808 (eval "$lt_compile" 2>out/conftest.err)
7809 ac_status=$?
7810 cat out/conftest.err >&5
ee134472 7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
7812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7813 then
7814 # The compiler can only warn and ignore the option if not recognized
7815 # So say no if there are warnings
ee134472 7816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9c60689e
DWT
7817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7819 lt_cv_prog_compiler_c_o=yes
7820 fi
7821 fi
7822 chmod u+w . 2>&5
7823 $RM conftest*
7824 # SGI C++ compiler will create directory out/ii_files/ for
7825 # template instantiation
7826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7827 $RM out/* && rmdir out
7828 cd ..
7829 $RM -r conftest
7830 $RM conftest*
7831
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7834$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7835
7836
7837
7838
7839hard_links="nottested"
7840if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7841 # do not overwrite the value of need_locks provided by the user
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7843$as_echo_n "checking if we can lock with hard links... " >&6; }
7844 hard_links=yes
7845 $RM conftest*
7846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7847 touch conftest.a
7848 ln conftest.a conftest.b 2>&5 || hard_links=no
7849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7851$as_echo "$hard_links" >&6; }
7852 if test "$hard_links" = no; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7854$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7855 need_locks=warn
7856 fi
7857else
7858 need_locks=no
7859fi
7860
7861
7862
7863
7864
7865
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7867$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7868
7869 runpath_var=
7870 allow_undefined_flag=
7871 always_export_symbols=no
7872 archive_cmds=
7873 archive_expsym_cmds=
7874 compiler_needs_object=no
7875 enable_shared_with_static_runtimes=no
7876 export_dynamic_flag_spec=
7877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7878 hardcode_automatic=no
7879 hardcode_direct=no
7880 hardcode_direct_absolute=no
7881 hardcode_libdir_flag_spec=
7882 hardcode_libdir_flag_spec_ld=
7883 hardcode_libdir_separator=
7884 hardcode_minus_L=no
7885 hardcode_shlibpath_var=unsupported
7886 inherit_rpath=no
7887 link_all_deplibs=unknown
7888 module_cmds=
7889 module_expsym_cmds=
7890 old_archive_from_new_cmds=
7891 old_archive_from_expsyms_cmds=
7892 thread_safe_flag_spec=
7893 whole_archive_flag_spec=
7894 # include_expsyms should be a list of space-separated symbols to be *always*
7895 # included in the symbol list
7896 include_expsyms=
7897 # exclude_expsyms can be an extended regexp of symbols to exclude
7898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7900 # as well as any symbol that contains `d'.
7901 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7903 # platforms (ab)use it in PIC code, but their linkers get confused if
7904 # the symbol is explicitly referenced. Since portable code cannot
7905 # rely on this symbol name, it's probably fine to never include it in
7906 # preloaded symbol tables.
7907 # Exclude shared library initialization/finalization symbols.
7908 extract_expsyms_cmds=
7909
7910 case $host_os in
7911 cygwin* | mingw* | pw32* | cegcc*)
7912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7913 # When not using gcc, we currently assume that we are using
7914 # Microsoft Visual C++.
7915 if test "$GCC" != yes; then
7916 with_gnu_ld=no
7917 fi
7918 ;;
7919 interix*)
7920 # we just hope/assume this is gcc and not c89 (= MSVC++)
7921 with_gnu_ld=yes
7922 ;;
7923 openbsd*)
7924 with_gnu_ld=no
7925 ;;
ee134472 7926 linux* | k*bsd*-gnu | gnu*)
1504c9b8
DWT
7927 link_all_deplibs=no
7928 ;;
9c60689e
DWT
7929 esac
7930
7931 ld_shlibs=yes
ee134472
JF
7932
7933 # On some targets, GNU ld is compatible enough with the native linker
7934 # that we're better off using the native interface for both.
7935 lt_use_gnu_ld_interface=no
9c60689e 7936 if test "$with_gnu_ld" = yes; then
ee134472
JF
7937 case $host_os in
7938 aix*)
7939 # The AIX port of GNU ld has always aspired to compatibility
7940 # with the native linker. However, as the warning in the GNU ld
7941 # block says, versions before 2.19.5* couldn't really create working
7942 # shared libraries, regardless of the interface used.
7943 case `$LD -v 2>&1` in
7944 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7945 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7946 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7947 *)
7948 lt_use_gnu_ld_interface=yes
7949 ;;
7950 esac
7951 ;;
7952 *)
7953 lt_use_gnu_ld_interface=yes
7954 ;;
7955 esac
7956 fi
7957
7958 if test "$lt_use_gnu_ld_interface" = yes; then
9c60689e
DWT
7959 # If archive_cmds runs LD, not CC, wlarc should be empty
7960 wlarc='${wl}'
7961
7962 # Set some defaults for GNU ld with shared library support. These
7963 # are reset later if shared libraries are not supported. Putting them
7964 # here allows them to be overridden if necessary.
7965 runpath_var=LD_RUN_PATH
7966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967 export_dynamic_flag_spec='${wl}--export-dynamic'
7968 # ancient GNU ld didn't support --whole-archive et. al.
7969 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7970 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7971 else
7972 whole_archive_flag_spec=
7973 fi
7974 supports_anon_versioning=no
7975 case `$LD -v 2>&1` in
1504c9b8 7976 *GNU\ gold*) supports_anon_versioning=yes ;;
9c60689e
DWT
7977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7980 *\ 2.11.*) ;; # other 2.11 versions
7981 *) supports_anon_versioning=yes ;;
7982 esac
7983
7984 # See if GNU ld supports shared libraries.
7985 case $host_os in
7986 aix[3-9]*)
7987 # On AIX/PPC, the GNU linker is very broken
7988 if test "$host_cpu" != ia64; then
7989 ld_shlibs=no
7990 cat <<_LT_EOF 1>&2
7991
ee134472 7992*** Warning: the GNU linker, at least up to release 2.19, is reported
9c60689e
DWT
7993*** to be unable to reliably create shared libraries on AIX.
7994*** Therefore, libtool is disabling shared libraries support. If you
ee134472
JF
7995*** really care for shared libraries, you may want to install binutils
7996*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7997*** You will then need to restart the configuration process.
9c60689e
DWT
7998
7999_LT_EOF
8000 fi
8001 ;;
8002
8003 amigaos*)
8004 case $host_cpu in
8005 powerpc)
8006 # see comment about AmigaOS4 .so support
8007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8008 archive_expsym_cmds=''
8009 ;;
8010 m68k)
8011 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)'
8012 hardcode_libdir_flag_spec='-L$libdir'
8013 hardcode_minus_L=yes
8014 ;;
8015 esac
8016 ;;
8017
8018 beos*)
8019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8020 allow_undefined_flag=unsupported
8021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8022 # support --undefined. This deserves some investigation. FIXME
8023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024 else
8025 ld_shlibs=no
8026 fi
8027 ;;
8028
8029 cygwin* | mingw* | pw32* | cegcc*)
8030 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8031 # as there is no search path for DLLs.
8032 hardcode_libdir_flag_spec='-L$libdir'
ee134472 8033 export_dynamic_flag_spec='${wl}--export-all-symbols'
9c60689e
DWT
8034 allow_undefined_flag=unsupported
8035 always_export_symbols=no
8036 enable_shared_with_static_runtimes=yes
ee134472
JF
8037 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'
8038 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e
DWT
8039
8040 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042 # If the export-symbols file already is a .def file (1st line
8043 # is EXPORTS), use it as is; otherwise, prepend...
8044 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8045 cp $export_symbols $output_objdir/$soname.def;
8046 else
8047 echo EXPORTS > $output_objdir/$soname.def;
8048 cat $export_symbols >> $output_objdir/$soname.def;
8049 fi~
8050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8051 else
8052 ld_shlibs=no
8053 fi
8054 ;;
8055
ee134472
JF
8056 haiku*)
8057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8058 link_all_deplibs=yes
8059 ;;
8060
9c60689e
DWT
8061 interix[3-9]*)
8062 hardcode_direct=no
8063 hardcode_shlibpath_var=no
8064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8065 export_dynamic_flag_spec='${wl}-E'
8066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8067 # Instead, shared libraries are loaded at an image base (0x10000000 by
8068 # default) and relocated if they conflict, which is a slow very memory
8069 # consuming and fragmenting process. To avoid this, we pick a random,
8070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8073 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'
8074 ;;
8075
1504c9b8 8076 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
8077 tmp_diet=no
8078 if test "$host_os" = linux-dietlibc; then
8079 case $cc_basename in
8080 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8081 esac
8082 fi
8083 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8084 && test "$tmp_diet" = no
8085 then
ee134472 8086 tmp_addflag=' $pic_flag'
9c60689e
DWT
8087 tmp_sharedflag='-shared'
8088 case $cc_basename,$host_cpu in
8089 pgcc*) # Portland Group C compiler
ee134472 8090 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'
9c60689e
DWT
8091 tmp_addflag=' $pic_flag'
8092 ;;
ee134472
JF
8093 pgf77* | pgf90* | pgf95* | pgfortran*)
8094 # Portland Group f77 and f90 compilers
8095 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'
9c60689e
DWT
8096 tmp_addflag=' $pic_flag -Mnomain' ;;
8097 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8098 tmp_addflag=' -i_dynamic' ;;
8099 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8100 tmp_addflag=' -i_dynamic -nofor_main' ;;
8101 ifc* | ifort*) # Intel Fortran compiler
8102 tmp_addflag=' -nofor_main' ;;
8103 lf95*) # Lahey Fortran 8.1
8104 whole_archive_flag_spec=
8105 tmp_sharedflag='--shared' ;;
ee134472 8106 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9c60689e
DWT
8107 tmp_sharedflag='-qmkshrobj'
8108 tmp_addflag= ;;
ee134472
JF
8109 nvcc*) # Cuda Compiler Driver 2.2
8110 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'
8111 compiler_needs_object=yes
8112 ;;
9c60689e
DWT
8113 esac
8114 case `$CC -V 2>&1 | sed 5q` in
8115 *Sun\ C*) # Sun C 5.9
ee134472 8116 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'
9c60689e
DWT
8117 compiler_needs_object=yes
8118 tmp_sharedflag='-G' ;;
8119 *Sun\ F*) # Sun Fortran 8.3
8120 tmp_sharedflag='-G' ;;
8121 esac
8122 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123
8124 if test "x$supports_anon_versioning" = xyes; then
8125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8127 echo "local: *; };" >> $output_objdir/$libname.ver~
8128 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8129 fi
8130
8131 case $cc_basename in
ee134472 8132 xlf* | bgf* | bgxlf* | mpixlf*)
9c60689e
DWT
8133 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8134 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8135 hardcode_libdir_flag_spec=
8136 hardcode_libdir_flag_spec_ld='-rpath $libdir'
ee134472 8137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9c60689e
DWT
8138 if test "x$supports_anon_versioning" = xyes; then
8139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8141 echo "local: *; };" >> $output_objdir/$libname.ver~
ee134472 8142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9c60689e
DWT
8143 fi
8144 ;;
8145 esac
8146 else
8147 ld_shlibs=no
8148 fi
8149 ;;
8150
1504c9b8 8151 netbsd* | netbsdelf*-gnu)
9c60689e
DWT
8152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8154 wlarc=
8155 else
ee134472
JF
8156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e
DWT
8158 fi
8159 ;;
8160
8161 solaris*)
8162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8163 ld_shlibs=no
8164 cat <<_LT_EOF 1>&2
8165
8166*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8167*** create shared libraries on Solaris systems. Therefore, libtool
8168*** is disabling shared libraries support. We urge you to upgrade GNU
8169*** binutils to release 2.9.1 or newer. Another option is to modify
8170*** your PATH or compiler configuration so that the native linker is
8171*** used, and then restart.
8172
8173_LT_EOF
8174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ee134472
JF
8175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e
DWT
8177 else
8178 ld_shlibs=no
8179 fi
8180 ;;
8181
8182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8183 case `$LD -v 2>&1` in
8184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8185 ld_shlibs=no
8186 cat <<_LT_EOF 1>&2
8187
8188*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8189*** reliably create shared libraries on SCO systems. Therefore, libtool
8190*** is disabling shared libraries support. We urge you to upgrade GNU
8191*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8192*** your PATH or compiler configuration so that the native linker is
8193*** used, and then restart.
8194
8195_LT_EOF
8196 ;;
8197 *)
8198 # For security reasons, it is highly recommended that you always
8199 # use absolute paths for naming shared libraries, and exclude the
8200 # DT_RUNPATH tag from executables and libraries. But doing so
8201 # requires that you compile everything twice, which is a pain.
8202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8206 else
8207 ld_shlibs=no
8208 fi
8209 ;;
8210 esac
8211 ;;
8212
8213 sunos4*)
8214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8215 wlarc=
8216 hardcode_direct=yes
8217 hardcode_shlibpath_var=no
8218 ;;
8219
8220 *)
8221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ee134472
JF
8222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e
DWT
8224 else
8225 ld_shlibs=no
8226 fi
8227 ;;
8228 esac
8229
8230 if test "$ld_shlibs" = no; then
8231 runpath_var=
8232 hardcode_libdir_flag_spec=
8233 export_dynamic_flag_spec=
8234 whole_archive_flag_spec=
8235 fi
8236 else
8237 # PORTME fill in a description of your system's linker (not GNU ld)
8238 case $host_os in
8239 aix3*)
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=yes
8242 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'
8243 # Note: this linker hardcodes the directories in LIBPATH if there
8244 # are no directories specified by -L.
8245 hardcode_minus_L=yes
8246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8247 # Neither direct hardcoding nor static linking is supported with a
8248 # broken collect2.
8249 hardcode_direct=unsupported
8250 fi
8251 ;;
8252
8253 aix[4-9]*)
8254 if test "$host_cpu" = ia64; then
8255 # On IA64, the linker does run time linking by default, so we don't
8256 # have to do anything special.
8257 aix_use_runtimelinking=no
8258 exp_sym_flag='-Bexport'
8259 no_entry_flag=""
8260 else
8261 # If we're using GNU nm, then we don't want the "-C" option.
8262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
8263 # Also, AIX nm treats weak defined symbols like other global
8264 # defined symbols, whereas GNU nm marks them as "W".
9c60689e 8265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 8266 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'
9c60689e
DWT
8267 else
8268 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'
8269 fi
8270 aix_use_runtimelinking=no
8271
8272 # Test if we are trying to use run time linking or normal
8273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8274 # need to do runtime linking.
8275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8276 for ld_flag in $LDFLAGS; do
8277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8278 aix_use_runtimelinking=yes
8279 break
8280 fi
8281 done
8282 ;;
8283 esac
8284
8285 exp_sym_flag='-bexport'
8286 no_entry_flag='-bnoentry'
8287 fi
8288
8289 # When large executables or shared objects are built, AIX ld can
8290 # have problems creating the table of contents. If linking a library
8291 # or program results in "error TOC overflow" add -mminimal-toc to
8292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8294
8295 archive_cmds=''
8296 hardcode_direct=yes
8297 hardcode_direct_absolute=yes
8298 hardcode_libdir_separator=':'
8299 link_all_deplibs=yes
8300 file_list_spec='${wl}-f,'
8301
8302 if test "$GCC" = yes; then
8303 case $host_os in aix4.[012]|aix4.[012].*)
8304 # We only want to do this on AIX 4.2 and lower, the check
8305 # below for broken collect2 doesn't work under 4.3+
8306 collect2name=`${CC} -print-prog-name=collect2`
8307 if test -f "$collect2name" &&
8308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8309 then
8310 # We have reworked collect2
8311 :
8312 else
8313 # We have old collect2
8314 hardcode_direct=unsupported
8315 # It fails to find uninstalled libraries when the uninstalled
8316 # path is not listed in the libpath. Setting hardcode_minus_L
8317 # to unsupported forces relinking
8318 hardcode_minus_L=yes
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 hardcode_libdir_separator=
8321 fi
8322 ;;
8323 esac
8324 shared_flag='-shared'
8325 if test "$aix_use_runtimelinking" = yes; then
8326 shared_flag="$shared_flag "'${wl}-G'
8327 fi
1504c9b8 8328 link_all_deplibs=no
9c60689e
DWT
8329 else
8330 # not using gcc
8331 if test "$host_cpu" = ia64; then
8332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8333 # chokes on -Wl,-G. The following line is correct:
8334 shared_flag='-G'
8335 else
8336 if test "$aix_use_runtimelinking" = yes; then
8337 shared_flag='${wl}-G'
8338 else
8339 shared_flag='${wl}-bM:SRE'
8340 fi
8341 fi
8342 fi
8343
8344 export_dynamic_flag_spec='${wl}-bexpall'
8345 # It seems that -bexpall does not export symbols beginning with
8346 # underscore (_), so it is better to generate a list of symbols to export.
8347 always_export_symbols=yes
8348 if test "$aix_use_runtimelinking" = yes; then
8349 # Warning - without using the other runtime loading flags (-brtl),
8350 # -berok will link without error, but may produce a broken library.
8351 allow_undefined_flag='-berok'
8352 # Determine the default libpath from the value encoded in an
8353 # empty executable.
ee134472
JF
8354 if test "${lt_cv_aix_libpath+set}" = set; then
8355 aix_libpath=$lt_cv_aix_libpath
8356else
8357 if ${lt_cv_aix_libpath_+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
8361/* end confdefs.h. */
8362
8363int
8364main ()
8365{
8366
8367 ;
8368 return 0;
8369}
8370_ACEOF
8371if ac_fn_c_try_link "$LINENO"; then :
8372
ee134472
JF
8373 lt_aix_libpath_sed='
8374 /Import File Strings/,/^$/ {
8375 /^0/ {
8376 s/^0 *\([^ ]*\) *$/\1/
8377 p
8378 }
8379 }'
8380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381 # Check for a 64-bit object if we didn't find anything.
8382 if test -z "$lt_cv_aix_libpath_"; then
8383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8384 fi
9c60689e
DWT
8385fi
8386rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
8388 if test -z "$lt_cv_aix_libpath_"; then
8389 lt_cv_aix_libpath_="/usr/lib:/lib"
8390 fi
8391
8392fi
8393
8394 aix_libpath=$lt_cv_aix_libpath_
8395fi
9c60689e
DWT
8396
8397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
ee134472 8398 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"
9c60689e
DWT
8399 else
8400 if test "$host_cpu" = ia64; then
8401 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8402 allow_undefined_flag="-z nodefs"
8403 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"
8404 else
8405 # Determine the default libpath from the value encoded in an
8406 # empty executable.
ee134472
JF
8407 if test "${lt_cv_aix_libpath+set}" = set; then
8408 aix_libpath=$lt_cv_aix_libpath
8409else
8410 if ${lt_cv_aix_libpath_+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412else
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
8414/* end confdefs.h. */
8415
8416int
8417main ()
8418{
8419
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424if ac_fn_c_try_link "$LINENO"; then :
8425
ee134472
JF
8426 lt_aix_libpath_sed='
8427 /Import File Strings/,/^$/ {
8428 /^0/ {
8429 s/^0 *\([^ ]*\) *$/\1/
8430 p
8431 }
8432 }'
8433 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434 # Check for a 64-bit object if we didn't find anything.
8435 if test -z "$lt_cv_aix_libpath_"; then
8436 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8437 fi
9c60689e
DWT
8438fi
8439rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
8441 if test -z "$lt_cv_aix_libpath_"; then
8442 lt_cv_aix_libpath_="/usr/lib:/lib"
8443 fi
8444
8445fi
8446
8447 aix_libpath=$lt_cv_aix_libpath_
8448fi
9c60689e
DWT
8449
8450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8451 # Warning - without using the other run time loading flags,
8452 # -berok will link without error, but may produce a broken library.
8453 no_undefined_flag=' ${wl}-bernotok'
8454 allow_undefined_flag=' ${wl}-berok'
ee134472
JF
8455 if test "$with_gnu_ld" = yes; then
8456 # We only use this code for GNU lds that support --whole-archive.
8457 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8458 else
8459 # Exported symbols can be pulled into shared objects from archives
8460 whole_archive_flag_spec='$convenience'
8461 fi
9c60689e
DWT
8462 archive_cmds_need_lc=yes
8463 # This is similar to how AIX traditionally builds its shared libraries.
8464 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'
8465 fi
8466 fi
8467 ;;
8468
8469 amigaos*)
8470 case $host_cpu in
8471 powerpc)
8472 # see comment about AmigaOS4 .so support
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474 archive_expsym_cmds=''
8475 ;;
8476 m68k)
8477 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)'
8478 hardcode_libdir_flag_spec='-L$libdir'
8479 hardcode_minus_L=yes
8480 ;;
8481 esac
8482 ;;
8483
8484 bsdi[45]*)
8485 export_dynamic_flag_spec=-rdynamic
8486 ;;
8487
8488 cygwin* | mingw* | pw32* | cegcc*)
8489 # When not using gcc, we currently assume that we are using
8490 # Microsoft Visual C++.
8491 # hardcode_libdir_flag_spec is actually meaningless, as there is
8492 # no search path for DLLs.
ee134472
JF
8493 case $cc_basename in
8494 cl*)
8495 # Native MSVC
8496 hardcode_libdir_flag_spec=' '
8497 allow_undefined_flag=unsupported
8498 always_export_symbols=yes
8499 file_list_spec='@'
8500 # Tell ltmain to make .lib files, not .a files.
8501 libext=lib
8502 # Tell ltmain to make .dll files, not .so files.
8503 shrext_cmds=".dll"
8504 # FIXME: Setting linknames here is a bad hack.
8505 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8507 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8508 else
8509 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8510 fi~
8511 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8512 linknames='
8513 # The linker will not automatically build a static lib if we build a DLL.
8514 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8515 enable_shared_with_static_runtimes=yes
8516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8517 # Don't use ranlib
8518 old_postinstall_cmds='chmod 644 $oldlib'
8519 postlink_cmds='lt_outputfile="@OUTPUT@"~
8520 lt_tool_outputfile="@TOOL_OUTPUT@"~
8521 case $lt_outputfile in
8522 *.exe|*.EXE) ;;
8523 *)
8524 lt_outputfile="$lt_outputfile.exe"
8525 lt_tool_outputfile="$lt_tool_outputfile.exe"
8526 ;;
8527 esac~
8528 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8529 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8530 $RM "$lt_outputfile.manifest";
8531 fi'
8532 ;;
8533 *)
8534 # Assume MSVC wrapper
8535 hardcode_libdir_flag_spec=' '
8536 allow_undefined_flag=unsupported
8537 # Tell ltmain to make .lib files, not .a files.
8538 libext=lib
8539 # Tell ltmain to make .dll files, not .so files.
8540 shrext_cmds=".dll"
8541 # FIXME: Setting linknames here is a bad hack.
8542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8543 # The linker will automatically build a .lib file if we build a DLL.
8544 old_archive_from_new_cmds='true'
8545 # FIXME: Should let the user specify the lib program.
8546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8547 enable_shared_with_static_runtimes=yes
8548 ;;
8549 esac
9c60689e
DWT
8550 ;;
8551
8552 darwin* | rhapsody*)
8553
8554
8555 archive_cmds_need_lc=no
8556 hardcode_direct=no
8557 hardcode_automatic=yes
8558 hardcode_shlibpath_var=unsupported
ee134472
JF
8559 if test "$lt_cv_ld_force_load" = "yes"; then
8560 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\"`'
8561 else
8562 whole_archive_flag_spec=''
8563 fi
9c60689e
DWT
8564 link_all_deplibs=yes
8565 allow_undefined_flag="$_lt_dar_allow_undefined"
8566 case $cc_basename in
8567 ifort*) _lt_dar_can_shared=yes ;;
8568 *) _lt_dar_can_shared=$GCC ;;
8569 esac
8570 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 8571 output_verbose_link_cmd=func_echo_all
9c60689e
DWT
8572 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8573 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8574 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}"
8575 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}"
8576
8577 else
8578 ld_shlibs=no
8579 fi
8580
8581 ;;
8582
8583 dgux*)
8584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8585 hardcode_libdir_flag_spec='-L$libdir'
8586 hardcode_shlibpath_var=no
8587 ;;
8588
8589 freebsd1*)
8590 ld_shlibs=no
8591 ;;
8592
8593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8594 # support. Future versions do this automatically, but an explicit c++rt0.o
8595 # does not break anything, and helps significantly (at the cost of a little
8596 # extra space).
8597 freebsd2.2*)
8598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8599 hardcode_libdir_flag_spec='-R$libdir'
8600 hardcode_direct=yes
8601 hardcode_shlibpath_var=no
8602 ;;
8603
8604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8605 freebsd2*)
8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_direct=yes
8608 hardcode_minus_L=yes
8609 hardcode_shlibpath_var=no
8610 ;;
8611
8612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8613 freebsd* | dragonfly*)
ee134472 8614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9c60689e
DWT
8615 hardcode_libdir_flag_spec='-R$libdir'
8616 hardcode_direct=yes
8617 hardcode_shlibpath_var=no
8618 ;;
8619
8620 hpux9*)
8621 if test "$GCC" = yes; then
ee134472 8622 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'
9c60689e
DWT
8623 else
8624 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'
8625 fi
8626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8627 hardcode_libdir_separator=:
8628 hardcode_direct=yes
8629
8630 # hardcode_minus_L: Not really in the search PATH,
8631 # but as the default location of the library.
8632 hardcode_minus_L=yes
8633 export_dynamic_flag_spec='${wl}-E'
8634 ;;
8635
8636 hpux10*)
ee134472
JF
8637 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8638 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9c60689e
DWT
8639 else
8640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8641 fi
8642 if test "$with_gnu_ld" = no; then
8643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8644 hardcode_libdir_flag_spec_ld='+b $libdir'
8645 hardcode_libdir_separator=:
8646 hardcode_direct=yes
8647 hardcode_direct_absolute=yes
8648 export_dynamic_flag_spec='${wl}-E'
8649 # hardcode_minus_L: Not really in the search PATH,
8650 # but as the default location of the library.
8651 hardcode_minus_L=yes
8652 fi
8653 ;;
8654
8655 hpux11*)
ee134472 8656 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9c60689e
DWT
8657 case $host_cpu in
8658 hppa*64*)
8659 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 ;;
8661 ia64*)
ee134472 8662 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9c60689e
DWT
8663 ;;
8664 *)
ee134472 8665 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9c60689e
DWT
8666 ;;
8667 esac
8668 else
8669 case $host_cpu in
8670 hppa*64*)
8671 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672 ;;
8673 ia64*)
8674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8675 ;;
8676 *)
ee134472
JF
8677
8678 # Older versions of the 11.00 compiler do not understand -b yet
8679 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8681$as_echo_n "checking if $CC understands -b... " >&6; }
8682if ${lt_cv_prog_compiler__b+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684else
8685 lt_cv_prog_compiler__b=no
8686 save_LDFLAGS="$LDFLAGS"
8687 LDFLAGS="$LDFLAGS -b"
8688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8690 # The linker can only warn and ignore the option if not recognized
8691 # So say no if there are warnings
8692 if test -s conftest.err; then
8693 # Append any errors to the config.log.
8694 cat conftest.err 1>&5
8695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697 if diff conftest.exp conftest.er2 >/dev/null; then
8698 lt_cv_prog_compiler__b=yes
8699 fi
8700 else
8701 lt_cv_prog_compiler__b=yes
8702 fi
8703 fi
8704 $RM -r conftest*
8705 LDFLAGS="$save_LDFLAGS"
8706
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8709$as_echo "$lt_cv_prog_compiler__b" >&6; }
8710
8711if test x"$lt_cv_prog_compiler__b" = xyes; then
8712 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713else
8714 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8715fi
8716
9c60689e
DWT
8717 ;;
8718 esac
8719 fi
8720 if test "$with_gnu_ld" = no; then
8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723
8724 case $host_cpu in
8725 hppa*64*|ia64*)
8726 hardcode_direct=no
8727 hardcode_shlibpath_var=no
8728 ;;
8729 *)
8730 hardcode_direct=yes
8731 hardcode_direct_absolute=yes
8732 export_dynamic_flag_spec='${wl}-E'
8733
8734 # hardcode_minus_L: Not really in the search PATH,
8735 # but as the default location of the library.
8736 hardcode_minus_L=yes
8737 ;;
8738 esac
8739 fi
8740 ;;
8741
8742 irix5* | irix6* | nonstopux*)
8743 if test "$GCC" = yes; then
ee134472 8744 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'
9c60689e
DWT
8745 # Try to use the -exported_symbol ld option, if it does not
8746 # work, assume that -exports_file does not work either and
8747 # implicitly export all symbols.
ee134472
JF
8748 # This should be the same for all languages, so no per-tag cache variable.
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8750$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8751if ${lt_cv_irix_exported_symbol+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 save_LDFLAGS="$LDFLAGS"
8755 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e 8757/* end confdefs.h. */
ee134472 8758int foo (void) { return 0; }
9c60689e
DWT
8759_ACEOF
8760if ac_fn_c_try_link "$LINENO"; then :
ee134472
JF
8761 lt_cv_irix_exported_symbol=yes
8762else
8763 lt_cv_irix_exported_symbol=no
9c60689e
DWT
8764fi
8765rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
8767 LDFLAGS="$save_LDFLAGS"
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8770$as_echo "$lt_cv_irix_exported_symbol" >&6; }
8771 if test "$lt_cv_irix_exported_symbol" = yes; then
8772 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'
8773 fi
9c60689e 8774 else
ee134472
JF
8775 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'
8776 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'
9c60689e
DWT
8777 fi
8778 archive_cmds_need_lc='no'
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 hardcode_libdir_separator=:
8781 inherit_rpath=yes
8782 link_all_deplibs=yes
8783 ;;
8784
1504c9b8 8785 netbsd* | netbsdelf*-gnu)
9c60689e
DWT
8786 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8788 else
8789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8790 fi
8791 hardcode_libdir_flag_spec='-R$libdir'
8792 hardcode_direct=yes
8793 hardcode_shlibpath_var=no
8794 ;;
8795
8796 newsos6)
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_direct=yes
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_shlibpath_var=no
8802 ;;
8803
8804 *nto* | *qnx*)
8805 ;;
8806
8807 openbsd*)
8808 if test -f /usr/libexec/ld.so; then
8809 hardcode_direct=yes
8810 hardcode_shlibpath_var=no
8811 hardcode_direct_absolute=yes
8812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8816 export_dynamic_flag_spec='${wl}-E'
8817 else
8818 case $host_os in
8819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_libdir_flag_spec='-R$libdir'
8822 ;;
8823 *)
8824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8826 ;;
8827 esac
8828 fi
8829 else
8830 ld_shlibs=no
8831 fi
8832 ;;
8833
8834 os2*)
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_minus_L=yes
8837 allow_undefined_flag=unsupported
ee134472 8838 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'
9c60689e
DWT
8839 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8840 ;;
8841
8842 osf3*)
8843 if test "$GCC" = yes; then
8844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
ee134472 8845 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'
9c60689e
DWT
8846 else
8847 allow_undefined_flag=' -expect_unresolved \*'
ee134472 8848 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'
9c60689e
DWT
8849 fi
8850 archive_cmds_need_lc='no'
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 hardcode_libdir_separator=:
8853 ;;
8854
8855 osf4* | osf5*) # as osf3* with the addition of -msym flag
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
ee134472 8858 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'
9c60689e
DWT
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 else
8861 allow_undefined_flag=' -expect_unresolved \*'
ee134472 8862 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'
9c60689e 8863 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~
ee134472 8864 $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'
9c60689e
DWT
8865
8866 # Both c and cxx compiler support -rpath directly
8867 hardcode_libdir_flag_spec='-rpath $libdir'
8868 fi
8869 archive_cmds_need_lc='no'
8870 hardcode_libdir_separator=:
8871 ;;
8872
8873 solaris*)
8874 no_undefined_flag=' -z defs'
8875 if test "$GCC" = yes; then
8876 wlarc='${wl}'
ee134472 8877 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9c60689e 8878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 8879 $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'
9c60689e
DWT
8880 else
8881 case `$CC -V 2>&1` in
8882 *"Compilers 5.0"*)
8883 wlarc=''
8884 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8886 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8887 ;;
8888 *)
8889 wlarc='${wl}'
8890 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8893 ;;
8894 esac
8895 fi
8896 hardcode_libdir_flag_spec='-R$libdir'
8897 hardcode_shlibpath_var=no
8898 case $host_os in
8899 solaris2.[0-5] | solaris2.[0-5].*) ;;
8900 *)
8901 # The compiler driver will combine and reorder linker options,
8902 # but understands `-z linker_flag'. GCC discards it without `$wl',
8903 # but is careful enough not to reorder.
8904 # Supported since Solaris 2.6 (maybe 2.5.1?)
8905 if test "$GCC" = yes; then
8906 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8907 else
8908 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8909 fi
8910 ;;
8911 esac
8912 link_all_deplibs=yes
8913 ;;
8914
8915 sunos4*)
8916 if test "x$host_vendor" = xsequent; then
8917 # Use $CC to link under sequent, because it throws in some extra .o
8918 # files that make .init and .fini sections work.
8919 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8920 else
8921 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8922 fi
8923 hardcode_libdir_flag_spec='-L$libdir'
8924 hardcode_direct=yes
8925 hardcode_minus_L=yes
8926 hardcode_shlibpath_var=no
8927 ;;
8928
8929 sysv4)
8930 case $host_vendor in
8931 sni)
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=yes # is this really true???
8934 ;;
8935 siemens)
8936 ## LD is ld it makes a PLAMLIB
8937 ## CC just makes a GrossModule.
8938 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8939 reload_cmds='$CC -r -o $output$reload_objs'
8940 hardcode_direct=no
8941 ;;
8942 motorola)
8943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8945 ;;
8946 esac
8947 runpath_var='LD_RUN_PATH'
8948 hardcode_shlibpath_var=no
8949 ;;
8950
8951 sysv4.3*)
8952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_shlibpath_var=no
8954 export_dynamic_flag_spec='-Bexport'
8955 ;;
8956
8957 sysv4*MP*)
8958 if test -d /usr/nec; then
8959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_shlibpath_var=no
8961 runpath_var=LD_RUN_PATH
8962 hardcode_runpath_var=yes
8963 ld_shlibs=yes
8964 fi
8965 ;;
8966
8967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8968 no_undefined_flag='${wl}-z,text'
8969 archive_cmds_need_lc=no
8970 hardcode_shlibpath_var=no
8971 runpath_var='LD_RUN_PATH'
8972
8973 if test "$GCC" = yes; then
8974 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 else
8977 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 fi
8980 ;;
8981
8982 sysv5* | sco3.2v5* | sco5v6*)
8983 # Note: We can NOT use -z defs as we might desire, because we do not
8984 # link with -lc, and that would cause any symbols used from libc to
8985 # always be unresolved, which means just about no library would
8986 # ever link correctly. If we're not using GNU ld we use -z text
8987 # though, which does catch some bad symbols but isn't as heavy-handed
8988 # as -z defs.
8989 no_undefined_flag='${wl}-z,text'
8990 allow_undefined_flag='${wl}-z,nodefs'
8991 archive_cmds_need_lc=no
8992 hardcode_shlibpath_var=no
8993 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8994 hardcode_libdir_separator=':'
8995 link_all_deplibs=yes
8996 export_dynamic_flag_spec='${wl}-Bexport'
8997 runpath_var='LD_RUN_PATH'
8998
8999 if test "$GCC" = yes; then
9000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9002 else
9003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 fi
9006 ;;
9007
9008 uts4*)
9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_libdir_flag_spec='-L$libdir'
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 *)
9015 ld_shlibs=no
9016 ;;
9017 esac
9018
9019 if test x$host_vendor = xsni; then
9020 case $host in
9021 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9022 export_dynamic_flag_spec='${wl}-Blargedynsym'
9023 ;;
9024 esac
9025 fi
9026 fi
9027
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9029$as_echo "$ld_shlibs" >&6; }
9030test "$ld_shlibs" = no && can_build_shared=no
9031
9032with_gnu_ld=$with_gnu_ld
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048#
9049# Do we need to explicitly link libc?
9050#
9051case "x$archive_cmds_need_lc" in
9052x|xyes)
9053 # Assume -lc should be added
9054 archive_cmds_need_lc=yes
9055
9056 if test "$enable_shared" = yes && test "$GCC" = yes; then
9057 case $archive_cmds in
9058 *'~'*)
9059 # FIXME: we may have to deal with multi-command sequences.
9060 ;;
9061 '$CC '*)
9062 # Test whether the compiler implicitly links with -lc since on some
9063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9064 # to ld, don't add -lc before -lgcc.
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9066$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
9067if ${lt_cv_archive_cmds_need_lc+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069else
9070 $RM conftest*
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9072
ee134472 9073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9c60689e
DWT
9074 (eval $ac_compile) 2>&5
9075 ac_status=$?
9076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9077 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
9078 soname=conftest
9079 lib=conftest
9080 libobjs=conftest.$ac_objext
9081 deplibs=
9082 wl=$lt_prog_compiler_wl
9083 pic_flag=$lt_prog_compiler_pic
9084 compiler_flags=-v
9085 linker_flags=-v
9086 verstring=
9087 output_objdir=.
9088 libname=conftest
9089 lt_save_allow_undefined_flag=$allow_undefined_flag
9090 allow_undefined_flag=
9091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9c60689e
DWT
9092 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9093 ac_status=$?
9094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9095 test $ac_status = 0; }
ee134472
JF
9096 then
9097 lt_cv_archive_cmds_need_lc=no
9098 else
9099 lt_cv_archive_cmds_need_lc=yes
9100 fi
9101 allow_undefined_flag=$lt_save_allow_undefined_flag
9102 else
9103 cat conftest.err 1>&5
9104 fi
9105 $RM conftest*
9106
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9109$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9110 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9c60689e
DWT
9111 ;;
9112 esac
9113 fi
9114 ;;
9115esac
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9274$as_echo_n "checking dynamic linker characteristics... " >&6; }
9275
9276if test "$GCC" = yes; then
9277 case $host_os in
9278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9279 *) lt_awk_arg="/^libraries:/" ;;
9280 esac
ee134472
JF
9281 case $host_os in
9282 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9283 *) lt_sed_strip_eq="s,=/,/,g" ;;
9284 esac
9285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9286 case $lt_search_path_spec in
9287 *\;*)
9c60689e
DWT
9288 # if the path contains ";" then we assume it to be the separator
9289 # otherwise default to the standard path separator (i.e. ":") - it is
9290 # assumed that no part of a normal pathname contains ";" but that should
9291 # okay in the real world where ";" in dirpaths is itself problematic.
ee134472
JF
9292 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9293 ;;
9294 *)
9295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9296 ;;
9297 esac
9c60689e
DWT
9298 # Ok, now we have the path, separated by spaces, we can step through it
9299 # and add multilib dir if necessary.
9300 lt_tmp_lt_search_path_spec=
9301 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9302 for lt_sys_path in $lt_search_path_spec; do
9303 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9305 else
9306 test -d "$lt_sys_path" && \
9307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9308 fi
9309 done
ee134472 9310 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9c60689e
DWT
9311BEGIN {RS=" "; FS="/|\n";} {
9312 lt_foo="";
9313 lt_count=0;
9314 for (lt_i = NF; lt_i > 0; lt_i--) {
9315 if ($lt_i != "" && $lt_i != ".") {
9316 if ($lt_i == "..") {
9317 lt_count++;
9318 } else {
9319 if (lt_count == 0) {
9320 lt_foo="/" $lt_i lt_foo;
9321 } else {
9322 lt_count--;
9323 }
9324 }
9325 }
9326 }
9327 if (lt_foo != "") { lt_freq[lt_foo]++; }
9328 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9329}'`
ee134472
JF
9330 # AWK program above erroneously prepends '/' to C:/dos/paths
9331 # for these hosts.
9332 case $host_os in
9333 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9334 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9335 esac
9336 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9c60689e
DWT
9337else
9338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9339fi
9340library_names_spec=
9341libname_spec='lib$name'
9342soname_spec=
9343shrext_cmds=".so"
9344postinstall_cmds=
9345postuninstall_cmds=
9346finish_cmds=
9347finish_eval=
9348shlibpath_var=
9349shlibpath_overrides_runpath=unknown
9350version_type=none
9351dynamic_linker="$host_os ld.so"
9352sys_lib_dlsearch_path_spec="/lib /usr/lib"
9353need_lib_prefix=unknown
9354hardcode_into_libs=no
9355
9356# when you set need_version to no, make sure it does not cause -set_version
9357# flags to be left without arguments
9358need_version=unknown
9359
9360case $host_os in
9361aix3*)
9362 version_type=linux
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9364 shlibpath_var=LIBPATH
9365
9366 # AIX 3 has no versioning support, so we append a major version to the name.
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 ;;
9369
9370aix[4-9]*)
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
9374 hardcode_into_libs=yes
9375 if test "$host_cpu" = ia64; then
9376 # AIX 5 supports IA64
9377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 else
9380 # With GCC up to 2.95.x, collect2 would create an import file
9381 # for dependence libraries. The import file would start with
9382 # the line `#! .'. This would cause the generated library to
9383 # depend on `.', always an invalid library. This was fixed in
9384 # development snapshots of GCC prior to 3.0.
9385 case $host_os in
9386 aix4 | aix4.[01] | aix4.[01].*)
9387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9388 echo ' yes '
9389 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9390 :
9391 else
9392 can_build_shared=no
9393 fi
9394 ;;
9395 esac
9396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9397 # soname into executable. Probably we can add versioning support to
9398 # collect2, so additional links can be useful in future.
9399 if test "$aix_use_runtimelinking" = yes; then
9400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9401 # instead of lib<name>.a to let people know that these are not
9402 # typical AIX shared libraries.
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 else
9405 # We preserve .a as extension for shared libraries through AIX4.2
9406 # and later when we are not doing run time linking.
9407 library_names_spec='${libname}${release}.a $libname.a'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 fi
9410 shlibpath_var=LIBPATH
9411 fi
9412 ;;
9413
9414amigaos*)
9415 case $host_cpu in
9416 powerpc)
9417 # Since July 2007 AmigaOS4 officially supports .so libraries.
9418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420 ;;
9421 m68k)
9422 library_names_spec='$libname.ixlibrary $libname.a'
9423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 9424 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'
9c60689e
DWT
9425 ;;
9426 esac
9427 ;;
9428
9429beos*)
9430 library_names_spec='${libname}${shared_ext}'
9431 dynamic_linker="$host_os ld.so"
9432 shlibpath_var=LIBRARY_PATH
9433 ;;
9434
9435bsdi[45]*)
9436 version_type=linux
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9444 # the default ld.so.conf also contains /usr/contrib/lib and
9445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9446 # libtool to hard-code these into programs
9447 ;;
9448
9449cygwin* | mingw* | pw32* | cegcc*)
9450 version_type=windows
9451 shrext_cmds=".dll"
9452 need_version=no
9453 need_lib_prefix=no
9454
ee134472
JF
9455 case $GCC,$cc_basename in
9456 yes,*)
9457 # gcc
9c60689e
DWT
9458 library_names_spec='$libname.dll.a'
9459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9460 postinstall_cmds='base_file=`basename \${file}`~
9461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9462 dldir=$destdir/`dirname \$dlpath`~
9463 test -d \$dldir || mkdir -p \$dldir~
9464 $install_prog $dir/$dlname \$dldir/$dlname~
9465 chmod a+x \$dldir/$dlname~
9466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9468 fi'
9469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9470 dlpath=$dir/\$dldll~
9471 $RM \$dlpath'
9472 shlibpath_overrides_runpath=yes
9473
9474 case $host_os in
9475 cygwin*)
9476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472
JF
9478
9479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9c60689e
DWT
9480 ;;
9481 mingw* | cegcc*)
9482 # MinGW DLLs use traditional 'lib' prefix
9483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e
DWT
9484 ;;
9485 pw32*)
9486 # pw32 DLLs use 'pw' prefix rather than 'lib'
9487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9488 ;;
9489 esac
ee134472
JF
9490 dynamic_linker='Win32 ld.exe'
9491 ;;
9492
9493 *,cl*)
9494 # Native MSVC
9495 libname_spec='$name'
9496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9497 library_names_spec='${libname}.dll.lib'
9498
9499 case $build_os in
9500 mingw*)
9501 sys_lib_search_path_spec=
9502 lt_save_ifs=$IFS
9503 IFS=';'
9504 for lt_path in $LIB
9505 do
9506 IFS=$lt_save_ifs
9507 # Let DOS variable expansion print the short 8.3 style file name.
9508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9510 done
9511 IFS=$lt_save_ifs
9512 # Convert to MSYS style.
9513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9514 ;;
9515 cygwin*)
9516 # Convert to unix form, then to dos form, then back to unix form
9517 # but this time dos style (no spaces!) so that the unix form looks
9518 # like /cygdrive/c/PROGRA~1:/cygdr...
9519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9522 ;;
9523 *)
9524 sys_lib_search_path_spec="$LIB"
9525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9526 # It is most probably a Windows format PATH.
9527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9528 else
9529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9530 fi
9531 # FIXME: find the short name or the path components, as spaces are
9532 # common. (e.g. "Program Files" -> "PROGRA~1")
9533 ;;
9534 esac
9535
9536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9537 postinstall_cmds='base_file=`basename \${file}`~
9538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9539 dldir=$destdir/`dirname \$dlpath`~
9540 test -d \$dldir || mkdir -p \$dldir~
9541 $install_prog $dir/$dlname \$dldir/$dlname'
9542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9543 dlpath=$dir/\$dldll~
9544 $RM \$dlpath'
9545 shlibpath_overrides_runpath=yes
9546 dynamic_linker='Win32 link.exe'
9c60689e
DWT
9547 ;;
9548
9549 *)
ee134472 9550 # Assume MSVC wrapper
9c60689e 9551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 9552 dynamic_linker='Win32 ld.exe'
9c60689e
DWT
9553 ;;
9554 esac
9c60689e
DWT
9555 # FIXME: first we should search . and the directory the executable is in
9556 shlibpath_var=PATH
9557 ;;
9558
9559darwin* | rhapsody*)
9560 dynamic_linker="$host_os dyld"
9561 version_type=darwin
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9565 soname_spec='${libname}${release}${major}$shared_ext'
9566 shlibpath_overrides_runpath=yes
9567 shlibpath_var=DYLD_LIBRARY_PATH
9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9569
9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9572 ;;
9573
9574dgux*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 ;;
9582
9583freebsd1*)
9584 dynamic_linker=no
9585 ;;
9586
9587freebsd* | dragonfly*)
9588 # DragonFly does not have aout. When/if they implement a new
9589 # versioning mechanism, adjust this.
9590 if test -x /usr/bin/objformat; then
9591 objformat=`/usr/bin/objformat`
9592 else
9593 case $host_os in
9594 freebsd[123]*) objformat=aout ;;
9595 *) objformat=elf ;;
9596 esac
9597 fi
9598 version_type=freebsd-$objformat
9599 case $version_type in
9600 freebsd-elf*)
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 need_version=no
9603 need_lib_prefix=no
9604 ;;
9605 freebsd-*)
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 need_version=yes
9608 ;;
9609 esac
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_os in
9612 freebsd2*)
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615 freebsd3.[01]* | freebsdelf3.[01]*)
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9621 shlibpath_overrides_runpath=no
9622 hardcode_into_libs=yes
9623 ;;
9624 *) # from 4.6 on, and DragonFly
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628 esac
9629 ;;
9630
9631gnu*)
9632 version_type=linux
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
9638 shlibpath_overrides_runpath=no
9639 hardcode_into_libs=yes
9640 ;;
9641
9642haiku*)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 dynamic_linker="$host_os runtime_loader"
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9c60689e
DWT
9652 hardcode_into_libs=yes
9653 ;;
9654
9655hpux9* | hpux10* | hpux11*)
9656 # Give a soname corresponding to the major version so that dld.sl refuses to
9657 # link against other versions.
9658 version_type=sunos
9659 need_lib_prefix=no
9660 need_version=no
9661 case $host_cpu in
9662 ia64*)
9663 shrext_cmds='.so'
9664 hardcode_into_libs=yes
9665 dynamic_linker="$host_os dld.so"
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 if test "X$HPUX_IA64_MODE" = X32; then
9671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9672 else
9673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9674 fi
9675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9676 ;;
9677 hppa*64*)
9678 shrext_cmds='.sl'
9679 hardcode_into_libs=yes
9680 dynamic_linker="$host_os dld.sl"
9681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9687 ;;
9688 *)
9689 shrext_cmds='.sl'
9690 dynamic_linker="$host_os dld.sl"
9691 shlibpath_var=SHLIB_PATH
9692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 ;;
9696 esac
ee134472 9697 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9c60689e 9698 postinstall_cmds='chmod 555 $lib'
ee134472
JF
9699 # or fails outright, so override atomically:
9700 install_override_mode=555
9c60689e
DWT
9701 ;;
9702
9703interix[3-9]*)
9704 version_type=linux
9705 need_lib_prefix=no
9706 need_version=no
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 shlibpath_overrides_runpath=no
9712 hardcode_into_libs=yes
9713 ;;
9714
9715irix5* | irix6* | nonstopux*)
9716 case $host_os in
9717 nonstopux*) version_type=nonstopux ;;
9718 *)
9719 if test "$lt_cv_prog_gnu_ld" = yes; then
9720 version_type=linux
9721 else
9722 version_type=irix
9723 fi ;;
9724 esac
9725 need_lib_prefix=no
9726 need_version=no
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9729 case $host_os in
9730 irix5* | nonstopux*)
9731 libsuff= shlibsuff=
9732 ;;
9733 *)
9734 case $LD in # libtool.m4 will add one of these switches to LD
9735 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9736 libsuff= shlibsuff= libmagic=32-bit;;
9737 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9738 libsuff=32 shlibsuff=N32 libmagic=N32;;
9739 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9740 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9741 *) libsuff= shlibsuff= libmagic=never-match;;
9742 esac
9743 ;;
9744 esac
9745 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9746 shlibpath_overrides_runpath=no
9747 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9748 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9749 hardcode_into_libs=yes
9750 ;;
9751
9752# No shared lib support for Linux oldld, aout, or coff.
9753linux*oldld* | linux*aout* | linux*coff*)
9754 dynamic_linker=no
9755 ;;
9756
9757# This must be Linux ELF.
1504c9b8 9758linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
9759 version_type=linux
9760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 shlibpath_overrides_runpath=no
ee134472 9767
9c60689e 9768 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
9769 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771else
9772 lt_cv_shlibpath_overrides_runpath=no
9773 save_LDFLAGS=$LDFLAGS
9774 save_libdir=$libdir
9775 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9776 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
9778/* end confdefs.h. */
9779
9780int
9781main ()
9782{
9783
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788if ac_fn_c_try_link "$LINENO"; then :
9789 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 9790 lt_cv_shlibpath_overrides_runpath=yes
9c60689e
DWT
9791fi
9792fi
9793rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
9795 LDFLAGS=$save_LDFLAGS
9796 libdir=$save_libdir
9797
9798fi
9799
9800 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e
DWT
9801
9802 # This implies no fast_install, which is unacceptable.
9803 # Some rework will be needed to allow for fast_install
9804 # before this can be enabled.
9805 hardcode_into_libs=yes
9806
9807 # Append ld.so.conf contents to the search path
9808 if test -f /etc/ld.so.conf; then
ee134472 9809 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' ' '`
9c60689e
DWT
9810 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9811 fi
9812
9813 # We used to test for /lib/ld.so.1 and disable shared libraries on
9814 # powerpc, because MkLinux only supported shared libraries with the
9815 # GNU dynamic linker. Since this was broken with cross compilers,
9816 # most powerpc-linux boxes support dynamic linking these days and
9817 # people can always --disable-shared, the test was removed, and we
9818 # assume the GNU/Linux dynamic linker is in use.
9819 dynamic_linker='GNU/Linux ld.so'
9820 ;;
9821
1504c9b8
DWT
9822netbsdelf*-gnu)
9823 version_type=linux
9824 need_lib_prefix=no
9825 need_version=no
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 shlibpath_overrides_runpath=no
9830 hardcode_into_libs=yes
9831 dynamic_linker='NetBSD ld.elf_so'
9832 ;;
9833
9c60689e
DWT
9834netbsd*)
9835 version_type=sunos
9836 need_lib_prefix=no
9837 need_version=no
9838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9841 dynamic_linker='NetBSD (a.out) ld.so'
9842 else
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 dynamic_linker='NetBSD ld.elf_so'
9846 fi
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 hardcode_into_libs=yes
9850 ;;
9851
9852newsos6)
9853 version_type=linux
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 shlibpath_overrides_runpath=yes
9857 ;;
9858
9859*nto* | *qnx*)
9860 version_type=qnx
9861 need_lib_prefix=no
9862 need_version=no
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867 hardcode_into_libs=yes
9868 dynamic_linker='ldqnx.so'
9869 ;;
9870
9871openbsd*)
9872 version_type=sunos
9873 sys_lib_dlsearch_path_spec="/usr/lib"
9874 need_lib_prefix=no
9875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9876 case $host_os in
9877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9878 *) need_version=no ;;
9879 esac
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9884 case $host_os in
9885 openbsd2.[89] | openbsd2.[89].*)
9886 shlibpath_overrides_runpath=no
9887 ;;
9888 *)
9889 shlibpath_overrides_runpath=yes
9890 ;;
9891 esac
9892 else
9893 shlibpath_overrides_runpath=yes
9894 fi
9895 ;;
9896
9897os2*)
9898 libname_spec='$name'
9899 shrext_cmds=".dll"
9900 need_lib_prefix=no
9901 library_names_spec='$libname${shared_ext} $libname.a'
9902 dynamic_linker='OS/2 ld.exe'
9903 shlibpath_var=LIBPATH
9904 ;;
9905
9906osf3* | osf4* | osf5*)
9907 version_type=osf
9908 need_lib_prefix=no
9909 need_version=no
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9915 ;;
9916
9917rdos*)
9918 dynamic_linker=no
9919 ;;
9920
9921solaris*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 # ldd complains unless libraries are executable
9931 postinstall_cmds='chmod +x $lib'
9932 ;;
9933
9934sunos4*)
9935 version_type=sunos
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 if test "$with_gnu_ld" = yes; then
9941 need_lib_prefix=no
9942 fi
9943 need_version=yes
9944 ;;
9945
9946sysv4 | sysv4.3*)
9947 version_type=linux
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 case $host_vendor in
9952 sni)
9953 shlibpath_overrides_runpath=no
9954 need_lib_prefix=no
9955 runpath_var=LD_RUN_PATH
9956 ;;
9957 siemens)
9958 need_lib_prefix=no
9959 ;;
9960 motorola)
9961 need_lib_prefix=no
9962 need_version=no
9963 shlibpath_overrides_runpath=no
9964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9965 ;;
9966 esac
9967 ;;
9968
9969sysv4*MP*)
9970 if test -d /usr/nec ;then
9971 version_type=linux
9972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9973 soname_spec='$libname${shared_ext}.$major'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 fi
9976 ;;
9977
9978sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9979 version_type=freebsd-elf
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9986 hardcode_into_libs=yes
9987 if test "$with_gnu_ld" = yes; then
9988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9989 else
9990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9991 case $host_os in
9992 sco3.2v5*)
9993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9994 ;;
9995 esac
9996 fi
9997 sys_lib_dlsearch_path_spec='/usr/lib'
9998 ;;
9999
10000tpf*)
10001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 shlibpath_overrides_runpath=no
10008 hardcode_into_libs=yes
10009 ;;
10010
10011uts4*)
10012 version_type=linux
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 ;;
10017
10018*)
10019 dynamic_linker=no
10020 ;;
10021esac
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10023$as_echo "$dynamic_linker" >&6; }
10024test "$dynamic_linker" = no && can_build_shared=no
10025
10026variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10027if test "$GCC" = yes; then
10028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10029fi
10030
10031if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10033fi
10034if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10036fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
ee134472
JF
10118
10119
10120
10121
10122
9c60689e
DWT
10123
10124
10125
10126
10127
10128
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10130$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10131hardcode_action=
10132if test -n "$hardcode_libdir_flag_spec" ||
10133 test -n "$runpath_var" ||
10134 test "X$hardcode_automatic" = "Xyes" ; then
10135
10136 # We can hardcode non-existent directories.
10137 if test "$hardcode_direct" != no &&
10138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10139 # have to relink, otherwise we might link with an installed library
10140 # when we should be linking with a yet-to-be-installed one
10141 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10142 test "$hardcode_minus_L" != no; then
10143 # Linking always hardcodes the temporary library directory.
10144 hardcode_action=relink
10145 else
10146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10147 hardcode_action=immediate
10148 fi
10149else
10150 # We cannot hardcode anything, or else we can only hardcode existing
10151 # directories.
10152 hardcode_action=unsupported
10153fi
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10155$as_echo "$hardcode_action" >&6; }
10156
10157if test "$hardcode_action" = relink ||
10158 test "$inherit_rpath" = yes; then
10159 # Fast installation is not supported
10160 enable_fast_install=no
10161elif test "$shlibpath_overrides_runpath" = yes ||
10162 test "$enable_shared" = no; then
10163 # Fast installation is not necessary
10164 enable_fast_install=needless
10165fi
10166
10167
10168
10169
10170
10171
10172 if test "x$enable_dlopen" != xyes; then
10173 enable_dlopen=unknown
10174 enable_dlopen_self=unknown
10175 enable_dlopen_self_static=unknown
10176else
10177 lt_cv_dlopen=no
10178 lt_cv_dlopen_libs=
10179
10180 case $host_os in
10181 beos*)
10182 lt_cv_dlopen="load_add_on"
10183 lt_cv_dlopen_libs=
10184 lt_cv_dlopen_self=yes
10185 ;;
10186
10187 mingw* | pw32* | cegcc*)
10188 lt_cv_dlopen="LoadLibrary"
10189 lt_cv_dlopen_libs=
10190 ;;
10191
10192 cygwin*)
10193 lt_cv_dlopen="dlopen"
10194 lt_cv_dlopen_libs=
10195 ;;
10196
10197 darwin*)
10198 # if libdl is installed we need to link against it
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10200$as_echo_n "checking for dlopen in -ldl... " >&6; }
ee134472 10201if ${ac_cv_lib_dl_dlopen+:} false; then :
9c60689e
DWT
10202 $as_echo_n "(cached) " >&6
10203else
10204 ac_check_lib_save_LIBS=$LIBS
10205LIBS="-ldl $LIBS"
10206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207/* end confdefs.h. */
10208
10209/* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10212#ifdef __cplusplus
10213extern "C"
10214#endif
10215char dlopen ();
10216int
10217main ()
10218{
10219return dlopen ();
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225 ac_cv_lib_dl_dlopen=yes
10226else
10227 ac_cv_lib_dl_dlopen=no
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231LIBS=$ac_check_lib_save_LIBS
10232fi
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10234$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ee134472 10235if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9c60689e
DWT
10236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10237else
10238
10239 lt_cv_dlopen="dyld"
10240 lt_cv_dlopen_libs=
10241 lt_cv_dlopen_self=yes
10242
10243fi
10244
10245 ;;
10246
10247 *)
10248 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
ee134472 10249if test "x$ac_cv_func_shl_load" = xyes; then :
9c60689e
DWT
10250 lt_cv_dlopen="shl_load"
10251else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10253$as_echo_n "checking for shl_load in -ldld... " >&6; }
ee134472 10254if ${ac_cv_lib_dld_shl_load+:} false; then :
9c60689e
DWT
10255 $as_echo_n "(cached) " >&6
10256else
10257 ac_check_lib_save_LIBS=$LIBS
10258LIBS="-ldld $LIBS"
10259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h. */
10261
10262/* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268char shl_load ();
10269int
10270main ()
10271{
10272return shl_load ();
10273 ;
10274 return 0;
10275}
10276_ACEOF
10277if ac_fn_c_try_link "$LINENO"; then :
10278 ac_cv_lib_dld_shl_load=yes
10279else
10280 ac_cv_lib_dld_shl_load=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284LIBS=$ac_check_lib_save_LIBS
10285fi
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10287$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
ee134472 10288if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9c60689e
DWT
10289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10290else
10291 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
ee134472 10292if test "x$ac_cv_func_dlopen" = xyes; then :
9c60689e
DWT
10293 lt_cv_dlopen="dlopen"
10294else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10296$as_echo_n "checking for dlopen in -ldl... " >&6; }
ee134472 10297if ${ac_cv_lib_dl_dlopen+:} false; then :
9c60689e
DWT
10298 $as_echo_n "(cached) " >&6
10299else
10300 ac_check_lib_save_LIBS=$LIBS
10301LIBS="-ldl $LIBS"
10302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h. */
10304
10305/* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10308#ifdef __cplusplus
10309extern "C"
10310#endif
10311char dlopen ();
10312int
10313main ()
10314{
10315return dlopen ();
10316 ;
10317 return 0;
10318}
10319_ACEOF
10320if ac_fn_c_try_link "$LINENO"; then :
10321 ac_cv_lib_dl_dlopen=yes
10322else
10323 ac_cv_lib_dl_dlopen=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327LIBS=$ac_check_lib_save_LIBS
10328fi
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10330$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ee134472 10331if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9c60689e
DWT
10332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10333else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10335$as_echo_n "checking for dlopen in -lsvld... " >&6; }
ee134472 10336if ${ac_cv_lib_svld_dlopen+:} false; then :
9c60689e
DWT
10337 $as_echo_n "(cached) " >&6
10338else
10339 ac_check_lib_save_LIBS=$LIBS
10340LIBS="-lsvld $LIBS"
10341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342/* end confdefs.h. */
10343
10344/* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10347#ifdef __cplusplus
10348extern "C"
10349#endif
10350char dlopen ();
10351int
10352main ()
10353{
10354return dlopen ();
10355 ;
10356 return 0;
10357}
10358_ACEOF
10359if ac_fn_c_try_link "$LINENO"; then :
10360 ac_cv_lib_svld_dlopen=yes
10361else
10362 ac_cv_lib_svld_dlopen=no
10363fi
10364rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366LIBS=$ac_check_lib_save_LIBS
10367fi
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10369$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
ee134472 10370if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9c60689e
DWT
10371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10372else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10374$as_echo_n "checking for dld_link in -ldld... " >&6; }
ee134472 10375if ${ac_cv_lib_dld_dld_link+:} false; then :
9c60689e
DWT
10376 $as_echo_n "(cached) " >&6
10377else
10378 ac_check_lib_save_LIBS=$LIBS
10379LIBS="-ldld $LIBS"
10380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381/* end confdefs.h. */
10382
10383/* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386#ifdef __cplusplus
10387extern "C"
10388#endif
10389char dld_link ();
10390int
10391main ()
10392{
10393return dld_link ();
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398if ac_fn_c_try_link "$LINENO"; then :
10399 ac_cv_lib_dld_dld_link=yes
10400else
10401 ac_cv_lib_dld_dld_link=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405LIBS=$ac_check_lib_save_LIBS
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10408$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
ee134472 10409if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9c60689e
DWT
10410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10411fi
10412
10413
10414fi
10415
10416
10417fi
10418
10419
10420fi
10421
10422
10423fi
10424
10425
10426fi
10427
10428 ;;
10429 esac
10430
10431 if test "x$lt_cv_dlopen" != xno; then
10432 enable_dlopen=yes
10433 else
10434 enable_dlopen=no
10435 fi
10436
10437 case $lt_cv_dlopen in
10438 dlopen)
10439 save_CPPFLAGS="$CPPFLAGS"
10440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10441
10442 save_LDFLAGS="$LDFLAGS"
10443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10444
10445 save_LIBS="$LIBS"
10446 LIBS="$lt_cv_dlopen_libs $LIBS"
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10449$as_echo_n "checking whether a program can dlopen itself... " >&6; }
ee134472 10450if ${lt_cv_dlopen_self+:} false; then :
9c60689e
DWT
10451 $as_echo_n "(cached) " >&6
10452else
10453 if test "$cross_compiling" = yes; then :
10454 lt_cv_dlopen_self=cross
10455else
10456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10457 lt_status=$lt_dlunknown
10458 cat > conftest.$ac_ext <<_LT_EOF
ee134472 10459#line $LINENO "configure"
9c60689e
DWT
10460#include "confdefs.h"
10461
10462#if HAVE_DLFCN_H
10463#include <dlfcn.h>
10464#endif
10465
10466#include <stdio.h>
10467
10468#ifdef RTLD_GLOBAL
10469# define LT_DLGLOBAL RTLD_GLOBAL
10470#else
10471# ifdef DL_GLOBAL
10472# define LT_DLGLOBAL DL_GLOBAL
10473# else
10474# define LT_DLGLOBAL 0
10475# endif
10476#endif
10477
10478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10479 find out it does not work in some platform. */
10480#ifndef LT_DLLAZY_OR_NOW
10481# ifdef RTLD_LAZY
10482# define LT_DLLAZY_OR_NOW RTLD_LAZY
10483# else
10484# ifdef DL_LAZY
10485# define LT_DLLAZY_OR_NOW DL_LAZY
10486# else
10487# ifdef RTLD_NOW
10488# define LT_DLLAZY_OR_NOW RTLD_NOW
10489# else
10490# ifdef DL_NOW
10491# define LT_DLLAZY_OR_NOW DL_NOW
10492# else
10493# define LT_DLLAZY_OR_NOW 0
10494# endif
10495# endif
10496# endif
10497# endif
10498#endif
10499
ee134472
JF
10500/* When -fvisbility=hidden is used, assume the code has been annotated
10501 correspondingly for the symbols needed. */
10502#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10503int fnord () __attribute__((visibility("default")));
10504#endif
10505
10506int fnord () { return 42; }
9c60689e
DWT
10507int main ()
10508{
10509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10510 int status = $lt_dlunknown;
10511
10512 if (self)
10513 {
10514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
ee134472
JF
10515 else
10516 {
10517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518 else puts (dlerror ());
10519 }
9c60689e
DWT
10520 /* dlclose (self); */
10521 }
10522 else
10523 puts (dlerror ());
10524
10525 return status;
10526}
10527_LT_EOF
10528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10529 (eval $ac_link) 2>&5
10530 ac_status=$?
10531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10533 (./conftest; exit; ) >&5 2>/dev/null
10534 lt_status=$?
10535 case x$lt_status in
10536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10539 esac
10540 else :
10541 # compilation failed
10542 lt_cv_dlopen_self=no
10543 fi
10544fi
10545rm -fr conftest*
10546
10547
10548fi
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10550$as_echo "$lt_cv_dlopen_self" >&6; }
10551
10552 if test "x$lt_cv_dlopen_self" = xyes; then
10553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10555$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
ee134472 10556if ${lt_cv_dlopen_self_static+:} false; then :
9c60689e
DWT
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test "$cross_compiling" = yes; then :
10560 lt_cv_dlopen_self_static=cross
10561else
10562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10563 lt_status=$lt_dlunknown
10564 cat > conftest.$ac_ext <<_LT_EOF
ee134472 10565#line $LINENO "configure"
9c60689e
DWT
10566#include "confdefs.h"
10567
10568#if HAVE_DLFCN_H
10569#include <dlfcn.h>
10570#endif
10571
10572#include <stdio.h>
10573
10574#ifdef RTLD_GLOBAL
10575# define LT_DLGLOBAL RTLD_GLOBAL
10576#else
10577# ifdef DL_GLOBAL
10578# define LT_DLGLOBAL DL_GLOBAL
10579# else
10580# define LT_DLGLOBAL 0
10581# endif
10582#endif
10583
10584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10585 find out it does not work in some platform. */
10586#ifndef LT_DLLAZY_OR_NOW
10587# ifdef RTLD_LAZY
10588# define LT_DLLAZY_OR_NOW RTLD_LAZY
10589# else
10590# ifdef DL_LAZY
10591# define LT_DLLAZY_OR_NOW DL_LAZY
10592# else
10593# ifdef RTLD_NOW
10594# define LT_DLLAZY_OR_NOW RTLD_NOW
10595# else
10596# ifdef DL_NOW
10597# define LT_DLLAZY_OR_NOW DL_NOW
10598# else
10599# define LT_DLLAZY_OR_NOW 0
10600# endif
10601# endif
10602# endif
10603# endif
10604#endif
10605
ee134472
JF
10606/* When -fvisbility=hidden is used, assume the code has been annotated
10607 correspondingly for the symbols needed. */
10608#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10609int fnord () __attribute__((visibility("default")));
10610#endif
10611
10612int fnord () { return 42; }
9c60689e
DWT
10613int main ()
10614{
10615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10616 int status = $lt_dlunknown;
10617
10618 if (self)
10619 {
10620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
ee134472
JF
10621 else
10622 {
10623 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10624 else puts (dlerror ());
10625 }
9c60689e
DWT
10626 /* dlclose (self); */
10627 }
10628 else
10629 puts (dlerror ());
10630
10631 return status;
10632}
10633_LT_EOF
10634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10635 (eval $ac_link) 2>&5
10636 ac_status=$?
10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10638 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10639 (./conftest; exit; ) >&5 2>/dev/null
10640 lt_status=$?
10641 case x$lt_status in
10642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10644 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10645 esac
10646 else :
10647 # compilation failed
10648 lt_cv_dlopen_self_static=no
10649 fi
10650fi
10651rm -fr conftest*
10652
10653
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10656$as_echo "$lt_cv_dlopen_self_static" >&6; }
10657 fi
10658
10659 CPPFLAGS="$save_CPPFLAGS"
10660 LDFLAGS="$save_LDFLAGS"
10661 LIBS="$save_LIBS"
10662 ;;
10663 esac
10664
10665 case $lt_cv_dlopen_self in
10666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10667 *) enable_dlopen_self=unknown ;;
10668 esac
10669
10670 case $lt_cv_dlopen_self_static in
10671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10672 *) enable_dlopen_self_static=unknown ;;
10673 esac
10674fi
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692striplib=
10693old_striplib=
10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10695$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10696if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10697 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10698 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700$as_echo "yes" >&6; }
10701else
10702# FIXME - insert some real tests, host_os isn't really good enough
10703 case $host_os in
10704 darwin*)
10705 if test -n "$STRIP" ; then
10706 striplib="$STRIP -x"
10707 old_striplib="$STRIP -S"
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709$as_echo "yes" >&6; }
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713 fi
10714 ;;
10715 *)
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717$as_echo "no" >&6; }
10718 ;;
10719 esac
10720fi
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733 # Report which library types will actually be built
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10735$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10737$as_echo "$can_build_shared" >&6; }
10738
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10740$as_echo_n "checking whether to build shared libraries... " >&6; }
10741 test "$can_build_shared" = "no" && enable_shared=no
10742
10743 # On AIX, shared libraries and static libraries use the same namespace, and
10744 # are all built from PIC.
10745 case $host_os in
10746 aix3*)
10747 test "$enable_shared" = yes && enable_static=no
10748 if test -n "$RANLIB"; then
10749 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10750 postinstall_cmds='$RANLIB $lib'
10751 fi
10752 ;;
10753
10754 aix[4-9]*)
10755 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10756 test "$enable_shared" = yes && enable_static=no
10757 fi
10758 ;;
10759 esac
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10761$as_echo "$enable_shared" >&6; }
10762
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10764$as_echo_n "checking whether to build static libraries... " >&6; }
10765 # Make sure either enable_shared or enable_static is yes.
10766 test "$enable_shared" = yes || enable_static=yes
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10768$as_echo "$enable_static" >&6; }
10769
10770
10771
10772
10773fi
10774ac_ext=c
10775ac_cpp='$CPP $CPPFLAGS'
10776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10778ac_compiler_gnu=$ac_cv_c_compiler_gnu
10779
10780CC="$lt_save_CC"
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794 ac_config_commands="$ac_config_commands libtool"
10795
10796
10797
10798
10799# Only expand once:
10800
10801
3fd51f51
DWT
10802
10803
12833ad8
JF
10804
10805
10806
10807
ee134472 10808
3fd51f51
DWT
10809if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10810 if test -n "$ac_tool_prefix"; then
10811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10812set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814$as_echo_n "checking for $ac_word... " >&6; }
ee134472 10815if ${ac_cv_path_PKG_CONFIG+:} false; then :
3fd51f51
DWT
10816 $as_echo_n "(cached) " >&6
10817else
10818 case $PKG_CONFIG in
10819 [\\/]* | ?:[\\/]*)
10820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10821 ;;
10822 *)
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834done
10835 done
10836IFS=$as_save_IFS
10837
10838 ;;
10839esac
10840fi
10841PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10842if test -n "$PKG_CONFIG"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10844$as_echo "$PKG_CONFIG" >&6; }
10845else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847$as_echo "no" >&6; }
10848fi
10849
10850
10851fi
10852if test -z "$ac_cv_path_PKG_CONFIG"; then
10853 ac_pt_PKG_CONFIG=$PKG_CONFIG
10854 # Extract the first word of "pkg-config", so it can be a program name with args.
10855set dummy pkg-config; ac_word=$2
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857$as_echo_n "checking for $ac_word... " >&6; }
ee134472 10858if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3fd51f51
DWT
10859 $as_echo_n "(cached) " >&6
10860else
10861 case $ac_pt_PKG_CONFIG in
10862 [\\/]* | ?:[\\/]*)
10863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10864 ;;
10865 *)
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867for as_dir in $PATH
10868do
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10873 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10876 fi
10877done
10878 done
10879IFS=$as_save_IFS
10880
10881 ;;
10882esac
10883fi
10884ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10885if test -n "$ac_pt_PKG_CONFIG"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10887$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10888else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890$as_echo "no" >&6; }
10891fi
10892
10893 if test "x$ac_pt_PKG_CONFIG" = x; then
10894 PKG_CONFIG=""
10895 else
10896 case $cross_compiling:$ac_tool_warned in
10897yes:)
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10900ac_tool_warned=yes ;;
10901esac
10902 PKG_CONFIG=$ac_pt_PKG_CONFIG
10903 fi
10904else
10905 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10906fi
10907
10908fi
10909if test -n "$PKG_CONFIG"; then
10910 _pkg_min_version=0.22
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10912$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10913 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10915$as_echo "yes" >&6; }
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918$as_echo "no" >&6; }
10919 PKG_CONFIG=""
10920 fi
632b71ea
DWT
10921fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10923$as_echo_n "checking for GNU make... " >&6; }
ee134472 10924if ${_cv_gnu_make_command+:} false; then :
632b71ea
DWT
10925 $as_echo_n "(cached) " >&6
10926else
10927 _cv_gnu_make_command='' ;
10928 for a in "$MAKE" make gmake gnumake ; do
10929 if test -z "$a" ; then continue ; fi ;
10930 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10931 _cv_gnu_make_command=$a ;
10932 break;
10933 fi
10934 done ;
10935
10936fi
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10938$as_echo "$_cv_gnu_make_command" >&6; } ;
10939 if test "x$_cv_gnu_make_command" != "x" ; then
10940 ifGNUmake='' ;
10941 else
10942 ifGNUmake='#' ;
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10944$as_echo "\"Not found\"" >&6; };
10945 fi
10946
10947
790e5246
DWT
10948GMAKE=$_cv_gnu_make_command
10949
12833ad8 10950
790e5246 10951if test "x$GMAKE" = x; then :
12833ad8 10952 as_fn_error $? "You need GNU make" "$LINENO" 5
3fd51f51 10953fi
e9c9a47c
DWT
10954for ac_prog in bash
10955do
10956 # Extract the first word of "$ac_prog", so it can be a program name with args.
10957set dummy $ac_prog; ac_word=$2
9c60689e
DWT
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959$as_echo_n "checking for $ac_word... " >&6; }
ee134472 10960if ${ac_cv_path__BASH+:} false; then :
9c60689e
DWT
10961 $as_echo_n "(cached) " >&6
10962else
e9c9a47c
DWT
10963 case $_BASH in
10964 [\\/]* | ?:[\\/]*)
10965 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10966 ;;
10967 *)
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10969for as_dir in $PATH
10970do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10975 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979done
10980 done
10981IFS=$as_save_IFS
10982
e9c9a47c
DWT
10983 ;;
10984esac
9c60689e 10985fi
e9c9a47c
DWT
10986_BASH=$ac_cv_path__BASH
10987if test -n "$_BASH"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10989$as_echo "$_BASH" >&6; }
9c60689e
DWT
10990else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992$as_echo "no" >&6; }
10993fi
10994
10995
e9c9a47c
DWT
10996 test -n "$_BASH" && break
10997done
10998
10999if test "x$_BASH" = x; then :
12833ad8 11000 as_fn_error $? "You need GNU bash" "$LINENO" 5
9c60689e 11001fi
e9c9a47c 11002for ac_prog in time
9c60689e
DWT
11003do
11004 # Extract the first word of "$ac_prog", so it can be a program name with args.
11005set dummy $ac_prog; ac_word=$2
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007$as_echo_n "checking for $ac_word... " >&6; }
ee134472 11008if ${ac_cv_path_TIME+:} false; then :
9c60689e
DWT
11009 $as_echo_n "(cached) " >&6
11010else
e9c9a47c
DWT
11011 case $TIME in
11012 [\\/]* | ?:[\\/]*)
11013 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
11014 ;;
11015 *)
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 11023 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027done
11028 done
11029IFS=$as_save_IFS
11030
e9c9a47c
DWT
11031 ;;
11032esac
9c60689e 11033fi
e9c9a47c
DWT
11034TIME=$ac_cv_path_TIME
11035if test -n "$TIME"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
11037$as_echo "$TIME" >&6; }
9c60689e
DWT
11038else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
11041fi
11042
11043
e9c9a47c 11044 test -n "$TIME" && break
9c60689e
DWT
11045done
11046
e9c9a47c
DWT
11047
11048
11049
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
11051$as_echo_n "checking for bison >= 2.3... " >&6; }
11052 if test -z "$BISON"; then
11053 ac_path_BISON_found=false
11054 # Loop through the user's path and test for each of PROGNAME-LIST
11055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056for as_dir in $PATH
11057do
11058 IFS=$as_save_IFS
11059 test -z "$as_dir" && as_dir=.
11060 for ac_prog in bison; do
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
11063 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
11064as_awk_strverscmp='
11065 # Use only awk features that work with 7th edition Unix awk (1978).
11066 # My, what an old awk you have, Mr. Solaris!
11067 END {
11068 while (length(v1) && length(v2)) {
11069 # Set d1 to be the next thing to compare from v1, and likewise for d2.
11070 # Normally this is a single character, but if v1 and v2 contain digits,
11071 # compare them as integers and fractions as strverscmp does.
11072 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
11073 # Split v1 and v2 into their leading digit string components d1 and d2,
11074 # and advance v1 and v2 past the leading digit strings.
11075 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
11076 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
11077 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
11078 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
11079 if (d1 ~ /^0/) {
11080 if (d2 ~ /^0/) {
11081 # Compare two fractions.
11082 while (d1 ~ /^0/ && d2 ~ /^0/) {
11083 d1 = substr(d1, 2); len1--
11084 d2 = substr(d2, 2); len2--
11085 }
11086 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
11087 # The two components differ in length, and the common prefix
11088 # contains only leading zeros. Consider the longer to be less.
11089 d1 = -len1
11090 d2 = -len2
11091 } else {
11092 # Otherwise, compare as strings.
11093 d1 = "x" d1
11094 d2 = "x" d2
11095 }
11096 } else {
11097 # A fraction is less than an integer.
11098 exit 1
11099 }
11100 } else {
11101 if (d2 ~ /^0/) {
11102 # An integer is greater than a fraction.
11103 exit 2
11104 } else {
11105 # Compare two integers.
11106 d1 += 0
11107 d2 += 0
11108 }
11109 }
11110 } else {
11111 # The normal case, without worrying about digits.
11112 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
11113 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
11114 }
11115 if (d1 < d2) exit 1
11116 if (d1 > d2) exit 2
11117 }
11118 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
11119 # which mishandles some comparisons of empty strings to integers.
11120 if (length(v2)) exit 1
11121 if (length(v1)) exit 2
11122 }
11123'
11124as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
11125as_arg_v2=2.3
11126awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11127case $? in #(
11128 1) :
11129 ;; #(
11130 0) :
11131 ac_cv_path_BISON=$ac_path_BISON
11132 ;; #(
11133 2) :
11134 ac_cv_path_BISON=$ac_path_BISON
11135 ;; #(
11136 *) :
11137 ;;
9c60689e 11138esac
e9c9a47c
DWT
11139
11140 $ac_path_BISON_found && break 3
11141 done
11142 done
11143 done
11144IFS=$as_save_IFS
11145 if test -z "$ac_cv_path_BISON"; then
b5bd4353
DWT
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
12833ad8 11148 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
9c60689e 11149
9c60689e 11150 fi
e9c9a47c
DWT
11151else
11152 ac_cv_path_BISON=$BISON
9c60689e 11153fi
9c60689e 11154
e9c9a47c 11155 BISON=$ac_cv_path_BISON
9c60689e 11156
e9c9a47c
DWT
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11158$as_echo "$BISON" >&6; }
9c60689e 11159
9c60689e 11160
9c60689e 11161
e9c9a47c
DWT
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
11163$as_echo_n "checking for flex >= 2.5.33... " >&6; }
11164 if test -z "$FLEX"; then
11165 ac_path_FLEX_found=false
11166 # Loop through the user's path and test for each of PROGNAME-LIST
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
e9c9a47c 11172 for ac_prog in flex; do
9c60689e 11173 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
11174 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
11175 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
8cd1ce21 11176as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
e9c9a47c
DWT
11177as_arg_v2=2.5.33
11178awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11179case $? in #(
11180 1) :
11181 ;; #(
11182 0) :
11183 ac_cv_path_FLEX=$ac_path_FLEX
11184 ;; #(
11185 2) :
11186 ac_cv_path_FLEX=$ac_path_FLEX
11187 ;; #(
11188 *) :
11189 ;;
11190esac
11191
11192 $ac_path_FLEX_found && break 3
11193 done
11194 done
9c60689e
DWT
11195 done
11196IFS=$as_save_IFS
e9c9a47c 11197 if test -z "$ac_cv_path_FLEX"; then
b5bd4353
DWT
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199$as_echo "no" >&6; }
12833ad8 11200 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
9c60689e 11201
e9c9a47c 11202 fi
9c60689e 11203else
e9c9a47c 11204 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
11205fi
11206
e9c9a47c 11207 FLEX=$ac_cv_path_FLEX
9c60689e 11208
e9c9a47c
DWT
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11210$as_echo "$FLEX" >&6; }
11211
11212
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
11215$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
11216 if test -z "$GPERF"; then
11217 ac_path_GPERF_found=false
11218 # Loop through the user's path and test for each of PROGNAME-LIST
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
11220for as_dir in $PATH
11221do
11222 IFS=$as_save_IFS
11223 test -z "$as_dir" && as_dir=.
e9c9a47c 11224 for ac_prog in gperf; do
9c60689e 11225 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
11226 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
11227 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
11228as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
11229as_arg_v2=3.0.3
11230awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11231case $? in #(
11232 1) :
11233 ;; #(
11234 0) :
11235 ac_cv_path_GPERF=$ac_path_GPERF
11236 ;; #(
11237 2) :
11238 ac_cv_path_GPERF=$ac_path_GPERF
11239 ;; #(
11240 *) :
11241 ;;
11242esac
11243
11244 $ac_path_GPERF_found && break 3
11245 done
11246 done
9c60689e
DWT
11247 done
11248IFS=$as_save_IFS
e9c9a47c 11249 if test -z "$ac_cv_path_GPERF"; then
b5bd4353
DWT
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251$as_echo "no" >&6; }
12833ad8 11252 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
9c60689e 11253
e9c9a47c 11254 fi
9c60689e 11255else
e9c9a47c 11256 ac_cv_path_GPERF=$GPERF
9c60689e
DWT
11257fi
11258
e9c9a47c 11259 GPERF=$ac_cv_path_GPERF
9c60689e 11260
e9c9a47c
DWT
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
11262$as_echo "$GPERF" >&6; }
3fd51f51 11263
e9c9a47c
DWT
11264# Find a good install program. We prefer a C program (faster),
11265# so one script is as good as another. But avoid the broken or
11266# incompatible versions:
11267# SysV /etc/install, /usr/sbin/install
11268# SunOS /usr/etc/install
11269# IRIX /sbin/install
11270# AIX /bin/install
11271# AmigaOS /C/install, which installs bootblocks on floppy discs
11272# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11273# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11274# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11275# OS/2's system install, which has a completely different semantic
11276# ./install, which can be erroneously created by make from ./install.sh.
11277# Reject install programs that cannot install multiple files.
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11279$as_echo_n "checking for a BSD-compatible install... " >&6; }
11280if test -z "$INSTALL"; then
ee134472 11281if ${ac_cv_path_install+:} false; then :
e9c9a47c
DWT
11282 $as_echo_n "(cached) " >&6
11283else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $PATH
11286do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 # Account for people who put trailing slashes in PATH elements.
11290case $as_dir/ in #((
11291 ./ | .// | /[cC]/* | \
11292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11293 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11294 /usr/ucb/* ) ;;
11295 *)
11296 # OSF1 and SCO ODT 3.0 have their own names for install.
11297 # Don't use installbsd from OSF since it installs stuff as root
11298 # by default.
11299 for ac_prog in ginstall scoinst install; do
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11302 if test $ac_prog = install &&
11303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11304 # AIX install. It has an incompatible calling convention.
11305 :
11306 elif test $ac_prog = install &&
11307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11308 # program-specific install script used by HP pwplus--don't use.
11309 :
11310 else
11311 rm -rf conftest.one conftest.two conftest.dir
11312 echo one > conftest.one
11313 echo two > conftest.two
11314 mkdir conftest.dir
11315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11316 test -s conftest.one && test -s conftest.two &&
11317 test -s conftest.dir/conftest.one &&
11318 test -s conftest.dir/conftest.two
11319 then
11320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11321 break 3
11322 fi
11323 fi
11324 fi
11325 done
11326 done
11327 ;;
11328esac
11329
11330 done
11331IFS=$as_save_IFS
11332
11333rm -rf conftest.one conftest.two conftest.dir
11334
11335fi
11336 if test "${ac_cv_path_install+set}" = set; then
11337 INSTALL=$ac_cv_path_install
11338 else
11339 # As a last resort, use the slow shell script. Don't cache a
11340 # value for INSTALL within a source directory, because that will
11341 # break other packages using the cache if that directory is
11342 # removed, or if the value is a relative name.
11343 INSTALL=$ac_install_sh
11344 fi
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11347$as_echo "$INSTALL" >&6; }
11348
11349# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11350# It thinks the first close brace ends the variable substitution.
11351test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11352
11353test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11354
11355test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11356
b5bd4353
DWT
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
11358$as_echo_n "checking for GNU tar >=1.19... " >&6; }
e9c9a47c
DWT
11359if test -z "$GNUTAR"; then
11360 ac_path_GNUTAR_found=false
11361 # Loop through the user's path and test for each of PROGNAME-LIST
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363for as_dir in $PATH
11364do
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_prog in tar gtar gnutar; do
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
11370 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
11371
11372 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
11373
b5bd4353
DWT
11374 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
11375as_arg_v2=1.19
11376awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11377case $? in #(
11378 1) :
11379 ;; #(
11380 0) :
11381
11382 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11383 ;; #(
11384 2) :
11385
11386 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11387 ;; #(
11388 *) :
11389 ;;
11390esac
e9c9a47c
DWT
11391
11392fi
11393
11394 $ac_path_GNUTAR_found && break 3
11395 done
11396 done
11397 done
11398IFS=$as_save_IFS
11399 if test -z "$ac_cv_path_GNUTAR"; then
11400 :
11401 fi
11402else
11403 ac_cv_path_GNUTAR=$GNUTAR
11404fi
11405
11406if test "x$ac_cv_path_GNUTAR" != x; then :
11407
11408 GNUTAR=$ac_cv_path_GNUTAR
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
11411$as_echo "$GNUTAR" >&6; }
11412
11413else
11414
11415 GNUTAR=:
11416
b5bd4353
DWT
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
e9c9a47c
DWT
11419
11420fi
fb726fc5 11421for ac_prog in git
b65019fe
DWT
11422do
11423 # Extract the first word of "$ac_prog", so it can be a program name with args.
11424set dummy $ac_prog; ac_word=$2
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
fb726fc5 11427if ${ac_cv_prog_GIT+:} false; then :
b65019fe
DWT
11428 $as_echo_n "(cached) " >&6
11429else
fb726fc5
JF
11430 if test -n "$GIT"; then
11431 ac_cv_prog_GIT="$GIT" # Let the user override the test.
b65019fe
DWT
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fb726fc5 11440 ac_cv_prog_GIT="$ac_prog"
b65019fe
DWT
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445 done
11446IFS=$as_save_IFS
11447
11448fi
11449fi
fb726fc5
JF
11450GIT=$ac_cv_prog_GIT
11451if test -n "$GIT"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
11453$as_echo "$GIT" >&6; }
b65019fe
DWT
11454else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457fi
11458
11459
fb726fc5 11460 test -n "$GIT" && break
b65019fe
DWT
11461done
11462
e9c9a47c
DWT
11463ac_ext=cpp
11464ac_cpp='$CXXCPP $CPPFLAGS'
11465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11468if test -z "$CXX"; then
11469 if test -n "$CCC"; then
11470 CXX=$CCC
11471 else
11472 if test -n "$ac_tool_prefix"; then
11473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11474 do
11475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478$as_echo_n "checking for $ac_word... " >&6; }
ee134472 11479if ${ac_cv_prog_CXX+:} false; then :
e9c9a47c
DWT
11480 $as_echo_n "(cached) " >&6
11481else
11482 if test -n "$CXX"; then
11483 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11484else
11485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496done
11497 done
11498IFS=$as_save_IFS
11499
11500fi
11501fi
11502CXX=$ac_cv_prog_CXX
11503if test -n "$CXX"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11505$as_echo "$CXX" >&6; }
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511
11512 test -n "$CXX" && break
11513 done
11514fi
11515if test -z "$CXX"; then
11516 ac_ct_CXX=$CXX
11517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11518do
11519 # Extract the first word of "$ac_prog", so it can be a program name with args.
11520set dummy $ac_prog; ac_word=$2
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522$as_echo_n "checking for $ac_word... " >&6; }
ee134472 11523if ${ac_cv_prog_ac_ct_CXX+:} false; then :
e9c9a47c
DWT
11524 $as_echo_n "(cached) " >&6
11525else
11526 if test -n "$ac_ct_CXX"; then
11527 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11528else
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_prog_ac_ct_CXX="$ac_prog"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541 done
11542IFS=$as_save_IFS
11543
11544fi
11545fi
11546ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11547if test -n "$ac_ct_CXX"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11549$as_echo "$ac_ct_CXX" >&6; }
11550else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552$as_echo "no" >&6; }
11553fi
11554
11555
11556 test -n "$ac_ct_CXX" && break
11557done
11558
11559 if test "x$ac_ct_CXX" = x; then
11560 CXX="g++"
11561 else
11562 case $cross_compiling:$ac_tool_warned in
11563yes:)
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11566ac_tool_warned=yes ;;
11567esac
11568 CXX=$ac_ct_CXX
11569 fi
11570fi
11571
11572 fi
11573fi
11574# Provide some information about the compiler.
11575$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11576set X $ac_compile
11577ac_compiler=$2
11578for ac_option in --version -v -V -qversion; do
11579 { { ac_try="$ac_compiler $ac_option >&5"
11580case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
47aaa820
DWT
11584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11585$as_echo "$ac_try_echo"; } >&5
11586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11587 ac_status=$?
11588 if test -s conftest.err; then
11589 sed '10a\
11590... rest of stderr output deleted ...
11591 10q' conftest.err >conftest.er1
11592 cat conftest.er1 >&5
3530897b 11593 fi
47aaa820
DWT
11594 rm -f conftest.er1 conftest.err
11595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596 test $ac_status = 0; }
3530897b 11597done
3530897b 11598
47aaa820
DWT
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11600$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
ee134472 11601if ${ac_cv_cxx_compiler_gnu+:} false; then :
47aaa820
DWT
11602 $as_echo_n "(cached) " >&6
11603else
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605/* end confdefs.h. */
11606
11607int
11608main ()
11609{
11610#ifndef __GNUC__
11611 choke me
11612#endif
11613
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618if ac_fn_cxx_try_compile "$LINENO"; then :
11619 ac_compiler_gnu=yes
11620else
11621 ac_compiler_gnu=no
3530897b 11622fi
47aaa820
DWT
11623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11625
3530897b 11626fi
47aaa820
DWT
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11628$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11629if test $ac_compiler_gnu = yes; then
11630 GXX=yes
3530897b 11631else
47aaa820 11632 GXX=
3530897b 11633fi
47aaa820
DWT
11634ac_test_CXXFLAGS=${CXXFLAGS+set}
11635ac_save_CXXFLAGS=$CXXFLAGS
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11637$as_echo_n "checking whether $CXX accepts -g... " >&6; }
ee134472 11638if ${ac_cv_prog_cxx_g+:} false; then :
47aaa820
DWT
11639 $as_echo_n "(cached) " >&6
11640else
11641 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11642 ac_cxx_werror_flag=yes
11643 ac_cv_prog_cxx_g=no
11644 CXXFLAGS="-g"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h. */
3530897b 11647
47aaa820
DWT
11648int
11649main ()
11650{
3530897b 11651
47aaa820
DWT
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656if ac_fn_cxx_try_compile "$LINENO"; then :
11657 ac_cv_prog_cxx_g=yes
11658else
11659 CXXFLAGS=""
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h. */
9c60689e 11662
47aaa820
DWT
11663int
11664main ()
11665{
9c60689e 11666
47aaa820
DWT
11667 ;
11668 return 0;
11669}
11670_ACEOF
11671if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e 11672
47aaa820
DWT
11673else
11674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11675 CXXFLAGS="-g"
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677/* end confdefs.h. */
9c60689e 11678
47aaa820
DWT
11679int
11680main ()
11681{
9c60689e 11682
47aaa820
DWT
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687if ac_fn_cxx_try_compile "$LINENO"; then :
11688 ac_cv_prog_cxx_g=yes
11689fi
11690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691fi
11692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693fi
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11696fi
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11698$as_echo "$ac_cv_prog_cxx_g" >&6; }
11699if test "$ac_test_CXXFLAGS" = set; then
11700 CXXFLAGS=$ac_save_CXXFLAGS
11701elif test $ac_cv_prog_cxx_g = yes; then
11702 if test "$GXX" = yes; then
11703 CXXFLAGS="-g -O2"
11704 else
11705 CXXFLAGS="-g"
11706 fi
11707else
11708 if test "$GXX" = yes; then
11709 CXXFLAGS="-O2"
11710 else
11711 CXXFLAGS=
11712 fi
11713fi
11714ac_ext=c
11715ac_cpp='$CPP $CPPFLAGS'
11716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 11719
e9c9a47c 11720
9c60689e 11721
ee134472 11722func_stripname_cnf ()
e9c9a47c 11723{
ee134472
JF
11724 case ${2} in
11725 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11726 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11727 esac
11728} # func_stripname_cnf
e9c9a47c 11729
ee134472 11730 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
11731 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11732 (test "X$CXX" != "Xg++"))) ; then
11733 ac_ext=cpp
11734ac_cpp='$CXXCPP $CPPFLAGS'
11735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11739$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11740if test -z "$CXXCPP"; then
ee134472 11741 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
11742 $as_echo_n "(cached) " >&6
11743else
11744 # Double quotes because CXXCPP needs to be expanded
11745 for CXXCPP in "$CXX -E" "/lib/cpp"
11746 do
11747 ac_preproc_ok=false
11748for ac_cxx_preproc_warn_flag in '' yes
11749do
11750 # Use a header file that comes with gcc, so configuring glibc
11751 # with a fresh cross-compiler works.
11752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 # <limits.h> exists even on freestanding compilers.
11754 # On the NeXT, cc -E runs the code through the compiler's parser,
11755 # not just through cpp. "Syntax error" is here to catch this case.
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757/* end confdefs.h. */
11758#ifdef __STDC__
11759# include <limits.h>
11760#else
11761# include <assert.h>
11762#endif
11763 Syntax error
11764_ACEOF
11765if ac_fn_cxx_try_cpp "$LINENO"; then :
11766
11767else
11768 # Broken: fails on valid input.
11769continue
11770fi
12833ad8 11771rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11772
11773 # OK, works on sane cases. Now check whether nonexistent headers
11774 # can be detected and how.
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776/* end confdefs.h. */
11777#include <ac_nonexistent.h>
11778_ACEOF
11779if ac_fn_cxx_try_cpp "$LINENO"; then :
11780 # Broken: success on invalid input.
11781continue
11782else
11783 # Passes both tests.
11784ac_preproc_ok=:
11785break
11786fi
12833ad8 11787rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11788
11789done
11790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 11791rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
11792if $ac_preproc_ok; then :
11793 break
11794fi
11795
11796 done
11797 ac_cv_prog_CXXCPP=$CXXCPP
11798
11799fi
11800 CXXCPP=$ac_cv_prog_CXXCPP
11801else
11802 ac_cv_prog_CXXCPP=$CXXCPP
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11805$as_echo "$CXXCPP" >&6; }
11806ac_preproc_ok=false
11807for ac_cxx_preproc_warn_flag in '' yes
11808do
11809 # Use a header file that comes with gcc, so configuring glibc
11810 # with a fresh cross-compiler works.
11811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11812 # <limits.h> exists even on freestanding compilers.
11813 # On the NeXT, cc -E runs the code through the compiler's parser,
11814 # not just through cpp. "Syntax error" is here to catch this case.
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h. */
11817#ifdef __STDC__
11818# include <limits.h>
11819#else
11820# include <assert.h>
11821#endif
11822 Syntax error
11823_ACEOF
11824if ac_fn_cxx_try_cpp "$LINENO"; then :
11825
11826else
11827 # Broken: fails on valid input.
11828continue
11829fi
12833ad8 11830rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11831
11832 # OK, works on sane cases. Now check whether nonexistent headers
11833 # can be detected and how.
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835/* end confdefs.h. */
11836#include <ac_nonexistent.h>
11837_ACEOF
11838if ac_fn_cxx_try_cpp "$LINENO"; then :
11839 # Broken: success on invalid input.
11840continue
11841else
11842 # Passes both tests.
11843ac_preproc_ok=:
11844break
11845fi
12833ad8 11846rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11847
11848done
11849# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 11850rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
11851if $ac_preproc_ok; then :
11852
11853else
11854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
11856as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11857See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
11858fi
11859
11860ac_ext=c
11861ac_cpp='$CPP $CPPFLAGS'
11862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865
11866else
11867 _lt_caught_CXX_error=yes
11868fi
11869
9c60689e
DWT
11870ac_ext=cpp
11871ac_cpp='$CXXCPP $CPPFLAGS'
11872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 11875
47aaa820
DWT
11876archive_cmds_need_lc_CXX=no
11877allow_undefined_flag_CXX=
11878always_export_symbols_CXX=no
11879archive_expsym_cmds_CXX=
11880compiler_needs_object_CXX=no
11881export_dynamic_flag_spec_CXX=
11882hardcode_direct_CXX=no
11883hardcode_direct_absolute_CXX=no
11884hardcode_libdir_flag_spec_CXX=
11885hardcode_libdir_flag_spec_ld_CXX=
11886hardcode_libdir_separator_CXX=
11887hardcode_minus_L_CXX=no
11888hardcode_shlibpath_var_CXX=unsupported
11889hardcode_automatic_CXX=no
11890inherit_rpath_CXX=no
11891module_cmds_CXX=
11892module_expsym_cmds_CXX=
11893link_all_deplibs_CXX=unknown
11894old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
11895reload_flag_CXX=$reload_flag
11896reload_cmds_CXX=$reload_cmds
47aaa820
DWT
11897no_undefined_flag_CXX=
11898whole_archive_flag_spec_CXX=
11899enable_shared_with_static_runtimes_CXX=no
9c60689e 11900
47aaa820
DWT
11901# Source file extension for C++ test sources.
11902ac_ext=cpp
9c60689e 11903
47aaa820
DWT
11904# Object file extension for compiled C++ test sources.
11905objext=o
11906objext_CXX=$objext
9c60689e 11907
47aaa820
DWT
11908# No sense in running all these tests if we already determined that
11909# the CXX compiler isn't working. Some variables (like enable_shared)
11910# are currently assumed to apply to all compilers on this platform,
11911# and will be corrupted by setting them based on a non-working compiler.
11912if test "$_lt_caught_CXX_error" != yes; then
11913 # Code to be used in simple compile tests
11914 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11915
47aaa820
DWT
11916 # Code to be used in simple link tests
11917 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 11918
47aaa820 11919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 11920
9c60689e 11921
9c60689e 11922
9c60689e 11923
9c60689e 11924
9c60689e 11925
47aaa820
DWT
11926# If no C compiler was specified, use CC.
11927LTCC=${LTCC-"$CC"}
9c60689e 11928
47aaa820
DWT
11929# If no C compiler flags were specified, use CFLAGS.
11930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11931
47aaa820
DWT
11932# Allow CC to be a program name with arguments.
11933compiler=$CC
9c60689e 11934
9c60689e 11935
47aaa820
DWT
11936 # save warnings/boilerplate of simple test code
11937 ac_outfile=conftest.$ac_objext
11938echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11939eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11940_lt_compiler_boilerplate=`cat conftest.err`
11941$RM conftest*
9c60689e 11942
47aaa820
DWT
11943 ac_outfile=conftest.$ac_objext
11944echo "$lt_simple_link_test_code" >conftest.$ac_ext
11945eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11946_lt_linker_boilerplate=`cat conftest.err`
11947$RM -r conftest*
9c60689e 11948
9c60689e 11949
47aaa820
DWT
11950 # Allow CC to be a program name with arguments.
11951 lt_save_CC=$CC
ee134472 11952 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
11953 lt_save_LD=$LD
11954 lt_save_GCC=$GCC
11955 GCC=$GXX
11956 lt_save_with_gnu_ld=$with_gnu_ld
11957 lt_save_path_LD=$lt_cv_path_LD
11958 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11959 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 11960 else
47aaa820 11961 $as_unset lt_cv_prog_gnu_ld
9c60689e 11962 fi
47aaa820
DWT
11963 if test -n "${lt_cv_path_LDCXX+set}"; then
11964 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 11965 else
47aaa820 11966 $as_unset lt_cv_path_LD
9c60689e 11967 fi
47aaa820
DWT
11968 test -z "${LDCXX+set}" || LD=$LDCXX
11969 CC=${CXX-"c++"}
ee134472 11970 CFLAGS=$CXXFLAGS
47aaa820
DWT
11971 compiler=$CC
11972 compiler_CXX=$CC
11973 for cc_temp in $compiler""; do
11974 case $cc_temp in
11975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11977 \-*) ;;
11978 *) break;;
11979 esac
11980done
ee134472 11981cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
11982
11983
47aaa820
DWT
11984 if test -n "$compiler"; then
11985 # We don't want -fno-exception when compiling C++ code, so set the
11986 # no_builtin_flag separately
11987 if test "$GXX" = yes; then
11988 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11989 else
11990 lt_prog_compiler_no_builtin_flag_CXX=
11991 fi
9c60689e 11992
47aaa820
DWT
11993 if test "$GXX" = yes; then
11994 # Set up default GNU C++ configuration
11995
11996
11997
11998# Check whether --with-gnu-ld was given.
11999if test "${with_gnu_ld+set}" = set; then :
12000 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12001else
47aaa820 12002 with_gnu_ld=no
9c60689e
DWT
12003fi
12004
47aaa820
DWT
12005ac_prog=ld
12006if test "$GCC" = yes; then
12007 # Check if gcc -print-prog-name=ld gives a path.
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12009$as_echo_n "checking for ld used by $CC... " >&6; }
12010 case $host in
12011 *-*-mingw*)
12012 # gcc leaves a trailing carriage return which upsets mingw
12013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12014 *)
12015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12016 esac
12017 case $ac_prog in
12018 # Accept absolute paths.
12019 [\\/]* | ?:[\\/]*)
12020 re_direlt='/[^/][^/]*/\.\./'
12021 # Canonicalize the pathname of ld
12022 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12023 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12024 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12025 done
12026 test -z "$LD" && LD="$ac_prog"
12027 ;;
12028 "")
12029 # If it fails, then pretend we aren't using GCC.
12030 ac_prog=ld
12031 ;;
12032 *)
12033 # If it is relative, then search for the first ld in PATH.
12034 with_gnu_ld=unknown
12035 ;;
12036 esac
12037elif test "$with_gnu_ld" = yes; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12039$as_echo_n "checking for GNU ld... " >&6; }
12040else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12042$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 12043fi
ee134472 12044if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
12045 $as_echo_n "(cached) " >&6
12046else
47aaa820
DWT
12047 if test -z "$LD"; then
12048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12049 for ac_dir in $PATH; do
12050 IFS="$lt_save_ifs"
12051 test -z "$ac_dir" && ac_dir=.
12052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12053 lt_cv_path_LD="$ac_dir/$ac_prog"
12054 # Check to see if the program is GNU ld. I'd rather use --version,
12055 # but apparently some variants of GNU ld only accept -v.
12056 # Break only if it was the GNU/non-GNU ld that we prefer.
12057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12058 *GNU* | *'with BFD'*)
12059 test "$with_gnu_ld" != no && break
12060 ;;
12061 *)
12062 test "$with_gnu_ld" != yes && break
12063 ;;
12064 esac
12065 fi
9c60689e 12066 done
47aaa820
DWT
12067 IFS="$lt_save_ifs"
12068else
12069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
12070fi
12071fi
47aaa820
DWT
12072
12073LD="$lt_cv_path_LD"
12074if test -n "$LD"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12076$as_echo "$LD" >&6; }
9c60689e
DWT
12077else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
12080fi
12833ad8 12081test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12083$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 12084if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
12085 $as_echo_n "(cached) " >&6
12086else
12087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12088case `$LD -v 2>&1 </dev/null` in
12089*GNU* | *'with BFD'*)
12090 lt_cv_prog_gnu_ld=yes
12091 ;;
12092*)
12093 lt_cv_prog_gnu_ld=no
12094 ;;
12095esac
12096fi
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12098$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12099with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
12100
12101
9c60689e 12102
9c60689e 12103
9c60689e 12104
9c60689e 12105
9c60689e 12106
47aaa820
DWT
12107 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12108 # archiving commands below assume that GNU ld is being used.
12109 if test "$with_gnu_ld" = yes; then
ee134472
JF
12110 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12111 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 12112
47aaa820
DWT
12113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12115
47aaa820
DWT
12116 # If archive_cmds runs LD, not CC, wlarc should be empty
12117 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12118 # investigate it a little bit more. (MM)
12119 wlarc='${wl}'
9c60689e 12120
47aaa820
DWT
12121 # ancient GNU ld didn't support --whole-archive et. al.
12122 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12123 $GREP 'no-whole-archive' > /dev/null; then
12124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12125 else
12126 whole_archive_flag_spec_CXX=
12127 fi
12128 else
12129 with_gnu_ld=no
12130 wlarc=
12131
12132 # A generic and very simple default shared library creation
12133 # command for GNU C++ for the case where it uses the native
12134 # linker, instead of GNU ld. If possible, this setting should
12135 # overridden to take advantage of the native linker features on
12136 # the platform it is being used on.
12137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12138 fi
12139
12140 # Commands to make compiler produce verbose output that lists
12141 # what "hidden" libraries, object files and flags are used when
12142 # linking a shared library.
ee134472 12143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
12144
12145 else
12146 GXX=no
12147 with_gnu_ld=no
12148 wlarc=
12149 fi
12150
12151 # PORTME: fill in a description of your system's C++ link characteristics
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12153$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12154 ld_shlibs_CXX=yes
12155 case $host_os in
12156 aix3*)
12157 # FIXME: insert proper C++ library support
12158 ld_shlibs_CXX=no
12159 ;;
12160 aix[4-9]*)
12161 if test "$host_cpu" = ia64; then
12162 # On IA64, the linker does run time linking by default, so we don't
12163 # have to do anything special.
12164 aix_use_runtimelinking=no
12165 exp_sym_flag='-Bexport'
12166 no_entry_flag=""
12167 else
12168 aix_use_runtimelinking=no
12169
12170 # Test if we are trying to use run time linking or normal
12171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12172 # need to do runtime linking.
12173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12174 for ld_flag in $LDFLAGS; do
12175 case $ld_flag in
12176 *-brtl*)
12177 aix_use_runtimelinking=yes
12178 break
12179 ;;
12180 esac
12181 done
12182 ;;
12183 esac
12184
12185 exp_sym_flag='-bexport'
12186 no_entry_flag='-bnoentry'
12187 fi
12188
12189 # When large executables or shared objects are built, AIX ld can
12190 # have problems creating the table of contents. If linking a library
12191 # or program results in "error TOC overflow" add -mminimal-toc to
12192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12194
12195 archive_cmds_CXX=''
12196 hardcode_direct_CXX=yes
12197 hardcode_direct_absolute_CXX=yes
12198 hardcode_libdir_separator_CXX=':'
12199 link_all_deplibs_CXX=yes
12200 file_list_spec_CXX='${wl}-f,'
12201
12202 if test "$GXX" = yes; then
12203 case $host_os in aix4.[012]|aix4.[012].*)
12204 # We only want to do this on AIX 4.2 and lower, the check
12205 # below for broken collect2 doesn't work under 4.3+
12206 collect2name=`${CC} -print-prog-name=collect2`
12207 if test -f "$collect2name" &&
12208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12209 then
12210 # We have reworked collect2
12211 :
12212 else
12213 # We have old collect2
12214 hardcode_direct_CXX=unsupported
12215 # It fails to find uninstalled libraries when the uninstalled
12216 # path is not listed in the libpath. Setting hardcode_minus_L
12217 # to unsupported forces relinking
12218 hardcode_minus_L_CXX=yes
12219 hardcode_libdir_flag_spec_CXX='-L$libdir'
12220 hardcode_libdir_separator_CXX=
12221 fi
12222 esac
12223 shared_flag='-shared'
12224 if test "$aix_use_runtimelinking" = yes; then
12225 shared_flag="$shared_flag "'${wl}-G'
12226 fi
12227 else
12228 # not using gcc
12229 if test "$host_cpu" = ia64; then
12230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12231 # chokes on -Wl,-G. The following line is correct:
12232 shared_flag='-G'
12233 else
12234 if test "$aix_use_runtimelinking" = yes; then
12235 shared_flag='${wl}-G'
12236 else
12237 shared_flag='${wl}-bM:SRE'
12238 fi
12239 fi
12240 fi
12241
12242 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12243 # It seems that -bexpall does not export symbols beginning with
12244 # underscore (_), so it is better to generate a list of symbols to
12245 # export.
12246 always_export_symbols_CXX=yes
12247 if test "$aix_use_runtimelinking" = yes; then
12248 # Warning - without using the other runtime loading flags (-brtl),
12249 # -berok will link without error, but may produce a broken library.
12250 allow_undefined_flag_CXX='-berok'
12251 # Determine the default libpath from the value encoded in an empty
12252 # executable.
ee134472
JF
12253 if test "${lt_cv_aix_libpath+set}" = set; then
12254 aix_libpath=$lt_cv_aix_libpath
12255else
12256 if ${lt_cv_aix_libpath__CXX+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258else
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12260/* end confdefs.h. */
12261
12262int
12263main ()
12264{
12265
12266 ;
12267 return 0;
12268}
12269_ACEOF
47aaa820 12270if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 12271
ee134472
JF
12272 lt_aix_libpath_sed='
12273 /Import File Strings/,/^$/ {
12274 /^0/ {
12275 s/^0 *\([^ ]*\) *$/\1/
12276 p
12277 }
12278 }'
12279 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12280 # Check for a 64-bit object if we didn't find anything.
12281 if test -z "$lt_cv_aix_libpath__CXX"; then
12282 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12283 fi
47aaa820
DWT
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
12287 if test -z "$lt_cv_aix_libpath__CXX"; then
12288 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12289 fi
12290
12291fi
12292
12293 aix_libpath=$lt_cv_aix_libpath__CXX
12294fi
47aaa820
DWT
12295
12296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12297
ee134472 12298 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
12299 else
12300 if test "$host_cpu" = ia64; then
12301 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12302 allow_undefined_flag_CXX="-z nodefs"
12303 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"
12304 else
12305 # Determine the default libpath from the value encoded in an
12306 # empty executable.
ee134472
JF
12307 if test "${lt_cv_aix_libpath+set}" = set; then
12308 aix_libpath=$lt_cv_aix_libpath
12309else
12310 if ${lt_cv_aix_libpath__CXX+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312else
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12314/* end confdefs.h. */
12315
12316int
12317main ()
12318{
12319
12320 ;
12321 return 0;
12322}
12323_ACEOF
47aaa820 12324if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 12325
ee134472
JF
12326 lt_aix_libpath_sed='
12327 /Import File Strings/,/^$/ {
12328 /^0/ {
12329 s/^0 *\([^ ]*\) *$/\1/
12330 p
12331 }
12332 }'
12333 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12334 # Check for a 64-bit object if we didn't find anything.
12335 if test -z "$lt_cv_aix_libpath__CXX"; then
12336 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12337 fi
9c60689e 12338fi
47aaa820
DWT
12339rm -f core conftest.err conftest.$ac_objext \
12340 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
12341 if test -z "$lt_cv_aix_libpath__CXX"; then
12342 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12343 fi
12344
12345fi
12346
12347 aix_libpath=$lt_cv_aix_libpath__CXX
12348fi
9c60689e 12349
47aaa820
DWT
12350 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12351 # Warning - without using the other run time loading flags,
12352 # -berok will link without error, but may produce a broken library.
12353 no_undefined_flag_CXX=' ${wl}-bernotok'
12354 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
12355 if test "$with_gnu_ld" = yes; then
12356 # We only use this code for GNU lds that support --whole-archive.
12357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12358 else
12359 # Exported symbols can be pulled into shared objects from archives
12360 whole_archive_flag_spec_CXX='$convenience'
12361 fi
47aaa820
DWT
12362 archive_cmds_need_lc_CXX=yes
12363 # This is similar to how AIX traditionally builds its shared
12364 # libraries.
12365 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'
12366 fi
12367 fi
12368 ;;
9c60689e 12369
47aaa820
DWT
12370 beos*)
12371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12372 allow_undefined_flag_CXX=unsupported
12373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12374 # support --undefined. This deserves some investigation. FIXME
12375 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12376 else
12377 ld_shlibs_CXX=no
12378 fi
12379 ;;
9c60689e 12380
47aaa820
DWT
12381 chorus*)
12382 case $cc_basename in
12383 *)
12384 # FIXME: insert proper C++ library support
12385 ld_shlibs_CXX=no
12386 ;;
12387 esac
12388 ;;
9c60689e 12389
47aaa820 12390 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
12391 case $GXX,$cc_basename in
12392 ,cl* | no,cl*)
12393 # Native MSVC
12394 # hardcode_libdir_flag_spec is actually meaningless, as there is
12395 # no search path for DLLs.
12396 hardcode_libdir_flag_spec_CXX=' '
12397 allow_undefined_flag_CXX=unsupported
12398 always_export_symbols_CXX=yes
12399 file_list_spec_CXX='@'
12400 # Tell ltmain to make .lib files, not .a files.
12401 libext=lib
12402 # Tell ltmain to make .dll files, not .so files.
12403 shrext_cmds=".dll"
12404 # FIXME: Setting linknames here is a bad hack.
12405 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12406 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12407 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12408 else
12409 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12410 fi~
12411 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12412 linknames='
12413 # The linker will not automatically build a static lib if we build a DLL.
12414 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12415 enable_shared_with_static_runtimes_CXX=yes
12416 # Don't use ranlib
12417 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12418 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12419 lt_tool_outputfile="@TOOL_OUTPUT@"~
12420 case $lt_outputfile in
12421 *.exe|*.EXE) ;;
12422 *)
12423 lt_outputfile="$lt_outputfile.exe"
12424 lt_tool_outputfile="$lt_tool_outputfile.exe"
12425 ;;
12426 esac~
12427 func_to_tool_file "$lt_outputfile"~
12428 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12429 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12430 $RM "$lt_outputfile.manifest";
12431 fi'
12432 ;;
12433 *)
12434 # g++
12435 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12436 # as there is no search path for DLLs.
12437 hardcode_libdir_flag_spec_CXX='-L$libdir'
12438 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12439 allow_undefined_flag_CXX=unsupported
12440 always_export_symbols_CXX=no
12441 enable_shared_with_static_runtimes_CXX=yes
12442
12443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12444 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'
12445 # If the export-symbols file already is a .def file (1st line
12446 # is EXPORTS), use it as is; otherwise, prepend...
12447 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12448 cp $export_symbols $output_objdir/$soname.def;
12449 else
12450 echo EXPORTS > $output_objdir/$soname.def;
12451 cat $export_symbols >> $output_objdir/$soname.def;
12452 fi~
12453 $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'
12454 else
12455 ld_shlibs_CXX=no
12456 fi
12457 ;;
12458 esac
12459 ;;
47aaa820 12460 darwin* | rhapsody*)
9c60689e 12461
9c60689e 12462
47aaa820
DWT
12463 archive_cmds_need_lc_CXX=no
12464 hardcode_direct_CXX=no
12465 hardcode_automatic_CXX=yes
12466 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
12467 if test "$lt_cv_ld_force_load" = "yes"; then
12468 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\"`'
12469 else
12470 whole_archive_flag_spec_CXX=''
12471 fi
47aaa820
DWT
12472 link_all_deplibs_CXX=yes
12473 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12474 case $cc_basename in
12475 ifort*) _lt_dar_can_shared=yes ;;
12476 *) _lt_dar_can_shared=$GCC ;;
12477 esac
12478 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 12479 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
12480 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}"
12481 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12482 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}"
12483 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}"
12484 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12485 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}"
12486 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}"
12487 fi
9c60689e 12488
47aaa820
DWT
12489 else
12490 ld_shlibs_CXX=no
12491 fi
9c60689e 12492
47aaa820 12493 ;;
9c60689e 12494
47aaa820
DWT
12495 dgux*)
12496 case $cc_basename in
12497 ec++*)
12498 # FIXME: insert proper C++ library support
12499 ld_shlibs_CXX=no
12500 ;;
12501 ghcx*)
12502 # Green Hills C++ Compiler
12503 # FIXME: insert proper C++ library support
12504 ld_shlibs_CXX=no
12505 ;;
12506 *)
12507 # FIXME: insert proper C++ library support
12508 ld_shlibs_CXX=no
12509 ;;
12510 esac
12511 ;;
9c60689e 12512
47aaa820
DWT
12513 freebsd[12]*)
12514 # C++ shared libraries reported to be fairly broken before
12515 # switch to ELF
12516 ld_shlibs_CXX=no
12517 ;;
9c60689e 12518
47aaa820
DWT
12519 freebsd-elf*)
12520 archive_cmds_need_lc_CXX=no
12521 ;;
9c60689e 12522
47aaa820
DWT
12523 freebsd* | dragonfly*)
12524 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12525 # conventions
12526 ld_shlibs_CXX=yes
12527 ;;
9c60689e 12528
47aaa820
DWT
12529 gnu*)
12530 ;;
9c60689e 12531
ee134472
JF
12532 haiku*)
12533 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12534 link_all_deplibs_CXX=yes
12535 ;;
12536
47aaa820
DWT
12537 hpux9*)
12538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12539 hardcode_libdir_separator_CXX=:
12540 export_dynamic_flag_spec_CXX='${wl}-E'
12541 hardcode_direct_CXX=yes
12542 hardcode_minus_L_CXX=yes # Not in the search PATH,
12543 # but as the default
12544 # location of the library.
9c60689e 12545
47aaa820
DWT
12546 case $cc_basename in
12547 CC*)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551 aCC*)
12552 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'
12553 # Commands to make compiler produce verbose output that lists
12554 # what "hidden" libraries, object files and flags are used when
12555 # linking a shared library.
12556 #
12557 # There doesn't appear to be a way to prevent this compiler from
12558 # explicitly linking system object files so we need to strip them
12559 # from the output so that they don't get included in the library
12560 # dependencies.
ee134472 12561 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
12562 ;;
12563 *)
12564 if test "$GXX" = yes; then
ee134472 12565 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
12566 else
12567 # FIXME: insert proper C++ library support
12568 ld_shlibs_CXX=no
12569 fi
12570 ;;
12571 esac
12572 ;;
9c60689e 12573
47aaa820
DWT
12574 hpux10*|hpux11*)
12575 if test $with_gnu_ld = no; then
12576 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12577 hardcode_libdir_separator_CXX=:
9c60689e 12578
47aaa820
DWT
12579 case $host_cpu in
12580 hppa*64*|ia64*)
12581 ;;
12582 *)
12583 export_dynamic_flag_spec_CXX='${wl}-E'
12584 ;;
12585 esac
12586 fi
12587 case $host_cpu in
12588 hppa*64*|ia64*)
12589 hardcode_direct_CXX=no
12590 hardcode_shlibpath_var_CXX=no
12591 ;;
12592 *)
12593 hardcode_direct_CXX=yes
12594 hardcode_direct_absolute_CXX=yes
12595 hardcode_minus_L_CXX=yes # Not in the search PATH,
12596 # but as the default
12597 # location of the library.
12598 ;;
12599 esac
9c60689e 12600
47aaa820
DWT
12601 case $cc_basename in
12602 CC*)
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12605 ;;
12606 aCC*)
12607 case $host_cpu in
12608 hppa*64*)
12609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12610 ;;
12611 ia64*)
12612 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12613 ;;
12614 *)
12615 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12616 ;;
12617 esac
12618 # Commands to make compiler produce verbose output that lists
12619 # what "hidden" libraries, object files and flags are used when
12620 # linking a shared library.
12621 #
12622 # There doesn't appear to be a way to prevent this compiler from
12623 # explicitly linking system object files so we need to strip them
12624 # from the output so that they don't get included in the library
12625 # dependencies.
ee134472 12626 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
12627 ;;
12628 *)
12629 if test "$GXX" = yes; then
12630 if test $with_gnu_ld = no; then
12631 case $host_cpu in
12632 hppa*64*)
12633 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12634 ;;
12635 ia64*)
ee134472 12636 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
12637 ;;
12638 *)
ee134472 12639 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
12640 ;;
12641 esac
12642 fi
12643 else
12644 # FIXME: insert proper C++ library support
12645 ld_shlibs_CXX=no
12646 fi
12647 ;;
12648 esac
12649 ;;
9c60689e 12650
47aaa820
DWT
12651 interix[3-9]*)
12652 hardcode_direct_CXX=no
12653 hardcode_shlibpath_var_CXX=no
12654 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12655 export_dynamic_flag_spec_CXX='${wl}-E'
12656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12657 # Instead, shared libraries are loaded at an image base (0x10000000 by
12658 # default) and relocated if they conflict, which is a slow very memory
12659 # consuming and fragmenting process. To avoid this, we pick a random,
12660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12662 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'
12663 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'
12664 ;;
12665 irix5* | irix6*)
12666 case $cc_basename in
12667 CC*)
12668 # SGI C++
ee134472 12669 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 12670
47aaa820
DWT
12671 # Archives containing C++ object files must be created using
12672 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12673 # necessary to make sure instantiated templates are included
12674 # in the archive.
12675 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12676 ;;
12677 *)
12678 if test "$GXX" = yes; then
12679 if test "$with_gnu_ld" = no; then
ee134472 12680 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 12681 else
ee134472 12682 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
12683 fi
12684 fi
12685 link_all_deplibs_CXX=yes
12686 ;;
12687 esac
12688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12689 hardcode_libdir_separator_CXX=:
12690 inherit_rpath_CXX=yes
12691 ;;
9c60689e 12692
1504c9b8 12693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
12694 case $cc_basename in
12695 KCC*)
12696 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12697
47aaa820
DWT
12698 # KCC will only create a shared library if the output file
12699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12700 # to its proper name (with version) after linking.
12701 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'
12702 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'
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12706 #
12707 # There doesn't appear to be a way to prevent this compiler from
12708 # explicitly linking system object files so we need to strip them
12709 # from the output so that they don't get included in the library
12710 # dependencies.
ee134472 12711 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 12712
47aaa820
DWT
12713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12715
47aaa820
DWT
12716 # Archives containing C++ object files must be created using
12717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12719 ;;
12720 icpc* | ecpc* )
12721 # Intel C++
12722 with_gnu_ld=yes
12723 # version 8.0 and above of icpc choke on multiply defined symbols
12724 # if we add $predep_objects and $postdep_objects, however 7.1 and
12725 # earlier do not add the objects themselves.
12726 case `$CC -V 2>&1` in
12727 *"Version 7."*)
12728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12729 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'
12730 ;;
12731 *) # Version 8.0 or newer
12732 tmp_idyn=
12733 case $host_cpu in
12734 ia64*) tmp_idyn=' -i_dynamic';;
12735 esac
12736 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 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'
12738 ;;
12739 esac
12740 archive_cmds_need_lc_CXX=no
12741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12743 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12744 ;;
12745 pgCC* | pgcpp*)
12746 # Portland Group C++ compiler
12747 case `$CC -V` in
ee134472 12748 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
12749 prelink_cmds_CXX='tpldir=Template.dir~
12750 rm -rf $tpldir~
12751 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 12752 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
12753 old_archive_cmds_CXX='tpldir=Template.dir~
12754 rm -rf $tpldir~
12755 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 12756 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
12757 $RANLIB $oldlib'
12758 archive_cmds_CXX='tpldir=Template.dir~
12759 rm -rf $tpldir~
12760 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 12761 $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
12762 archive_expsym_cmds_CXX='tpldir=Template.dir~
12763 rm -rf $tpldir~
12764 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 12765 $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 12766 ;;
ee134472 12767 *) # Version 6 and above use weak symbols
47aaa820
DWT
12768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12769 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'
12770 ;;
12771 esac
9c60689e 12772
47aaa820
DWT
12773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 12775 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
12776 ;;
12777 cxx*)
12778 # Compaq C++
12779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12780 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 12781
47aaa820
DWT
12782 runpath_var=LD_RUN_PATH
12783 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12784 hardcode_libdir_separator_CXX=:
9c60689e 12785
47aaa820
DWT
12786 # Commands to make compiler produce verbose output that lists
12787 # what "hidden" libraries, object files and flags are used when
12788 # linking a shared library.
12789 #
12790 # There doesn't appear to be a way to prevent this compiler from
12791 # explicitly linking system object files so we need to strip them
12792 # from the output so that they don't get included in the library
12793 # dependencies.
ee134472 12794 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 12795 ;;
ee134472 12796 xl* | mpixl* | bgxl*)
47aaa820
DWT
12797 # IBM XL 8.0 on PPC, with GNU ld
12798 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12800 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 if test "x$supports_anon_versioning" = xyes; then
12802 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12804 echo "local: *; };" >> $output_objdir/$libname.ver~
12805 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12806 fi
12807 ;;
12808 *)
12809 case `$CC -V 2>&1 | sed 5q` in
12810 *Sun\ C*)
12811 # Sun C++ 5.9
12812 no_undefined_flag_CXX=' -zdefs'
12813 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12814 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'
12815 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 12816 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 12817 compiler_needs_object_CXX=yes
9c60689e 12818
47aaa820
DWT
12819 # Not sure whether something based on
12820 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12821 # would be better.
ee134472 12822 output_verbose_link_cmd='func_echo_all'
9c60689e 12823
47aaa820
DWT
12824 # Archives containing C++ object files must be created using
12825 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12826 # necessary to make sure instantiated templates are included
12827 # in the archive.
12828 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12829 ;;
12830 esac
12831 ;;
12832 esac
12833 ;;
9c60689e 12834
47aaa820
DWT
12835 lynxos*)
12836 # FIXME: insert proper C++ library support
12837 ld_shlibs_CXX=no
12838 ;;
9c60689e 12839
47aaa820
DWT
12840 m88k*)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
9c60689e 12844
47aaa820
DWT
12845 mvs*)
12846 case $cc_basename in
12847 cxx*)
12848 # FIXME: insert proper C++ library support
12849 ld_shlibs_CXX=no
12850 ;;
12851 *)
12852 # FIXME: insert proper C++ library support
12853 ld_shlibs_CXX=no
12854 ;;
12855 esac
12856 ;;
9c60689e 12857
47aaa820
DWT
12858 netbsd*)
12859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12860 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12861 wlarc=
12862 hardcode_libdir_flag_spec_CXX='-R$libdir'
12863 hardcode_direct_CXX=yes
12864 hardcode_shlibpath_var_CXX=no
12865 fi
12866 # Workaround some broken pre-1.5 toolchains
12867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 12868 ;;
47aaa820
DWT
12869
12870 *nto* | *qnx*)
12871 ld_shlibs_CXX=yes
9c60689e 12872 ;;
9c60689e 12873
47aaa820
DWT
12874 openbsd2*)
12875 # C++ shared libraries are fairly broken
12876 ld_shlibs_CXX=no
12877 ;;
9c60689e 12878
47aaa820
DWT
12879 openbsd*)
12880 if test -f /usr/libexec/ld.so; then
12881 hardcode_direct_CXX=yes
12882 hardcode_shlibpath_var_CXX=no
12883 hardcode_direct_absolute_CXX=yes
12884 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12887 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12888 export_dynamic_flag_spec_CXX='${wl}-E'
12889 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12890 fi
ee134472 12891 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
12892 else
12893 ld_shlibs_CXX=no
12894 fi
12895 ;;
9c60689e 12896
47aaa820
DWT
12897 osf3* | osf4* | osf5*)
12898 case $cc_basename in
12899 KCC*)
12900 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12901
47aaa820
DWT
12902 # KCC will only create a shared library if the output file
12903 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12904 # to its proper name (with version) after linking.
12905 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 12906
47aaa820
DWT
12907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12908 hardcode_libdir_separator_CXX=:
9c60689e 12909
47aaa820
DWT
12910 # Archives containing C++ object files must be created using
12911 # the KAI C++ compiler.
12912 case $host in
12913 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12914 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12915 esac
12916 ;;
12917 RCC*)
12918 # Rational C++ 2.4.1
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 cxx*)
12923 case $host in
12924 osf3*)
12925 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 12926 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
12927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12928 ;;
12929 *)
12930 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 12931 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
12932 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12933 echo "-hidden">> $lib.exp~
ee134472 12934 $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
12935 $RM $lib.exp'
12936 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12937 ;;
12938 esac
9c60689e 12939
47aaa820 12940 hardcode_libdir_separator_CXX=:
9c60689e 12941
47aaa820
DWT
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12945 #
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12949 # dependencies.
ee134472 12950 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
12951 ;;
12952 *)
12953 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12954 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12955 case $host in
12956 osf3*)
ee134472 12957 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
12958 ;;
12959 *)
ee134472 12960 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
12961 ;;
12962 esac
9c60689e 12963
47aaa820
DWT
12964 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12965 hardcode_libdir_separator_CXX=:
9c60689e 12966
47aaa820
DWT
12967 # Commands to make compiler produce verbose output that lists
12968 # what "hidden" libraries, object files and flags are used when
12969 # linking a shared library.
ee134472 12970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 12971
47aaa820
DWT
12972 else
12973 # FIXME: insert proper C++ library support
12974 ld_shlibs_CXX=no
12975 fi
12976 ;;
12977 esac
12978 ;;
9c60689e 12979
47aaa820 12980 psos*)
9c60689e
DWT
12981 # FIXME: insert proper C++ library support
12982 ld_shlibs_CXX=no
12983 ;;
9c60689e 12984
47aaa820
DWT
12985 sunos4*)
12986 case $cc_basename in
12987 CC*)
12988 # Sun C++ 4.x
12989 # FIXME: insert proper C++ library support
12990 ld_shlibs_CXX=no
9c60689e 12991 ;;
47aaa820
DWT
12992 lcc*)
12993 # Lucid
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 *)
12998 # FIXME: insert proper C++ library support
12999 ld_shlibs_CXX=no
13000 ;;
13001 esac
13002 ;;
9c60689e 13003
47aaa820
DWT
13004 solaris*)
13005 case $cc_basename in
ee134472 13006 CC* | sunCC*)
47aaa820
DWT
13007 # Sun C++ 4.2, 5.x and Centerline C++
13008 archive_cmds_need_lc_CXX=yes
13009 no_undefined_flag_CXX=' -zdefs'
13010 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13011 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13012 $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 13013
47aaa820
DWT
13014 hardcode_libdir_flag_spec_CXX='-R$libdir'
13015 hardcode_shlibpath_var_CXX=no
13016 case $host_os in
13017 solaris2.[0-5] | solaris2.[0-5].*) ;;
13018 *)
13019 # The compiler driver will combine and reorder linker options,
13020 # but understands `-z linker_flag'.
13021 # Supported since Solaris 2.6 (maybe 2.5.1?)
13022 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13023 ;;
13024 esac
13025 link_all_deplibs_CXX=yes
9c60689e 13026
ee134472 13027 output_verbose_link_cmd='func_echo_all'
9c60689e 13028
47aaa820
DWT
13029 # Archives containing C++ object files must be created using
13030 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13031 # necessary to make sure instantiated templates are included
13032 # in the archive.
13033 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13034 ;;
13035 gcx*)
13036 # Green Hills C++ Compiler
13037 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 13038
47aaa820
DWT
13039 # The C++ compiler must be used to create the archive.
13040 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13041 ;;
13042 *)
13043 # GNU C++ compiler with Solaris linker
13044 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13045 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13046 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 13047 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 13048 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 13049 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13050
47aaa820
DWT
13051 # Commands to make compiler produce verbose output that lists
13052 # what "hidden" libraries, object files and flags are used when
13053 # linking a shared library.
ee134472 13054 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13055 else
13056 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13057 # platform.
13058 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13059 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13060 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13061
47aaa820
DWT
13062 # Commands to make compiler produce verbose output that lists
13063 # what "hidden" libraries, object files and flags are used when
13064 # linking a shared library.
ee134472 13065 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 13066 fi
9c60689e 13067
47aaa820
DWT
13068 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13069 case $host_os in
13070 solaris2.[0-5] | solaris2.[0-5].*) ;;
13071 *)
13072 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13073 ;;
13074 esac
13075 fi
13076 ;;
13077 esac
13078 ;;
9c60689e 13079
47aaa820
DWT
13080 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13081 no_undefined_flag_CXX='${wl}-z,text'
13082 archive_cmds_need_lc_CXX=no
13083 hardcode_shlibpath_var_CXX=no
13084 runpath_var='LD_RUN_PATH'
9c60689e 13085
47aaa820
DWT
13086 case $cc_basename in
13087 CC*)
13088 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13089 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 ;;
13091 *)
13092 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 ;;
13095 esac
13096 ;;
9c60689e 13097
47aaa820
DWT
13098 sysv5* | sco3.2v5* | sco5v6*)
13099 # Note: We can NOT use -z defs as we might desire, because we do not
13100 # link with -lc, and that would cause any symbols used from libc to
13101 # always be unresolved, which means just about no library would
13102 # ever link correctly. If we're not using GNU ld we use -z text
13103 # though, which does catch some bad symbols but isn't as heavy-handed
13104 # as -z defs.
13105 no_undefined_flag_CXX='${wl}-z,text'
13106 allow_undefined_flag_CXX='${wl}-z,nodefs'
13107 archive_cmds_need_lc_CXX=no
13108 hardcode_shlibpath_var_CXX=no
13109 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13110 hardcode_libdir_separator_CXX=':'
13111 link_all_deplibs_CXX=yes
13112 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13113 runpath_var='LD_RUN_PATH'
9c60689e 13114
47aaa820
DWT
13115 case $cc_basename in
13116 CC*)
13117 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13118 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
13119 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13120 '"$old_archive_cmds_CXX"
13121 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13122 '"$reload_cmds_CXX"
47aaa820
DWT
13123 ;;
13124 *)
13125 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13127 ;;
13128 esac
13129 ;;
9c60689e 13130
47aaa820 13131 tandem*)
9c60689e 13132 case $cc_basename in
47aaa820
DWT
13133 NCC*)
13134 # NonStop-UX NCC 3.20
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13137 ;;
9c60689e 13138 *)
47aaa820
DWT
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13141 ;;
9c60689e
DWT
13142 esac
13143 ;;
13144
47aaa820
DWT
13145 vxworks*)
13146 # FIXME: insert proper C++ library support
13147 ld_shlibs_CXX=no
13148 ;;
9c60689e 13149
47aaa820
DWT
13150 *)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
9c60689e 13153 ;;
47aaa820 13154 esac
9c60689e 13155
47aaa820
DWT
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13157$as_echo "$ld_shlibs_CXX" >&6; }
13158 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 13159
47aaa820
DWT
13160 GCC_CXX="$GXX"
13161 LD_CXX="$LD"
9c60689e 13162
47aaa820
DWT
13163 ## CAVEAT EMPTOR:
13164 ## There is no encapsulation within the following macros, do not change
13165 ## the running order or otherwise move them around unless you know exactly
13166 ## what you are doing...
13167 # Dependencies to place before and after the object being linked:
13168predep_objects_CXX=
13169postdep_objects_CXX=
13170predeps_CXX=
13171postdeps_CXX=
13172compiler_lib_search_path_CXX=
9c60689e 13173
47aaa820
DWT
13174cat > conftest.$ac_ext <<_LT_EOF
13175class Foo
13176{
13177public:
13178 Foo (void) { a = 0; }
13179private:
13180 int a;
13181};
13182_LT_EOF
9c60689e 13183
ee134472
JF
13184
13185_lt_libdeps_save_CFLAGS=$CFLAGS
13186case "$CC $CFLAGS " in #(
13187*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13188*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13189esac
13190
47aaa820
DWT
13191if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13192 (eval $ac_compile) 2>&5
13193 ac_status=$?
13194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; }; then
13196 # Parse the compiler output and extract the necessary
13197 # objects, libraries and library flags.
9c60689e 13198
47aaa820
DWT
13199 # Sentinel used to keep track of whether or not we are before
13200 # the conftest object file.
13201 pre_test_object_deps_done=no
9c60689e 13202
47aaa820 13203 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 13204 case ${prev}${p} in
9c60689e 13205
47aaa820
DWT
13206 -L* | -R* | -l*)
13207 # Some compilers place space between "-{L,R}" and the path.
13208 # Remove the space.
13209 if test $p = "-L" ||
13210 test $p = "-R"; then
13211 prev=$p
13212 continue
47aaa820 13213 fi
9c60689e 13214
ee134472
JF
13215 # Expand the sysroot to ease extracting the directories later.
13216 if test -z "$prev"; then
13217 case $p in
13218 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13219 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13220 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13221 esac
13222 fi
13223 case $p in
13224 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13225 esac
47aaa820 13226 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
13227 case ${prev} in
13228 -L | -R)
47aaa820
DWT
13229 # Internal compiler library paths should come after those
13230 # provided the user. The postdeps already come after the
13231 # user supplied libs so there is no need to process them.
13232 if test -z "$compiler_lib_search_path_CXX"; then
13233 compiler_lib_search_path_CXX="${prev}${p}"
13234 else
13235 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13236 fi
13237 ;;
13238 # The "-l" case would never come before the object being
13239 # linked, so don't bother handling this case.
13240 esac
13241 else
13242 if test -z "$postdeps_CXX"; then
13243 postdeps_CXX="${prev}${p}"
13244 else
13245 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13246 fi
13247 fi
ee134472 13248 prev=
47aaa820 13249 ;;
9c60689e 13250
ee134472 13251 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
13252 *.$objext)
13253 # This assumes that the test object file only shows up
13254 # once in the compiler output.
13255 if test "$p" = "conftest.$objext"; then
13256 pre_test_object_deps_done=yes
13257 continue
13258 fi
9c60689e 13259
47aaa820
DWT
13260 if test "$pre_test_object_deps_done" = no; then
13261 if test -z "$predep_objects_CXX"; then
13262 predep_objects_CXX="$p"
13263 else
13264 predep_objects_CXX="$predep_objects_CXX $p"
13265 fi
13266 else
13267 if test -z "$postdep_objects_CXX"; then
13268 postdep_objects_CXX="$p"
13269 else
13270 postdep_objects_CXX="$postdep_objects_CXX $p"
13271 fi
13272 fi
13273 ;;
9c60689e 13274
47aaa820 13275 *) ;; # Ignore the rest.
9c60689e 13276
47aaa820
DWT
13277 esac
13278 done
9c60689e 13279
47aaa820
DWT
13280 # Clean up.
13281 rm -f a.out a.exe
13282else
13283 echo "libtool.m4: error: problem compiling CXX test program"
13284fi
9c60689e 13285
47aaa820 13286$RM -f confest.$objext
ee134472 13287CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 13288
47aaa820
DWT
13289# PORTME: override above test on systems where it is broken
13290case $host_os in
13291interix[3-9]*)
13292 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13293 # hack all around it, let's just trust "g++" to DTRT.
13294 predep_objects_CXX=
13295 postdep_objects_CXX=
13296 postdeps_CXX=
13297 ;;
9c60689e 13298
47aaa820
DWT
13299linux*)
13300 case `$CC -V 2>&1 | sed 5q` in
13301 *Sun\ C*)
13302 # Sun C++ 5.9
9c60689e 13303
47aaa820
DWT
13304 # The more standards-conforming stlport4 library is
13305 # incompatible with the Cstd library. Avoid specifying
13306 # it if it's in CXXFLAGS. Ignore libCrun as
13307 # -library=stlport4 depends on it.
13308 case " $CXX $CXXFLAGS " in
13309 *" -library=stlport4 "*)
13310 solaris_use_stlport4=yes
13311 ;;
13312 esac
9c60689e 13313
47aaa820
DWT
13314 if test "$solaris_use_stlport4" != yes; then
13315 postdeps_CXX='-library=Cstd -library=Crun'
13316 fi
13317 ;;
13318 esac
13319 ;;
9c60689e 13320
47aaa820
DWT
13321solaris*)
13322 case $cc_basename in
ee134472 13323 CC* | sunCC*)
47aaa820
DWT
13324 # The more standards-conforming stlport4 library is
13325 # incompatible with the Cstd library. Avoid specifying
13326 # it if it's in CXXFLAGS. Ignore libCrun as
13327 # -library=stlport4 depends on it.
13328 case " $CXX $CXXFLAGS " in
13329 *" -library=stlport4 "*)
13330 solaris_use_stlport4=yes
13331 ;;
13332 esac
9c60689e 13333
47aaa820
DWT
13334 # Adding this requires a known-good setup of shared libraries for
13335 # Sun compiler versions before 5.6, else PIC objects from an old
13336 # archive will be linked into the output, leading to subtle bugs.
13337 if test "$solaris_use_stlport4" != yes; then
13338 postdeps_CXX='-library=Cstd -library=Crun'
13339 fi
13340 ;;
13341 esac
13342 ;;
13343esac
9c60689e 13344
9c60689e 13345
47aaa820
DWT
13346case " $postdeps_CXX " in
13347*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13348esac
13349 compiler_lib_search_dirs_CXX=
13350if test -n "${compiler_lib_search_path_CXX}"; then
13351 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13352fi
9c60689e 13353
9c60689e 13354
9c60689e 13355
9c60689e 13356
9c60689e 13357
9c60689e 13358
9c60689e 13359
9c60689e 13360
9c60689e 13361
9c60689e 13362
9c60689e 13363
9c60689e 13364
9c60689e 13365
9c60689e 13366
9c60689e 13367
9c60689e 13368
9c60689e 13369
9c60689e 13370
9c60689e 13371
9c60689e 13372
9c60689e 13373
9c60689e 13374
9c60689e 13375
9c60689e 13376
9c60689e 13377
9c60689e 13378
9c60689e 13379
9c60689e 13380
9c60689e 13381
9c60689e 13382
9c60689e 13383
47aaa820
DWT
13384 lt_prog_compiler_wl_CXX=
13385lt_prog_compiler_pic_CXX=
13386lt_prog_compiler_static_CXX=
9c60689e 13387
9c60689e
DWT
13388
13389 # C++ specific cases for pic, static, wl, etc.
13390 if test "$GXX" = yes; then
13391 lt_prog_compiler_wl_CXX='-Wl,'
13392 lt_prog_compiler_static_CXX='-static'
13393
13394 case $host_os in
13395 aix*)
13396 # All AIX code is PIC.
13397 if test "$host_cpu" = ia64; then
13398 # AIX 5 now supports IA64 processor
13399 lt_prog_compiler_static_CXX='-Bstatic'
13400 fi
13401 ;;
13402
13403 amigaos*)
13404 case $host_cpu in
13405 powerpc)
13406 # see comment about AmigaOS4 .so support
13407 lt_prog_compiler_pic_CXX='-fPIC'
13408 ;;
13409 m68k)
13410 # FIXME: we need at least 68020 code to build shared libraries, but
13411 # adding the `-m68020' flag to GCC prevents building anything better,
13412 # like `-m68040'.
13413 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13414 ;;
13415 esac
13416 ;;
13417
13418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13419 # PIC is the default for these OSes.
13420 ;;
13421 mingw* | cygwin* | os2* | pw32* | cegcc*)
13422 # This hack is so that the source file can tell whether it is being
13423 # built for inclusion in a dll (and should export symbols for example).
13424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13425 # (--disable-auto-import) libraries
13426 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13427 ;;
13428 darwin* | rhapsody*)
13429 # PIC is the default on this platform
13430 # Common symbols not allowed in MH_DYLIB files
13431 lt_prog_compiler_pic_CXX='-fno-common'
13432 ;;
13433 *djgpp*)
13434 # DJGPP does not support shared libraries at all
13435 lt_prog_compiler_pic_CXX=
13436 ;;
ee134472
JF
13437 haiku*)
13438 # PIC is the default for Haiku.
13439 # The "-static" flag exists, but is broken.
13440 lt_prog_compiler_static_CXX=
13441 ;;
9c60689e
DWT
13442 interix[3-9]*)
13443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13444 # Instead, we relocate shared libraries at runtime.
13445 ;;
13446 sysv4*MP*)
13447 if test -d /usr/nec; then
13448 lt_prog_compiler_pic_CXX=-Kconform_pic
13449 fi
13450 ;;
13451 hpux*)
13452 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13453 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13454 # sets the default TLS model and affects inlining.
13455 case $host_cpu in
13456 hppa*64*)
13457 ;;
13458 *)
13459 lt_prog_compiler_pic_CXX='-fPIC'
13460 ;;
13461 esac
13462 ;;
13463 *qnx* | *nto*)
13464 # QNX uses GNU C++, but need to define -shared option too, otherwise
13465 # it will coredump.
13466 lt_prog_compiler_pic_CXX='-fPIC -shared'
13467 ;;
13468 *)
13469 lt_prog_compiler_pic_CXX='-fPIC'
13470 ;;
13471 esac
13472 else
13473 case $host_os in
13474 aix[4-9]*)
13475 # All AIX code is PIC.
13476 if test "$host_cpu" = ia64; then
13477 # AIX 5 now supports IA64 processor
13478 lt_prog_compiler_static_CXX='-Bstatic'
13479 else
13480 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13481 fi
13482 ;;
13483 chorus*)
13484 case $cc_basename in
13485 cxch68*)
13486 # Green Hills C++ Compiler
13487 # _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"
13488 ;;
13489 esac
13490 ;;
ee134472
JF
13491 mingw* | cygwin* | os2* | pw32* | cegcc*)
13492 # This hack is so that the source file can tell whether it is being
13493 # built for inclusion in a dll (and should export symbols for example).
13494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13495 ;;
9c60689e
DWT
13496 dgux*)
13497 case $cc_basename in
13498 ec++*)
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 ;;
13501 ghcx*)
13502 # Green Hills C++ Compiler
13503 lt_prog_compiler_pic_CXX='-pic'
13504 ;;
13505 *)
13506 ;;
13507 esac
13508 ;;
13509 freebsd* | dragonfly*)
13510 # FreeBSD uses GNU C++
13511 ;;
13512 hpux9* | hpux10* | hpux11*)
13513 case $cc_basename in
13514 CC*)
13515 lt_prog_compiler_wl_CXX='-Wl,'
13516 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13517 if test "$host_cpu" != ia64; then
13518 lt_prog_compiler_pic_CXX='+Z'
13519 fi
13520 ;;
13521 aCC*)
13522 lt_prog_compiler_wl_CXX='-Wl,'
13523 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13524 case $host_cpu in
13525 hppa*64*|ia64*)
13526 # +Z the default
13527 ;;
13528 *)
13529 lt_prog_compiler_pic_CXX='+Z'
13530 ;;
13531 esac
13532 ;;
13533 *)
13534 ;;
13535 esac
13536 ;;
13537 interix*)
13538 # This is c89, which is MS Visual C++ (no shared libs)
13539 # Anyone wants to do a port?
13540 ;;
13541 irix5* | irix6* | nonstopux*)
13542 case $cc_basename in
13543 CC*)
13544 lt_prog_compiler_wl_CXX='-Wl,'
13545 lt_prog_compiler_static_CXX='-non_shared'
13546 # CC pic flag -KPIC is the default.
13547 ;;
13548 *)
13549 ;;
13550 esac
13551 ;;
1504c9b8 13552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
13553 case $cc_basename in
13554 KCC*)
13555 # KAI C++ Compiler
13556 lt_prog_compiler_wl_CXX='--backend -Wl,'
13557 lt_prog_compiler_pic_CXX='-fPIC'
13558 ;;
13559 ecpc* )
13560 # old Intel C++ for x86_64 which still supported -KPIC.
13561 lt_prog_compiler_wl_CXX='-Wl,'
13562 lt_prog_compiler_pic_CXX='-KPIC'
13563 lt_prog_compiler_static_CXX='-static'
13564 ;;
13565 icpc* )
13566 # Intel C++, used to be incompatible with GCC.
13567 # ICC 10 doesn't accept -KPIC any more.
13568 lt_prog_compiler_wl_CXX='-Wl,'
13569 lt_prog_compiler_pic_CXX='-fPIC'
13570 lt_prog_compiler_static_CXX='-static'
13571 ;;
13572 pgCC* | pgcpp*)
13573 # Portland Group C++ compiler
13574 lt_prog_compiler_wl_CXX='-Wl,'
13575 lt_prog_compiler_pic_CXX='-fpic'
13576 lt_prog_compiler_static_CXX='-Bstatic'
13577 ;;
13578 cxx*)
13579 # Compaq C++
13580 # Make sure the PIC flag is empty. It appears that all Alpha
13581 # Linux and Compaq Tru64 Unix objects are PIC.
13582 lt_prog_compiler_pic_CXX=
13583 lt_prog_compiler_static_CXX='-non_shared'
13584 ;;
ee134472
JF
13585 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13586 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
13587 lt_prog_compiler_wl_CXX='-Wl,'
13588 lt_prog_compiler_pic_CXX='-qpic'
13589 lt_prog_compiler_static_CXX='-qstaticlink'
13590 ;;
13591 *)
13592 case `$CC -V 2>&1 | sed 5q` in
13593 *Sun\ C*)
13594 # Sun C++ 5.9
13595 lt_prog_compiler_pic_CXX='-KPIC'
13596 lt_prog_compiler_static_CXX='-Bstatic'
13597 lt_prog_compiler_wl_CXX='-Qoption ld '
13598 ;;
13599 esac
13600 ;;
13601 esac
13602 ;;
13603 lynxos*)
13604 ;;
13605 m88k*)
13606 ;;
13607 mvs*)
13608 case $cc_basename in
13609 cxx*)
13610 lt_prog_compiler_pic_CXX='-W c,exportall'
13611 ;;
13612 *)
13613 ;;
13614 esac
13615 ;;
1504c9b8 13616 netbsd* | netbsdelf*-gnu)
9c60689e
DWT
13617 ;;
13618 *qnx* | *nto*)
13619 # QNX uses GNU C++, but need to define -shared option too, otherwise
13620 # it will coredump.
13621 lt_prog_compiler_pic_CXX='-fPIC -shared'
13622 ;;
13623 osf3* | osf4* | osf5*)
13624 case $cc_basename in
13625 KCC*)
13626 lt_prog_compiler_wl_CXX='--backend -Wl,'
13627 ;;
13628 RCC*)
13629 # Rational C++ 2.4.1
13630 lt_prog_compiler_pic_CXX='-pic'
13631 ;;
13632 cxx*)
13633 # Digital/Compaq C++
13634 lt_prog_compiler_wl_CXX='-Wl,'
13635 # Make sure the PIC flag is empty. It appears that all Alpha
13636 # Linux and Compaq Tru64 Unix objects are PIC.
13637 lt_prog_compiler_pic_CXX=
13638 lt_prog_compiler_static_CXX='-non_shared'
13639 ;;
13640 *)
13641 ;;
13642 esac
13643 ;;
13644 psos*)
13645 ;;
13646 solaris*)
13647 case $cc_basename in
ee134472 13648 CC* | sunCC*)
9c60689e
DWT
13649 # Sun C++ 4.2, 5.x and Centerline C++
13650 lt_prog_compiler_pic_CXX='-KPIC'
13651 lt_prog_compiler_static_CXX='-Bstatic'
13652 lt_prog_compiler_wl_CXX='-Qoption ld '
13653 ;;
13654 gcx*)
13655 # Green Hills C++ Compiler
13656 lt_prog_compiler_pic_CXX='-PIC'
13657 ;;
13658 *)
13659 ;;
13660 esac
13661 ;;
13662 sunos4*)
13663 case $cc_basename in
13664 CC*)
13665 # Sun C++ 4.x
13666 lt_prog_compiler_pic_CXX='-pic'
13667 lt_prog_compiler_static_CXX='-Bstatic'
13668 ;;
13669 lcc*)
13670 # Lucid
13671 lt_prog_compiler_pic_CXX='-pic'
13672 ;;
13673 *)
13674 ;;
13675 esac
13676 ;;
13677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13678 case $cc_basename in
13679 CC*)
13680 lt_prog_compiler_wl_CXX='-Wl,'
13681 lt_prog_compiler_pic_CXX='-KPIC'
13682 lt_prog_compiler_static_CXX='-Bstatic'
13683 ;;
13684 esac
13685 ;;
13686 tandem*)
13687 case $cc_basename in
13688 NCC*)
13689 # NonStop-UX NCC 3.20
13690 lt_prog_compiler_pic_CXX='-KPIC'
13691 ;;
13692 *)
13693 ;;
13694 esac
13695 ;;
13696 vxworks*)
13697 ;;
13698 *)
13699 lt_prog_compiler_can_build_shared_CXX=no
13700 ;;
13701 esac
13702 fi
13703
13704case $host_os in
13705 # For platforms which do not support PIC, -DPIC is meaningless:
13706 *djgpp*)
13707 lt_prog_compiler_pic_CXX=
13708 ;;
13709 *)
13710 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13711 ;;
13712esac
9c60689e 13713
ee134472
JF
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13715$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13716if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718else
13719 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13720fi
13721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13722$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13723lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
13724
13725#
13726# Check to make sure the PIC flag actually works.
13727#
13728if test -n "$lt_prog_compiler_pic_CXX"; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13730$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 13731if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
13732 $as_echo_n "(cached) " >&6
13733else
13734 lt_cv_prog_compiler_pic_works_CXX=no
13735 ac_outfile=conftest.$ac_objext
13736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13737 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13738 # Insert the option either (1) after the last *FLAGS variable, or
13739 # (2) before a word containing "conftest.", or (3) at the end.
13740 # Note that $ac_compile itself does not contain backslashes and begins
13741 # with a dollar sign (not a hyphen), so the echo should work correctly.
13742 # The option is referenced via a variable to avoid confusing sed.
13743 lt_compile=`echo "$ac_compile" | $SED \
13744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13746 -e 's:$: $lt_compiler_flag:'`
ee134472 13747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
13748 (eval "$lt_compile" 2>conftest.err)
13749 ac_status=$?
13750 cat conftest.err >&5
ee134472 13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
13752 if (exit $ac_status) && test -s "$ac_outfile"; then
13753 # The compiler can only warn and ignore the option if not recognized
13754 # So say no if there are warnings other than the usual output.
ee134472 13755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
13756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13758 lt_cv_prog_compiler_pic_works_CXX=yes
13759 fi
13760 fi
13761 $RM conftest*
13762
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13765$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13766
13767if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13768 case $lt_prog_compiler_pic_CXX in
13769 "" | " "*) ;;
13770 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13771 esac
13772else
13773 lt_prog_compiler_pic_CXX=
13774 lt_prog_compiler_can_build_shared_CXX=no
13775fi
13776
13777fi
13778
13779
13780
ee134472
JF
13781
13782
47aaa820
DWT
13783#
13784# Check to make sure the static flag actually works.
13785#
13786wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13788$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 13789if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
13790 $as_echo_n "(cached) " >&6
13791else
13792 lt_cv_prog_compiler_static_works_CXX=no
13793 save_LDFLAGS="$LDFLAGS"
13794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13797 # The linker can only warn and ignore the option if not recognized
13798 # So say no if there are warnings
13799 if test -s conftest.err; then
13800 # Append any errors to the config.log.
13801 cat conftest.err 1>&5
ee134472 13802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
13803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13804 if diff conftest.exp conftest.er2 >/dev/null; then
13805 lt_cv_prog_compiler_static_works_CXX=yes
13806 fi
13807 else
13808 lt_cv_prog_compiler_static_works_CXX=yes
13809 fi
13810 fi
13811 $RM -r conftest*
13812 LDFLAGS="$save_LDFLAGS"
13813
13814fi
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13816$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13817
13818if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13819 :
13820else
13821 lt_prog_compiler_static_CXX=
13822fi
13823
13824
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13828$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 13829if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
13830 $as_echo_n "(cached) " >&6
13831else
13832 lt_cv_prog_compiler_c_o_CXX=no
13833 $RM -r conftest 2>/dev/null
13834 mkdir conftest
13835 cd conftest
13836 mkdir out
13837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13838
13839 lt_compiler_flag="-o out/conftest2.$ac_objext"
13840 # Insert the option either (1) after the last *FLAGS variable, or
13841 # (2) before a word containing "conftest.", or (3) at the end.
13842 # Note that $ac_compile itself does not contain backslashes and begins
13843 # with a dollar sign (not a hyphen), so the echo should work correctly.
13844 lt_compile=`echo "$ac_compile" | $SED \
13845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13847 -e 's:$: $lt_compiler_flag:'`
ee134472 13848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
13849 (eval "$lt_compile" 2>out/conftest.err)
13850 ac_status=$?
13851 cat out/conftest.err >&5
ee134472 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
13853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13854 then
13855 # The compiler can only warn and ignore the option if not recognized
13856 # So say no if there are warnings
ee134472 13857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
13858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13860 lt_cv_prog_compiler_c_o_CXX=yes
13861 fi
13862 fi
13863 chmod u+w . 2>&5
13864 $RM conftest*
13865 # SGI C++ compiler will create directory out/ii_files/ for
13866 # template instantiation
13867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13868 $RM out/* && rmdir out
13869 cd ..
13870 $RM -r conftest
13871 $RM conftest*
13872
13873fi
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13875$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13876
13877
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13880$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 13881if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
13882 $as_echo_n "(cached) " >&6
13883else
13884 lt_cv_prog_compiler_c_o_CXX=no
13885 $RM -r conftest 2>/dev/null
13886 mkdir conftest
13887 cd conftest
13888 mkdir out
13889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13890
13891 lt_compiler_flag="-o out/conftest2.$ac_objext"
13892 # Insert the option either (1) after the last *FLAGS variable, or
13893 # (2) before a word containing "conftest.", or (3) at the end.
13894 # Note that $ac_compile itself does not contain backslashes and begins
13895 # with a dollar sign (not a hyphen), so the echo should work correctly.
13896 lt_compile=`echo "$ac_compile" | $SED \
13897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13899 -e 's:$: $lt_compiler_flag:'`
ee134472 13900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
13901 (eval "$lt_compile" 2>out/conftest.err)
13902 ac_status=$?
13903 cat out/conftest.err >&5
ee134472 13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
13905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13906 then
13907 # The compiler can only warn and ignore the option if not recognized
13908 # So say no if there are warnings
ee134472 13909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
13910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13912 lt_cv_prog_compiler_c_o_CXX=yes
13913 fi
13914 fi
13915 chmod u+w . 2>&5
13916 $RM conftest*
13917 # SGI C++ compiler will create directory out/ii_files/ for
13918 # template instantiation
13919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13920 $RM out/* && rmdir out
13921 cd ..
13922 $RM -r conftest
13923 $RM conftest*
13924
13925fi
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13927$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13928
13929
13930
13931
13932hard_links="nottested"
13933if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13934 # do not overwrite the value of need_locks provided by the user
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13936$as_echo_n "checking if we can lock with hard links... " >&6; }
13937 hard_links=yes
13938 $RM conftest*
13939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13940 touch conftest.a
13941 ln conftest.a conftest.b 2>&5 || hard_links=no
13942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13944$as_echo "$hard_links" >&6; }
13945 if test "$hard_links" = no; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13947$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13948 need_locks=warn
13949 fi
13950else
13951 need_locks=no
13952fi
13953
13954
13955
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13957$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13958
13959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 13960 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
13961 case $host_os in
13962 aix[4-9]*)
13963 # If we're using GNU nm, then we don't want the "-C" option.
13964 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
13965 # Also, AIX nm treats weak defined symbols like other global defined
13966 # symbols, whereas GNU nm marks them as "W".
47aaa820 13967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 13968 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
13969 else
13970 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'
13971 fi
13972 ;;
13973 pw32*)
13974 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 13975 ;;
47aaa820 13976 cygwin* | mingw* | cegcc*)
ee134472
JF
13977 case $cc_basename in
13978 cl*) ;;
13979 *)
13980 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'
13981 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13982 ;;
13983 esac
13984 ;;
13985 linux* | k*bsd*-gnu | gnu*)
1504c9b8 13986 link_all_deplibs_CXX=no
ee134472 13987 ;;
47aaa820
DWT
13988 *)
13989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 13990 ;;
47aaa820 13991 esac
47aaa820
DWT
13992
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13994$as_echo "$ld_shlibs_CXX" >&6; }
13995test "$ld_shlibs_CXX" = no && can_build_shared=no
13996
13997with_gnu_ld_CXX=$with_gnu_ld
13998
13999
14000
14001
14002
14003
14004#
14005# Do we need to explicitly link libc?
14006#
14007case "x$archive_cmds_need_lc_CXX" in
14008x|xyes)
14009 # Assume -lc should be added
14010 archive_cmds_need_lc_CXX=yes
14011
14012 if test "$enable_shared" = yes && test "$GCC" = yes; then
14013 case $archive_cmds_CXX in
14014 *'~'*)
14015 # FIXME: we may have to deal with multi-command sequences.
14016 ;;
14017 '$CC '*)
14018 # Test whether the compiler implicitly links with -lc since on some
14019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14020 # to ld, don't add -lc before -lgcc.
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14022$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14023if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025else
14026 $RM conftest*
14027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 14028
ee134472 14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
14030 (eval $ac_compile) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
14034 soname=conftest
14035 lib=conftest
14036 libobjs=conftest.$ac_objext
14037 deplibs=
14038 wl=$lt_prog_compiler_wl_CXX
14039 pic_flag=$lt_prog_compiler_pic_CXX
14040 compiler_flags=-v
14041 linker_flags=-v
14042 verstring=
14043 output_objdir=.
14044 libname=conftest
14045 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14046 allow_undefined_flag_CXX=
14047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
14048 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14049 ac_status=$?
14050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14051 test $ac_status = 0; }
ee134472
JF
14052 then
14053 lt_cv_archive_cmds_need_lc_CXX=no
14054 else
14055 lt_cv_archive_cmds_need_lc_CXX=yes
14056 fi
14057 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14058 else
14059 cat conftest.err 1>&5
14060 fi
14061 $RM conftest*
14062
14063fi
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14065$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14066 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
14067 ;;
14068 esac
14069 fi
14070 ;;
14071esac
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14137$as_echo_n "checking dynamic linker characteristics... " >&6; }
14138
14139library_names_spec=
14140libname_spec='lib$name'
14141soname_spec=
14142shrext_cmds=".so"
14143postinstall_cmds=
14144postuninstall_cmds=
14145finish_cmds=
14146finish_eval=
14147shlibpath_var=
14148shlibpath_overrides_runpath=unknown
14149version_type=none
14150dynamic_linker="$host_os ld.so"
14151sys_lib_dlsearch_path_spec="/lib /usr/lib"
14152need_lib_prefix=unknown
14153hardcode_into_libs=no
14154
14155# when you set need_version to no, make sure it does not cause -set_version
14156# flags to be left without arguments
14157need_version=unknown
14158
14159case $host_os in
14160aix3*)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14163 shlibpath_var=LIBPATH
14164
14165 # AIX 3 has no versioning support, so we append a major version to the name.
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 ;;
14168
14169aix[4-9]*)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 hardcode_into_libs=yes
14174 if test "$host_cpu" = ia64; then
14175 # AIX 5 supports IA64
14176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 else
14179 # With GCC up to 2.95.x, collect2 would create an import file
14180 # for dependence libraries. The import file would start with
14181 # the line `#! .'. This would cause the generated library to
14182 # depend on `.', always an invalid library. This was fixed in
14183 # development snapshots of GCC prior to 3.0.
14184 case $host_os in
14185 aix4 | aix4.[01] | aix4.[01].*)
14186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14187 echo ' yes '
14188 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14189 :
14190 else
14191 can_build_shared=no
14192 fi
14193 ;;
14194 esac
14195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14196 # soname into executable. Probably we can add versioning support to
14197 # collect2, so additional links can be useful in future.
14198 if test "$aix_use_runtimelinking" = yes; then
14199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14200 # instead of lib<name>.a to let people know that these are not
14201 # typical AIX shared libraries.
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 else
14204 # We preserve .a as extension for shared libraries through AIX4.2
14205 # and later when we are not doing run time linking.
14206 library_names_spec='${libname}${release}.a $libname.a'
14207 soname_spec='${libname}${release}${shared_ext}$major'
14208 fi
14209 shlibpath_var=LIBPATH
14210 fi
14211 ;;
14212
14213amigaos*)
14214 case $host_cpu in
14215 powerpc)
14216 # Since July 2007 AmigaOS4 officially supports .so libraries.
14217 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14219 ;;
14220 m68k)
14221 library_names_spec='$libname.ixlibrary $libname.a'
14222 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 14223 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
14224 ;;
14225 esac
14226 ;;
14227
14228beos*)
14229 library_names_spec='${libname}${shared_ext}'
14230 dynamic_linker="$host_os ld.so"
14231 shlibpath_var=LIBRARY_PATH
14232 ;;
14233
14234bsdi[45]*)
14235 version_type=linux
14236 need_version=no
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14240 shlibpath_var=LD_LIBRARY_PATH
14241 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14242 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14243 # the default ld.so.conf also contains /usr/contrib/lib and
14244 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14245 # libtool to hard-code these into programs
14246 ;;
9c60689e 14247
47aaa820
DWT
14248cygwin* | mingw* | pw32* | cegcc*)
14249 version_type=windows
14250 shrext_cmds=".dll"
14251 need_version=no
14252 need_lib_prefix=no
9c60689e 14253
ee134472
JF
14254 case $GCC,$cc_basename in
14255 yes,*)
14256 # gcc
47aaa820
DWT
14257 library_names_spec='$libname.dll.a'
14258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14259 postinstall_cmds='base_file=`basename \${file}`~
14260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14261 dldir=$destdir/`dirname \$dlpath`~
14262 test -d \$dldir || mkdir -p \$dldir~
14263 $install_prog $dir/$dlname \$dldir/$dlname~
14264 chmod a+x \$dldir/$dlname~
14265 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14266 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14267 fi'
14268 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14269 dlpath=$dir/\$dldll~
14270 $RM \$dlpath'
14271 shlibpath_overrides_runpath=yes
9c60689e 14272
47aaa820
DWT
14273 case $host_os in
14274 cygwin*)
14275 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14276 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 14277
47aaa820
DWT
14278 ;;
14279 mingw* | cegcc*)
14280 # MinGW DLLs use traditional 'lib' prefix
14281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
14282 ;;
14283 pw32*)
14284 # pw32 DLLs use 'pw' prefix rather than 'lib'
14285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14286 ;;
14287 esac
ee134472
JF
14288 dynamic_linker='Win32 ld.exe'
14289 ;;
14290
14291 *,cl*)
14292 # Native MSVC
14293 libname_spec='$name'
14294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14295 library_names_spec='${libname}.dll.lib'
14296
14297 case $build_os in
14298 mingw*)
14299 sys_lib_search_path_spec=
14300 lt_save_ifs=$IFS
14301 IFS=';'
14302 for lt_path in $LIB
14303 do
14304 IFS=$lt_save_ifs
14305 # Let DOS variable expansion print the short 8.3 style file name.
14306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14308 done
14309 IFS=$lt_save_ifs
14310 # Convert to MSYS style.
14311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14312 ;;
14313 cygwin*)
14314 # Convert to unix form, then to dos form, then back to unix form
14315 # but this time dos style (no spaces!) so that the unix form looks
14316 # like /cygdrive/c/PROGRA~1:/cygdr...
14317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14320 ;;
14321 *)
14322 sys_lib_search_path_spec="$LIB"
14323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14324 # It is most probably a Windows format PATH.
14325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14326 else
14327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14328 fi
14329 # FIXME: find the short name or the path components, as spaces are
14330 # common. (e.g. "Program Files" -> "PROGRA~1")
14331 ;;
14332 esac
14333
14334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14335 postinstall_cmds='base_file=`basename \${file}`~
14336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14337 dldir=$destdir/`dirname \$dlpath`~
14338 test -d \$dldir || mkdir -p \$dldir~
14339 $install_prog $dir/$dlname \$dldir/$dlname'
14340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14341 dlpath=$dir/\$dldll~
14342 $RM \$dlpath'
14343 shlibpath_overrides_runpath=yes
14344 dynamic_linker='Win32 link.exe'
47aaa820 14345 ;;
9c60689e 14346
47aaa820 14347 *)
ee134472 14348 # Assume MSVC wrapper
47aaa820 14349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 14350 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
14351 ;;
14352 esac
47aaa820
DWT
14353 # FIXME: first we should search . and the directory the executable is in
14354 shlibpath_var=PATH
14355 ;;
9c60689e 14356
47aaa820
DWT
14357darwin* | rhapsody*)
14358 dynamic_linker="$host_os dyld"
14359 version_type=darwin
14360 need_lib_prefix=no
14361 need_version=no
14362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14363 soname_spec='${libname}${release}${major}$shared_ext'
14364 shlibpath_overrides_runpath=yes
14365 shlibpath_var=DYLD_LIBRARY_PATH
14366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 14367
47aaa820
DWT
14368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14369 ;;
9c60689e 14370
47aaa820
DWT
14371dgux*)
14372 version_type=linux
14373 need_lib_prefix=no
14374 need_version=no
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 ;;
9c60689e 14379
47aaa820
DWT
14380freebsd1*)
14381 dynamic_linker=no
14382 ;;
9c60689e 14383
47aaa820
DWT
14384freebsd* | dragonfly*)
14385 # DragonFly does not have aout. When/if they implement a new
14386 # versioning mechanism, adjust this.
14387 if test -x /usr/bin/objformat; then
14388 objformat=`/usr/bin/objformat`
14389 else
14390 case $host_os in
14391 freebsd[123]*) objformat=aout ;;
14392 *) objformat=elf ;;
14393 esac
14394 fi
14395 version_type=freebsd-$objformat
14396 case $version_type in
14397 freebsd-elf*)
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14399 need_version=no
14400 need_lib_prefix=no
14401 ;;
14402 freebsd-*)
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14404 need_version=yes
14405 ;;
14406 esac
14407 shlibpath_var=LD_LIBRARY_PATH
14408 case $host_os in
14409 freebsd2*)
14410 shlibpath_overrides_runpath=yes
14411 ;;
14412 freebsd3.[01]* | freebsdelf3.[01]*)
14413 shlibpath_overrides_runpath=yes
14414 hardcode_into_libs=yes
14415 ;;
14416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14418 shlibpath_overrides_runpath=no
14419 hardcode_into_libs=yes
14420 ;;
14421 *) # from 4.6 on, and DragonFly
14422 shlibpath_overrides_runpath=yes
14423 hardcode_into_libs=yes
14424 ;;
14425 esac
14426 ;;
9c60689e 14427
47aaa820
DWT
14428gnu*)
14429 version_type=linux
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
14435 shlibpath_overrides_runpath=no
14436 hardcode_into_libs=yes
14437 ;;
14438
14439haiku*)
14440 version_type=linux
14441 need_lib_prefix=no
14442 need_version=no
14443 dynamic_linker="$host_os runtime_loader"
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 shlibpath_var=LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes
14448 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
14449 hardcode_into_libs=yes
14450 ;;
9c60689e 14451
47aaa820
DWT
14452hpux9* | hpux10* | hpux11*)
14453 # Give a soname corresponding to the major version so that dld.sl refuses to
14454 # link against other versions.
14455 version_type=sunos
14456 need_lib_prefix=no
14457 need_version=no
14458 case $host_cpu in
14459 ia64*)
14460 shrext_cmds='.so'
14461 hardcode_into_libs=yes
14462 dynamic_linker="$host_os dld.so"
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 if test "X$HPUX_IA64_MODE" = X32; then
14468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14469 else
14470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14471 fi
14472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14473 ;;
14474 hppa*64*)
14475 shrext_cmds='.sl'
14476 hardcode_into_libs=yes
14477 dynamic_linker="$host_os dld.sl"
14478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14484 ;;
14485 *)
14486 shrext_cmds='.sl'
14487 dynamic_linker="$host_os dld.sl"
14488 shlibpath_var=SHLIB_PATH
14489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 ;;
14493 esac
ee134472 14494 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 14495 postinstall_cmds='chmod 555 $lib'
ee134472
JF
14496 # or fails outright, so override atomically:
14497 install_override_mode=555
47aaa820 14498 ;;
9c60689e 14499
47aaa820
DWT
14500interix[3-9]*)
14501 version_type=linux
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=no
14509 hardcode_into_libs=yes
14510 ;;
9c60689e 14511
47aaa820
DWT
14512irix5* | irix6* | nonstopux*)
14513 case $host_os in
14514 nonstopux*) version_type=nonstopux ;;
14515 *)
14516 if test "$lt_cv_prog_gnu_ld" = yes; then
14517 version_type=linux
14518 else
14519 version_type=irix
14520 fi ;;
14521 esac
14522 need_lib_prefix=no
14523 need_version=no
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14526 case $host_os in
14527 irix5* | nonstopux*)
14528 libsuff= shlibsuff=
14529 ;;
14530 *)
14531 case $LD in # libtool.m4 will add one of these switches to LD
14532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14533 libsuff= shlibsuff= libmagic=32-bit;;
14534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14535 libsuff=32 shlibsuff=N32 libmagic=N32;;
14536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14538 *) libsuff= shlibsuff= libmagic=never-match;;
14539 esac
14540 ;;
14541 esac
14542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14543 shlibpath_overrides_runpath=no
14544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14546 hardcode_into_libs=yes
14547 ;;
9c60689e 14548
47aaa820
DWT
14549# No shared lib support for Linux oldld, aout, or coff.
14550linux*oldld* | linux*aout* | linux*coff*)
14551 dynamic_linker=no
14552 ;;
9c60689e 14553
47aaa820 14554# This must be Linux ELF.
1504c9b8 14555linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
14556 version_type=linux
14557 need_lib_prefix=no
14558 need_version=no
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=no
ee134472 14564
47aaa820 14565 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
14566 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568else
14569 lt_cv_shlibpath_overrides_runpath=no
14570 save_LDFLAGS=$LDFLAGS
14571 save_libdir=$libdir
14572 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14573 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 14575/* end confdefs.h. */
9c60689e 14576
47aaa820
DWT
14577int
14578main ()
14579{
9c60689e 14580
47aaa820
DWT
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585if ac_fn_cxx_try_link "$LINENO"; then :
14586 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 14587 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 14588fi
47aaa820
DWT
14589fi
14590rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
14592 LDFLAGS=$save_LDFLAGS
14593 libdir=$save_libdir
14594
14595fi
14596
14597 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 14598
47aaa820
DWT
14599 # This implies no fast_install, which is unacceptable.
14600 # Some rework will be needed to allow for fast_install
14601 # before this can be enabled.
14602 hardcode_into_libs=yes
9c60689e 14603
47aaa820
DWT
14604 # Append ld.so.conf contents to the search path
14605 if test -f /etc/ld.so.conf; then
ee134472 14606 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
14607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14608 fi
9c60689e 14609
47aaa820
DWT
14610 # We used to test for /lib/ld.so.1 and disable shared libraries on
14611 # powerpc, because MkLinux only supported shared libraries with the
14612 # GNU dynamic linker. Since this was broken with cross compilers,
14613 # most powerpc-linux boxes support dynamic linking these days and
14614 # people can always --disable-shared, the test was removed, and we
14615 # assume the GNU/Linux dynamic linker is in use.
14616 dynamic_linker='GNU/Linux ld.so'
9c60689e 14617 ;;
47aaa820 14618
1504c9b8
DWT
14619netbsdelf*-gnu)
14620 version_type=linux
14621 need_lib_prefix=no
14622 need_version=no
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=no
14627 hardcode_into_libs=yes
14628 dynamic_linker='NetBSD ld.elf_so'
14629 ;;
14630
47aaa820
DWT
14631netbsd*)
14632 version_type=sunos
14633 need_lib_prefix=no
14634 need_version=no
14635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14638 dynamic_linker='NetBSD (a.out) ld.so'
14639 else
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker='NetBSD ld.elf_so'
14643 fi
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 hardcode_into_libs=yes
9c60689e 14647 ;;
9c60689e 14648
47aaa820
DWT
14649newsos6)
14650 version_type=linux
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 ;;
9c60689e 14655
47aaa820
DWT
14656*nto* | *qnx*)
14657 version_type=qnx
14658 need_lib_prefix=no
14659 need_version=no
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=no
14664 hardcode_into_libs=yes
14665 dynamic_linker='ldqnx.so'
14666 ;;
9c60689e 14667
47aaa820
DWT
14668openbsd*)
14669 version_type=sunos
14670 sys_lib_dlsearch_path_spec="/usr/lib"
14671 need_lib_prefix=no
14672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14673 case $host_os in
14674 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14675 *) need_version=no ;;
14676 esac
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14681 case $host_os in
14682 openbsd2.[89] | openbsd2.[89].*)
14683 shlibpath_overrides_runpath=no
14684 ;;
14685 *)
14686 shlibpath_overrides_runpath=yes
14687 ;;
14688 esac
14689 else
14690 shlibpath_overrides_runpath=yes
14691 fi
14692 ;;
9c60689e 14693
47aaa820
DWT
14694os2*)
14695 libname_spec='$name'
14696 shrext_cmds=".dll"
14697 need_lib_prefix=no
14698 library_names_spec='$libname${shared_ext} $libname.a'
14699 dynamic_linker='OS/2 ld.exe'
14700 shlibpath_var=LIBPATH
14701 ;;
9c60689e 14702
47aaa820
DWT
14703osf3* | osf4* | osf5*)
14704 version_type=osf
14705 need_lib_prefix=no
14706 need_version=no
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14712 ;;
9c60689e 14713
47aaa820
DWT
14714rdos*)
14715 dynamic_linker=no
14716 ;;
9c60689e 14717
47aaa820
DWT
14718solaris*)
14719 version_type=linux
14720 need_lib_prefix=no
14721 need_version=no
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=yes
14726 hardcode_into_libs=yes
14727 # ldd complains unless libraries are executable
14728 postinstall_cmds='chmod +x $lib'
14729 ;;
9c60689e 14730
47aaa820
DWT
14731sunos4*)
14732 version_type=sunos
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 shlibpath_overrides_runpath=yes
14737 if test "$with_gnu_ld" = yes; then
14738 need_lib_prefix=no
14739 fi
14740 need_version=yes
14741 ;;
9c60689e 14742
47aaa820
DWT
14743sysv4 | sysv4.3*)
14744 version_type=linux
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 case $host_vendor in
14749 sni)
14750 shlibpath_overrides_runpath=no
14751 need_lib_prefix=no
14752 runpath_var=LD_RUN_PATH
9c60689e 14753 ;;
47aaa820
DWT
14754 siemens)
14755 need_lib_prefix=no
9c60689e 14756 ;;
47aaa820
DWT
14757 motorola)
14758 need_lib_prefix=no
14759 need_version=no
14760 shlibpath_overrides_runpath=no
14761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14762 ;;
14763 esac
9c60689e 14764 ;;
9c60689e 14765
47aaa820
DWT
14766sysv4*MP*)
14767 if test -d /usr/nec ;then
14768 version_type=linux
14769 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14770 soname_spec='$libname${shared_ext}.$major'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 fi
14773 ;;
9c60689e 14774
47aaa820
DWT
14775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14776 version_type=freebsd-elf
14777 need_lib_prefix=no
14778 need_version=no
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=yes
14783 hardcode_into_libs=yes
14784 if test "$with_gnu_ld" = yes; then
14785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14786 else
14787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14788 case $host_os in
14789 sco3.2v5*)
14790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14791 ;;
14792 esac
14793 fi
14794 sys_lib_dlsearch_path_spec='/usr/lib'
14795 ;;
9c60689e 14796
47aaa820
DWT
14797tpf*)
14798 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14799 version_type=linux
14800 need_lib_prefix=no
14801 need_version=no
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 hardcode_into_libs=yes
14806 ;;
9c60689e 14807
47aaa820
DWT
14808uts4*)
14809 version_type=linux
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 ;;
9c60689e 14814
47aaa820
DWT
14815*)
14816 dynamic_linker=no
e9c9a47c
DWT
14817 ;;
14818esac
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14820$as_echo "$dynamic_linker" >&6; }
14821test "$dynamic_linker" = no && can_build_shared=no
14822
14823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14824if test "$GCC" = yes; then
14825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 14826fi
9c60689e 14827
e9c9a47c
DWT
14828if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14829 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 14830fi
e9c9a47c
DWT
14831if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14832 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 14833fi
9c60689e 14834
9c60689e 14835
9c60689e 14836
9c60689e 14837
47aaa820 14838
47aaa820 14839
47aaa820 14840
9c60689e 14841
9c60689e 14842
47aaa820 14843
47aaa820 14844
47aaa820 14845
47aaa820 14846
47aaa820 14847
47aaa820 14848
47aaa820 14849
47aaa820 14850
9c60689e 14851
9c60689e 14852
9c60689e 14853
9c60689e 14854
9c60689e 14855
e9c9a47c
DWT
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
ee134472
JF
14867
14868
e9c9a47c
DWT
14869
14870
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14873$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14874hardcode_action_CXX=
14875if test -n "$hardcode_libdir_flag_spec_CXX" ||
14876 test -n "$runpath_var_CXX" ||
14877 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14878
14879 # We can hardcode non-existent directories.
14880 if test "$hardcode_direct_CXX" != no &&
14881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14882 # have to relink, otherwise we might link with an installed library
14883 # when we should be linking with a yet-to-be-installed one
14884 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14885 test "$hardcode_minus_L_CXX" != no; then
14886 # Linking always hardcodes the temporary library directory.
14887 hardcode_action_CXX=relink
14888 else
14889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14890 hardcode_action_CXX=immediate
14891 fi
14892else
14893 # We cannot hardcode anything, or else we can only hardcode existing
14894 # directories.
14895 hardcode_action_CXX=unsupported
14896fi
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14898$as_echo "$hardcode_action_CXX" >&6; }
14899
14900if test "$hardcode_action_CXX" = relink ||
14901 test "$inherit_rpath_CXX" = yes; then
14902 # Fast installation is not supported
14903 enable_fast_install=no
14904elif test "$shlibpath_overrides_runpath" = yes ||
14905 test "$enable_shared" = no; then
14906 # Fast installation is not necessary
14907 enable_fast_install=needless
47aaa820 14908fi
9c60689e 14909
47aaa820 14910
47aaa820 14911
e9c9a47c
DWT
14912
14913
14914
14915
14916 fi # test -n "$compiler"
14917
14918 CC=$lt_save_CC
ee134472 14919 CFLAGS=$lt_save_CFLAGS
e9c9a47c
DWT
14920 LDCXX=$LD
14921 LD=$lt_save_LD
14922 GCC=$lt_save_GCC
14923 with_gnu_ld=$lt_save_with_gnu_ld
14924 lt_cv_path_LDCXX=$lt_cv_path_LD
14925 lt_cv_path_LD=$lt_save_path_LD
14926 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14927 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14928fi # test "$_lt_caught_CXX_error" != yes
14929
14930ac_ext=c
14931ac_cpp='$CPP $CPPFLAGS'
14932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934ac_compiler_gnu=$ac_cv_c_compiler_gnu
14935
14936
14937ac_ext=mm
14938ac_cpp='$OBJCXXCPP $CPPFLAGS'
14939ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14942if test -n "$ac_tool_prefix"; then
14943 for ac_prog in g++ objc++ objcxx c++ CXX
14944 do
14945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
632b71ea
DWT
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14948$as_echo_n "checking for $ac_word... " >&6; }
ee134472 14949if ${ac_cv_prog_OBJCXX+:} false; then :
632b71ea
DWT
14950 $as_echo_n "(cached) " >&6
14951else
e9c9a47c
DWT
14952 if test -n "$OBJCXX"; then
14953 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
632b71ea
DWT
14954else
14955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956for as_dir in $PATH
14957do
14958 IFS=$as_save_IFS
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14962 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
632b71ea
DWT
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 break 2
14965 fi
14966done
14967 done
14968IFS=$as_save_IFS
14969
14970fi
14971fi
e9c9a47c
DWT
14972OBJCXX=$ac_cv_prog_OBJCXX
14973if test -n "$OBJCXX"; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14975$as_echo "$OBJCXX" >&6; }
632b71ea
DWT
14976else
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978$as_echo "no" >&6; }
14979fi
14980
14981
e9c9a47c
DWT
14982 test -n "$OBJCXX" && break
14983 done
632b71ea 14984fi
e9c9a47c
DWT
14985if test -z "$OBJCXX"; then
14986 ac_ct_OBJCXX=$OBJCXX
14987 for ac_prog in g++ objc++ objcxx c++ CXX
47aaa820
DWT
14988do
14989 # Extract the first word of "$ac_prog", so it can be a program name with args.
14990set dummy $ac_prog; ac_word=$2
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992$as_echo_n "checking for $ac_word... " >&6; }
ee134472 14993if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
47aaa820
DWT
14994 $as_echo_n "(cached) " >&6
14995else
e9c9a47c
DWT
14996 if test -n "$ac_ct_OBJCXX"; then
14997 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
47aaa820
DWT
14998else
14999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000for as_dir in $PATH
15001do
15002 IFS=$as_save_IFS
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 15006 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
47aaa820
DWT
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15008 break 2
15009 fi
15010done
15011 done
15012IFS=$as_save_IFS
9c60689e 15013
9c60689e 15014fi
9c60689e 15015fi
e9c9a47c
DWT
15016ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15017if test -n "$ac_ct_OBJCXX"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15019$as_echo "$ac_ct_OBJCXX" >&6; }
47aaa820
DWT
15020else
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022$as_echo "no" >&6; }
9c60689e
DWT
15023fi
15024
15025
e9c9a47c 15026 test -n "$ac_ct_OBJCXX" && break
47aaa820 15027done
e9c9a47c
DWT
15028
15029 if test "x$ac_ct_OBJCXX" = x; then
15030 OBJCXX="g++"
15031 else
15032 case $cross_compiling:$ac_tool_warned in
15033yes:)
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15036ac_tool_warned=yes ;;
15037esac
15038 OBJCXX=$ac_ct_OBJCXX
15039 fi
15040fi
15041
15042# Provide some information about the compiler.
15043$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15044set X $ac_compile
15045ac_compiler=$2
15046for ac_option in --version -v -V -qversion; do
15047 { { ac_try="$ac_compiler $ac_option >&5"
632b71ea
DWT
15048case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051esac
15052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15053$as_echo "$ac_try_echo"; } >&5
e9c9a47c 15054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
632b71ea 15055 ac_status=$?
e9c9a47c
DWT
15056 if test -s conftest.err; then
15057 sed '10a\
15058... rest of stderr output deleted ...
15059 10q' conftest.err >conftest.er1
15060 cat conftest.er1 >&5
15061 fi
15062 rm -f conftest.er1 conftest.err
632b71ea
DWT
15063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064 test $ac_status = 0; }
e9c9a47c 15065done
9c60689e 15066
e9c9a47c
DWT
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15068$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
ee134472 15069if ${ac_cv_objcxx_compiler_gnu+:} false; then :
632b71ea
DWT
15070 $as_echo_n "(cached) " >&6
15071else
e9c9a47c 15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 15073/* end confdefs.h. */
e9c9a47c
DWT
15074
15075int
15076main ()
15077{
15078#ifndef __GNUC__
15079 choke me
15080#endif
15081
15082 ;
15083 return 0;
15084}
632b71ea 15085_ACEOF
e9c9a47c
DWT
15086if ac_fn_objcxx_try_compile "$LINENO"; then :
15087 ac_compiler_gnu=yes
15088else
15089 ac_compiler_gnu=no
632b71ea 15090fi
e9c9a47c
DWT
15091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 15093
632b71ea 15094fi
e9c9a47c
DWT
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15096$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15097if test $ac_compiler_gnu = yes; then
15098 GOBJCXX=yes
15099else
15100 GOBJCXX=
632b71ea 15101fi
e9c9a47c
DWT
15102ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15103ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15105$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
ee134472 15106if ${ac_cv_prog_objcxx_g+:} false; then :
632b71ea 15107 $as_echo_n "(cached) " >&6
47aaa820 15108else
e9c9a47c
DWT
15109 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15110 ac_objcxx_werror_flag=yes
15111 ac_cv_prog_objcxx_g=no
15112 OBJCXXFLAGS="-g"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 15114/* end confdefs.h. */
9c60689e 15115
e9c9a47c
DWT
15116int
15117main ()
15118{
9c60689e 15119
e9c9a47c
DWT
15120 ;
15121 return 0;
15122}
15123_ACEOF
15124if ac_fn_objcxx_try_compile "$LINENO"; then :
15125 ac_cv_prog_objcxx_g=yes
632b71ea 15126else
e9c9a47c
DWT
15127 OBJCXXFLAGS=""
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h. */
9c60689e 15130
e9c9a47c
DWT
15131int
15132main ()
15133{
9c60689e 15134
e9c9a47c
DWT
15135 ;
15136 return 0;
15137}
15138_ACEOF
15139if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 15140
47aaa820 15141else
e9c9a47c
DWT
15142 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15143 OBJCXXFLAGS="-g"
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h. */
9c60689e 15146
e9c9a47c
DWT
15147int
15148main ()
15149{
9c60689e 15150
e9c9a47c
DWT
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155if ac_fn_objcxx_try_compile "$LINENO"; then :
15156 ac_cv_prog_objcxx_g=yes
47aaa820 15157fi
e9c9a47c 15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 15159fi
e9c9a47c 15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 15161fi
e9c9a47c
DWT
15162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
790e5246 15164fi
e9c9a47c
DWT
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15166$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15167if test "$ac_test_OBJCXXFLAGS" = set; then
15168 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15169elif test $ac_cv_prog_objcxx_g = yes; then
15170 if test "$GOBJCXX" = yes; then
15171 OBJCXXFLAGS="-g -O2"
15172 else
15173 OBJCXXFLAGS="-g"
632b71ea 15174 fi
632b71ea 15175else
e9c9a47c
DWT
15176 if test "$GOBJCXX" = yes; then
15177 OBJCXXFLAGS="-O2"
15178 else
15179 OBJCXXFLAGS=
15180 fi
632b71ea 15181fi
e9c9a47c
DWT
15182ac_ext=c
15183ac_cpp='$CPP $CPPFLAGS'
15184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 15187
b816329d
JF
15188ac_ext=cpp
15189ac_cpp='$CXXCPP $CPPFLAGS'
15190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15193
9c60689e 15194
1504c9b8
DWT
15195# Check whether --enable-universal-binary was given.
15196if test "${enable_universal_binary+set}" = set; then :
15197 enableval=$enable_universal_binary;
15198 case $enableval in #(
15199 no) :
15200 ;; #(
15201 *) :
15202
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15204$as_echo_n "checking for universal binary support... " >&6; }
15205 case $host_vendor in #(
15206 apple) :
15207
15208 case $host_cpu in #(
9d13f949 15209 armv6|i386|x86_64) :
1504c9b8 15210
9d13f949 15211 for cy_arch in armv6 i386 x86_64; do
1504c9b8
DWT
15212 cy_save_CXXFLAGS=$CXXFLAGS
15213
15214 for element in "-arch $cy_arch"; do
15215 haveit=
15216 for x in $CXXFLAGS; do
15217
15218 acl_save_prefix="$prefix"
15219 prefix="$acl_final_prefix"
15220 acl_save_exec_prefix="$exec_prefix"
15221 exec_prefix="$acl_final_exec_prefix"
15222 eval x=\"$x\"
15223 exec_prefix="$acl_save_exec_prefix"
15224 prefix="$acl_save_prefix"
15225
15226 if test "X$x" = "X$element"; then
15227 haveit=yes
15228 break
15229 fi
15230 done
15231 if test -z "$haveit"; then
15232 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15233 fi
15234 done
15235
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h. */
15238
15239int
15240main ()
15241{
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
b816329d 15247if ac_fn_cxx_try_link "$LINENO"; then :
1504c9b8
DWT
15248
15249
15250 for element in $cy_arch; do
15251 haveit=
15252 for x in $cy_arches; do
15253
15254 acl_save_prefix="$prefix"
15255 prefix="$acl_final_prefix"
15256 acl_save_exec_prefix="$exec_prefix"
15257 exec_prefix="$acl_final_exec_prefix"
15258 eval x=\"$x\"
15259 exec_prefix="$acl_save_exec_prefix"
15260 prefix="$acl_save_prefix"
15261
15262 if test "X$x" = "X$element"; then
15263 haveit=yes
15264 break
15265 fi
15266 done
15267 if test -z "$haveit"; then
15268 cy_arches="${cy_arches}${cy_arches:+ }$element"
15269 fi
15270 done
15271
15272
15273 for element in "-arch $cy_arch"; do
15274 haveit=
15275 for x in $CFLAGS; do
15276
15277 acl_save_prefix="$prefix"
15278 prefix="$acl_final_prefix"
15279 acl_save_exec_prefix="$exec_prefix"
15280 exec_prefix="$acl_final_exec_prefix"
15281 eval x=\"$x\"
15282 exec_prefix="$acl_save_exec_prefix"
15283 prefix="$acl_save_prefix"
15284
15285 if test "X$x" = "X$element"; then
15286 haveit=yes
15287 break
15288 fi
15289 done
15290 if test -z "$haveit"; then
15291 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15292 fi
15293 done
15294
15295
15296 for element in "-arch $cy_arch"; do
15297 haveit=
15298 for x in $LDFLAGS; do
15299
15300 acl_save_prefix="$prefix"
15301 prefix="$acl_final_prefix"
15302 acl_save_exec_prefix="$exec_prefix"
15303 exec_prefix="$acl_final_exec_prefix"
15304 eval x=\"$x\"
15305 exec_prefix="$acl_save_exec_prefix"
15306 prefix="$acl_save_prefix"
15307
15308 if test "X$x" = "X$element"; then
15309 haveit=yes
15310 break
15311 fi
15312 done
15313 if test -z "$haveit"; then
15314 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15315 fi
15316 done
15317
15318
15319 for element in "-arch $cy_arch"; do
15320 haveit=
15321 for x in $OBJCXXFLAGS; do
15322
15323 acl_save_prefix="$prefix"
15324 prefix="$acl_final_prefix"
15325 acl_save_exec_prefix="$exec_prefix"
15326 exec_prefix="$acl_final_exec_prefix"
15327 eval x=\"$x\"
15328 exec_prefix="$acl_save_exec_prefix"
15329 prefix="$acl_save_prefix"
15330
15331 if test "X$x" = "X$element"; then
15332 haveit=yes
15333 break
15334 fi
15335 done
15336 if test -z "$haveit"; then
15337 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15338 fi
15339 done
15340
15341
15342else
15343
15344 CXXFLAGS=$cy_save_CXXFLAGS
15345
15346fi
15347rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15349 done
15350 ;; #(
15351 *) :
15352 ;;
15353esac
15354 ;; #(
15355 *) :
15356 ;;
15357esac
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15359$as_echo "${cy_arches-no}" >&6; }
15360 ;;
15361esac
15362
15363else
15364
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15366$as_echo_n "checking for universal binary support... " >&6; }
15367 case $host_vendor in #(
15368 apple) :
15369
15370 case $host_cpu in #(
9d13f949 15371 armv6|i386|x86_64) :
1504c9b8 15372
9d13f949 15373 for cy_arch in armv6 i386 x86_64; do
1504c9b8
DWT
15374 cy_save_CXXFLAGS=$CXXFLAGS
15375
15376 for element in "-arch $cy_arch"; do
15377 haveit=
15378 for x in $CXXFLAGS; do
15379
15380 acl_save_prefix="$prefix"
15381 prefix="$acl_final_prefix"
15382 acl_save_exec_prefix="$exec_prefix"
15383 exec_prefix="$acl_final_exec_prefix"
15384 eval x=\"$x\"
15385 exec_prefix="$acl_save_exec_prefix"
15386 prefix="$acl_save_prefix"
15387
15388 if test "X$x" = "X$element"; then
15389 haveit=yes
15390 break
15391 fi
15392 done
15393 if test -z "$haveit"; then
15394 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15395 fi
15396 done
15397
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h. */
15400
15401int
15402main ()
15403{
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
b816329d 15409if ac_fn_cxx_try_link "$LINENO"; then :
1504c9b8
DWT
15410
15411
15412 for element in $cy_arch; do
15413 haveit=
15414 for x in $cy_arches; do
15415
15416 acl_save_prefix="$prefix"
15417 prefix="$acl_final_prefix"
15418 acl_save_exec_prefix="$exec_prefix"
15419 exec_prefix="$acl_final_exec_prefix"
15420 eval x=\"$x\"
15421 exec_prefix="$acl_save_exec_prefix"
15422 prefix="$acl_save_prefix"
15423
15424 if test "X$x" = "X$element"; then
15425 haveit=yes
15426 break
15427 fi
15428 done
15429 if test -z "$haveit"; then
15430 cy_arches="${cy_arches}${cy_arches:+ }$element"
15431 fi
15432 done
15433
15434
15435 for element in "-arch $cy_arch"; do
15436 haveit=
15437 for x in $CFLAGS; do
15438
15439 acl_save_prefix="$prefix"
15440 prefix="$acl_final_prefix"
15441 acl_save_exec_prefix="$exec_prefix"
15442 exec_prefix="$acl_final_exec_prefix"
15443 eval x=\"$x\"
15444 exec_prefix="$acl_save_exec_prefix"
15445 prefix="$acl_save_prefix"
15446
15447 if test "X$x" = "X$element"; then
15448 haveit=yes
15449 break
15450 fi
15451 done
15452 if test -z "$haveit"; then
15453 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15454 fi
15455 done
15456
15457
15458 for element in "-arch $cy_arch"; do
15459 haveit=
15460 for x in $LDFLAGS; do
15461
15462 acl_save_prefix="$prefix"
15463 prefix="$acl_final_prefix"
15464 acl_save_exec_prefix="$exec_prefix"
15465 exec_prefix="$acl_final_exec_prefix"
15466 eval x=\"$x\"
15467 exec_prefix="$acl_save_exec_prefix"
15468 prefix="$acl_save_prefix"
15469
15470 if test "X$x" = "X$element"; then
15471 haveit=yes
15472 break
15473 fi
15474 done
15475 if test -z "$haveit"; then
15476 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15477 fi
15478 done
15479
15480
15481 for element in "-arch $cy_arch"; do
15482 haveit=
15483 for x in $OBJCXXFLAGS; do
15484
15485 acl_save_prefix="$prefix"
15486 prefix="$acl_final_prefix"
15487 acl_save_exec_prefix="$exec_prefix"
15488 exec_prefix="$acl_final_exec_prefix"
15489 eval x=\"$x\"
15490 exec_prefix="$acl_save_exec_prefix"
15491 prefix="$acl_save_prefix"
15492
15493 if test "X$x" = "X$element"; then
15494 haveit=yes
15495 break
15496 fi
15497 done
15498 if test -z "$haveit"; then
15499 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15500 fi
15501 done
15502
15503
15504else
15505
15506 CXXFLAGS=$cy_save_CXXFLAGS
15507
15508fi
15509rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15511 done
15512 ;; #(
15513 *) :
15514 ;;
15515esac
15516 ;; #(
15517 *) :
15518 ;;
15519esac
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15521$as_echo "${cy_arches-no}" >&6; }
15522
15523fi
15524
15525
e9c9a47c
DWT
15526# Check whether --with-frameworks was given.
15527if test "${with_frameworks+set}" = set; then :
15528 withval=$with_frameworks;
1504c9b8 15529 for cy_framework in $withval; do
9c60689e 15530
1504c9b8 15531 for element in -F$cy_framework; do
e9c9a47c
DWT
15532 haveit=
15533 for x in $CFLAGS; do
9c60689e 15534
e9c9a47c
DWT
15535 acl_save_prefix="$prefix"
15536 prefix="$acl_final_prefix"
15537 acl_save_exec_prefix="$exec_prefix"
15538 exec_prefix="$acl_final_exec_prefix"
15539 eval x=\"$x\"
15540 exec_prefix="$acl_save_exec_prefix"
15541 prefix="$acl_save_prefix"
15542
15543 if test "X$x" = "X$element"; then
15544 haveit=yes
15545 break
15546 fi
15547 done
15548 if test -z "$haveit"; then
15549 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15550 fi
9c60689e 15551 done
9c60689e 15552
94690cff 15553
1504c9b8 15554 for element in -F$cy_framework; do
e9c9a47c
DWT
15555 haveit=
15556 for x in $CXXFLAGS; do
9c60689e 15557
e9c9a47c
DWT
15558 acl_save_prefix="$prefix"
15559 prefix="$acl_final_prefix"
15560 acl_save_exec_prefix="$exec_prefix"
15561 exec_prefix="$acl_final_exec_prefix"
15562 eval x=\"$x\"
15563 exec_prefix="$acl_save_exec_prefix"
15564 prefix="$acl_save_prefix"
9c60689e 15565
e9c9a47c
DWT
15566 if test "X$x" = "X$element"; then
15567 haveit=yes
15568 break
15569 fi
15570 done
15571 if test -z "$haveit"; then
15572 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15573 fi
15574 done
9c60689e 15575
e9c9a47c 15576
1504c9b8 15577 for element in -F$cy_framework; do
e9c9a47c
DWT
15578 haveit=
15579 for x in $OBJCCXXFLAGS; do
15580
15581 acl_save_prefix="$prefix"
15582 prefix="$acl_final_prefix"
15583 acl_save_exec_prefix="$exec_prefix"
15584 exec_prefix="$acl_final_exec_prefix"
15585 eval x=\"$x\"
15586 exec_prefix="$acl_save_exec_prefix"
15587 prefix="$acl_save_prefix"
15588
15589 if test "X$x" = "X$element"; then
15590 haveit=yes
15591 break
15592 fi
15593 done
15594 if test -z "$haveit"; then
15595 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
15596 fi
9c60689e 15597 done
632b71ea 15598
e9c9a47c 15599 done
9c60689e 15600
e9c9a47c 15601fi
9c60689e 15602
9c60689e 15603
632b71ea 15604 apr_found="no"
9c60689e 15605
632b71ea
DWT
15606 if test "$target_os" = "os2-emx"; then
15607 # Scripts don't pass test -x on OS/2
15608 TEST_X="test -f"
15609 else
15610 TEST_X="test -x"
15611 fi
9c60689e 15612
632b71ea 15613 acceptable_majors="1"
9c60689e 15614
632b71ea
DWT
15615 apr_temp_acceptable_apr_config=""
15616 for apr_temp_major in $acceptable_majors
15617 do
15618 case $apr_temp_major in
15619 0)
15620 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
15621 ;;
15622 *)
15623 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
15624 ;;
15625 esac
15626 done
9c60689e 15627
632b71ea
DWT
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
15629$as_echo_n "checking for APR... " >&6; }
9c60689e 15630
632b71ea
DWT
15631# Check whether --with-apr was given.
15632if test "${with_apr+set}" = set; then :
15633 withval=$with_apr;
15634 if test "$withval" = "no" || test "$withval" = "yes"; then
12833ad8 15635 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
632b71ea 15636 fi
9c60689e 15637
632b71ea
DWT
15638 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15639 do
15640 for lookdir in "$withval/bin" "$withval"
15641 do
15642 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
15643 apr_config="$lookdir/$apr_temp_apr_config_file"
9c60689e 15644
632b71ea
DWT
15645 apr_found="yes"
15646 break 2
15647 fi
15648 done
15649 done
9c60689e 15650
632b71ea
DWT
15651 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
15652 apr_config="$withval"
15653 apr_found="yes"
15654 fi
9c60689e 15655
632b71ea 15656 if test "$apr_found" != "yes"; then
12833ad8 15657 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
632b71ea 15658 fi
9c60689e 15659
632b71ea 15660else
9c60689e 15661
632b71ea
DWT
15662 if test -n "1" && test "1" = "1"; then
15663 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15664 do
15665 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
15666 apr_config="$apr_temp_apr_config_file"
9c60689e 15667
632b71ea
DWT
15668 apr_found="yes"
15669 break
15670 else
15671 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
15672 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
15673 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
9c60689e 15674
632b71ea
DWT
15675 apr_found="yes"
15676 break 2
15677 fi
15678 done
15679 fi
15680 done
15681 fi
15682 if test "$apr_found" = "no" && test -d ""; then
15683 apr_temp_abs_srcdir="`cd && pwd`"
15684 apr_found="reconfig"
15685 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
15686 case $apr_bundled_major in
15687 "")
12833ad8 15688 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
632b71ea
DWT
15689 ;;
15690 0)
15691 apr_temp_apr_config_file="apr-config"
15692 ;;
15693 *)
15694 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
15695 ;;
15696 esac
15697 if test -n ""; then
15698 apr_config="/$apr_temp_apr_config_file"
15699 else
15700 apr_config="/$apr_temp_apr_config_file"
15701 fi
15702 fi
9c60689e 15703
632b71ea 15704fi
9c60689e 15705
9c60689e 15706
632b71ea
DWT
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
15708$as_echo "$apr_found" >&6; }
9c60689e 15709
632b71ea
DWT
15710case $apr_found in #(
15711 yes) :
9c60689e
DWT
15712
15713
632b71ea
DWT
15714 for element in `$apr_config --includes`; do
15715 haveit=
15716 for x in $CPPFLAGS; do
9c60689e
DWT
15717
15718 acl_save_prefix="$prefix"
15719 prefix="$acl_final_prefix"
15720 acl_save_exec_prefix="$exec_prefix"
15721 exec_prefix="$acl_final_exec_prefix"
632b71ea 15722 eval x=\"$x\"
9c60689e
DWT
15723 exec_prefix="$acl_save_exec_prefix"
15724 prefix="$acl_save_prefix"
15725
632b71ea
DWT
15726 if test "X$x" = "X$element"; then
15727 haveit=yes
15728 break
9c60689e 15729 fi
632b71ea
DWT
15730 done
15731 if test -z "$haveit"; then
15732 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9c60689e 15733 fi
632b71ea 15734 done
9c60689e 15735
632b71ea 15736 LTLIBAPR=`$apr_config --link-libtool`
9c60689e 15737
632b71ea
DWT
15738 ;; #(
15739 *) :
ee134472 15740 as_fn_error $? "You need apr" "$LINENO" 5 ;;
632b71ea
DWT
15741esac
15742
15743
5053a6d1
DWT
15744# Check whether --enable-javascript was given.
15745if test "${enable_javascript+set}" = set; then :
15746 enableval=$enable_javascript;
15747 case $enableval in #(
15748 yes) :
9c60689e
DWT
15749
15750
9c60689e 15751
5053a6d1
DWT
15752pkg_failed=no
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15754$as_echo_n "checking for WEBKIT... " >&6; }
15755
12833ad8
JF
15756if test -n "$WEBKIT_CFLAGS"; then
15757 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15758 elif test -n "$PKG_CONFIG"; then
15759 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15761 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15762 ac_status=$?
15763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15764 test $ac_status = 0; }; then
15765 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
ee134472 15766 test "x$?" != "x0" && pkg_failed=yes
9c60689e 15767else
5053a6d1 15768 pkg_failed=yes
9c60689e 15769fi
12833ad8
JF
15770 else
15771 pkg_failed=untried
632b71ea 15772fi
12833ad8
JF
15773if test -n "$WEBKIT_LIBS"; then
15774 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15775 elif test -n "$PKG_CONFIG"; then
15776 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15778 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15779 ac_status=$?
15780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15781 test $ac_status = 0; }; then
15782 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
ee134472 15783 test "x$?" != "x0" && pkg_failed=yes
9c60689e 15784else
5053a6d1 15785 pkg_failed=yes
9c60689e 15786fi
12833ad8
JF
15787 else
15788 pkg_failed=untried
9c60689e
DWT
15789fi
15790
15791
15792
5053a6d1 15793if test $pkg_failed = yes; then
12833ad8
JF
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795$as_echo "no" >&6; }
9c60689e 15796
5053a6d1
DWT
15797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15798 _pkg_short_errors_supported=yes
9c60689e 15799else
5053a6d1
DWT
15800 _pkg_short_errors_supported=no
15801fi
15802 if test $_pkg_short_errors_supported = yes; then
ee134472 15803 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
5053a6d1 15804 else
ee134472 15805 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
5053a6d1
DWT
15806 fi
15807 # Put the nasty error message in config.log where it belongs
15808 echo "$WEBKIT_PKG_ERRORS" >&5
632b71ea 15809
5053a6d1
DWT
15810
15811
15812pkg_failed=no
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15814$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 15815
12833ad8
JF
15816if test -n "$WEBKIT_CFLAGS"; then
15817 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15818 elif test -n "$PKG_CONFIG"; then
15819 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15821 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15822 ac_status=$?
15823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15824 test $ac_status = 0; }; then
15825 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
ee134472 15826 test "x$?" != "x0" && pkg_failed=yes
5053a6d1
DWT
15827else
15828 pkg_failed=yes
9c60689e 15829fi
12833ad8
JF
15830 else
15831 pkg_failed=untried
5053a6d1 15832fi
12833ad8
JF
15833if test -n "$WEBKIT_LIBS"; then
15834 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15835 elif test -n "$PKG_CONFIG"; then
15836 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15838 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15839 ac_status=$?
15840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15841 test $ac_status = 0; }; then
15842 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
ee134472 15843 test "x$?" != "x0" && pkg_failed=yes
5053a6d1
DWT
15844else
15845 pkg_failed=yes
15846fi
12833ad8
JF
15847 else
15848 pkg_failed=untried
632b71ea
DWT
15849fi
15850
15851
15852
5053a6d1 15853if test $pkg_failed = yes; then
12833ad8
JF
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855$as_echo "no" >&6; }
5053a6d1
DWT
15856
15857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15858 _pkg_short_errors_supported=yes
15859else
15860 _pkg_short_errors_supported=no
15861fi
15862 if test $_pkg_short_errors_supported = yes; then
ee134472 15863 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
5053a6d1 15864 else
ee134472 15865 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
5053a6d1
DWT
15866 fi
15867 # Put the nasty error message in config.log where it belongs
15868 echo "$WEBKIT_PKG_ERRORS" >&5
15869
5053a6d1 15870
632b71ea 15871
5053a6d1
DWT
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15873$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 15874if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
15875 $as_echo_n "(cached) " >&6
15876else
632b71ea 15877
5053a6d1
DWT
15878 ac_check_framework_save_LIBS=$LIBS
15879 LIBS="-framework JavaScriptCore $LIBS"
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881/* end confdefs.h. */
632b71ea 15882
5053a6d1 15883 #include <JavaScriptCore/JSBase.h>
632b71ea 15884
5053a6d1
DWT
15885int
15886main ()
15887{
15888JSEvaluateScript(0, 0, 0, 0, 0, 0);
15889 ;
15890 return 0;
15891}
15892_ACEOF
15893if ac_fn_cxx_try_link "$LINENO"; then :
632b71ea 15894
5053a6d1 15895 ac_cv_framework_JavaScriptCore=yes
632b71ea 15896
5053a6d1
DWT
15897else
15898 ac_cv_framework_JavaScriptCore=no
15899fi
15900rm -f core conftest.err conftest.$ac_objext \
15901 conftest$ac_exeext conftest.$ac_ext
15902 LIBS=$ac_check_framework_save_LIBS
632b71ea 15903
5053a6d1
DWT
15904fi
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15906$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15907 if test $ac_cv_framework_JavaScriptCore = yes; then :
632b71ea
DWT
15908
15909
5053a6d1
DWT
15910 for element in "-framework JavaScriptCore $LIBS"; do
15911 haveit=
15912 for x in $LIBS; do
632b71ea
DWT
15913
15914 acl_save_prefix="$prefix"
15915 prefix="$acl_final_prefix"
15916 acl_save_exec_prefix="$exec_prefix"
15917 exec_prefix="$acl_final_exec_prefix"
5053a6d1 15918 eval x=\"$x\"
632b71ea
DWT
15919 exec_prefix="$acl_save_exec_prefix"
15920 prefix="$acl_save_prefix"
15921
5053a6d1
DWT
15922 if test "X$x" = "X$element"; then
15923 haveit=yes
15924 break
15925 fi
15926 done
15927 if test -z "$haveit"; then
15928 LIBS="${LIBS}${LIBS:+ }$element"
15929 fi
15930 done
15931
15932 CY_EXECUTE=1
632b71ea 15933
5053a6d1
DWT
15934fi
15935
15936elif test $pkg_failed = untried; then
12833ad8
JF
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938$as_echo "no" >&6; }
5053a6d1
DWT
15939
15940
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15942$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 15943if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
15944 $as_echo_n "(cached) " >&6
15945else
15946
15947 ac_check_framework_save_LIBS=$LIBS
15948 LIBS="-framework JavaScriptCore $LIBS"
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950/* end confdefs.h. */
15951
15952 #include <JavaScriptCore/JSBase.h>
15953
15954int
15955main ()
15956{
15957JSEvaluateScript(0, 0, 0, 0, 0, 0);
15958 ;
15959 return 0;
15960}
15961_ACEOF
15962if ac_fn_cxx_try_link "$LINENO"; then :
15963
15964 ac_cv_framework_JavaScriptCore=yes
15965
15966else
15967 ac_cv_framework_JavaScriptCore=no
15968fi
15969rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 LIBS=$ac_check_framework_save_LIBS
15972
15973fi
15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15975$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15976 if test $ac_cv_framework_JavaScriptCore = yes; then :
15977
15978
15979 for element in "-framework JavaScriptCore $LIBS"; do
15980 haveit=
15981 for x in $LIBS; do
632b71ea
DWT
15982
15983 acl_save_prefix="$prefix"
15984 prefix="$acl_final_prefix"
15985 acl_save_exec_prefix="$exec_prefix"
15986 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
15987 eval x=\"$x\"
15988 exec_prefix="$acl_save_exec_prefix"
15989 prefix="$acl_save_prefix"
632b71ea 15990
5053a6d1
DWT
15991 if test "X$x" = "X$element"; then
15992 haveit=yes
15993 break
15994 fi
15995 done
15996 if test -z "$haveit"; then
15997 LIBS="${LIBS}${LIBS:+ }$element"
15998 fi
15999 done
16000
16001 CY_EXECUTE=1
16002
16003fi
16004
16005else
16006 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16007 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16009$as_echo "yes" >&6; }
16010
16011 CY_EXECUTE=1
16012
16013 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16014 haveit=
16015 for x in $CXXFLAGS; do
632b71ea 16016
5053a6d1
DWT
16017 acl_save_prefix="$prefix"
16018 prefix="$acl_final_prefix"
16019 acl_save_exec_prefix="$exec_prefix"
16020 exec_prefix="$acl_final_exec_prefix"
16021 eval x=\"$x\"
632b71ea
DWT
16022 exec_prefix="$acl_save_exec_prefix"
16023 prefix="$acl_save_prefix"
16024
5053a6d1
DWT
16025 if test "X$x" = "X$element"; then
16026 haveit=yes
16027 break
632b71ea 16028 fi
5053a6d1
DWT
16029 done
16030 if test -z "$haveit"; then
16031 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
632b71ea 16032 fi
5053a6d1 16033 done
632b71ea 16034
632b71ea 16035
5053a6d1
DWT
16036 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16037 haveit=
16038 for x in $LIBS; do
632b71ea
DWT
16039
16040 acl_save_prefix="$prefix"
16041 prefix="$acl_final_prefix"
16042 acl_save_exec_prefix="$exec_prefix"
16043 exec_prefix="$acl_final_exec_prefix"
16044 eval x=\"$x\"
16045 exec_prefix="$acl_save_exec_prefix"
16046 prefix="$acl_save_prefix"
16047
5053a6d1
DWT
16048 if test "X$x" = "X$element"; then
16049 haveit=yes
16050 break
16051 fi
16052 done
16053 if test -z "$haveit"; then
16054 LIBS="${LIBS}${LIBS:+ }$element"
16055 fi
16056 done
632b71ea 16057
632b71ea 16058
5053a6d1 16059fi
632b71ea 16060
5053a6d1 16061elif test $pkg_failed = untried; then
12833ad8
JF
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16063$as_echo "no" >&6; }
632b71ea 16064
632b71ea 16065
5053a6d1
DWT
16066pkg_failed=no
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16068$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 16069
12833ad8
JF
16070if test -n "$WEBKIT_CFLAGS"; then
16071 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16072 elif test -n "$PKG_CONFIG"; then
16073 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
16074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16075 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16076 ac_status=$?
16077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16078 test $ac_status = 0; }; then
16079 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
ee134472 16080 test "x$?" != "x0" && pkg_failed=yes
5053a6d1
DWT
16081else
16082 pkg_failed=yes
16083fi
12833ad8
JF
16084 else
16085 pkg_failed=untried
5053a6d1 16086fi
12833ad8
JF
16087if test -n "$WEBKIT_LIBS"; then
16088 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16089 elif test -n "$PKG_CONFIG"; then
16090 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
16091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16092 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16093 ac_status=$?
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; then
16096 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
ee134472 16097 test "x$?" != "x0" && pkg_failed=yes
5053a6d1
DWT
16098else
16099 pkg_failed=yes
16100fi
12833ad8
JF
16101 else
16102 pkg_failed=untried
5053a6d1 16103fi
9c60689e 16104
9c60689e
DWT
16105
16106
5053a6d1 16107if test $pkg_failed = yes; then
12833ad8
JF
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109$as_echo "no" >&6; }
5053a6d1
DWT
16110
16111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16112 _pkg_short_errors_supported=yes
16113else
16114 _pkg_short_errors_supported=no
16115fi
16116 if test $_pkg_short_errors_supported = yes; then
ee134472 16117 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
5053a6d1 16118 else
ee134472 16119 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
5053a6d1
DWT
16120 fi
16121 # Put the nasty error message in config.log where it belongs
16122 echo "$WEBKIT_PKG_ERRORS" >&5
16123
9c60689e 16124
9c60689e 16125
5053a6d1
DWT
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16127$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 16128if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
16129 $as_echo_n "(cached) " >&6
16130else
9c60689e 16131
5053a6d1
DWT
16132 ac_check_framework_save_LIBS=$LIBS
16133 LIBS="-framework JavaScriptCore $LIBS"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135/* end confdefs.h. */
9c60689e 16136
5053a6d1 16137 #include <JavaScriptCore/JSBase.h>
9c60689e 16138
5053a6d1
DWT
16139int
16140main ()
16141{
16142JSEvaluateScript(0, 0, 0, 0, 0, 0);
16143 ;
16144 return 0;
16145}
16146_ACEOF
16147if ac_fn_cxx_try_link "$LINENO"; then :
16148
16149 ac_cv_framework_JavaScriptCore=yes
16150
16151else
16152 ac_cv_framework_JavaScriptCore=no
16153fi
16154rm -f core conftest.err conftest.$ac_objext \
16155 conftest$ac_exeext conftest.$ac_ext
16156 LIBS=$ac_check_framework_save_LIBS
16157
16158fi
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16160$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16161 if test $ac_cv_framework_JavaScriptCore = yes; then :
16162
16163
16164 for element in "-framework JavaScriptCore $LIBS"; do
632b71ea 16165 haveit=
5053a6d1 16166 for x in $LIBS; do
9c60689e 16167
632b71ea
DWT
16168 acl_save_prefix="$prefix"
16169 prefix="$acl_final_prefix"
16170 acl_save_exec_prefix="$exec_prefix"
16171 exec_prefix="$acl_final_exec_prefix"
16172 eval x=\"$x\"
16173 exec_prefix="$acl_save_exec_prefix"
16174 prefix="$acl_save_prefix"
16175
16176 if test "X$x" = "X$element"; then
16177 haveit=yes
16178 break
16179 fi
16180 done
16181 if test -z "$haveit"; then
5053a6d1 16182 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
16183 fi
16184 done
b128dfee 16185
5053a6d1
DWT
16186 CY_EXECUTE=1
16187
16188fi
c823f118 16189
5053a6d1 16190elif test $pkg_failed = untried; then
12833ad8
JF
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192$as_echo "no" >&6; }
5053a6d1
DWT
16193
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16196$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 16197if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
16198 $as_echo_n "(cached) " >&6
16199else
16200
5053a6d1
DWT
16201 ac_check_framework_save_LIBS=$LIBS
16202 LIBS="-framework JavaScriptCore $LIBS"
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 16204/* end confdefs.h. */
5053a6d1
DWT
16205
16206 #include <JavaScriptCore/JSBase.h>
16207
632b71ea
DWT
16208int
16209main ()
16210{
5053a6d1 16211JSEvaluateScript(0, 0, 0, 0, 0, 0);
632b71ea
DWT
16212 ;
16213 return 0;
16214}
16215_ACEOF
5053a6d1
DWT
16216if ac_fn_cxx_try_link "$LINENO"; then :
16217
16218 ac_cv_framework_JavaScriptCore=yes
16219
16220else
16221 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
16222fi
16223rm -f core conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
5053a6d1 16225 LIBS=$ac_check_framework_save_LIBS
b128dfee 16226
c823f118 16227fi
5053a6d1
DWT
16228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16229$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16230 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
16231
16232
5053a6d1
DWT
16233 for element in "-framework JavaScriptCore $LIBS"; do
16234 haveit=
16235 for x in $LIBS; do
16236
16237 acl_save_prefix="$prefix"
16238 prefix="$acl_final_prefix"
16239 acl_save_exec_prefix="$exec_prefix"
16240 exec_prefix="$acl_final_exec_prefix"
16241 eval x=\"$x\"
16242 exec_prefix="$acl_save_exec_prefix"
16243 prefix="$acl_save_prefix"
16244
16245 if test "X$x" = "X$element"; then
16246 haveit=yes
16247 break
16248 fi
16249 done
16250 if test -z "$haveit"; then
16251 LIBS="${LIBS}${LIBS:+ }$element"
16252 fi
16253 done
c823f118 16254
5053a6d1 16255 CY_EXECUTE=1
b128dfee 16256
632b71ea 16257fi
c823f118 16258
5053a6d1
DWT
16259else
16260 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16261 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16263$as_echo "yes" >&6; }
c823f118 16264
5053a6d1 16265 CY_EXECUTE=1
b128dfee 16266
5053a6d1
DWT
16267 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16268 haveit=
16269 for x in $CXXFLAGS; do
b128dfee 16270
5053a6d1
DWT
16271 acl_save_prefix="$prefix"
16272 prefix="$acl_final_prefix"
16273 acl_save_exec_prefix="$exec_prefix"
16274 exec_prefix="$acl_final_exec_prefix"
16275 eval x=\"$x\"
16276 exec_prefix="$acl_save_exec_prefix"
16277 prefix="$acl_save_prefix"
c823f118 16278
5053a6d1
DWT
16279 if test "X$x" = "X$element"; then
16280 haveit=yes
16281 break
16282 fi
16283 done
16284 if test -z "$haveit"; then
16285 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16286 fi
16287 done
c823f118 16288
c823f118 16289
5053a6d1
DWT
16290 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16291 haveit=
16292 for x in $LIBS; do
16293
16294 acl_save_prefix="$prefix"
16295 prefix="$acl_final_prefix"
16296 acl_save_exec_prefix="$exec_prefix"
16297 exec_prefix="$acl_final_exec_prefix"
16298 eval x=\"$x\"
16299 exec_prefix="$acl_save_exec_prefix"
16300 prefix="$acl_save_prefix"
16301
16302 if test "X$x" = "X$element"; then
16303 haveit=yes
16304 break
16305 fi
16306 done
16307 if test -z "$haveit"; then
16308 LIBS="${LIBS}${LIBS:+ }$element"
16309 fi
16310 done
c823f118 16311
632b71ea 16312
b128dfee
DWT
16313fi
16314
5053a6d1
DWT
16315else
16316 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16317 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16319$as_echo "yes" >&6; }
b128dfee 16320
5053a6d1 16321 CY_EXECUTE=1
c823f118 16322
5053a6d1
DWT
16323 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16324 haveit=
16325 for x in $CXXFLAGS; do
c823f118 16326
5053a6d1
DWT
16327 acl_save_prefix="$prefix"
16328 prefix="$acl_final_prefix"
16329 acl_save_exec_prefix="$exec_prefix"
16330 exec_prefix="$acl_final_exec_prefix"
16331 eval x=\"$x\"
16332 exec_prefix="$acl_save_exec_prefix"
16333 prefix="$acl_save_prefix"
c823f118 16334
5053a6d1
DWT
16335 if test "X$x" = "X$element"; then
16336 haveit=yes
16337 break
16338 fi
16339 done
16340 if test -z "$haveit"; then
16341 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16342 fi
16343 done
c823f118 16344
b66977f1 16345
5053a6d1
DWT
16346 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16347 haveit=
16348 for x in $LIBS; do
16349
16350 acl_save_prefix="$prefix"
16351 prefix="$acl_final_prefix"
16352 acl_save_exec_prefix="$exec_prefix"
16353 exec_prefix="$acl_final_exec_prefix"
16354 eval x=\"$x\"
16355 exec_prefix="$acl_save_exec_prefix"
16356 prefix="$acl_save_prefix"
16357
16358 if test "X$x" = "X$element"; then
16359 haveit=yes
16360 break
16361 fi
16362 done
16363 if test -z "$haveit"; then
16364 LIBS="${LIBS}${LIBS:+ }$element"
16365 fi
16366 done
16367
16368
16369fi
16370
16371 ;; #(
16372 no) :
16373
16374 CY_EXECUTE=0
16375
16376 ;; #(
16377 JavaScriptCore) :
b66977f1
DWT
16378
16379
16380
16381pkg_failed=no
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16383$as_echo_n "checking for WEBKIT... " >&6; }
16384
12833ad8
JF
16385if test -n "$WEBKIT_CFLAGS"; then
16386 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16387 elif test -n "$PKG_CONFIG"; then
16388 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16390 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16391 ac_status=$?
16392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16393 test $ac_status = 0; }; then
16394 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
ee134472 16395 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
16396else
16397 pkg_failed=yes
16398fi
12833ad8
JF
16399 else
16400 pkg_failed=untried
b66977f1 16401fi
12833ad8
JF
16402if test -n "$WEBKIT_LIBS"; then
16403 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16404 elif test -n "$PKG_CONFIG"; then
16405 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16407 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; then
16411 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
ee134472 16412 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
16413else
16414 pkg_failed=yes
16415fi
12833ad8
JF
16416 else
16417 pkg_failed=untried
b66977f1
DWT
16418fi
16419
16420
16421
16422if test $pkg_failed = yes; then
12833ad8
JF
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424$as_echo "no" >&6; }
b66977f1
DWT
16425
16426if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16427 _pkg_short_errors_supported=yes
16428else
16429 _pkg_short_errors_supported=no
16430fi
16431 if test $_pkg_short_errors_supported = yes; then
ee134472 16432 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
b66977f1 16433 else
ee134472 16434 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
b66977f1
DWT
16435 fi
16436 # Put the nasty error message in config.log where it belongs
16437 echo "$WEBKIT_PKG_ERRORS" >&5
16438
b66977f1
DWT
16439
16440
16441pkg_failed=no
16442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16443$as_echo_n "checking for WEBKIT... " >&6; }
16444
12833ad8
JF
16445if test -n "$WEBKIT_CFLAGS"; then
16446 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16447 elif test -n "$PKG_CONFIG"; then
16448 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16450 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16451 ac_status=$?
16452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16453 test $ac_status = 0; }; then
16454 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
ee134472 16455 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
16456else
16457 pkg_failed=yes
16458fi
12833ad8
JF
16459 else
16460 pkg_failed=untried
b66977f1 16461fi
12833ad8
JF
16462if test -n "$WEBKIT_LIBS"; then
16463 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16464 elif test -n "$PKG_CONFIG"; then
16465 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16467 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16468 ac_status=$?
16469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16470 test $ac_status = 0; }; then
16471 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
ee134472 16472 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
16473else
16474 pkg_failed=yes
16475fi
12833ad8
JF
16476 else
16477 pkg_failed=untried
b66977f1
DWT
16478fi
16479
16480
16481
16482if test $pkg_failed = yes; then
12833ad8
JF
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484$as_echo "no" >&6; }
b66977f1
DWT
16485
16486if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16487 _pkg_short_errors_supported=yes
16488else
16489 _pkg_short_errors_supported=no
16490fi
16491 if test $_pkg_short_errors_supported = yes; then
ee134472 16492 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1 16493 else
ee134472 16494 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1
DWT
16495 fi
16496 # Put the nasty error message in config.log where it belongs
16497 echo "$WEBKIT_PKG_ERRORS" >&5
16498
b66977f1
DWT
16499
16500
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16502$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 16503if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
16504 $as_echo_n "(cached) " >&6
16505else
16506
16507 ac_check_framework_save_LIBS=$LIBS
16508 LIBS="-framework JavaScriptCore $LIBS"
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510/* end confdefs.h. */
16511
16512 #include <JavaScriptCore/JSBase.h>
16513
16514int
16515main ()
16516{
16517JSEvaluateScript(0, 0, 0, 0, 0, 0);
16518 ;
16519 return 0;
16520}
16521_ACEOF
16522if ac_fn_cxx_try_link "$LINENO"; then :
16523
16524 ac_cv_framework_JavaScriptCore=yes
16525
16526else
16527 ac_cv_framework_JavaScriptCore=no
16528fi
16529rm -f core conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531 LIBS=$ac_check_framework_save_LIBS
16532
16533fi
16534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16535$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16536 if test $ac_cv_framework_JavaScriptCore = yes; then :
16537
16538
16539 for element in "-framework JavaScriptCore $LIBS"; do
16540 haveit=
16541 for x in $LIBS; do
16542
16543 acl_save_prefix="$prefix"
16544 prefix="$acl_final_prefix"
16545 acl_save_exec_prefix="$exec_prefix"
16546 exec_prefix="$acl_final_exec_prefix"
16547 eval x=\"$x\"
16548 exec_prefix="$acl_save_exec_prefix"
16549 prefix="$acl_save_prefix"
16550
16551 if test "X$x" = "X$element"; then
16552 haveit=yes
16553 break
16554 fi
16555 done
16556 if test -z "$haveit"; then
16557 LIBS="${LIBS}${LIBS:+ }$element"
16558 fi
16559 done
16560
16561 CY_EXECUTE=1
16562
16563fi
16564
16565elif test $pkg_failed = untried; then
12833ad8
JF
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567$as_echo "no" >&6; }
b66977f1
DWT
16568
16569
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16571$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 16572if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
16573 $as_echo_n "(cached) " >&6
16574else
16575
16576 ac_check_framework_save_LIBS=$LIBS
16577 LIBS="-framework JavaScriptCore $LIBS"
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579/* end confdefs.h. */
16580
16581 #include <JavaScriptCore/JSBase.h>
16582
16583int
16584main ()
16585{
16586JSEvaluateScript(0, 0, 0, 0, 0, 0);
16587 ;
16588 return 0;
16589}
16590_ACEOF
16591if ac_fn_cxx_try_link "$LINENO"; then :
16592
16593 ac_cv_framework_JavaScriptCore=yes
16594
16595else
16596 ac_cv_framework_JavaScriptCore=no
16597fi
16598rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_framework_save_LIBS
16601
16602fi
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16604$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16605 if test $ac_cv_framework_JavaScriptCore = yes; then :
16606
16607
16608 for element in "-framework JavaScriptCore $LIBS"; do
16609 haveit=
16610 for x in $LIBS; do
16611
16612 acl_save_prefix="$prefix"
16613 prefix="$acl_final_prefix"
16614 acl_save_exec_prefix="$exec_prefix"
16615 exec_prefix="$acl_final_exec_prefix"
16616 eval x=\"$x\"
16617 exec_prefix="$acl_save_exec_prefix"
16618 prefix="$acl_save_prefix"
16619
16620 if test "X$x" = "X$element"; then
16621 haveit=yes
16622 break
16623 fi
16624 done
16625 if test -z "$haveit"; then
16626 LIBS="${LIBS}${LIBS:+ }$element"
16627 fi
16628 done
16629
16630 CY_EXECUTE=1
16631
16632fi
16633
16634else
16635 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16636 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638$as_echo "yes" >&6; }
16639
16640 CY_EXECUTE=1
16641
16642 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16643 haveit=
16644 for x in $CXXFLAGS; do
16645
16646 acl_save_prefix="$prefix"
16647 prefix="$acl_final_prefix"
16648 acl_save_exec_prefix="$exec_prefix"
16649 exec_prefix="$acl_final_exec_prefix"
16650 eval x=\"$x\"
16651 exec_prefix="$acl_save_exec_prefix"
16652 prefix="$acl_save_prefix"
16653
16654 if test "X$x" = "X$element"; then
16655 haveit=yes
16656 break
16657 fi
16658 done
16659 if test -z "$haveit"; then
16660 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16661 fi
16662 done
16663
16664
16665 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16666 haveit=
16667 for x in $LIBS; do
16668
16669 acl_save_prefix="$prefix"
16670 prefix="$acl_final_prefix"
16671 acl_save_exec_prefix="$exec_prefix"
16672 exec_prefix="$acl_final_exec_prefix"
16673 eval x=\"$x\"
16674 exec_prefix="$acl_save_exec_prefix"
16675 prefix="$acl_save_prefix"
16676
16677 if test "X$x" = "X$element"; then
16678 haveit=yes
16679 break
16680 fi
16681 done
16682 if test -z "$haveit"; then
16683 LIBS="${LIBS}${LIBS:+ }$element"
16684 fi
16685 done
16686
16687
16688fi
16689
16690elif test $pkg_failed = untried; then
12833ad8
JF
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692$as_echo "no" >&6; }
b66977f1
DWT
16693
16694
16695pkg_failed=no
16696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16697$as_echo_n "checking for WEBKIT... " >&6; }
16698
12833ad8
JF
16699if test -n "$WEBKIT_CFLAGS"; then
16700 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16701 elif test -n "$PKG_CONFIG"; then
16702 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16704 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16705 ac_status=$?
16706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16707 test $ac_status = 0; }; then
16708 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
ee134472 16709 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
16710else
16711 pkg_failed=yes
16712fi
12833ad8
JF
16713 else
16714 pkg_failed=untried
b66977f1 16715fi
12833ad8
JF
16716if test -n "$WEBKIT_LIBS"; then
16717 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16718 elif test -n "$PKG_CONFIG"; then
16719 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16721 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16722 ac_status=$?
16723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724 test $ac_status = 0; }; then
16725 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
ee134472 16726 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
16727else
16728 pkg_failed=yes
16729fi
12833ad8
JF
16730 else
16731 pkg_failed=untried
b66977f1
DWT
16732fi
16733
16734
16735
16736if test $pkg_failed = yes; then
12833ad8
JF
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738$as_echo "no" >&6; }
b66977f1
DWT
16739
16740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16741 _pkg_short_errors_supported=yes
16742else
16743 _pkg_short_errors_supported=no
16744fi
16745 if test $_pkg_short_errors_supported = yes; then
ee134472 16746 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1 16747 else
ee134472 16748 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1
DWT
16749 fi
16750 # Put the nasty error message in config.log where it belongs
16751 echo "$WEBKIT_PKG_ERRORS" >&5
16752
b66977f1
DWT
16753
16754
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16756$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 16757if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
16758 $as_echo_n "(cached) " >&6
16759else
16760
16761 ac_check_framework_save_LIBS=$LIBS
16762 LIBS="-framework JavaScriptCore $LIBS"
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764/* end confdefs.h. */
16765
16766 #include <JavaScriptCore/JSBase.h>
16767
16768int
16769main ()
16770{
16771JSEvaluateScript(0, 0, 0, 0, 0, 0);
16772 ;
16773 return 0;
16774}
16775_ACEOF
16776if ac_fn_cxx_try_link "$LINENO"; then :
16777
16778 ac_cv_framework_JavaScriptCore=yes
16779
16780else
16781 ac_cv_framework_JavaScriptCore=no
16782fi
16783rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16785 LIBS=$ac_check_framework_save_LIBS
16786
16787fi
16788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16789$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16790 if test $ac_cv_framework_JavaScriptCore = yes; then :
16791
16792
16793 for element in "-framework JavaScriptCore $LIBS"; do
16794 haveit=
16795 for x in $LIBS; 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 LIBS="${LIBS}${LIBS:+ }$element"
16812 fi
16813 done
16814
16815 CY_EXECUTE=1
16816
16817fi
16818
16819elif test $pkg_failed = untried; then
12833ad8
JF
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821$as_echo "no" >&6; }
b66977f1
DWT
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16825$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 16826if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
16827 $as_echo_n "(cached) " >&6
16828else
16829
16830 ac_check_framework_save_LIBS=$LIBS
16831 LIBS="-framework JavaScriptCore $LIBS"
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833/* end confdefs.h. */
16834
16835 #include <JavaScriptCore/JSBase.h>
16836
16837int
16838main ()
16839{
16840JSEvaluateScript(0, 0, 0, 0, 0, 0);
16841 ;
16842 return 0;
16843}
16844_ACEOF
16845if ac_fn_cxx_try_link "$LINENO"; then :
16846
16847 ac_cv_framework_JavaScriptCore=yes
16848
16849else
16850 ac_cv_framework_JavaScriptCore=no
16851fi
16852rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_framework_save_LIBS
16855
16856fi
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16858$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16859 if test $ac_cv_framework_JavaScriptCore = yes; then :
16860
16861
16862 for element in "-framework JavaScriptCore $LIBS"; do
16863 haveit=
16864 for x in $LIBS; do
16865
16866 acl_save_prefix="$prefix"
16867 prefix="$acl_final_prefix"
16868 acl_save_exec_prefix="$exec_prefix"
16869 exec_prefix="$acl_final_exec_prefix"
16870 eval x=\"$x\"
16871 exec_prefix="$acl_save_exec_prefix"
16872 prefix="$acl_save_prefix"
16873
16874 if test "X$x" = "X$element"; then
16875 haveit=yes
16876 break
16877 fi
16878 done
16879 if test -z "$haveit"; then
16880 LIBS="${LIBS}${LIBS:+ }$element"
16881 fi
16882 done
16883
16884 CY_EXECUTE=1
16885
16886fi
16887
16888else
16889 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16890 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16892$as_echo "yes" >&6; }
16893
16894 CY_EXECUTE=1
16895
16896 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16897 haveit=
16898 for x in $CXXFLAGS; do
16899
16900 acl_save_prefix="$prefix"
16901 prefix="$acl_final_prefix"
16902 acl_save_exec_prefix="$exec_prefix"
16903 exec_prefix="$acl_final_exec_prefix"
16904 eval x=\"$x\"
16905 exec_prefix="$acl_save_exec_prefix"
16906 prefix="$acl_save_prefix"
16907
16908 if test "X$x" = "X$element"; then
16909 haveit=yes
16910 break
16911 fi
16912 done
16913 if test -z "$haveit"; then
16914 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16915 fi
16916 done
16917
16918
16919 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16920 haveit=
16921 for x in $LIBS; do
16922
16923 acl_save_prefix="$prefix"
16924 prefix="$acl_final_prefix"
16925 acl_save_exec_prefix="$exec_prefix"
16926 exec_prefix="$acl_final_exec_prefix"
16927 eval x=\"$x\"
16928 exec_prefix="$acl_save_exec_prefix"
16929 prefix="$acl_save_prefix"
16930
16931 if test "X$x" = "X$element"; then
16932 haveit=yes
16933 break
16934 fi
16935 done
16936 if test -z "$haveit"; then
16937 LIBS="${LIBS}${LIBS:+ }$element"
16938 fi
16939 done
16940
16941
16942fi
16943
16944else
16945 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16946 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16948$as_echo "yes" >&6; }
16949
16950 CY_EXECUTE=1
16951
16952 for element in `$PKG_CONFIG --cflags webkit-1.0`; 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
16974
16975 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16976 haveit=
16977 for x in $LIBS; do
16978
16979 acl_save_prefix="$prefix"
16980 prefix="$acl_final_prefix"
16981 acl_save_exec_prefix="$exec_prefix"
16982 exec_prefix="$acl_final_exec_prefix"
16983 eval x=\"$x\"
16984 exec_prefix="$acl_save_exec_prefix"
16985 prefix="$acl_save_prefix"
16986
16987 if test "X$x" = "X$element"; then
16988 haveit=yes
16989 break
16990 fi
16991 done
16992 if test -z "$haveit"; then
16993 LIBS="${LIBS}${LIBS:+ }$element"
16994 fi
16995 done
16996
16997
16998fi
16999
b66977f1 17000 ;; #(
5053a6d1 17001 *) :
ee134472 17002 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
5053a6d1
DWT
17003esac
17004
17005else
b66977f1
DWT
17006
17007
17008
17009pkg_failed=no
17010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17011$as_echo_n "checking for WEBKIT... " >&6; }
17012
12833ad8
JF
17013if test -n "$WEBKIT_CFLAGS"; then
17014 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17015 elif test -n "$PKG_CONFIG"; then
17016 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17018 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17019 ac_status=$?
17020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021 test $ac_status = 0; }; then
17022 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
ee134472 17023 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
17024else
17025 pkg_failed=yes
17026fi
12833ad8
JF
17027 else
17028 pkg_failed=untried
b66977f1 17029fi
12833ad8
JF
17030if test -n "$WEBKIT_LIBS"; then
17031 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17032 elif test -n "$PKG_CONFIG"; then
17033 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17035 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; }; then
17039 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
ee134472 17040 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
17041else
17042 pkg_failed=yes
17043fi
12833ad8
JF
17044 else
17045 pkg_failed=untried
b66977f1
DWT
17046fi
17047
17048
17049
17050if test $pkg_failed = yes; then
12833ad8
JF
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052$as_echo "no" >&6; }
b66977f1
DWT
17053
17054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17055 _pkg_short_errors_supported=yes
17056else
17057 _pkg_short_errors_supported=no
17058fi
17059 if test $_pkg_short_errors_supported = yes; then
ee134472 17060 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0" 2>&1`
b66977f1 17061 else
ee134472 17062 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0" 2>&1`
b66977f1
DWT
17063 fi
17064 # Put the nasty error message in config.log where it belongs
17065 echo "$WEBKIT_PKG_ERRORS" >&5
17066
b66977f1
DWT
17067
17068
17069pkg_failed=no
17070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17071$as_echo_n "checking for WEBKIT... " >&6; }
17072
12833ad8
JF
17073if test -n "$WEBKIT_CFLAGS"; then
17074 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17075 elif test -n "$PKG_CONFIG"; then
17076 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17078 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17079 ac_status=$?
17080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17081 test $ac_status = 0; }; then
17082 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
ee134472 17083 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
17084else
17085 pkg_failed=yes
17086fi
12833ad8
JF
17087 else
17088 pkg_failed=untried
b66977f1 17089fi
12833ad8
JF
17090if test -n "$WEBKIT_LIBS"; then
17091 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17092 elif test -n "$PKG_CONFIG"; then
17093 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17095 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17096 ac_status=$?
17097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17098 test $ac_status = 0; }; then
17099 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
ee134472 17100 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
17101else
17102 pkg_failed=yes
17103fi
12833ad8
JF
17104 else
17105 pkg_failed=untried
b66977f1
DWT
17106fi
17107
17108
17109
17110if test $pkg_failed = yes; then
12833ad8
JF
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112$as_echo "no" >&6; }
b66977f1
DWT
17113
17114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17115 _pkg_short_errors_supported=yes
17116else
17117 _pkg_short_errors_supported=no
17118fi
17119 if test $_pkg_short_errors_supported = yes; then
ee134472 17120 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1 17121 else
ee134472 17122 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1
DWT
17123 fi
17124 # Put the nasty error message in config.log where it belongs
17125 echo "$WEBKIT_PKG_ERRORS" >&5
17126
b66977f1
DWT
17127
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17130$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17131if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17132 $as_echo_n "(cached) " >&6
17133else
17134
17135 ac_check_framework_save_LIBS=$LIBS
17136 LIBS="-framework JavaScriptCore $LIBS"
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h. */
17139
17140 #include <JavaScriptCore/JSBase.h>
17141
17142int
17143main ()
17144{
17145JSEvaluateScript(0, 0, 0, 0, 0, 0);
17146 ;
17147 return 0;
17148}
17149_ACEOF
17150if ac_fn_cxx_try_link "$LINENO"; then :
17151
17152 ac_cv_framework_JavaScriptCore=yes
17153
17154else
17155 ac_cv_framework_JavaScriptCore=no
17156fi
17157rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159 LIBS=$ac_check_framework_save_LIBS
17160
17161fi
17162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17163$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17164 if test $ac_cv_framework_JavaScriptCore = yes; then :
17165
17166
17167 for element in "-framework JavaScriptCore $LIBS"; do
17168 haveit=
17169 for x in $LIBS; do
17170
17171 acl_save_prefix="$prefix"
17172 prefix="$acl_final_prefix"
17173 acl_save_exec_prefix="$exec_prefix"
17174 exec_prefix="$acl_final_exec_prefix"
17175 eval x=\"$x\"
17176 exec_prefix="$acl_save_exec_prefix"
17177 prefix="$acl_save_prefix"
17178
17179 if test "X$x" = "X$element"; then
17180 haveit=yes
17181 break
17182 fi
17183 done
17184 if test -z "$haveit"; then
17185 LIBS="${LIBS}${LIBS:+ }$element"
17186 fi
17187 done
17188
17189 CY_EXECUTE=1
17190
17191fi
17192
17193elif test $pkg_failed = untried; then
12833ad8
JF
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17195$as_echo "no" >&6; }
b66977f1
DWT
17196
17197
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17199$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17200if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17201 $as_echo_n "(cached) " >&6
17202else
17203
17204 ac_check_framework_save_LIBS=$LIBS
17205 LIBS="-framework JavaScriptCore $LIBS"
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h. */
17208
17209 #include <JavaScriptCore/JSBase.h>
17210
17211int
17212main ()
17213{
17214JSEvaluateScript(0, 0, 0, 0, 0, 0);
17215 ;
17216 return 0;
17217}
17218_ACEOF
17219if ac_fn_cxx_try_link "$LINENO"; then :
17220
17221 ac_cv_framework_JavaScriptCore=yes
17222
17223else
17224 ac_cv_framework_JavaScriptCore=no
17225fi
17226rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17228 LIBS=$ac_check_framework_save_LIBS
17229
17230fi
17231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17232$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17233 if test $ac_cv_framework_JavaScriptCore = yes; then :
17234
17235
17236 for element in "-framework JavaScriptCore $LIBS"; do
17237 haveit=
17238 for x in $LIBS; do
17239
17240 acl_save_prefix="$prefix"
17241 prefix="$acl_final_prefix"
17242 acl_save_exec_prefix="$exec_prefix"
17243 exec_prefix="$acl_final_exec_prefix"
17244 eval x=\"$x\"
17245 exec_prefix="$acl_save_exec_prefix"
17246 prefix="$acl_save_prefix"
17247
17248 if test "X$x" = "X$element"; then
17249 haveit=yes
17250 break
17251 fi
17252 done
17253 if test -z "$haveit"; then
17254 LIBS="${LIBS}${LIBS:+ }$element"
17255 fi
17256 done
17257
17258 CY_EXECUTE=1
17259
17260fi
17261
17262else
17263 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17264 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17266$as_echo "yes" >&6; }
17267
17268 CY_EXECUTE=1
17269
17270 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17271 haveit=
17272 for x in $CXXFLAGS; do
17273
17274 acl_save_prefix="$prefix"
17275 prefix="$acl_final_prefix"
17276 acl_save_exec_prefix="$exec_prefix"
17277 exec_prefix="$acl_final_exec_prefix"
17278 eval x=\"$x\"
17279 exec_prefix="$acl_save_exec_prefix"
17280 prefix="$acl_save_prefix"
17281
17282 if test "X$x" = "X$element"; then
17283 haveit=yes
17284 break
17285 fi
17286 done
17287 if test -z "$haveit"; then
17288 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17289 fi
17290 done
17291
17292
17293 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17294 haveit=
17295 for x in $LIBS; do
17296
17297 acl_save_prefix="$prefix"
17298 prefix="$acl_final_prefix"
17299 acl_save_exec_prefix="$exec_prefix"
17300 exec_prefix="$acl_final_exec_prefix"
17301 eval x=\"$x\"
17302 exec_prefix="$acl_save_exec_prefix"
17303 prefix="$acl_save_prefix"
17304
17305 if test "X$x" = "X$element"; then
17306 haveit=yes
17307 break
17308 fi
17309 done
17310 if test -z "$haveit"; then
17311 LIBS="${LIBS}${LIBS:+ }$element"
17312 fi
17313 done
17314
17315
17316fi
17317
17318elif test $pkg_failed = untried; then
12833ad8
JF
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320$as_echo "no" >&6; }
b66977f1
DWT
17321
17322
17323pkg_failed=no
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17325$as_echo_n "checking for WEBKIT... " >&6; }
17326
12833ad8
JF
17327if test -n "$WEBKIT_CFLAGS"; then
17328 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17329 elif test -n "$PKG_CONFIG"; then
17330 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17332 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17333 ac_status=$?
17334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17335 test $ac_status = 0; }; then
17336 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
ee134472 17337 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
17338else
17339 pkg_failed=yes
17340fi
12833ad8
JF
17341 else
17342 pkg_failed=untried
b66977f1 17343fi
12833ad8
JF
17344if test -n "$WEBKIT_LIBS"; then
17345 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17346 elif test -n "$PKG_CONFIG"; then
17347 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
17348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17349 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17350 ac_status=$?
17351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17352 test $ac_status = 0; }; then
17353 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
ee134472 17354 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
17355else
17356 pkg_failed=yes
17357fi
12833ad8
JF
17358 else
17359 pkg_failed=untried
b66977f1
DWT
17360fi
17361
17362
17363
17364if test $pkg_failed = yes; then
12833ad8
JF
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17366$as_echo "no" >&6; }
b66977f1
DWT
17367
17368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17369 _pkg_short_errors_supported=yes
17370else
17371 _pkg_short_errors_supported=no
17372fi
17373 if test $_pkg_short_errors_supported = yes; then
ee134472 17374 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1 17375 else
ee134472 17376 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "WebKitGtk" 2>&1`
b66977f1
DWT
17377 fi
17378 # Put the nasty error message in config.log where it belongs
17379 echo "$WEBKIT_PKG_ERRORS" >&5
17380
b66977f1
DWT
17381
17382
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17384$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17385if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17386 $as_echo_n "(cached) " >&6
17387else
17388
17389 ac_check_framework_save_LIBS=$LIBS
17390 LIBS="-framework JavaScriptCore $LIBS"
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392/* end confdefs.h. */
17393
17394 #include <JavaScriptCore/JSBase.h>
17395
17396int
17397main ()
17398{
17399JSEvaluateScript(0, 0, 0, 0, 0, 0);
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404if ac_fn_cxx_try_link "$LINENO"; then :
17405
17406 ac_cv_framework_JavaScriptCore=yes
17407
17408else
17409 ac_cv_framework_JavaScriptCore=no
17410fi
17411rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_framework_save_LIBS
17414
17415fi
17416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17417$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17418 if test $ac_cv_framework_JavaScriptCore = yes; then :
17419
17420
17421 for element in "-framework JavaScriptCore $LIBS"; do
17422 haveit=
17423 for x in $LIBS; do
17424
17425 acl_save_prefix="$prefix"
17426 prefix="$acl_final_prefix"
17427 acl_save_exec_prefix="$exec_prefix"
17428 exec_prefix="$acl_final_exec_prefix"
17429 eval x=\"$x\"
17430 exec_prefix="$acl_save_exec_prefix"
17431 prefix="$acl_save_prefix"
17432
17433 if test "X$x" = "X$element"; then
17434 haveit=yes
17435 break
17436 fi
17437 done
17438 if test -z "$haveit"; then
17439 LIBS="${LIBS}${LIBS:+ }$element"
17440 fi
17441 done
17442
17443 CY_EXECUTE=1
17444
17445fi
17446
17447elif test $pkg_failed = untried; then
12833ad8
JF
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17449$as_echo "no" >&6; }
b66977f1
DWT
17450
17451
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17453$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 17454if ${ac_cv_framework_JavaScriptCore+:} false; then :
b66977f1
DWT
17455 $as_echo_n "(cached) " >&6
17456else
17457
17458 ac_check_framework_save_LIBS=$LIBS
17459 LIBS="-framework JavaScriptCore $LIBS"
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461/* end confdefs.h. */
17462
17463 #include <JavaScriptCore/JSBase.h>
17464
17465int
17466main ()
17467{
17468JSEvaluateScript(0, 0, 0, 0, 0, 0);
17469 ;
17470 return 0;
17471}
17472_ACEOF
17473if ac_fn_cxx_try_link "$LINENO"; then :
17474
17475 ac_cv_framework_JavaScriptCore=yes
17476
17477else
17478 ac_cv_framework_JavaScriptCore=no
17479fi
17480rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_framework_save_LIBS
17483
17484fi
17485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17486$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17487 if test $ac_cv_framework_JavaScriptCore = yes; then :
17488
17489
17490 for element in "-framework JavaScriptCore $LIBS"; do
17491 haveit=
17492 for x in $LIBS; do
17493
17494 acl_save_prefix="$prefix"
17495 prefix="$acl_final_prefix"
17496 acl_save_exec_prefix="$exec_prefix"
17497 exec_prefix="$acl_final_exec_prefix"
17498 eval x=\"$x\"
17499 exec_prefix="$acl_save_exec_prefix"
17500 prefix="$acl_save_prefix"
17501
17502 if test "X$x" = "X$element"; then
17503 haveit=yes
17504 break
17505 fi
17506 done
17507 if test -z "$haveit"; then
17508 LIBS="${LIBS}${LIBS:+ }$element"
17509 fi
17510 done
17511
17512 CY_EXECUTE=1
17513
17514fi
17515
17516else
17517 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17518 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17520$as_echo "yes" >&6; }
17521
17522 CY_EXECUTE=1
17523
17524 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17525 haveit=
17526 for x in $CXXFLAGS; do
17527
17528 acl_save_prefix="$prefix"
17529 prefix="$acl_final_prefix"
17530 acl_save_exec_prefix="$exec_prefix"
17531 exec_prefix="$acl_final_exec_prefix"
17532 eval x=\"$x\"
17533 exec_prefix="$acl_save_exec_prefix"
17534 prefix="$acl_save_prefix"
17535
17536 if test "X$x" = "X$element"; then
17537 haveit=yes
17538 break
17539 fi
17540 done
17541 if test -z "$haveit"; then
17542 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17543 fi
17544 done
17545
17546
17547 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17548 haveit=
17549 for x in $LIBS; do
17550
17551 acl_save_prefix="$prefix"
17552 prefix="$acl_final_prefix"
17553 acl_save_exec_prefix="$exec_prefix"
17554 exec_prefix="$acl_final_exec_prefix"
17555 eval x=\"$x\"
17556 exec_prefix="$acl_save_exec_prefix"
17557 prefix="$acl_save_prefix"
17558
17559 if test "X$x" = "X$element"; then
17560 haveit=yes
17561 break
17562 fi
17563 done
17564 if test -z "$haveit"; then
17565 LIBS="${LIBS}${LIBS:+ }$element"
17566 fi
17567 done
17568
17569
17570fi
17571
17572else
17573 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17574 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576$as_echo "yes" >&6; }
17577
17578 CY_EXECUTE=1
17579
17580 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17581 haveit=
17582 for x in $CXXFLAGS; do
17583
17584 acl_save_prefix="$prefix"
17585 prefix="$acl_final_prefix"
17586 acl_save_exec_prefix="$exec_prefix"
17587 exec_prefix="$acl_final_exec_prefix"
17588 eval x=\"$x\"
17589 exec_prefix="$acl_save_exec_prefix"
17590 prefix="$acl_save_prefix"
17591
17592 if test "X$x" = "X$element"; then
17593 haveit=yes
17594 break
17595 fi
17596 done
17597 if test -z "$haveit"; then
17598 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17599 fi
17600 done
17601
17602
17603 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17604 haveit=
17605 for x in $LIBS; do
17606
17607 acl_save_prefix="$prefix"
17608 prefix="$acl_final_prefix"
17609 acl_save_exec_prefix="$exec_prefix"
17610 exec_prefix="$acl_final_exec_prefix"
17611 eval x=\"$x\"
17612 exec_prefix="$acl_save_exec_prefix"
17613 prefix="$acl_save_prefix"
17614
17615 if test "X$x" = "X$element"; then
17616 haveit=yes
17617 break
17618 fi
17619 done
17620 if test -z "$haveit"; then
17621 LIBS="${LIBS}${LIBS:+ }$element"
17622 fi
17623 done
17624
17625
17626fi
5053a6d1
DWT
17627
17628
9c60689e
DWT
17629fi
17630
5053a6d1 17631
058f1bc8 17632
e5cca37d 17633
5053a6d1
DWT
17634case $CY_EXECUTE in #(
17635 1) :
17636
9c60689e 17637
e5cca37d
DWT
17638 for ac_header in ffi.h ffi/ffi.h
17639do :
17640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17641ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 17642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e5cca37d
DWT
17643 cat >>confdefs.h <<_ACEOF
17644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17645_ACEOF
17646 break
17647fi
17648
17649done
17650
17651 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17652
17653
9c60689e
DWT
17654
17655pkg_failed=no
5053a6d1
DWT
17656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17657$as_echo_n "checking for LIBFFI... " >&6; }
9c60689e 17658
12833ad8
JF
17659if test -n "$LIBFFI_CFLAGS"; then
17660 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17661 elif test -n "$PKG_CONFIG"; then
17662 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17664 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
17665 ac_status=$?
17666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17667 test $ac_status = 0; }; then
5053a6d1 17668 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
ee134472 17669 test "x$?" != "x0" && pkg_failed=yes
9c60689e
DWT
17670else
17671 pkg_failed=yes
17672fi
12833ad8
JF
17673 else
17674 pkg_failed=untried
9c60689e 17675fi
12833ad8
JF
17676if test -n "$LIBFFI_LIBS"; then
17677 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17678 elif test -n "$PKG_CONFIG"; then
17679 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
17680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17681 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
17682 ac_status=$?
17683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684 test $ac_status = 0; }; then
5053a6d1 17685 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
ee134472 17686 test "x$?" != "x0" && pkg_failed=yes
9c60689e
DWT
17687else
17688 pkg_failed=yes
17689fi
12833ad8
JF
17690 else
17691 pkg_failed=untried
9c60689e
DWT
17692fi
17693
17694
17695
17696if test $pkg_failed = yes; then
12833ad8
JF
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698$as_echo "no" >&6; }
9c60689e
DWT
17699
17700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17701 _pkg_short_errors_supported=yes
17702else
17703 _pkg_short_errors_supported=no
17704fi
17705 if test $_pkg_short_errors_supported = yes; then
ee134472 17706 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
9c60689e 17707 else
ee134472 17708 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
9c60689e
DWT
17709 fi
17710 # Put the nasty error message in config.log where it belongs
5053a6d1 17711 echo "$LIBFFI_PKG_ERRORS" >&5
9c60689e 17712
b128dfee 17713
12833ad8 17714 as_fn_error $? "You need libffi" "$LINENO" 5
5053a6d1 17715
e5cca37d 17716elif test $pkg_failed = untried; then
12833ad8
JF
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718$as_echo "no" >&6; }
e5cca37d 17719
12833ad8 17720 as_fn_error $? "You need libffi" "$LINENO" 5
e5cca37d
DWT
17721
17722else
17723 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17724 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17726$as_echo "yes" >&6; }
17727
17728
17729 for element in `$PKG_CONFIG --cflags libffi`; do
17730 haveit=
17731 for x in $CXXFLAGS; do
17732
17733 acl_save_prefix="$prefix"
17734 prefix="$acl_final_prefix"
17735 acl_save_exec_prefix="$exec_prefix"
17736 exec_prefix="$acl_final_exec_prefix"
17737 eval x=\"$x\"
17738 exec_prefix="$acl_save_exec_prefix"
17739 prefix="$acl_save_prefix"
17740
17741 if test "X$x" = "X$element"; then
17742 haveit=yes
17743 break
17744 fi
17745 done
17746 if test -z "$haveit"; then
17747 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17748 fi
17749 done
c823f118 17750
5053a6d1 17751
e5cca37d
DWT
17752 for element in `$PKG_CONFIG --libs libffi`; do
17753 haveit=
17754 for x in $LIBS; do
17755
17756 acl_save_prefix="$prefix"
17757 prefix="$acl_final_prefix"
17758 acl_save_exec_prefix="$exec_prefix"
17759 exec_prefix="$acl_final_exec_prefix"
17760 eval x=\"$x\"
17761 exec_prefix="$acl_save_exec_prefix"
17762 prefix="$acl_save_prefix"
17763
17764 if test "X$x" = "X$element"; then
17765 haveit=yes
17766 break
17767 fi
17768 done
17769 if test -z "$haveit"; then
17770 LIBS="${LIBS}${LIBS:+ }$element"
17771 fi
17772 done
17773
5053a6d1
DWT
17774
17775fi
e5cca37d
DWT
17776
17777
17778else
17779
5053a6d1
DWT
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17781$as_echo_n "checking for library containing ffi_call... " >&6; }
ee134472 17782if ${ac_cv_search_ffi_call+:} false; then :
c823f118
DWT
17783 $as_echo_n "(cached) " >&6
17784else
5053a6d1
DWT
17785 ac_func_search_save_LIBS=$LIBS
17786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
17787/* end confdefs.h. */
17788
5053a6d1
DWT
17789/* Override any GCC internal prototype to avoid an error.
17790 Use char because int might match the return type of a GCC
17791 builtin and then its argument prototype would still apply. */
17792#ifdef __cplusplus
17793extern "C"
17794#endif
17795char ffi_call ();
c823f118
DWT
17796int
17797main ()
17798{
5053a6d1 17799return ffi_call ();
c823f118
DWT
17800 ;
17801 return 0;
17802}
b128dfee 17803_ACEOF
5053a6d1
DWT
17804for ac_lib in '' ffi; do
17805 if test -z "$ac_lib"; then
17806 ac_res="none required"
17807 else
17808 ac_res=-l$ac_lib
17809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17810 fi
17811 if ac_fn_cxx_try_link "$LINENO"; then :
17812 ac_cv_search_ffi_call=$ac_res
c823f118
DWT
17813fi
17814rm -f core conftest.err conftest.$ac_objext \
5053a6d1 17815 conftest$ac_exeext
ee134472 17816 if ${ac_cv_search_ffi_call+:} false; then :
5053a6d1 17817 break
b128dfee 17818fi
5053a6d1 17819done
ee134472 17820if ${ac_cv_search_ffi_call+:} false; then :
b128dfee 17821
5053a6d1
DWT
17822else
17823 ac_cv_search_ffi_call=no
17824fi
17825rm conftest.$ac_ext
17826LIBS=$ac_func_search_save_LIBS
17827fi
17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17829$as_echo "$ac_cv_search_ffi_call" >&6; }
17830ac_res=$ac_cv_search_ffi_call
17831if test "$ac_res" != no; then :
17832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b128dfee 17833
5053a6d1 17834fi
c823f118 17835
5053a6d1
DWT
17836 case $ac_cv_search_ffi_call in #(
17837 no) :
c823f118 17838
c823f118 17839
e5cca37d
DWT
17840pkg_failed=no
17841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17842$as_echo_n "checking for LIBFFI... " >&6; }
c823f118 17843
12833ad8
JF
17844if test -n "$LIBFFI_CFLAGS"; then
17845 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17846 elif test -n "$PKG_CONFIG"; then
17847 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
17848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17849 ($PKG_CONFIG --exists --print-errors "libffi") 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_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
ee134472 17854 test "x$?" != "x0" && pkg_failed=yes
e5cca37d
DWT
17855else
17856 pkg_failed=yes
c823f118 17857fi
12833ad8
JF
17858 else
17859 pkg_failed=untried
5053a6d1 17860fi
12833ad8
JF
17861if test -n "$LIBFFI_LIBS"; then
17862 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17863 elif test -n "$PKG_CONFIG"; then
17864 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
17865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17866 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17867 ac_status=$?
17868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17869 test $ac_status = 0; }; then
17870 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
ee134472 17871 test "x$?" != "x0" && pkg_failed=yes
c823f118 17872else
e5cca37d 17873 pkg_failed=yes
632b71ea 17874fi
12833ad8
JF
17875 else
17876 pkg_failed=untried
632b71ea 17877fi
3fd51f51 17878
e5cca37d
DWT
17879
17880
17881if test $pkg_failed = yes; then
12833ad8
JF
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17883$as_echo "no" >&6; }
e5cca37d
DWT
17884
17885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17886 _pkg_short_errors_supported=yes
5053a6d1 17887else
e5cca37d 17888 _pkg_short_errors_supported=no
5053a6d1 17889fi
e5cca37d 17890 if test $_pkg_short_errors_supported = yes; then
ee134472 17891 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
e5cca37d 17892 else
ee134472 17893 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
e5cca37d
DWT
17894 fi
17895 # Put the nasty error message in config.log where it belongs
17896 echo "$LIBFFI_PKG_ERRORS" >&5
3fd51f51 17897
3fd51f51 17898
12833ad8 17899 as_fn_error $? "You need libffi" "$LINENO" 5
3fd51f51 17900
e5cca37d 17901elif test $pkg_failed = untried; then
12833ad8
JF
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17903$as_echo "no" >&6; }
e5cca37d 17904
12833ad8 17905 as_fn_error $? "You need libffi" "$LINENO" 5
9c60689e
DWT
17906
17907else
5053a6d1
DWT
17908 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17909 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
9c60689e
DWT
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911$as_echo "yes" >&6; }
3fd51f51 17912
3fd51f51 17913
5053a6d1 17914 for element in `$PKG_CONFIG --cflags libffi`; do
3fd51f51
DWT
17915 haveit=
17916 for x in $CXXFLAGS; do
17917
17918 acl_save_prefix="$prefix"
17919 prefix="$acl_final_prefix"
17920 acl_save_exec_prefix="$exec_prefix"
17921 exec_prefix="$acl_final_exec_prefix"
17922 eval x=\"$x\"
17923 exec_prefix="$acl_save_exec_prefix"
17924 prefix="$acl_save_prefix"
17925
17926 if test "X$x" = "X$element"; then
17927 haveit=yes
17928 break
17929 fi
17930 done
17931 if test -z "$haveit"; then
17932 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17933 fi
17934 done
17935
17936
5053a6d1 17937 for element in `$PKG_CONFIG --libs libffi`; do
3fd51f51
DWT
17938 haveit=
17939 for x in $LIBS; do
17940
17941 acl_save_prefix="$prefix"
17942 prefix="$acl_final_prefix"
17943 acl_save_exec_prefix="$exec_prefix"
17944 exec_prefix="$acl_final_exec_prefix"
17945 eval x=\"$x\"
17946 exec_prefix="$acl_save_exec_prefix"
17947 prefix="$acl_save_prefix"
17948
17949 if test "X$x" = "X$element"; then
17950 haveit=yes
17951 break
17952 fi
17953 done
17954 if test -z "$haveit"; then
17955 LIBS="${LIBS}${LIBS:+ }$element"
17956 fi
17957 done
17958
17959
e5cca37d
DWT
17960fi
17961 ;; #(
17962 *) :
17963 ;;
17964esac
17965
9c60689e 17966fi
5053a6d1
DWT
17967 ac_ext=mm
17968ac_cpp='$OBJCXXCPP $CPPFLAGS'
17969ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a667869d 17972
5053a6d1
DWT
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17974$as_echo_n "checking if we really have Objective C++... " >&6; }
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976/* end confdefs.h. */
9c60689e 17977
5053a6d1 17978 // This space intentionally left blank
a667869d 17979
5053a6d1
DWT
17980_ACEOF
17981if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 17982
5053a6d1
DWT
17983 CY_OBJECTIVEC=1
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17985$as_echo "yes" >&6; }
632b71ea 17986
632b71ea 17987else
5053a6d1 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
632b71ea 17989$as_echo "no" >&6; }
5053a6d1
DWT
17990fi
17991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17992 if test "x$CY_OBJECTIVEC" = x1; then :
9c60689e 17993
632b71ea 17994
5053a6d1
DWT
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
17996$as_echo_n "checking for framework CoreFoundation... " >&6; }
ee134472 17997if ${ac_cv_framework_CoreFoundation+:} false; then :
9c60689e
DWT
17998 $as_echo_n "(cached) " >&6
17999else
632b71ea
DWT
18000
18001 ac_check_framework_save_LIBS=$LIBS
5053a6d1 18002 LIBS="-framework CoreFoundation $LIBS"
632b71ea 18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
18004/* end confdefs.h. */
18005
5053a6d1 18006 #include <CoreFoundation/CFBase.h>
632b71ea 18007
9c60689e
DWT
18008int
18009main ()
18010{
5053a6d1 18011CFAllocatorGetDefault();
9c60689e
DWT
18012 ;
18013 return 0;
18014}
18015_ACEOF
5053a6d1 18016if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 18017
5053a6d1 18018 ac_cv_framework_CoreFoundation=yes
632b71ea 18019
9c60689e 18020else
5053a6d1 18021 ac_cv_framework_CoreFoundation=no
9c60689e 18022fi
632b71ea
DWT
18023rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_framework_save_LIBS
9c60689e
DWT
18026
18027fi
5053a6d1
DWT
18028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18029$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18030 if test $ac_cv_framework_CoreFoundation = yes; then :
632b71ea
DWT
18031
18032
5053a6d1 18033 for element in "-framework CoreFoundation $LIBS"; do
632b71ea
DWT
18034 haveit=
18035 for x in $LIBS; do
18036
18037 acl_save_prefix="$prefix"
18038 prefix="$acl_final_prefix"
18039 acl_save_exec_prefix="$exec_prefix"
18040 exec_prefix="$acl_final_exec_prefix"
18041 eval x=\"$x\"
18042 exec_prefix="$acl_save_exec_prefix"
18043 prefix="$acl_save_prefix"
18044
18045 if test "X$x" = "X$element"; then
18046 haveit=yes
18047 break
18048 fi
18049 done
18050 if test -z "$haveit"; then
18051 LIBS="${LIBS}${LIBS:+ }$element"
18052 fi
18053 done
18054
632b71ea 18055
632b71ea 18056
632b71ea
DWT
18057
18058
5053a6d1
DWT
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18060$as_echo_n "checking for framework Foundation... " >&6; }
ee134472 18061if ${ac_cv_framework_Foundation+:} false; then :
a667869d
DWT
18062 $as_echo_n "(cached) " >&6
18063else
632b71ea
DWT
18064
18065 ac_check_framework_save_LIBS=$LIBS
5053a6d1 18066 LIBS="-framework Foundation $LIBS"
632b71ea 18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a667869d
DWT
18068/* end confdefs.h. */
18069
5053a6d1 18070 #include <Foundation/NSObject.h>
632b71ea 18071
a667869d
DWT
18072int
18073main ()
18074{
5053a6d1 18075[[NSObject alloc] init];
a667869d
DWT
18076 ;
18077 return 0;
18078}
18079_ACEOF
5053a6d1 18080if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 18081
5053a6d1 18082 ac_cv_framework_Foundation=yes
632b71ea 18083
a667869d 18084else
5053a6d1 18085 ac_cv_framework_Foundation=no
632b71ea
DWT
18086fi
18087rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 LIBS=$ac_check_framework_save_LIBS
a667869d 18090
632b71ea 18091fi
5053a6d1
DWT
18092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18093$as_echo "$ac_cv_framework_Foundation" >&6; }
18094 if test $ac_cv_framework_Foundation = yes; then :
a667869d 18095
a667869d 18096
5053a6d1 18097 for element in "-framework Foundation $LIBS"; do
632b71ea
DWT
18098 haveit=
18099 for x in $LIBS; do
a667869d 18100
632b71ea
DWT
18101 acl_save_prefix="$prefix"
18102 prefix="$acl_final_prefix"
18103 acl_save_exec_prefix="$exec_prefix"
18104 exec_prefix="$acl_final_exec_prefix"
18105 eval x=\"$x\"
18106 exec_prefix="$acl_save_exec_prefix"
18107 prefix="$acl_save_prefix"
18108
18109 if test "X$x" = "X$element"; then
18110 haveit=yes
18111 break
18112 fi
18113 done
18114 if test -z "$haveit"; then
18115 LIBS="${LIBS}${LIBS:+ }$element"
18116 fi
18117 done
18118
5053a6d1
DWT
18119 cat >>confdefs.h <<_ACEOF
18120#define HAVE_FRAMEWORK_FOUNDATION 1
18121_ACEOF
18122
a667869d 18123
a667869d 18124fi
632b71ea 18125
5053a6d1
DWT
18126
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18128$as_echo_n "checking for framework WebKit... " >&6; }
ee134472 18129if ${ac_cv_framework_WebKit+:} false; then :
5053a6d1 18130 $as_echo_n "(cached) " >&6
a667869d 18131else
632b71ea 18132
5053a6d1
DWT
18133 ac_check_framework_save_LIBS=$LIBS
18134 LIBS="-framework WebKit $LIBS"
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136/* end confdefs.h. */
632b71ea 18137
5053a6d1 18138 #include <WebKit/WebScriptObject.h>
632b71ea 18139
5053a6d1
DWT
18140int
18141main ()
18142{
18143[[WebScriptObject alloc] init];
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 18149
5053a6d1 18150 ac_cv_framework_WebKit=yes
632b71ea 18151
5053a6d1
DWT
18152else
18153 ac_cv_framework_WebKit=no
18154fi
18155rm -f core conftest.err conftest.$ac_objext \
18156 conftest$ac_exeext conftest.$ac_ext
18157 LIBS=$ac_check_framework_save_LIBS
632b71ea 18158
5053a6d1
DWT
18159fi
18160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18161$as_echo "$ac_cv_framework_WebKit" >&6; }
18162 if test $ac_cv_framework_WebKit = yes; then :
18163
18164
18165 for element in "-framework WebKit $LIBS"; do
632b71ea
DWT
18166 haveit=
18167 for x in $LIBS; do
18168
18169 acl_save_prefix="$prefix"
18170 prefix="$acl_final_prefix"
18171 acl_save_exec_prefix="$exec_prefix"
18172 exec_prefix="$acl_final_exec_prefix"
18173 eval x=\"$x\"
18174 exec_prefix="$acl_save_exec_prefix"
18175 prefix="$acl_save_prefix"
18176
18177 if test "X$x" = "X$element"; then
18178 haveit=yes
18179 break
18180 fi
18181 done
18182 if test -z "$haveit"; then
18183 LIBS="${LIBS}${LIBS:+ }$element"
18184 fi
18185 done
18186
5053a6d1
DWT
18187 cat >>confdefs.h <<_ACEOF
18188#define HAVE_FRAMEWORK_WEBKIT 1
18189_ACEOF
18190
18191
18192fi
18193
18194
18195else
18196
18197
18198 for ac_prog in gnustep-config
18199do
18200 # Extract the first word of "$ac_prog", so it can be a program name with args.
18201set dummy $ac_prog; ac_word=$2
18202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18203$as_echo_n "checking for $ac_word... " >&6; }
ee134472 18204if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
5053a6d1
DWT
18205 $as_echo_n "(cached) " >&6
18206else
18207 if test -n "$GNUSTEP_CONFIG"; then
18208 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18209else
18210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18211for as_dir in $PATH
18212do
18213 IFS=$as_save_IFS
18214 test -z "$as_dir" && as_dir=.
18215 for ac_exec_ext in '' $ac_executable_extensions; do
18216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18217 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18219 break 2
18220 fi
18221done
18222 done
18223IFS=$as_save_IFS
18224
18225fi
18226fi
18227GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18228if test -n "$GNUSTEP_CONFIG"; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18230$as_echo "$GNUSTEP_CONFIG" >&6; }
18231else
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233$as_echo "no" >&6; }
18234fi
18235
18236
18237 test -n "$GNUSTEP_CONFIG" && break
18238done
632b71ea 18239
5053a6d1 18240 if test "x$GNUSTEP_CONFIG" != x; then :
a667869d 18241
632b71ea 18242
632b71ea 18243
5053a6d1 18244 for element in `$GNUSTEP_CONFIG --objc-flags`; do
632b71ea 18245 haveit=
5053a6d1 18246 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18247
18248 acl_save_prefix="$prefix"
18249 prefix="$acl_final_prefix"
18250 acl_save_exec_prefix="$exec_prefix"
18251 exec_prefix="$acl_final_exec_prefix"
18252 eval x=\"$x\"
18253 exec_prefix="$acl_save_exec_prefix"
18254 prefix="$acl_save_prefix"
18255
18256 if test "X$x" = "X$element"; then
18257 haveit=yes
18258 break
18259 fi
18260 done
18261 if test -z "$haveit"; then
5053a6d1 18262 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
632b71ea
DWT
18263 fi
18264 done
18265
18266
5053a6d1 18267 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea
DWT
18268 haveit=
18269 for x in $LIBS; do
18270
18271 acl_save_prefix="$prefix"
18272 prefix="$acl_final_prefix"
18273 acl_save_exec_prefix="$exec_prefix"
18274 exec_prefix="$acl_final_exec_prefix"
18275 eval x=\"$x\"
18276 exec_prefix="$acl_save_exec_prefix"
18277 prefix="$acl_save_prefix"
18278
18279 if test "X$x" = "X$element"; then
18280 haveit=yes
18281 break
18282 fi
18283 done
18284 if test -z "$haveit"; then
18285 LIBS="${LIBS}${LIBS:+ }$element"
18286 fi
18287 done
18288
18289
5053a6d1
DWT
18290else
18291 CY_OBJECTIVEC=0
a667869d 18292
5053a6d1 18293fi
b66977f1
DWT
18294
18295fi
18296
5053a6d1
DWT
18297fi
18298 ac_ext=cpp
18299ac_cpp='$CXXCPP $CPPFLAGS'
18300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
b66977f1 18303
5053a6d1
DWT
18304 ;; #(
18305 *) :
18306 ;;
18307esac
a667869d 18308
058f1bc8
DWT
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
18310$as_echo_n "checking for a readline compatible library... " >&6; }
ee134472 18311if ${ax_cv_lib_readline+:} false; then :
058f1bc8
DWT
18312 $as_echo_n "(cached) " >&6
18313else
a667869d 18314
058f1bc8
DWT
18315 ORIG_LIBS="$LIBS"
18316 for readline_lib in readline edit editline; do
18317 for termcap_lib in "" termcap curses ncurses; do
18318 if test -z "$termcap_lib"; then
18319 TRY_LIB="-l$readline_lib"
18320 else
18321 TRY_LIB="-l$readline_lib -l$termcap_lib"
18322 fi
18323 LIBS="$ORIG_LIBS $TRY_LIB"
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325/* end confdefs.h. */
a667869d 18326
058f1bc8
DWT
18327/* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18330#ifdef __cplusplus
18331extern "C"
18332#endif
18333char readline ();
18334int
18335main ()
18336{
18337return readline ();
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342if ac_fn_cxx_try_link "$LINENO"; then :
ee134472 18343 ax_cv_lib_readline="$TRY_LIB"
058f1bc8
DWT
18344fi
18345rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
ee134472 18347 if test -n "$ax_cv_lib_readline"; then
058f1bc8
DWT
18348 break
18349 fi
18350 done
ee134472 18351 if test -n "$ax_cv_lib_readline"; then
058f1bc8
DWT
18352 break
18353 fi
18354 done
ee134472
JF
18355 if test -z "$ax_cv_lib_readline"; then
18356 ax_cv_lib_readline="no"
058f1bc8 18357 fi
ee134472 18358 LIBS="$ORIG_LIBS"
a667869d 18359
a667869d 18360fi
ee134472
JF
18361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
18362$as_echo "$ax_cv_lib_readline" >&6; }
058f1bc8 18363
ee134472
JF
18364 if test "$ax_cv_lib_readline" != "no"; then
18365 LIBS="$LIBS $ax_cv_lib_readline"
058f1bc8
DWT
18366
18367$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
18368
18369 for ac_header in readline.h readline/readline.h
18370do :
18371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18372ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 18373if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
18374 cat >>confdefs.h <<_ACEOF
18375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18376_ACEOF
5053a6d1 18377
a667869d 18378fi
058f1bc8
DWT
18379
18380done
18381
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18383$as_echo_n "checking whether readline supports history... " >&6; }
ee134472 18384if ${ax_cv_lib_readline_history+:} false; then :
058f1bc8
DWT
18385 $as_echo_n "(cached) " >&6
18386else
18387
ee134472 18388 ax_cv_lib_readline_history="no"
058f1bc8
DWT
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390/* end confdefs.h. */
18391
18392/* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18395#ifdef __cplusplus
18396extern "C"
18397#endif
18398char add_history ();
18399int
18400main ()
18401{
18402return add_history ();
18403 ;
18404 return 0;
18405}
18406_ACEOF
18407if ac_fn_cxx_try_link "$LINENO"; then :
ee134472 18408 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
18409fi
18410rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412
18413fi
ee134472
JF
18414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
18415$as_echo "$ax_cv_lib_readline_history" >&6; }
18416 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8
DWT
18417
18418$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
18419
18420 for ac_header in history.h readline/history.h
18421do :
18422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18423ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 18424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
18425 cat >>confdefs.h <<_ACEOF
18426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18427_ACEOF
18428
18429fi
18430
18431done
18432
18433 fi
18434 fi
18435
18436case $vl_cv_lib_readline in #(
18437 no) :
ee134472 18438 as_fn_error $? "You need readline" "$LINENO" 5 ;; #(
058f1bc8
DWT
18439 *) :
18440 ;;
18441esac
18442ac_ext=c
18443ac_cpp='$CPP $CPPFLAGS'
18444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18446ac_compiler_gnu=$ac_cv_c_compiler_gnu
18447
18448
18449 if test "X$prefix" = "XNONE"; then
18450 acl_final_prefix="$ac_default_prefix"
18451 else
18452 acl_final_prefix="$prefix"
18453 fi
18454 if test "X$exec_prefix" = "XNONE"; then
18455 acl_final_exec_prefix='${prefix}'
18456 else
18457 acl_final_exec_prefix="$exec_prefix"
18458 fi
18459 acl_save_prefix="$prefix"
18460 prefix="$acl_final_prefix"
18461 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18462 prefix="$acl_save_prefix"
18463
18464
18465# Check whether --with-gnu-ld was given.
18466if test "${with_gnu_ld+set}" = set; then :
18467 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18468else
18469 with_gnu_ld=no
18470fi
18471
18472# Prepare PATH_SEPARATOR.
18473# The user is always right.
18474if test "${PATH_SEPARATOR+set}" != set; then
18475 echo "#! /bin/sh" >conf$$.sh
18476 echo "exit 0" >>conf$$.sh
18477 chmod +x conf$$.sh
18478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18479 PATH_SEPARATOR=';'
18480 else
18481 PATH_SEPARATOR=:
18482 fi
18483 rm -f conf$$.sh
18484fi
18485ac_prog=ld
18486if test "$GCC" = yes; then
18487 # Check if gcc -print-prog-name=ld gives a path.
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18489$as_echo_n "checking for ld used by GCC... " >&6; }
18490 case $host in
18491 *-*-mingw*)
18492 # gcc leaves a trailing carriage return which upsets mingw
18493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18494 *)
18495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18496 esac
18497 case $ac_prog in
18498 # Accept absolute paths.
18499 [\\/]* | [A-Za-z]:[\\/]*)
18500 re_direlt='/[^/][^/]*/\.\./'
18501 # Canonicalize the path of ld
18502 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18503 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12833ad8 18504 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5053a6d1
DWT
18505 done
18506 test -z "$LD" && LD="$ac_prog"
18507 ;;
18508 "")
18509 # If it fails, then pretend we aren't using GCC.
18510 ac_prog=ld
18511 ;;
18512 *)
18513 # If it is relative, then search for the first ld in PATH.
18514 with_gnu_ld=unknown
18515 ;;
18516 esac
18517elif test "$with_gnu_ld" = yes; then
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18519$as_echo_n "checking for GNU ld... " >&6; }
a667869d 18520else
5053a6d1
DWT
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18522$as_echo_n "checking for non-GNU ld... " >&6; }
a667869d 18523fi
ee134472 18524if ${acl_cv_path_LD+:} false; then :
5053a6d1
DWT
18525 $as_echo_n "(cached) " >&6
18526else
18527 if test -z "$LD"; then
18528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18529 for ac_dir in $PATH; do
18530 test -z "$ac_dir" && ac_dir=.
18531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18532 acl_cv_path_LD="$ac_dir/$ac_prog"
18533 # Check to see if the program is GNU ld. I'd rather use --version,
18534 # but apparently some GNU ld's only accept -v.
18535 # Break only if it was the GNU/non-GNU ld that we prefer.
18536 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18537 *GNU* | *'with BFD'*)
12833ad8 18538 test "$with_gnu_ld" != no && break ;;
5053a6d1 18539 *)
12833ad8 18540 test "$with_gnu_ld" != yes && break ;;
5053a6d1 18541 esac
a667869d 18542 fi
5053a6d1
DWT
18543 done
18544 IFS="$ac_save_ifs"
a667869d 18545else
5053a6d1 18546 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a667869d 18547fi
a667869d 18548fi
a667869d 18549
5053a6d1
DWT
18550LD="$acl_cv_path_LD"
18551if test -n "$LD"; then
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18553$as_echo "$LD" >&6; }
18554else
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a667869d 18556$as_echo "no" >&6; }
a667869d 18557fi
12833ad8 18558test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5053a6d1
DWT
18559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18560$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 18561if ${acl_cv_prog_gnu_ld+:} false; then :
a667869d
DWT
18562 $as_echo_n "(cached) " >&6
18563else
5053a6d1
DWT
18564 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18565case `$LD -v 2>&1 </dev/null` in
18566*GNU* | *'with BFD'*)
18567 acl_cv_prog_gnu_ld=yes ;;
18568*)
18569 acl_cv_prog_gnu_ld=no ;;
18570esac
a667869d 18571fi
5053a6d1
DWT
18572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18573$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18574with_gnu_ld=$acl_cv_prog_gnu_ld
18575
18576
18577
a667869d 18578
5053a6d1
DWT
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18580$as_echo_n "checking for shared library run path origin... " >&6; }
ee134472 18581if ${acl_cv_rpath+:} false; then :
5053a6d1 18582 $as_echo_n "(cached) " >&6
a667869d 18583else
5053a6d1
DWT
18584
18585 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18586 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18587 . ./conftest.sh
18588 rm -f ./conftest.sh
18589 acl_cv_rpath=done
18590
a667869d 18591fi
5053a6d1
DWT
18592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18593$as_echo "$acl_cv_rpath" >&6; }
18594 wl="$acl_cv_wl"
18595 acl_libext="$acl_cv_libext"
18596 acl_shlibext="$acl_cv_shlibext"
18597 acl_libname_spec="$acl_cv_libname_spec"
18598 acl_library_names_spec="$acl_cv_library_names_spec"
18599 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18600 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18601 acl_hardcode_direct="$acl_cv_hardcode_direct"
18602 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18603 # Check whether --enable-rpath was given.
18604if test "${enable_rpath+set}" = set; then :
18605 enableval=$enable_rpath; :
18606else
18607 enable_rpath=yes
a667869d 18608fi
a667869d 18609
a667869d 18610
a667869d 18611
12833ad8
JF
18612
18613 acl_libdirstem=lib
18614 acl_libdirstem2=
18615 case "$host_os" in
18616 solaris*)
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18618$as_echo_n "checking for 64-bit host... " >&6; }
ee134472 18619if ${gl_cv_solaris_64bit+:} false; then :
12833ad8
JF
18620 $as_echo_n "(cached) " >&6
18621else
18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623/* end confdefs.h. */
18624
18625#ifdef _LP64
18626sixtyfour bits
18627#endif
18628
18629_ACEOF
18630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18631 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18632 gl_cv_solaris_64bit=yes
18633else
18634 gl_cv_solaris_64bit=no
18635fi
18636rm -f conftest*
18637
18638
18639fi
18640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18641$as_echo "$gl_cv_solaris_64bit" >&6; }
18642 if test $gl_cv_solaris_64bit = yes; then
18643 acl_libdirstem=lib/64
18644 case "$host_cpu" in
18645 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18646 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5053a6d1
DWT
18647 esac
18648 fi
12833ad8
JF
18649 ;;
18650 *)
18651 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18652 if test -n "$searchpath"; then
18653 acl_save_IFS="${IFS= }"; IFS=":"
18654 for searchdir in $searchpath; do
18655 if test -d "$searchdir"; then
18656 case "$searchdir" in
18657 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18658 */../ | */.. )
18659 # Better ignore directories of this form. They are misleading.
18660 ;;
18661 *) searchdir=`cd "$searchdir" && pwd`
18662 case "$searchdir" in
18663 */lib64 ) acl_libdirstem=lib64 ;;
18664 esac ;;
18665 esac
18666 fi
18667 done
18668 IFS="$acl_save_IFS"
18669 fi
18670 ;;
18671 esac
18672 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18673
18674
18675
9c60689e 18676
9c60689e 18677
9c60689e 18678
9c60689e 18679
9c60689e 18680
9c60689e 18681
9c60689e 18682
9c60689e 18683
9c60689e 18684
5053a6d1 18685 use_additional=yes
9c60689e 18686
5053a6d1
DWT
18687 acl_save_prefix="$prefix"
18688 prefix="$acl_final_prefix"
18689 acl_save_exec_prefix="$exec_prefix"
18690 exec_prefix="$acl_final_exec_prefix"
9c60689e 18691
5053a6d1
DWT
18692 eval additional_includedir=\"$includedir\"
18693 eval additional_libdir=\"$libdir\"
9c60689e 18694
5053a6d1
DWT
18695 exec_prefix="$acl_save_exec_prefix"
18696 prefix="$acl_save_prefix"
3fd51f51
DWT
18697
18698
5053a6d1
DWT
18699# Check whether --with-libiconv-prefix was given.
18700if test "${with_libiconv_prefix+set}" = set; then :
18701 withval=$with_libiconv_prefix;
18702 if test "X$withval" = "Xno"; then
18703 use_additional=no
18704 else
18705 if test "X$withval" = "X"; then
3fd51f51
DWT
18706
18707 acl_save_prefix="$prefix"
18708 prefix="$acl_final_prefix"
18709 acl_save_exec_prefix="$exec_prefix"
18710 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
18711
18712 eval additional_includedir=\"$includedir\"
18713 eval additional_libdir=\"$libdir\"
18714
3fd51f51
DWT
18715 exec_prefix="$acl_save_exec_prefix"
18716 prefix="$acl_save_prefix"
18717
5053a6d1
DWT
18718 else
18719 additional_includedir="$withval/include"
18720 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
18721 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18722 && ! test -d "$withval/$acl_libdirstem"; then
18723 additional_libdir="$withval/$acl_libdirstem2"
18724 fi
3fd51f51 18725 fi
3fd51f51 18726 fi
3fd51f51 18727
5053a6d1 18728fi
3fd51f51 18729
5053a6d1
DWT
18730 LIBICONV=
18731 LTLIBICONV=
18732 INCICONV=
18733 LIBICONV_PREFIX=
12833ad8 18734 HAVE_LIBICONV=
5053a6d1
DWT
18735 rpathdirs=
18736 ltrpathdirs=
18737 names_already_handled=
18738 names_next_round='iconv '
18739 while test -n "$names_next_round"; do
18740 names_this_round="$names_next_round"
18741 names_next_round=
18742 for name in $names_this_round; do
18743 already_handled=
18744 for n in $names_already_handled; do
18745 if test "$n" = "$name"; then
18746 already_handled=yes
18747 break
18748 fi
18749 done
18750 if test -z "$already_handled"; then
18751 names_already_handled="$names_already_handled $name"
18752 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18753 eval value=\"\$HAVE_LIB$uppername\"
18754 if test -n "$value"; then
18755 if test "$value" = yes; then
18756 eval value=\"\$LIB$uppername\"
18757 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18758 eval value=\"\$LTLIB$uppername\"
18759 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18760 else
18761 :
18762 fi
18763 else
18764 found_dir=
18765 found_la=
18766 found_so=
18767 found_a=
18768 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18769 if test -n "$acl_shlibext"; then
18770 shrext=".$acl_shlibext" # typically: shrext=.so
18771 else
18772 shrext=
18773 fi
18774 if test $use_additional = yes; then
18775 dir="$additional_libdir"
18776 if test -n "$acl_shlibext"; then
18777 if test -f "$dir/$libname$shrext"; then
18778 found_dir="$dir"
18779 found_so="$dir/$libname$shrext"
18780 else
18781 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18782 ver=`(cd "$dir" && \
18783 for f in "$libname$shrext".*; do echo "$f"; done \
18784 | sed -e "s,^$libname$shrext\\\\.,," \
18785 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18786 | sed 1q ) 2>/dev/null`
18787 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18788 found_dir="$dir"
18789 found_so="$dir/$libname$shrext.$ver"
18790 fi
18791 else
18792 eval library_names=\"$acl_library_names_spec\"
18793 for f in $library_names; do
18794 if test -f "$dir/$f"; then
18795 found_dir="$dir"
18796 found_so="$dir/$f"
18797 break
18798 fi
18799 done
18800 fi
18801 fi
18802 fi
18803 if test "X$found_dir" = "X"; then
18804 if test -f "$dir/$libname.$acl_libext"; then
18805 found_dir="$dir"
18806 found_a="$dir/$libname.$acl_libext"
18807 fi
18808 fi
18809 if test "X$found_dir" != "X"; then
18810 if test -f "$dir/$libname.la"; then
18811 found_la="$dir/$libname.la"
18812 fi
18813 fi
18814 fi
18815 if test "X$found_dir" = "X"; then
18816 for x in $LDFLAGS $LTLIBICONV; do
3fd51f51
DWT
18817
18818 acl_save_prefix="$prefix"
18819 prefix="$acl_final_prefix"
18820 acl_save_exec_prefix="$exec_prefix"
18821 exec_prefix="$acl_final_exec_prefix"
18822 eval x=\"$x\"
18823 exec_prefix="$acl_save_exec_prefix"
18824 prefix="$acl_save_prefix"
18825
5053a6d1
DWT
18826 case "$x" in
18827 -L*)
18828 dir=`echo "X$x" | sed -e 's/^X-L//'`
18829 if test -n "$acl_shlibext"; then
18830 if test -f "$dir/$libname$shrext"; then
18831 found_dir="$dir"
18832 found_so="$dir/$libname$shrext"
18833 else
18834 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18835 ver=`(cd "$dir" && \
18836 for f in "$libname$shrext".*; do echo "$f"; done \
18837 | sed -e "s,^$libname$shrext\\\\.,," \
18838 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18839 | sed 1q ) 2>/dev/null`
18840 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18841 found_dir="$dir"
18842 found_so="$dir/$libname$shrext.$ver"
18843 fi
18844 else
18845 eval library_names=\"$acl_library_names_spec\"
18846 for f in $library_names; do
18847 if test -f "$dir/$f"; then
18848 found_dir="$dir"
18849 found_so="$dir/$f"
18850 break
18851 fi
18852 done
18853 fi
18854 fi
18855 fi
18856 if test "X$found_dir" = "X"; then
18857 if test -f "$dir/$libname.$acl_libext"; then
18858 found_dir="$dir"
18859 found_a="$dir/$libname.$acl_libext"
18860 fi
18861 fi
18862 if test "X$found_dir" != "X"; then
18863 if test -f "$dir/$libname.la"; then
18864 found_la="$dir/$libname.la"
18865 fi
18866 fi
18867 ;;
18868 esac
18869 if test "X$found_dir" != "X"; then
18870 break
18871 fi
18872 done
18873 fi
18874 if test "X$found_dir" != "X"; then
18875 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18876 if test "X$found_so" != "X"; then
12833ad8
JF
18877 if test "$enable_rpath" = no \
18878 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18879 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5053a6d1
DWT
18880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18881 else
18882 haveit=
18883 for x in $ltrpathdirs; do
18884 if test "X$x" = "X$found_dir"; then
18885 haveit=yes
18886 break
18887 fi
18888 done
18889 if test -z "$haveit"; then
18890 ltrpathdirs="$ltrpathdirs $found_dir"
18891 fi
18892 if test "$acl_hardcode_direct" = yes; then
18893 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18894 else
18895 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18896 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18897 haveit=
18898 for x in $rpathdirs; do
18899 if test "X$x" = "X$found_dir"; then
18900 haveit=yes
18901 break
18902 fi
18903 done
18904 if test -z "$haveit"; then
18905 rpathdirs="$rpathdirs $found_dir"
18906 fi
18907 else
18908 haveit=
18909 for x in $LDFLAGS $LIBICONV; do
c823f118
DWT
18910
18911 acl_save_prefix="$prefix"
18912 prefix="$acl_final_prefix"
18913 acl_save_exec_prefix="$exec_prefix"
18914 exec_prefix="$acl_final_exec_prefix"
18915 eval x=\"$x\"
18916 exec_prefix="$acl_save_exec_prefix"
18917 prefix="$acl_save_prefix"
18918
5053a6d1
DWT
18919 if test "X$x" = "X-L$found_dir"; then
18920 haveit=yes
18921 break
18922 fi
18923 done
18924 if test -z "$haveit"; then
18925 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18926 fi
18927 if test "$acl_hardcode_minus_L" != no; then
18928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18929 else
18930 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18931 fi
18932 fi
18933 fi
18934 fi
18935 else
18936 if test "X$found_a" != "X"; then
18937 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18938 else
18939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18940 fi
18941 fi
18942 additional_includedir=
18943 case "$found_dir" in
18944 */$acl_libdirstem | */$acl_libdirstem/)
18945 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
18946 if test "$name" = 'iconv'; then
18947 LIBICONV_PREFIX="$basedir"
18948 fi
18949 additional_includedir="$basedir/include"
18950 ;;
18951 */$acl_libdirstem2 | */$acl_libdirstem2/)
18952 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18953 if test "$name" = 'iconv'; then
18954 LIBICONV_PREFIX="$basedir"
18955 fi
5053a6d1
DWT
18956 additional_includedir="$basedir/include"
18957 ;;
18958 esac
18959 if test "X$additional_includedir" != "X"; then
18960 if test "X$additional_includedir" != "X/usr/include"; then
18961 haveit=
18962 if test "X$additional_includedir" = "X/usr/local/include"; then
18963 if test -n "$GCC"; then
18964 case $host_os in
18965 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18966 esac
18967 fi
18968 fi
18969 if test -z "$haveit"; then
18970 for x in $CPPFLAGS $INCICONV; do
c823f118
DWT
18971
18972 acl_save_prefix="$prefix"
18973 prefix="$acl_final_prefix"
18974 acl_save_exec_prefix="$exec_prefix"
18975 exec_prefix="$acl_final_exec_prefix"
18976 eval x=\"$x\"
18977 exec_prefix="$acl_save_exec_prefix"
18978 prefix="$acl_save_prefix"
18979
5053a6d1
DWT
18980 if test "X$x" = "X-I$additional_includedir"; then
18981 haveit=yes
18982 break
18983 fi
18984 done
18985 if test -z "$haveit"; then
18986 if test -d "$additional_includedir"; then
18987 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18988 fi
18989 fi
18990 fi
18991 fi
18992 fi
18993 if test -n "$found_la"; then
18994 save_libdir="$libdir"
18995 case "$found_la" in
18996 */* | *\\*) . "$found_la" ;;
18997 *) . "./$found_la" ;;
18998 esac
18999 libdir="$save_libdir"
19000 for dep in $dependency_libs; do
19001 case "$dep" in
19002 -L*)
19003 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
19004 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19005 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5053a6d1 19006 haveit=
12833ad8
JF
19007 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19008 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5053a6d1
DWT
19009 if test -n "$GCC"; then
19010 case $host_os in
19011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19012 esac
19013 fi
19014 fi
19015 if test -z "$haveit"; then
19016 haveit=
19017 for x in $LDFLAGS $LIBICONV; do
c823f118 19018
5053a6d1
DWT
19019 acl_save_prefix="$prefix"
19020 prefix="$acl_final_prefix"
19021 acl_save_exec_prefix="$exec_prefix"
19022 exec_prefix="$acl_final_exec_prefix"
19023 eval x=\"$x\"
19024 exec_prefix="$acl_save_exec_prefix"
19025 prefix="$acl_save_prefix"
c823f118 19026
5053a6d1
DWT
19027 if test "X$x" = "X-L$additional_libdir"; then
19028 haveit=yes
19029 break
19030 fi
19031 done
19032 if test -z "$haveit"; then
19033 if test -d "$additional_libdir"; then
19034 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19035 fi
19036 fi
19037 haveit=
19038 for x in $LDFLAGS $LTLIBICONV; do
c823f118
DWT
19039
19040 acl_save_prefix="$prefix"
19041 prefix="$acl_final_prefix"
19042 acl_save_exec_prefix="$exec_prefix"
19043 exec_prefix="$acl_final_exec_prefix"
19044 eval x=\"$x\"
19045 exec_prefix="$acl_save_exec_prefix"
19046 prefix="$acl_save_prefix"
19047
5053a6d1
DWT
19048 if test "X$x" = "X-L$additional_libdir"; then
19049 haveit=yes
19050 break
19051 fi
19052 done
19053 if test -z "$haveit"; then
19054 if test -d "$additional_libdir"; then
19055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19056 fi
19057 fi
19058 fi
19059 fi
19060 ;;
19061 -R*)
19062 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19063 if test "$enable_rpath" != no; then
19064 haveit=
19065 for x in $rpathdirs; do
19066 if test "X$x" = "X$dir"; then
19067 haveit=yes
19068 break
19069 fi
19070 done
19071 if test -z "$haveit"; then
19072 rpathdirs="$rpathdirs $dir"
19073 fi
19074 haveit=
19075 for x in $ltrpathdirs; do
19076 if test "X$x" = "X$dir"; then
19077 haveit=yes
19078 break
19079 fi
19080 done
19081 if test -z "$haveit"; then
19082 ltrpathdirs="$ltrpathdirs $dir"
19083 fi
19084 fi
19085 ;;
19086 -l*)
19087 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19088 ;;
19089 *.la)
19090 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19091 ;;
19092 *)
19093 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19094 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19095 ;;
19096 esac
19097 done
19098 fi
19099 else
19100 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19102 fi
19103 fi
c823f118
DWT
19104 fi
19105 done
c823f118 19106 done
5053a6d1
DWT
19107 if test "X$rpathdirs" != "X"; then
19108 if test -n "$acl_hardcode_libdir_separator"; then
19109 alldirs=
19110 for found_dir in $rpathdirs; do
19111 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19112 done
19113 acl_save_libdir="$libdir"
19114 libdir="$alldirs"
19115 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19116 libdir="$acl_save_libdir"
19117 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19118 else
19119 for found_dir in $rpathdirs; do
19120 acl_save_libdir="$libdir"
19121 libdir="$found_dir"
19122 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19123 libdir="$acl_save_libdir"
19124 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19125 done
19126 fi
19127 fi
19128 if test "X$ltrpathdirs" != "X"; then
19129 for found_dir in $ltrpathdirs; do
19130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19131 done
47aaa820 19132 fi
47aaa820
DWT
19133
19134
47aaa820 19135
47aaa820
DWT
19136
19137
19138
5053a6d1 19139
12833ad8
JF
19140
19141
19142
19143
19144
5053a6d1
DWT
19145 am_save_CPPFLAGS="$CPPFLAGS"
19146
19147 for element in $INCICONV; do
47aaa820 19148 haveit=
5053a6d1 19149 for x in $CPPFLAGS; do
47aaa820
DWT
19150
19151 acl_save_prefix="$prefix"
19152 prefix="$acl_final_prefix"
19153 acl_save_exec_prefix="$exec_prefix"
19154 exec_prefix="$acl_final_exec_prefix"
19155 eval x=\"$x\"
19156 exec_prefix="$acl_save_exec_prefix"
19157 prefix="$acl_save_prefix"
9c60689e 19158
47aaa820
DWT
19159 if test "X$x" = "X$element"; then
19160 haveit=yes
19161 break
19162 fi
19163 done
19164 if test -z "$haveit"; then
5053a6d1 19165 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
47aaa820
DWT
19166 fi
19167 done
19168
19169
5053a6d1
DWT
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19171$as_echo_n "checking for iconv... " >&6; }
ee134472 19172if ${am_cv_func_iconv+:} false; then :
5053a6d1
DWT
19173 $as_echo_n "(cached) " >&6
19174else
47aaa820 19175
5053a6d1
DWT
19176 am_cv_func_iconv="no, consider installing GNU libiconv"
19177 am_cv_lib_iconv=no
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179/* end confdefs.h. */
19180#include <stdlib.h>
19181#include <iconv.h>
19182int
19183main ()
19184{
19185iconv_t cd = iconv_open("","");
19186 iconv(cd,NULL,NULL,NULL,NULL);
19187 iconv_close(cd);
19188 ;
19189 return 0;
19190}
19191_ACEOF
19192if ac_fn_c_try_link "$LINENO"; then :
19193 am_cv_func_iconv=yes
19194fi
19195rm -f core conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197 if test "$am_cv_func_iconv" != yes; then
19198 am_save_LIBS="$LIBS"
19199 LIBS="$LIBS $LIBICONV"
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201/* end confdefs.h. */
19202#include <stdlib.h>
19203#include <iconv.h>
19204int
19205main ()
19206{
19207iconv_t cd = iconv_open("","");
19208 iconv(cd,NULL,NULL,NULL,NULL);
19209 iconv_close(cd);
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214if ac_fn_c_try_link "$LINENO"; then :
19215 am_cv_lib_iconv=yes
19216 am_cv_func_iconv=yes
19217fi
19218rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220 LIBS="$am_save_LIBS"
47aaa820 19221 fi
47aaa820 19222
5053a6d1
DWT
19223fi
19224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19225$as_echo "$am_cv_func_iconv" >&6; }
19226 if test "$am_cv_func_iconv" = yes; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19228$as_echo_n "checking for working iconv... " >&6; }
ee134472 19229if ${am_cv_func_iconv_works+:} false; then :
5053a6d1
DWT
19230 $as_echo_n "(cached) " >&6
19231else
47aaa820 19232
5053a6d1
DWT
19233 am_save_LIBS="$LIBS"
19234 if test $am_cv_lib_iconv = yes; then
19235 LIBS="$LIBS $LIBICONV"
19236 fi
19237 if test "$cross_compiling" = yes; then :
19238 case "$host_os" in
19239 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19240 *) am_cv_func_iconv_works="guessing yes" ;;
19241 esac
c823f118 19242else
5053a6d1
DWT
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244/* end confdefs.h. */
c823f118 19245
5053a6d1
DWT
19246#include <iconv.h>
19247#include <string.h>
19248int main ()
19249{
19250 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19251 returns. */
19252 {
19253 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19254 if (cd_utf8_to_88591 != (iconv_t)(-1))
19255 {
19256 static const char input[] = "\342\202\254"; /* EURO SIGN */
19257 char buf[10];
19258 const char *inptr = input;
19259 size_t inbytesleft = strlen (input);
19260 char *outptr = buf;
19261 size_t outbytesleft = sizeof (buf);
19262 size_t res = iconv (cd_utf8_to_88591,
19263 (char **) &inptr, &inbytesleft,
19264 &outptr, &outbytesleft);
19265 if (res == 0)
19266 return 1;
19267 }
19268 }
12833ad8
JF
19269 /* Test against Solaris 10 bug: Failures are not distinguishable from
19270 successful returns. */
19271 {
19272 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19273 if (cd_ascii_to_88591 != (iconv_t)(-1))
19274 {
19275 static const char input[] = "\263";
19276 char buf[10];
19277 const char *inptr = input;
19278 size_t inbytesleft = strlen (input);
19279 char *outptr = buf;
19280 size_t outbytesleft = sizeof (buf);
19281 size_t res = iconv (cd_ascii_to_88591,
19282 (char **) &inptr, &inbytesleft,
19283 &outptr, &outbytesleft);
19284 if (res == 0)
19285 return 1;
19286 }
19287 }
5053a6d1
DWT
19288#if 0 /* This bug could be worked around by the caller. */
19289 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19290 {
19291 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19292 if (cd_88591_to_utf8 != (iconv_t)(-1))
19293 {
19294 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19295 char buf[50];
19296 const char *inptr = input;
19297 size_t inbytesleft = strlen (input);
19298 char *outptr = buf;
19299 size_t outbytesleft = sizeof (buf);
19300 size_t res = iconv (cd_88591_to_utf8,
19301 (char **) &inptr, &inbytesleft,
19302 &outptr, &outbytesleft);
19303 if ((int)res > 0)
19304 return 1;
19305 }
19306 }
19307#endif
19308 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19309 provided. */
19310 if (/* Try standardized names. */
19311 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19312 /* Try IRIX, OSF/1 names. */
19313 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19314 /* Try AIX names. */
19315 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19316 /* Try HP-UX names. */
19317 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19318 return 1;
19319 return 0;
19320}
19321_ACEOF
19322if ac_fn_c_try_run "$LINENO"; then :
19323 am_cv_func_iconv_works=yes
19324else
19325 am_cv_func_iconv_works=no
19326fi
19327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19328 conftest.$ac_objext conftest.beam conftest.$ac_ext
c823f118
DWT
19329fi
19330
5053a6d1
DWT
19331 LIBS="$am_save_LIBS"
19332
47aaa820 19333fi
5053a6d1
DWT
19334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19335$as_echo "$am_cv_func_iconv_works" >&6; }
19336 case "$am_cv_func_iconv_works" in
19337 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19338 *) am_func_iconv=yes ;;
19339 esac
19340 else
19341 am_func_iconv=no am_cv_lib_iconv=no
19342 fi
19343 if test "$am_func_iconv" = yes; then
19344
19345$as_echo "#define HAVE_ICONV 1" >>confdefs.h
19346
19347 fi
19348 if test "$am_cv_lib_iconv" = yes; then
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19350$as_echo_n "checking how to link with libiconv... " >&6; }
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19352$as_echo "$LIBICONV" >&6; }
19353 else
19354 CPPFLAGS="$am_save_CPPFLAGS"
19355 LIBICONV=
19356 LTLIBICONV=
19357 fi
19358
19359
19360
19361 if test "$am_cv_func_iconv" = yes; then
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19363$as_echo_n "checking for iconv declaration... " >&6; }
ee134472 19364 if ${am_cv_proto_iconv+:} false; then :
5053a6d1
DWT
19365 $as_echo_n "(cached) " >&6
19366else
19367
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369/* end confdefs.h. */
19370
19371#include <stdlib.h>
19372#include <iconv.h>
19373extern
19374#ifdef __cplusplus
19375"C"
19376#endif
19377#if defined(__STDC__) || defined(__cplusplus)
19378size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19379#else
19380size_t iconv();
19381#endif
19382
19383int
19384main ()
19385{
47aaa820 19386
5053a6d1
DWT
19387 ;
19388 return 0;
19389}
19390_ACEOF
19391if ac_fn_c_try_compile "$LINENO"; then :
19392 am_cv_proto_iconv_arg1=""
19393else
19394 am_cv_proto_iconv_arg1="const"
47aaa820 19395fi
5053a6d1
DWT
19396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 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);"
19398fi
19399
19400 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12833ad8
JF
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19402 $am_cv_proto_iconv" >&5
19403$as_echo "
19404 $am_cv_proto_iconv" >&6; }
5053a6d1
DWT
19405
19406cat >>confdefs.h <<_ACEOF
19407#define ICONV_CONST $am_cv_proto_iconv_arg1
19408_ACEOF
19409
19410 fi
19411
5053a6d1
DWT
19412case $am_cv_func_iconv in #(
19413 yes) :
19414 ;; #(
a667869d 19415 *) :
058f1bc8
DWT
19416
19417 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
19418 case $cy_iconv_prefix_arg in #(
19419 -I*) :
19420
19421
19422 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
19423 haveit=
19424 for x in $cy_iconv_prefixes; do
19425
19426 acl_save_prefix="$prefix"
19427 prefix="$acl_final_prefix"
19428 acl_save_exec_prefix="$exec_prefix"
19429 exec_prefix="$acl_final_exec_prefix"
19430 eval x=\"$x\"
19431 exec_prefix="$acl_save_exec_prefix"
19432 prefix="$acl_save_prefix"
19433
19434 if test "X$x" = "X$element"; then
19435 haveit=yes
19436 break
19437 fi
19438 done
19439 if test -z "$haveit"; then
19440 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19441 fi
19442 done
19443
19444 ;; #(
19445 -L*) :
19446
19447
19448 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
19449 haveit=
19450 for x in $cy_iconv_prefixes; do
19451
19452 acl_save_prefix="$prefix"
19453 prefix="$acl_final_prefix"
19454 acl_save_exec_prefix="$exec_prefix"
19455 exec_prefix="$acl_final_exec_prefix"
19456 eval x=\"$x\"
19457 exec_prefix="$acl_save_exec_prefix"
19458 prefix="$acl_save_prefix"
19459
19460 if test "X$x" = "X$element"; then
19461 haveit=yes
19462 break
19463 fi
19464 done
19465 if test -z "$haveit"; then
19466 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19467 fi
19468 done
19469
19470 ;; #(
19471 *) :
19472 ;;
a667869d 19473esac
058f1bc8
DWT
19474 done
19475 for with_libiconv_prefix in $cy_iconv_prefixes; do
19476 { am_cv_func_iconv=; unset am_cv_func_iconv;}
19477
19478
19479
19480
19481
19482
19483
19484
12833ad8
JF
19485
19486
19487
058f1bc8
DWT
19488 use_additional=yes
19489
19490 acl_save_prefix="$prefix"
19491 prefix="$acl_final_prefix"
19492 acl_save_exec_prefix="$exec_prefix"
19493 exec_prefix="$acl_final_exec_prefix"
19494
19495 eval additional_includedir=\"$includedir\"
19496 eval additional_libdir=\"$libdir\"
19497
19498 exec_prefix="$acl_save_exec_prefix"
19499 prefix="$acl_save_prefix"
19500
19501
19502# Check whether --with-libiconv-prefix was given.
19503if test "${with_libiconv_prefix+set}" = set; then :
19504 withval=$with_libiconv_prefix;
19505 if test "X$withval" = "Xno"; then
19506 use_additional=no
19507 else
19508 if test "X$withval" = "X"; then
19509
19510 acl_save_prefix="$prefix"
19511 prefix="$acl_final_prefix"
19512 acl_save_exec_prefix="$exec_prefix"
19513 exec_prefix="$acl_final_exec_prefix"
19514
19515 eval additional_includedir=\"$includedir\"
19516 eval additional_libdir=\"$libdir\"
19517
19518 exec_prefix="$acl_save_exec_prefix"
19519 prefix="$acl_save_prefix"
19520
19521 else
19522 additional_includedir="$withval/include"
19523 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
19524 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19525 && ! test -d "$withval/$acl_libdirstem"; then
19526 additional_libdir="$withval/$acl_libdirstem2"
19527 fi
058f1bc8
DWT
19528 fi
19529 fi
19530
19531fi
19532
19533 LIBICONV=
19534 LTLIBICONV=
19535 INCICONV=
19536 LIBICONV_PREFIX=
12833ad8 19537 HAVE_LIBICONV=
058f1bc8
DWT
19538 rpathdirs=
19539 ltrpathdirs=
19540 names_already_handled=
19541 names_next_round='iconv '
19542 while test -n "$names_next_round"; do
19543 names_this_round="$names_next_round"
19544 names_next_round=
19545 for name in $names_this_round; do
19546 already_handled=
19547 for n in $names_already_handled; do
19548 if test "$n" = "$name"; then
19549 already_handled=yes
19550 break
19551 fi
19552 done
19553 if test -z "$already_handled"; then
19554 names_already_handled="$names_already_handled $name"
19555 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19556 eval value=\"\$HAVE_LIB$uppername\"
19557 if test -n "$value"; then
19558 if test "$value" = yes; then
19559 eval value=\"\$LIB$uppername\"
19560 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19561 eval value=\"\$LTLIB$uppername\"
19562 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19563 else
19564 :
19565 fi
19566 else
19567 found_dir=
19568 found_la=
19569 found_so=
19570 found_a=
19571 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19572 if test -n "$acl_shlibext"; then
19573 shrext=".$acl_shlibext" # typically: shrext=.so
19574 else
19575 shrext=
19576 fi
19577 if test $use_additional = yes; then
19578 dir="$additional_libdir"
19579 if test -n "$acl_shlibext"; then
19580 if test -f "$dir/$libname$shrext"; then
19581 found_dir="$dir"
19582 found_so="$dir/$libname$shrext"
19583 else
19584 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19585 ver=`(cd "$dir" && \
19586 for f in "$libname$shrext".*; do echo "$f"; done \
19587 | sed -e "s,^$libname$shrext\\\\.,," \
19588 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19589 | sed 1q ) 2>/dev/null`
19590 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19591 found_dir="$dir"
19592 found_so="$dir/$libname$shrext.$ver"
19593 fi
19594 else
19595 eval library_names=\"$acl_library_names_spec\"
19596 for f in $library_names; do
19597 if test -f "$dir/$f"; then
19598 found_dir="$dir"
19599 found_so="$dir/$f"
19600 break
19601 fi
19602 done
19603 fi
19604 fi
19605 fi
19606 if test "X$found_dir" = "X"; then
19607 if test -f "$dir/$libname.$acl_libext"; then
19608 found_dir="$dir"
19609 found_a="$dir/$libname.$acl_libext"
19610 fi
19611 fi
19612 if test "X$found_dir" != "X"; then
19613 if test -f "$dir/$libname.la"; then
19614 found_la="$dir/$libname.la"
19615 fi
19616 fi
19617 fi
19618 if test "X$found_dir" = "X"; then
19619 for x in $LDFLAGS $LTLIBICONV; do
19620
19621 acl_save_prefix="$prefix"
19622 prefix="$acl_final_prefix"
19623 acl_save_exec_prefix="$exec_prefix"
19624 exec_prefix="$acl_final_exec_prefix"
19625 eval x=\"$x\"
19626 exec_prefix="$acl_save_exec_prefix"
19627 prefix="$acl_save_prefix"
19628
19629 case "$x" in
19630 -L*)
19631 dir=`echo "X$x" | sed -e 's/^X-L//'`
19632 if test -n "$acl_shlibext"; then
19633 if test -f "$dir/$libname$shrext"; then
19634 found_dir="$dir"
19635 found_so="$dir/$libname$shrext"
19636 else
19637 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19638 ver=`(cd "$dir" && \
19639 for f in "$libname$shrext".*; do echo "$f"; done \
19640 | sed -e "s,^$libname$shrext\\\\.,," \
19641 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19642 | sed 1q ) 2>/dev/null`
19643 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19644 found_dir="$dir"
19645 found_so="$dir/$libname$shrext.$ver"
19646 fi
19647 else
19648 eval library_names=\"$acl_library_names_spec\"
19649 for f in $library_names; do
19650 if test -f "$dir/$f"; then
19651 found_dir="$dir"
19652 found_so="$dir/$f"
19653 break
19654 fi
19655 done
19656 fi
19657 fi
19658 fi
19659 if test "X$found_dir" = "X"; then
19660 if test -f "$dir/$libname.$acl_libext"; then
19661 found_dir="$dir"
19662 found_a="$dir/$libname.$acl_libext"
19663 fi
19664 fi
19665 if test "X$found_dir" != "X"; then
19666 if test -f "$dir/$libname.la"; then
19667 found_la="$dir/$libname.la"
19668 fi
19669 fi
19670 ;;
19671 esac
19672 if test "X$found_dir" != "X"; then
19673 break
19674 fi
19675 done
19676 fi
19677 if test "X$found_dir" != "X"; then
19678 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19679 if test "X$found_so" != "X"; then
12833ad8
JF
19680 if test "$enable_rpath" = no \
19681 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19682 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
058f1bc8
DWT
19683 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19684 else
19685 haveit=
19686 for x in $ltrpathdirs; do
19687 if test "X$x" = "X$found_dir"; then
19688 haveit=yes
19689 break
19690 fi
19691 done
19692 if test -z "$haveit"; then
19693 ltrpathdirs="$ltrpathdirs $found_dir"
19694 fi
19695 if test "$acl_hardcode_direct" = yes; then
19696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19697 else
19698 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19699 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19700 haveit=
19701 for x in $rpathdirs; do
19702 if test "X$x" = "X$found_dir"; then
19703 haveit=yes
19704 break
19705 fi
19706 done
19707 if test -z "$haveit"; then
19708 rpathdirs="$rpathdirs $found_dir"
19709 fi
19710 else
19711 haveit=
19712 for x in $LDFLAGS $LIBICONV; do
19713
19714 acl_save_prefix="$prefix"
19715 prefix="$acl_final_prefix"
19716 acl_save_exec_prefix="$exec_prefix"
19717 exec_prefix="$acl_final_exec_prefix"
19718 eval x=\"$x\"
19719 exec_prefix="$acl_save_exec_prefix"
19720 prefix="$acl_save_prefix"
19721
19722 if test "X$x" = "X-L$found_dir"; then
19723 haveit=yes
19724 break
19725 fi
19726 done
19727 if test -z "$haveit"; then
19728 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19729 fi
19730 if test "$acl_hardcode_minus_L" != no; then
19731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19732 else
19733 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19734 fi
19735 fi
19736 fi
19737 fi
19738 else
19739 if test "X$found_a" != "X"; then
19740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19741 else
19742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19743 fi
19744 fi
19745 additional_includedir=
19746 case "$found_dir" in
19747 */$acl_libdirstem | */$acl_libdirstem/)
19748 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
19749 if test "$name" = 'iconv'; then
19750 LIBICONV_PREFIX="$basedir"
19751 fi
19752 additional_includedir="$basedir/include"
19753 ;;
19754 */$acl_libdirstem2 | */$acl_libdirstem2/)
19755 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19756 if test "$name" = 'iconv'; then
19757 LIBICONV_PREFIX="$basedir"
19758 fi
058f1bc8
DWT
19759 additional_includedir="$basedir/include"
19760 ;;
19761 esac
19762 if test "X$additional_includedir" != "X"; then
19763 if test "X$additional_includedir" != "X/usr/include"; then
19764 haveit=
19765 if test "X$additional_includedir" = "X/usr/local/include"; then
19766 if test -n "$GCC"; then
19767 case $host_os in
19768 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19769 esac
19770 fi
19771 fi
19772 if test -z "$haveit"; then
19773 for x in $CPPFLAGS $INCICONV; do
19774
19775 acl_save_prefix="$prefix"
19776 prefix="$acl_final_prefix"
19777 acl_save_exec_prefix="$exec_prefix"
19778 exec_prefix="$acl_final_exec_prefix"
19779 eval x=\"$x\"
19780 exec_prefix="$acl_save_exec_prefix"
19781 prefix="$acl_save_prefix"
19782
19783 if test "X$x" = "X-I$additional_includedir"; then
19784 haveit=yes
19785 break
19786 fi
19787 done
19788 if test -z "$haveit"; then
19789 if test -d "$additional_includedir"; then
19790 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19791 fi
19792 fi
19793 fi
19794 fi
19795 fi
19796 if test -n "$found_la"; then
19797 save_libdir="$libdir"
19798 case "$found_la" in
19799 */* | *\\*) . "$found_la" ;;
19800 *) . "./$found_la" ;;
19801 esac
19802 libdir="$save_libdir"
19803 for dep in $dependency_libs; do
19804 case "$dep" in
19805 -L*)
19806 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
19807 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19808 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
058f1bc8 19809 haveit=
12833ad8
JF
19810 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19811 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
058f1bc8
DWT
19812 if test -n "$GCC"; then
19813 case $host_os in
19814 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19815 esac
19816 fi
19817 fi
19818 if test -z "$haveit"; then
19819 haveit=
19820 for x in $LDFLAGS $LIBICONV; do
19821
19822 acl_save_prefix="$prefix"
19823 prefix="$acl_final_prefix"
19824 acl_save_exec_prefix="$exec_prefix"
19825 exec_prefix="$acl_final_exec_prefix"
19826 eval x=\"$x\"
19827 exec_prefix="$acl_save_exec_prefix"
19828 prefix="$acl_save_prefix"
19829
19830 if test "X$x" = "X-L$additional_libdir"; then
19831 haveit=yes
19832 break
19833 fi
19834 done
19835 if test -z "$haveit"; then
19836 if test -d "$additional_libdir"; then
19837 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19838 fi
19839 fi
19840 haveit=
19841 for x in $LDFLAGS $LTLIBICONV; do
19842
19843 acl_save_prefix="$prefix"
19844 prefix="$acl_final_prefix"
19845 acl_save_exec_prefix="$exec_prefix"
19846 exec_prefix="$acl_final_exec_prefix"
19847 eval x=\"$x\"
19848 exec_prefix="$acl_save_exec_prefix"
19849 prefix="$acl_save_prefix"
19850
19851 if test "X$x" = "X-L$additional_libdir"; then
19852 haveit=yes
19853 break
19854 fi
19855 done
19856 if test -z "$haveit"; then
19857 if test -d "$additional_libdir"; then
19858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19859 fi
19860 fi
19861 fi
19862 fi
19863 ;;
19864 -R*)
19865 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19866 if test "$enable_rpath" != no; then
19867 haveit=
19868 for x in $rpathdirs; do
19869 if test "X$x" = "X$dir"; then
19870 haveit=yes
19871 break
19872 fi
19873 done
19874 if test -z "$haveit"; then
19875 rpathdirs="$rpathdirs $dir"
19876 fi
19877 haveit=
19878 for x in $ltrpathdirs; do
19879 if test "X$x" = "X$dir"; then
19880 haveit=yes
19881 break
19882 fi
19883 done
19884 if test -z "$haveit"; then
19885 ltrpathdirs="$ltrpathdirs $dir"
19886 fi
19887 fi
19888 ;;
19889 -l*)
19890 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19891 ;;
19892 *.la)
19893 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19894 ;;
19895 *)
19896 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19897 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19898 ;;
19899 esac
19900 done
19901 fi
19902 else
19903 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19905 fi
19906 fi
19907 fi
19908 done
19909 done
19910 if test "X$rpathdirs" != "X"; then
19911 if test -n "$acl_hardcode_libdir_separator"; then
19912 alldirs=
19913 for found_dir in $rpathdirs; do
19914 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19915 done
19916 acl_save_libdir="$libdir"
19917 libdir="$alldirs"
19918 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19919 libdir="$acl_save_libdir"
19920 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19921 else
19922 for found_dir in $rpathdirs; do
19923 acl_save_libdir="$libdir"
19924 libdir="$found_dir"
19925 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19926 libdir="$acl_save_libdir"
19927 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19928 done
19929 fi
19930 fi
19931 if test "X$ltrpathdirs" != "X"; then
19932 for found_dir in $ltrpathdirs; do
19933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19934 done
19935 fi
19936
19937
19938
19939
19940
19941
19942
058f1bc8
DWT
19943
19944 done
19945 ;;
19946esac
19947case $am_cv_func_iconv in #(
19948 yes) :
19949 ;; #(
19950 *) :
ee134472 19951 as_fn_error $? "You need iconv" "$LINENO" 5 ;;
058f1bc8
DWT
19952esac
19953ac_ext=cpp
19954ac_cpp='$CXXCPP $CPPFLAGS'
19955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19958
9777bd50
JF
19959SO=$acl_shlibext
19960
e1cce270
DWT
19961if test "x$CY_OBJECTIVEC" = x1; then :
19962
19963 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 19964if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 19965
794e88e7
DWT
19966 if test -n "$ac_tool_prefix"; then
19967 for ac_prog in otool
19968 do
19969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19972$as_echo_n "checking for $ac_word... " >&6; }
ee134472 19973if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
19974 $as_echo_n "(cached) " >&6
19975else
19976 if test -n "$_OTOOL"; then
19977 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
19978else
19979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19980for as_dir in $PATH
19981do
19982 IFS=$as_save_IFS
19983 test -z "$as_dir" && as_dir=.
19984 for ac_exec_ext in '' $ac_executable_extensions; do
19985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19986 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
19987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19988 break 2
19989 fi
19990done
19991 done
19992IFS=$as_save_IFS
19993
19994fi
19995fi
19996_OTOOL=$ac_cv_prog__OTOOL
19997if test -n "$_OTOOL"; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
19999$as_echo "$_OTOOL" >&6; }
20000else
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20002$as_echo "no" >&6; }
20003fi
20004
20005
20006 test -n "$_OTOOL" && break
20007 done
20008fi
20009if test -z "$_OTOOL"; then
20010 ac_ct__OTOOL=$_OTOOL
20011 for ac_prog in otool
20012do
20013 # Extract the first word of "$ac_prog", so it can be a program name with args.
20014set dummy $ac_prog; ac_word=$2
20015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20016$as_echo_n "checking for $ac_word... " >&6; }
ee134472 20017if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20018 $as_echo_n "(cached) " >&6
20019else
20020 if test -n "$ac_ct__OTOOL"; then
20021 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20022else
20023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20024for as_dir in $PATH
20025do
20026 IFS=$as_save_IFS
20027 test -z "$as_dir" && as_dir=.
20028 for ac_exec_ext in '' $ac_executable_extensions; do
20029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20030 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20032 break 2
20033 fi
20034done
20035 done
20036IFS=$as_save_IFS
20037
20038fi
20039fi
20040ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20041if test -n "$ac_ct__OTOOL"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20043$as_echo "$ac_ct__OTOOL" >&6; }
20044else
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046$as_echo "no" >&6; }
20047fi
20048
20049
20050 test -n "$ac_ct__OTOOL" && break
20051done
20052
20053 if test "x$ac_ct__OTOOL" = x; then
20054 _OTOOL=""
20055 else
20056 case $cross_compiling:$ac_tool_warned in
20057yes:)
20058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20060ac_tool_warned=yes ;;
e1cce270 20061esac
794e88e7
DWT
20062 _OTOOL=$ac_ct__OTOOL
20063 fi
20064fi
20065
20066 if test "x$_OTOOL" = x; then :
12833ad8 20067 as_fn_error $? "You need otool" "$LINENO" 5
794e88e7
DWT
20068fi
20069 if test -n "$ac_tool_prefix"; then
20070 for ac_prog in lipo
20071 do
20072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20075$as_echo_n "checking for $ac_word... " >&6; }
ee134472 20076if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20077 $as_echo_n "(cached) " >&6
20078else
20079 if test -n "$_LIPO"; then
20080 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20081else
20082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20083for as_dir in $PATH
20084do
20085 IFS=$as_save_IFS
20086 test -z "$as_dir" && as_dir=.
20087 for ac_exec_ext in '' $ac_executable_extensions; do
20088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20089 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20091 break 2
20092 fi
20093done
20094 done
20095IFS=$as_save_IFS
20096
20097fi
20098fi
20099_LIPO=$ac_cv_prog__LIPO
20100if test -n "$_LIPO"; then
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20102$as_echo "$_LIPO" >&6; }
20103else
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20105$as_echo "no" >&6; }
20106fi
20107
20108
20109 test -n "$_LIPO" && break
20110 done
20111fi
20112if test -z "$_LIPO"; then
20113 ac_ct__LIPO=$_LIPO
20114 for ac_prog in lipo
20115do
20116 # Extract the first word of "$ac_prog", so it can be a program name with args.
20117set dummy $ac_prog; ac_word=$2
20118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20119$as_echo_n "checking for $ac_word... " >&6; }
ee134472 20120if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20121 $as_echo_n "(cached) " >&6
20122else
20123 if test -n "$ac_ct__LIPO"; then
20124 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20125else
20126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20127for as_dir in $PATH
20128do
20129 IFS=$as_save_IFS
20130 test -z "$as_dir" && as_dir=.
20131 for ac_exec_ext in '' $ac_executable_extensions; do
20132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20133 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20135 break 2
20136 fi
20137done
20138 done
20139IFS=$as_save_IFS
20140
20141fi
20142fi
20143ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20144if test -n "$ac_ct__LIPO"; then
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20146$as_echo "$ac_ct__LIPO" >&6; }
20147else
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149$as_echo "no" >&6; }
20150fi
20151
20152
20153 test -n "$ac_ct__LIPO" && break
20154done
20155
20156 if test "x$ac_ct__LIPO" = x; then
20157 _LIPO=""
20158 else
20159 case $cross_compiling:$ac_tool_warned in
20160yes:)
20161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20163ac_tool_warned=yes ;;
20164esac
20165 _LIPO=$ac_ct__LIPO
20166 fi
20167fi
20168
20169 if test "x$_LIPO" = x; then :
12833ad8 20170 as_fn_error $? "You need lipo" "$LINENO" 5
794e88e7
DWT
20171fi
20172 if test -n "$ac_tool_prefix"; then
20173 for ac_prog in nm
20174 do
20175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20178$as_echo_n "checking for $ac_word... " >&6; }
ee134472 20179if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20180 $as_echo_n "(cached) " >&6
20181else
20182 if test -n "$_NM"; then
20183 ac_cv_prog__NM="$_NM" # Let the user override the test.
20184else
20185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20186for as_dir in $PATH
20187do
20188 IFS=$as_save_IFS
20189 test -z "$as_dir" && as_dir=.
20190 for ac_exec_ext in '' $ac_executable_extensions; do
20191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20192 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20194 break 2
20195 fi
20196done
20197 done
20198IFS=$as_save_IFS
20199
20200fi
20201fi
20202_NM=$ac_cv_prog__NM
20203if test -n "$_NM"; then
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20205$as_echo "$_NM" >&6; }
20206else
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20208$as_echo "no" >&6; }
20209fi
20210
20211
20212 test -n "$_NM" && break
20213 done
20214fi
20215if test -z "$_NM"; then
20216 ac_ct__NM=$_NM
20217 for ac_prog in nm
20218do
20219 # Extract the first word of "$ac_prog", so it can be a program name with args.
20220set dummy $ac_prog; ac_word=$2
20221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20222$as_echo_n "checking for $ac_word... " >&6; }
ee134472 20223if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20224 $as_echo_n "(cached) " >&6
20225else
20226 if test -n "$ac_ct__NM"; then
20227 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20228else
20229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230for as_dir in $PATH
20231do
20232 IFS=$as_save_IFS
20233 test -z "$as_dir" && as_dir=.
20234 for ac_exec_ext in '' $ac_executable_extensions; do
20235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20236 ac_cv_prog_ac_ct__NM="$ac_prog"
20237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20238 break 2
20239 fi
20240done
20241 done
20242IFS=$as_save_IFS
20243
20244fi
20245fi
20246ac_ct__NM=$ac_cv_prog_ac_ct__NM
20247if test -n "$ac_ct__NM"; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20249$as_echo "$ac_ct__NM" >&6; }
20250else
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20252$as_echo "no" >&6; }
20253fi
20254
20255
20256 test -n "$ac_ct__NM" && break
20257done
20258
20259 if test "x$ac_ct__NM" = x; then
20260 _NM=""
20261 else
20262 case $cross_compiling:$ac_tool_warned in
20263yes:)
20264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20266ac_tool_warned=yes ;;
20267esac
20268 _NM=$ac_ct__NM
20269 fi
20270fi
20271
20272 if test "x$_NM" = x; then :
12833ad8 20273 as_fn_error $? "You need nm" "$LINENO" 5
794e88e7 20274fi
794e88e7
DWT
20275 CY_OBJECTIVEC_MACH=1
20276
20277 CY_ATTACH_GROUP=procmod
20278
e1cce270
DWT
20279
20280fi
20281
20282
20283
790e5246
DWT
20284fi
20285if test "x$GMAKE" != xmake; then :
20286
20287 ac_config_files="$ac_config_files Makefile"
20288
20289
47aaa820 20290fi
9c60689e
DWT
20291ac_config_files="$ac_config_files GNUmakefile"
20292
20293cat >confcache <<\_ACEOF
20294# This file is a shell script that caches the results of configure
20295# tests run on this system so they can be shared between configure
20296# scripts and configure runs, see configure's option --config-cache.
20297# It is not useful on other systems. If it contains results you don't
20298# want to keep, you may remove or edit it.
20299#
20300# config.status only pays attention to the cache file if you give it
20301# the --recheck option to rerun configure.
20302#
20303# `ac_cv_env_foo' variables (set or unset) will be overridden when
20304# loading this file, other *unset* `ac_cv_foo' will be assigned the
20305# following values.
20306
20307_ACEOF
20308
20309# The following way of writing the cache mishandles newlines in values,
20310# but we know of no workaround that is simple, portable, and efficient.
20311# So, we kill variables containing newlines.
20312# Ultrix sh set writes to stderr and can't be redirected directly,
20313# and sets the high bit in the cache file unless we assign to the vars.
20314(
20315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20316 eval ac_val=\$$ac_var
20317 case $ac_val in #(
20318 *${as_nl}*)
20319 case $ac_var in #(
20320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20321$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20322 esac
20323 case $ac_var in #(
20324 _ | IFS | as_nl) ;; #(
20325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20326 *) { eval $ac_var=; unset $ac_var;} ;;
20327 esac ;;
20328 esac
20329 done
20330
20331 (set) 2>&1 |
20332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20333 *${as_nl}ac_space=\ *)
20334 # `set' does not quote correctly, so add quotes: double-quote
20335 # substitution turns \\\\ into \\, and sed turns \\ into \.
20336 sed -n \
20337 "s/'/'\\\\''/g;
20338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20339 ;; #(
20340 *)
20341 # `set' quotes correctly as required by POSIX, so do not add quotes.
20342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20343 ;;
20344 esac |
20345 sort
20346) |
20347 sed '
20348 /^ac_cv_env_/b end
20349 t clear
20350 :clear
20351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20352 t end
20353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20354 :end' >>confcache
20355if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20356 if test -w "$cache_file"; then
ee134472 20357 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20359$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
20360 if test ! -f "$cache_file" || test -h "$cache_file"; then
20361 cat confcache >"$cache_file"
20362 else
20363 case $cache_file in #(
20364 */* | ?:*)
20365 mv -f confcache "$cache_file"$$ &&
20366 mv -f "$cache_file"$$ "$cache_file" ;; #(
20367 *)
20368 mv -f confcache "$cache_file" ;;
20369 esac
20370 fi
20371 fi
9c60689e
DWT
20372 else
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20374$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20375 fi
20376fi
20377rm -f confcache
20378
20379test "x$prefix" = xNONE && prefix=$ac_default_prefix
20380# Let make expand exec_prefix.
20381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20382
20383# Transform confdefs.h into DEFS.
20384# Protect against shell expansion while executing Makefile rules.
20385# Protect against Makefile macro expansion.
20386#
20387# If the first sed substitution is executed (which looks for macros that
20388# take arguments), then branch to the quote section. Otherwise,
20389# look for a macro that doesn't take arguments.
20390ac_script='
20391:mline
20392/\\$/{
20393 N
20394 s,\\\n,,
20395 b mline
20396}
20397t clear
20398:clear
20399s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20400t quote
20401s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20402t quote
20403b any
20404:quote
20405s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20406s/\[/\\&/g
20407s/\]/\\&/g
20408s/\$/$$/g
20409H
20410:any
20411${
20412 g
20413 s/^\n//
20414 s/\n/ /g
20415 p
20416}
20417'
20418DEFS=`sed -n "$ac_script" confdefs.h`
20419
20420
20421ac_libobjs=
20422ac_ltlibobjs=
12833ad8 20423U=
9c60689e
DWT
20424for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20425 # 1. Remove the extension, and $U if already installed.
20426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20429 # will be set to the directory where LIBOBJS objects are built.
20430 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20431 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20432done
20433LIBOBJS=$ac_libobjs
20434
20435LTLIBOBJS=$ac_ltlibobjs
20436
20437
20438
ee134472 20439: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
20440ac_write_fail=0
20441ac_clean_files_save=$ac_clean_files
20442ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20444$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20445as_write_fail=0
20446cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20447#! $SHELL
20448# Generated by $as_me.
20449# Run this file to recreate the current configuration.
20450# Compiler output produced by configure, useful for debugging
20451# configure, is in config.log if it exists.
20452
20453debug=false
20454ac_cs_recheck=false
20455ac_cs_silent=false
20456
20457SHELL=\${CONFIG_SHELL-$SHELL}
20458export SHELL
20459_ASEOF
20460cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20461## -------------------- ##
20462## M4sh Initialization. ##
20463## -------------------- ##
20464
20465# Be more Bourne compatible
20466DUALCASE=1; export DUALCASE # for MKS sh
20467if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20468 emulate sh
20469 NULLCMD=:
20470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20471 # is contrary to our usage. Disable this feature.
20472 alias -g '${1+"$@"}'='"$@"'
20473 setopt NO_GLOB_SUBST
20474else
20475 case `(set -o) 2>/dev/null` in #(
20476 *posix*) :
20477 set -o posix ;; #(
20478 *) :
20479 ;;
20480esac
20481fi
20482
20483
20484as_nl='
20485'
20486export as_nl
20487# Printing a long string crashes Solaris 7 /usr/bin/printf.
20488as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20489as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20490as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20491# Prefer a ksh shell builtin over an external printf program on Solaris,
20492# but without wasting forks for bash or zsh.
20493if test -z "$BASH_VERSION$ZSH_VERSION" \
20494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20495 as_echo='print -r --'
20496 as_echo_n='print -rn --'
20497elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20498 as_echo='printf %s\n'
20499 as_echo_n='printf %s'
20500else
20501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20502 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20503 as_echo_n='/usr/ucb/echo -n'
20504 else
20505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20506 as_echo_n_body='eval
20507 arg=$1;
20508 case $arg in #(
20509 *"$as_nl"*)
20510 expr "X$arg" : "X\\(.*\\)$as_nl";
20511 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20512 esac;
20513 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20514 '
20515 export as_echo_n_body
20516 as_echo_n='sh -c $as_echo_n_body as_echo'
20517 fi
20518 export as_echo_body
20519 as_echo='sh -c $as_echo_body as_echo'
20520fi
20521
20522# The user is always right.
20523if test "${PATH_SEPARATOR+set}" != set; then
20524 PATH_SEPARATOR=:
20525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20526 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20527 PATH_SEPARATOR=';'
20528 }
20529fi
20530
20531
20532# IFS
20533# We need space, tab and new line, in precisely that order. Quoting is
20534# there to prevent editors from complaining about space-tab.
20535# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20536# splitting by setting IFS to empty value.)
20537IFS=" "" $as_nl"
20538
20539# Find who we are. Look in the path if we contain no directory separator.
ee134472 20540as_myself=
9c60689e
DWT
20541case $0 in #((
20542 *[\\/]* ) as_myself=$0 ;;
20543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20544for as_dir in $PATH
20545do
20546 IFS=$as_save_IFS
20547 test -z "$as_dir" && as_dir=.
20548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20549 done
20550IFS=$as_save_IFS
20551
20552 ;;
20553esac
20554# We did not find ourselves, most probably we were run as `sh COMMAND'
20555# in which case we are not to be found in the path.
20556if test "x$as_myself" = x; then
20557 as_myself=$0
20558fi
20559if test ! -f "$as_myself"; then
20560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561 exit 1
20562fi
20563
20564# Unset variables that we do not need and which cause bugs (e.g. in
20565# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20566# suppresses any "Segmentation fault" message there. '((' could
20567# trigger a bug in pdksh 5.2.14.
20568for as_var in BASH_ENV ENV MAIL MAILPATH
20569do eval test x\${$as_var+set} = xset \
20570 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20571done
20572PS1='$ '
20573PS2='> '
20574PS4='+ '
20575
20576# NLS nuisances.
20577LC_ALL=C
20578export LC_ALL
20579LANGUAGE=C
20580export LANGUAGE
20581
20582# CDPATH.
20583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20584
20585
12833ad8
JF
20586# as_fn_error STATUS ERROR [LINENO LOG_FD]
20587# ----------------------------------------
9c60689e
DWT
20588# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20589# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 20590# script with STATUS, using 1 if that was 0.
9c60689e
DWT
20591as_fn_error ()
20592{
12833ad8
JF
20593 as_status=$1; test $as_status -eq 0 && as_status=1
20594 if test "$4"; then
20595 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 20597 fi
12833ad8 20598 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
20599 as_fn_exit $as_status
20600} # as_fn_error
20601
20602
20603# as_fn_set_status STATUS
20604# -----------------------
20605# Set $? to STATUS, without forking.
20606as_fn_set_status ()
20607{
20608 return $1
20609} # as_fn_set_status
20610
20611# as_fn_exit STATUS
20612# -----------------
20613# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20614as_fn_exit ()
20615{
20616 set +e
20617 as_fn_set_status $1
20618 exit $1
20619} # as_fn_exit
20620
20621# as_fn_unset VAR
20622# ---------------
20623# Portably unset VAR.
20624as_fn_unset ()
20625{
20626 { eval $1=; unset $1;}
20627}
20628as_unset=as_fn_unset
20629# as_fn_append VAR VALUE
20630# ----------------------
20631# Append the text in VALUE to the end of the definition contained in VAR. Take
20632# advantage of any shell optimizations that allow amortized linear growth over
20633# repeated appends, instead of the typical quadratic growth present in naive
20634# implementations.
20635if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20636 eval 'as_fn_append ()
20637 {
20638 eval $1+=\$2
20639 }'
20640else
20641 as_fn_append ()
20642 {
20643 eval $1=\$$1\$2
20644 }
20645fi # as_fn_append
20646
20647# as_fn_arith ARG...
20648# ------------------
20649# Perform arithmetic evaluation on the ARGs, and store the result in the
20650# global $as_val. Take advantage of shells that can avoid forks. The arguments
20651# must be portable across $(()) and expr.
20652if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20653 eval 'as_fn_arith ()
20654 {
20655 as_val=$(( $* ))
20656 }'
20657else
20658 as_fn_arith ()
20659 {
20660 as_val=`expr "$@" || test $? -eq 1`
20661 }
20662fi # as_fn_arith
20663
20664
20665if expr a : '\(a\)' >/dev/null 2>&1 &&
20666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20667 as_expr=expr
20668else
20669 as_expr=false
20670fi
20671
20672if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20673 as_basename=basename
20674else
20675 as_basename=false
20676fi
20677
20678if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20679 as_dirname=dirname
20680else
20681 as_dirname=false
20682fi
20683
20684as_me=`$as_basename -- "$0" ||
20685$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20686 X"$0" : 'X\(//\)$' \| \
20687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20688$as_echo X/"$0" |
20689 sed '/^.*\/\([^/][^/]*\)\/*$/{
20690 s//\1/
20691 q
20692 }
20693 /^X\/\(\/\/\)$/{
20694 s//\1/
20695 q
20696 }
20697 /^X\/\(\/\).*/{
20698 s//\1/
20699 q
20700 }
20701 s/.*/./; q'`
20702
20703# Avoid depending upon Character Ranges.
20704as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20705as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20706as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20707as_cr_digits='0123456789'
20708as_cr_alnum=$as_cr_Letters$as_cr_digits
20709
20710ECHO_C= ECHO_N= ECHO_T=
20711case `echo -n x` in #(((((
20712-n*)
20713 case `echo 'xy\c'` in
20714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20715 xy) ECHO_C='\c';;
20716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20717 ECHO_T=' ';;
20718 esac;;
20719*)
20720 ECHO_N='-n';;
20721esac
20722
20723rm -f conf$$ conf$$.exe conf$$.file
20724if test -d conf$$.dir; then
20725 rm -f conf$$.dir/conf$$.file
20726else
20727 rm -f conf$$.dir
20728 mkdir conf$$.dir 2>/dev/null
20729fi
20730if (echo >conf$$.file) 2>/dev/null; then
20731 if ln -s conf$$.file conf$$ 2>/dev/null; then
20732 as_ln_s='ln -s'
20733 # ... but there are two gotchas:
20734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20736 # In both cases, we have to default to `cp -p'.
20737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20738 as_ln_s='cp -p'
20739 elif ln conf$$.file conf$$ 2>/dev/null; then
20740 as_ln_s=ln
20741 else
20742 as_ln_s='cp -p'
20743 fi
20744else
20745 as_ln_s='cp -p'
20746fi
20747rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20748rmdir conf$$.dir 2>/dev/null
20749
20750
20751# as_fn_mkdir_p
20752# -------------
20753# Create "$as_dir" as a directory, including parents if necessary.
20754as_fn_mkdir_p ()
20755{
20756
20757 case $as_dir in #(
20758 -*) as_dir=./$as_dir;;
20759 esac
20760 test -d "$as_dir" || eval $as_mkdir_p || {
20761 as_dirs=
20762 while :; do
20763 case $as_dir in #(
20764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20765 *) as_qdir=$as_dir;;
20766 esac
20767 as_dirs="'$as_qdir' $as_dirs"
20768 as_dir=`$as_dirname -- "$as_dir" ||
20769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20770 X"$as_dir" : 'X\(//\)[^/]' \| \
20771 X"$as_dir" : 'X\(//\)$' \| \
20772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20773$as_echo X"$as_dir" |
20774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20775 s//\1/
20776 q
20777 }
20778 /^X\(\/\/\)[^/].*/{
20779 s//\1/
20780 q
20781 }
20782 /^X\(\/\/\)$/{
20783 s//\1/
20784 q
20785 }
20786 /^X\(\/\).*/{
20787 s//\1/
20788 q
20789 }
20790 s/.*/./; q'`
20791 test -d "$as_dir" && break
20792 done
20793 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 20794 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
20795
20796
20797} # as_fn_mkdir_p
20798if mkdir -p . 2>/dev/null; then
20799 as_mkdir_p='mkdir -p "$as_dir"'
20800else
20801 test -d ./-p && rmdir ./-p
20802 as_mkdir_p=false
20803fi
20804
20805if test -x / >/dev/null 2>&1; then
20806 as_test_x='test -x'
20807else
20808 if ls -dL / >/dev/null 2>&1; then
20809 as_ls_L_option=L
20810 else
20811 as_ls_L_option=
20812 fi
20813 as_test_x='
20814 eval sh -c '\''
20815 if test -d "$1"; then
20816 test -d "$1/.";
20817 else
20818 case $1 in #(
20819 -*)set "./$1";;
20820 esac;
20821 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20822 ???[sx]*):;;*)false;;esac;fi
20823 '\'' sh
20824 '
20825fi
20826as_executable_p=$as_test_x
20827
20828# Sed expression to map a string onto a valid CPP name.
20829as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20830
20831# Sed expression to map a string onto a valid variable name.
20832as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20833
20834
20835exec 6>&1
20836## ----------------------------------- ##
20837## Main body of $CONFIG_STATUS script. ##
20838## ----------------------------------- ##
20839_ASEOF
20840test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20841
20842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20843# Save the log message, to keep $0 and so on meaningful, and to
20844# report actual input values of CONFIG_FILES etc. instead of their
20845# values after options handling.
20846ac_log="
20847This file was extended by Cycript $as_me 0.9, which was
ee134472 20848generated by GNU Autoconf 2.68. Invocation command line was
9c60689e
DWT
20849
20850 CONFIG_FILES = $CONFIG_FILES
20851 CONFIG_HEADERS = $CONFIG_HEADERS
20852 CONFIG_LINKS = $CONFIG_LINKS
20853 CONFIG_COMMANDS = $CONFIG_COMMANDS
20854 $ $0 $@
20855
20856on `(hostname || uname -n) 2>/dev/null | sed 1q`
20857"
20858
20859_ACEOF
20860
20861case $ac_config_files in *"
20862"*) set x $ac_config_files; shift; ac_config_files=$*;;
20863esac
20864
20865
20866
20867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20868# Files that config.status was made for.
20869config_files="$ac_config_files"
20870config_commands="$ac_config_commands"
20871
20872_ACEOF
20873
20874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20875ac_cs_usage="\
20876\`$as_me' instantiates files and other configuration actions
20877from templates according to the current configuration. Unless the files
20878and actions are specified as TAGs, all are instantiated by default.
20879
20880Usage: $0 [OPTION]... [TAG]...
20881
20882 -h, --help print this help, then exit
20883 -V, --version print version number and configuration settings, then exit
20884 --config print configuration, then exit
20885 -q, --quiet, --silent
20886 do not print progress messages
20887 -d, --debug don't remove temporary files
20888 --recheck update $as_me by reconfiguring in the same conditions
20889 --file=FILE[:TEMPLATE]
20890 instantiate the configuration file FILE
20891
20892Configuration files:
20893$config_files
20894
20895Configuration commands:
20896$config_commands
20897
20898Report bugs to <saurik@saurik.com>.
20899Cycript home page: <http://www.cycript.org/>."
20900
20901_ACEOF
20902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20903ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20904ac_cs_version="\\
20905Cycript config.status 0.9
ee134472 20906configured by $0, generated by GNU Autoconf 2.68,
9c60689e
DWT
20907 with options \\"\$ac_cs_config\\"
20908
12833ad8 20909Copyright (C) 2010 Free Software Foundation, Inc.
9c60689e
DWT
20910This config.status script is free software; the Free Software Foundation
20911gives unlimited permission to copy, distribute and modify it."
20912
20913ac_pwd='$ac_pwd'
20914srcdir='$srcdir'
20915INSTALL='$INSTALL'
9c60689e
DWT
20916test -n "\$AWK" || AWK=awk
20917_ACEOF
20918
20919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20920# The default lists apply if the user does not specify any file.
20921ac_need_defaults=:
20922while test $# != 0
20923do
20924 case $1 in
12833ad8 20925 --*=?*)
9c60689e
DWT
20926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20927 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20928 ac_shift=:
20929 ;;
12833ad8
JF
20930 --*=)
20931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20932 ac_optarg=
20933 ac_shift=:
20934 ;;
9c60689e
DWT
20935 *)
20936 ac_option=$1
20937 ac_optarg=$2
20938 ac_shift=shift
20939 ;;
20940 esac
20941
20942 case $ac_option in
20943 # Handling of the options.
20944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20945 ac_cs_recheck=: ;;
20946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20947 $as_echo "$ac_cs_version"; exit ;;
20948 --config | --confi | --conf | --con | --co | --c )
20949 $as_echo "$ac_cs_config"; exit ;;
20950 --debug | --debu | --deb | --de | --d | -d )
20951 debug=: ;;
20952 --file | --fil | --fi | --f )
20953 $ac_shift
20954 case $ac_optarg in
20955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 20956 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
20957 esac
20958 as_fn_append CONFIG_FILES " '$ac_optarg'"
20959 ac_need_defaults=false;;
20960 --he | --h | --help | --hel | -h )
20961 $as_echo "$ac_cs_usage"; exit ;;
20962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20964 ac_cs_silent=: ;;
20965
20966 # This is an error.
12833ad8 20967 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
20968Try \`$0 --help' for more information." ;;
20969
20970 *) as_fn_append ac_config_targets " $1"
20971 ac_need_defaults=false ;;
20972
20973 esac
20974 shift
20975done
20976
20977ac_configure_extra_args=
20978
20979if $ac_cs_silent; then
20980 exec 6>/dev/null
20981 ac_configure_extra_args="$ac_configure_extra_args --silent"
20982fi
20983
20984_ACEOF
20985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20986if \$ac_cs_recheck; then
20987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20988 shift
20989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20990 CONFIG_SHELL='$SHELL'
20991 export CONFIG_SHELL
20992 exec "\$@"
20993fi
20994
20995_ACEOF
20996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997exec 5>>config.log
20998{
20999 echo
21000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21001## Running $as_me. ##
21002_ASBOX
21003 $as_echo "$ac_log"
21004} >&5
21005
21006_ACEOF
21007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21008#
21009# INIT-COMMANDS
21010#
21011
21012
21013# The HP-UX ksh and POSIX shell print the target directory to stdout
21014# if CDPATH is set.
21015(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21016
21017sed_quote_subst='$sed_quote_subst'
21018double_quote_subst='$double_quote_subst'
21019delay_variable_subst='$delay_variable_subst'
ee134472
JF
21020macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21021macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21022enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21023enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21024pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21025enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21026SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21027ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21028host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21029host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21030host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21031build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21032build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21033build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21034SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21035Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21036GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21037EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21038FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21039LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21040NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21041LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21042max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21043ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21044exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21045lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21046lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21047lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21048lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21049lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21050reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21051reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21052OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21053deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21054file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21055file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21056want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21057DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21058sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21059AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21060AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21061archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21062STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21063RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21064old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21065old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21066old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21067lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21068CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21069CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21070compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21071GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21072lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21073lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21074lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21075lt_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"`'
21076nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21077lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21078objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21079MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21080lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21081lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21082lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21083lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21084lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21085need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21086MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21087DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21088NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21089LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21090OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21091OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21092libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21093shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21094extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21095archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21096enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21097export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21098whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21099compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21100old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21101old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21102archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21103archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21104module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21105module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21106with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21107allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21108no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21109hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21110hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21111hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21112hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21113hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21114hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21115hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21116hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21117inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21118link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21119always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21120export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21121exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21122include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21123prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21124postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21125file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21126variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21127need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21128need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21129version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21130runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21131shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21132shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21133libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21134library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21135soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21136install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21137postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21138postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21139finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21140finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21141hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21142sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21143sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21144hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21145enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21146enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21147enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21148old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21149striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21150compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21151predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21152postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21153predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21154postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21155compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21156LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21157reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21158reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21159old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21160compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21161GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21162lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21163lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21164lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21165lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21166lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21167archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21168enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21169export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21170whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21171compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21172old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21173old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21174archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21175archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21176module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21177module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21178with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21179allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21180no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21181hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21182hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21183hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21184hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21185hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21186hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21187hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21188hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21189inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21190link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21191always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21192export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21193exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21194include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21195prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21196postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21197file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21198hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21199compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21200predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21201postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21202predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21203postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21204compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21205
21206LTCC='$LTCC'
21207LTCFLAGS='$LTCFLAGS'
21208compiler='$compiler_DEFAULT'
21209
ee134472
JF
21210# A function that is used when there is no print builtin or printf.
21211func_fallback_echo ()
21212{
21213 eval 'cat <<_LTECHO_EOF
21214\$1
21215_LTECHO_EOF'
21216}
21217
9c60689e 21218# Quote evaled strings.
ee134472
JF
21219for var in SHELL \
21220ECHO \
21221SED \
9c60689e
DWT
21222GREP \
21223EGREP \
21224FGREP \
21225LD \
21226NM \
21227LN_S \
21228lt_SP2NL \
21229lt_NL2SP \
21230reload_flag \
21231OBJDUMP \
21232deplibs_check_method \
21233file_magic_cmd \
ee134472
JF
21234file_magic_glob \
21235want_nocaseglob \
21236DLLTOOL \
21237sharedlib_from_linklib_cmd \
9c60689e
DWT
21238AR \
21239AR_FLAGS \
ee134472 21240archiver_list_spec \
9c60689e
DWT
21241STRIP \
21242RANLIB \
21243CC \
21244CFLAGS \
21245compiler \
21246lt_cv_sys_global_symbol_pipe \
21247lt_cv_sys_global_symbol_to_cdecl \
21248lt_cv_sys_global_symbol_to_c_name_address \
21249lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21250nm_file_list_spec \
9c60689e 21251lt_prog_compiler_no_builtin_flag \
9c60689e 21252lt_prog_compiler_pic \
ee134472 21253lt_prog_compiler_wl \
9c60689e
DWT
21254lt_prog_compiler_static \
21255lt_cv_prog_compiler_c_o \
21256need_locks \
ee134472 21257MANIFEST_TOOL \
9c60689e
DWT
21258DSYMUTIL \
21259NMEDIT \
21260LIPO \
21261OTOOL \
21262OTOOL64 \
21263shrext_cmds \
21264export_dynamic_flag_spec \
21265whole_archive_flag_spec \
21266compiler_needs_object \
21267with_gnu_ld \
21268allow_undefined_flag \
21269no_undefined_flag \
21270hardcode_libdir_flag_spec \
21271hardcode_libdir_flag_spec_ld \
21272hardcode_libdir_separator \
9c60689e
DWT
21273exclude_expsyms \
21274include_expsyms \
21275file_list_spec \
21276variables_saved_for_relink \
21277libname_spec \
21278library_names_spec \
21279soname_spec \
ee134472 21280install_override_mode \
9c60689e
DWT
21281finish_eval \
21282old_striplib \
21283striplib \
21284compiler_lib_search_dirs \
21285predep_objects \
21286postdep_objects \
21287predeps \
21288postdeps \
21289compiler_lib_search_path \
21290LD_CXX \
ee134472 21291reload_flag_CXX \
9c60689e
DWT
21292compiler_CXX \
21293lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21294lt_prog_compiler_pic_CXX \
ee134472 21295lt_prog_compiler_wl_CXX \
9c60689e
DWT
21296lt_prog_compiler_static_CXX \
21297lt_cv_prog_compiler_c_o_CXX \
21298export_dynamic_flag_spec_CXX \
21299whole_archive_flag_spec_CXX \
21300compiler_needs_object_CXX \
21301with_gnu_ld_CXX \
21302allow_undefined_flag_CXX \
21303no_undefined_flag_CXX \
21304hardcode_libdir_flag_spec_CXX \
21305hardcode_libdir_flag_spec_ld_CXX \
21306hardcode_libdir_separator_CXX \
9c60689e
DWT
21307exclude_expsyms_CXX \
21308include_expsyms_CXX \
21309file_list_spec_CXX \
21310compiler_lib_search_dirs_CXX \
21311predep_objects_CXX \
21312postdep_objects_CXX \
21313predeps_CXX \
21314postdeps_CXX \
21315compiler_lib_search_path_CXX; do
ee134472 21316 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21317 *[\\\\\\\`\\"\\\$]*)
ee134472 21318 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
21319 ;;
21320 *)
21321 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21322 ;;
21323 esac
21324done
21325
21326# Double-quote double-evaled strings.
21327for var in reload_cmds \
21328old_postinstall_cmds \
21329old_postuninstall_cmds \
21330old_archive_cmds \
21331extract_expsyms_cmds \
21332old_archive_from_new_cmds \
21333old_archive_from_expsyms_cmds \
21334archive_cmds \
21335archive_expsym_cmds \
21336module_cmds \
21337module_expsym_cmds \
21338export_symbols_cmds \
21339prelink_cmds \
ee134472 21340postlink_cmds \
9c60689e
DWT
21341postinstall_cmds \
21342postuninstall_cmds \
21343finish_cmds \
21344sys_lib_search_path_spec \
21345sys_lib_dlsearch_path_spec \
ee134472 21346reload_cmds_CXX \
9c60689e
DWT
21347old_archive_cmds_CXX \
21348old_archive_from_new_cmds_CXX \
21349old_archive_from_expsyms_cmds_CXX \
21350archive_cmds_CXX \
21351archive_expsym_cmds_CXX \
21352module_cmds_CXX \
21353module_expsym_cmds_CXX \
21354export_symbols_cmds_CXX \
ee134472
JF
21355prelink_cmds_CXX \
21356postlink_cmds_CXX; do
21357 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 21358 *[\\\\\\\`\\"\\\$]*)
ee134472 21359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
21360 ;;
21361 *)
21362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21363 ;;
21364 esac
21365done
21366
9c60689e
DWT
21367ac_aux_dir='$ac_aux_dir'
21368xsi_shell='$xsi_shell'
21369lt_shell_append='$lt_shell_append'
21370
21371# See if we are running on zsh, and set the options which allow our
21372# commands through without removal of \ escapes INIT.
21373if test -n "\${ZSH_VERSION+set}" ; then
21374 setopt NO_GLOB_SUBST
21375fi
21376
21377
21378 PACKAGE='$PACKAGE'
21379 VERSION='$VERSION'
21380 TIMESTAMP='$TIMESTAMP'
21381 RM='$RM'
21382 ofile='$ofile'
21383
21384
21385
21386
21387
21388
21389_ACEOF
21390
21391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21392
21393# Handling of arguments.
21394for ac_config_target in $ac_config_targets
21395do
21396 case $ac_config_target in
21397 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 21398 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e
DWT
21399 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
21400
ee134472 21401 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
21402 esac
21403done
21404
21405
21406# If the user did not use the arguments to specify the items to instantiate,
21407# then the envvar interface is used. Set only those that are not.
21408# We use the long form for the default assignment because of an extremely
21409# bizarre bug on SunOS 4.1.3.
21410if $ac_need_defaults; then
21411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21412 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21413fi
21414
21415# Have a temporary directory for convenience. Make it in the build tree
21416# simply because there is no reason against having it here, and in addition,
21417# creating and moving files from /tmp can sometimes cause problems.
21418# Hook for its removal unless debugging.
21419# Note that there is a small window in which the directory will not be cleaned:
21420# after its creation but before its name has been assigned to `$tmp'.
21421$debug ||
21422{
ee134472 21423 tmp= ac_tmp=
9c60689e 21424 trap 'exit_status=$?
ee134472
JF
21425 : "${ac_tmp:=$tmp}"
21426 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
21427' 0
21428 trap 'as_fn_exit 1' 1 2 13 15
21429}
21430# Create a (secure) tmp directory for tmp files.
21431
21432{
21433 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 21434 test -d "$tmp"
9c60689e
DWT
21435} ||
21436{
21437 tmp=./conf$$-$RANDOM
21438 (umask 077 && mkdir "$tmp")
12833ad8 21439} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 21440ac_tmp=$tmp
9c60689e
DWT
21441
21442# Set up the scripts for CONFIG_FILES section.
21443# No need to generate them if there are no CONFIG_FILES.
21444# This happens for instance with `./config.status config.h'.
21445if test -n "$CONFIG_FILES"; then
21446
21447
21448ac_cr=`echo X | tr X '\015'`
21449# On cygwin, bash can eat \r inside `` if the user requested igncr.
21450# But we know of no other shell where ac_cr would be empty at this
21451# point, so we can use a bashism as a fallback.
21452if test "x$ac_cr" = x; then
21453 eval ac_cr=\$\'\\r\'
21454fi
21455ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21456if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 21457 ac_cs_awk_cr='\\r'
9c60689e
DWT
21458else
21459 ac_cs_awk_cr=$ac_cr
21460fi
21461
ee134472 21462echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
21463_ACEOF
21464
21465
21466{
21467 echo "cat >conf$$subs.awk <<_ACEOF" &&
21468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21469 echo "_ACEOF"
21470} >conf$$subs.sh ||
12833ad8
JF
21471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21472ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
21473ac_delim='%!_!# '
21474for ac_last_try in false false false false false :; do
21475 . ./conf$$subs.sh ||
12833ad8 21476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21477
21478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21479 if test $ac_delim_n = $ac_delim_num; then
21480 break
21481 elif $ac_last_try; then
12833ad8 21482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21483 else
21484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485 fi
21486done
21487rm -f conf$$subs.sh
21488
21489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 21490cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
21491_ACEOF
21492sed -n '
21493h
21494s/^/S["/; s/!.*/"]=/
21495p
21496g
21497s/^[^!]*!//
21498:repl
21499t repl
21500s/'"$ac_delim"'$//
21501t delim
21502:nl
21503h
21504s/\(.\{148\}\)..*/\1/
21505t more1
21506s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21507p
21508n
21509b repl
21510:more1
21511s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21512p
21513g
21514s/.\{148\}//
21515t nl
21516:delim
21517h
21518s/\(.\{148\}\)..*/\1/
21519t more2
21520s/["\\]/\\&/g; s/^/"/; s/$/"/
21521p
21522b
21523:more2
21524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21525p
21526g
21527s/.\{148\}//
21528t delim
21529' <conf$$subs.awk | sed '
21530/^[^""]/{
21531 N
21532 s/\n//
21533}
21534' >>$CONFIG_STATUS || ac_write_fail=1
21535rm -f conf$$subs.awk
21536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21537_ACAWK
ee134472 21538cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
21539 for (key in S) S_is_set[key] = 1
21540 FS = "\a"
21541
21542}
21543{
21544 line = $ 0
21545 nfields = split(line, field, "@")
21546 substed = 0
21547 len = length(field[1])
21548 for (i = 2; i < nfields; i++) {
21549 key = field[i]
21550 keylen = length(key)
21551 if (S_is_set[key]) {
21552 value = S[key]
21553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21554 len += length(value) + length(field[++i])
21555 substed = 1
21556 } else
21557 len += 1 + keylen
21558 }
21559
21560 print line
21561}
21562
21563_ACAWK
21564_ACEOF
21565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21566if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21568else
21569 cat
ee134472 21570fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 21571 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
21572_ACEOF
21573
12833ad8
JF
21574# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21575# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
21576# trailing colons and then remove the whole line if VPATH becomes empty
21577# (actually we leave an empty line to preserve line numbers).
21578if test "x$srcdir" = x.; then
12833ad8
JF
21579 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21580h
21581s///
21582s/^/:/
21583s/[ ]*$/:/
21584s/:\$(srcdir):/:/g
21585s/:\${srcdir}:/:/g
21586s/:@srcdir@:/:/g
21587s/^:*//
9c60689e 21588s/:*$//
12833ad8
JF
21589x
21590s/\(=[ ]*\).*/\1/
21591G
21592s/\n//
9c60689e
DWT
21593s/^[^=]*=[ ]*$//
21594}'
21595fi
21596
21597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21598fi # test -n "$CONFIG_FILES"
21599
21600
21601eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21602shift
21603for ac_tag
21604do
21605 case $ac_tag in
21606 :[FHLC]) ac_mode=$ac_tag; continue;;
21607 esac
21608 case $ac_mode$ac_tag in
21609 :[FHL]*:*);;
ee134472 21610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
21611 :[FH]-) ac_tag=-:-;;
21612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21613 esac
21614 ac_save_IFS=$IFS
21615 IFS=:
21616 set x $ac_tag
21617 IFS=$ac_save_IFS
21618 shift
21619 ac_file=$1
21620 shift
21621
21622 case $ac_mode in
21623 :L) ac_source=$1;;
21624 :[FH])
21625 ac_file_inputs=
21626 for ac_f
21627 do
21628 case $ac_f in
ee134472 21629 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
21630 *) # Look for the file first in the build tree, then in the source tree
21631 # (if the path is not absolute). The absolute path cannot be DOS-style,
21632 # because $ac_f cannot contain `:'.
21633 test -f "$ac_f" ||
21634 case $ac_f in
21635 [\\/$]*) false;;
21636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21637 esac ||
ee134472 21638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
21639 esac
21640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21641 as_fn_append ac_file_inputs " '$ac_f'"
21642 done
21643
21644 # Let's still pretend it is `configure' which instantiates (i.e., don't
21645 # use $as_me), people would be surprised to read:
21646 # /* config.h. Generated by config.status. */
21647 configure_input='Generated from '`
21648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21649 `' by configure.'
21650 if test x"$ac_file" != x-; then
21651 configure_input="$ac_file. $configure_input"
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21653$as_echo "$as_me: creating $ac_file" >&6;}
21654 fi
21655 # Neutralize special characters interpreted by sed in replacement strings.
21656 case $configure_input in #(
21657 *\&* | *\|* | *\\* )
21658 ac_sed_conf_input=`$as_echo "$configure_input" |
21659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21660 *) ac_sed_conf_input=$configure_input;;
21661 esac
21662
21663 case $ac_tag in
ee134472
JF
21664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
21666 esac
21667 ;;
21668 esac
21669
21670 ac_dir=`$as_dirname -- "$ac_file" ||
21671$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672 X"$ac_file" : 'X\(//\)[^/]' \| \
21673 X"$ac_file" : 'X\(//\)$' \| \
21674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21675$as_echo X"$ac_file" |
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677 s//\1/
21678 q
21679 }
21680 /^X\(\/\/\)[^/].*/{
21681 s//\1/
21682 q
21683 }
21684 /^X\(\/\/\)$/{
21685 s//\1/
21686 q
21687 }
21688 /^X\(\/\).*/{
21689 s//\1/
21690 q
21691 }
21692 s/.*/./; q'`
21693 as_dir="$ac_dir"; as_fn_mkdir_p
21694 ac_builddir=.
21695
21696case "$ac_dir" in
21697.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21698*)
21699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21700 # A ".." for each directory in $ac_dir_suffix.
21701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21702 case $ac_top_builddir_sub in
21703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21705 esac ;;
21706esac
21707ac_abs_top_builddir=$ac_pwd
21708ac_abs_builddir=$ac_pwd$ac_dir_suffix
21709# for backward compatibility:
21710ac_top_builddir=$ac_top_build_prefix
35fa52c0 21711
9c60689e
DWT
21712case $srcdir in
21713 .) # We are building in place.
21714 ac_srcdir=.
21715 ac_top_srcdir=$ac_top_builddir_sub
21716 ac_abs_top_srcdir=$ac_pwd ;;
21717 [\\/]* | ?:[\\/]* ) # Absolute name.
21718 ac_srcdir=$srcdir$ac_dir_suffix;
21719 ac_top_srcdir=$srcdir
21720 ac_abs_top_srcdir=$srcdir ;;
21721 *) # Relative name.
21722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21723 ac_top_srcdir=$ac_top_build_prefix$srcdir
21724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21725esac
21726ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
21727
21728
9c60689e
DWT
21729 case $ac_mode in
21730 :F)
21731 #
21732 # CONFIG_FILE
21733 #
35fa52c0 21734
9c60689e
DWT
21735 case $INSTALL in
21736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21738 esac
21739_ACEOF
35fa52c0 21740
9c60689e
DWT
21741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21742# If the template does not know about datarootdir, expand it.
21743# FIXME: This hack should be removed a few years after 2.60.
21744ac_datarootdir_hack=; ac_datarootdir_seen=
21745ac_sed_dataroot='
21746/datarootdir/ {
21747 p
21748 q
21749}
21750/@datadir@/p
21751/@docdir@/p
21752/@infodir@/p
21753/@localedir@/p
21754/@mandir@/p'
21755case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21756*datarootdir*) ac_datarootdir_seen=yes;;
21757*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21759$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21760_ACEOF
21761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21762 ac_datarootdir_hack='
21763 s&@datadir@&$datadir&g
21764 s&@docdir@&$docdir&g
21765 s&@infodir@&$infodir&g
21766 s&@localedir@&$localedir&g
21767 s&@mandir@&$mandir&g
21768 s&\\\${datarootdir}&$datarootdir&g' ;;
21769esac
21770_ACEOF
35fa52c0 21771
9c60689e
DWT
21772# Neutralize VPATH when `$srcdir' = `.'.
21773# Shell code in configure.ac might set extrasub.
21774# FIXME: do we really want to maintain this feature?
21775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21776ac_sed_extra="$ac_vpsub
21777$extrasub
21778_ACEOF
21779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21780:t
21781/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21782s|@configure_input@|$ac_sed_conf_input|;t t
21783s&@top_builddir@&$ac_top_builddir_sub&;t t
21784s&@top_build_prefix@&$ac_top_build_prefix&;t t
21785s&@srcdir@&$ac_srcdir&;t t
21786s&@abs_srcdir@&$ac_abs_srcdir&;t t
21787s&@top_srcdir@&$ac_top_srcdir&;t t
21788s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21789s&@builddir@&$ac_builddir&;t t
21790s&@abs_builddir@&$ac_abs_builddir&;t t
21791s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21792s&@INSTALL@&$ac_INSTALL&;t t
21793$ac_datarootdir_hack
21794"
ee134472
JF
21795eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21796 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
21797
21798test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
21799 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21801 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 21802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 21803which seems to be undefined. Please make sure it is defined" >&5
9c60689e 21804$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 21805which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 21806
ee134472 21807 rm -f "$ac_tmp/stdin"
9c60689e 21808 case $ac_file in
ee134472
JF
21809 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21810 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 21811 esac \
12833ad8 21812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 21813 ;;
35fa52c0 21814
35fa52c0 21815
9c60689e
DWT
21816 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21817$as_echo "$as_me: executing $ac_file commands" >&6;}
21818 ;;
21819 esac
35fa52c0 21820
35fa52c0 21821
9c60689e
DWT
21822 case $ac_file$ac_mode in
21823 "libtool":C)
21824
21825 # See if we are running on zsh, and set the options which allow our
21826 # commands through without removal of \ escapes.
21827 if test -n "${ZSH_VERSION+set}" ; then
21828 setopt NO_GLOB_SUBST
35fa52c0 21829 fi
35fa52c0 21830
9c60689e
DWT
21831 cfgfile="${ofile}T"
21832 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21833 $RM "$cfgfile"
35fa52c0 21834
9c60689e
DWT
21835 cat <<_LT_EOF >> "$cfgfile"
21836#! $SHELL
35fa52c0 21837
9c60689e
DWT
21838# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21839# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21840# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21841# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21842#
21843# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
ee134472
JF
21844# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21845# Inc.
9c60689e
DWT
21846# Written by Gordon Matzigkeit, 1996
21847#
21848# This file is part of GNU Libtool.
21849#
21850# GNU Libtool is free software; you can redistribute it and/or
21851# modify it under the terms of the GNU General Public License as
21852# published by the Free Software Foundation; either version 2 of
21853# the License, or (at your option) any later version.
21854#
21855# As a special exception to the GNU General Public License,
21856# if you distribute this file as part of a program or library that
21857# is built using GNU Libtool, you may include this file under the
21858# same distribution terms that you use for the rest of that program.
21859#
21860# GNU Libtool is distributed in the hope that it will be useful,
21861# but WITHOUT ANY WARRANTY; without even the implied warranty of
21862# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21863# GNU General Public License for more details.
21864#
21865# You should have received a copy of the GNU General Public License
21866# along with GNU Libtool; see the file COPYING. If not, a copy
21867# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21868# obtained by writing to the Free Software Foundation, Inc.,
21869# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 21870
35fa52c0 21871
9c60689e
DWT
21872# The names of the tagged configurations supported by this script.
21873available_tags="CXX "
35fa52c0 21874
9c60689e 21875# ### BEGIN LIBTOOL CONFIG
35fa52c0 21876
9c60689e
DWT
21877# Which release of libtool.m4 was used?
21878macro_version=$macro_version
21879macro_revision=$macro_revision
35fa52c0 21880
9c60689e
DWT
21881# Whether or not to build static libraries.
21882build_old_libs=$enable_static
35fa52c0 21883
549f29b5
DWT
21884# Whether or not to build shared libraries.
21885build_libtool_libs=$enable_shared
21886
9c60689e
DWT
21887# What type of objects to build.
21888pic_mode=$pic_mode
35fa52c0 21889
9c60689e
DWT
21890# Whether or not to optimize for fast installation.
21891fast_install=$enable_fast_install
35fa52c0 21892
ee134472
JF
21893# Shell to use when invoking shell scripts.
21894SHELL=$lt_SHELL
21895
21896# An echo program that protects backslashes.
21897ECHO=$lt_ECHO
21898
9c60689e
DWT
21899# The host system.
21900host_alias=$host_alias
21901host=$host
21902host_os=$host_os
35fa52c0 21903
9c60689e
DWT
21904# The build system.
21905build_alias=$build_alias
21906build=$build
21907build_os=$build_os
21908
21909# A sed program that does not truncate output.
21910SED=$lt_SED
21911
21912# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21913Xsed="\$SED -e 1s/^X//"
21914
21915# A grep program that handles long lines.
21916GREP=$lt_GREP
21917
21918# An ERE matcher.
21919EGREP=$lt_EGREP
21920
21921# A literal string matcher.
21922FGREP=$lt_FGREP
21923
21924# A BSD- or MS-compatible name lister.
21925NM=$lt_NM
21926
21927# Whether we need soft or hard links.
21928LN_S=$lt_LN_S
21929
21930# What is the maximum length of a command?
21931max_cmd_len=$max_cmd_len
21932
21933# Object file suffix (normally "o").
21934objext=$ac_objext
21935
21936# Executable file suffix (normally "").
21937exeext=$exeext
21938
21939# whether the shell understands "unset".
21940lt_unset=$lt_unset
21941
21942# turn spaces into newlines.
21943SP2NL=$lt_lt_SP2NL
21944
21945# turn newlines into spaces.
21946NL2SP=$lt_lt_NL2SP
21947
ee134472
JF
21948# convert \$build file names to \$host format.
21949to_host_file_cmd=$lt_cv_to_host_file_cmd
21950
21951# convert \$build files to toolchain format.
21952to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
21953
21954# An object symbol dumper.
21955OBJDUMP=$lt_OBJDUMP
21956
21957# Method to check whether dependent libraries are shared objects.
21958deplibs_check_method=$lt_deplibs_check_method
21959
ee134472 21960# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
21961file_magic_cmd=$lt_file_magic_cmd
21962
ee134472
JF
21963# How to find potential files when deplibs_check_method = "file_magic".
21964file_magic_glob=$lt_file_magic_glob
21965
21966# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21967want_nocaseglob=$lt_want_nocaseglob
21968
21969# DLL creation program.
21970DLLTOOL=$lt_DLLTOOL
21971
21972# Command to associate shared and link libraries.
21973sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21974
9c60689e
DWT
21975# The archiver.
21976AR=$lt_AR
ee134472
JF
21977
21978# Flags to create an archive.
9c60689e
DWT
21979AR_FLAGS=$lt_AR_FLAGS
21980
ee134472
JF
21981# How to feed a file listing to the archiver.
21982archiver_list_spec=$lt_archiver_list_spec
21983
9c60689e
DWT
21984# A symbol stripping program.
21985STRIP=$lt_STRIP
21986
21987# Commands used to install an old-style archive.
21988RANLIB=$lt_RANLIB
21989old_postinstall_cmds=$lt_old_postinstall_cmds
21990old_postuninstall_cmds=$lt_old_postuninstall_cmds
21991
ee134472
JF
21992# Whether to use a lock for old archive extraction.
21993lock_old_archive_extraction=$lock_old_archive_extraction
21994
9c60689e
DWT
21995# A C compiler.
21996LTCC=$lt_CC
21997
21998# LTCC compiler flags.
21999LTCFLAGS=$lt_CFLAGS
22000
22001# Take the output of nm and produce a listing of raw symbols and C names.
22002global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22003
22004# Transform the output of nm in a proper C declaration.
22005global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22006
22007# Transform the output of nm in a C name address pair.
22008global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22009
22010# Transform the output of nm in a C name address pair when lib prefix is needed.
22011global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22012
ee134472
JF
22013# Specify filename containing input files for \$NM.
22014nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22015
ee134472
JF
22016# The root where to search for dependent libraries,and in which our libraries should be installed.
22017lt_sysroot=$lt_sysroot
9c60689e 22018
ee134472
JF
22019# The name of the directory that contains temporary libtool files.
22020objdir=$objdir
9c60689e
DWT
22021
22022# Used to examine libraries when file_magic_cmd begins with "file".
22023MAGIC_CMD=$MAGIC_CMD
22024
22025# Must we lock files when doing compilation?
22026need_locks=$lt_need_locks
22027
ee134472
JF
22028# Manifest tool.
22029MANIFEST_TOOL=$lt_MANIFEST_TOOL
22030
9c60689e
DWT
22031# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22032DSYMUTIL=$lt_DSYMUTIL
22033
22034# Tool to change global to local symbols on Mac OS X.
22035NMEDIT=$lt_NMEDIT
22036
22037# Tool to manipulate fat objects and archives on Mac OS X.
22038LIPO=$lt_LIPO
22039
22040# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22041OTOOL=$lt_OTOOL
22042
22043# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22044OTOOL64=$lt_OTOOL64
22045
22046# Old archive suffix (normally "a").
22047libext=$libext
22048
22049# Shared library suffix (normally ".so").
22050shrext_cmds=$lt_shrext_cmds
35fa52c0 22051
9c60689e
DWT
22052# The commands to extract the exported symbol list from a shared archive.
22053extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 22054
9c60689e
DWT
22055# Variables whose values should be saved in libtool wrapper scripts and
22056# restored at link time.
22057variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 22058
9c60689e
DWT
22059# Do we need the "lib" prefix for modules?
22060need_lib_prefix=$need_lib_prefix
35fa52c0 22061
9c60689e
DWT
22062# Do we need a version for libraries?
22063need_version=$need_version
35fa52c0 22064
9c60689e
DWT
22065# Library versioning type.
22066version_type=$version_type
35fa52c0 22067
9c60689e
DWT
22068# Shared library runtime path variable.
22069runpath_var=$runpath_var
35fa52c0 22070
9c60689e
DWT
22071# Shared library path variable.
22072shlibpath_var=$shlibpath_var
35fa52c0 22073
9c60689e
DWT
22074# Is shlibpath searched before the hard-coded library search path?
22075shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 22076
9c60689e
DWT
22077# Format of library name prefix.
22078libname_spec=$lt_libname_spec
35fa52c0 22079
9c60689e
DWT
22080# List of archive names. First name is the real one, the rest are links.
22081# The last name is the one that the linker finds with -lNAME
22082library_names_spec=$lt_library_names_spec
dbadc56a 22083
9c60689e
DWT
22084# The coded name of the library, if different from the real name.
22085soname_spec=$lt_soname_spec
dbadc56a 22086
ee134472
JF
22087# Permission mode override for installation of shared libraries.
22088install_override_mode=$lt_install_override_mode
22089
9c60689e
DWT
22090# Command to use after installation of a shared archive.
22091postinstall_cmds=$lt_postinstall_cmds
35fa52c0 22092
9c60689e
DWT
22093# Command to use after uninstallation of a shared archive.
22094postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 22095
9c60689e
DWT
22096# Commands used to finish a libtool library installation in a directory.
22097finish_cmds=$lt_finish_cmds
35fa52c0 22098
9c60689e
DWT
22099# As "finish_cmds", except a single script fragment to be evaled but
22100# not shown.
22101finish_eval=$lt_finish_eval
35fa52c0 22102
9c60689e
DWT
22103# Whether we should hardcode library paths into libraries.
22104hardcode_into_libs=$hardcode_into_libs
dbadc56a 22105
9c60689e
DWT
22106# Compile-time system search path for libraries.
22107sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 22108
9c60689e
DWT
22109# Run-time system search path for libraries.
22110sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 22111
9c60689e
DWT
22112# Whether dlopen is supported.
22113dlopen_support=$enable_dlopen
dbadc56a 22114
9c60689e
DWT
22115# Whether dlopen of programs is supported.
22116dlopen_self=$enable_dlopen_self
35fa52c0 22117
9c60689e
DWT
22118# Whether dlopen of statically linked programs is supported.
22119dlopen_self_static=$enable_dlopen_self_static
35fa52c0 22120
9c60689e
DWT
22121# Commands to strip libraries.
22122old_striplib=$lt_old_striplib
22123striplib=$lt_striplib
35fa52c0 22124
35fa52c0 22125
9c60689e
DWT
22126# The linker used to build libraries.
22127LD=$lt_LD
dbadc56a 22128
ee134472
JF
22129# How to create reloadable object files.
22130reload_flag=$lt_reload_flag
22131reload_cmds=$lt_reload_cmds
22132
9c60689e
DWT
22133# Commands used to build an old-style archive.
22134old_archive_cmds=$lt_old_archive_cmds
dbadc56a 22135
9c60689e
DWT
22136# A language specific compiler.
22137CC=$lt_compiler
35fa52c0 22138
9c60689e
DWT
22139# Is the compiler the GNU compiler?
22140with_gcc=$GCC
dbadc56a 22141
9c60689e
DWT
22142# Compiler flag to turn off builtin functions.
22143no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 22144
9c60689e
DWT
22145# Additional compiler flags for building library objects.
22146pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 22147
ee134472
JF
22148# How to pass a linker flag through the compiler.
22149wl=$lt_lt_prog_compiler_wl
22150
9c60689e
DWT
22151# Compiler flag to prevent dynamic linking.
22152link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 22153
9c60689e
DWT
22154# Does compiler simultaneously support -c and -o options?
22155compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 22156
9c60689e
DWT
22157# Whether or not to add -lc for building shared libraries.
22158build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 22159
9c60689e
DWT
22160# Whether or not to disallow shared libs when runtime libs are static.
22161allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 22162
9c60689e
DWT
22163# Compiler flag to allow reflexive dlopens.
22164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 22165
9c60689e
DWT
22166# Compiler flag to generate shared objects directly from archives.
22167whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 22168
9c60689e
DWT
22169# Whether the compiler copes with passing no objects directly.
22170compiler_needs_object=$lt_compiler_needs_object
dbadc56a 22171
9c60689e
DWT
22172# Create an old-style archive from a shared archive.
22173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 22174
9c60689e
DWT
22175# Create a temporary old-style archive to link instead of a shared archive.
22176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 22177
9c60689e
DWT
22178# Commands used to build a shared archive.
22179archive_cmds=$lt_archive_cmds
22180archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 22181
9c60689e
DWT
22182# Commands used to build a loadable module if different from building
22183# a shared archive.
22184module_cmds=$lt_module_cmds
22185module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 22186
9c60689e
DWT
22187# Whether we are building with GNU ld or not.
22188with_gnu_ld=$lt_with_gnu_ld
6b66678a 22189
9c60689e
DWT
22190# Flag that allows shared libraries with undefined symbols to be built.
22191allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 22192
9c60689e
DWT
22193# Flag that enforces no undefined symbols.
22194no_undefined_flag=$lt_no_undefined_flag
6b66678a 22195
9c60689e
DWT
22196# Flag to hardcode \$libdir into a binary during linking.
22197# This must work even if \$libdir does not exist
22198hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 22199
9c60689e
DWT
22200# If ld is used when linking, flag to hardcode \$libdir into a binary
22201# during linking. This must work even if \$libdir does not exist.
22202hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
6b66678a 22203
9c60689e
DWT
22204# Whether we need a single "-rpath" flag with a separated argument.
22205hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 22206
9c60689e
DWT
22207# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22208# DIR into the resulting binary.
22209hardcode_direct=$hardcode_direct
6b66678a 22210
9c60689e
DWT
22211# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22212# DIR into the resulting binary and the resulting library dependency is
22213# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22214# library is relocated.
22215hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 22216
9c60689e
DWT
22217# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22218# into the resulting binary.
22219hardcode_minus_L=$hardcode_minus_L
6b66678a 22220
9c60689e
DWT
22221# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22222# into the resulting binary.
22223hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 22224
9c60689e
DWT
22225# Set to "yes" if building a shared library automatically hardcodes DIR
22226# into the library and all subsequent libraries and executables linked
22227# against it.
22228hardcode_automatic=$hardcode_automatic
6b66678a 22229
9c60689e
DWT
22230# Set to yes if linker adds runtime paths of dependent libraries
22231# to runtime path list.
22232inherit_rpath=$inherit_rpath
6b66678a 22233
9c60689e
DWT
22234# Whether libtool must link a program against all its dependency libraries.
22235link_all_deplibs=$link_all_deplibs
22236
9c60689e
DWT
22237# Set to "yes" if exported symbols are required.
22238always_export_symbols=$always_export_symbols
6b66678a 22239
9c60689e
DWT
22240# The commands to list exported symbols.
22241export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 22242
9c60689e
DWT
22243# Symbols that should not be listed in the preloaded symbols.
22244exclude_expsyms=$lt_exclude_expsyms
6b66678a 22245
9c60689e
DWT
22246# Symbols that must always be exported.
22247include_expsyms=$lt_include_expsyms
6b66678a 22248
9c60689e
DWT
22249# Commands necessary for linking programs (against libraries) with templates.
22250prelink_cmds=$lt_prelink_cmds
6b66678a 22251
ee134472
JF
22252# Commands necessary for finishing linking programs.
22253postlink_cmds=$lt_postlink_cmds
22254
9c60689e
DWT
22255# Specify filename containing input files.
22256file_list_spec=$lt_file_list_spec
6b66678a 22257
9c60689e
DWT
22258# How to hardcode a shared library path into an executable.
22259hardcode_action=$hardcode_action
22260
22261# The directories searched by this compiler when creating a shared library.
22262compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22263
22264# Dependencies to place before and after the objects being linked to
22265# create a shared library.
22266predep_objects=$lt_predep_objects
22267postdep_objects=$lt_postdep_objects
22268predeps=$lt_predeps
22269postdeps=$lt_postdeps
22270
22271# The library search path used internally by the compiler when linking
22272# a shared library.
22273compiler_lib_search_path=$lt_compiler_lib_search_path
22274
22275# ### END LIBTOOL CONFIG
22276
22277_LT_EOF
22278
22279 case $host_os in
22280 aix3*)
22281 cat <<\_LT_EOF >> "$cfgfile"
22282# AIX sometimes has problems with the GCC collect2 program. For some
22283# reason, if we set the COLLECT_NAMES environment variable, the problems
22284# vanish in a puff of smoke.
22285if test "X${COLLECT_NAMES+set}" != Xset; then
22286 COLLECT_NAMES=
22287 export COLLECT_NAMES
6b66678a 22288fi
9c60689e
DWT
22289_LT_EOF
22290 ;;
22291 esac
6b66678a
DWT
22292
22293
9c60689e 22294ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 22295
9c60689e
DWT
22296
22297 # We use sed instead of cat because bash on DJGPP gets confused if
22298 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22299 # text mode, it properly converts lines to CR/LF. This bash problem
22300 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
22301 sed '$q' "$ltmain" >> "$cfgfile" \
22302 || (rm -f "$cfgfile"; exit 1)
22303
22304 if test x"$xsi_shell" = xyes; then
22305 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22306func_dirname ()\
22307{\
22308\ case ${1} in\
22309\ */*) func_dirname_result="${1%/*}${2}" ;;\
22310\ * ) func_dirname_result="${3}" ;;\
22311\ esac\
22312} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22313 && mv -f "$cfgfile.tmp" "$cfgfile" \
22314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22315test 0 -eq $? || _lt_function_replace_fail=:
22316
22317
22318 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22319func_basename ()\
22320{\
22321\ func_basename_result="${1##*/}"\
22322} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22323 && mv -f "$cfgfile.tmp" "$cfgfile" \
22324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22325test 0 -eq $? || _lt_function_replace_fail=:
22326
22327
22328 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22329func_dirname_and_basename ()\
22330{\
22331\ case ${1} in\
22332\ */*) func_dirname_result="${1%/*}${2}" ;;\
22333\ * ) func_dirname_result="${3}" ;;\
22334\ esac\
22335\ func_basename_result="${1##*/}"\
22336} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22337 && mv -f "$cfgfile.tmp" "$cfgfile" \
22338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22339test 0 -eq $? || _lt_function_replace_fail=:
22340
22341
22342 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22343func_stripname ()\
22344{\
22345\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22346\ # positional parameters, so assign one to ordinary parameter first.\
22347\ func_stripname_result=${3}\
22348\ func_stripname_result=${func_stripname_result#"${1}"}\
22349\ func_stripname_result=${func_stripname_result%"${2}"}\
22350} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22351 && mv -f "$cfgfile.tmp" "$cfgfile" \
22352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22353test 0 -eq $? || _lt_function_replace_fail=:
22354
22355
22356 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22357func_split_long_opt ()\
22358{\
22359\ func_split_long_opt_name=${1%%=*}\
22360\ func_split_long_opt_arg=${1#*=}\
22361} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22362 && mv -f "$cfgfile.tmp" "$cfgfile" \
22363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22364test 0 -eq $? || _lt_function_replace_fail=:
22365
22366
22367 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22368func_split_short_opt ()\
22369{\
22370\ func_split_short_opt_arg=${1#??}\
22371\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22372} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22373 && mv -f "$cfgfile.tmp" "$cfgfile" \
22374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22375test 0 -eq $? || _lt_function_replace_fail=:
22376
22377
22378 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22379func_lo2o ()\
22380{\
22381\ case ${1} in\
22382\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22383\ *) func_lo2o_result=${1} ;;\
22384\ esac\
22385} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22386 && mv -f "$cfgfile.tmp" "$cfgfile" \
22387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22388test 0 -eq $? || _lt_function_replace_fail=:
22389
22390
22391 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22392func_xform ()\
22393{\
22394 func_xform_result=${1%.*}.lo\
22395} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22396 && mv -f "$cfgfile.tmp" "$cfgfile" \
22397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22398test 0 -eq $? || _lt_function_replace_fail=:
22399
22400
22401 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22402func_arith ()\
22403{\
22404 func_arith_result=$(( $* ))\
22405} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22406 && mv -f "$cfgfile.tmp" "$cfgfile" \
22407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22408test 0 -eq $? || _lt_function_replace_fail=:
22409
22410
22411 sed -e '/^func_len ()$/,/^} # func_len /c\
22412func_len ()\
22413{\
22414 func_len_result=${#1}\
22415} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22416 && mv -f "$cfgfile.tmp" "$cfgfile" \
22417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22418test 0 -eq $? || _lt_function_replace_fail=:
22419
22420fi
22421
22422if test x"$lt_shell_append" = xyes; then
22423 sed -e '/^func_append ()$/,/^} # func_append /c\
22424func_append ()\
22425{\
22426 eval "${1}+=\\${2}"\
22427} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22428 && mv -f "$cfgfile.tmp" "$cfgfile" \
22429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22430test 0 -eq $? || _lt_function_replace_fail=:
22431
22432
22433 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22434func_append_quoted ()\
22435{\
22436\ func_quote_for_eval "${2}"\
22437\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22438} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22439 && mv -f "$cfgfile.tmp" "$cfgfile" \
22440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22441test 0 -eq $? || _lt_function_replace_fail=:
22442
22443
22444 # Save a `func_append' function call where possible by direct use of '+='
22445 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22446 && mv -f "$cfgfile.tmp" "$cfgfile" \
22447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22448 test 0 -eq $? || _lt_function_replace_fail=:
22449else
22450 # Save a `func_append' function call even when '+=' is not available
22451 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22452 && mv -f "$cfgfile.tmp" "$cfgfile" \
22453 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22454 test 0 -eq $? || _lt_function_replace_fail=:
22455fi
22456
22457if test x"$_lt_function_replace_fail" = x":"; then
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22459$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22460fi
22461
22462
22463 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
22464 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22465 chmod +x "$ofile"
22466
22467
22468 cat <<_LT_EOF >> "$ofile"
22469
22470# ### BEGIN LIBTOOL TAG CONFIG: CXX
22471
22472# The linker used to build libraries.
22473LD=$lt_LD_CXX
22474
ee134472
JF
22475# How to create reloadable object files.
22476reload_flag=$lt_reload_flag_CXX
22477reload_cmds=$lt_reload_cmds_CXX
22478
9c60689e
DWT
22479# Commands used to build an old-style archive.
22480old_archive_cmds=$lt_old_archive_cmds_CXX
22481
22482# A language specific compiler.
22483CC=$lt_compiler_CXX
22484
22485# Is the compiler the GNU compiler?
22486with_gcc=$GCC_CXX
22487
22488# Compiler flag to turn off builtin functions.
22489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 22490
9c60689e
DWT
22491# Additional compiler flags for building library objects.
22492pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 22493
ee134472
JF
22494# How to pass a linker flag through the compiler.
22495wl=$lt_lt_prog_compiler_wl_CXX
22496
9c60689e
DWT
22497# Compiler flag to prevent dynamic linking.
22498link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 22499
9c60689e
DWT
22500# Does compiler simultaneously support -c and -o options?
22501compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 22502
9c60689e
DWT
22503# Whether or not to add -lc for building shared libraries.
22504build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 22505
9c60689e
DWT
22506# Whether or not to disallow shared libs when runtime libs are static.
22507allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 22508
9c60689e
DWT
22509# Compiler flag to allow reflexive dlopens.
22510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 22511
9c60689e
DWT
22512# Compiler flag to generate shared objects directly from archives.
22513whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 22514
9c60689e
DWT
22515# Whether the compiler copes with passing no objects directly.
22516compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 22517
9c60689e
DWT
22518# Create an old-style archive from a shared archive.
22519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 22520
9c60689e
DWT
22521# Create a temporary old-style archive to link instead of a shared archive.
22522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 22523
9c60689e
DWT
22524# Commands used to build a shared archive.
22525archive_cmds=$lt_archive_cmds_CXX
22526archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 22527
9c60689e
DWT
22528# Commands used to build a loadable module if different from building
22529# a shared archive.
22530module_cmds=$lt_module_cmds_CXX
22531module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 22532
9c60689e
DWT
22533# Whether we are building with GNU ld or not.
22534with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 22535
9c60689e
DWT
22536# Flag that allows shared libraries with undefined symbols to be built.
22537allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 22538
9c60689e
DWT
22539# Flag that enforces no undefined symbols.
22540no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 22541
9c60689e
DWT
22542# Flag to hardcode \$libdir into a binary during linking.
22543# This must work even if \$libdir does not exist
22544hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 22545
9c60689e
DWT
22546# If ld is used when linking, flag to hardcode \$libdir into a binary
22547# during linking. This must work even if \$libdir does not exist.
22548hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
6b66678a 22549
9c60689e
DWT
22550# Whether we need a single "-rpath" flag with a separated argument.
22551hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 22552
9c60689e
DWT
22553# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22554# DIR into the resulting binary.
22555hardcode_direct=$hardcode_direct_CXX
6b66678a 22556
9c60689e
DWT
22557# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22558# DIR into the resulting binary and the resulting library dependency is
22559# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22560# library is relocated.
22561hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 22562
9c60689e
DWT
22563# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22564# into the resulting binary.
22565hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 22566
9c60689e
DWT
22567# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22568# into the resulting binary.
22569hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 22570
9c60689e
DWT
22571# Set to "yes" if building a shared library automatically hardcodes DIR
22572# into the library and all subsequent libraries and executables linked
22573# against it.
22574hardcode_automatic=$hardcode_automatic_CXX
6b66678a 22575
9c60689e
DWT
22576# Set to yes if linker adds runtime paths of dependent libraries
22577# to runtime path list.
22578inherit_rpath=$inherit_rpath_CXX
6b66678a 22579
9c60689e
DWT
22580# Whether libtool must link a program against all its dependency libraries.
22581link_all_deplibs=$link_all_deplibs_CXX
6b66678a 22582
9c60689e
DWT
22583# Set to "yes" if exported symbols are required.
22584always_export_symbols=$always_export_symbols_CXX
6b66678a 22585
9c60689e
DWT
22586# The commands to list exported symbols.
22587export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 22588
9c60689e
DWT
22589# Symbols that should not be listed in the preloaded symbols.
22590exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 22591
9c60689e
DWT
22592# Symbols that must always be exported.
22593include_expsyms=$lt_include_expsyms_CXX
6b66678a 22594
9c60689e
DWT
22595# Commands necessary for linking programs (against libraries) with templates.
22596prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 22597
ee134472
JF
22598# Commands necessary for finishing linking programs.
22599postlink_cmds=$lt_postlink_cmds_CXX
22600
9c60689e
DWT
22601# Specify filename containing input files.
22602file_list_spec=$lt_file_list_spec_CXX
dbadc56a 22603
9c60689e
DWT
22604# How to hardcode a shared library path into an executable.
22605hardcode_action=$hardcode_action_CXX
309b0535 22606
9c60689e
DWT
22607# The directories searched by this compiler when creating a shared library.
22608compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 22609
9c60689e
DWT
22610# Dependencies to place before and after the objects being linked to
22611# create a shared library.
22612predep_objects=$lt_predep_objects_CXX
22613postdep_objects=$lt_postdep_objects_CXX
22614predeps=$lt_predeps_CXX
22615postdeps=$lt_postdeps_CXX
309b0535 22616
9c60689e
DWT
22617# The library search path used internally by the compiler when linking
22618# a shared library.
22619compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22620
22621# ### END LIBTOOL TAG CONFIG: CXX
22622_LT_EOF
22623
22624 ;;
22625
22626 esac
22627done # for ac_tag
22628
22629
22630as_fn_exit 0
22631_ACEOF
22632ac_clean_files=$ac_clean_files_save
22633
22634test $ac_write_fail = 0 ||
12833ad8 22635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22636
22637
22638# configure is writing to config.log, and then calls config.status.
22639# config.status does its own redirection, appending to config.log.
22640# Unfortunately, on DOS this fails, as config.log is still kept open
22641# by configure, so config.status won't be able to write to it; its
22642# output is simply discarded. So we exec the FD to /dev/null,
22643# effectively closing config.log, so it can be properly (re)opened and
22644# appended to by config.status. When coming back to configure, we
22645# need to make the FD available again.
22646if test "$no_create" != yes; then
22647 ac_cs_success=:
22648 ac_config_status_args=
22649 test "$silent" = yes &&
22650 ac_config_status_args="$ac_config_status_args --quiet"
22651 exec 5>/dev/null
22652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22653 exec 5>>config.log
22654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22655 # would make configure fail if this is the last instruction.
12833ad8 22656 $ac_cs_success || as_fn_exit 1
309b0535 22657fi
9c60689e
DWT
22658if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22660$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22661fi
22662