]> git.saurik.com Git - cycript.git/blame - configure
Support SO variable even when not Mach.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
12833ad8 3# Generated by GNU Autoconf 2.67 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.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0
DWT
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
12833ad8
JF
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
c7aa54aa
DWT
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 366# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
367as_fn_error ()
368{
12833ad8
JF
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 373 fi
12833ad8 374 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
9c60689e
DWT
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
c7aa54aa 680
9c60689e
DWT
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
c7aa54aa
DWT
683
684# Name of the host.
12833ad8 685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='Cycript'
703PACKAGE_TARNAME='cycript'
704PACKAGE_VERSION='0.9'
705PACKAGE_STRING='Cycript 0.9'
706PACKAGE_BUGREPORT='saurik@saurik.com'
707PACKAGE_URL='http://www.cycript.org/'
708
35fa52c0 709ac_unique_file="Console.cpp"
6b66678a
DWT
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724# include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729# include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
9c60689e
DWT
746ac_subst_vars='LTLIBOBJS
747LIBOBJS
794e88e7 748CY_ATTACH_GROUP
e1cce270 749CY_OBJECTIVEC_MACH
794e88e7
DWT
750ac_ct__NM
751_NM
752ac_ct__LIPO
753_LIPO
754ac_ct__OTOOL
755_OTOOL
9777bd50 756SO
5053a6d1
DWT
757LTLIBICONV
758LIBICONV
47aaa820 759GNUSTEP_CONFIG
c823f118 760CY_OBJECTIVEC
309b0535 761LIBFFI_LIBS
35fa52c0 762LIBFFI_CFLAGS
3fd51f51 763CY_EXECUTE
35fa52c0
DWT
764WEBKIT_LIBS
765WEBKIT_CFLAGS
549f29b5 766LTLIBAPR
632b71ea
DWT
767ac_ct_OBJCXX
768OBJCXXFLAGS
769OBJCXX
47aaa820
DWT
770CXXCPP
771ac_ct_CXX
772CXXFLAGS
773CXX
b65019fe
DWT
774SVNVERSION
775SVN
e9c9a47c
DWT
776GNUTAR
777INSTALL_DATA
778INSTALL_SCRIPT
779INSTALL_PROGRAM
780GPERF
781FLEX
782BISON
783TIME
784_BASH
9d13f949 785LTFLAGS
12833ad8 786GMAKE
632b71ea 787ifGNUmake
12833ad8
JF
788PKG_CONFIG_LIBDIR
789PKG_CONFIG_PATH
3fd51f51 790PKG_CONFIG
9c60689e
DWT
791CPP
792OTOOL64
793OTOOL
794LIPO
795NMEDIT
796DSYMUTIL
797lt_ECHO
798RANLIB
799STRIP
800AR
801OBJDUMP
802LN_S
803NM
804ac_ct_DUMPBIN
805DUMPBIN
806LD
807FGREP
808EGREP
809GREP
810SED
35fa52c0
DWT
811OBJEXT
812EXEEXT
813ac_ct_CC
814CPPFLAGS
815LDFLAGS
816CFLAGS
817CC
9c60689e
DWT
818host_os
819host_vendor
820host_cpu
821host
822build_os
823build_vendor
824build_cpu
825build
826LIBTOOL
dbadc56a 827target_alias
c7aa54aa
DWT
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846localstatedir
847sharedstatedir
848sysconfdir
849datadir
850datarootdir
851libexecdir
852sbindir
853bindir
854program_transform_name
855prefix
856exec_prefix
857PACKAGE_URL
858PACKAGE_BUGREPORT
859PACKAGE_STRING
860PACKAGE_VERSION
861PACKAGE_TARNAME
862PACKAGE_NAME
863PATH_SEPARATOR
864SHELL'
865ac_subst_files=''
866ac_user_opts='
867enable_option_checking
9c60689e 868enable_static
549f29b5 869enable_shared
9c60689e
DWT
870with_pic
871enable_fast_install
35fa52c0 872with_gnu_ld
9c60689e 873enable_libtool_lock
1504c9b8 874enable_universal_binary
632b71ea 875with_frameworks
9c60689e 876with_apr
5053a6d1 877enable_javascript
35fa52c0
DWT
878enable_rpath
879with_libiconv_prefix
c7aa54aa
DWT
880'
881 ac_precious_vars='build_alias
882host_alias
dbadc56a 883target_alias
35fa52c0
DWT
884CC
885CFLAGS
dbadc56a
DWT
886LDFLAGS
887LIBS
888CPPFLAGS
9c60689e 889CPP
3fd51f51 890PKG_CONFIG
12833ad8
JF
891PKG_CONFIG_PATH
892PKG_CONFIG_LIBDIR
e9c9a47c
DWT
893BISON
894FLEX
895GPERF
35fa52c0
DWT
896CXX
897CXXFLAGS
898CCC
9c60689e 899CXXCPP
632b71ea
DWT
900OBJCXX
901OBJCXXFLAGS
35fa52c0
DWT
902WEBKIT_CFLAGS
903WEBKIT_LIBS
a667869d 904LIBFFI_CFLAGS
790e5246
DWT
905LIBFFI_LIBS
906GNUSTEP_CONFIG'
c7aa54aa
DWT
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912ac_unrecognized_opts=
913ac_unrecognized_sep=
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
956
957ac_prev=
958ac_dashdash=
959for ac_option
960do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
12833ad8
JF
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
c7aa54aa
DWT
972 esac
973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
979
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 bindir=$ac_optarg ;;
984
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
999
1000 -datadir | --datadir | --datadi | --datad)
1001 ac_prev=datadir ;;
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1004
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1016 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
1027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1037
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1042 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047"enable_$ac_useropt"
1048"*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1073
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1078
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1108
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1125
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1146
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1182
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
1201 sbindir=$ac_optarg ;;
1202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
1212 sharedstatedir=$ac_optarg ;;
1213
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
1217 site=$ac_optarg ;;
1218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1223
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1230
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1241
1242 -with-* | --with-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1246 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251"with_$ac_useropt"
1252"*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
1257
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1262 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1291
12833ad8
JF
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293Try \`$0 --help' for more information"
c7aa54aa
DWT
1294 ;;
1295
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1302 esac
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1305
1306 *)
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1312 ;;
1313
1314 esac
1315done
1316
1317if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1319 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1320fi
1321
1322if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
12833ad8 1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328fi
1329
1330# Check all directory arguments for consistency.
1331for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1335do
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
1344 case $ac_val in
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 esac
12833ad8 1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1349done
1350
1351# There might be people who depend on the old broken behavior: `$host'
1352# used to hold the argument of --host etc.
1353# FIXME: To remove some day.
1354build=$build_alias
1355host=$host_alias
1356target=$target_alias
1357
1358# FIXME: To remove some day.
1359if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
12833ad8
JF
1362 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used" >&2
c7aa54aa
DWT
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367fi
1368
1369ac_tool_prefix=
1370test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372test "$silent" = yes && exec 6>/dev/null
1373
1374
1375ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376ac_ls_di=`ls -di .` &&
1377ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1378 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1379test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1380 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1381
1382
1383# Find the source files, if location was not specified.
1384if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392$as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\).*/{
1406 s//\1/
1407 q
1408 }
1409 s/.*/./; q'`
1410 srcdir=$ac_confdir
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 srcdir=..
1413 fi
1414else
1415 ac_srcdir_defaulted=no
1416fi
1417if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1420fi
1421ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422ac_abs_confdir=`(
12833ad8 1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1424 pwd)`
1425# When building in place, set srcdir=.
1426if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1428fi
1429# Remove unnecessary trailing slashes from srcdir.
1430# Double slashes in file names in object file debugging info
1431# mess up M-x gdb in Emacs.
1432case $srcdir in
1433*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434esac
1435for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440done
1441
1442#
1443# Report the --help message.
1444#
1445if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1448 cat <<_ACEOF
1449\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1450
1451Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454VAR=VALUE. See below for descriptions of some of the useful variables.
1455
1456Defaults for the options are specified in brackets.
1457
1458Configuration:
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
12833ad8 1463 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468
1469Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 [PREFIX]
1474
1475By default, \`make install' will install all the files in
1476\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478for instance \`--prefix=\$HOME'.
1479
1480For better control, use the options below.
1481
1482Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1502_ACEOF
1503
1504 cat <<\_ACEOF
35fa52c0
DWT
1505
1506System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1509_ACEOF
1510fi
1511
1512if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of Cycript 0.9:";;
1515 esac
1516 cat <<\_ACEOF
1517
35fa52c0
DWT
1518Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549f29b5 1522 --enable-static[=PKGS] build static libraries [default=no]
9c60689e 1523 --enable-shared[=PKGS] build shared libraries [default=yes]
9c60689e
DWT
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1504c9b8
DWT
1527 --disable-universal-binary
1528 do not build with universal binary support on Darwin
b66977f1 1529 --enable-javascript[=ENGINE]
790e5246 1530 use a JavaScript runtime (currently the only
b66977f1
DWT
1531 available option for ENGINE is JavaScriptCore)
1532 [default=yes]
5053a6d1 1533 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1534
1535Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9c60689e
DWT
1538 --with-pic try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
632b71ea
DWT
1541 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1542 path for frameworks with -F
309b0535
DWT
1543 --with-apr=PATH prefix for installed APR or the full path to
1544 apr-config
35fa52c0
DWT
1545 --with-gnu-ld assume the C compiler uses GNU ld default=no
1546 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1547 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1548
dbadc56a 1549Some influential environment variables:
35fa52c0
DWT
1550 CC C compiler command
1551 CFLAGS C compiler flags
dbadc56a
DWT
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1556 you have headers in a nonstandard directory <include dir>
9c60689e 1557 CPP C preprocessor
3fd51f51 1558 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1559 PKG_CONFIG_PATH
1560 directories to add to pkg-config's search path
1561 PKG_CONFIG_LIBDIR
1562 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1563 BISON GNU Project parser generator (yacc replacement)
1564 FLEX the fast lexical analyser generator
1565 GPERF perfect hash function generator
47aaa820
DWT
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 CXXCPP C++ preprocessor
632b71ea
DWT
1569 OBJCXX Objective C++ compiler command
1570 OBJCXXFLAGS Objective C++ compiler flags
35fa52c0
DWT
1571 WEBKIT_CFLAGS
1572 C compiler flags for WEBKIT, overriding pkg-config
1573 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1574 LIBFFI_CFLAGS
1575 C compiler flags for LIBFFI, overriding pkg-config
1576 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1577 GNUSTEP_CONFIG
1578 prints information about the current gnustep installation
dbadc56a
DWT
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
c7aa54aa
DWT
1583Report bugs to <saurik@saurik.com>.
1584Cycript home page: <http://www.cycript.org/>.
1585_ACEOF
1586ac_status=$?
1587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
1595 ac_builddir=.
1596
1597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
1612
1613case $srcdir in
1614 .) # We are building in place.
1615 ac_srcdir=.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626esac
1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1642fi
1643
1644test -n "$ac_init_help" && exit $ac_status
1645if $ac_init_version; then
1646 cat <<\_ACEOF
1647Cycript configure 0.9
12833ad8 1648generated by GNU Autoconf 2.67
c7aa54aa 1649
12833ad8 1650Copyright (C) 2010 Free Software Foundation, Inc.
c7aa54aa
DWT
1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
1654 exit
1655fi
1656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
dbadc56a 1660
35fa52c0
DWT
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1695 as_fn_set_status $ac_retval
35fa52c0
DWT
1696
1697} # ac_fn_c_try_compile
1698
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 $as_test_x conftest$ac_exeext
1727 }; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1741 as_fn_set_status $ac_retval
35fa52c0
DWT
1742
1743} # ac_fn_c_try_link
1744
9c60689e
DWT
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
dbadc56a
DWT
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
12833ad8 1754if eval "test \"\${$3+set}\"" = set; then :
9c60689e
DWT
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_try_cpp LINENO
1777# ----------------------
1778# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_cpp ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
9c60689e 1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1797 test $ac_status = 0; } > conftest.i && {
9c60689e 1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1799 test ! -s conftest.err
9c60689e 1800 }; then :
dbadc56a
DWT
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
9c60689e 1806 ac_retval=1
dbadc56a
DWT
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1809 as_fn_set_status $ac_retval
dbadc56a 1810
9c60689e 1811} # ac_fn_c_try_cpp
35fa52c0
DWT
1812
1813# ac_fn_c_try_run LINENO
1814# ----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816# that executables *can* be run.
1817ac_fn_c_try_run ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1851 as_fn_set_status $ac_retval
35fa52c0
DWT
1852
1853} # ac_fn_c_try_run
6b66678a 1854
9c60689e
DWT
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
6b66678a
DWT
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
12833ad8 1863if eval "test \"\${$3+set}\"" = set; then :
9c60689e 1864 $as_echo_n "(cached) " >&6
6b66678a 1865else
9c60689e
DWT
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h. */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870#define $2 innocuous_$2
6b66678a 1871
9c60689e
DWT
1872/* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
6b66678a 1914fi
9c60689e
DWT
1915eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
6b66678a 1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6b66678a 1919
9c60689e 1920} # ac_fn_c_check_func
6b66678a 1921
9c60689e
DWT
1922# ac_fn_cxx_try_compile LINENO
1923# ----------------------------
1924# Try to compile conftest.$ac_ext, and return whether this succeeded.
1925ac_fn_cxx_try_compile ()
6b66678a
DWT
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1928 rm -f conftest.$ac_objext
1929 if { { ac_try="$ac_compile"
1930case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933esac
1934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935$as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_compile") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1942 fi
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest.$ac_objext; then :
1948 ac_retval=0
1949else
1950 $as_echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_retval=1
1954fi
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 as_fn_set_status $ac_retval
1957
1958} # ac_fn_cxx_try_compile
1959
1960# ac_fn_cxx_try_cpp LINENO
1961# ------------------------
1962# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1963ac_fn_cxx_try_cpp ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970esac
1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972$as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1981 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 }; then :
1985 ac_retval=0
1986else
1987 $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991fi
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
1994
1995} # ac_fn_cxx_try_cpp
1996
1997# ac_fn_cxx_try_link LINENO
1998# -------------------------
1999# Try to link conftest.$ac_ext, and return whether this succeeded.
2000ac_fn_cxx_try_link ()
2001{
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { { ac_try="$ac_link"
2005case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008esac
2009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010$as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2017 fi
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_cxx_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest$ac_exeext && {
2023 test "$cross_compiling" = yes ||
2024 $as_test_x conftest$ac_exeext
2025 }; then :
2026 ac_retval=0
2027else
2028 $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032fi
2033 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 # interfere with the next link command; also delete a directory that is
2036 # left behind by Apple's compiler. We do this before executing the actions.
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 as_fn_set_status $ac_retval
2040
2041} # ac_fn_cxx_try_link
2042
632b71ea
DWT
2043# ac_fn_objcxx_try_compile LINENO
2044# -------------------------------
2045# Try to compile conftest.$ac_ext, and return whether this succeeded.
2046ac_fn_objcxx_try_compile ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext
2050 if { { ac_try="$ac_compile"
2051case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054esac
2055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056$as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_compile") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_objcxx_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest.$ac_objext; then :
2069 ac_retval=0
2070else
2071 $as_echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075fi
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 as_fn_set_status $ac_retval
2078
2079} # ac_fn_objcxx_try_compile
2080
47aaa820
DWT
2081# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2082# ---------------------------------------------------------
2083# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2084# the include files in INCLUDES and setting the cache variable VAR
2085# accordingly.
2086ac_fn_cxx_check_header_mongrel ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12833ad8 2089 if eval "test \"\${$3+set}\"" = set; then :
47aaa820
DWT
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091$as_echo_n "checking for $2... " >&6; }
12833ad8 2092if eval "test \"\${$3+set}\"" = set; then :
47aaa820
DWT
2093 $as_echo_n "(cached) " >&6
2094fi
2095eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098else
2099 # Is the header compilable?
2100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2101$as_echo_n "checking $2 usability... " >&6; }
2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105#include <$2>
2106_ACEOF
2107if ac_fn_cxx_try_compile "$LINENO"; then :
2108 ac_header_compiler=yes
2109else
2110 ac_header_compiler=no
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2114$as_echo "$ac_header_compiler" >&6; }
2115
2116# Is the header present?
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2118$as_echo_n "checking $2 presence... " >&6; }
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121#include <$2>
2122_ACEOF
2123if ac_fn_cxx_try_cpp "$LINENO"; then :
2124 ac_header_preproc=yes
2125else
2126 ac_header_preproc=no
2127fi
12833ad8 2128rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2130$as_echo "$ac_header_preproc" >&6; }
2131
2132# So? What about this header?
2133case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2134 yes:no: )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2136$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ;;
2140 no:yes:* )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2142$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2144$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2146$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2148$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2151( $as_echo "## -------------------------------- ##
47aaa820 2152## Report this to saurik@saurik.com ##
12833ad8 2153## -------------------------------- ##"
47aaa820
DWT
2154 ) | sed "s/^/$as_me: WARNING: /" >&2
2155 ;;
2156esac
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158$as_echo_n "checking for $2... " >&6; }
12833ad8 2159if eval "test \"\${$3+set}\"" = set; then :
47aaa820
DWT
2160 $as_echo_n "(cached) " >&6
2161else
2162 eval "$3=\$ac_header_compiler"
2163fi
2164eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166$as_echo "$ac_res" >&6; }
2167fi
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169
2170} # ac_fn_cxx_check_header_mongrel
2171
c823f118
DWT
2172# ac_fn_objcxx_try_link LINENO
2173# ----------------------------
2174# Try to link conftest.$ac_ext, and return whether this succeeded.
2175ac_fn_objcxx_try_link ()
2176{
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 rm -f conftest.$ac_objext conftest$ac_exeext
2179 if { { ac_try="$ac_link"
2180case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183esac
2184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185$as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>conftest.err
2187 ac_status=$?
2188 if test -s conftest.err; then
2189 grep -v '^ *+' conftest.err >conftest.er1
2190 cat conftest.er1 >&5
2191 mv -f conftest.er1 conftest.err
2192 fi
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && {
2195 test -z "$ac_objcxx_werror_flag" ||
2196 test ! -s conftest.err
2197 } && test -s conftest$ac_exeext && {
2198 test "$cross_compiling" = yes ||
2199 $as_test_x conftest$ac_exeext
2200 }; then :
2201 ac_retval=0
2202else
2203 $as_echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207fi
2208 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210 # interfere with the next link command; also delete a directory that is
2211 # left behind by Apple's compiler. We do this before executing the actions.
2212 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214 as_fn_set_status $ac_retval
2215
2216} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2217cat >config.log <<_ACEOF
2218This file contains any messages produced by compilers while
2219running configure, to aid debugging if configure makes a mistake.
2220
2221It was created by Cycript $as_me 0.9, which was
12833ad8 2222generated by GNU Autoconf 2.67. Invocation command line was
c7aa54aa
DWT
2223
2224 $ $0 $@
2225
2226_ACEOF
2227exec 5>>config.log
2228{
2229cat <<_ASUNAME
2230## --------- ##
2231## Platform. ##
2232## --------- ##
2233
2234hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2235uname -m = `(uname -m) 2>/dev/null || echo unknown`
2236uname -r = `(uname -r) 2>/dev/null || echo unknown`
2237uname -s = `(uname -s) 2>/dev/null || echo unknown`
2238uname -v = `(uname -v) 2>/dev/null || echo unknown`
2239
2240/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2241/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2242
2243/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2244/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2245/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2246/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2247/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2248/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2249/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2250
2251_ASUNAME
2252
2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 $as_echo "PATH: $as_dir"
2259 done
2260IFS=$as_save_IFS
2261
2262} >&5
2263
2264cat >&5 <<_ACEOF
2265
2266
2267## ----------- ##
2268## Core tests. ##
2269## ----------- ##
2270
2271_ACEOF
2272
2273
2274# Keep a trace of the command line.
2275# Strip out --no-create and --no-recursion so they do not pile up.
2276# Strip out --silent because we don't want to record it for future runs.
2277# Also quote any args containing shell meta-characters.
2278# Make two passes to allow for proper duplicate-argument suppression.
2279ac_configure_args=
2280ac_configure_args0=
2281ac_configure_args1=
2282ac_must_keep_next=false
2283for ac_pass in 1 2
2284do
2285 for ac_arg
2286 do
2287 case $ac_arg in
2288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2290 | -silent | --silent | --silen | --sile | --sil)
2291 continue ;;
2292 *\'*)
2293 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 esac
2295 case $ac_pass in
2296 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2297 2)
2298 as_fn_append ac_configure_args1 " '$ac_arg'"
2299 if test $ac_must_keep_next = true; then
2300 ac_must_keep_next=false # Got value, back to normal.
2301 else
2302 case $ac_arg in
2303 *=* | --config-cache | -C | -disable-* | --disable-* \
2304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2306 | -with-* | --with-* | -without-* | --without-* | --x)
2307 case "$ac_configure_args0 " in
2308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2309 esac
2310 ;;
2311 -* ) ac_must_keep_next=true ;;
2312 esac
2313 fi
2314 as_fn_append ac_configure_args " '$ac_arg'"
2315 ;;
2316 esac
2317 done
2318done
2319{ ac_configure_args0=; unset ac_configure_args0;}
2320{ ac_configure_args1=; unset ac_configure_args1;}
2321
2322# When interrupted or exit'd, cleanup temporary files, and complete
2323# config.log. We remove comments because anyway the quotes in there
2324# would cause problems or look ugly.
2325# WARNING: Use '\'' to represent an apostrophe within the trap.
2326# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2327trap 'exit_status=$?
2328 # Save into config.log some information that might help in debugging.
2329 {
2330 echo
2331
12833ad8 2332 $as_echo "## ---------------- ##
c7aa54aa 2333## Cache variables. ##
12833ad8 2334## ---------------- ##"
c7aa54aa
DWT
2335 echo
2336 # The following way of writing the cache mishandles newlines in values,
2337(
2338 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in #(
2341 *${as_nl}*)
2342 case $ac_var in #(
2343 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 esac
2346 case $ac_var in #(
2347 _ | IFS | as_nl) ;; #(
2348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349 *) { eval $ac_var=; unset $ac_var;} ;;
2350 esac ;;
2351 esac
2352 done
2353 (set) 2>&1 |
2354 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355 *${as_nl}ac_space=\ *)
2356 sed -n \
2357 "s/'\''/'\''\\\\'\'''\''/g;
2358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359 ;; #(
2360 *)
2361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362 ;;
2363 esac |
2364 sort
2365)
2366 echo
2367
12833ad8 2368 $as_echo "## ----------------- ##
c7aa54aa 2369## Output variables. ##
12833ad8 2370## ----------------- ##"
c7aa54aa
DWT
2371 echo
2372 for ac_var in $ac_subst_vars
2373 do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in
2376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 esac
2378 $as_echo "$ac_var='\''$ac_val'\''"
2379 done | sort
2380 echo
2381
2382 if test -n "$ac_subst_files"; then
12833ad8 2383 $as_echo "## ------------------- ##
c7aa54aa 2384## File substitutions. ##
12833ad8 2385## ------------------- ##"
c7aa54aa
DWT
2386 echo
2387 for ac_var in $ac_subst_files
2388 do
2389 eval ac_val=\$$ac_var
2390 case $ac_val in
2391 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392 esac
2393 $as_echo "$ac_var='\''$ac_val'\''"
2394 done | sort
2395 echo
2396 fi
2397
2398 if test -s confdefs.h; then
12833ad8 2399 $as_echo "## ----------- ##
c7aa54aa 2400## confdefs.h. ##
12833ad8 2401## ----------- ##"
c7aa54aa
DWT
2402 echo
2403 cat confdefs.h
2404 echo
2405 fi
2406 test "$ac_signal" != 0 &&
2407 $as_echo "$as_me: caught signal $ac_signal"
2408 $as_echo "$as_me: exit $exit_status"
2409 } >&5
2410 rm -f core *.core core.conftest.* &&
2411 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2412 exit $exit_status
2413' 0
2414for ac_signal in 1 2 13 15; do
2415 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2416done
2417ac_signal=0
2418
2419# confdefs.h avoids OS command line length limits that DEFS can exceed.
2420rm -f -r conftest* confdefs.h
2421
2422$as_echo "/* confdefs.h */" > confdefs.h
2423
2424# Predefined preprocessor variables.
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_NAME "$PACKAGE_NAME"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_VERSION "$PACKAGE_VERSION"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_STRING "$PACKAGE_STRING"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_URL "$PACKAGE_URL"
2448_ACEOF
2449
2450
2451# Let the site file select an alternate cache file if it wants to.
2452# Prefer an explicitly selected file to automatically selected ones.
2453ac_site_file1=NONE
2454ac_site_file2=NONE
2455if test -n "$CONFIG_SITE"; then
12833ad8
JF
2456 # We do not want a PATH search for config.site.
2457 case $CONFIG_SITE in #((
2458 -*) ac_site_file1=./$CONFIG_SITE;;
2459 */*) ac_site_file1=$CONFIG_SITE;;
2460 *) ac_site_file1=./$CONFIG_SITE;;
2461 esac
c7aa54aa
DWT
2462elif test "x$prefix" != xNONE; then
2463 ac_site_file1=$prefix/share/config.site
2464 ac_site_file2=$prefix/etc/config.site
2465else
2466 ac_site_file1=$ac_default_prefix/share/config.site
2467 ac_site_file2=$ac_default_prefix/etc/config.site
2468fi
2469for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2470do
2471 test "x$ac_site_file" = xNONE && continue
9c60689e 2472 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2474$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2475 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2476 . "$ac_site_file" \
2477 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479as_fn_error $? "failed to load site script $ac_site_file
2480See \`config.log' for more details" "$LINENO" 5 ; }
c7aa54aa
DWT
2481 fi
2482done
2483
2484if test -r "$cache_file"; then
9c60689e
DWT
2485 # Some versions of bash will fail to source /dev/null (special files
2486 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2487 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2489$as_echo "$as_me: loading cache $cache_file" >&6;}
2490 case $cache_file in
2491 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2492 *) . "./$cache_file";;
2493 esac
2494 fi
2495else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2497$as_echo "$as_me: creating cache $cache_file" >&6;}
2498 >$cache_file
2499fi
2500
2501# Check that the precious variables saved in the cache have kept the same
2502# value.
2503ac_cache_corrupted=false
2504for ac_var in $ac_precious_vars; do
2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506 eval ac_new_set=\$ac_env_${ac_var}_set
2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508 eval ac_new_val=\$ac_env_${ac_var}_value
2509 case $ac_old_set,$ac_new_set in
2510 set,)
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2512$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2514 ,set)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2516$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,);;
2519 *)
2520 if test "x$ac_old_val" != "x$ac_new_val"; then
2521 # differences in whitespace do not lead to failure.
2522 ac_old_val_w=`echo x $ac_old_val`
2523 ac_new_val_w=`echo x $ac_new_val`
2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2526$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2527 ac_cache_corrupted=:
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2530$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2531 eval $ac_var=\$ac_old_val
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2534$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2536$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2537 fi;;
2538 esac
2539 # Pass precious variables to config.status.
2540 if test "$ac_new_set" = set; then
2541 case $ac_new_val in
2542 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 *) ac_arg=$ac_var=$ac_new_val ;;
2544 esac
2545 case " $ac_configure_args " in
2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548 esac
2549 fi
2550done
2551if $ac_cache_corrupted; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2556 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2557fi
2558## -------------------- ##
2559## Main body of script. ##
2560## -------------------- ##
2561
2562ac_ext=c
2563ac_cpp='$CPP $CPPFLAGS'
2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567
2568
35fa52c0 2569
6b66678a
DWT
2570ac_aux_dir=
2571for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2572 if test -f "$ac_dir/install-sh"; then
2573 ac_aux_dir=$ac_dir
2574 ac_install_sh="$ac_aux_dir/install-sh -c"
2575 break
2576 elif test -f "$ac_dir/install.sh"; then
2577 ac_aux_dir=$ac_dir
2578 ac_install_sh="$ac_aux_dir/install.sh -c"
2579 break
2580 elif test -f "$ac_dir/shtool"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/shtool install -c"
2583 break
2584 fi
6b66678a
DWT
2585done
2586if test -z "$ac_aux_dir"; then
12833ad8 2587 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2588fi
2589
2590# These three variables are undocumented and unsupported,
2591# and are intended to be withdrawn in a future Autoconf release.
2592# They can cause serious problems if a builder's source tree is in a directory
2593# whose full name contains unusual characters.
2594ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2595ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2596ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2597
2598
9c60689e
DWT
2599case `pwd` in
2600 *\ * | *\ *)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2602$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2603esac
2604
2605
2606
2607macro_version='2.2.6b'
2608macro_revision='1.3017'
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622ltmain="$ac_aux_dir/ltmain.sh"
2623
2624# Make sure we can run config.sub.
2625$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
12833ad8 2626 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
9c60689e
DWT
2627
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629$as_echo_n "checking build system type... " >&6; }
2630if test "${ac_cv_build+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2632else
2633 ac_build_alias=$build_alias
2634test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636test "x$ac_build_alias" = x &&
12833ad8 2637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
9c60689e 2638ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
12833ad8 2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
9c60689e
DWT
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643$as_echo "$ac_cv_build" >&6; }
2644case $ac_cv_build in
2645*-*-*) ;;
12833ad8 2646*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
9c60689e
DWT
2647esac
2648build=$ac_cv_build
2649ac_save_IFS=$IFS; IFS='-'
2650set x $ac_cv_build
2651shift
2652build_cpu=$1
2653build_vendor=$2
2654shift; shift
2655# Remember, the first character of IFS is used to create $*,
2656# except with old shells:
2657build_os=$*
2658IFS=$ac_save_IFS
2659case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660
2661
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663$as_echo_n "checking host system type... " >&6; }
2664if test "${ac_cv_host+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666else
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2669else
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12833ad8 2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
9c60689e
DWT
2672fi
2673
2674fi
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676$as_echo "$ac_cv_host" >&6; }
2677case $ac_cv_host in
2678*-*-*) ;;
12833ad8 2679*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
9c60689e
DWT
2680esac
2681host=$ac_cv_host
2682ac_save_IFS=$IFS; IFS='-'
2683set x $ac_cv_host
2684shift
2685host_cpu=$1
2686host_vendor=$2
2687shift; shift
2688# Remember, the first character of IFS is used to create $*,
2689# except with old shells:
2690host_os=$*
2691IFS=$ac_save_IFS
2692case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693
2694
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 2705if test "${ac_cv_prog_CC+set}" = set; then :
dbadc56a
DWT
2706 $as_echo_n "(cached) " >&6
2707else
9c60689e
DWT
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 2718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722done
2723 done
2724IFS=$as_save_IFS
2725
2726fi
2727fi
9c60689e
DWT
2728CC=$ac_cv_prog_CC
2729if test -n "$CC"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731$as_echo "$CC" >&6; }
35fa52c0
DWT
2732else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2735fi
2736
2737
2738fi
2739if test -z "$ac_cv_prog_CC"; then
2740 ac_ct_CC=$CC
2741 # Extract the first word of "gcc", so it can be a program name with args.
2742set dummy gcc; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747else
2748 if test -n "$ac_ct_CC"; then
2749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_CC="gcc"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762done
2763 done
2764IFS=$as_save_IFS
2765
2766fi
2767fi
2768ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769if test -n "$ac_ct_CC"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771$as_echo "$ac_ct_CC" >&6; }
2772else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777 if test "x$ac_ct_CC" = x; then
2778 CC=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781yes:)
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786 CC=$ac_ct_CC
2787 fi
2788else
2789 CC="$ac_cv_prog_CC"
2790fi
2791
2792if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795set dummy ${ac_tool_prefix}cc; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if test "${ac_cv_prog_CC+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
2800else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_CC="${ac_tool_prefix}cc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815done
2816 done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831 fi
2832fi
2833if test -z "$CC"; then
2834 # Extract the first word of "cc", so it can be a program name with args.
2835set dummy cc; ac_word=$2
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
2838if test "${ac_cv_prog_CC+set}" = set; then :
2839 $as_echo_n "(cached) " >&6
2840else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853 ac_prog_rejected=yes
2854 continue
2855 fi
2856 ac_cv_prog_CC="cc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860done
2861 done
2862IFS=$as_save_IFS
2863
2864if test $ac_prog_rejected = yes; then
2865 # We found a bogon in the path, so make sure we never use it.
2866 set dummy $ac_cv_prog_CC
2867 shift
2868 if test $# != 0; then
2869 # We chose a different compiler from the bogus one.
2870 # However, it has the same basename, so the bogon will be chosen
2871 # first if we set CC to just the basename; use the full file name.
2872 shift
2873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2874 fi
2875fi
2876fi
2877fi
2878CC=$ac_cv_prog_CC
2879if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881$as_echo "$CC" >&6; }
2882else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888fi
2889if test -z "$CC"; then
2890 if test -n "$ac_tool_prefix"; then
2891 for ac_prog in cl.exe
2892 do
2893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896$as_echo_n "checking for $ac_word... " >&6; }
2897if test "${ac_cv_prog_CC+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899else
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2902else
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914done
2915 done
2916IFS=$as_save_IFS
2917
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923$as_echo "$CC" >&6; }
2924else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
2927fi
2928
2929
2930 test -n "$CC" && break
2931 done
2932fi
2933if test -z "$CC"; then
2934 ac_ct_CC=$CC
2935 for ac_prog in cl.exe
2936do
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938set dummy $ac_prog; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943else
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_ac_ct_CC="$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958done
2959 done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967$as_echo "$ac_ct_CC" >&6; }
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974 test -n "$ac_ct_CC" && break
2975done
2976
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981yes:)
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984ac_tool_warned=yes ;;
2985esac
2986 CC=$ac_ct_CC
2987 fi
2988fi
2989
2990fi
2991
2992
2993test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8
JF
2995as_fn_error $? "no acceptable C compiler found in \$PATH
2996See \`config.log' for more details" "$LINENO" 5 ; }
35fa52c0
DWT
2997
2998# Provide some information about the compiler.
2999$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3000set X $ac_compile
3001ac_compiler=$2
3002for ac_option in --version -v -V -qversion; do
3003 { { ac_try="$ac_compiler $ac_option >&5"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
3008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009$as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3011 ac_status=$?
3012 if test -s conftest.err; then
3013 sed '10a\
3014... rest of stderr output deleted ...
3015 10q' conftest.err >conftest.er1
3016 cat conftest.er1 >&5
35fa52c0 3017 fi
9c60689e 3018 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }
3021done
3022
3023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h. */
9c60689e 3025
35fa52c0
DWT
3026int
3027main ()
3028{
35fa52c0
DWT
3029
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034ac_clean_files_save=$ac_clean_files
9c60689e 3035ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3036# Try to create an executable without -o first, disregard a.out.
3037# It will help us diagnose broken compilers, and finding out an intuition
3038# of exeext.
9c60689e
DWT
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3040$as_echo_n "checking whether the C compiler works... " >&6; }
35fa52c0
DWT
3041ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042
3043# The possible output files:
3044ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045
3046ac_rmfiles=
3047for ac_file in $ac_files
3048do
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3052 esac
3053done
3054rm -f $ac_rmfiles
3055
3056if { { ac_try="$ac_link_default"
3057case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link_default") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3067 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3068# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3069# in a Makefile. We should not override ac_cv_exeext if it was cached,
3070# so that the user can short-circuit this test for compilers unknown to
3071# Autoconf.
3072for ac_file in $ac_files ''
3073do
3074 test -f "$ac_file" || continue
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077 ;;
3078 [ab].out )
3079 # We found the default executable, but exeext='' is most
3080 # certainly right.
3081 break;;
3082 *.* )
3083 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084 then :; else
3085 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 fi
3087 # We set ac_cv_exeext here because the later test for it is not
3088 # safe: cross compilers may not add the suffix if given an `-o'
3089 # argument, so we may need to know it at that point already.
3090 # Even if this section looks crufty: it has the advantage of
3091 # actually working.
3092 break;;
3093 * )
3094 break;;
3095 esac
3096done
3097test "$ac_cv_exeext" = no && ac_cv_exeext=
3098
3099else
3100 ac_file=''
3101fi
35fa52c0 3102if test -z "$ac_file"; then :
9c60689e
DWT
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8
JF
3110as_fn_error 77 "C compiler cannot create executables
3111See \`config.log' for more details" "$LINENO" 5 ; }
9c60689e
DWT
3112else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114$as_echo "yes" >&6; }
35fa52c0 3115fi
9c60689e
DWT
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3117$as_echo_n "checking for C compiler default output file name... " >&6; }
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3120ac_exeext=$ac_cv_exeext
3121
9c60689e 3122rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3123ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3125$as_echo_n "checking for suffix of executables... " >&6; }
3126if { { ac_try="$ac_link"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; then :
3137 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3138# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3139# work properly (i.e., refer to `conftest.exe'), while it won't with
3140# `rm'.
3141for ac_file in conftest.exe conftest conftest.*; do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146 break;;
3147 * ) break;;
3148 esac
3149done
3150else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8
JF
3153as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3154See \`config.log' for more details" "$LINENO" 5 ; }
35fa52c0 3155fi
9c60689e 3156rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158$as_echo "$ac_cv_exeext" >&6; }
3159
3160rm -f conftest.$ac_ext
3161EXEEXT=$ac_cv_exeext
3162ac_exeext=$EXEEXT
9c60689e
DWT
3163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164/* end confdefs.h. */
3165#include <stdio.h>
3166int
3167main ()
3168{
3169FILE *f = fopen ("conftest.out", "w");
3170 return ferror (f) || fclose (f) != 0;
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176ac_clean_files="$ac_clean_files conftest.out"
3177# Check that the compiler produces executables we can run. If not, either
3178# the compiler is broken, or we cross compile.
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3180$as_echo_n "checking whether we are cross compiling... " >&6; }
3181if test "$cross_compiling" != yes; then
3182 { { ac_try="$ac_link"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188$as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_link") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }
3193 if { ac_try='./conftest$ac_cv_exeext'
3194 { { case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; }; then
3204 cross_compiling=no
3205 else
3206 if test "$cross_compiling" = maybe; then
3207 cross_compiling=yes
3208 else
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3211as_fn_error $? "cannot run C compiled programs.
9c60689e 3212If you meant to cross compile, use \`--host'.
12833ad8 3213See \`config.log' for more details" "$LINENO" 5 ; }
9c60689e
DWT
3214 fi
3215 fi
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3218$as_echo "$cross_compiling" >&6; }
3219
3220rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3221ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3223$as_echo_n "checking for suffix of object files... " >&6; }
3224if test "${ac_cv_objext+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226else
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h. */
3229
3230int
3231main ()
3232{
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.o conftest.obj
3239if { { ac_try="$ac_compile"
3240case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245$as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compile") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 for ac_file in conftest.o conftest.obj conftest.*; do
3251 test -f "$ac_file" || continue;
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3255 break;;
3256 esac
3257done
3258else
3259 $as_echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8
JF
3264as_fn_error $? "cannot compute suffix of object files: cannot compile
3265See \`config.log' for more details" "$LINENO" 5 ; }
35fa52c0
DWT
3266fi
3267rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3270$as_echo "$ac_cv_objext" >&6; }
3271OBJEXT=$ac_cv_objext
3272ac_objext=$OBJEXT
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3274$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3275if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277else
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284#ifndef __GNUC__
3285 choke me
3286#endif
3287
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_compiler_gnu=yes
3294else
3295 ac_compiler_gnu=no
3296fi
3297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298ac_cv_c_compiler_gnu=$ac_compiler_gnu
3299
3300fi
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3302$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3303if test $ac_compiler_gnu = yes; then
3304 GCC=yes
3305else
3306 GCC=
3307fi
3308ac_test_CFLAGS=${CFLAGS+set}
3309ac_save_CFLAGS=$CFLAGS
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3311$as_echo_n "checking whether $CC accepts -g... " >&6; }
3312if test "${ac_cv_prog_cc_g+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3314else
3315 ac_save_c_werror_flag=$ac_c_werror_flag
3316 ac_c_werror_flag=yes
3317 ac_cv_prog_cc_g=no
3318 CFLAGS="-g"
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320/* end confdefs.h. */
3321
3322int
3323main ()
3324{
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_g=yes
3332else
3333 CFLAGS=""
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h. */
3336
3337int
3338main ()
3339{
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345if ac_fn_c_try_compile "$LINENO"; then :
3346
3347else
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3349 CFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h. */
3352
3353int
3354main ()
3355{
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_prog_cc_g=yes
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367fi
3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_c_werror_flag=$ac_save_c_werror_flag
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3372$as_echo "$ac_cv_prog_cc_g" >&6; }
3373if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS=$ac_save_CFLAGS
3375elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3377 CFLAGS="-g -O2"
3378 else
3379 CFLAGS="-g"
3380 fi
3381else
3382 if test "$GCC" = yes; then
3383 CFLAGS="-O2"
3384 else
3385 CFLAGS=
3386 fi
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3389$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3390if test "${ac_cv_prog_cc_c89+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392else
3393 ac_cv_prog_cc_c89=no
3394ac_save_CC=$CC
3395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h. */
3397#include <stdarg.h>
3398#include <stdio.h>
3399#include <sys/types.h>
3400#include <sys/stat.h>
3401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402struct buf { int x; };
3403FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404static char *e (p, i)
3405 char **p;
3406 int i;
3407{
3408 return p[i];
3409}
3410static char *f (char * (*g) (char **, int), char **p, ...)
3411{
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3418}
3419
3420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std. */
3427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3431#define FOO(x) 'x'
3432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
3434int test (int i, double x);
3435struct s1 {int (*f) (int a);};
3436struct s2 {int (*f) (double a);};
3437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438int argc;
3439char **argv;
3440int
3441main ()
3442{
3443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3444 ;
3445 return 0;
3446}
3447_ACEOF
3448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450do
3451 CC="$ac_save_CC $ac_arg"
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_c89=$ac_arg
3454fi
3455rm -f core conftest.err conftest.$ac_objext
3456 test "x$ac_cv_prog_cc_c89" != "xno" && break
3457done
3458rm -f conftest.$ac_ext
3459CC=$ac_save_CC
3460
3461fi
3462# AC_CACHE_VAL
3463case "x$ac_cv_prog_cc_c89" in
3464 x)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3466$as_echo "none needed" >&6; } ;;
3467 xno)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3469$as_echo "unsupported" >&6; } ;;
3470 *)
3471 CC="$CC $ac_cv_prog_cc_c89"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3473$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474esac
3475if test "x$ac_cv_prog_cc_c89" != xno; then :
3476
3477fi
3478
3479ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
9c60689e
DWT
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3486$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3487if test "${ac_cv_path_SED+set}" = set; then :
35fa52c0
DWT
3488 $as_echo_n "(cached) " >&6
3489else
9c60689e
DWT
3490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3491 for ac_i in 1 2 3 4 5 6 7; do
3492 ac_script="$ac_script$as_nl$ac_script"
3493 done
3494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3495 { ac_script=; unset ac_script;}
3496 if test -z "$SED"; then
3497 ac_path_SED_found=false
3498 # Loop through the user's path and test for each of PROGNAME-LIST
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35fa52c0
DWT
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
9c60689e 3504 for ac_prog in sed gsed; do
35fa52c0 3505 for ac_exec_ext in '' $ac_executable_extensions; do
9c60689e
DWT
3506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3508# Check for GNU ac_path_SED and select it if it is found.
3509 # Check for GNU $ac_path_SED
3510case `"$ac_path_SED" --version 2>&1` in
3511*GNU*)
3512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3513*)
3514 ac_count=0
3515 $as_echo_n 0123456789 >"conftest.in"
3516 while :
3517 do
3518 cat "conftest.in" "conftest.in" >"conftest.tmp"
3519 mv "conftest.tmp" "conftest.in"
3520 cp "conftest.in" "conftest.nl"
3521 $as_echo '' >> "conftest.nl"
3522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3524 as_fn_arith $ac_count + 1 && ac_count=$as_val
3525 if test $ac_count -gt ${ac_path_SED_max-0}; then
3526 # Best one so far, save it but keep looking for a better one
3527 ac_cv_path_SED="$ac_path_SED"
3528 ac_path_SED_max=$ac_count
3529 fi
3530 # 10*(2^10) chars as input seems more than enough
3531 test $ac_count -gt 10 && break
35fa52c0 3532 done
9c60689e
DWT
3533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3534esac
35fa52c0 3535
9c60689e
DWT
3536 $ac_path_SED_found && break 3
3537 done
3538 done
3539 done
3540IFS=$as_save_IFS
3541 if test -z "$ac_cv_path_SED"; then
12833ad8 3542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e 3543 fi
35fa52c0 3544else
9c60689e 3545 ac_cv_path_SED=$SED
35fa52c0
DWT
3546fi
3547
9c60689e
DWT
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3550$as_echo "$ac_cv_path_SED" >&6; }
3551 SED="$ac_cv_path_SED"
3552 rm -f conftest.sed
35fa52c0 3553
9c60689e
DWT
3554test -z "$SED" && SED=sed
3555Xsed="$SED -e 1s/^X//"
35fa52c0 3556
35fa52c0 3557
35fa52c0 3558
35fa52c0 3559
35fa52c0 3560
35fa52c0
DWT
3561
3562
35fa52c0 3563
35fa52c0 3564
35fa52c0 3565
35fa52c0 3566
9c60689e
DWT
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3568$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3569if test "${ac_cv_path_GREP+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 if test -z "$GREP"; then
3573 ac_path_GREP_found=false
3574 # Loop through the user's path and test for each of PROGNAME-LIST
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_prog in grep ggrep; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3583 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3584# Check for GNU ac_path_GREP and select it if it is found.
3585 # Check for GNU $ac_path_GREP
3586case `"$ac_path_GREP" --version 2>&1` in
3587*GNU*)
3588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3589*)
3590 ac_count=0
3591 $as_echo_n 0123456789 >"conftest.in"
3592 while :
3593 do
3594 cat "conftest.in" "conftest.in" >"conftest.tmp"
3595 mv "conftest.tmp" "conftest.in"
3596 cp "conftest.in" "conftest.nl"
3597 $as_echo 'GREP' >> "conftest.nl"
3598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600 as_fn_arith $ac_count + 1 && ac_count=$as_val
3601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3602 # Best one so far, save it but keep looking for a better one
3603 ac_cv_path_GREP="$ac_path_GREP"
3604 ac_path_GREP_max=$ac_count
3605 fi
3606 # 10*(2^10) chars as input seems more than enough
3607 test $ac_count -gt 10 && break
3608 done
3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610esac
6b66678a 3611
9c60689e
DWT
3612 $ac_path_GREP_found && break 3
3613 done
3614 done
3615 done
3616IFS=$as_save_IFS
3617 if test -z "$ac_cv_path_GREP"; then
12833ad8 3618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9c60689e
DWT
3619 fi
3620else
3621 ac_cv_path_GREP=$GREP
3622fi
6b66678a 3623
9c60689e
DWT
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3626$as_echo "$ac_cv_path_GREP" >&6; }
3627 GREP="$ac_cv_path_GREP"
6b66678a
DWT
3628
3629
9c60689e
DWT
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3631$as_echo_n "checking for egrep... " >&6; }
3632if test "${ac_cv_path_EGREP+set}" = set; then :
6b66678a
DWT
3633 $as_echo_n "(cached) " >&6
3634else
9c60689e
DWT
3635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3636 then ac_cv_path_EGREP="$GREP -E"
3637 else
3638 if test -z "$EGREP"; then
3639 ac_path_EGREP_found=false
3640 # Loop through the user's path and test for each of PROGNAME-LIST
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_prog in egrep; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3650# Check for GNU ac_path_EGREP and select it if it is found.
3651 # Check for GNU $ac_path_EGREP
3652case `"$ac_path_EGREP" --version 2>&1` in
3653*GNU*)
3654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3655*)
3656 ac_count=0
3657 $as_echo_n 0123456789 >"conftest.in"
3658 while :
3659 do
3660 cat "conftest.in" "conftest.in" >"conftest.tmp"
3661 mv "conftest.tmp" "conftest.in"
3662 cp "conftest.in" "conftest.nl"
3663 $as_echo 'EGREP' >> "conftest.nl"
3664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666 as_fn_arith $ac_count + 1 && ac_count=$as_val
3667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3668 # Best one so far, save it but keep looking for a better one
3669 ac_cv_path_EGREP="$ac_path_EGREP"
3670 ac_path_EGREP_max=$ac_count
3671 fi
3672 # 10*(2^10) chars as input seems more than enough
3673 test $ac_count -gt 10 && break
3674 done
3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676esac
3677
3678 $ac_path_EGREP_found && break 3
3679 done
3680 done
3681 done
3682IFS=$as_save_IFS
3683 if test -z "$ac_cv_path_EGREP"; then
12833ad8 3684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9c60689e
DWT
3685 fi
3686else
3687 ac_cv_path_EGREP=$EGREP
3688fi
6b66678a 3689
9c60689e
DWT
3690 fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3693$as_echo "$ac_cv_path_EGREP" >&6; }
3694 EGREP="$ac_cv_path_EGREP"
6b66678a 3695
6b66678a 3696
9c60689e
DWT
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3698$as_echo_n "checking for fgrep... " >&6; }
3699if test "${ac_cv_path_FGREP+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
6b66678a 3701else
9c60689e
DWT
3702 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3703 then ac_cv_path_FGREP="$GREP -F"
3704 else
3705 if test -z "$FGREP"; then
3706 ac_path_FGREP_found=false
3707 # Loop through the user's path and test for each of PROGNAME-LIST
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_prog in fgrep; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3716 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3717# Check for GNU ac_path_FGREP and select it if it is found.
3718 # Check for GNU $ac_path_FGREP
3719case `"$ac_path_FGREP" --version 2>&1` in
3720*GNU*)
3721 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3722*)
3723 ac_count=0
3724 $as_echo_n 0123456789 >"conftest.in"
3725 while :
3726 do
3727 cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 mv "conftest.tmp" "conftest.in"
3729 cp "conftest.in" "conftest.nl"
3730 $as_echo 'FGREP' >> "conftest.nl"
3731 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 as_fn_arith $ac_count + 1 && ac_count=$as_val
3734 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3735 # Best one so far, save it but keep looking for a better one
3736 ac_cv_path_FGREP="$ac_path_FGREP"
3737 ac_path_FGREP_max=$ac_count
3738 fi
3739 # 10*(2^10) chars as input seems more than enough
3740 test $ac_count -gt 10 && break
3741 done
3742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3743esac
6b66678a 3744
9c60689e
DWT
3745 $ac_path_FGREP_found && break 3
3746 done
3747 done
3748 done
3749IFS=$as_save_IFS
3750 if test -z "$ac_cv_path_FGREP"; then
12833ad8 3751 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9c60689e
DWT
3752 fi
3753else
3754 ac_cv_path_FGREP=$FGREP
6b66678a
DWT
3755fi
3756
9c60689e 3757 fi
6b66678a 3758fi
9c60689e
DWT
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3760$as_echo "$ac_cv_path_FGREP" >&6; }
3761 FGREP="$ac_cv_path_FGREP"
6b66678a 3762
35fa52c0 3763
9c60689e 3764test -z "$GREP" && GREP=grep
35fa52c0 3765
309b0535 3766
35fa52c0 3767
6b66678a 3768
6b66678a
DWT
3769
3770
6b66678a 3771
6b66678a 3772
35fa52c0 3773
35fa52c0 3774
309b0535 3775
309b0535 3776
309b0535 3777
309b0535 3778
309b0535 3779
309b0535 3780
309b0535 3781
309b0535 3782
309b0535 3783
9c60689e
DWT
3784# Check whether --with-gnu-ld was given.
3785if test "${with_gnu_ld+set}" = set; then :
3786 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
309b0535 3787else
9c60689e
DWT
3788 with_gnu_ld=no
3789fi
309b0535 3790
9c60689e
DWT
3791ac_prog=ld
3792if test "$GCC" = yes; then
3793 # Check if gcc -print-prog-name=ld gives a path.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3795$as_echo_n "checking for ld used by $CC... " >&6; }
3796 case $host in
3797 *-*-mingw*)
3798 # gcc leaves a trailing carriage return which upsets mingw
3799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3800 *)
3801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3802 esac
3803 case $ac_prog in
3804 # Accept absolute paths.
3805 [\\/]* | ?:[\\/]*)
3806 re_direlt='/[^/][^/]*/\.\./'
3807 # Canonicalize the pathname of ld
3808 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3809 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3810 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
309b0535 3811 done
9c60689e
DWT
3812 test -z "$LD" && LD="$ac_prog"
3813 ;;
3814 "")
3815 # If it fails, then pretend we aren't using GCC.
3816 ac_prog=ld
3817 ;;
3818 *)
3819 # If it is relative, then search for the first ld in PATH.
3820 with_gnu_ld=unknown
3821 ;;
3822 esac
3823elif test "$with_gnu_ld" = yes; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3825$as_echo_n "checking for GNU ld... " >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3828$as_echo_n "checking for non-GNU ld... " >&6; }
3829fi
3830if test "${lt_cv_path_LD+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832else
3833 if test -z "$LD"; then
3834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3835 for ac_dir in $PATH; do
3836 IFS="$lt_save_ifs"
3837 test -z "$ac_dir" && ac_dir=.
3838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3839 lt_cv_path_LD="$ac_dir/$ac_prog"
3840 # Check to see if the program is GNU ld. I'd rather use --version,
3841 # but apparently some variants of GNU ld only accept -v.
3842 # Break only if it was the GNU/non-GNU ld that we prefer.
3843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3844 *GNU* | *'with BFD'*)
3845 test "$with_gnu_ld" != no && break
3846 ;;
3847 *)
3848 test "$with_gnu_ld" != yes && break
3849 ;;
309b0535 3850 esac
309b0535 3851 fi
9c60689e
DWT
3852 done
3853 IFS="$lt_save_ifs"
3854else
3855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3856fi
3857fi
309b0535 3858
9c60689e
DWT
3859LD="$lt_cv_path_LD"
3860if test -n "$LD"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3862$as_echo "$LD" >&6; }
3863else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865$as_echo "no" >&6; }
3866fi
12833ad8 3867test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9c60689e
DWT
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3869$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3870if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872else
3873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3874case `$LD -v 2>&1 </dev/null` in
3875*GNU* | *'with BFD'*)
3876 lt_cv_prog_gnu_ld=yes
3877 ;;
3878*)
3879 lt_cv_prog_gnu_ld=no
3880 ;;
3881esac
309b0535 3882fi
9c60689e
DWT
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3884$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3885with_gnu_ld=$lt_cv_prog_gnu_ld
309b0535
DWT
3886
3887
309b0535 3888
309b0535
DWT
3889
3890
309b0535 3891
309b0535 3892
9c60689e
DWT
3893
3894
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3896$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3897if test "${lt_cv_path_NM+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$NM"; then
3901 # Let the user override the test.
3902 lt_cv_path_NM="$NM"
3903else
3904 lt_nm_to_check="${ac_tool_prefix}nm"
3905 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3906 lt_nm_to_check="$lt_nm_to_check nm"
3907 fi
3908 for lt_tmp_nm in $lt_nm_to_check; do
3909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3910 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3911 IFS="$lt_save_ifs"
3912 test -z "$ac_dir" && ac_dir=.
3913 tmp_nm="$ac_dir/$lt_tmp_nm"
3914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3915 # Check to see if the nm accepts a BSD-compat flag.
3916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3917 # nm: unknown option "B" ignored
3918 # Tru64's nm complains that /dev/null is an invalid object file
3919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3920 */dev/null* | *'Invalid file or object type'*)
3921 lt_cv_path_NM="$tmp_nm -B"
3922 break
3923 ;;
3924 *)
3925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3926 */dev/null*)
3927 lt_cv_path_NM="$tmp_nm -p"
3928 break
3929 ;;
3930 *)
3931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3932 continue # so that we can try to find one that supports BSD flags
3933 ;;
3934 esac
3935 ;;
3936 esac
309b0535
DWT
3937 fi
3938 done
9c60689e 3939 IFS="$lt_save_ifs"
309b0535 3940 done
9c60689e
DWT
3941 : ${lt_cv_path_NM=no}
3942fi
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3945$as_echo "$lt_cv_path_NM" >&6; }
3946if test "$lt_cv_path_NM" != "no"; then
3947 NM="$lt_cv_path_NM"
3948else
3949 # Didn't find any BSD compatible name lister, look for dumpbin.
3950 if test -n "$ac_tool_prefix"; then
3951 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3952 do
3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3957if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3958 $as_echo_n "(cached) " >&6
3959else
9c60689e
DWT
3960 if test -n "$DUMPBIN"; then
3961 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3970 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35fa52c0
DWT
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
9c60689e
DWT
3980DUMPBIN=$ac_cv_prog_DUMPBIN
3981if test -n "$DUMPBIN"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3983$as_echo "$DUMPBIN" >&6; }
35fa52c0
DWT
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989
9c60689e 3990 test -n "$DUMPBIN" && break
35fa52c0
DWT
3991 done
3992fi
9c60689e
DWT
3993if test -z "$DUMPBIN"; then
3994 ac_ct_DUMPBIN=$DUMPBIN
3995 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3996do
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998set dummy $ac_prog; ac_word=$2
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 4001if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
35fa52c0
DWT
4002 $as_echo_n "(cached) " >&6
4003else
9c60689e
DWT
4004 if test -n "$ac_ct_DUMPBIN"; then
4005 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35fa52c0
DWT
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 4014 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35fa52c0
DWT
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018done
4019 done
4020IFS=$as_save_IFS
4021
4022fi
4023fi
9c60689e
DWT
4024ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4025if test -n "$ac_ct_DUMPBIN"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4027$as_echo "$ac_ct_DUMPBIN" >&6; }
35fa52c0
DWT
4028else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
4031fi
4032
4033
9c60689e 4034 test -n "$ac_ct_DUMPBIN" && break
35fa52c0
DWT
4035done
4036
9c60689e
DWT
4037 if test "x$ac_ct_DUMPBIN" = x; then
4038 DUMPBIN=":"
35fa52c0
DWT
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041yes:)
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044ac_tool_warned=yes ;;
4045esac
9c60689e 4046 DUMPBIN=$ac_ct_DUMPBIN
35fa52c0
DWT
4047 fi
4048fi
4049
9c60689e
DWT
4050
4051 if test "$DUMPBIN" != ":"; then
4052 NM="$DUMPBIN"
35fa52c0
DWT
4053 fi
4054fi
9c60689e 4055test -z "$NM" && NM=nm
35fa52c0 4056
35fa52c0 4057
35fa52c0 4058
35fa52c0 4059
9c60689e
DWT
4060
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4063$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4064if test "${lt_cv_nm_interface+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066else
4067 lt_cv_nm_interface="BSD nm"
4068 echo "int some_variable = 0;" > conftest.$ac_ext
12833ad8 4069 (eval echo "\"\$as_me:4069: $ac_compile\"" >&5)
9c60689e
DWT
4070 (eval "$ac_compile" 2>conftest.err)
4071 cat conftest.err >&5
12833ad8 4072 (eval echo "\"\$as_me:4072: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9c60689e
DWT
4073 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4074 cat conftest.err >&5
12833ad8 4075 (eval echo "\"\$as_me:4075: output\"" >&5)
9c60689e
DWT
4076 cat conftest.out >&5
4077 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4078 lt_cv_nm_interface="MS dumpbin"
4079 fi
4080 rm -f conftest*
35fa52c0 4081fi
9c60689e
DWT
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4083$as_echo "$lt_cv_nm_interface" >&6; }
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4086$as_echo_n "checking whether ln -s works... " >&6; }
4087LN_S=$as_ln_s
4088if test "$LN_S" = "ln -s"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090$as_echo "yes" >&6; }
35fa52c0 4091else
9c60689e
DWT
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4093$as_echo "no, using $LN_S" >&6; }
35fa52c0 4094fi
9c60689e
DWT
4095
4096# find the maximum length of command line arguments
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4098$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4099if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
35fa52c0
DWT
4100 $as_echo_n "(cached) " >&6
4101else
9c60689e
DWT
4102 i=0
4103 teststring="ABCD"
4104
4105 case $build_os in
4106 msdosdjgpp*)
4107 # On DJGPP, this test can blow up pretty badly due to problems in libc
4108 # (any single argument exceeding 2000 bytes causes a buffer overrun
4109 # during glob expansion). Even if it were fixed, the result of this
4110 # check would be larger than it should be.
4111 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4112 ;;
35fa52c0 4113
9c60689e
DWT
4114 gnu*)
4115 # Under GNU Hurd, this test is not required because there is
4116 # no limit to the length of command line arguments.
4117 # Libtool will interpret -1 as no limit whatsoever
4118 lt_cv_sys_max_cmd_len=-1;
4119 ;;
35fa52c0 4120
9c60689e
DWT
4121 cygwin* | mingw* | cegcc*)
4122 # On Win9x/ME, this test blows up -- it succeeds, but takes
4123 # about 5 minutes as the teststring grows exponentially.
4124 # Worse, since 9x/ME are not pre-emptively multitasking,
4125 # you end up with a "frozen" computer, even though with patience
4126 # the test eventually succeeds (with a max line length of 256k).
4127 # Instead, let's just punt: use the minimum linelength reported by
4128 # all of the supported platforms: 8192 (on NT/2K/XP).
4129 lt_cv_sys_max_cmd_len=8192;
4130 ;;
35fa52c0 4131
9c60689e
DWT
4132 amigaos*)
4133 # On AmigaOS with pdksh, this test takes hours, literally.
4134 # So we just punt and use a minimum line length of 8192.
4135 lt_cv_sys_max_cmd_len=8192;
4136 ;;
35fa52c0 4137
9c60689e
DWT
4138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4139 # This has been around since 386BSD, at least. Likely further.
4140 if test -x /sbin/sysctl; then
4141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4142 elif test -x /usr/sbin/sysctl; then
4143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4144 else
4145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4146 fi
4147 # And add a safety zone
4148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4150 ;;
35fa52c0 4151
9c60689e
DWT
4152 interix*)
4153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4154 lt_cv_sys_max_cmd_len=196608
4155 ;;
35fa52c0 4156
9c60689e
DWT
4157 osf*)
4158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4160 # nice to cause kernel panics so lets avoid the loop below.
4161 # First set a reasonable default.
4162 lt_cv_sys_max_cmd_len=16384
4163 #
4164 if test -x /sbin/sysconfig; then
4165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4167 esac
4168 fi
4169 ;;
4170 sco3.2v5*)
4171 lt_cv_sys_max_cmd_len=102400
4172 ;;
4173 sysv5* | sco5v6* | sysv4.2uw2*)
4174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4175 if test -n "$kargmax"; then
4176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4177 else
4178 lt_cv_sys_max_cmd_len=32768
4179 fi
4180 ;;
4181 *)
4182 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4183 if test -n "$lt_cv_sys_max_cmd_len"; then
4184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4186 else
4187 # Make teststring a little bigger before we do anything with it.
4188 # a 1K string should be a reasonable start.
4189 for i in 1 2 3 4 5 6 7 8 ; do
4190 teststring=$teststring$teststring
4191 done
4192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4193 # If test is not a shell built-in, we'll probably end up computing a
4194 # maximum length that is only half of the actual maximum length, but
4195 # we can't tell.
4196 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4197 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4198 test $i != 17 # 1/2 MB should be enough
4199 do
4200 i=`expr $i + 1`
4201 teststring=$teststring$teststring
4202 done
4203 # Only check the string length outside the loop.
4204 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4205 teststring=
4206 # Add a significant safety factor because C++ compilers can tack on
4207 # massive amounts of additional arguments before passing them to the
4208 # linker. It appears as though 1/2 is a usable value.
4209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4210 fi
4211 ;;
4212 esac
35fa52c0 4213
35fa52c0 4214fi
9c60689e
DWT
4215
4216if test -n $lt_cv_sys_max_cmd_len ; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4218$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35fa52c0 4219else
9c60689e
DWT
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4221$as_echo "none" >&6; }
35fa52c0 4222fi
9c60689e 4223max_cmd_len=$lt_cv_sys_max_cmd_len
35fa52c0 4224
9c60689e
DWT
4225
4226
4227
4228
4229
4230: ${CP="cp -f"}
4231: ${MV="mv -f"}
4232: ${RM="rm -f"}
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4235$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4236# Try some XSI features
4237xsi_shell=no
4238( _lt_dummy="a/b/c"
4239 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4240 = c,a/b,, \
4241 && eval 'test $(( 1 + 1 )) -eq 2 \
4242 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4243 && xsi_shell=yes
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4245$as_echo "$xsi_shell" >&6; }
4246
4247
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4249$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4250lt_shell_append=no
4251( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4252 >/dev/null 2>&1 \
4253 && lt_shell_append=yes
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4255$as_echo "$lt_shell_append" >&6; }
4256
4257
4258if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4259 lt_unset=unset
35fa52c0 4260else
9c60689e
DWT
4261 lt_unset=false
4262fi
4263
4264
4265
4266
4267
4268# test EBCDIC or ASCII
4269case `echo X|tr X '\101'` in
4270 A) # ASCII based system
4271 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4272 lt_SP2NL='tr \040 \012'
4273 lt_NL2SP='tr \015\012 \040\040'
4274 ;;
4275 *) # EBCDIC based system
4276 lt_SP2NL='tr \100 \n'
4277 lt_NL2SP='tr \r\n \100\100'
4278 ;;
35fa52c0
DWT
4279esac
4280
35fa52c0 4281
35fa52c0 4282
35fa52c0 4283
35fa52c0 4284
35fa52c0 4285
35fa52c0 4286
35fa52c0 4287
9c60689e
DWT
4288
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4290$as_echo_n "checking for $LD option to reload object files... " >&6; }
4291if test "${lt_cv_ld_reload_flag+set}" = set; then :
35fa52c0
DWT
4292 $as_echo_n "(cached) " >&6
4293else
9c60689e 4294 lt_cv_ld_reload_flag='-r'
35fa52c0 4295fi
9c60689e
DWT
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4297$as_echo "$lt_cv_ld_reload_flag" >&6; }
4298reload_flag=$lt_cv_ld_reload_flag
4299case $reload_flag in
4300"" | " "*) ;;
4301*) reload_flag=" $reload_flag" ;;
4302esac
4303reload_cmds='$LD$reload_flag -o $output$reload_objs'
4304case $host_os in
4305 darwin*)
4306 if test "$GCC" = yes; then
4307 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4308 else
4309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4310 fi
4311 ;;
35fa52c0 4312esac
35fa52c0
DWT
4313
4314
9c60689e
DWT
4315
4316
4317
4318
4319
4320
4321
4322if test -n "$ac_tool_prefix"; then
4323 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4324set dummy ${ac_tool_prefix}objdump; ac_word=$2
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326$as_echo_n "checking for $ac_word... " >&6; }
4327if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4328 $as_echo_n "(cached) " >&6
4329else
9c60689e
DWT
4330 if test -n "$OBJDUMP"; then
4331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35fa52c0 4332else
9c60689e
DWT
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
35fa52c0 4343 fi
9c60689e
DWT
4344done
4345 done
4346IFS=$as_save_IFS
35fa52c0 4347
35fa52c0 4348fi
35fa52c0 4349fi
9c60689e
DWT
4350OBJDUMP=$ac_cv_prog_OBJDUMP
4351if test -n "$OBJDUMP"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4353$as_echo "$OBJDUMP" >&6; }
35fa52c0 4354else
9c60689e
DWT
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356$as_echo "no" >&6; }
35fa52c0 4357fi
9c60689e
DWT
4358
4359
4360fi
4361if test -z "$ac_cv_prog_OBJDUMP"; then
4362 ac_ct_OBJDUMP=$OBJDUMP
4363 # Extract the first word of "objdump", so it can be a program name with args.
4364set dummy objdump; ac_word=$2
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366$as_echo_n "checking for $ac_word... " >&6; }
4367if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4368 $as_echo_n "(cached) " >&6
4369else
9c60689e
DWT
4370 if test -n "$ac_ct_OBJDUMP"; then
4371 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
35fa52c0 4372else
9c60689e
DWT
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385 done
4386IFS=$as_save_IFS
4387
35fa52c0
DWT
4388fi
4389fi
9c60689e
DWT
4390ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4391if test -n "$ac_ct_OBJDUMP"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4393$as_echo "$ac_ct_OBJDUMP" >&6; }
35fa52c0
DWT
4394else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396$as_echo "no" >&6; }
4397fi
9c60689e
DWT
4398
4399 if test "x$ac_ct_OBJDUMP" = x; then
4400 OBJDUMP="false"
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403yes:)
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406ac_tool_warned=yes ;;
35fa52c0 4407esac
9c60689e
DWT
4408 OBJDUMP=$ac_ct_OBJDUMP
4409 fi
4410else
4411 OBJDUMP="$ac_cv_prog_OBJDUMP"
35fa52c0 4412fi
35fa52c0 4413
9c60689e 4414test -z "$OBJDUMP" && OBJDUMP=objdump
35fa52c0
DWT
4415
4416
35fa52c0 4417
35fa52c0 4418
35fa52c0
DWT
4419
4420
4421
35fa52c0
DWT
4422
4423
9c60689e
DWT
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4425$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4426if test "${lt_cv_deplibs_check_method+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 lt_cv_file_magic_cmd='$MAGIC_CMD'
4430lt_cv_file_magic_test_file=
4431lt_cv_deplibs_check_method='unknown'
4432# Need to set the preceding variable on all platforms that support
4433# interlibrary dependencies.
4434# 'none' -- dependencies not supported.
4435# `unknown' -- same as none, but documents that we really don't know.
4436# 'pass_all' -- all dependencies passed with no checks.
4437# 'test_compile' -- check by making test program.
4438# 'file_magic [[regex]]' -- check by looking for files in library path
4439# which responds to the $file_magic_cmd with a given extended regex.
4440# If you have `file' or equivalent on your system and you're not sure
4441# whether `pass_all' will *always* work, you probably want this one.
4442
4443case $host_os in
4444aix[4-9]*)
4445 lt_cv_deplibs_check_method=pass_all
4446 ;;
35fa52c0 4447
9c60689e
DWT
4448beos*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
35fa52c0 4451
9c60689e
DWT
4452bsdi[45]*)
4453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4454 lt_cv_file_magic_cmd='/usr/bin/file -L'
4455 lt_cv_file_magic_test_file=/shlib/libc.so
4456 ;;
35fa52c0 4457
9c60689e
DWT
4458cygwin*)
4459 # func_win32_libid is a shell function defined in ltmain.sh
4460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4461 lt_cv_file_magic_cmd='func_win32_libid'
4462 ;;
35fa52c0 4463
9c60689e
DWT
4464mingw* | pw32*)
4465 # Base MSYS/MinGW do not provide the 'file' command needed by
4466 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4467 # unless we find 'file', for example because we are cross-compiling.
4468 if ( file / ) >/dev/null 2>&1; then
4469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4470 lt_cv_file_magic_cmd='func_win32_libid'
4471 else
4472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4473 lt_cv_file_magic_cmd='$OBJDUMP -f'
4474 fi
4475 ;;
35fa52c0 4476
9c60689e
DWT
4477cegcc)
4478 # use the weaker test based on 'objdump'. See mingw*.
4479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4480 lt_cv_file_magic_cmd='$OBJDUMP -f'
4481 ;;
35fa52c0 4482
9c60689e
DWT
4483darwin* | rhapsody*)
4484 lt_cv_deplibs_check_method=pass_all
4485 ;;
35fa52c0 4486
9c60689e
DWT
4487freebsd* | dragonfly*)
4488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4489 case $host_cpu in
4490 i*86 )
4491 # Not sure whether the presence of OpenBSD here was a mistake.
4492 # Let's accept both of them until this is cleared up.
4493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4494 lt_cv_file_magic_cmd=/usr/bin/file
4495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4496 ;;
4497 esac
4498 else
4499 lt_cv_deplibs_check_method=pass_all
4500 fi
4501 ;;
35fa52c0 4502
9c60689e
DWT
4503gnu*)
4504 lt_cv_deplibs_check_method=pass_all
4505 ;;
35fa52c0 4506
9c60689e
DWT
4507hpux10.20* | hpux11*)
4508 lt_cv_file_magic_cmd=/usr/bin/file
4509 case $host_cpu in
4510 ia64*)
4511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4513 ;;
4514 hppa*64*)
4515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4517 ;;
4518 *)
4519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4521 ;;
4522 esac
4523 ;;
35fa52c0 4524
9c60689e
DWT
4525interix[3-9]*)
4526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4528 ;;
35fa52c0 4529
9c60689e
DWT
4530irix5* | irix6* | nonstopux*)
4531 case $LD in
4532 *-32|*"-32 ") libmagic=32-bit;;
4533 *-n32|*"-n32 ") libmagic=N32;;
4534 *-64|*"-64 ") libmagic=64-bit;;
4535 *) libmagic=never-match;;
4536 esac
4537 lt_cv_deplibs_check_method=pass_all
4538 ;;
35fa52c0 4539
9c60689e 4540# This must be Linux ELF.
1504c9b8 4541linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
4542 lt_cv_deplibs_check_method=pass_all
4543 ;;
35fa52c0 4544
1504c9b8 4545netbsd* | netbsdelf*-gnu)
9c60689e
DWT
4546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4548 else
4549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4550 fi
4551 ;;
35fa52c0 4552
9c60689e
DWT
4553newos6*)
4554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4555 lt_cv_file_magic_cmd=/usr/bin/file
4556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4557 ;;
35fa52c0 4558
9c60689e
DWT
4559*nto* | *qnx*)
4560 lt_cv_deplibs_check_method=pass_all
4561 ;;
35fa52c0 4562
9c60689e
DWT
4563openbsd*)
4564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4566 else
4567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4568 fi
4569 ;;
4570
4571osf3* | osf4* | osf5*)
4572 lt_cv_deplibs_check_method=pass_all
4573 ;;
4574
4575rdos*)
4576 lt_cv_deplibs_check_method=pass_all
4577 ;;
4578
4579solaris*)
4580 lt_cv_deplibs_check_method=pass_all
4581 ;;
4582
4583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586
4587sysv4 | sysv4.3*)
4588 case $host_vendor in
4589 motorola)
4590 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]'
4591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4592 ;;
4593 ncr)
4594 lt_cv_deplibs_check_method=pass_all
4595 ;;
4596 sequent)
4597 lt_cv_file_magic_cmd='/bin/file'
4598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4599 ;;
4600 sni)
4601 lt_cv_file_magic_cmd='/bin/file'
4602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4603 lt_cv_file_magic_test_file=/lib/libc.so
4604 ;;
4605 siemens)
4606 lt_cv_deplibs_check_method=pass_all
4607 ;;
4608 pc)
4609 lt_cv_deplibs_check_method=pass_all
4610 ;;
4611 esac
4612 ;;
4613
4614tpf*)
4615 lt_cv_deplibs_check_method=pass_all
4616 ;;
4617esac
35fa52c0
DWT
4618
4619fi
9c60689e
DWT
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4621$as_echo "$lt_cv_deplibs_check_method" >&6; }
4622file_magic_cmd=$lt_cv_file_magic_cmd
4623deplibs_check_method=$lt_cv_deplibs_check_method
4624test -z "$deplibs_check_method" && deplibs_check_method=unknown
dbadc56a 4625
35fa52c0 4626
35fa52c0 4627
35fa52c0 4628
35fa52c0 4629
35fa52c0 4630
35fa52c0 4631
35fa52c0 4632
35fa52c0 4633
35fa52c0 4634
35fa52c0 4635
9c60689e
DWT
4636
4637if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4639set dummy ${ac_tool_prefix}ar; ac_word=$2
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641$as_echo_n "checking for $ac_word... " >&6; }
4642if test "${ac_cv_prog_AR+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644else
4645 if test -n "$AR"; then
4646 ac_cv_prog_AR="$AR" # Let the user override the test.
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_AR="${ac_tool_prefix}ar"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659done
35fa52c0 4660 done
9c60689e
DWT
4661IFS=$as_save_IFS
4662
4663fi
4664fi
4665AR=$ac_cv_prog_AR
4666if test -n "$AR"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4668$as_echo "$AR" >&6; }
4669else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671$as_echo "no" >&6; }
4672fi
4673
4674
4675fi
4676if test -z "$ac_cv_prog_AR"; then
4677 ac_ct_AR=$AR
4678 # Extract the first word of "ar", so it can be a program name with args.
4679set dummy ar; ac_word=$2
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681$as_echo_n "checking for $ac_word... " >&6; }
4682if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684else
4685 if test -n "$ac_ct_AR"; then
4686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4687else
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_ac_ct_AR="ar"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
35fa52c0 4698 fi
9c60689e
DWT
4699done
4700 done
4701IFS=$as_save_IFS
4702
4703fi
4704fi
4705ac_ct_AR=$ac_cv_prog_ac_ct_AR
4706if test -n "$ac_ct_AR"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4708$as_echo "$ac_ct_AR" >&6; }
4709else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711$as_echo "no" >&6; }
4712fi
4713
4714 if test "x$ac_ct_AR" = x; then
4715 AR="false"
4716 else
4717 case $cross_compiling:$ac_tool_warned in
4718yes:)
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721ac_tool_warned=yes ;;
4722esac
4723 AR=$ac_ct_AR
4724 fi
4725else
4726 AR="$ac_cv_prog_AR"
4727fi
4728
4729test -z "$AR" && AR=ar
4730test -z "$AR_FLAGS" && AR_FLAGS=cru
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4744set dummy ${ac_tool_prefix}strip; ac_word=$2
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_STRIP+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749else
4750 if test -n "$STRIP"; then
4751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
35fa52c0 4763 fi
9c60689e
DWT
4764done
4765 done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770STRIP=$ac_cv_prog_STRIP
4771if test -n "$STRIP"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4773$as_echo "$STRIP" >&6; }
4774else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779
4780fi
4781if test -z "$ac_cv_prog_STRIP"; then
4782 ac_ct_STRIP=$STRIP
4783 # Extract the first word of "strip", so it can be a program name with args.
4784set dummy strip; ac_word=$2
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786$as_echo_n "checking for $ac_word... " >&6; }
4787if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789else
4790 if test -n "$ac_ct_STRIP"; then
4791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_STRIP="strip"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804done
4805 done
4806IFS=$as_save_IFS
4807
4808fi
4809fi
4810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4811if test -n "$ac_ct_STRIP"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4813$as_echo "$ac_ct_STRIP" >&6; }
4814else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817fi
4818
4819 if test "x$ac_ct_STRIP" = x; then
4820 STRIP=":"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828 STRIP=$ac_ct_STRIP
4829 fi
4830else
4831 STRIP="$ac_cv_prog_STRIP"
4832fi
4833
4834test -z "$STRIP" && STRIP=:
4835
4836
4837
4838
4839
4840
4841if test -n "$ac_tool_prefix"; then
4842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845$as_echo_n "checking for $ac_word... " >&6; }
4846if test "${ac_cv_prog_RANLIB+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848else
4849 if test -n "$RANLIB"; then
4850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863done
4864 done
4865IFS=$as_save_IFS
4866
4867fi
4868fi
4869RANLIB=$ac_cv_prog_RANLIB
4870if test -n "$RANLIB"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4872$as_echo "$RANLIB" >&6; }
4873else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
4876fi
4877
4878
4879fi
4880if test -z "$ac_cv_prog_RANLIB"; then
4881 ac_ct_RANLIB=$RANLIB
4882 # Extract the first word of "ranlib", so it can be a program name with args.
4883set dummy ranlib; ac_word=$2
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885$as_echo_n "checking for $ac_word... " >&6; }
4886if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888else
4889 if test -n "$ac_ct_RANLIB"; then
4890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_ac_ct_RANLIB="ranlib"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903done
4904 done
4905IFS=$as_save_IFS
4906
4907fi
4908fi
4909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4910if test -n "$ac_ct_RANLIB"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4912$as_echo "$ac_ct_RANLIB" >&6; }
4913else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918 if test "x$ac_ct_RANLIB" = x; then
4919 RANLIB=":"
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922yes:)
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925ac_tool_warned=yes ;;
4926esac
4927 RANLIB=$ac_ct_RANLIB
4928 fi
4929else
4930 RANLIB="$ac_cv_prog_RANLIB"
4931fi
4932
4933test -z "$RANLIB" && RANLIB=:
4934
4935
4936
4937
4938
4939
4940# Determine commands to create old-style static archives.
4941old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4942old_postinstall_cmds='chmod 644 $oldlib'
4943old_postuninstall_cmds=
4944
4945if test -n "$RANLIB"; then
4946 case $host_os in
4947 openbsd*)
4948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4949 ;;
4950 *)
4951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4952 ;;
4953 esac
4954 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4955fi
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990# If no C compiler was specified, use CC.
4991LTCC=${LTCC-"$CC"}
4992
4993# If no C compiler flags were specified, use CFLAGS.
4994LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4995
4996# Allow CC to be a program name with arguments.
4997compiler=$CC
4998
4999
5000# Check for command to grab the raw symbol name followed by C symbol from nm.
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5002$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5003if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006
5007# These are sane defaults that work on at least a few old systems.
5008# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5009
5010# Character class describing NM global symbol codes.
5011symcode='[BCDEGRST]'
5012
5013# Regexp to match symbols that can be accessed directly from C.
5014sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5015
5016# Define system-specific variables.
5017case $host_os in
5018aix*)
5019 symcode='[BCDT]'
5020 ;;
5021cygwin* | mingw* | pw32* | cegcc*)
5022 symcode='[ABCDGISTW]'
5023 ;;
5024hpux*)
5025 if test "$host_cpu" = ia64; then
5026 symcode='[ABCDEGRST]'
5027 fi
5028 ;;
5029irix* | nonstopux*)
5030 symcode='[BCDEGRST]'
5031 ;;
5032osf*)
5033 symcode='[BCDEGQRST]'
5034 ;;
5035solaris*)
5036 symcode='[BDRT]'
5037 ;;
5038sco3.2v5*)
5039 symcode='[DT]'
5040 ;;
5041sysv4.2uw2*)
5042 symcode='[DT]'
5043 ;;
5044sysv5* | sco5v6* | unixware* | OpenUNIX*)
5045 symcode='[ABDT]'
5046 ;;
5047sysv4)
5048 symcode='[DFNSTU]'
5049 ;;
5050esac
5051
5052# If we're using GNU nm, then use its standard symbol codes.
5053case `$NM -V 2>&1` in
5054*GNU* | *'with BFD'*)
5055 symcode='[ABCDGIRSTW]' ;;
5056esac
5057
5058# Transform an extracted symbol line into a proper C declaration.
5059# Some systems (esp. on ia64) link data and code symbols differently,
5060# so use this general approach.
5061lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5062
5063# Transform an extracted symbol line into symbol name and symbol address
5064lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5065lt_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'"
5066
5067# Handle CRLF in mingw tool chain
5068opt_cr=
5069case $build_os in
5070mingw*)
5071 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5072 ;;
5073esac
5074
5075# Try without a prefix underscore, then with it.
5076for ac_symprfx in "" "_"; do
5077
5078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5079 symxfrm="\\1 $ac_symprfx\\2 \\2"
5080
5081 # Write the raw and C identifiers.
5082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5083 # Fake it for dumpbin and say T for any non-static function
5084 # and D for any global variable.
5085 # Also find C++ and __fastcall symbols from MSVC++,
5086 # which start with @ or ?.
5087 lt_cv_sys_global_symbol_pipe="$AWK '"\
5088" {last_section=section; section=\$ 3};"\
5089" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5090" \$ 0!~/External *\|/{next};"\
5091" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5092" {if(hide[section]) next};"\
5093" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5094" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5095" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5096" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5097" ' prfx=^$ac_symprfx"
5098 else
5099 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5100 fi
5101
5102 # Check to see that the pipe works correctly.
5103 pipe_works=no
5104
5105 rm -f conftest*
5106 cat > conftest.$ac_ext <<_LT_EOF
5107#ifdef __cplusplus
5108extern "C" {
5109#endif
5110char nm_test_var;
5111void nm_test_func(void);
5112void nm_test_func(void){}
5113#ifdef __cplusplus
5114}
5115#endif
5116int main(){nm_test_var='a';nm_test_func();return(0);}
5117_LT_EOF
5118
5119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5120 (eval $ac_compile) 2>&5
5121 ac_status=$?
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; then
5124 # Now try to grab the symbols.
5125 nlist=conftest.nm
5126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5127 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; } && test -s "$nlist"; then
5131 # Try sorting and uniquifying the output.
5132 if sort "$nlist" | uniq > "$nlist"T; then
5133 mv -f "$nlist"T "$nlist"
5134 else
5135 rm -f "$nlist"T
5136 fi
5137
5138 # Make sure that we snagged all the symbols we need.
5139 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5140 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5141 cat <<_LT_EOF > conftest.$ac_ext
5142#ifdef __cplusplus
5143extern "C" {
5144#endif
5145
5146_LT_EOF
5147 # Now generate the symbol file.
5148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5149
5150 cat <<_LT_EOF >> conftest.$ac_ext
5151
5152/* The mapping between symbol names and symbols. */
5153const struct {
5154 const char *name;
5155 void *address;
5156}
5157lt__PROGRAM__LTX_preloaded_symbols[] =
5158{
5159 { "@PROGRAM@", (void *) 0 },
5160_LT_EOF
5161 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5162 cat <<\_LT_EOF >> conftest.$ac_ext
5163 {0, (void *) 0}
5164};
5165
5166/* This works around a problem in FreeBSD linker */
5167#ifdef FREEBSD_WORKAROUND
5168static const void *lt_preloaded_setup() {
5169 return lt__PROGRAM__LTX_preloaded_symbols;
5170}
5171#endif
5172
5173#ifdef __cplusplus
5174}
5175#endif
5176_LT_EOF
5177 # Now try linking the two files.
5178 mv conftest.$ac_objext conftstm.$ac_objext
5179 lt_save_LIBS="$LIBS"
5180 lt_save_CFLAGS="$CFLAGS"
5181 LIBS="conftstm.$ac_objext"
5182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5184 (eval $ac_link) 2>&5
5185 ac_status=$?
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5188 pipe_works=yes
5189 fi
5190 LIBS="$lt_save_LIBS"
5191 CFLAGS="$lt_save_CFLAGS"
5192 else
5193 echo "cannot find nm_test_func in $nlist" >&5
5194 fi
5195 else
5196 echo "cannot find nm_test_var in $nlist" >&5
5197 fi
5198 else
5199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5200 fi
5201 else
5202 echo "$progname: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5204 fi
5205 rm -rf conftest* conftst*
5206
5207 # Do not use the global_symbol_pipe unless it works.
5208 if test "$pipe_works" = yes; then
5209 break
5210 else
5211 lt_cv_sys_global_symbol_pipe=
5212 fi
5213done
5214
5215fi
5216
5217if test -z "$lt_cv_sys_global_symbol_pipe"; then
5218 lt_cv_sys_global_symbol_to_cdecl=
5219fi
5220if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5222$as_echo "failed" >&6; }
5223else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5225$as_echo "ok" >&6; }
5226fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250# Check whether --enable-libtool-lock was given.
5251if test "${enable_libtool_lock+set}" = set; then :
5252 enableval=$enable_libtool_lock;
5253fi
5254
5255test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5256
5257# Some flags need to be propagated to the compiler or linker for good
5258# libtool support.
5259case $host in
5260ia64-*-hpux*)
5261 # Find out which ABI we are using.
5262 echo 'int i;' > conftest.$ac_ext
5263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5264 (eval $ac_compile) 2>&5
5265 ac_status=$?
5266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }; then
5268 case `/usr/bin/file conftest.$ac_objext` in
5269 *ELF-32*)
5270 HPUX_IA64_MODE="32"
5271 ;;
5272 *ELF-64*)
5273 HPUX_IA64_MODE="64"
5274 ;;
5275 esac
5276 fi
5277 rm -rf conftest*
5278 ;;
5279*-*-irix6*)
5280 # Find out which ABI we are using.
12833ad8 5281 echo '#line 5281 "configure"' > conftest.$ac_ext
9c60689e
DWT
5282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5283 (eval $ac_compile) 2>&5
5284 ac_status=$?
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }; then
5287 if test "$lt_cv_prog_gnu_ld" = yes; then
5288 case `/usr/bin/file conftest.$ac_objext` in
5289 *32-bit*)
5290 LD="${LD-ld} -melf32bsmip"
5291 ;;
5292 *N32*)
5293 LD="${LD-ld} -melf32bmipn32"
5294 ;;
5295 *64-bit*)
5296 LD="${LD-ld} -melf64bmip"
5297 ;;
5298 esac
5299 else
5300 case `/usr/bin/file conftest.$ac_objext` in
5301 *32-bit*)
5302 LD="${LD-ld} -32"
5303 ;;
5304 *N32*)
5305 LD="${LD-ld} -n32"
5306 ;;
5307 *64-bit*)
5308 LD="${LD-ld} -64"
5309 ;;
5310 esac
5311 fi
5312 fi
5313 rm -rf conftest*
5314 ;;
5315
5316x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5317s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5318 # Find out which ABI we are using.
5319 echo 'int i;' > conftest.$ac_ext
5320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5321 (eval $ac_compile) 2>&5
5322 ac_status=$?
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }; then
5325 case `/usr/bin/file conftest.o` in
5326 *32-bit*)
5327 case $host in
5328 x86_64-*kfreebsd*-gnu)
5329 LD="${LD-ld} -m elf_i386_fbsd"
5330 ;;
5331 x86_64-*linux*)
5332 LD="${LD-ld} -m elf_i386"
5333 ;;
5334 ppc64-*linux*|powerpc64-*linux*)
5335 LD="${LD-ld} -m elf32ppclinux"
5336 ;;
5337 s390x-*linux*)
5338 LD="${LD-ld} -m elf_s390"
5339 ;;
5340 sparc64-*linux*)
5341 LD="${LD-ld} -m elf32_sparc"
5342 ;;
5343 esac
5344 ;;
5345 *64-bit*)
5346 case $host in
5347 x86_64-*kfreebsd*-gnu)
5348 LD="${LD-ld} -m elf_x86_64_fbsd"
5349 ;;
5350 x86_64-*linux*)
5351 LD="${LD-ld} -m elf_x86_64"
5352 ;;
5353 ppc*-*linux*|powerpc*-*linux*)
5354 LD="${LD-ld} -m elf64ppc"
5355 ;;
5356 s390*-*linux*|s390*-*tpf*)
5357 LD="${LD-ld} -m elf64_s390"
5358 ;;
5359 sparc*-*linux*)
5360 LD="${LD-ld} -m elf64_sparc"
5361 ;;
5362 esac
5363 ;;
5364 esac
5365 fi
5366 rm -rf conftest*
5367 ;;
5368
5369*-*-sco3.2v5*)
5370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5371 SAVE_CFLAGS="$CFLAGS"
5372 CFLAGS="$CFLAGS -belf"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5374$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5375if test "${lt_cv_cc_needs_belf+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377else
5378 ac_ext=c
5379ac_cpp='$CPP $CPPFLAGS'
5380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382ac_compiler_gnu=$ac_cv_c_compiler_gnu
5383
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h. */
5386
5387int
5388main ()
5389{
5390
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_link "$LINENO"; then :
5396 lt_cv_cc_needs_belf=yes
5397else
5398 lt_cv_cc_needs_belf=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5402 ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5410$as_echo "$lt_cv_cc_needs_belf" >&6; }
5411 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5412 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5413 CFLAGS="$SAVE_CFLAGS"
5414 fi
5415 ;;
5416sparc*-*solaris*)
5417 # Find out which ABI we are using.
5418 echo 'int i;' > conftest.$ac_ext
5419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5420 (eval $ac_compile) 2>&5
5421 ac_status=$?
5422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5423 test $ac_status = 0; }; then
5424 case `/usr/bin/file conftest.o` in
5425 *64-bit*)
5426 case $lt_cv_prog_gnu_ld in
5427 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5428 *)
5429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5430 LD="${LD-ld} -64"
5431 fi
5432 ;;
5433 esac
5434 ;;
5435 esac
5436 fi
5437 rm -rf conftest*
5438 ;;
5439esac
5440
5441need_locks="$enable_libtool_lock"
5442
5443
5444 case $host_os in
5445 rhapsody* | darwin*)
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5448set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
5451if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453else
5454 if test -n "$DSYMUTIL"; then
5455 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468done
5469 done
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474DSYMUTIL=$ac_cv_prog_DSYMUTIL
5475if test -n "$DSYMUTIL"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5477$as_echo "$DSYMUTIL" >&6; }
5478else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
5481fi
5482
5483
5484fi
5485if test -z "$ac_cv_prog_DSYMUTIL"; then
5486 ac_ct_DSYMUTIL=$DSYMUTIL
5487 # Extract the first word of "dsymutil", so it can be a program name with args.
5488set dummy dsymutil; ac_word=$2
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490$as_echo_n "checking for $ac_word... " >&6; }
5491if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 if test -n "$ac_ct_DSYMUTIL"; then
5495 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508done
5509 done
5510IFS=$as_save_IFS
5511
5512fi
5513fi
5514ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5515if test -n "$ac_ct_DSYMUTIL"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5517$as_echo "$ac_ct_DSYMUTIL" >&6; }
5518else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520$as_echo "no" >&6; }
5521fi
5522
5523 if test "x$ac_ct_DSYMUTIL" = x; then
5524 DSYMUTIL=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 DSYMUTIL=$ac_ct_DSYMUTIL
5533 fi
5534else
5535 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5536fi
5537
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5540set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542$as_echo_n "checking for $ac_word... " >&6; }
5543if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545else
5546 if test -n "$NMEDIT"; then
5547 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561 done
5562IFS=$as_save_IFS
5563
5564fi
5565fi
5566NMEDIT=$ac_cv_prog_NMEDIT
5567if test -n "$NMEDIT"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5569$as_echo "$NMEDIT" >&6; }
5570else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573fi
5574
5575
5576fi
5577if test -z "$ac_cv_prog_NMEDIT"; then
5578 ac_ct_NMEDIT=$NMEDIT
5579 # Extract the first word of "nmedit", so it can be a program name with args.
5580set dummy nmedit; ac_word=$2
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585else
5586 if test -n "$ac_ct_NMEDIT"; then
5587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600done
5601 done
5602IFS=$as_save_IFS
5603
5604fi
5605fi
5606ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5607if test -n "$ac_ct_NMEDIT"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5609$as_echo "$ac_ct_NMEDIT" >&6; }
5610else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612$as_echo "no" >&6; }
5613fi
5614
5615 if test "x$ac_ct_NMEDIT" = x; then
5616 NMEDIT=":"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619yes:)
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622ac_tool_warned=yes ;;
5623esac
5624 NMEDIT=$ac_ct_NMEDIT
5625 fi
5626else
5627 NMEDIT="$ac_cv_prog_NMEDIT"
5628fi
5629
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5632set dummy ${ac_tool_prefix}lipo; ac_word=$2
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634$as_echo_n "checking for $ac_word... " >&6; }
5635if test "${ac_cv_prog_LIPO+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637else
5638 if test -n "$LIPO"; then
5639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652done
5653 done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658LIPO=$ac_cv_prog_LIPO
5659if test -n "$LIPO"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5661$as_echo "$LIPO" >&6; }
5662else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665fi
5666
5667
5668fi
5669if test -z "$ac_cv_prog_LIPO"; then
5670 ac_ct_LIPO=$LIPO
5671 # Extract the first word of "lipo", so it can be a program name with args.
5672set dummy lipo; ac_word=$2
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674$as_echo_n "checking for $ac_word... " >&6; }
5675if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677else
5678 if test -n "$ac_ct_LIPO"; then
5679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_LIPO="lipo"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692done
5693 done
5694IFS=$as_save_IFS
5695
5696fi
5697fi
5698ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5699if test -n "$ac_ct_LIPO"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5701$as_echo "$ac_ct_LIPO" >&6; }
5702else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704$as_echo "no" >&6; }
5705fi
5706
5707 if test "x$ac_ct_LIPO" = x; then
5708 LIPO=":"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711yes:)
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714ac_tool_warned=yes ;;
5715esac
5716 LIPO=$ac_ct_LIPO
5717 fi
5718else
5719 LIPO="$ac_cv_prog_LIPO"
5720fi
5721
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5724set dummy ${ac_tool_prefix}otool; ac_word=$2
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726$as_echo_n "checking for $ac_word... " >&6; }
5727if test "${ac_cv_prog_OTOOL+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729else
5730 if test -n "$OTOOL"; then
5731 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744done
5745 done
5746IFS=$as_save_IFS
5747
5748fi
5749fi
5750OTOOL=$ac_cv_prog_OTOOL
5751if test -n "$OTOOL"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5753$as_echo "$OTOOL" >&6; }
5754else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757fi
5758
5759
5760fi
5761if test -z "$ac_cv_prog_OTOOL"; then
5762 ac_ct_OTOOL=$OTOOL
5763 # Extract the first word of "otool", so it can be a program name with args.
5764set dummy otool; ac_word=$2
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
5767if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769else
5770 if test -n "$ac_ct_OTOOL"; then
5771 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_prog_ac_ct_OTOOL="otool"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784done
5785 done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5791if test -n "$ac_ct_OTOOL"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5793$as_echo "$ac_ct_OTOOL" >&6; }
5794else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }
5797fi
5798
5799 if test "x$ac_ct_OTOOL" = x; then
5800 OTOOL=":"
5801 else
5802 case $cross_compiling:$ac_tool_warned in
5803yes:)
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806ac_tool_warned=yes ;;
5807esac
5808 OTOOL=$ac_ct_OTOOL
5809 fi
5810else
5811 OTOOL="$ac_cv_prog_OTOOL"
5812fi
5813
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}otool64; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$OTOOL64"; then
5823 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837 done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842OTOOL64=$ac_cv_prog_OTOOL64
5843if test -n "$OTOOL64"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5845$as_echo "$OTOOL64" >&6; }
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852fi
5853if test -z "$ac_cv_prog_OTOOL64"; then
5854 ac_ct_OTOOL64=$OTOOL64
5855 # Extract the first word of "otool64", so it can be a program name with args.
5856set dummy otool64; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$ac_ct_OTOOL64"; then
5863 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_OTOOL64="otool64"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5883if test -n "$ac_ct_OTOOL64"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5885$as_echo "$ac_ct_OTOOL64" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891 if test "x$ac_ct_OTOOL64" = x; then
5892 OTOOL64=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895yes:)
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898ac_tool_warned=yes ;;
5899esac
5900 OTOOL64=$ac_ct_OTOOL64
5901 fi
5902else
5903 OTOOL64="$ac_cv_prog_OTOOL64"
5904fi
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5933$as_echo_n "checking for -single_module linker flag... " >&6; }
5934if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936else
5937 lt_cv_apple_cc_single_mod=no
5938 if test -z "${LT_MULTI_MODULE}"; then
5939 # By default we will add the -single_module flag. You can override
5940 # by either setting the environment variable LT_MULTI_MODULE
5941 # non-empty at configure time, or by adding -multi_module to the
5942 # link flags.
5943 rm -rf libconftest.dylib*
5944 echo "int foo(void){return 1;}" > conftest.c
5945 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5946-dynamiclib -Wl,-single_module conftest.c" >&5
5947 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5948 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5949 _lt_result=$?
5950 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5951 lt_cv_apple_cc_single_mod=yes
5952 else
5953 cat conftest.err >&5
5954 fi
5955 rm -rf libconftest.dylib*
5956 rm -f conftest.*
5957 fi
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5960$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5962$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5963if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 lt_cv_ld_exported_symbols_list=no
5967 save_LDFLAGS=$LDFLAGS
5968 echo "_main" > conftest.sym
5969 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h. */
5972
5973int
5974main ()
5975{
5976
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_link "$LINENO"; then :
5982 lt_cv_ld_exported_symbols_list=yes
5983else
5984 lt_cv_ld_exported_symbols_list=no
5985fi
5986rm -f core conftest.err conftest.$ac_objext \
5987 conftest$ac_exeext conftest.$ac_ext
5988 LDFLAGS="$save_LDFLAGS"
5989
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5992$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5993 case $host_os in
5994 rhapsody* | darwin1.[012])
5995 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5996 darwin1.*)
5997 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5998 darwin*) # darwin 5.x on
5999 # if running on 10.5 or later, the deployment target defaults
6000 # to the OS version, if on x86, and 10.4, the deployment
6001 # target defaults to 10.4. Don't you love it?
6002 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6003 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6004 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6005 10.[012]*)
6006 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6007 10.*)
6008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6009 esac
6010 ;;
6011 esac
6012 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6013 _lt_dar_single_mod='$single_module'
6014 fi
6015 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6016 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6017 else
6018 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6019 fi
6020 if test "$DSYMUTIL" != ":"; then
6021 _lt_dsymutil='~$DSYMUTIL $lib || :'
6022 else
6023 _lt_dsymutil=
6024 fi
6025 ;;
6026 esac
6027
6028ac_ext=c
6029ac_cpp='$CPP $CPPFLAGS'
6030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6034$as_echo_n "checking how to run the C preprocessor... " >&6; }
6035# On Suns, sometimes $CPP names a directory.
6036if test -n "$CPP" && test -d "$CPP"; then
6037 CPP=
6038fi
6039if test -z "$CPP"; then
6040 if test "${ac_cv_prog_CPP+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 # Double quotes because CPP needs to be expanded
6044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 do
6046 ac_preproc_ok=false
6047for ac_c_preproc_warn_flag in '' yes
6048do
6049 # Use a header file that comes with gcc, so configuring glibc
6050 # with a fresh cross-compiler works.
6051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052 # <limits.h> exists even on freestanding compilers.
6053 # On the NeXT, cc -E runs the code through the compiler's parser,
6054 # not just through cpp. "Syntax error" is here to catch this case.
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h. */
6057#ifdef __STDC__
6058# include <limits.h>
6059#else
6060# include <assert.h>
6061#endif
6062 Syntax error
6063_ACEOF
6064if ac_fn_c_try_cpp "$LINENO"; then :
6065
6066else
6067 # Broken: fails on valid input.
6068continue
6069fi
12833ad8 6070rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6071
6072 # OK, works on sane cases. Now check whether nonexistent headers
6073 # can be detected and how.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h. */
6076#include <ac_nonexistent.h>
6077_ACEOF
6078if ac_fn_c_try_cpp "$LINENO"; then :
6079 # Broken: success on invalid input.
6080continue
6081else
6082 # Passes both tests.
6083ac_preproc_ok=:
6084break
6085fi
12833ad8 6086rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6087
6088done
6089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 6090rm -f conftest.i conftest.err conftest.$ac_ext
9c60689e
DWT
6091if $ac_preproc_ok; then :
6092 break
6093fi
6094
6095 done
6096 ac_cv_prog_CPP=$CPP
6097
6098fi
6099 CPP=$ac_cv_prog_CPP
6100else
6101 ac_cv_prog_CPP=$CPP
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6104$as_echo "$CPP" >&6; }
6105ac_preproc_ok=false
6106for ac_c_preproc_warn_flag in '' yes
6107do
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115/* end confdefs.h. */
6116#ifdef __STDC__
6117# include <limits.h>
6118#else
6119# include <assert.h>
6120#endif
6121 Syntax error
6122_ACEOF
6123if ac_fn_c_try_cpp "$LINENO"; then :
6124
6125else
6126 # Broken: fails on valid input.
6127continue
6128fi
12833ad8 6129rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6130
6131 # OK, works on sane cases. Now check whether nonexistent headers
6132 # can be detected and how.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h. */
6135#include <ac_nonexistent.h>
6136_ACEOF
6137if ac_fn_c_try_cpp "$LINENO"; then :
6138 # Broken: success on invalid input.
6139continue
6140else
6141 # Passes both tests.
6142ac_preproc_ok=:
6143break
6144fi
12833ad8 6145rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e
DWT
6146
6147done
6148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 6149rm -f conftest.i conftest.err conftest.$ac_ext
9c60689e
DWT
6150if $ac_preproc_ok; then :
6151
6152else
6153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8
JF
6155as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6156See \`config.log' for more details" "$LINENO" 5 ; }
9c60689e
DWT
6157fi
6158
6159ac_ext=c
6160ac_cpp='$CPP $CPPFLAGS'
6161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6167$as_echo_n "checking for ANSI C header files... " >&6; }
6168if test "${ac_cv_header_stdc+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h. */
6173#include <stdlib.h>
6174#include <stdarg.h>
6175#include <string.h>
6176#include <float.h>
6177
6178int
6179main ()
6180{
6181
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_header_stdc=yes
6188else
6189 ac_cv_header_stdc=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192
6193if test $ac_cv_header_stdc = yes; then
6194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h. */
6197#include <string.h>
6198
6199_ACEOF
6200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6201 $EGREP "memchr" >/dev/null 2>&1; then :
6202
6203else
6204 ac_cv_header_stdc=no
6205fi
6206rm -f conftest*
6207
6208fi
6209
6210if test $ac_cv_header_stdc = yes; then
6211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h. */
6214#include <stdlib.h>
6215
6216_ACEOF
6217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 $EGREP "free" >/dev/null 2>&1; then :
6219
6220else
6221 ac_cv_header_stdc=no
6222fi
6223rm -f conftest*
6224
6225fi
6226
6227if test $ac_cv_header_stdc = yes; then
6228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6229 if test "$cross_compiling" = yes; then :
6230 :
6231else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h. */
6234#include <ctype.h>
6235#include <stdlib.h>
6236#if ((' ' & 0x0FF) == 0x020)
6237# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6238# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6239#else
6240# define ISLOWER(c) \
6241 (('a' <= (c) && (c) <= 'i') \
6242 || ('j' <= (c) && (c) <= 'r') \
6243 || ('s' <= (c) && (c) <= 'z'))
6244# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6245#endif
6246
6247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6248int
6249main ()
6250{
6251 int i;
6252 for (i = 0; i < 256; i++)
6253 if (XOR (islower (i), ISLOWER (i))
6254 || toupper (i) != TOUPPER (i))
6255 return 2;
6256 return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_run "$LINENO"; then :
6260
6261else
6262 ac_cv_header_stdc=no
6263fi
6264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6265 conftest.$ac_objext conftest.beam conftest.$ac_ext
6266fi
6267
6268fi
6269fi
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6271$as_echo "$ac_cv_header_stdc" >&6; }
6272if test $ac_cv_header_stdc = yes; then
6273
6274$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6275
6276fi
6277
6278# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6280 inttypes.h stdint.h unistd.h
6281do :
6282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6284"
12833ad8 6285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9c60689e
DWT
6286 cat >>confdefs.h <<_ACEOF
6287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288_ACEOF
6289
6290fi
6291
6292done
6293
6294
6295for ac_header in dlfcn.h
6296do :
6297 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6298"
6299if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6300 cat >>confdefs.h <<_ACEOF
6301#define HAVE_DLFCN_H 1
6302_ACEOF
6303
6304fi
6305
6306done
6307
6308
6309
6310# Set options
549f29b5
DWT
6311# Check whether --enable-static was given.
6312if test "${enable_static+set}" = set; then :
6313 enableval=$enable_static; p=${PACKAGE-default}
9c60689e 6314 case $enableval in
549f29b5
DWT
6315 yes) enable_static=yes ;;
6316 no) enable_static=no ;;
9c60689e 6317 *)
549f29b5 6318 enable_static=no
9c60689e
DWT
6319 # Look at the argument we got. We use all the common list separators.
6320 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6321 for pkg in $enableval; do
6322 IFS="$lt_save_ifs"
6323 if test "X$pkg" = "X$p"; then
549f29b5 6324 enable_static=yes
9c60689e
DWT
6325 fi
6326 done
6327 IFS="$lt_save_ifs"
6328 ;;
6329 esac
6330else
549f29b5 6331 enable_static=no
9c60689e
DWT
6332fi
6333
6334
6335
6336
6337
6338
6339
6340
6341
549f29b5
DWT
6342
6343 enable_dlopen=no
6344
6345
6346 enable_win32_dll=no
6347
6348
6349 # Check whether --enable-shared was given.
6350if test "${enable_shared+set}" = set; then :
6351 enableval=$enable_shared; p=${PACKAGE-default}
9c60689e 6352 case $enableval in
549f29b5
DWT
6353 yes) enable_shared=yes ;;
6354 no) enable_shared=no ;;
9c60689e 6355 *)
549f29b5 6356 enable_shared=no
9c60689e
DWT
6357 # Look at the argument we got. We use all the common list separators.
6358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6359 for pkg in $enableval; do
6360 IFS="$lt_save_ifs"
6361 if test "X$pkg" = "X$p"; then
549f29b5 6362 enable_shared=yes
9c60689e
DWT
6363 fi
6364 done
6365 IFS="$lt_save_ifs"
6366 ;;
6367 esac
6368else
549f29b5 6369 enable_shared=yes
9c60689e
DWT
6370fi
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
549f29b5 6381
9c60689e
DWT
6382# Check whether --with-pic was given.
6383if test "${with_pic+set}" = set; then :
6384 withval=$with_pic; pic_mode="$withval"
6385else
6386 pic_mode=default
6387fi
6388
6389
6390test -z "$pic_mode" && pic_mode=default
6391
6392
6393
6394
6395
6396
6397
6398 # Check whether --enable-fast-install was given.
6399if test "${enable_fast_install+set}" = set; then :
6400 enableval=$enable_fast_install; p=${PACKAGE-default}
6401 case $enableval in
6402 yes) enable_fast_install=yes ;;
6403 no) enable_fast_install=no ;;
6404 *)
6405 enable_fast_install=no
6406 # Look at the argument we got. We use all the common list separators.
6407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6408 for pkg in $enableval; do
6409 IFS="$lt_save_ifs"
6410 if test "X$pkg" = "X$p"; then
6411 enable_fast_install=yes
6412 fi
6413 done
6414 IFS="$lt_save_ifs"
6415 ;;
6416 esac
6417else
6418 enable_fast_install=yes
6419fi
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431# This can be used to rebuild libtool when needed
6432LIBTOOL_DEPS="$ltmain"
6433
6434# Always use our own libtool.
6435LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461test -z "$LN_S" && LN_S="ln -s"
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476if test -n "${ZSH_VERSION+set}" ; then
6477 setopt NO_GLOB_SUBST
6478fi
6479
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6481$as_echo_n "checking for objdir... " >&6; }
6482if test "${lt_cv_objdir+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484else
6485 rm -f .libs 2>/dev/null
6486mkdir .libs 2>/dev/null
6487if test -d .libs; then
6488 lt_cv_objdir=.libs
6489else
6490 # MS-DOS does not allow filenames that begin with a dot.
6491 lt_cv_objdir=_libs
6492fi
6493rmdir .libs 2>/dev/null
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6496$as_echo "$lt_cv_objdir" >&6; }
6497objdir=$lt_cv_objdir
6498
6499
6500
6501
6502
6503cat >>confdefs.h <<_ACEOF
6504#define LT_OBJDIR "$lt_cv_objdir/"
6505_ACEOF
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523case $host_os in
6524aix3*)
6525 # AIX sometimes has problems with the GCC collect2 program. For some
6526 # reason, if we set the COLLECT_NAMES environment variable, the problems
6527 # vanish in a puff of smoke.
6528 if test "X${COLLECT_NAMES+set}" != Xset; then
6529 COLLECT_NAMES=
6530 export COLLECT_NAMES
6531 fi
6532 ;;
6533esac
6534
6535# Sed substitution that helps us do robust quoting. It backslashifies
6536# metacharacters that are still active within double-quoted strings.
6537sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6538
6539# Same as above, but do not quote variable references.
6540double_quote_subst='s/\(["`\\]\)/\\\1/g'
6541
6542# Sed substitution to delay expansion of an escaped shell variable in a
6543# double_quote_subst'ed string.
6544delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6545
6546# Sed substitution to delay expansion of an escaped single quote.
6547delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6548
6549# Sed substitution to avoid accidental globbing in evaled expressions
6550no_glob_subst='s/\*/\\\*/g'
6551
6552# Global variables:
6553ofile=libtool
6554can_build_shared=yes
6555
6556# All known linkers require a `.a' archive for static linking (except MSVC,
6557# which needs '.lib').
6558libext=a
6559
6560with_gnu_ld="$lt_cv_prog_gnu_ld"
6561
6562old_CC="$CC"
6563old_CFLAGS="$CFLAGS"
6564
6565# Set sane defaults for various variables
6566test -z "$CC" && CC=cc
6567test -z "$LTCC" && LTCC=$CC
6568test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6569test -z "$LD" && LD=ld
6570test -z "$ac_objext" && ac_objext=o
6571
6572for cc_temp in $compiler""; do
6573 case $cc_temp in
6574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6576 \-*) ;;
6577 *) break;;
6578 esac
6579done
6580cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6581
6582
6583# Only perform the check for file, if the check method requires it
6584test -z "$MAGIC_CMD" && MAGIC_CMD=file
6585case $deplibs_check_method in
6586file_magic*)
6587 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6589$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6590if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592else
6593 case $MAGIC_CMD in
6594[\\/*] | ?:[\\/]*)
6595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6596 ;;
6597*)
6598 lt_save_MAGIC_CMD="$MAGIC_CMD"
6599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6601 for ac_dir in $ac_dummy; do
6602 IFS="$lt_save_ifs"
6603 test -z "$ac_dir" && ac_dir=.
6604 if test -f $ac_dir/${ac_tool_prefix}file; then
6605 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6606 if test -n "$file_magic_test_file"; then
6607 case $deplibs_check_method in
6608 "file_magic "*)
6609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6612 $EGREP "$file_magic_regex" > /dev/null; then
6613 :
6614 else
6615 cat <<_LT_EOF 1>&2
6616
6617*** Warning: the command libtool uses to detect shared libraries,
6618*** $file_magic_cmd, produces output that libtool cannot recognize.
6619*** The result is that libtool may fail to recognize shared libraries
6620*** as such. This will affect the creation of libtool libraries that
6621*** depend on shared libraries, but programs linked with such libtool
6622*** libraries will work regardless of this problem. Nevertheless, you
6623*** may want to report the problem to your system manager and/or to
6624*** bug-libtool@gnu.org
6625
6626_LT_EOF
6627 fi ;;
6628 esac
6629 fi
6630 break
6631 fi
6632 done
6633 IFS="$lt_save_ifs"
6634 MAGIC_CMD="$lt_save_MAGIC_CMD"
6635 ;;
6636esac
6637fi
6638
6639MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6640if test -n "$MAGIC_CMD"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6642$as_echo "$MAGIC_CMD" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648
6649
6650
6651
6652if test -z "$lt_cv_path_MAGIC_CMD"; then
6653 if test -n "$ac_tool_prefix"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6655$as_echo_n "checking for file... " >&6; }
6656if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6658else
6659 case $MAGIC_CMD in
6660[\\/*] | ?:[\\/]*)
6661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6662 ;;
6663*)
6664 lt_save_MAGIC_CMD="$MAGIC_CMD"
6665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6666 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6667 for ac_dir in $ac_dummy; do
6668 IFS="$lt_save_ifs"
6669 test -z "$ac_dir" && ac_dir=.
6670 if test -f $ac_dir/file; then
6671 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6672 if test -n "$file_magic_test_file"; then
6673 case $deplibs_check_method in
6674 "file_magic "*)
6675 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6677 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6678 $EGREP "$file_magic_regex" > /dev/null; then
6679 :
6680 else
6681 cat <<_LT_EOF 1>&2
6682
6683*** Warning: the command libtool uses to detect shared libraries,
6684*** $file_magic_cmd, produces output that libtool cannot recognize.
6685*** The result is that libtool may fail to recognize shared libraries
6686*** as such. This will affect the creation of libtool libraries that
6687*** depend on shared libraries, but programs linked with such libtool
6688*** libraries will work regardless of this problem. Nevertheless, you
6689*** may want to report the problem to your system manager and/or to
6690*** bug-libtool@gnu.org
6691
6692_LT_EOF
6693 fi ;;
6694 esac
6695 fi
6696 break
6697 fi
6698 done
6699 IFS="$lt_save_ifs"
6700 MAGIC_CMD="$lt_save_MAGIC_CMD"
6701 ;;
6702esac
6703fi
6704
6705MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706if test -n "$MAGIC_CMD"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6708$as_echo "$MAGIC_CMD" >&6; }
6709else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714
6715 else
6716 MAGIC_CMD=:
6717 fi
6718fi
6719
6720 fi
6721 ;;
6722esac
6723
6724# Use C for the default configuration in the libtool script
6725
6726lt_save_CC="$CC"
6727ac_ext=c
6728ac_cpp='$CPP $CPPFLAGS'
6729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
6733
6734# Source file extension for C test sources.
6735ac_ext=c
6736
6737# Object file extension for compiled C test sources.
6738objext=o
6739objext=$objext
6740
6741# Code to be used in simple compile tests
6742lt_simple_compile_test_code="int some_variable = 0;"
6743
6744# Code to be used in simple link tests
6745lt_simple_link_test_code='int main(){return(0);}'
6746
6747
6748
6749
6750
6751
6752
6753# If no C compiler was specified, use CC.
6754LTCC=${LTCC-"$CC"}
6755
6756# If no C compiler flags were specified, use CFLAGS.
6757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6758
6759# Allow CC to be a program name with arguments.
6760compiler=$CC
6761
6762# Save the default compiler, since it gets overwritten when the other
6763# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6764compiler_DEFAULT=$CC
6765
6766# save warnings/boilerplate of simple test code
6767ac_outfile=conftest.$ac_objext
6768echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6769eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6770_lt_compiler_boilerplate=`cat conftest.err`
6771$RM conftest*
6772
6773ac_outfile=conftest.$ac_objext
6774echo "$lt_simple_link_test_code" >conftest.$ac_ext
6775eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6776_lt_linker_boilerplate=`cat conftest.err`
6777$RM -r conftest*
6778
6779
6780if test -n "$compiler"; then
6781
6782lt_prog_compiler_no_builtin_flag=
6783
6784if test "$GCC" = yes; then
6785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6788$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6789if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791else
6792 lt_cv_prog_compiler_rtti_exceptions=no
6793 ac_outfile=conftest.$ac_objext
6794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="-fno-rtti -fno-exceptions"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
12833ad8 6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
9c60689e
DWT
6806 (eval "$lt_compile" 2>conftest.err)
6807 ac_status=$?
6808 cat conftest.err >&5
12833ad8 6809 echo "$as_me:6809: \$? = $ac_status" >&5
9c60689e
DWT
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_cv_prog_compiler_rtti_exceptions=yes
6817 fi
6818 fi
6819 $RM conftest*
6820
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6823$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6824
6825if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6827else
6828 :
6829fi
6830
6831fi
6832
6833
6834
6835
6836
6837
6838 lt_prog_compiler_wl=
6839lt_prog_compiler_pic=
6840lt_prog_compiler_static=
6841
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6843$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6844
6845 if test "$GCC" = yes; then
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_static='-static'
6848
6849 case $host_os in
6850 aix*)
6851 # All AIX code is PIC.
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6855 fi
6856 ;;
6857
6858 amigaos*)
6859 case $host_cpu in
6860 powerpc)
6861 # see comment about AmigaOS4 .so support
6862 lt_prog_compiler_pic='-fPIC'
6863 ;;
6864 m68k)
6865 # FIXME: we need at least 68020 code to build shared libraries, but
6866 # adding the `-m68020' flag to GCC prevents building anything better,
6867 # like `-m68040'.
6868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6869 ;;
6870 esac
6871 ;;
6872
6873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6874 # PIC is the default for these OSes.
6875 ;;
6876
6877 mingw* | cygwin* | pw32* | os2* | cegcc*)
6878 # This hack is so that the source file can tell whether it is being
6879 # built for inclusion in a dll (and should export symbols for example).
6880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6881 # (--disable-auto-import) libraries
6882 lt_prog_compiler_pic='-DDLL_EXPORT'
6883 ;;
6884
6885 darwin* | rhapsody*)
6886 # PIC is the default on this platform
6887 # Common symbols not allowed in MH_DYLIB files
6888 lt_prog_compiler_pic='-fno-common'
6889 ;;
6890
6891 hpux*)
6892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6894 # sets the default TLS model and affects inlining.
6895 case $host_cpu in
6896 hppa*64*)
6897 # +Z the default
6898 ;;
6899 *)
6900 lt_prog_compiler_pic='-fPIC'
6901 ;;
6902 esac
6903 ;;
6904
6905 interix[3-9]*)
6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6907 # Instead, we relocate shared libraries at runtime.
6908 ;;
6909
6910 msdosdjgpp*)
6911 # Just because we use GCC doesn't mean we suddenly get shared libraries
6912 # on systems that don't support them.
6913 lt_prog_compiler_can_build_shared=no
6914 enable_shared=no
6915 ;;
6916
6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6921 ;;
6922
6923 sysv4*MP*)
6924 if test -d /usr/nec; then
6925 lt_prog_compiler_pic=-Kconform_pic
6926 fi
6927 ;;
6928
6929 *)
6930 lt_prog_compiler_pic='-fPIC'
6931 ;;
6932 esac
6933 else
6934 # PORTME Check for flag to pass linker flags through the system compiler.
6935 case $host_os in
6936 aix*)
6937 lt_prog_compiler_wl='-Wl,'
6938 if test "$host_cpu" = ia64; then
6939 # AIX 5 now supports IA64 processor
6940 lt_prog_compiler_static='-Bstatic'
6941 else
6942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6943 fi
6944 ;;
6945
6946 mingw* | cygwin* | pw32* | os2* | cegcc*)
6947 # This hack is so that the source file can tell whether it is being
6948 # built for inclusion in a dll (and should export symbols for example).
6949 lt_prog_compiler_pic='-DDLL_EXPORT'
6950 ;;
6951
6952 hpux9* | hpux10* | hpux11*)
6953 lt_prog_compiler_wl='-Wl,'
6954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6955 # not for PA HP-UX.
6956 case $host_cpu in
6957 hppa*64*|ia64*)
6958 # +Z the default
6959 ;;
6960 *)
6961 lt_prog_compiler_pic='+Z'
6962 ;;
6963 esac
6964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6965 lt_prog_compiler_static='${wl}-a ${wl}archive'
6966 ;;
6967
6968 irix5* | irix6* | nonstopux*)
6969 lt_prog_compiler_wl='-Wl,'
6970 # PIC (with -KPIC) is the default.
6971 lt_prog_compiler_static='-non_shared'
6972 ;;
6973
1504c9b8 6974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
6975 case $cc_basename in
6976 # old Intel for x86_64 which still supported -KPIC.
6977 ecc*)
6978 lt_prog_compiler_wl='-Wl,'
6979 lt_prog_compiler_pic='-KPIC'
6980 lt_prog_compiler_static='-static'
6981 ;;
6982 # icc used to be incompatible with GCC.
6983 # ICC 10 doesn't accept -KPIC any more.
6984 icc* | ifort*)
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-fPIC'
6987 lt_prog_compiler_static='-static'
6988 ;;
6989 # Lahey Fortran 8.1.
6990 lf95*)
6991 lt_prog_compiler_wl='-Wl,'
6992 lt_prog_compiler_pic='--shared'
6993 lt_prog_compiler_static='--static'
6994 ;;
6995 pgcc* | pgf77* | pgf90* | pgf95*)
6996 # Portland Group compilers (*not* the Pentium gcc compiler,
6997 # which looks to be a dead project)
6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-fpic'
7000 lt_prog_compiler_static='-Bstatic'
7001 ;;
7002 ccc*)
7003 lt_prog_compiler_wl='-Wl,'
7004 # All Alpha code is PIC.
7005 lt_prog_compiler_static='-non_shared'
7006 ;;
7007 xl*)
7008 # IBM XL C 8.0/Fortran 10.1 on PPC
7009 lt_prog_compiler_wl='-Wl,'
7010 lt_prog_compiler_pic='-qpic'
7011 lt_prog_compiler_static='-qstaticlink'
7012 ;;
7013 *)
7014 case `$CC -V 2>&1 | sed 5q` in
7015 *Sun\ C*)
7016 # Sun C 5.9
7017 lt_prog_compiler_pic='-KPIC'
7018 lt_prog_compiler_static='-Bstatic'
7019 lt_prog_compiler_wl='-Wl,'
7020 ;;
7021 *Sun\ F*)
7022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7025 lt_prog_compiler_wl=''
7026 ;;
7027 esac
7028 ;;
7029 esac
7030 ;;
7031
7032 newsos6)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 ;;
7036
7037 *nto* | *qnx*)
7038 # QNX uses GNU C++, but need to define -shared option too, otherwise
7039 # it will coredump.
7040 lt_prog_compiler_pic='-fPIC -shared'
7041 ;;
7042
7043 osf3* | osf4* | osf5*)
7044 lt_prog_compiler_wl='-Wl,'
7045 # All OSF/1 code is PIC.
7046 lt_prog_compiler_static='-non_shared'
7047 ;;
7048
7049 rdos*)
7050 lt_prog_compiler_static='-non_shared'
7051 ;;
7052
7053 solaris*)
7054 lt_prog_compiler_pic='-KPIC'
7055 lt_prog_compiler_static='-Bstatic'
7056 case $cc_basename in
7057 f77* | f90* | f95*)
7058 lt_prog_compiler_wl='-Qoption ld ';;
7059 *)
7060 lt_prog_compiler_wl='-Wl,';;
7061 esac
7062 ;;
7063
7064 sunos4*)
7065 lt_prog_compiler_wl='-Qoption ld '
7066 lt_prog_compiler_pic='-PIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 sysv4 | sysv4.2uw2* | sysv4.3*)
7071 lt_prog_compiler_wl='-Wl,'
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7074 ;;
7075
7076 sysv4*MP*)
7077 if test -d /usr/nec ;then
7078 lt_prog_compiler_pic='-Kconform_pic'
7079 lt_prog_compiler_static='-Bstatic'
7080 fi
7081 ;;
7082
7083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7084 lt_prog_compiler_wl='-Wl,'
7085 lt_prog_compiler_pic='-KPIC'
7086 lt_prog_compiler_static='-Bstatic'
7087 ;;
7088
7089 unicos*)
7090 lt_prog_compiler_wl='-Wl,'
7091 lt_prog_compiler_can_build_shared=no
7092 ;;
7093
7094 uts4*)
7095 lt_prog_compiler_pic='-pic'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 *)
7100 lt_prog_compiler_can_build_shared=no
7101 ;;
7102 esac
7103 fi
7104
7105case $host_os in
7106 # For platforms which do not support PIC, -DPIC is meaningless:
7107 *djgpp*)
7108 lt_prog_compiler_pic=
7109 ;;
7110 *)
7111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7112 ;;
7113esac
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7115$as_echo "$lt_prog_compiler_pic" >&6; }
7116
7117
7118
7119
7120
7121
7122#
7123# Check to make sure the PIC flag actually works.
7124#
7125if test -n "$lt_prog_compiler_pic"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7127$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7128if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7130else
7131 lt_cv_prog_compiler_pic_works=no
7132 ac_outfile=conftest.$ac_objext
7133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7135 # Insert the option either (1) after the last *FLAGS variable, or
7136 # (2) before a word containing "conftest.", or (3) at the end.
7137 # Note that $ac_compile itself does not contain backslashes and begins
7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
7139 # The option is referenced via a variable to avoid confusing sed.
7140 lt_compile=`echo "$ac_compile" | $SED \
7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7143 -e 's:$: $lt_compiler_flag:'`
12833ad8 7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
9c60689e
DWT
7145 (eval "$lt_compile" 2>conftest.err)
7146 ac_status=$?
7147 cat conftest.err >&5
12833ad8 7148 echo "$as_me:7148: \$? = $ac_status" >&5
9c60689e
DWT
7149 if (exit $ac_status) && test -s "$ac_outfile"; then
7150 # The compiler can only warn and ignore the option if not recognized
7151 # So say no if there are warnings other than the usual output.
7152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7155 lt_cv_prog_compiler_pic_works=yes
7156 fi
7157 fi
7158 $RM conftest*
7159
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7162$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7163
7164if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7165 case $lt_prog_compiler_pic in
7166 "" | " "*) ;;
7167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7168 esac
7169else
7170 lt_prog_compiler_pic=
7171 lt_prog_compiler_can_build_shared=no
7172fi
7173
7174fi
7175
7176
7177
7178
7179
7180
7181#
7182# Check to make sure the static flag actually works.
7183#
7184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7186$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7187if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7188 $as_echo_n "(cached) " >&6
7189else
7190 lt_cv_prog_compiler_static_works=no
7191 save_LDFLAGS="$LDFLAGS"
7192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7195 # The linker can only warn and ignore the option if not recognized
7196 # So say no if there are warnings
7197 if test -s conftest.err; then
7198 # Append any errors to the config.log.
7199 cat conftest.err 1>&5
7200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7202 if diff conftest.exp conftest.er2 >/dev/null; then
7203 lt_cv_prog_compiler_static_works=yes
7204 fi
7205 else
7206 lt_cv_prog_compiler_static_works=yes
7207 fi
7208 fi
7209 $RM -r conftest*
7210 LDFLAGS="$save_LDFLAGS"
7211
7212fi
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7214$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7215
7216if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7217 :
7218else
7219 lt_prog_compiler_static=
7220fi
7221
7222
7223
7224
7225
7226
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7229$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7230if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232else
7233 lt_cv_prog_compiler_c_o=no
7234 $RM -r conftest 2>/dev/null
7235 mkdir conftest
7236 cd conftest
7237 mkdir out
7238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7239
7240 lt_compiler_flag="-o out/conftest2.$ac_objext"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 lt_compile=`echo "$ac_compile" | $SED \
7246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248 -e 's:$: $lt_compiler_flag:'`
12833ad8 7249 (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
9c60689e
DWT
7250 (eval "$lt_compile" 2>out/conftest.err)
7251 ac_status=$?
7252 cat out/conftest.err >&5
12833ad8 7253 echo "$as_me:7253: \$? = $ac_status" >&5
9c60689e
DWT
7254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7255 then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings
7258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_c_o=yes
7262 fi
7263 fi
7264 chmod u+w . 2>&5
7265 $RM conftest*
7266 # SGI C++ compiler will create directory out/ii_files/ for
7267 # template instantiation
7268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7269 $RM out/* && rmdir out
7270 cd ..
7271 $RM -r conftest
7272 $RM conftest*
7273
7274fi
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7276$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7277
7278
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7285if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 lt_cv_prog_compiler_c_o=no
7289 $RM -r conftest 2>/dev/null
7290 mkdir conftest
7291 cd conftest
7292 mkdir out
7293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7294
7295 lt_compiler_flag="-o out/conftest2.$ac_objext"
7296 # Insert the option either (1) after the last *FLAGS variable, or
7297 # (2) before a word containing "conftest.", or (3) at the end.
7298 # Note that $ac_compile itself does not contain backslashes and begins
7299 # with a dollar sign (not a hyphen), so the echo should work correctly.
7300 lt_compile=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
12833ad8 7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
9c60689e
DWT
7305 (eval "$lt_compile" 2>out/conftest.err)
7306 ac_status=$?
7307 cat out/conftest.err >&5
12833ad8 7308 echo "$as_me:7308: \$? = $ac_status" >&5
9c60689e
DWT
7309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7310 then
7311 # The compiler can only warn and ignore the option if not recognized
7312 # So say no if there are warnings
7313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7316 lt_cv_prog_compiler_c_o=yes
7317 fi
7318 fi
7319 chmod u+w . 2>&5
7320 $RM conftest*
7321 # SGI C++ compiler will create directory out/ii_files/ for
7322 # template instantiation
7323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7324 $RM out/* && rmdir out
7325 cd ..
7326 $RM -r conftest
7327 $RM conftest*
7328
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7331$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7332
7333
7334
7335
7336hard_links="nottested"
7337if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7338 # do not overwrite the value of need_locks provided by the user
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7340$as_echo_n "checking if we can lock with hard links... " >&6; }
7341 hard_links=yes
7342 $RM conftest*
7343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7344 touch conftest.a
7345 ln conftest.a conftest.b 2>&5 || hard_links=no
7346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7348$as_echo "$hard_links" >&6; }
7349 if test "$hard_links" = no; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7351$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7352 need_locks=warn
7353 fi
7354else
7355 need_locks=no
7356fi
7357
7358
7359
7360
7361
7362
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7364$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7365
7366 runpath_var=
7367 allow_undefined_flag=
7368 always_export_symbols=no
7369 archive_cmds=
7370 archive_expsym_cmds=
7371 compiler_needs_object=no
7372 enable_shared_with_static_runtimes=no
7373 export_dynamic_flag_spec=
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7375 hardcode_automatic=no
7376 hardcode_direct=no
7377 hardcode_direct_absolute=no
7378 hardcode_libdir_flag_spec=
7379 hardcode_libdir_flag_spec_ld=
7380 hardcode_libdir_separator=
7381 hardcode_minus_L=no
7382 hardcode_shlibpath_var=unsupported
7383 inherit_rpath=no
7384 link_all_deplibs=unknown
7385 module_cmds=
7386 module_expsym_cmds=
7387 old_archive_from_new_cmds=
7388 old_archive_from_expsyms_cmds=
7389 thread_safe_flag_spec=
7390 whole_archive_flag_spec=
7391 # include_expsyms should be a list of space-separated symbols to be *always*
7392 # included in the symbol list
7393 include_expsyms=
7394 # exclude_expsyms can be an extended regexp of symbols to exclude
7395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7397 # as well as any symbol that contains `d'.
7398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7400 # platforms (ab)use it in PIC code, but their linkers get confused if
7401 # the symbol is explicitly referenced. Since portable code cannot
7402 # rely on this symbol name, it's probably fine to never include it in
7403 # preloaded symbol tables.
7404 # Exclude shared library initialization/finalization symbols.
7405 extract_expsyms_cmds=
7406
7407 case $host_os in
7408 cygwin* | mingw* | pw32* | cegcc*)
7409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7410 # When not using gcc, we currently assume that we are using
7411 # Microsoft Visual C++.
7412 if test "$GCC" != yes; then
7413 with_gnu_ld=no
7414 fi
7415 ;;
7416 interix*)
7417 # we just hope/assume this is gcc and not c89 (= MSVC++)
7418 with_gnu_ld=yes
7419 ;;
7420 openbsd*)
7421 with_gnu_ld=no
7422 ;;
1504c9b8
DWT
7423 linux* | k*bsd*-gnu)
7424 link_all_deplibs=no
7425 ;;
9c60689e
DWT
7426 esac
7427
7428 ld_shlibs=yes
7429 if test "$with_gnu_ld" = yes; then
7430 # If archive_cmds runs LD, not CC, wlarc should be empty
7431 wlarc='${wl}'
7432
7433 # Set some defaults for GNU ld with shared library support. These
7434 # are reset later if shared libraries are not supported. Putting them
7435 # here allows them to be overridden if necessary.
7436 runpath_var=LD_RUN_PATH
7437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438 export_dynamic_flag_spec='${wl}--export-dynamic'
7439 # ancient GNU ld didn't support --whole-archive et. al.
7440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7442 else
7443 whole_archive_flag_spec=
7444 fi
7445 supports_anon_versioning=no
7446 case `$LD -v 2>&1` in
1504c9b8 7447 *GNU\ gold*) supports_anon_versioning=yes ;;
9c60689e
DWT
7448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7451 *\ 2.11.*) ;; # other 2.11 versions
7452 *) supports_anon_versioning=yes ;;
7453 esac
7454
7455 # See if GNU ld supports shared libraries.
7456 case $host_os in
7457 aix[3-9]*)
7458 # On AIX/PPC, the GNU linker is very broken
7459 if test "$host_cpu" != ia64; then
7460 ld_shlibs=no
7461 cat <<_LT_EOF 1>&2
7462
7463*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7464*** to be unable to reliably create shared libraries on AIX.
7465*** Therefore, libtool is disabling shared libraries support. If you
7466*** really care for shared libraries, you may want to modify your PATH
7467*** so that a non-GNU linker is found, and then restart.
7468
7469_LT_EOF
7470 fi
7471 ;;
7472
7473 amigaos*)
7474 case $host_cpu in
7475 powerpc)
7476 # see comment about AmigaOS4 .so support
7477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7478 archive_expsym_cmds=''
7479 ;;
7480 m68k)
7481 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)'
7482 hardcode_libdir_flag_spec='-L$libdir'
7483 hardcode_minus_L=yes
7484 ;;
7485 esac
7486 ;;
7487
7488 beos*)
7489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7490 allow_undefined_flag=unsupported
7491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7492 # support --undefined. This deserves some investigation. FIXME
7493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494 else
7495 ld_shlibs=no
7496 fi
7497 ;;
7498
7499 cygwin* | mingw* | pw32* | cegcc*)
7500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7501 # as there is no search path for DLLs.
7502 hardcode_libdir_flag_spec='-L$libdir'
7503 allow_undefined_flag=unsupported
7504 always_export_symbols=no
7505 enable_shared_with_static_runtimes=yes
7506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7507
7508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7510 # If the export-symbols file already is a .def file (1st line
7511 # is EXPORTS), use it as is; otherwise, prepend...
7512 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7513 cp $export_symbols $output_objdir/$soname.def;
7514 else
7515 echo EXPORTS > $output_objdir/$soname.def;
7516 cat $export_symbols >> $output_objdir/$soname.def;
7517 fi~
7518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7519 else
7520 ld_shlibs=no
7521 fi
7522 ;;
7523
7524 interix[3-9]*)
7525 hardcode_direct=no
7526 hardcode_shlibpath_var=no
7527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7528 export_dynamic_flag_spec='${wl}-E'
7529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7530 # Instead, shared libraries are loaded at an image base (0x10000000 by
7531 # default) and relocated if they conflict, which is a slow very memory
7532 # consuming and fragmenting process. To avoid this, we pick a random,
7533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7536 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'
7537 ;;
7538
1504c9b8 7539 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
7540 tmp_diet=no
7541 if test "$host_os" = linux-dietlibc; then
7542 case $cc_basename in
7543 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7544 esac
7545 fi
7546 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7547 && test "$tmp_diet" = no
7548 then
7549 tmp_addflag=
7550 tmp_sharedflag='-shared'
7551 case $cc_basename,$host_cpu in
7552 pgcc*) # Portland Group C compiler
7553 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7554 tmp_addflag=' $pic_flag'
7555 ;;
7556 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7557 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7558 tmp_addflag=' $pic_flag -Mnomain' ;;
7559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7560 tmp_addflag=' -i_dynamic' ;;
7561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7562 tmp_addflag=' -i_dynamic -nofor_main' ;;
7563 ifc* | ifort*) # Intel Fortran compiler
7564 tmp_addflag=' -nofor_main' ;;
7565 lf95*) # Lahey Fortran 8.1
7566 whole_archive_flag_spec=
7567 tmp_sharedflag='--shared' ;;
7568 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7569 tmp_sharedflag='-qmkshrobj'
7570 tmp_addflag= ;;
7571 esac
7572 case `$CC -V 2>&1 | sed 5q` in
7573 *Sun\ C*) # Sun C 5.9
7574 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7575 compiler_needs_object=yes
7576 tmp_sharedflag='-G' ;;
7577 *Sun\ F*) # Sun Fortran 8.3
7578 tmp_sharedflag='-G' ;;
7579 esac
7580 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7581
7582 if test "x$supports_anon_versioning" = xyes; then
7583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7585 echo "local: *; };" >> $output_objdir/$libname.ver~
7586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7587 fi
7588
7589 case $cc_basename in
7590 xlf*)
7591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7592 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7593 hardcode_libdir_flag_spec=
7594 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7595 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7596 if test "x$supports_anon_versioning" = xyes; then
7597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7599 echo "local: *; };" >> $output_objdir/$libname.ver~
7600 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7601 fi
7602 ;;
7603 esac
7604 else
7605 ld_shlibs=no
7606 fi
7607 ;;
7608
1504c9b8 7609 netbsd* | netbsdelf*-gnu)
9c60689e
DWT
7610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7612 wlarc=
7613 else
7614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7616 fi
7617 ;;
7618
7619 solaris*)
7620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7621 ld_shlibs=no
7622 cat <<_LT_EOF 1>&2
7623
7624*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7625*** create shared libraries on Solaris systems. Therefore, libtool
7626*** is disabling shared libraries support. We urge you to upgrade GNU
7627*** binutils to release 2.9.1 or newer. Another option is to modify
7628*** your PATH or compiler configuration so that the native linker is
7629*** used, and then restart.
7630
7631_LT_EOF
7632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7635 else
7636 ld_shlibs=no
7637 fi
7638 ;;
7639
7640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7641 case `$LD -v 2>&1` in
7642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7643 ld_shlibs=no
7644 cat <<_LT_EOF 1>&2
7645
7646*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7647*** reliably create shared libraries on SCO systems. Therefore, libtool
7648*** is disabling shared libraries support. We urge you to upgrade GNU
7649*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7650*** your PATH or compiler configuration so that the native linker is
7651*** used, and then restart.
7652
7653_LT_EOF
7654 ;;
7655 *)
7656 # For security reasons, it is highly recommended that you always
7657 # use absolute paths for naming shared libraries, and exclude the
7658 # DT_RUNPATH tag from executables and libraries. But doing so
7659 # requires that you compile everything twice, which is a pain.
7660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668 esac
7669 ;;
7670
7671 sunos4*)
7672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7673 wlarc=
7674 hardcode_direct=yes
7675 hardcode_shlibpath_var=no
7676 ;;
7677
7678 *)
7679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7682 else
7683 ld_shlibs=no
7684 fi
7685 ;;
7686 esac
7687
7688 if test "$ld_shlibs" = no; then
7689 runpath_var=
7690 hardcode_libdir_flag_spec=
7691 export_dynamic_flag_spec=
7692 whole_archive_flag_spec=
7693 fi
7694 else
7695 # PORTME fill in a description of your system's linker (not GNU ld)
7696 case $host_os in
7697 aix3*)
7698 allow_undefined_flag=unsupported
7699 always_export_symbols=yes
7700 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'
7701 # Note: this linker hardcodes the directories in LIBPATH if there
7702 # are no directories specified by -L.
7703 hardcode_minus_L=yes
7704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7705 # Neither direct hardcoding nor static linking is supported with a
7706 # broken collect2.
7707 hardcode_direct=unsupported
7708 fi
7709 ;;
7710
7711 aix[4-9]*)
7712 if test "$host_cpu" = ia64; then
7713 # On IA64, the linker does run time linking by default, so we don't
7714 # have to do anything special.
7715 aix_use_runtimelinking=no
7716 exp_sym_flag='-Bexport'
7717 no_entry_flag=""
7718 else
7719 # If we're using GNU nm, then we don't want the "-C" option.
7720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7722 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7723 else
7724 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'
7725 fi
7726 aix_use_runtimelinking=no
7727
7728 # Test if we are trying to use run time linking or normal
7729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7730 # need to do runtime linking.
7731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7732 for ld_flag in $LDFLAGS; do
7733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7734 aix_use_runtimelinking=yes
7735 break
7736 fi
7737 done
7738 ;;
7739 esac
7740
7741 exp_sym_flag='-bexport'
7742 no_entry_flag='-bnoentry'
7743 fi
7744
7745 # When large executables or shared objects are built, AIX ld can
7746 # have problems creating the table of contents. If linking a library
7747 # or program results in "error TOC overflow" add -mminimal-toc to
7748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7750
7751 archive_cmds=''
7752 hardcode_direct=yes
7753 hardcode_direct_absolute=yes
7754 hardcode_libdir_separator=':'
7755 link_all_deplibs=yes
7756 file_list_spec='${wl}-f,'
7757
7758 if test "$GCC" = yes; then
7759 case $host_os in aix4.[012]|aix4.[012].*)
7760 # We only want to do this on AIX 4.2 and lower, the check
7761 # below for broken collect2 doesn't work under 4.3+
7762 collect2name=`${CC} -print-prog-name=collect2`
7763 if test -f "$collect2name" &&
7764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7765 then
7766 # We have reworked collect2
7767 :
7768 else
7769 # We have old collect2
7770 hardcode_direct=unsupported
7771 # It fails to find uninstalled libraries when the uninstalled
7772 # path is not listed in the libpath. Setting hardcode_minus_L
7773 # to unsupported forces relinking
7774 hardcode_minus_L=yes
7775 hardcode_libdir_flag_spec='-L$libdir'
7776 hardcode_libdir_separator=
7777 fi
7778 ;;
7779 esac
7780 shared_flag='-shared'
7781 if test "$aix_use_runtimelinking" = yes; then
7782 shared_flag="$shared_flag "'${wl}-G'
7783 fi
1504c9b8 7784 link_all_deplibs=no
9c60689e
DWT
7785 else
7786 # not using gcc
7787 if test "$host_cpu" = ia64; then
7788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7789 # chokes on -Wl,-G. The following line is correct:
7790 shared_flag='-G'
7791 else
7792 if test "$aix_use_runtimelinking" = yes; then
7793 shared_flag='${wl}-G'
7794 else
7795 shared_flag='${wl}-bM:SRE'
7796 fi
7797 fi
7798 fi
7799
7800 export_dynamic_flag_spec='${wl}-bexpall'
7801 # It seems that -bexpall does not export symbols beginning with
7802 # underscore (_), so it is better to generate a list of symbols to export.
7803 always_export_symbols=yes
7804 if test "$aix_use_runtimelinking" = yes; then
7805 # Warning - without using the other runtime loading flags (-brtl),
7806 # -berok will link without error, but may produce a broken library.
7807 allow_undefined_flag='-berok'
7808 # Determine the default libpath from the value encoded in an
7809 # empty executable.
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h. */
7812
7813int
7814main ()
7815{
7816
7817 ;
7818 return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"; then :
7822
7823lt_aix_libpath_sed='
7824 /Import File Strings/,/^$/ {
7825 /^0/ {
7826 s/^0 *\(.*\)$/\1/
7827 p
7828 }
7829 }'
7830aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7831# Check for a 64-bit object if we didn't find anything.
7832if test -z "$aix_libpath"; then
7833 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7834fi
7835fi
7836rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7839
7840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7841 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7842 else
7843 if test "$host_cpu" = ia64; then
7844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7845 allow_undefined_flag="-z nodefs"
7846 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"
7847 else
7848 # Determine the default libpath from the value encoded in an
7849 # empty executable.
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h. */
7852
7853int
7854main ()
7855{
7856
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862
7863lt_aix_libpath_sed='
7864 /Import File Strings/,/^$/ {
7865 /^0/ {
7866 s/^0 *\(.*\)$/\1/
7867 p
7868 }
7869 }'
7870aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7871# Check for a 64-bit object if we didn't find anything.
7872if test -z "$aix_libpath"; then
7873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7874fi
7875fi
7876rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7879
7880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7881 # Warning - without using the other run time loading flags,
7882 # -berok will link without error, but may produce a broken library.
7883 no_undefined_flag=' ${wl}-bernotok'
7884 allow_undefined_flag=' ${wl}-berok'
7885 # Exported symbols can be pulled into shared objects from archives
7886 whole_archive_flag_spec='$convenience'
7887 archive_cmds_need_lc=yes
7888 # This is similar to how AIX traditionally builds its shared libraries.
7889 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'
7890 fi
7891 fi
7892 ;;
7893
7894 amigaos*)
7895 case $host_cpu in
7896 powerpc)
7897 # see comment about AmigaOS4 .so support
7898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899 archive_expsym_cmds=''
7900 ;;
7901 m68k)
7902 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)'
7903 hardcode_libdir_flag_spec='-L$libdir'
7904 hardcode_minus_L=yes
7905 ;;
7906 esac
7907 ;;
7908
7909 bsdi[45]*)
7910 export_dynamic_flag_spec=-rdynamic
7911 ;;
7912
7913 cygwin* | mingw* | pw32* | cegcc*)
7914 # When not using gcc, we currently assume that we are using
7915 # Microsoft Visual C++.
7916 # hardcode_libdir_flag_spec is actually meaningless, as there is
7917 # no search path for DLLs.
7918 hardcode_libdir_flag_spec=' '
7919 allow_undefined_flag=unsupported
7920 # Tell ltmain to make .lib files, not .a files.
7921 libext=lib
7922 # Tell ltmain to make .dll files, not .so files.
7923 shrext_cmds=".dll"
7924 # FIXME: Setting linknames here is a bad hack.
7925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7926 # The linker will automatically build a .lib file if we build a DLL.
7927 old_archive_from_new_cmds='true'
7928 # FIXME: Should let the user specify the lib program.
7929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7930 fix_srcfile_path='`cygpath -w "$srcfile"`'
7931 enable_shared_with_static_runtimes=yes
7932 ;;
7933
7934 darwin* | rhapsody*)
7935
7936
7937 archive_cmds_need_lc=no
7938 hardcode_direct=no
7939 hardcode_automatic=yes
7940 hardcode_shlibpath_var=unsupported
7941 whole_archive_flag_spec=''
7942 link_all_deplibs=yes
7943 allow_undefined_flag="$_lt_dar_allow_undefined"
7944 case $cc_basename in
7945 ifort*) _lt_dar_can_shared=yes ;;
7946 *) _lt_dar_can_shared=$GCC ;;
7947 esac
7948 if test "$_lt_dar_can_shared" = "yes"; then
7949 output_verbose_link_cmd=echo
7950 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7951 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7952 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}"
7953 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}"
7954
7955 else
7956 ld_shlibs=no
7957 fi
7958
7959 ;;
7960
7961 dgux*)
7962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7963 hardcode_libdir_flag_spec='-L$libdir'
7964 hardcode_shlibpath_var=no
7965 ;;
7966
7967 freebsd1*)
7968 ld_shlibs=no
7969 ;;
7970
7971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7972 # support. Future versions do this automatically, but an explicit c++rt0.o
7973 # does not break anything, and helps significantly (at the cost of a little
7974 # extra space).
7975 freebsd2.2*)
7976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7977 hardcode_libdir_flag_spec='-R$libdir'
7978 hardcode_direct=yes
7979 hardcode_shlibpath_var=no
7980 ;;
7981
7982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7983 freebsd2*)
7984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7985 hardcode_direct=yes
7986 hardcode_minus_L=yes
7987 hardcode_shlibpath_var=no
7988 ;;
7989
7990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7991 freebsd* | dragonfly*)
7992 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7993 hardcode_libdir_flag_spec='-R$libdir'
7994 hardcode_direct=yes
7995 hardcode_shlibpath_var=no
7996 ;;
7997
7998 hpux9*)
7999 if test "$GCC" = yes; then
8000 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8001 else
8002 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'
8003 fi
8004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8005 hardcode_libdir_separator=:
8006 hardcode_direct=yes
8007
8008 # hardcode_minus_L: Not really in the search PATH,
8009 # but as the default location of the library.
8010 hardcode_minus_L=yes
8011 export_dynamic_flag_spec='${wl}-E'
8012 ;;
8013
8014 hpux10*)
8015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8016 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8017 else
8018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8019 fi
8020 if test "$with_gnu_ld" = no; then
8021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8022 hardcode_libdir_flag_spec_ld='+b $libdir'
8023 hardcode_libdir_separator=:
8024 hardcode_direct=yes
8025 hardcode_direct_absolute=yes
8026 export_dynamic_flag_spec='${wl}-E'
8027 # hardcode_minus_L: Not really in the search PATH,
8028 # but as the default location of the library.
8029 hardcode_minus_L=yes
8030 fi
8031 ;;
8032
8033 hpux11*)
8034 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8035 case $host_cpu in
8036 hppa*64*)
8037 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8038 ;;
8039 ia64*)
8040 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8041 ;;
8042 *)
8043 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8044 ;;
8045 esac
8046 else
8047 case $host_cpu in
8048 hppa*64*)
8049 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8050 ;;
8051 ia64*)
8052 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8053 ;;
8054 *)
8055 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8056 ;;
8057 esac
8058 fi
8059 if test "$with_gnu_ld" = no; then
8060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8061 hardcode_libdir_separator=:
8062
8063 case $host_cpu in
8064 hppa*64*|ia64*)
8065 hardcode_direct=no
8066 hardcode_shlibpath_var=no
8067 ;;
8068 *)
8069 hardcode_direct=yes
8070 hardcode_direct_absolute=yes
8071 export_dynamic_flag_spec='${wl}-E'
8072
8073 # hardcode_minus_L: Not really in the search PATH,
8074 # but as the default location of the library.
8075 hardcode_minus_L=yes
8076 ;;
8077 esac
8078 fi
8079 ;;
8080
8081 irix5* | irix6* | nonstopux*)
8082 if test "$GCC" = yes; then
8083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8084 # Try to use the -exported_symbol ld option, if it does not
8085 # work, assume that -exports_file does not work either and
8086 # implicitly export all symbols.
8087 save_LDFLAGS="$LDFLAGS"
8088 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h. */
8091int foo(void) {}
8092_ACEOF
8093if ac_fn_c_try_link "$LINENO"; then :
8094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8095
8096fi
8097rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099 LDFLAGS="$save_LDFLAGS"
8100 else
8101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8103 fi
8104 archive_cmds_need_lc='no'
8105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8106 hardcode_libdir_separator=:
8107 inherit_rpath=yes
8108 link_all_deplibs=yes
8109 ;;
8110
1504c9b8 8111 netbsd* | netbsdelf*-gnu)
9c60689e
DWT
8112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8114 else
8115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8116 fi
8117 hardcode_libdir_flag_spec='-R$libdir'
8118 hardcode_direct=yes
8119 hardcode_shlibpath_var=no
8120 ;;
8121
8122 newsos6)
8123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124 hardcode_direct=yes
8125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8126 hardcode_libdir_separator=:
8127 hardcode_shlibpath_var=no
8128 ;;
8129
8130 *nto* | *qnx*)
8131 ;;
8132
8133 openbsd*)
8134 if test -f /usr/libexec/ld.so; then
8135 hardcode_direct=yes
8136 hardcode_shlibpath_var=no
8137 hardcode_direct_absolute=yes
8138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8142 export_dynamic_flag_spec='${wl}-E'
8143 else
8144 case $host_os in
8145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_libdir_flag_spec='-R$libdir'
8148 ;;
8149 *)
8150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152 ;;
8153 esac
8154 fi
8155 else
8156 ld_shlibs=no
8157 fi
8158 ;;
8159
8160 os2*)
8161 hardcode_libdir_flag_spec='-L$libdir'
8162 hardcode_minus_L=yes
8163 allow_undefined_flag=unsupported
8164 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'
8165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8166 ;;
8167
8168 osf3*)
8169 if test "$GCC" = yes; then
8170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8171 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8172 else
8173 allow_undefined_flag=' -expect_unresolved \*'
8174 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8175 fi
8176 archive_cmds_need_lc='no'
8177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8178 hardcode_libdir_separator=:
8179 ;;
8180
8181 osf4* | osf5*) # as osf3* with the addition of -msym flag
8182 if test "$GCC" = yes; then
8183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8184 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8186 else
8187 allow_undefined_flag=' -expect_unresolved \*'
8188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8189 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~
8190 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8191
8192 # Both c and cxx compiler support -rpath directly
8193 hardcode_libdir_flag_spec='-rpath $libdir'
8194 fi
8195 archive_cmds_need_lc='no'
8196 hardcode_libdir_separator=:
8197 ;;
8198
8199 solaris*)
8200 no_undefined_flag=' -z defs'
8201 if test "$GCC" = yes; then
8202 wlarc='${wl}'
8203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8206 else
8207 case `$CC -V 2>&1` in
8208 *"Compilers 5.0"*)
8209 wlarc=''
8210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8213 ;;
8214 *)
8215 wlarc='${wl}'
8216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8219 ;;
8220 esac
8221 fi
8222 hardcode_libdir_flag_spec='-R$libdir'
8223 hardcode_shlibpath_var=no
8224 case $host_os in
8225 solaris2.[0-5] | solaris2.[0-5].*) ;;
8226 *)
8227 # The compiler driver will combine and reorder linker options,
8228 # but understands `-z linker_flag'. GCC discards it without `$wl',
8229 # but is careful enough not to reorder.
8230 # Supported since Solaris 2.6 (maybe 2.5.1?)
8231 if test "$GCC" = yes; then
8232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8233 else
8234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8235 fi
8236 ;;
8237 esac
8238 link_all_deplibs=yes
8239 ;;
8240
8241 sunos4*)
8242 if test "x$host_vendor" = xsequent; then
8243 # Use $CC to link under sequent, because it throws in some extra .o
8244 # files that make .init and .fini sections work.
8245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8246 else
8247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8248 fi
8249 hardcode_libdir_flag_spec='-L$libdir'
8250 hardcode_direct=yes
8251 hardcode_minus_L=yes
8252 hardcode_shlibpath_var=no
8253 ;;
8254
8255 sysv4)
8256 case $host_vendor in
8257 sni)
8258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8259 hardcode_direct=yes # is this really true???
8260 ;;
8261 siemens)
8262 ## LD is ld it makes a PLAMLIB
8263 ## CC just makes a GrossModule.
8264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8265 reload_cmds='$CC -r -o $output$reload_objs'
8266 hardcode_direct=no
8267 ;;
8268 motorola)
8269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8271 ;;
8272 esac
8273 runpath_var='LD_RUN_PATH'
8274 hardcode_shlibpath_var=no
8275 ;;
8276
8277 sysv4.3*)
8278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_shlibpath_var=no
8280 export_dynamic_flag_spec='-Bexport'
8281 ;;
8282
8283 sysv4*MP*)
8284 if test -d /usr/nec; then
8285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8286 hardcode_shlibpath_var=no
8287 runpath_var=LD_RUN_PATH
8288 hardcode_runpath_var=yes
8289 ld_shlibs=yes
8290 fi
8291 ;;
8292
8293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8294 no_undefined_flag='${wl}-z,text'
8295 archive_cmds_need_lc=no
8296 hardcode_shlibpath_var=no
8297 runpath_var='LD_RUN_PATH'
8298
8299 if test "$GCC" = yes; then
8300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8302 else
8303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8305 fi
8306 ;;
8307
8308 sysv5* | sco3.2v5* | sco5v6*)
8309 # Note: We can NOT use -z defs as we might desire, because we do not
8310 # link with -lc, and that would cause any symbols used from libc to
8311 # always be unresolved, which means just about no library would
8312 # ever link correctly. If we're not using GNU ld we use -z text
8313 # though, which does catch some bad symbols but isn't as heavy-handed
8314 # as -z defs.
8315 no_undefined_flag='${wl}-z,text'
8316 allow_undefined_flag='${wl}-z,nodefs'
8317 archive_cmds_need_lc=no
8318 hardcode_shlibpath_var=no
8319 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8320 hardcode_libdir_separator=':'
8321 link_all_deplibs=yes
8322 export_dynamic_flag_spec='${wl}-Bexport'
8323 runpath_var='LD_RUN_PATH'
8324
8325 if test "$GCC" = yes; then
8326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 else
8329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8331 fi
8332 ;;
8333
8334 uts4*)
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_libdir_flag_spec='-L$libdir'
8337 hardcode_shlibpath_var=no
8338 ;;
8339
8340 *)
8341 ld_shlibs=no
8342 ;;
8343 esac
8344
8345 if test x$host_vendor = xsni; then
8346 case $host in
8347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8348 export_dynamic_flag_spec='${wl}-Blargedynsym'
8349 ;;
8350 esac
8351 fi
8352 fi
8353
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8355$as_echo "$ld_shlibs" >&6; }
8356test "$ld_shlibs" = no && can_build_shared=no
8357
8358with_gnu_ld=$with_gnu_ld
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374#
8375# Do we need to explicitly link libc?
8376#
8377case "x$archive_cmds_need_lc" in
8378x|xyes)
8379 # Assume -lc should be added
8380 archive_cmds_need_lc=yes
8381
8382 if test "$enable_shared" = yes && test "$GCC" = yes; then
8383 case $archive_cmds in
8384 *'~'*)
8385 # FIXME: we may have to deal with multi-command sequences.
8386 ;;
8387 '$CC '*)
8388 # Test whether the compiler implicitly links with -lc since on some
8389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8390 # to ld, don't add -lc before -lgcc.
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8392$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8393 $RM conftest*
8394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395
8396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8397 (eval $ac_compile) 2>&5
8398 ac_status=$?
8399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8400 test $ac_status = 0; } 2>conftest.err; then
8401 soname=conftest
8402 lib=conftest
8403 libobjs=conftest.$ac_objext
8404 deplibs=
8405 wl=$lt_prog_compiler_wl
8406 pic_flag=$lt_prog_compiler_pic
8407 compiler_flags=-v
8408 linker_flags=-v
8409 verstring=
8410 output_objdir=.
8411 libname=conftest
8412 lt_save_allow_undefined_flag=$allow_undefined_flag
8413 allow_undefined_flag=
8414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8416 ac_status=$?
8417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8418 test $ac_status = 0; }
8419 then
8420 archive_cmds_need_lc=no
8421 else
8422 archive_cmds_need_lc=yes
8423 fi
8424 allow_undefined_flag=$lt_save_allow_undefined_flag
8425 else
8426 cat conftest.err 1>&5
8427 fi
8428 $RM conftest*
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8430$as_echo "$archive_cmds_need_lc" >&6; }
8431 ;;
8432 esac
8433 fi
8434 ;;
8435esac
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8594$as_echo_n "checking dynamic linker characteristics... " >&6; }
8595
8596if test "$GCC" = yes; then
8597 case $host_os in
8598 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8599 *) lt_awk_arg="/^libraries:/" ;;
8600 esac
8601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8603 # if the path contains ";" then we assume it to be the separator
8604 # otherwise default to the standard path separator (i.e. ":") - it is
8605 # assumed that no part of a normal pathname contains ";" but that should
8606 # okay in the real world where ";" in dirpaths is itself problematic.
8607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8608 else
8609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8610 fi
8611 # Ok, now we have the path, separated by spaces, we can step through it
8612 # and add multilib dir if necessary.
8613 lt_tmp_lt_search_path_spec=
8614 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8615 for lt_sys_path in $lt_search_path_spec; do
8616 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8617 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8618 else
8619 test -d "$lt_sys_path" && \
8620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8621 fi
8622 done
8623 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8624BEGIN {RS=" "; FS="/|\n";} {
8625 lt_foo="";
8626 lt_count=0;
8627 for (lt_i = NF; lt_i > 0; lt_i--) {
8628 if ($lt_i != "" && $lt_i != ".") {
8629 if ($lt_i == "..") {
8630 lt_count++;
8631 } else {
8632 if (lt_count == 0) {
8633 lt_foo="/" $lt_i lt_foo;
8634 } else {
8635 lt_count--;
8636 }
8637 }
8638 }
8639 }
8640 if (lt_foo != "") { lt_freq[lt_foo]++; }
8641 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8642}'`
8643 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8644else
8645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8646fi
8647library_names_spec=
8648libname_spec='lib$name'
8649soname_spec=
8650shrext_cmds=".so"
8651postinstall_cmds=
8652postuninstall_cmds=
8653finish_cmds=
8654finish_eval=
8655shlibpath_var=
8656shlibpath_overrides_runpath=unknown
8657version_type=none
8658dynamic_linker="$host_os ld.so"
8659sys_lib_dlsearch_path_spec="/lib /usr/lib"
8660need_lib_prefix=unknown
8661hardcode_into_libs=no
8662
8663# when you set need_version to no, make sure it does not cause -set_version
8664# flags to be left without arguments
8665need_version=unknown
8666
8667case $host_os in
8668aix3*)
8669 version_type=linux
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8671 shlibpath_var=LIBPATH
8672
8673 # AIX 3 has no versioning support, so we append a major version to the name.
8674 soname_spec='${libname}${release}${shared_ext}$major'
8675 ;;
8676
8677aix[4-9]*)
8678 version_type=linux
8679 need_lib_prefix=no
8680 need_version=no
8681 hardcode_into_libs=yes
8682 if test "$host_cpu" = ia64; then
8683 # AIX 5 supports IA64
8684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8685 shlibpath_var=LD_LIBRARY_PATH
8686 else
8687 # With GCC up to 2.95.x, collect2 would create an import file
8688 # for dependence libraries. The import file would start with
8689 # the line `#! .'. This would cause the generated library to
8690 # depend on `.', always an invalid library. This was fixed in
8691 # development snapshots of GCC prior to 3.0.
8692 case $host_os in
8693 aix4 | aix4.[01] | aix4.[01].*)
8694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8695 echo ' yes '
8696 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8697 :
8698 else
8699 can_build_shared=no
8700 fi
8701 ;;
8702 esac
8703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8704 # soname into executable. Probably we can add versioning support to
8705 # collect2, so additional links can be useful in future.
8706 if test "$aix_use_runtimelinking" = yes; then
8707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8708 # instead of lib<name>.a to let people know that these are not
8709 # typical AIX shared libraries.
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711 else
8712 # We preserve .a as extension for shared libraries through AIX4.2
8713 # and later when we are not doing run time linking.
8714 library_names_spec='${libname}${release}.a $libname.a'
8715 soname_spec='${libname}${release}${shared_ext}$major'
8716 fi
8717 shlibpath_var=LIBPATH
8718 fi
8719 ;;
8720
8721amigaos*)
8722 case $host_cpu in
8723 powerpc)
8724 # Since July 2007 AmigaOS4 officially supports .so libraries.
8725 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 ;;
8728 m68k)
8729 library_names_spec='$libname.ixlibrary $libname.a'
8730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8731 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8732 ;;
8733 esac
8734 ;;
8735
8736beos*)
8737 library_names_spec='${libname}${shared_ext}'
8738 dynamic_linker="$host_os ld.so"
8739 shlibpath_var=LIBRARY_PATH
8740 ;;
8741
8742bsdi[45]*)
8743 version_type=linux
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8751 # the default ld.so.conf also contains /usr/contrib/lib and
8752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8753 # libtool to hard-code these into programs
8754 ;;
8755
8756cygwin* | mingw* | pw32* | cegcc*)
8757 version_type=windows
8758 shrext_cmds=".dll"
8759 need_version=no
8760 need_lib_prefix=no
8761
8762 case $GCC,$host_os in
8763 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8764 library_names_spec='$libname.dll.a'
8765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8766 postinstall_cmds='base_file=`basename \${file}`~
8767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8768 dldir=$destdir/`dirname \$dlpath`~
8769 test -d \$dldir || mkdir -p \$dldir~
8770 $install_prog $dir/$dlname \$dldir/$dlname~
8771 chmod a+x \$dldir/$dlname~
8772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8774 fi'
8775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8776 dlpath=$dir/\$dldll~
8777 $RM \$dlpath'
8778 shlibpath_overrides_runpath=yes
8779
8780 case $host_os in
8781 cygwin*)
8782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8785 ;;
8786 mingw* | cegcc*)
8787 # MinGW DLLs use traditional 'lib' prefix
8788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8789 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8791 # It is most probably a Windows format PATH printed by
8792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8793 # path with ; separators, and with drive letters. We can handle the
8794 # drive letters (cygwin fileutils understands them), so leave them,
8795 # especially as we might pass files found there to a mingw objdump,
8796 # which wouldn't understand a cygwinified path. Ahh.
8797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8798 else
8799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8800 fi
8801 ;;
8802 pw32*)
8803 # pw32 DLLs use 'pw' prefix rather than 'lib'
8804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8805 ;;
8806 esac
8807 ;;
8808
8809 *)
8810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8811 ;;
8812 esac
8813 dynamic_linker='Win32 ld.exe'
8814 # FIXME: first we should search . and the directory the executable is in
8815 shlibpath_var=PATH
8816 ;;
8817
8818darwin* | rhapsody*)
8819 dynamic_linker="$host_os dyld"
8820 version_type=darwin
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8824 soname_spec='${libname}${release}${major}$shared_ext'
8825 shlibpath_overrides_runpath=yes
8826 shlibpath_var=DYLD_LIBRARY_PATH
8827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8828
8829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8831 ;;
8832
8833dgux*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 ;;
8841
8842freebsd1*)
8843 dynamic_linker=no
8844 ;;
8845
8846freebsd* | dragonfly*)
8847 # DragonFly does not have aout. When/if they implement a new
8848 # versioning mechanism, adjust this.
8849 if test -x /usr/bin/objformat; then
8850 objformat=`/usr/bin/objformat`
8851 else
8852 case $host_os in
8853 freebsd[123]*) objformat=aout ;;
8854 *) objformat=elf ;;
8855 esac
8856 fi
8857 version_type=freebsd-$objformat
8858 case $version_type in
8859 freebsd-elf*)
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8861 need_version=no
8862 need_lib_prefix=no
8863 ;;
8864 freebsd-*)
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8866 need_version=yes
8867 ;;
8868 esac
8869 shlibpath_var=LD_LIBRARY_PATH
8870 case $host_os in
8871 freebsd2*)
8872 shlibpath_overrides_runpath=yes
8873 ;;
8874 freebsd3.[01]* | freebsdelf3.[01]*)
8875 shlibpath_overrides_runpath=yes
8876 hardcode_into_libs=yes
8877 ;;
8878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8880 shlibpath_overrides_runpath=no
8881 hardcode_into_libs=yes
8882 ;;
8883 *) # from 4.6 on, and DragonFly
8884 shlibpath_overrides_runpath=yes
8885 hardcode_into_libs=yes
8886 ;;
8887 esac
8888 ;;
8889
8890gnu*)
8891 version_type=linux
8892 need_lib_prefix=no
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 hardcode_into_libs=yes
8898 ;;
8899
8900hpux9* | hpux10* | hpux11*)
8901 # Give a soname corresponding to the major version so that dld.sl refuses to
8902 # link against other versions.
8903 version_type=sunos
8904 need_lib_prefix=no
8905 need_version=no
8906 case $host_cpu in
8907 ia64*)
8908 shrext_cmds='.so'
8909 hardcode_into_libs=yes
8910 dynamic_linker="$host_os dld.so"
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 if test "X$HPUX_IA64_MODE" = X32; then
8916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8917 else
8918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8919 fi
8920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8921 ;;
8922 hppa*64*)
8923 shrext_cmds='.sl'
8924 hardcode_into_libs=yes
8925 dynamic_linker="$host_os dld.sl"
8926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8932 ;;
8933 *)
8934 shrext_cmds='.sl'
8935 dynamic_linker="$host_os dld.sl"
8936 shlibpath_var=SHLIB_PATH
8937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 ;;
8941 esac
8942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8943 postinstall_cmds='chmod 555 $lib'
8944 ;;
8945
8946interix[3-9]*)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 ;;
8957
8958irix5* | irix6* | nonstopux*)
8959 case $host_os in
8960 nonstopux*) version_type=nonstopux ;;
8961 *)
8962 if test "$lt_cv_prog_gnu_ld" = yes; then
8963 version_type=linux
8964 else
8965 version_type=irix
8966 fi ;;
8967 esac
8968 need_lib_prefix=no
8969 need_version=no
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8972 case $host_os in
8973 irix5* | nonstopux*)
8974 libsuff= shlibsuff=
8975 ;;
8976 *)
8977 case $LD in # libtool.m4 will add one of these switches to LD
8978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8979 libsuff= shlibsuff= libmagic=32-bit;;
8980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8981 libsuff=32 shlibsuff=N32 libmagic=N32;;
8982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8984 *) libsuff= shlibsuff= libmagic=never-match;;
8985 esac
8986 ;;
8987 esac
8988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8989 shlibpath_overrides_runpath=no
8990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8992 hardcode_into_libs=yes
8993 ;;
8994
8995# No shared lib support for Linux oldld, aout, or coff.
8996linux*oldld* | linux*aout* | linux*coff*)
8997 dynamic_linker=no
8998 ;;
8999
9000# This must be Linux ELF.
1504c9b8 9001linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=no
9010 # Some binutils ld are patched to set DT_RUNPATH
9011 save_LDFLAGS=$LDFLAGS
9012 save_libdir=$libdir
9013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h. */
9017
9018int
9019main ()
9020{
9021
9022 ;
9023 return 0;
9024}
9025_ACEOF
9026if ac_fn_c_try_link "$LINENO"; then :
9027 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9028 shlibpath_overrides_runpath=yes
9029fi
9030fi
9031rm -f core conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033 LDFLAGS=$save_LDFLAGS
9034 libdir=$save_libdir
9035
9036 # This implies no fast_install, which is unacceptable.
9037 # Some rework will be needed to allow for fast_install
9038 # before this can be enabled.
9039 hardcode_into_libs=yes
9040
9041 # Append ld.so.conf contents to the search path
9042 if test -f /etc/ld.so.conf; then
9043 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;/^$/d' | tr '\n' ' '`
9044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9045 fi
9046
9047 # We used to test for /lib/ld.so.1 and disable shared libraries on
9048 # powerpc, because MkLinux only supported shared libraries with the
9049 # GNU dynamic linker. Since this was broken with cross compilers,
9050 # most powerpc-linux boxes support dynamic linking these days and
9051 # people can always --disable-shared, the test was removed, and we
9052 # assume the GNU/Linux dynamic linker is in use.
9053 dynamic_linker='GNU/Linux ld.so'
9054 ;;
9055
1504c9b8
DWT
9056netbsdelf*-gnu)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 dynamic_linker='NetBSD ld.elf_so'
9066 ;;
9067
9c60689e
DWT
9068netbsd*)
9069 version_type=sunos
9070 need_lib_prefix=no
9071 need_version=no
9072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 dynamic_linker='NetBSD (a.out) ld.so'
9076 else
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 dynamic_linker='NetBSD ld.elf_so'
9080 fi
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 hardcode_into_libs=yes
9084 ;;
9085
9086newsos6)
9087 version_type=linux
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes
9091 ;;
9092
9093*nto* | *qnx*)
9094 version_type=qnx
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 hardcode_into_libs=yes
9102 dynamic_linker='ldqnx.so'
9103 ;;
9104
9105openbsd*)
9106 version_type=sunos
9107 sys_lib_dlsearch_path_spec="/usr/lib"
9108 need_lib_prefix=no
9109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9110 case $host_os in
9111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9112 *) need_version=no ;;
9113 esac
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9118 case $host_os in
9119 openbsd2.[89] | openbsd2.[89].*)
9120 shlibpath_overrides_runpath=no
9121 ;;
9122 *)
9123 shlibpath_overrides_runpath=yes
9124 ;;
9125 esac
9126 else
9127 shlibpath_overrides_runpath=yes
9128 fi
9129 ;;
9130
9131os2*)
9132 libname_spec='$name'
9133 shrext_cmds=".dll"
9134 need_lib_prefix=no
9135 library_names_spec='$libname${shared_ext} $libname.a'
9136 dynamic_linker='OS/2 ld.exe'
9137 shlibpath_var=LIBPATH
9138 ;;
9139
9140osf3* | osf4* | osf5*)
9141 version_type=osf
9142 need_lib_prefix=no
9143 need_version=no
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9149 ;;
9150
9151rdos*)
9152 dynamic_linker=no
9153 ;;
9154
9155solaris*)
9156 version_type=linux
9157 need_lib_prefix=no
9158 need_version=no
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 shlibpath_overrides_runpath=yes
9163 hardcode_into_libs=yes
9164 # ldd complains unless libraries are executable
9165 postinstall_cmds='chmod +x $lib'
9166 ;;
9167
9168sunos4*)
9169 version_type=sunos
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes
9174 if test "$with_gnu_ld" = yes; then
9175 need_lib_prefix=no
9176 fi
9177 need_version=yes
9178 ;;
9179
9180sysv4 | sysv4.3*)
9181 version_type=linux
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 case $host_vendor in
9186 sni)
9187 shlibpath_overrides_runpath=no
9188 need_lib_prefix=no
9189 runpath_var=LD_RUN_PATH
9190 ;;
9191 siemens)
9192 need_lib_prefix=no
9193 ;;
9194 motorola)
9195 need_lib_prefix=no
9196 need_version=no
9197 shlibpath_overrides_runpath=no
9198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9199 ;;
9200 esac
9201 ;;
9202
9203sysv4*MP*)
9204 if test -d /usr/nec ;then
9205 version_type=linux
9206 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9207 soname_spec='$libname${shared_ext}.$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 fi
9210 ;;
9211
9212sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9213 version_type=freebsd-elf
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9221 if test "$with_gnu_ld" = yes; then
9222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9223 else
9224 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9225 case $host_os in
9226 sco3.2v5*)
9227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9228 ;;
9229 esac
9230 fi
9231 sys_lib_dlsearch_path_spec='/usr/lib'
9232 ;;
9233
9234tpf*)
9235 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9236 version_type=linux
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=no
9242 hardcode_into_libs=yes
9243 ;;
9244
9245uts4*)
9246 version_type=linux
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 ;;
9251
9252*)
9253 dynamic_linker=no
9254 ;;
9255esac
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9257$as_echo "$dynamic_linker" >&6; }
9258test "$dynamic_linker" = no && can_build_shared=no
9259
9260variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9261if test "$GCC" = yes; then
9262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9263fi
9264
9265if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9266 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9267fi
9268if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9269 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9270fi
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9359$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9360hardcode_action=
9361if test -n "$hardcode_libdir_flag_spec" ||
9362 test -n "$runpath_var" ||
9363 test "X$hardcode_automatic" = "Xyes" ; then
9364
9365 # We can hardcode non-existent directories.
9366 if test "$hardcode_direct" != no &&
9367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9368 # have to relink, otherwise we might link with an installed library
9369 # when we should be linking with a yet-to-be-installed one
9370 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9371 test "$hardcode_minus_L" != no; then
9372 # Linking always hardcodes the temporary library directory.
9373 hardcode_action=relink
9374 else
9375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9376 hardcode_action=immediate
9377 fi
9378else
9379 # We cannot hardcode anything, or else we can only hardcode existing
9380 # directories.
9381 hardcode_action=unsupported
9382fi
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9384$as_echo "$hardcode_action" >&6; }
9385
9386if test "$hardcode_action" = relink ||
9387 test "$inherit_rpath" = yes; then
9388 # Fast installation is not supported
9389 enable_fast_install=no
9390elif test "$shlibpath_overrides_runpath" = yes ||
9391 test "$enable_shared" = no; then
9392 # Fast installation is not necessary
9393 enable_fast_install=needless
9394fi
9395
9396
9397
9398
9399
9400
9401 if test "x$enable_dlopen" != xyes; then
9402 enable_dlopen=unknown
9403 enable_dlopen_self=unknown
9404 enable_dlopen_self_static=unknown
9405else
9406 lt_cv_dlopen=no
9407 lt_cv_dlopen_libs=
9408
9409 case $host_os in
9410 beos*)
9411 lt_cv_dlopen="load_add_on"
9412 lt_cv_dlopen_libs=
9413 lt_cv_dlopen_self=yes
9414 ;;
9415
9416 mingw* | pw32* | cegcc*)
9417 lt_cv_dlopen="LoadLibrary"
9418 lt_cv_dlopen_libs=
9419 ;;
9420
9421 cygwin*)
9422 lt_cv_dlopen="dlopen"
9423 lt_cv_dlopen_libs=
9424 ;;
9425
9426 darwin*)
9427 # if libdl is installed we need to link against it
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9429$as_echo_n "checking for dlopen in -ldl... " >&6; }
9430if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432else
9433 ac_check_lib_save_LIBS=$LIBS
9434LIBS="-ldl $LIBS"
9435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h. */
9437
9438/* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
9441#ifdef __cplusplus
9442extern "C"
9443#endif
9444char dlopen ();
9445int
9446main ()
9447{
9448return dlopen ();
9449 ;
9450 return 0;
9451}
9452_ACEOF
9453if ac_fn_c_try_link "$LINENO"; then :
9454 ac_cv_lib_dl_dlopen=yes
9455else
9456 ac_cv_lib_dl_dlopen=no
9457fi
9458rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460LIBS=$ac_check_lib_save_LIBS
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9463$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9464if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9466else
9467
9468 lt_cv_dlopen="dyld"
9469 lt_cv_dlopen_libs=
9470 lt_cv_dlopen_self=yes
9471
9472fi
9473
9474 ;;
9475
9476 *)
9477 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9478if test "x$ac_cv_func_shl_load" = x""yes; then :
9479 lt_cv_dlopen="shl_load"
9480else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9482$as_echo_n "checking for shl_load in -ldld... " >&6; }
9483if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485else
9486 ac_check_lib_save_LIBS=$LIBS
9487LIBS="-ldld $LIBS"
9488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h. */
9490
9491/* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9494#ifdef __cplusplus
9495extern "C"
9496#endif
9497char shl_load ();
9498int
9499main ()
9500{
9501return shl_load ();
9502 ;
9503 return 0;
9504}
9505_ACEOF
9506if ac_fn_c_try_link "$LINENO"; then :
9507 ac_cv_lib_dld_shl_load=yes
9508else
9509 ac_cv_lib_dld_shl_load=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513LIBS=$ac_check_lib_save_LIBS
9514fi
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9516$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9517if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9518 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9519else
9520 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9521if test "x$ac_cv_func_dlopen" = x""yes; then :
9522 lt_cv_dlopen="dlopen"
9523else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9525$as_echo_n "checking for dlopen in -ldl... " >&6; }
9526if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528else
9529 ac_check_lib_save_LIBS=$LIBS
9530LIBS="-ldl $LIBS"
9531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532/* end confdefs.h. */
9533
9534/* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537#ifdef __cplusplus
9538extern "C"
9539#endif
9540char dlopen ();
9541int
9542main ()
9543{
9544return dlopen ();
9545 ;
9546 return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"; then :
9550 ac_cv_lib_dl_dlopen=yes
9551else
9552 ac_cv_lib_dl_dlopen=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556LIBS=$ac_check_lib_save_LIBS
9557fi
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9559$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9560if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9562else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9564$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9565if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567else
9568 ac_check_lib_save_LIBS=$LIBS
9569LIBS="-lsvld $LIBS"
9570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h. */
9572
9573/* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579char dlopen ();
9580int
9581main ()
9582{
9583return dlopen ();
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589 ac_cv_lib_svld_dlopen=yes
9590else
9591 ac_cv_lib_svld_dlopen=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595LIBS=$ac_check_lib_save_LIBS
9596fi
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9598$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9599if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9601else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9603$as_echo_n "checking for dld_link in -ldld... " >&6; }
9604if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606else
9607 ac_check_lib_save_LIBS=$LIBS
9608LIBS="-ldld $LIBS"
9609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h. */
9611
9612/* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615#ifdef __cplusplus
9616extern "C"
9617#endif
9618char dld_link ();
9619int
9620main ()
9621{
9622return dld_link ();
9623 ;
9624 return 0;
9625}
9626_ACEOF
9627if ac_fn_c_try_link "$LINENO"; then :
9628 ac_cv_lib_dld_dld_link=yes
9629else
9630 ac_cv_lib_dld_dld_link=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634LIBS=$ac_check_lib_save_LIBS
9635fi
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9637$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9638if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9640fi
9641
9642
9643fi
9644
9645
9646fi
9647
9648
9649fi
9650
9651
9652fi
9653
9654
9655fi
9656
9657 ;;
9658 esac
9659
9660 if test "x$lt_cv_dlopen" != xno; then
9661 enable_dlopen=yes
9662 else
9663 enable_dlopen=no
9664 fi
9665
9666 case $lt_cv_dlopen in
9667 dlopen)
9668 save_CPPFLAGS="$CPPFLAGS"
9669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9670
9671 save_LDFLAGS="$LDFLAGS"
9672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9673
9674 save_LIBS="$LIBS"
9675 LIBS="$lt_cv_dlopen_libs $LIBS"
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9678$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9679if test "${lt_cv_dlopen_self+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681else
9682 if test "$cross_compiling" = yes; then :
9683 lt_cv_dlopen_self=cross
9684else
9685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9686 lt_status=$lt_dlunknown
9687 cat > conftest.$ac_ext <<_LT_EOF
12833ad8 9688#line 9688 "configure"
9c60689e
DWT
9689#include "confdefs.h"
9690
9691#if HAVE_DLFCN_H
9692#include <dlfcn.h>
9693#endif
9694
9695#include <stdio.h>
9696
9697#ifdef RTLD_GLOBAL
9698# define LT_DLGLOBAL RTLD_GLOBAL
9699#else
9700# ifdef DL_GLOBAL
9701# define LT_DLGLOBAL DL_GLOBAL
9702# else
9703# define LT_DLGLOBAL 0
9704# endif
9705#endif
9706
9707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9708 find out it does not work in some platform. */
9709#ifndef LT_DLLAZY_OR_NOW
9710# ifdef RTLD_LAZY
9711# define LT_DLLAZY_OR_NOW RTLD_LAZY
9712# else
9713# ifdef DL_LAZY
9714# define LT_DLLAZY_OR_NOW DL_LAZY
9715# else
9716# ifdef RTLD_NOW
9717# define LT_DLLAZY_OR_NOW RTLD_NOW
9718# else
9719# ifdef DL_NOW
9720# define LT_DLLAZY_OR_NOW DL_NOW
9721# else
9722# define LT_DLLAZY_OR_NOW 0
9723# endif
9724# endif
9725# endif
9726# endif
9727#endif
9728
9729void fnord() { int i=42;}
9730int main ()
9731{
9732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9733 int status = $lt_dlunknown;
9734
9735 if (self)
9736 {
9737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9739 /* dlclose (self); */
9740 }
9741 else
9742 puts (dlerror ());
9743
9744 return status;
9745}
9746_LT_EOF
9747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9748 (eval $ac_link) 2>&5
9749 ac_status=$?
9750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9751 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9752 (./conftest; exit; ) >&5 2>/dev/null
9753 lt_status=$?
9754 case x$lt_status in
9755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9757 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9758 esac
9759 else :
9760 # compilation failed
9761 lt_cv_dlopen_self=no
9762 fi
9763fi
9764rm -fr conftest*
9765
9766
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9769$as_echo "$lt_cv_dlopen_self" >&6; }
9770
9771 if test "x$lt_cv_dlopen_self" = xyes; then
9772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9774$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9775if test "${lt_cv_dlopen_self_static+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9777else
9778 if test "$cross_compiling" = yes; then :
9779 lt_cv_dlopen_self_static=cross
9780else
9781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9782 lt_status=$lt_dlunknown
9783 cat > conftest.$ac_ext <<_LT_EOF
12833ad8 9784#line 9784 "configure"
9c60689e
DWT
9785#include "confdefs.h"
9786
9787#if HAVE_DLFCN_H
9788#include <dlfcn.h>
9789#endif
9790
9791#include <stdio.h>
9792
9793#ifdef RTLD_GLOBAL
9794# define LT_DLGLOBAL RTLD_GLOBAL
9795#else
9796# ifdef DL_GLOBAL
9797# define LT_DLGLOBAL DL_GLOBAL
9798# else
9799# define LT_DLGLOBAL 0
9800# endif
9801#endif
9802
9803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9804 find out it does not work in some platform. */
9805#ifndef LT_DLLAZY_OR_NOW
9806# ifdef RTLD_LAZY
9807# define LT_DLLAZY_OR_NOW RTLD_LAZY
9808# else
9809# ifdef DL_LAZY
9810# define LT_DLLAZY_OR_NOW DL_LAZY
9811# else
9812# ifdef RTLD_NOW
9813# define LT_DLLAZY_OR_NOW RTLD_NOW
9814# else
9815# ifdef DL_NOW
9816# define LT_DLLAZY_OR_NOW DL_NOW
9817# else
9818# define LT_DLLAZY_OR_NOW 0
9819# endif
9820# endif
9821# endif
9822# endif
9823#endif
9824
9825void fnord() { int i=42;}
9826int main ()
9827{
9828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9829 int status = $lt_dlunknown;
9830
9831 if (self)
9832 {
9833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9835 /* dlclose (self); */
9836 }
9837 else
9838 puts (dlerror ());
9839
9840 return status;
9841}
9842_LT_EOF
9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9844 (eval $ac_link) 2>&5
9845 ac_status=$?
9846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9848 (./conftest; exit; ) >&5 2>/dev/null
9849 lt_status=$?
9850 case x$lt_status in
9851 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9852 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9853 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9854 esac
9855 else :
9856 # compilation failed
9857 lt_cv_dlopen_self_static=no
9858 fi
9859fi
9860rm -fr conftest*
9861
9862
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9865$as_echo "$lt_cv_dlopen_self_static" >&6; }
9866 fi
9867
9868 CPPFLAGS="$save_CPPFLAGS"
9869 LDFLAGS="$save_LDFLAGS"
9870 LIBS="$save_LIBS"
9871 ;;
9872 esac
9873
9874 case $lt_cv_dlopen_self in
9875 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9876 *) enable_dlopen_self=unknown ;;
9877 esac
9878
9879 case $lt_cv_dlopen_self_static in
9880 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9881 *) enable_dlopen_self_static=unknown ;;
9882 esac
9883fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901striplib=
9902old_striplib=
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9904$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9905if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9906 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9907 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9909$as_echo "yes" >&6; }
9910else
9911# FIXME - insert some real tests, host_os isn't really good enough
9912 case $host_os in
9913 darwin*)
9914 if test -n "$STRIP" ; then
9915 striplib="$STRIP -x"
9916 old_striplib="$STRIP -S"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9918$as_echo "yes" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921$as_echo "no" >&6; }
9922 fi
9923 ;;
9924 *)
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927 ;;
9928 esac
9929fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942 # Report which library types will actually be built
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9944$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9946$as_echo "$can_build_shared" >&6; }
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9949$as_echo_n "checking whether to build shared libraries... " >&6; }
9950 test "$can_build_shared" = "no" && enable_shared=no
9951
9952 # On AIX, shared libraries and static libraries use the same namespace, and
9953 # are all built from PIC.
9954 case $host_os in
9955 aix3*)
9956 test "$enable_shared" = yes && enable_static=no
9957 if test -n "$RANLIB"; then
9958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9959 postinstall_cmds='$RANLIB $lib'
9960 fi
9961 ;;
9962
9963 aix[4-9]*)
9964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9965 test "$enable_shared" = yes && enable_static=no
9966 fi
9967 ;;
9968 esac
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9970$as_echo "$enable_shared" >&6; }
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9973$as_echo_n "checking whether to build static libraries... " >&6; }
9974 # Make sure either enable_shared or enable_static is yes.
9975 test "$enable_shared" = yes || enable_static=yes
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9977$as_echo "$enable_static" >&6; }
9978
9979
9980
9981
9982fi
9983ac_ext=c
9984ac_cpp='$CPP $CPPFLAGS'
9985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9987ac_compiler_gnu=$ac_cv_c_compiler_gnu
9988
9989CC="$lt_save_CC"
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003 ac_config_commands="$ac_config_commands libtool"
10004
10005
10006
10007
10008# Only expand once:
10009
10010
3fd51f51
DWT
10011
10012
12833ad8
JF
10013
10014
10015
10016
3fd51f51
DWT
10017if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10018 if test -n "$ac_tool_prefix"; then
10019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10020set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022$as_echo_n "checking for $ac_word... " >&6; }
10023if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025else
10026 case $PKG_CONFIG in
10027 [\\/]* | ?:[\\/]*)
10028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10029 ;;
10030 *)
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032for as_dir in $PATH
10033do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042done
10043 done
10044IFS=$as_save_IFS
10045
10046 ;;
10047esac
10048fi
10049PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10050if test -n "$PKG_CONFIG"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10052$as_echo "$PKG_CONFIG" >&6; }
10053else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
10056fi
10057
10058
10059fi
10060if test -z "$ac_cv_path_PKG_CONFIG"; then
10061 ac_pt_PKG_CONFIG=$PKG_CONFIG
10062 # Extract the first word of "pkg-config", so it can be a program name with args.
10063set dummy pkg-config; ac_word=$2
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065$as_echo_n "checking for $ac_word... " >&6; }
10066if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10068else
10069 case $ac_pt_PKG_CONFIG in
10070 [\\/]* | ?:[\\/]*)
10071 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10072 ;;
10073 *)
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085done
10086 done
10087IFS=$as_save_IFS
10088
10089 ;;
10090esac
10091fi
10092ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10093if test -n "$ac_pt_PKG_CONFIG"; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10095$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10096else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098$as_echo "no" >&6; }
10099fi
10100
10101 if test "x$ac_pt_PKG_CONFIG" = x; then
10102 PKG_CONFIG=""
10103 else
10104 case $cross_compiling:$ac_tool_warned in
10105yes:)
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10108ac_tool_warned=yes ;;
10109esac
10110 PKG_CONFIG=$ac_pt_PKG_CONFIG
10111 fi
10112else
10113 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10114fi
10115
10116fi
10117if test -n "$PKG_CONFIG"; then
10118 _pkg_min_version=0.22
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10120$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10121 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123$as_echo "yes" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126$as_echo "no" >&6; }
10127 PKG_CONFIG=""
10128 fi
632b71ea
DWT
10129fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10131$as_echo_n "checking for GNU make... " >&6; }
10132if test "${_cv_gnu_make_command+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10134else
10135 _cv_gnu_make_command='' ;
10136 for a in "$MAKE" make gmake gnumake ; do
10137 if test -z "$a" ; then continue ; fi ;
10138 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10139 _cv_gnu_make_command=$a ;
10140 break;
10141 fi
10142 done ;
10143
10144fi
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10146$as_echo "$_cv_gnu_make_command" >&6; } ;
10147 if test "x$_cv_gnu_make_command" != "x" ; then
10148 ifGNUmake='' ;
10149 else
10150 ifGNUmake='#' ;
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10152$as_echo "\"Not found\"" >&6; };
10153 fi
10154
10155
790e5246
DWT
10156GMAKE=$_cv_gnu_make_command
10157
12833ad8 10158
790e5246 10159if test "x$GMAKE" = x; then :
12833ad8 10160 as_fn_error $? "You need GNU make" "$LINENO" 5
3fd51f51 10161fi
e9c9a47c
DWT
10162for ac_prog in bash
10163do
10164 # Extract the first word of "$ac_prog", so it can be a program name with args.
10165set dummy $ac_prog; ac_word=$2
9c60689e
DWT
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 10168if test "${ac_cv_path__BASH+set}" = set; then :
9c60689e
DWT
10169 $as_echo_n "(cached) " >&6
10170else
e9c9a47c
DWT
10171 case $_BASH in
10172 [\\/]* | ?:[\\/]*)
10173 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10174 ;;
10175 *)
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10183 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188 done
10189IFS=$as_save_IFS
10190
e9c9a47c
DWT
10191 ;;
10192esac
9c60689e 10193fi
e9c9a47c
DWT
10194_BASH=$ac_cv_path__BASH
10195if test -n "$_BASH"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10197$as_echo "$_BASH" >&6; }
9c60689e
DWT
10198else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200$as_echo "no" >&6; }
10201fi
10202
10203
e9c9a47c
DWT
10204 test -n "$_BASH" && break
10205done
10206
10207if test "x$_BASH" = x; then :
12833ad8 10208 as_fn_error $? "You need GNU bash" "$LINENO" 5
9c60689e 10209fi
e9c9a47c 10210for ac_prog in time
9c60689e
DWT
10211do
10212 # Extract the first word of "$ac_prog", so it can be a program name with args.
10213set dummy $ac_prog; ac_word=$2
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 10216if test "${ac_cv_path_TIME+set}" = set; then :
9c60689e
DWT
10217 $as_echo_n "(cached) " >&6
10218else
e9c9a47c
DWT
10219 case $TIME in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10222 ;;
10223 *)
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10231 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235done
10236 done
10237IFS=$as_save_IFS
10238
e9c9a47c
DWT
10239 ;;
10240esac
9c60689e 10241fi
e9c9a47c
DWT
10242TIME=$ac_cv_path_TIME
10243if test -n "$TIME"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10245$as_echo "$TIME" >&6; }
9c60689e
DWT
10246else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }
10249fi
10250
10251
e9c9a47c 10252 test -n "$TIME" && break
9c60689e
DWT
10253done
10254
e9c9a47c
DWT
10255
10256
10257
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
10259$as_echo_n "checking for bison >= 2.3... " >&6; }
10260 if test -z "$BISON"; then
10261 ac_path_BISON_found=false
10262 # Loop through the user's path and test for each of PROGNAME-LIST
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_prog in bison; do
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
10271 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
10272as_awk_strverscmp='
10273 # Use only awk features that work with 7th edition Unix awk (1978).
10274 # My, what an old awk you have, Mr. Solaris!
10275 END {
10276 while (length(v1) && length(v2)) {
10277 # Set d1 to be the next thing to compare from v1, and likewise for d2.
10278 # Normally this is a single character, but if v1 and v2 contain digits,
10279 # compare them as integers and fractions as strverscmp does.
10280 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
10281 # Split v1 and v2 into their leading digit string components d1 and d2,
10282 # and advance v1 and v2 past the leading digit strings.
10283 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
10284 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
10285 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
10286 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
10287 if (d1 ~ /^0/) {
10288 if (d2 ~ /^0/) {
10289 # Compare two fractions.
10290 while (d1 ~ /^0/ && d2 ~ /^0/) {
10291 d1 = substr(d1, 2); len1--
10292 d2 = substr(d2, 2); len2--
10293 }
10294 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
10295 # The two components differ in length, and the common prefix
10296 # contains only leading zeros. Consider the longer to be less.
10297 d1 = -len1
10298 d2 = -len2
10299 } else {
10300 # Otherwise, compare as strings.
10301 d1 = "x" d1
10302 d2 = "x" d2
10303 }
10304 } else {
10305 # A fraction is less than an integer.
10306 exit 1
10307 }
10308 } else {
10309 if (d2 ~ /^0/) {
10310 # An integer is greater than a fraction.
10311 exit 2
10312 } else {
10313 # Compare two integers.
10314 d1 += 0
10315 d2 += 0
10316 }
10317 }
10318 } else {
10319 # The normal case, without worrying about digits.
10320 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
10321 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
10322 }
10323 if (d1 < d2) exit 1
10324 if (d1 > d2) exit 2
10325 }
10326 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
10327 # which mishandles some comparisons of empty strings to integers.
10328 if (length(v2)) exit 1
10329 if (length(v1)) exit 2
10330 }
10331'
10332as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10333as_arg_v2=2.3
10334awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10335case $? in #(
10336 1) :
10337 ;; #(
10338 0) :
10339 ac_cv_path_BISON=$ac_path_BISON
10340 ;; #(
10341 2) :
10342 ac_cv_path_BISON=$ac_path_BISON
10343 ;; #(
10344 *) :
10345 ;;
9c60689e 10346esac
e9c9a47c
DWT
10347
10348 $ac_path_BISON_found && break 3
10349 done
10350 done
10351 done
10352IFS=$as_save_IFS
10353 if test -z "$ac_cv_path_BISON"; then
b5bd4353
DWT
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355$as_echo "no" >&6; }
12833ad8 10356 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
9c60689e 10357
9c60689e 10358 fi
e9c9a47c
DWT
10359else
10360 ac_cv_path_BISON=$BISON
9c60689e 10361fi
9c60689e 10362
e9c9a47c 10363 BISON=$ac_cv_path_BISON
9c60689e 10364
e9c9a47c
DWT
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10366$as_echo "$BISON" >&6; }
9c60689e 10367
9c60689e 10368
9c60689e 10369
e9c9a47c
DWT
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
10371$as_echo_n "checking for flex >= 2.5.33... " >&6; }
10372 if test -z "$FLEX"; then
10373 ac_path_FLEX_found=false
10374 # Loop through the user's path and test for each of PROGNAME-LIST
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
e9c9a47c 10380 for ac_prog in flex; do
9c60689e 10381 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
10382 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
10383 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
10384as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10385as_arg_v2=2.5.33
10386awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10387case $? in #(
10388 1) :
10389 ;; #(
10390 0) :
10391 ac_cv_path_FLEX=$ac_path_FLEX
10392 ;; #(
10393 2) :
10394 ac_cv_path_FLEX=$ac_path_FLEX
10395 ;; #(
10396 *) :
10397 ;;
10398esac
10399
10400 $ac_path_FLEX_found && break 3
10401 done
10402 done
9c60689e
DWT
10403 done
10404IFS=$as_save_IFS
e9c9a47c 10405 if test -z "$ac_cv_path_FLEX"; then
b5bd4353
DWT
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407$as_echo "no" >&6; }
12833ad8 10408 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
9c60689e 10409
e9c9a47c 10410 fi
9c60689e 10411else
e9c9a47c 10412 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
10413fi
10414
e9c9a47c 10415 FLEX=$ac_cv_path_FLEX
9c60689e 10416
e9c9a47c
DWT
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10418$as_echo "$FLEX" >&6; }
10419
10420
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
10423$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
10424 if test -z "$GPERF"; then
10425 ac_path_GPERF_found=false
10426 # Loop through the user's path and test for each of PROGNAME-LIST
10427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
e9c9a47c 10432 for ac_prog in gperf; do
9c60689e 10433 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
10434 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
10435 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
10436as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10437as_arg_v2=3.0.3
10438awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10439case $? in #(
10440 1) :
10441 ;; #(
10442 0) :
10443 ac_cv_path_GPERF=$ac_path_GPERF
10444 ;; #(
10445 2) :
10446 ac_cv_path_GPERF=$ac_path_GPERF
10447 ;; #(
10448 *) :
10449 ;;
10450esac
10451
10452 $ac_path_GPERF_found && break 3
10453 done
10454 done
9c60689e
DWT
10455 done
10456IFS=$as_save_IFS
e9c9a47c 10457 if test -z "$ac_cv_path_GPERF"; then
b5bd4353
DWT
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
12833ad8 10460 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
9c60689e 10461
e9c9a47c 10462 fi
9c60689e 10463else
e9c9a47c 10464 ac_cv_path_GPERF=$GPERF
9c60689e
DWT
10465fi
10466
e9c9a47c 10467 GPERF=$ac_cv_path_GPERF
9c60689e 10468
e9c9a47c
DWT
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10470$as_echo "$GPERF" >&6; }
3fd51f51 10471
e9c9a47c
DWT
10472# Find a good install program. We prefer a C program (faster),
10473# so one script is as good as another. But avoid the broken or
10474# incompatible versions:
10475# SysV /etc/install, /usr/sbin/install
10476# SunOS /usr/etc/install
10477# IRIX /sbin/install
10478# AIX /bin/install
10479# AmigaOS /C/install, which installs bootblocks on floppy discs
10480# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10481# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10482# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10483# OS/2's system install, which has a completely different semantic
10484# ./install, which can be erroneously created by make from ./install.sh.
10485# Reject install programs that cannot install multiple files.
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10487$as_echo_n "checking for a BSD-compatible install... " >&6; }
10488if test -z "$INSTALL"; then
10489if test "${ac_cv_path_install+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491else
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493for as_dir in $PATH
10494do
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 # Account for people who put trailing slashes in PATH elements.
10498case $as_dir/ in #((
10499 ./ | .// | /[cC]/* | \
10500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10502 /usr/ucb/* ) ;;
10503 *)
10504 # OSF1 and SCO ODT 3.0 have their own names for install.
10505 # Don't use installbsd from OSF since it installs stuff as root
10506 # by default.
10507 for ac_prog in ginstall scoinst install; do
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10510 if test $ac_prog = install &&
10511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10512 # AIX install. It has an incompatible calling convention.
10513 :
10514 elif test $ac_prog = install &&
10515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10516 # program-specific install script used by HP pwplus--don't use.
10517 :
10518 else
10519 rm -rf conftest.one conftest.two conftest.dir
10520 echo one > conftest.one
10521 echo two > conftest.two
10522 mkdir conftest.dir
10523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10524 test -s conftest.one && test -s conftest.two &&
10525 test -s conftest.dir/conftest.one &&
10526 test -s conftest.dir/conftest.two
10527 then
10528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10529 break 3
10530 fi
10531 fi
10532 fi
10533 done
10534 done
10535 ;;
10536esac
10537
10538 done
10539IFS=$as_save_IFS
10540
10541rm -rf conftest.one conftest.two conftest.dir
10542
10543fi
10544 if test "${ac_cv_path_install+set}" = set; then
10545 INSTALL=$ac_cv_path_install
10546 else
10547 # As a last resort, use the slow shell script. Don't cache a
10548 # value for INSTALL within a source directory, because that will
10549 # break other packages using the cache if that directory is
10550 # removed, or if the value is a relative name.
10551 INSTALL=$ac_install_sh
10552 fi
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10555$as_echo "$INSTALL" >&6; }
10556
10557# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10558# It thinks the first close brace ends the variable substitution.
10559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10560
10561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10562
10563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10564
b5bd4353
DWT
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
10566$as_echo_n "checking for GNU tar >=1.19... " >&6; }
e9c9a47c
DWT
10567if test -z "$GNUTAR"; then
10568 ac_path_GNUTAR_found=false
10569 # Loop through the user's path and test for each of PROGNAME-LIST
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_prog in tar gtar gnutar; do
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
10578 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
10579
10580 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
10581
b5bd4353
DWT
10582 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
10583as_arg_v2=1.19
10584awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10585case $? in #(
10586 1) :
10587 ;; #(
10588 0) :
10589
10590 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10591 ;; #(
10592 2) :
10593
10594 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10595 ;; #(
10596 *) :
10597 ;;
10598esac
e9c9a47c
DWT
10599
10600fi
10601
10602 $ac_path_GNUTAR_found && break 3
10603 done
10604 done
10605 done
10606IFS=$as_save_IFS
10607 if test -z "$ac_cv_path_GNUTAR"; then
10608 :
10609 fi
10610else
10611 ac_cv_path_GNUTAR=$GNUTAR
10612fi
10613
10614if test "x$ac_cv_path_GNUTAR" != x; then :
10615
10616 GNUTAR=$ac_cv_path_GNUTAR
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
10619$as_echo "$GNUTAR" >&6; }
10620
10621else
10622
10623 GNUTAR=:
10624
b5bd4353
DWT
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626$as_echo "no" >&6; }
e9c9a47c
DWT
10627
10628fi
b65019fe
DWT
10629for ac_prog in svn
10630do
10631 # Extract the first word of "$ac_prog", so it can be a program name with args.
10632set dummy $ac_prog; ac_word=$2
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
10635if test "${ac_cv_prog_SVN+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637else
10638 if test -n "$SVN"; then
10639 ac_cv_prog_SVN="$SVN" # Let the user override the test.
10640else
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_SVN="$ac_prog"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10651 fi
10652done
10653 done
10654IFS=$as_save_IFS
10655
10656fi
10657fi
10658SVN=$ac_cv_prog_SVN
10659if test -n "$SVN"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
10661$as_echo "$SVN" >&6; }
10662else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
10665fi
10666
10667
10668 test -n "$SVN" && break
10669done
10670
10671for ac_prog in svnversion
10672do
10673 # Extract the first word of "$ac_prog", so it can be a program name with args.
10674set dummy $ac_prog; ac_word=$2
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
10677if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10679else
10680 if test -n "$SVNVERSION"; then
10681 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
10682else
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10690 ac_cv_prog_SVNVERSION="$ac_prog"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694done
10695 done
10696IFS=$as_save_IFS
10697
10698fi
10699fi
10700SVNVERSION=$ac_cv_prog_SVNVERSION
10701if test -n "$SVNVERSION"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
10703$as_echo "$SVNVERSION" >&6; }
10704else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
10707fi
10708
10709
10710 test -n "$SVNVERSION" && break
10711done
10712
e9c9a47c
DWT
10713ac_ext=cpp
10714ac_cpp='$CXXCPP $CPPFLAGS'
10715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10718if test -z "$CXX"; then
10719 if test -n "$CCC"; then
10720 CXX=$CCC
10721 else
10722 if test -n "$ac_tool_prefix"; then
10723 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10724 do
10725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
10729if test "${ac_cv_prog_CXX+set}" = set; then :
10730 $as_echo_n "(cached) " >&6
10731else
10732 if test -n "$CXX"; then
10733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10734else
10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10745 fi
10746done
10747 done
10748IFS=$as_save_IFS
10749
10750fi
10751fi
10752CXX=$ac_cv_prog_CXX
10753if test -n "$CXX"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10755$as_echo "$CXX" >&6; }
10756else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
10759fi
10760
10761
10762 test -n "$CXX" && break
10763 done
10764fi
10765if test -z "$CXX"; then
10766 ac_ct_CXX=$CXX
10767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10768do
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770set dummy $ac_prog; ac_word=$2
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772$as_echo_n "checking for $ac_word... " >&6; }
10773if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10775else
10776 if test -n "$ac_ct_CXX"; then
10777 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_prog_ac_ct_CXX="$ac_prog"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790done
10791 done
10792IFS=$as_save_IFS
10793
10794fi
10795fi
10796ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10797if test -n "$ac_ct_CXX"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10799$as_echo "$ac_ct_CXX" >&6; }
10800else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802$as_echo "no" >&6; }
10803fi
10804
10805
10806 test -n "$ac_ct_CXX" && break
10807done
10808
10809 if test "x$ac_ct_CXX" = x; then
10810 CXX="g++"
10811 else
10812 case $cross_compiling:$ac_tool_warned in
10813yes:)
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10816ac_tool_warned=yes ;;
10817esac
10818 CXX=$ac_ct_CXX
10819 fi
10820fi
10821
10822 fi
10823fi
10824# Provide some information about the compiler.
10825$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10826set X $ac_compile
10827ac_compiler=$2
10828for ac_option in --version -v -V -qversion; do
10829 { { ac_try="$ac_compiler $ac_option >&5"
10830case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833esac
47aaa820
DWT
10834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10835$as_echo "$ac_try_echo"; } >&5
10836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10837 ac_status=$?
10838 if test -s conftest.err; then
10839 sed '10a\
10840... rest of stderr output deleted ...
10841 10q' conftest.err >conftest.er1
10842 cat conftest.er1 >&5
3530897b 10843 fi
47aaa820
DWT
10844 rm -f conftest.er1 conftest.err
10845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846 test $ac_status = 0; }
3530897b 10847done
3530897b 10848
47aaa820
DWT
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10850$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10851if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853else
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h. */
10856
10857int
10858main ()
10859{
10860#ifndef __GNUC__
10861 choke me
10862#endif
10863
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868if ac_fn_cxx_try_compile "$LINENO"; then :
10869 ac_compiler_gnu=yes
10870else
10871 ac_compiler_gnu=no
3530897b 10872fi
47aaa820
DWT
10873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10875
3530897b 10876fi
47aaa820
DWT
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10878$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10879if test $ac_compiler_gnu = yes; then
10880 GXX=yes
3530897b 10881else
47aaa820 10882 GXX=
3530897b 10883fi
47aaa820
DWT
10884ac_test_CXXFLAGS=${CXXFLAGS+set}
10885ac_save_CXXFLAGS=$CXXFLAGS
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10887$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10888if test "${ac_cv_prog_cxx_g+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890else
10891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10892 ac_cxx_werror_flag=yes
10893 ac_cv_prog_cxx_g=no
10894 CXXFLAGS="-g"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h. */
3530897b 10897
47aaa820
DWT
10898int
10899main ()
10900{
3530897b 10901
47aaa820
DWT
10902 ;
10903 return 0;
10904}
10905_ACEOF
10906if ac_fn_cxx_try_compile "$LINENO"; then :
10907 ac_cv_prog_cxx_g=yes
10908else
10909 CXXFLAGS=""
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h. */
9c60689e 10912
47aaa820
DWT
10913int
10914main ()
10915{
9c60689e 10916
47aaa820
DWT
10917 ;
10918 return 0;
10919}
10920_ACEOF
10921if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e 10922
47aaa820
DWT
10923else
10924 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10925 CXXFLAGS="-g"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h. */
9c60689e 10928
47aaa820
DWT
10929int
10930main ()
10931{
9c60689e 10932
47aaa820
DWT
10933 ;
10934 return 0;
10935}
10936_ACEOF
10937if ac_fn_cxx_try_compile "$LINENO"; then :
10938 ac_cv_prog_cxx_g=yes
10939fi
10940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941fi
10942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943fi
10944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10946fi
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10948$as_echo "$ac_cv_prog_cxx_g" >&6; }
10949if test "$ac_test_CXXFLAGS" = set; then
10950 CXXFLAGS=$ac_save_CXXFLAGS
10951elif test $ac_cv_prog_cxx_g = yes; then
10952 if test "$GXX" = yes; then
10953 CXXFLAGS="-g -O2"
10954 else
10955 CXXFLAGS="-g"
10956 fi
10957else
10958 if test "$GXX" = yes; then
10959 CXXFLAGS="-O2"
10960 else
10961 CXXFLAGS=
10962 fi
10963fi
10964ac_ext=c
10965ac_cpp='$CPP $CPPFLAGS'
10966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10969
e9c9a47c
DWT
10970
10971ac_ext=cpp
47aaa820
DWT
10972ac_cpp='$CXXCPP $CPPFLAGS'
10973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
e9c9a47c
DWT
10976if test -z "$CXX"; then
10977 if test -n "$CCC"; then
10978 CXX=$CCC
10979 else
10980 if test -n "$ac_tool_prefix"; then
10981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10982 do
10983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
10987if test "${ac_cv_prog_CXX+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989else
10990 if test -n "$CXX"; then
10991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10992else
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
47aaa820 10995do
e9c9a47c
DWT
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005 done
11006IFS=$as_save_IFS
9c60689e 11007
9c60689e 11008fi
47aaa820 11009fi
e9c9a47c
DWT
11010CXX=$ac_cv_prog_CXX
11011if test -n "$CXX"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11013$as_echo "$CXX" >&6; }
11014else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
47aaa820 11017fi
9c60689e 11018
9c60689e 11019
e9c9a47c
DWT
11020 test -n "$CXX" && break
11021 done
47aaa820 11022fi
e9c9a47c
DWT
11023if test -z "$CXX"; then
11024 ac_ct_CXX=$CXX
11025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11026do
11027 # Extract the first word of "$ac_prog", so it can be a program name with args.
11028set dummy $ac_prog; ac_word=$2
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030$as_echo_n "checking for $ac_word... " >&6; }
11031if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
9c60689e 11033else
e9c9a47c
DWT
11034 if test -n "$ac_ct_CXX"; then
11035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11036else
11037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $PATH
47aaa820 11039do
e9c9a47c
DWT
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11044 ac_cv_prog_ac_ct_CXX="$ac_prog"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048done
11049 done
11050IFS=$as_save_IFS
9c60689e 11051
e9c9a47c
DWT
11052fi
11053fi
11054ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11055if test -n "$ac_ct_CXX"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11057$as_echo "$ac_ct_CXX" >&6; }
47aaa820 11058else
e9c9a47c
DWT
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
9c60689e 11061fi
9c60689e 11062
e9c9a47c
DWT
11063
11064 test -n "$ac_ct_CXX" && break
11065done
11066
11067 if test "x$ac_ct_CXX" = x; then
11068 CXX="g++"
11069 else
11070 case $cross_compiling:$ac_tool_warned in
11071yes:)
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11074ac_tool_warned=yes ;;
11075esac
11076 CXX=$ac_ct_CXX
11077 fi
9c60689e
DWT
11078fi
11079
e9c9a47c
DWT
11080 fi
11081fi
11082# Provide some information about the compiler.
11083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11084set X $ac_compile
11085ac_compiler=$2
11086for ac_option in --version -v -V -qversion; do
11087 { { ac_try="$ac_compiler $ac_option >&5"
11088case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091esac
11092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11093$as_echo "$ac_try_echo"; } >&5
11094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11095 ac_status=$?
11096 if test -s conftest.err; then
11097 sed '10a\
11098... rest of stderr output deleted ...
11099 10q' conftest.err >conftest.er1
11100 cat conftest.er1 >&5
11101 fi
11102 rm -f conftest.er1 conftest.err
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; }
9c60689e
DWT
11105done
11106
e9c9a47c
DWT
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11108$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11109if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
9c60689e 11111else
e9c9a47c
DWT
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113/* end confdefs.h. */
9c60689e 11114
e9c9a47c
DWT
11115int
11116main ()
11117{
11118#ifndef __GNUC__
11119 choke me
11120#endif
9c60689e 11121
e9c9a47c
DWT
11122 ;
11123 return 0;
11124}
11125_ACEOF
11126if ac_fn_cxx_try_compile "$LINENO"; then :
11127 ac_compiler_gnu=yes
47aaa820 11128else
e9c9a47c 11129 ac_compiler_gnu=no
47aaa820 11130fi
e9c9a47c
DWT
11131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11133
11134fi
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11136$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11137if test $ac_compiler_gnu = yes; then
11138 GXX=yes
11139else
11140 GXX=
11141fi
11142ac_test_CXXFLAGS=${CXXFLAGS+set}
11143ac_save_CXXFLAGS=$CXXFLAGS
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11145$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11146if test "${ac_cv_prog_cxx_g+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148else
11149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11150 ac_cxx_werror_flag=yes
11151 ac_cv_prog_cxx_g=no
11152 CXXFLAGS="-g"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h. */
11155
11156int
11157main ()
11158{
11159
11160 ;
11161 return 0;
11162}
11163_ACEOF
11164if ac_fn_cxx_try_compile "$LINENO"; then :
11165 ac_cv_prog_cxx_g=yes
11166else
11167 CXXFLAGS=""
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169/* end confdefs.h. */
11170
11171int
11172main ()
11173{
11174
11175 ;
11176 return 0;
11177}
11178_ACEOF
11179if ac_fn_cxx_try_compile "$LINENO"; then :
11180
11181else
11182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11183 CXXFLAGS="-g"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185/* end confdefs.h. */
11186
11187int
11188main ()
11189{
11190
11191 ;
11192 return 0;
11193}
11194_ACEOF
11195if ac_fn_cxx_try_compile "$LINENO"; then :
11196 ac_cv_prog_cxx_g=yes
11197fi
11198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199fi
11200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201fi
11202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11204fi
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11206$as_echo "$ac_cv_prog_cxx_g" >&6; }
11207if test "$ac_test_CXXFLAGS" = set; then
11208 CXXFLAGS=$ac_save_CXXFLAGS
11209elif test $ac_cv_prog_cxx_g = yes; then
11210 if test "$GXX" = yes; then
11211 CXXFLAGS="-g -O2"
11212 else
11213 CXXFLAGS="-g"
11214 fi
11215else
11216 if test "$GXX" = yes; then
11217 CXXFLAGS="-O2"
11218 else
11219 CXXFLAGS=
11220 fi
11221fi
11222ac_ext=c
11223ac_cpp='$CPP $CPPFLAGS'
11224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11226ac_compiler_gnu=$ac_cv_c_compiler_gnu
11227
11228if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11229 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11230 (test "X$CXX" != "Xg++"))) ; then
11231 ac_ext=cpp
11232ac_cpp='$CXXCPP $CPPFLAGS'
11233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11237$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11238if test -z "$CXXCPP"; then
11239 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11241else
11242 # Double quotes because CXXCPP needs to be expanded
11243 for CXXCPP in "$CXX -E" "/lib/cpp"
11244 do
11245 ac_preproc_ok=false
11246for ac_cxx_preproc_warn_flag in '' yes
11247do
11248 # Use a header file that comes with gcc, so configuring glibc
11249 # with a fresh cross-compiler works.
11250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 # <limits.h> exists even on freestanding compilers.
11252 # On the NeXT, cc -E runs the code through the compiler's parser,
11253 # not just through cpp. "Syntax error" is here to catch this case.
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255/* end confdefs.h. */
11256#ifdef __STDC__
11257# include <limits.h>
11258#else
11259# include <assert.h>
11260#endif
11261 Syntax error
11262_ACEOF
11263if ac_fn_cxx_try_cpp "$LINENO"; then :
11264
11265else
11266 # Broken: fails on valid input.
11267continue
11268fi
12833ad8 11269rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11270
11271 # OK, works on sane cases. Now check whether nonexistent headers
11272 # can be detected and how.
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274/* end confdefs.h. */
11275#include <ac_nonexistent.h>
11276_ACEOF
11277if ac_fn_cxx_try_cpp "$LINENO"; then :
11278 # Broken: success on invalid input.
11279continue
11280else
11281 # Passes both tests.
11282ac_preproc_ok=:
11283break
11284fi
12833ad8 11285rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11286
11287done
11288# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 11289rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
11290if $ac_preproc_ok; then :
11291 break
11292fi
11293
11294 done
11295 ac_cv_prog_CXXCPP=$CXXCPP
11296
11297fi
11298 CXXCPP=$ac_cv_prog_CXXCPP
11299else
11300 ac_cv_prog_CXXCPP=$CXXCPP
11301fi
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11303$as_echo "$CXXCPP" >&6; }
11304ac_preproc_ok=false
11305for ac_cxx_preproc_warn_flag in '' yes
11306do
11307 # Use a header file that comes with gcc, so configuring glibc
11308 # with a fresh cross-compiler works.
11309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 # <limits.h> exists even on freestanding compilers.
11311 # On the NeXT, cc -E runs the code through the compiler's parser,
11312 # not just through cpp. "Syntax error" is here to catch this case.
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314/* end confdefs.h. */
11315#ifdef __STDC__
11316# include <limits.h>
11317#else
11318# include <assert.h>
11319#endif
11320 Syntax error
11321_ACEOF
11322if ac_fn_cxx_try_cpp "$LINENO"; then :
11323
11324else
11325 # Broken: fails on valid input.
11326continue
11327fi
12833ad8 11328rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11329
11330 # OK, works on sane cases. Now check whether nonexistent headers
11331 # can be detected and how.
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333/* end confdefs.h. */
11334#include <ac_nonexistent.h>
11335_ACEOF
11336if ac_fn_cxx_try_cpp "$LINENO"; then :
11337 # Broken: success on invalid input.
11338continue
11339else
11340 # Passes both tests.
11341ac_preproc_ok=:
11342break
11343fi
12833ad8 11344rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
11345
11346done
11347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 11348rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
11349if $ac_preproc_ok; then :
11350
11351else
11352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11354_lt_caught_CXX_error=yes; }
11355fi
11356
11357ac_ext=c
11358ac_cpp='$CPP $CPPFLAGS'
11359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11361ac_compiler_gnu=$ac_cv_c_compiler_gnu
11362
11363else
11364 _lt_caught_CXX_error=yes
11365fi
11366
9c60689e 11367
9c60689e 11368
9c60689e 11369
9c60689e
DWT
11370ac_ext=cpp
11371ac_cpp='$CXXCPP $CPPFLAGS'
11372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 11375
47aaa820
DWT
11376archive_cmds_need_lc_CXX=no
11377allow_undefined_flag_CXX=
11378always_export_symbols_CXX=no
11379archive_expsym_cmds_CXX=
11380compiler_needs_object_CXX=no
11381export_dynamic_flag_spec_CXX=
11382hardcode_direct_CXX=no
11383hardcode_direct_absolute_CXX=no
11384hardcode_libdir_flag_spec_CXX=
11385hardcode_libdir_flag_spec_ld_CXX=
11386hardcode_libdir_separator_CXX=
11387hardcode_minus_L_CXX=no
11388hardcode_shlibpath_var_CXX=unsupported
11389hardcode_automatic_CXX=no
11390inherit_rpath_CXX=no
11391module_cmds_CXX=
11392module_expsym_cmds_CXX=
11393link_all_deplibs_CXX=unknown
11394old_archive_cmds_CXX=$old_archive_cmds
11395no_undefined_flag_CXX=
11396whole_archive_flag_spec_CXX=
11397enable_shared_with_static_runtimes_CXX=no
9c60689e 11398
47aaa820
DWT
11399# Source file extension for C++ test sources.
11400ac_ext=cpp
9c60689e 11401
47aaa820
DWT
11402# Object file extension for compiled C++ test sources.
11403objext=o
11404objext_CXX=$objext
9c60689e 11405
47aaa820
DWT
11406# No sense in running all these tests if we already determined that
11407# the CXX compiler isn't working. Some variables (like enable_shared)
11408# are currently assumed to apply to all compilers on this platform,
11409# and will be corrupted by setting them based on a non-working compiler.
11410if test "$_lt_caught_CXX_error" != yes; then
11411 # Code to be used in simple compile tests
11412 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11413
47aaa820
DWT
11414 # Code to be used in simple link tests
11415 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 11416
47aaa820 11417 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 11418
9c60689e 11419
9c60689e 11420
9c60689e 11421
9c60689e 11422
9c60689e 11423
47aaa820
DWT
11424# If no C compiler was specified, use CC.
11425LTCC=${LTCC-"$CC"}
9c60689e 11426
47aaa820
DWT
11427# If no C compiler flags were specified, use CFLAGS.
11428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11429
47aaa820
DWT
11430# Allow CC to be a program name with arguments.
11431compiler=$CC
9c60689e 11432
9c60689e 11433
47aaa820
DWT
11434 # save warnings/boilerplate of simple test code
11435 ac_outfile=conftest.$ac_objext
11436echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11437eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11438_lt_compiler_boilerplate=`cat conftest.err`
11439$RM conftest*
9c60689e 11440
47aaa820
DWT
11441 ac_outfile=conftest.$ac_objext
11442echo "$lt_simple_link_test_code" >conftest.$ac_ext
11443eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11444_lt_linker_boilerplate=`cat conftest.err`
11445$RM -r conftest*
9c60689e 11446
9c60689e 11447
47aaa820
DWT
11448 # Allow CC to be a program name with arguments.
11449 lt_save_CC=$CC
11450 lt_save_LD=$LD
11451 lt_save_GCC=$GCC
11452 GCC=$GXX
11453 lt_save_with_gnu_ld=$with_gnu_ld
11454 lt_save_path_LD=$lt_cv_path_LD
11455 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11456 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 11457 else
47aaa820 11458 $as_unset lt_cv_prog_gnu_ld
9c60689e 11459 fi
47aaa820
DWT
11460 if test -n "${lt_cv_path_LDCXX+set}"; then
11461 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 11462 else
47aaa820 11463 $as_unset lt_cv_path_LD
9c60689e 11464 fi
47aaa820
DWT
11465 test -z "${LDCXX+set}" || LD=$LDCXX
11466 CC=${CXX-"c++"}
11467 compiler=$CC
11468 compiler_CXX=$CC
11469 for cc_temp in $compiler""; do
11470 case $cc_temp in
11471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11473 \-*) ;;
11474 *) break;;
11475 esac
11476done
11477cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9c60689e
DWT
11478
11479
47aaa820
DWT
11480 if test -n "$compiler"; then
11481 # We don't want -fno-exception when compiling C++ code, so set the
11482 # no_builtin_flag separately
11483 if test "$GXX" = yes; then
11484 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11485 else
11486 lt_prog_compiler_no_builtin_flag_CXX=
11487 fi
9c60689e 11488
47aaa820
DWT
11489 if test "$GXX" = yes; then
11490 # Set up default GNU C++ configuration
11491
11492
11493
11494# Check whether --with-gnu-ld was given.
11495if test "${with_gnu_ld+set}" = set; then :
11496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 11497else
47aaa820 11498 with_gnu_ld=no
9c60689e
DWT
11499fi
11500
47aaa820
DWT
11501ac_prog=ld
11502if test "$GCC" = yes; then
11503 # Check if gcc -print-prog-name=ld gives a path.
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11505$as_echo_n "checking for ld used by $CC... " >&6; }
11506 case $host in
11507 *-*-mingw*)
11508 # gcc leaves a trailing carriage return which upsets mingw
11509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11510 *)
11511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11512 esac
11513 case $ac_prog in
11514 # Accept absolute paths.
11515 [\\/]* | ?:[\\/]*)
11516 re_direlt='/[^/][^/]*/\.\./'
11517 # Canonicalize the pathname of ld
11518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11521 done
11522 test -z "$LD" && LD="$ac_prog"
11523 ;;
11524 "")
11525 # If it fails, then pretend we aren't using GCC.
11526 ac_prog=ld
11527 ;;
11528 *)
11529 # If it is relative, then search for the first ld in PATH.
11530 with_gnu_ld=unknown
11531 ;;
11532 esac
11533elif test "$with_gnu_ld" = yes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11535$as_echo_n "checking for GNU ld... " >&6; }
11536else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11538$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 11539fi
47aaa820 11540if test "${lt_cv_path_LD+set}" = set; then :
9c60689e
DWT
11541 $as_echo_n "(cached) " >&6
11542else
47aaa820
DWT
11543 if test -z "$LD"; then
11544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11545 for ac_dir in $PATH; do
11546 IFS="$lt_save_ifs"
11547 test -z "$ac_dir" && ac_dir=.
11548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11549 lt_cv_path_LD="$ac_dir/$ac_prog"
11550 # Check to see if the program is GNU ld. I'd rather use --version,
11551 # but apparently some variants of GNU ld only accept -v.
11552 # Break only if it was the GNU/non-GNU ld that we prefer.
11553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11554 *GNU* | *'with BFD'*)
11555 test "$with_gnu_ld" != no && break
11556 ;;
11557 *)
11558 test "$with_gnu_ld" != yes && break
11559 ;;
11560 esac
11561 fi
9c60689e 11562 done
47aaa820
DWT
11563 IFS="$lt_save_ifs"
11564else
11565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
11566fi
11567fi
47aaa820
DWT
11568
11569LD="$lt_cv_path_LD"
11570if test -n "$LD"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11572$as_echo "$LD" >&6; }
9c60689e
DWT
11573else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575$as_echo "no" >&6; }
11576fi
12833ad8 11577test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11579$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11580if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11582else
11583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11584case `$LD -v 2>&1 </dev/null` in
11585*GNU* | *'with BFD'*)
11586 lt_cv_prog_gnu_ld=yes
11587 ;;
11588*)
11589 lt_cv_prog_gnu_ld=no
11590 ;;
11591esac
11592fi
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11594$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11595with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
11596
11597
9c60689e 11598
9c60689e 11599
9c60689e 11600
9c60689e 11601
9c60689e 11602
47aaa820
DWT
11603 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11604 # archiving commands below assume that GNU ld is being used.
11605 if test "$with_gnu_ld" = yes; then
11606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11607 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e 11608
47aaa820
DWT
11609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11611
47aaa820
DWT
11612 # If archive_cmds runs LD, not CC, wlarc should be empty
11613 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11614 # investigate it a little bit more. (MM)
11615 wlarc='${wl}'
9c60689e 11616
47aaa820
DWT
11617 # ancient GNU ld didn't support --whole-archive et. al.
11618 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11619 $GREP 'no-whole-archive' > /dev/null; then
11620 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11621 else
11622 whole_archive_flag_spec_CXX=
11623 fi
11624 else
11625 with_gnu_ld=no
11626 wlarc=
11627
11628 # A generic and very simple default shared library creation
11629 # command for GNU C++ for the case where it uses the native
11630 # linker, instead of GNU ld. If possible, this setting should
11631 # overridden to take advantage of the native linker features on
11632 # the platform it is being used on.
11633 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11634 fi
11635
11636 # Commands to make compiler produce verbose output that lists
11637 # what "hidden" libraries, object files and flags are used when
11638 # linking a shared library.
11639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11640
11641 else
11642 GXX=no
11643 with_gnu_ld=no
11644 wlarc=
11645 fi
11646
11647 # PORTME: fill in a description of your system's C++ link characteristics
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11649$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11650 ld_shlibs_CXX=yes
11651 case $host_os in
11652 aix3*)
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 aix[4-9]*)
11657 if test "$host_cpu" = ia64; then
11658 # On IA64, the linker does run time linking by default, so we don't
11659 # have to do anything special.
11660 aix_use_runtimelinking=no
11661 exp_sym_flag='-Bexport'
11662 no_entry_flag=""
11663 else
11664 aix_use_runtimelinking=no
11665
11666 # Test if we are trying to use run time linking or normal
11667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11668 # need to do runtime linking.
11669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11670 for ld_flag in $LDFLAGS; do
11671 case $ld_flag in
11672 *-brtl*)
11673 aix_use_runtimelinking=yes
11674 break
11675 ;;
11676 esac
11677 done
11678 ;;
11679 esac
11680
11681 exp_sym_flag='-bexport'
11682 no_entry_flag='-bnoentry'
11683 fi
11684
11685 # When large executables or shared objects are built, AIX ld can
11686 # have problems creating the table of contents. If linking a library
11687 # or program results in "error TOC overflow" add -mminimal-toc to
11688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11690
11691 archive_cmds_CXX=''
11692 hardcode_direct_CXX=yes
11693 hardcode_direct_absolute_CXX=yes
11694 hardcode_libdir_separator_CXX=':'
11695 link_all_deplibs_CXX=yes
11696 file_list_spec_CXX='${wl}-f,'
11697
11698 if test "$GXX" = yes; then
11699 case $host_os in aix4.[012]|aix4.[012].*)
11700 # We only want to do this on AIX 4.2 and lower, the check
11701 # below for broken collect2 doesn't work under 4.3+
11702 collect2name=`${CC} -print-prog-name=collect2`
11703 if test -f "$collect2name" &&
11704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11705 then
11706 # We have reworked collect2
11707 :
11708 else
11709 # We have old collect2
11710 hardcode_direct_CXX=unsupported
11711 # It fails to find uninstalled libraries when the uninstalled
11712 # path is not listed in the libpath. Setting hardcode_minus_L
11713 # to unsupported forces relinking
11714 hardcode_minus_L_CXX=yes
11715 hardcode_libdir_flag_spec_CXX='-L$libdir'
11716 hardcode_libdir_separator_CXX=
11717 fi
11718 esac
11719 shared_flag='-shared'
11720 if test "$aix_use_runtimelinking" = yes; then
11721 shared_flag="$shared_flag "'${wl}-G'
11722 fi
11723 else
11724 # not using gcc
11725 if test "$host_cpu" = ia64; then
11726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11727 # chokes on -Wl,-G. The following line is correct:
11728 shared_flag='-G'
11729 else
11730 if test "$aix_use_runtimelinking" = yes; then
11731 shared_flag='${wl}-G'
11732 else
11733 shared_flag='${wl}-bM:SRE'
11734 fi
11735 fi
11736 fi
11737
11738 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11739 # It seems that -bexpall does not export symbols beginning with
11740 # underscore (_), so it is better to generate a list of symbols to
11741 # export.
11742 always_export_symbols_CXX=yes
11743 if test "$aix_use_runtimelinking" = yes; then
11744 # Warning - without using the other runtime loading flags (-brtl),
11745 # -berok will link without error, but may produce a broken library.
11746 allow_undefined_flag_CXX='-berok'
11747 # Determine the default libpath from the value encoded in an empty
11748 # executable.
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11750/* end confdefs.h. */
11751
11752int
11753main ()
11754{
11755
11756 ;
11757 return 0;
11758}
11759_ACEOF
47aaa820 11760if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11761
47aaa820
DWT
11762lt_aix_libpath_sed='
11763 /Import File Strings/,/^$/ {
11764 /^0/ {
11765 s/^0 *\(.*\)$/\1/
11766 p
11767 }
11768 }'
11769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11770# Check for a 64-bit object if we didn't find anything.
11771if test -z "$aix_libpath"; then
11772 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11773fi
11774fi
11775rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11778
11779 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11780
11781 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11782 else
11783 if test "$host_cpu" = ia64; then
11784 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11785 allow_undefined_flag_CXX="-z nodefs"
11786 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"
11787 else
11788 # Determine the default libpath from the value encoded in an
11789 # empty executable.
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11791/* end confdefs.h. */
11792
11793int
11794main ()
11795{
11796
11797 ;
11798 return 0;
11799}
11800_ACEOF
47aaa820 11801if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11802
47aaa820
DWT
11803lt_aix_libpath_sed='
11804 /Import File Strings/,/^$/ {
11805 /^0/ {
11806 s/^0 *\(.*\)$/\1/
11807 p
11808 }
11809 }'
11810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11811# Check for a 64-bit object if we didn't find anything.
11812if test -z "$aix_libpath"; then
11813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9c60689e 11814fi
9c60689e 11815fi
47aaa820
DWT
11816rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9c60689e 11819
47aaa820
DWT
11820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11821 # Warning - without using the other run time loading flags,
11822 # -berok will link without error, but may produce a broken library.
11823 no_undefined_flag_CXX=' ${wl}-bernotok'
11824 allow_undefined_flag_CXX=' ${wl}-berok'
11825 # Exported symbols can be pulled into shared objects from archives
11826 whole_archive_flag_spec_CXX='$convenience'
11827 archive_cmds_need_lc_CXX=yes
11828 # This is similar to how AIX traditionally builds its shared
11829 # libraries.
11830 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'
11831 fi
11832 fi
11833 ;;
9c60689e 11834
47aaa820
DWT
11835 beos*)
11836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11837 allow_undefined_flag_CXX=unsupported
11838 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11839 # support --undefined. This deserves some investigation. FIXME
11840 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11841 else
11842 ld_shlibs_CXX=no
11843 fi
11844 ;;
9c60689e 11845
47aaa820
DWT
11846 chorus*)
11847 case $cc_basename in
11848 *)
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11851 ;;
11852 esac
11853 ;;
9c60689e 11854
47aaa820
DWT
11855 cygwin* | mingw* | pw32* | cegcc*)
11856 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11857 # as there is no search path for DLLs.
11858 hardcode_libdir_flag_spec_CXX='-L$libdir'
11859 allow_undefined_flag_CXX=unsupported
11860 always_export_symbols_CXX=no
11861 enable_shared_with_static_runtimes_CXX=yes
9c60689e 11862
47aaa820
DWT
11863 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11864 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'
11865 # If the export-symbols file already is a .def file (1st line
11866 # is EXPORTS), use it as is; otherwise, prepend...
11867 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11868 cp $export_symbols $output_objdir/$soname.def;
11869 else
11870 echo EXPORTS > $output_objdir/$soname.def;
11871 cat $export_symbols >> $output_objdir/$soname.def;
11872 fi~
11873 $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'
11874 else
11875 ld_shlibs_CXX=no
11876 fi
11877 ;;
11878 darwin* | rhapsody*)
9c60689e 11879
9c60689e 11880
47aaa820
DWT
11881 archive_cmds_need_lc_CXX=no
11882 hardcode_direct_CXX=no
11883 hardcode_automatic_CXX=yes
11884 hardcode_shlibpath_var_CXX=unsupported
11885 whole_archive_flag_spec_CXX=''
11886 link_all_deplibs_CXX=yes
11887 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11888 case $cc_basename in
11889 ifort*) _lt_dar_can_shared=yes ;;
11890 *) _lt_dar_can_shared=$GCC ;;
11891 esac
11892 if test "$_lt_dar_can_shared" = "yes"; then
11893 output_verbose_link_cmd=echo
11894 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}"
11895 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11896 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}"
11897 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}"
11898 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11899 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}"
11900 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}"
11901 fi
9c60689e 11902
47aaa820
DWT
11903 else
11904 ld_shlibs_CXX=no
11905 fi
9c60689e 11906
47aaa820 11907 ;;
9c60689e 11908
47aaa820
DWT
11909 dgux*)
11910 case $cc_basename in
11911 ec++*)
11912 # FIXME: insert proper C++ library support
11913 ld_shlibs_CXX=no
11914 ;;
11915 ghcx*)
11916 # Green Hills C++ Compiler
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11919 ;;
11920 *)
11921 # FIXME: insert proper C++ library support
11922 ld_shlibs_CXX=no
11923 ;;
11924 esac
11925 ;;
9c60689e 11926
47aaa820
DWT
11927 freebsd[12]*)
11928 # C++ shared libraries reported to be fairly broken before
11929 # switch to ELF
11930 ld_shlibs_CXX=no
11931 ;;
9c60689e 11932
47aaa820
DWT
11933 freebsd-elf*)
11934 archive_cmds_need_lc_CXX=no
11935 ;;
9c60689e 11936
47aaa820
DWT
11937 freebsd* | dragonfly*)
11938 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11939 # conventions
11940 ld_shlibs_CXX=yes
11941 ;;
9c60689e 11942
47aaa820
DWT
11943 gnu*)
11944 ;;
9c60689e 11945
47aaa820
DWT
11946 hpux9*)
11947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11948 hardcode_libdir_separator_CXX=:
11949 export_dynamic_flag_spec_CXX='${wl}-E'
11950 hardcode_direct_CXX=yes
11951 hardcode_minus_L_CXX=yes # Not in the search PATH,
11952 # but as the default
11953 # location of the library.
9c60689e 11954
47aaa820
DWT
11955 case $cc_basename in
11956 CC*)
11957 # FIXME: insert proper C++ library support
11958 ld_shlibs_CXX=no
11959 ;;
11960 aCC*)
11961 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'
11962 # Commands to make compiler produce verbose output that lists
11963 # what "hidden" libraries, object files and flags are used when
11964 # linking a shared library.
11965 #
11966 # There doesn't appear to be a way to prevent this compiler from
11967 # explicitly linking system object files so we need to strip them
11968 # from the output so that they don't get included in the library
11969 # dependencies.
11970 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; $ECHO "X$list" | $Xsed'
11971 ;;
11972 *)
11973 if test "$GXX" = yes; then
11974 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11975 else
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 fi
11979 ;;
11980 esac
11981 ;;
9c60689e 11982
47aaa820
DWT
11983 hpux10*|hpux11*)
11984 if test $with_gnu_ld = no; then
11985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_separator_CXX=:
9c60689e 11987
47aaa820
DWT
11988 case $host_cpu in
11989 hppa*64*|ia64*)
11990 ;;
11991 *)
11992 export_dynamic_flag_spec_CXX='${wl}-E'
11993 ;;
11994 esac
11995 fi
11996 case $host_cpu in
11997 hppa*64*|ia64*)
11998 hardcode_direct_CXX=no
11999 hardcode_shlibpath_var_CXX=no
12000 ;;
12001 *)
12002 hardcode_direct_CXX=yes
12003 hardcode_direct_absolute_CXX=yes
12004 hardcode_minus_L_CXX=yes # Not in the search PATH,
12005 # but as the default
12006 # location of the library.
12007 ;;
12008 esac
9c60689e 12009
47aaa820
DWT
12010 case $cc_basename in
12011 CC*)
12012 # FIXME: insert proper C++ library support
12013 ld_shlibs_CXX=no
12014 ;;
12015 aCC*)
12016 case $host_cpu in
12017 hppa*64*)
12018 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12019 ;;
12020 ia64*)
12021 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12022 ;;
12023 *)
12024 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025 ;;
12026 esac
12027 # Commands to make compiler produce verbose output that lists
12028 # what "hidden" libraries, object files and flags are used when
12029 # linking a shared library.
12030 #
12031 # There doesn't appear to be a way to prevent this compiler from
12032 # explicitly linking system object files so we need to strip them
12033 # from the output so that they don't get included in the library
12034 # dependencies.
12035 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; $ECHO "X$list" | $Xsed'
12036 ;;
12037 *)
12038 if test "$GXX" = yes; then
12039 if test $with_gnu_ld = no; then
12040 case $host_cpu in
12041 hppa*64*)
12042 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043 ;;
12044 ia64*)
12045 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12046 ;;
12047 *)
12048 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12049 ;;
12050 esac
12051 fi
12052 else
12053 # FIXME: insert proper C++ library support
12054 ld_shlibs_CXX=no
12055 fi
12056 ;;
12057 esac
12058 ;;
9c60689e 12059
47aaa820
DWT
12060 interix[3-9]*)
12061 hardcode_direct_CXX=no
12062 hardcode_shlibpath_var_CXX=no
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064 export_dynamic_flag_spec_CXX='${wl}-E'
12065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12066 # Instead, shared libraries are loaded at an image base (0x10000000 by
12067 # default) and relocated if they conflict, which is a slow very memory
12068 # consuming and fragmenting process. To avoid this, we pick a random,
12069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12071 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'
12072 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'
12073 ;;
12074 irix5* | irix6*)
12075 case $cc_basename in
12076 CC*)
12077 # SGI C++
12078 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9c60689e 12079
47aaa820
DWT
12080 # Archives containing C++ object files must be created using
12081 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12082 # necessary to make sure instantiated templates are included
12083 # in the archive.
12084 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12085 ;;
12086 *)
12087 if test "$GXX" = yes; then
12088 if test "$with_gnu_ld" = no; then
12089 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12090 else
12091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12092 fi
12093 fi
12094 link_all_deplibs_CXX=yes
12095 ;;
12096 esac
12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12098 hardcode_libdir_separator_CXX=:
12099 inherit_rpath_CXX=yes
12100 ;;
9c60689e 12101
1504c9b8 12102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
12103 case $cc_basename in
12104 KCC*)
12105 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12106
47aaa820
DWT
12107 # KCC will only create a shared library if the output file
12108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12109 # to its proper name (with version) after linking.
12110 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'
12111 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'
12112 # Commands to make compiler produce verbose output that lists
12113 # what "hidden" libraries, object files and flags are used when
12114 # linking a shared library.
12115 #
12116 # There doesn't appear to be a way to prevent this compiler from
12117 # explicitly linking system object files so we need to strip them
12118 # from the output so that they don't get included in the library
12119 # dependencies.
12120 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; $ECHO "X$list" | $Xsed'
9c60689e 12121
47aaa820
DWT
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12124
47aaa820
DWT
12125 # Archives containing C++ object files must be created using
12126 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12127 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12128 ;;
12129 icpc* | ecpc* )
12130 # Intel C++
12131 with_gnu_ld=yes
12132 # version 8.0 and above of icpc choke on multiply defined symbols
12133 # if we add $predep_objects and $postdep_objects, however 7.1 and
12134 # earlier do not add the objects themselves.
12135 case `$CC -V 2>&1` in
12136 *"Version 7."*)
12137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138 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'
12139 ;;
12140 *) # Version 8.0 or newer
12141 tmp_idyn=
12142 case $host_cpu in
12143 ia64*) tmp_idyn=' -i_dynamic';;
12144 esac
12145 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12146 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'
12147 ;;
12148 esac
12149 archive_cmds_need_lc_CXX=no
12150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12152 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12153 ;;
12154 pgCC* | pgcpp*)
12155 # Portland Group C++ compiler
12156 case `$CC -V` in
12157 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12158 prelink_cmds_CXX='tpldir=Template.dir~
12159 rm -rf $tpldir~
12160 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12161 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12162 old_archive_cmds_CXX='tpldir=Template.dir~
12163 rm -rf $tpldir~
12164 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12165 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12166 $RANLIB $oldlib'
12167 archive_cmds_CXX='tpldir=Template.dir~
12168 rm -rf $tpldir~
12169 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12170 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12171 archive_expsym_cmds_CXX='tpldir=Template.dir~
12172 rm -rf $tpldir~
12173 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12174 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12175 ;;
12176 *) # Version 6 will use weak symbols
12177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12178 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'
12179 ;;
12180 esac
9c60689e 12181
47aaa820
DWT
12182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12184 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12185 ;;
12186 cxx*)
12187 # Compaq C++
12188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12189 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 12190
47aaa820
DWT
12191 runpath_var=LD_RUN_PATH
12192 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12193 hardcode_libdir_separator_CXX=:
9c60689e 12194
47aaa820
DWT
12195 # Commands to make compiler produce verbose output that lists
12196 # what "hidden" libraries, object files and flags are used when
12197 # linking a shared library.
12198 #
12199 # There doesn't appear to be a way to prevent this compiler from
12200 # explicitly linking system object files so we need to strip them
12201 # from the output so that they don't get included in the library
12202 # dependencies.
12203 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12204 ;;
12205 xl*)
12206 # IBM XL 8.0 on PPC, with GNU ld
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12210 if test "x$supports_anon_versioning" = xyes; then
12211 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12213 echo "local: *; };" >> $output_objdir/$libname.ver~
12214 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12215 fi
12216 ;;
12217 *)
12218 case `$CC -V 2>&1 | sed 5q` in
12219 *Sun\ C*)
12220 # Sun C++ 5.9
12221 no_undefined_flag_CXX=' -zdefs'
12222 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12223 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'
12224 hardcode_libdir_flag_spec_CXX='-R$libdir'
12225 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12226 compiler_needs_object_CXX=yes
9c60689e 12227
47aaa820
DWT
12228 # Not sure whether something based on
12229 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12230 # would be better.
12231 output_verbose_link_cmd='echo'
9c60689e 12232
47aaa820
DWT
12233 # Archives containing C++ object files must be created using
12234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12235 # necessary to make sure instantiated templates are included
12236 # in the archive.
12237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12238 ;;
12239 esac
12240 ;;
12241 esac
12242 ;;
9c60689e 12243
47aaa820
DWT
12244 lynxos*)
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 ;;
9c60689e 12248
47aaa820
DWT
12249 m88k*)
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12252 ;;
9c60689e 12253
47aaa820
DWT
12254 mvs*)
12255 case $cc_basename in
12256 cxx*)
12257 # FIXME: insert proper C++ library support
12258 ld_shlibs_CXX=no
12259 ;;
12260 *)
12261 # FIXME: insert proper C++ library support
12262 ld_shlibs_CXX=no
12263 ;;
12264 esac
12265 ;;
9c60689e 12266
47aaa820
DWT
12267 netbsd*)
12268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12269 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12270 wlarc=
12271 hardcode_libdir_flag_spec_CXX='-R$libdir'
12272 hardcode_direct_CXX=yes
12273 hardcode_shlibpath_var_CXX=no
12274 fi
12275 # Workaround some broken pre-1.5 toolchains
12276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 12277 ;;
47aaa820
DWT
12278
12279 *nto* | *qnx*)
12280 ld_shlibs_CXX=yes
9c60689e 12281 ;;
9c60689e 12282
47aaa820
DWT
12283 openbsd2*)
12284 # C++ shared libraries are fairly broken
12285 ld_shlibs_CXX=no
12286 ;;
9c60689e 12287
47aaa820
DWT
12288 openbsd*)
12289 if test -f /usr/libexec/ld.so; then
12290 hardcode_direct_CXX=yes
12291 hardcode_shlibpath_var_CXX=no
12292 hardcode_direct_absolute_CXX=yes
12293 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12296 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12297 export_dynamic_flag_spec_CXX='${wl}-E'
12298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12299 fi
12300 output_verbose_link_cmd=echo
12301 else
12302 ld_shlibs_CXX=no
12303 fi
12304 ;;
9c60689e 12305
47aaa820
DWT
12306 osf3* | osf4* | osf5*)
12307 case $cc_basename in
12308 KCC*)
12309 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12310
47aaa820
DWT
12311 # KCC will only create a shared library if the output file
12312 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12313 # to its proper name (with version) after linking.
12314 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 12315
47aaa820
DWT
12316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12317 hardcode_libdir_separator_CXX=:
9c60689e 12318
47aaa820
DWT
12319 # Archives containing C++ object files must be created using
12320 # the KAI C++ compiler.
12321 case $host in
12322 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12323 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12324 esac
12325 ;;
12326 RCC*)
12327 # Rational C++ 2.4.1
12328 # FIXME: insert proper C++ library support
12329 ld_shlibs_CXX=no
12330 ;;
12331 cxx*)
12332 case $host in
12333 osf3*)
12334 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12335 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12337 ;;
12338 *)
12339 allow_undefined_flag_CXX=' -expect_unresolved \*'
12340 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12342 echo "-hidden">> $lib.exp~
12343 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12344 $RM $lib.exp'
12345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12346 ;;
12347 esac
9c60689e 12348
47aaa820 12349 hardcode_libdir_separator_CXX=:
9c60689e 12350
47aaa820
DWT
12351 # Commands to make compiler produce verbose output that lists
12352 # what "hidden" libraries, object files and flags are used when
12353 # linking a shared library.
12354 #
12355 # There doesn't appear to be a way to prevent this compiler from
12356 # explicitly linking system object files so we need to strip them
12357 # from the output so that they don't get included in the library
12358 # dependencies.
12359 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12360 ;;
12361 *)
12362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12364 case $host in
12365 osf3*)
12366 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12367 ;;
12368 *)
12369 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12370 ;;
12371 esac
9c60689e 12372
47aaa820
DWT
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12374 hardcode_libdir_separator_CXX=:
9c60689e 12375
47aaa820
DWT
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9c60689e 12380
47aaa820
DWT
12381 else
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 fi
12385 ;;
12386 esac
12387 ;;
9c60689e 12388
47aaa820 12389 psos*)
9c60689e
DWT
12390 # FIXME: insert proper C++ library support
12391 ld_shlibs_CXX=no
12392 ;;
9c60689e 12393
47aaa820
DWT
12394 sunos4*)
12395 case $cc_basename in
12396 CC*)
12397 # Sun C++ 4.x
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
9c60689e 12400 ;;
47aaa820
DWT
12401 lcc*)
12402 # Lucid
12403 # FIXME: insert proper C++ library support
12404 ld_shlibs_CXX=no
12405 ;;
12406 *)
12407 # FIXME: insert proper C++ library support
12408 ld_shlibs_CXX=no
12409 ;;
12410 esac
12411 ;;
9c60689e 12412
47aaa820
DWT
12413 solaris*)
12414 case $cc_basename in
12415 CC*)
12416 # Sun C++ 4.2, 5.x and Centerline C++
12417 archive_cmds_need_lc_CXX=yes
12418 no_undefined_flag_CXX=' -zdefs'
12419 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12421 $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 12422
47aaa820
DWT
12423 hardcode_libdir_flag_spec_CXX='-R$libdir'
12424 hardcode_shlibpath_var_CXX=no
12425 case $host_os in
12426 solaris2.[0-5] | solaris2.[0-5].*) ;;
12427 *)
12428 # The compiler driver will combine and reorder linker options,
12429 # but understands `-z linker_flag'.
12430 # Supported since Solaris 2.6 (maybe 2.5.1?)
12431 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12432 ;;
12433 esac
12434 link_all_deplibs_CXX=yes
9c60689e 12435
47aaa820 12436 output_verbose_link_cmd='echo'
9c60689e 12437
47aaa820
DWT
12438 # Archives containing C++ object files must be created using
12439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12440 # necessary to make sure instantiated templates are included
12441 # in the archive.
12442 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12443 ;;
12444 gcx*)
12445 # Green Hills C++ Compiler
12446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 12447
47aaa820
DWT
12448 # The C++ compiler must be used to create the archive.
12449 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12450 ;;
12451 *)
12452 # GNU C++ compiler with Solaris linker
12453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12455 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12456 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12458 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 12459
47aaa820
DWT
12460 # Commands to make compiler produce verbose output that lists
12461 # what "hidden" libraries, object files and flags are used when
12462 # linking a shared library.
12463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12464 else
12465 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12466 # platform.
12467 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 12470
47aaa820
DWT
12471 # Commands to make compiler produce verbose output that lists
12472 # what "hidden" libraries, object files and flags are used when
12473 # linking a shared library.
12474 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12475 fi
9c60689e 12476
47aaa820
DWT
12477 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12478 case $host_os in
12479 solaris2.[0-5] | solaris2.[0-5].*) ;;
12480 *)
12481 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12482 ;;
12483 esac
12484 fi
12485 ;;
12486 esac
12487 ;;
9c60689e 12488
47aaa820
DWT
12489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12490 no_undefined_flag_CXX='${wl}-z,text'
12491 archive_cmds_need_lc_CXX=no
12492 hardcode_shlibpath_var_CXX=no
12493 runpath_var='LD_RUN_PATH'
9c60689e 12494
47aaa820
DWT
12495 case $cc_basename in
12496 CC*)
12497 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12498 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 ;;
12500 *)
12501 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12502 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 ;;
12504 esac
12505 ;;
9c60689e 12506
47aaa820
DWT
12507 sysv5* | sco3.2v5* | sco5v6*)
12508 # Note: We can NOT use -z defs as we might desire, because we do not
12509 # link with -lc, and that would cause any symbols used from libc to
12510 # always be unresolved, which means just about no library would
12511 # ever link correctly. If we're not using GNU ld we use -z text
12512 # though, which does catch some bad symbols but isn't as heavy-handed
12513 # as -z defs.
12514 no_undefined_flag_CXX='${wl}-z,text'
12515 allow_undefined_flag_CXX='${wl}-z,nodefs'
12516 archive_cmds_need_lc_CXX=no
12517 hardcode_shlibpath_var_CXX=no
12518 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12519 hardcode_libdir_separator_CXX=':'
12520 link_all_deplibs_CXX=yes
12521 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12522 runpath_var='LD_RUN_PATH'
9c60689e 12523
47aaa820
DWT
12524 case $cc_basename in
12525 CC*)
12526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12528 ;;
12529 *)
12530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12532 ;;
12533 esac
12534 ;;
9c60689e 12535
47aaa820 12536 tandem*)
9c60689e 12537 case $cc_basename in
47aaa820
DWT
12538 NCC*)
12539 # NonStop-UX NCC 3.20
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12542 ;;
9c60689e 12543 *)
47aaa820
DWT
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
9c60689e
DWT
12547 esac
12548 ;;
12549
47aaa820
DWT
12550 vxworks*)
12551 # FIXME: insert proper C++ library support
12552 ld_shlibs_CXX=no
12553 ;;
9c60689e 12554
47aaa820
DWT
12555 *)
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
9c60689e 12558 ;;
47aaa820 12559 esac
9c60689e 12560
47aaa820
DWT
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12562$as_echo "$ld_shlibs_CXX" >&6; }
12563 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 12564
47aaa820
DWT
12565 GCC_CXX="$GXX"
12566 LD_CXX="$LD"
9c60689e 12567
47aaa820
DWT
12568 ## CAVEAT EMPTOR:
12569 ## There is no encapsulation within the following macros, do not change
12570 ## the running order or otherwise move them around unless you know exactly
12571 ## what you are doing...
12572 # Dependencies to place before and after the object being linked:
12573predep_objects_CXX=
12574postdep_objects_CXX=
12575predeps_CXX=
12576postdeps_CXX=
12577compiler_lib_search_path_CXX=
9c60689e 12578
47aaa820
DWT
12579cat > conftest.$ac_ext <<_LT_EOF
12580class Foo
12581{
12582public:
12583 Foo (void) { a = 0; }
12584private:
12585 int a;
12586};
12587_LT_EOF
9c60689e 12588
47aaa820
DWT
12589if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12590 (eval $ac_compile) 2>&5
12591 ac_status=$?
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; }; then
12594 # Parse the compiler output and extract the necessary
12595 # objects, libraries and library flags.
9c60689e 12596
47aaa820
DWT
12597 # Sentinel used to keep track of whether or not we are before
12598 # the conftest object file.
12599 pre_test_object_deps_done=no
9c60689e 12600
47aaa820
DWT
12601 for p in `eval "$output_verbose_link_cmd"`; do
12602 case $p in
9c60689e 12603
47aaa820
DWT
12604 -L* | -R* | -l*)
12605 # Some compilers place space between "-{L,R}" and the path.
12606 # Remove the space.
12607 if test $p = "-L" ||
12608 test $p = "-R"; then
12609 prev=$p
12610 continue
12611 else
12612 prev=
12613 fi
9c60689e 12614
47aaa820
DWT
12615 if test "$pre_test_object_deps_done" = no; then
12616 case $p in
12617 -L* | -R*)
12618 # Internal compiler library paths should come after those
12619 # provided the user. The postdeps already come after the
12620 # user supplied libs so there is no need to process them.
12621 if test -z "$compiler_lib_search_path_CXX"; then
12622 compiler_lib_search_path_CXX="${prev}${p}"
12623 else
12624 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12625 fi
12626 ;;
12627 # The "-l" case would never come before the object being
12628 # linked, so don't bother handling this case.
12629 esac
12630 else
12631 if test -z "$postdeps_CXX"; then
12632 postdeps_CXX="${prev}${p}"
12633 else
12634 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12635 fi
12636 fi
12637 ;;
9c60689e 12638
47aaa820
DWT
12639 *.$objext)
12640 # This assumes that the test object file only shows up
12641 # once in the compiler output.
12642 if test "$p" = "conftest.$objext"; then
12643 pre_test_object_deps_done=yes
12644 continue
12645 fi
9c60689e 12646
47aaa820
DWT
12647 if test "$pre_test_object_deps_done" = no; then
12648 if test -z "$predep_objects_CXX"; then
12649 predep_objects_CXX="$p"
12650 else
12651 predep_objects_CXX="$predep_objects_CXX $p"
12652 fi
12653 else
12654 if test -z "$postdep_objects_CXX"; then
12655 postdep_objects_CXX="$p"
12656 else
12657 postdep_objects_CXX="$postdep_objects_CXX $p"
12658 fi
12659 fi
12660 ;;
9c60689e 12661
47aaa820 12662 *) ;; # Ignore the rest.
9c60689e 12663
47aaa820
DWT
12664 esac
12665 done
9c60689e 12666
47aaa820
DWT
12667 # Clean up.
12668 rm -f a.out a.exe
12669else
12670 echo "libtool.m4: error: problem compiling CXX test program"
12671fi
9c60689e 12672
47aaa820 12673$RM -f confest.$objext
9c60689e 12674
47aaa820
DWT
12675# PORTME: override above test on systems where it is broken
12676case $host_os in
12677interix[3-9]*)
12678 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12679 # hack all around it, let's just trust "g++" to DTRT.
12680 predep_objects_CXX=
12681 postdep_objects_CXX=
12682 postdeps_CXX=
12683 ;;
9c60689e 12684
47aaa820
DWT
12685linux*)
12686 case `$CC -V 2>&1 | sed 5q` in
12687 *Sun\ C*)
12688 # Sun C++ 5.9
9c60689e 12689
47aaa820
DWT
12690 # The more standards-conforming stlport4 library is
12691 # incompatible with the Cstd library. Avoid specifying
12692 # it if it's in CXXFLAGS. Ignore libCrun as
12693 # -library=stlport4 depends on it.
12694 case " $CXX $CXXFLAGS " in
12695 *" -library=stlport4 "*)
12696 solaris_use_stlport4=yes
12697 ;;
12698 esac
9c60689e 12699
47aaa820
DWT
12700 if test "$solaris_use_stlport4" != yes; then
12701 postdeps_CXX='-library=Cstd -library=Crun'
12702 fi
12703 ;;
12704 esac
12705 ;;
9c60689e 12706
47aaa820
DWT
12707solaris*)
12708 case $cc_basename in
12709 CC*)
12710 # The more standards-conforming stlport4 library is
12711 # incompatible with the Cstd library. Avoid specifying
12712 # it if it's in CXXFLAGS. Ignore libCrun as
12713 # -library=stlport4 depends on it.
12714 case " $CXX $CXXFLAGS " in
12715 *" -library=stlport4 "*)
12716 solaris_use_stlport4=yes
12717 ;;
12718 esac
9c60689e 12719
47aaa820
DWT
12720 # Adding this requires a known-good setup of shared libraries for
12721 # Sun compiler versions before 5.6, else PIC objects from an old
12722 # archive will be linked into the output, leading to subtle bugs.
12723 if test "$solaris_use_stlport4" != yes; then
12724 postdeps_CXX='-library=Cstd -library=Crun'
12725 fi
12726 ;;
12727 esac
12728 ;;
12729esac
9c60689e 12730
9c60689e 12731
47aaa820
DWT
12732case " $postdeps_CXX " in
12733*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12734esac
12735 compiler_lib_search_dirs_CXX=
12736if test -n "${compiler_lib_search_path_CXX}"; then
12737 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12738fi
9c60689e 12739
9c60689e 12740
9c60689e 12741
9c60689e 12742
9c60689e 12743
9c60689e 12744
9c60689e 12745
9c60689e 12746
9c60689e 12747
9c60689e 12748
9c60689e 12749
9c60689e 12750
9c60689e 12751
9c60689e 12752
9c60689e 12753
9c60689e 12754
9c60689e 12755
9c60689e 12756
9c60689e 12757
9c60689e 12758
9c60689e 12759
9c60689e 12760
9c60689e 12761
9c60689e 12762
9c60689e 12763
9c60689e 12764
9c60689e 12765
9c60689e 12766
9c60689e 12767
9c60689e 12768
9c60689e 12769
47aaa820
DWT
12770 lt_prog_compiler_wl_CXX=
12771lt_prog_compiler_pic_CXX=
12772lt_prog_compiler_static_CXX=
9c60689e
DWT
12773
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12775$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12776
12777 # C++ specific cases for pic, static, wl, etc.
12778 if test "$GXX" = yes; then
12779 lt_prog_compiler_wl_CXX='-Wl,'
12780 lt_prog_compiler_static_CXX='-static'
12781
12782 case $host_os in
12783 aix*)
12784 # All AIX code is PIC.
12785 if test "$host_cpu" = ia64; then
12786 # AIX 5 now supports IA64 processor
12787 lt_prog_compiler_static_CXX='-Bstatic'
12788 fi
12789 ;;
12790
12791 amigaos*)
12792 case $host_cpu in
12793 powerpc)
12794 # see comment about AmigaOS4 .so support
12795 lt_prog_compiler_pic_CXX='-fPIC'
12796 ;;
12797 m68k)
12798 # FIXME: we need at least 68020 code to build shared libraries, but
12799 # adding the `-m68020' flag to GCC prevents building anything better,
12800 # like `-m68040'.
12801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12802 ;;
12803 esac
12804 ;;
12805
12806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12807 # PIC is the default for these OSes.
12808 ;;
12809 mingw* | cygwin* | os2* | pw32* | cegcc*)
12810 # This hack is so that the source file can tell whether it is being
12811 # built for inclusion in a dll (and should export symbols for example).
12812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12813 # (--disable-auto-import) libraries
12814 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12815 ;;
12816 darwin* | rhapsody*)
12817 # PIC is the default on this platform
12818 # Common symbols not allowed in MH_DYLIB files
12819 lt_prog_compiler_pic_CXX='-fno-common'
12820 ;;
12821 *djgpp*)
12822 # DJGPP does not support shared libraries at all
12823 lt_prog_compiler_pic_CXX=
12824 ;;
12825 interix[3-9]*)
12826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12827 # Instead, we relocate shared libraries at runtime.
12828 ;;
12829 sysv4*MP*)
12830 if test -d /usr/nec; then
12831 lt_prog_compiler_pic_CXX=-Kconform_pic
12832 fi
12833 ;;
12834 hpux*)
12835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12837 # sets the default TLS model and affects inlining.
12838 case $host_cpu in
12839 hppa*64*)
12840 ;;
12841 *)
12842 lt_prog_compiler_pic_CXX='-fPIC'
12843 ;;
12844 esac
12845 ;;
12846 *qnx* | *nto*)
12847 # QNX uses GNU C++, but need to define -shared option too, otherwise
12848 # it will coredump.
12849 lt_prog_compiler_pic_CXX='-fPIC -shared'
12850 ;;
12851 *)
12852 lt_prog_compiler_pic_CXX='-fPIC'
12853 ;;
12854 esac
12855 else
12856 case $host_os in
12857 aix[4-9]*)
12858 # All AIX code is PIC.
12859 if test "$host_cpu" = ia64; then
12860 # AIX 5 now supports IA64 processor
12861 lt_prog_compiler_static_CXX='-Bstatic'
12862 else
12863 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12864 fi
12865 ;;
12866 chorus*)
12867 case $cc_basename in
12868 cxch68*)
12869 # Green Hills C++ Compiler
12870 # _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"
12871 ;;
12872 esac
12873 ;;
12874 dgux*)
12875 case $cc_basename in
12876 ec++*)
12877 lt_prog_compiler_pic_CXX='-KPIC'
12878 ;;
12879 ghcx*)
12880 # Green Hills C++ Compiler
12881 lt_prog_compiler_pic_CXX='-pic'
12882 ;;
12883 *)
12884 ;;
12885 esac
12886 ;;
12887 freebsd* | dragonfly*)
12888 # FreeBSD uses GNU C++
12889 ;;
12890 hpux9* | hpux10* | hpux11*)
12891 case $cc_basename in
12892 CC*)
12893 lt_prog_compiler_wl_CXX='-Wl,'
12894 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12895 if test "$host_cpu" != ia64; then
12896 lt_prog_compiler_pic_CXX='+Z'
12897 fi
12898 ;;
12899 aCC*)
12900 lt_prog_compiler_wl_CXX='-Wl,'
12901 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12902 case $host_cpu in
12903 hppa*64*|ia64*)
12904 # +Z the default
12905 ;;
12906 *)
12907 lt_prog_compiler_pic_CXX='+Z'
12908 ;;
12909 esac
12910 ;;
12911 *)
12912 ;;
12913 esac
12914 ;;
12915 interix*)
12916 # This is c89, which is MS Visual C++ (no shared libs)
12917 # Anyone wants to do a port?
12918 ;;
12919 irix5* | irix6* | nonstopux*)
12920 case $cc_basename in
12921 CC*)
12922 lt_prog_compiler_wl_CXX='-Wl,'
12923 lt_prog_compiler_static_CXX='-non_shared'
12924 # CC pic flag -KPIC is the default.
12925 ;;
12926 *)
12927 ;;
12928 esac
12929 ;;
1504c9b8 12930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
12931 case $cc_basename in
12932 KCC*)
12933 # KAI C++ Compiler
12934 lt_prog_compiler_wl_CXX='--backend -Wl,'
12935 lt_prog_compiler_pic_CXX='-fPIC'
12936 ;;
12937 ecpc* )
12938 # old Intel C++ for x86_64 which still supported -KPIC.
12939 lt_prog_compiler_wl_CXX='-Wl,'
12940 lt_prog_compiler_pic_CXX='-KPIC'
12941 lt_prog_compiler_static_CXX='-static'
12942 ;;
12943 icpc* )
12944 # Intel C++, used to be incompatible with GCC.
12945 # ICC 10 doesn't accept -KPIC any more.
12946 lt_prog_compiler_wl_CXX='-Wl,'
12947 lt_prog_compiler_pic_CXX='-fPIC'
12948 lt_prog_compiler_static_CXX='-static'
12949 ;;
12950 pgCC* | pgcpp*)
12951 # Portland Group C++ compiler
12952 lt_prog_compiler_wl_CXX='-Wl,'
12953 lt_prog_compiler_pic_CXX='-fpic'
12954 lt_prog_compiler_static_CXX='-Bstatic'
12955 ;;
12956 cxx*)
12957 # Compaq C++
12958 # Make sure the PIC flag is empty. It appears that all Alpha
12959 # Linux and Compaq Tru64 Unix objects are PIC.
12960 lt_prog_compiler_pic_CXX=
12961 lt_prog_compiler_static_CXX='-non_shared'
12962 ;;
12963 xlc* | xlC*)
12964 # IBM XL 8.0 on PPC
12965 lt_prog_compiler_wl_CXX='-Wl,'
12966 lt_prog_compiler_pic_CXX='-qpic'
12967 lt_prog_compiler_static_CXX='-qstaticlink'
12968 ;;
12969 *)
12970 case `$CC -V 2>&1 | sed 5q` in
12971 *Sun\ C*)
12972 # Sun C++ 5.9
12973 lt_prog_compiler_pic_CXX='-KPIC'
12974 lt_prog_compiler_static_CXX='-Bstatic'
12975 lt_prog_compiler_wl_CXX='-Qoption ld '
12976 ;;
12977 esac
12978 ;;
12979 esac
12980 ;;
12981 lynxos*)
12982 ;;
12983 m88k*)
12984 ;;
12985 mvs*)
12986 case $cc_basename in
12987 cxx*)
12988 lt_prog_compiler_pic_CXX='-W c,exportall'
12989 ;;
12990 *)
12991 ;;
12992 esac
12993 ;;
1504c9b8 12994 netbsd* | netbsdelf*-gnu)
9c60689e
DWT
12995 ;;
12996 *qnx* | *nto*)
12997 # QNX uses GNU C++, but need to define -shared option too, otherwise
12998 # it will coredump.
12999 lt_prog_compiler_pic_CXX='-fPIC -shared'
13000 ;;
13001 osf3* | osf4* | osf5*)
13002 case $cc_basename in
13003 KCC*)
13004 lt_prog_compiler_wl_CXX='--backend -Wl,'
13005 ;;
13006 RCC*)
13007 # Rational C++ 2.4.1
13008 lt_prog_compiler_pic_CXX='-pic'
13009 ;;
13010 cxx*)
13011 # Digital/Compaq C++
13012 lt_prog_compiler_wl_CXX='-Wl,'
13013 # Make sure the PIC flag is empty. It appears that all Alpha
13014 # Linux and Compaq Tru64 Unix objects are PIC.
13015 lt_prog_compiler_pic_CXX=
13016 lt_prog_compiler_static_CXX='-non_shared'
13017 ;;
13018 *)
13019 ;;
13020 esac
13021 ;;
13022 psos*)
13023 ;;
13024 solaris*)
13025 case $cc_basename in
13026 CC*)
13027 # Sun C++ 4.2, 5.x and Centerline C++
13028 lt_prog_compiler_pic_CXX='-KPIC'
13029 lt_prog_compiler_static_CXX='-Bstatic'
13030 lt_prog_compiler_wl_CXX='-Qoption ld '
13031 ;;
13032 gcx*)
13033 # Green Hills C++ Compiler
13034 lt_prog_compiler_pic_CXX='-PIC'
13035 ;;
13036 *)
13037 ;;
13038 esac
13039 ;;
13040 sunos4*)
13041 case $cc_basename in
13042 CC*)
13043 # Sun C++ 4.x
13044 lt_prog_compiler_pic_CXX='-pic'
13045 lt_prog_compiler_static_CXX='-Bstatic'
13046 ;;
13047 lcc*)
13048 # Lucid
13049 lt_prog_compiler_pic_CXX='-pic'
13050 ;;
13051 *)
13052 ;;
13053 esac
13054 ;;
13055 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13056 case $cc_basename in
13057 CC*)
13058 lt_prog_compiler_wl_CXX='-Wl,'
13059 lt_prog_compiler_pic_CXX='-KPIC'
13060 lt_prog_compiler_static_CXX='-Bstatic'
13061 ;;
13062 esac
13063 ;;
13064 tandem*)
13065 case $cc_basename in
13066 NCC*)
13067 # NonStop-UX NCC 3.20
13068 lt_prog_compiler_pic_CXX='-KPIC'
13069 ;;
13070 *)
13071 ;;
13072 esac
13073 ;;
13074 vxworks*)
13075 ;;
13076 *)
13077 lt_prog_compiler_can_build_shared_CXX=no
13078 ;;
13079 esac
13080 fi
13081
13082case $host_os in
13083 # For platforms which do not support PIC, -DPIC is meaningless:
13084 *djgpp*)
13085 lt_prog_compiler_pic_CXX=
13086 ;;
13087 *)
13088 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13089 ;;
13090esac
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13092$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13093
13094
13095
13096#
13097# Check to make sure the PIC flag actually works.
13098#
13099if test -n "$lt_prog_compiler_pic_CXX"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13101$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13102if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104else
13105 lt_cv_prog_compiler_pic_works_CXX=no
13106 ac_outfile=conftest.$ac_objext
13107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13108 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13109 # Insert the option either (1) after the last *FLAGS variable, or
13110 # (2) before a word containing "conftest.", or (3) at the end.
13111 # Note that $ac_compile itself does not contain backslashes and begins
13112 # with a dollar sign (not a hyphen), so the echo should work correctly.
13113 # The option is referenced via a variable to avoid confusing sed.
13114 lt_compile=`echo "$ac_compile" | $SED \
13115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117 -e 's:$: $lt_compiler_flag:'`
12833ad8 13118 (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
9c60689e
DWT
13119 (eval "$lt_compile" 2>conftest.err)
13120 ac_status=$?
13121 cat conftest.err >&5
12833ad8 13122 echo "$as_me:13122: \$? = $ac_status" >&5
9c60689e
DWT
13123 if (exit $ac_status) && test -s "$ac_outfile"; then
13124 # The compiler can only warn and ignore the option if not recognized
13125 # So say no if there are warnings other than the usual output.
13126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13129 lt_cv_prog_compiler_pic_works_CXX=yes
13130 fi
13131 fi
13132 $RM conftest*
13133
13134fi
13135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13136$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13137
13138if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13139 case $lt_prog_compiler_pic_CXX in
13140 "" | " "*) ;;
13141 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13142 esac
13143else
13144 lt_prog_compiler_pic_CXX=
13145 lt_prog_compiler_can_build_shared_CXX=no
13146fi
13147
13148fi
13149
13150
13151
47aaa820
DWT
13152#
13153# Check to make sure the static flag actually works.
13154#
13155wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13157$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13158if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160else
13161 lt_cv_prog_compiler_static_works_CXX=no
13162 save_LDFLAGS="$LDFLAGS"
13163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13166 # The linker can only warn and ignore the option if not recognized
13167 # So say no if there are warnings
13168 if test -s conftest.err; then
13169 # Append any errors to the config.log.
13170 cat conftest.err 1>&5
13171 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13173 if diff conftest.exp conftest.er2 >/dev/null; then
13174 lt_cv_prog_compiler_static_works_CXX=yes
13175 fi
13176 else
13177 lt_cv_prog_compiler_static_works_CXX=yes
13178 fi
13179 fi
13180 $RM -r conftest*
13181 LDFLAGS="$save_LDFLAGS"
13182
13183fi
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13185$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13186
13187if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13188 :
13189else
13190 lt_prog_compiler_static_CXX=
13191fi
13192
13193
13194
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13197$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13198if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200else
13201 lt_cv_prog_compiler_c_o_CXX=no
13202 $RM -r conftest 2>/dev/null
13203 mkdir conftest
13204 cd conftest
13205 mkdir out
13206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13207
13208 lt_compiler_flag="-o out/conftest2.$ac_objext"
13209 # Insert the option either (1) after the last *FLAGS variable, or
13210 # (2) before a word containing "conftest.", or (3) at the end.
13211 # Note that $ac_compile itself does not contain backslashes and begins
13212 # with a dollar sign (not a hyphen), so the echo should work correctly.
13213 lt_compile=`echo "$ac_compile" | $SED \
13214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13216 -e 's:$: $lt_compiler_flag:'`
12833ad8 13217 (eval echo "\"\$as_me:13217: $lt_compile\"" >&5)
47aaa820
DWT
13218 (eval "$lt_compile" 2>out/conftest.err)
13219 ac_status=$?
13220 cat out/conftest.err >&5
12833ad8 13221 echo "$as_me:13221: \$? = $ac_status" >&5
47aaa820
DWT
13222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13223 then
13224 # The compiler can only warn and ignore the option if not recognized
13225 # So say no if there are warnings
13226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13229 lt_cv_prog_compiler_c_o_CXX=yes
13230 fi
13231 fi
13232 chmod u+w . 2>&5
13233 $RM conftest*
13234 # SGI C++ compiler will create directory out/ii_files/ for
13235 # template instantiation
13236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13237 $RM out/* && rmdir out
13238 cd ..
13239 $RM -r conftest
13240 $RM conftest*
13241
13242fi
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13244$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13245
13246
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13250if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252else
13253 lt_cv_prog_compiler_c_o_CXX=no
13254 $RM -r conftest 2>/dev/null
13255 mkdir conftest
13256 cd conftest
13257 mkdir out
13258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13259
13260 lt_compiler_flag="-o out/conftest2.$ac_objext"
13261 # Insert the option either (1) after the last *FLAGS variable, or
13262 # (2) before a word containing "conftest.", or (3) at the end.
13263 # Note that $ac_compile itself does not contain backslashes and begins
13264 # with a dollar sign (not a hyphen), so the echo should work correctly.
13265 lt_compile=`echo "$ac_compile" | $SED \
13266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13268 -e 's:$: $lt_compiler_flag:'`
12833ad8 13269 (eval echo "\"\$as_me:13269: $lt_compile\"" >&5)
47aaa820
DWT
13270 (eval "$lt_compile" 2>out/conftest.err)
13271 ac_status=$?
13272 cat out/conftest.err >&5
12833ad8 13273 echo "$as_me:13273: \$? = $ac_status" >&5
47aaa820
DWT
13274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13275 then
13276 # The compiler can only warn and ignore the option if not recognized
13277 # So say no if there are warnings
13278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13281 lt_cv_prog_compiler_c_o_CXX=yes
13282 fi
13283 fi
13284 chmod u+w . 2>&5
13285 $RM conftest*
13286 # SGI C++ compiler will create directory out/ii_files/ for
13287 # template instantiation
13288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13289 $RM out/* && rmdir out
13290 cd ..
13291 $RM -r conftest
13292 $RM conftest*
13293
13294fi
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13296$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13297
13298
13299
13300
13301hard_links="nottested"
13302if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13303 # do not overwrite the value of need_locks provided by the user
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13305$as_echo_n "checking if we can lock with hard links... " >&6; }
13306 hard_links=yes
13307 $RM conftest*
13308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13309 touch conftest.a
13310 ln conftest.a conftest.b 2>&5 || hard_links=no
13311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13313$as_echo "$hard_links" >&6; }
13314 if test "$hard_links" = no; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13316$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13317 need_locks=warn
13318 fi
13319else
13320 need_locks=no
13321fi
13322
13323
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13326$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13327
13328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13329 case $host_os in
13330 aix[4-9]*)
13331 # If we're using GNU nm, then we don't want the "-C" option.
13332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13333 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13334 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13335 else
13336 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'
13337 fi
13338 ;;
13339 pw32*)
13340 export_symbols_cmds_CXX="$ltdll_cmds"
13341 ;;
13342 cygwin* | mingw* | cegcc*)
13343 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13344 ;;
1504c9b8
DWT
13345 linux* | k*bsd*-gnu)
13346 link_all_deplibs_CXX=no
13347 ;;
47aaa820
DWT
13348 *)
13349 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13350 ;;
13351 esac
13352 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13353
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13355$as_echo "$ld_shlibs_CXX" >&6; }
13356test "$ld_shlibs_CXX" = no && can_build_shared=no
13357
13358with_gnu_ld_CXX=$with_gnu_ld
13359
13360
13361
13362
13363
13364
13365#
13366# Do we need to explicitly link libc?
13367#
13368case "x$archive_cmds_need_lc_CXX" in
13369x|xyes)
13370 # Assume -lc should be added
13371 archive_cmds_need_lc_CXX=yes
13372
13373 if test "$enable_shared" = yes && test "$GCC" = yes; then
13374 case $archive_cmds_CXX in
13375 *'~'*)
13376 # FIXME: we may have to deal with multi-command sequences.
13377 ;;
13378 '$CC '*)
13379 # Test whether the compiler implicitly links with -lc since on some
13380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13381 # to ld, don't add -lc before -lgcc.
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13383$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13384 $RM conftest*
13385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13386
13387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13388 (eval $ac_compile) 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13391 test $ac_status = 0; } 2>conftest.err; then
13392 soname=conftest
13393 lib=conftest
13394 libobjs=conftest.$ac_objext
13395 deplibs=
13396 wl=$lt_prog_compiler_wl_CXX
13397 pic_flag=$lt_prog_compiler_pic_CXX
13398 compiler_flags=-v
13399 linker_flags=-v
13400 verstring=
13401 output_objdir=.
13402 libname=conftest
13403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13404 allow_undefined_flag_CXX=
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }
13410 then
13411 archive_cmds_need_lc_CXX=no
13412 else
13413 archive_cmds_need_lc_CXX=yes
13414 fi
13415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13416 else
13417 cat conftest.err 1>&5
13418 fi
13419 $RM conftest*
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13421$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13422 ;;
13423 esac
13424 fi
13425 ;;
13426esac
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13492$as_echo_n "checking dynamic linker characteristics... " >&6; }
13493
13494library_names_spec=
13495libname_spec='lib$name'
13496soname_spec=
13497shrext_cmds=".so"
13498postinstall_cmds=
13499postuninstall_cmds=
13500finish_cmds=
13501finish_eval=
13502shlibpath_var=
13503shlibpath_overrides_runpath=unknown
13504version_type=none
13505dynamic_linker="$host_os ld.so"
13506sys_lib_dlsearch_path_spec="/lib /usr/lib"
13507need_lib_prefix=unknown
13508hardcode_into_libs=no
13509
13510# when you set need_version to no, make sure it does not cause -set_version
13511# flags to be left without arguments
13512need_version=unknown
13513
13514case $host_os in
13515aix3*)
13516 version_type=linux
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13518 shlibpath_var=LIBPATH
13519
13520 # AIX 3 has no versioning support, so we append a major version to the name.
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 ;;
13523
13524aix[4-9]*)
13525 version_type=linux
13526 need_lib_prefix=no
13527 need_version=no
13528 hardcode_into_libs=yes
13529 if test "$host_cpu" = ia64; then
13530 # AIX 5 supports IA64
13531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 else
13534 # With GCC up to 2.95.x, collect2 would create an import file
13535 # for dependence libraries. The import file would start with
13536 # the line `#! .'. This would cause the generated library to
13537 # depend on `.', always an invalid library. This was fixed in
13538 # development snapshots of GCC prior to 3.0.
13539 case $host_os in
13540 aix4 | aix4.[01] | aix4.[01].*)
13541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13542 echo ' yes '
13543 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13544 :
13545 else
13546 can_build_shared=no
13547 fi
13548 ;;
13549 esac
13550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13551 # soname into executable. Probably we can add versioning support to
13552 # collect2, so additional links can be useful in future.
13553 if test "$aix_use_runtimelinking" = yes; then
13554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13555 # instead of lib<name>.a to let people know that these are not
13556 # typical AIX shared libraries.
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 else
13559 # We preserve .a as extension for shared libraries through AIX4.2
13560 # and later when we are not doing run time linking.
13561 library_names_spec='${libname}${release}.a $libname.a'
13562 soname_spec='${libname}${release}${shared_ext}$major'
13563 fi
13564 shlibpath_var=LIBPATH
13565 fi
13566 ;;
13567
13568amigaos*)
13569 case $host_cpu in
13570 powerpc)
13571 # Since July 2007 AmigaOS4 officially supports .so libraries.
13572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 ;;
13575 m68k)
13576 library_names_spec='$libname.ixlibrary $libname.a'
13577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13578 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13579 ;;
13580 esac
13581 ;;
13582
13583beos*)
13584 library_names_spec='${libname}${shared_ext}'
13585 dynamic_linker="$host_os ld.so"
13586 shlibpath_var=LIBRARY_PATH
13587 ;;
13588
13589bsdi[45]*)
13590 version_type=linux
13591 need_version=no
13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13593 soname_spec='${libname}${release}${shared_ext}$major'
13594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13598 # the default ld.so.conf also contains /usr/contrib/lib and
13599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13600 # libtool to hard-code these into programs
13601 ;;
9c60689e 13602
47aaa820
DWT
13603cygwin* | mingw* | pw32* | cegcc*)
13604 version_type=windows
13605 shrext_cmds=".dll"
13606 need_version=no
13607 need_lib_prefix=no
9c60689e 13608
47aaa820
DWT
13609 case $GCC,$host_os in
13610 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13611 library_names_spec='$libname.dll.a'
13612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13613 postinstall_cmds='base_file=`basename \${file}`~
13614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13615 dldir=$destdir/`dirname \$dlpath`~
13616 test -d \$dldir || mkdir -p \$dldir~
13617 $install_prog $dir/$dlname \$dldir/$dlname~
13618 chmod a+x \$dldir/$dlname~
13619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13621 fi'
13622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13623 dlpath=$dir/\$dldll~
13624 $RM \$dlpath'
13625 shlibpath_overrides_runpath=yes
9c60689e 13626
47aaa820
DWT
13627 case $host_os in
13628 cygwin*)
13629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13632 ;;
13633 mingw* | cegcc*)
13634 # MinGW DLLs use traditional 'lib' prefix
13635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13636 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13638 # It is most probably a Windows format PATH printed by
13639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13640 # path with ; separators, and with drive letters. We can handle the
13641 # drive letters (cygwin fileutils understands them), so leave them,
13642 # especially as we might pass files found there to a mingw objdump,
13643 # which wouldn't understand a cygwinified path. Ahh.
13644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13645 else
13646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13647 fi
13648 ;;
13649 pw32*)
13650 # pw32 DLLs use 'pw' prefix rather than 'lib'
13651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13652 ;;
13653 esac
13654 ;;
9c60689e 13655
47aaa820
DWT
13656 *)
13657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13658 ;;
13659 esac
13660 dynamic_linker='Win32 ld.exe'
13661 # FIXME: first we should search . and the directory the executable is in
13662 shlibpath_var=PATH
13663 ;;
9c60689e 13664
47aaa820
DWT
13665darwin* | rhapsody*)
13666 dynamic_linker="$host_os dyld"
13667 version_type=darwin
13668 need_lib_prefix=no
13669 need_version=no
13670 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13671 soname_spec='${libname}${release}${major}$shared_ext'
13672 shlibpath_overrides_runpath=yes
13673 shlibpath_var=DYLD_LIBRARY_PATH
13674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13675
47aaa820
DWT
13676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13677 ;;
9c60689e 13678
47aaa820
DWT
13679dgux*)
13680 version_type=linux
13681 need_lib_prefix=no
13682 need_version=no
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 ;;
9c60689e 13687
47aaa820
DWT
13688freebsd1*)
13689 dynamic_linker=no
13690 ;;
9c60689e 13691
47aaa820
DWT
13692freebsd* | dragonfly*)
13693 # DragonFly does not have aout. When/if they implement a new
13694 # versioning mechanism, adjust this.
13695 if test -x /usr/bin/objformat; then
13696 objformat=`/usr/bin/objformat`
13697 else
13698 case $host_os in
13699 freebsd[123]*) objformat=aout ;;
13700 *) objformat=elf ;;
13701 esac
13702 fi
13703 version_type=freebsd-$objformat
13704 case $version_type in
13705 freebsd-elf*)
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13707 need_version=no
13708 need_lib_prefix=no
13709 ;;
13710 freebsd-*)
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13712 need_version=yes
13713 ;;
13714 esac
13715 shlibpath_var=LD_LIBRARY_PATH
13716 case $host_os in
13717 freebsd2*)
13718 shlibpath_overrides_runpath=yes
13719 ;;
13720 freebsd3.[01]* | freebsdelf3.[01]*)
13721 shlibpath_overrides_runpath=yes
13722 hardcode_into_libs=yes
13723 ;;
13724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13726 shlibpath_overrides_runpath=no
13727 hardcode_into_libs=yes
13728 ;;
13729 *) # from 4.6 on, and DragonFly
13730 shlibpath_overrides_runpath=yes
13731 hardcode_into_libs=yes
13732 ;;
13733 esac
13734 ;;
9c60689e 13735
47aaa820
DWT
13736gnu*)
13737 version_type=linux
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 hardcode_into_libs=yes
13744 ;;
9c60689e 13745
47aaa820
DWT
13746hpux9* | hpux10* | hpux11*)
13747 # Give a soname corresponding to the major version so that dld.sl refuses to
13748 # link against other versions.
13749 version_type=sunos
13750 need_lib_prefix=no
13751 need_version=no
13752 case $host_cpu in
13753 ia64*)
13754 shrext_cmds='.so'
13755 hardcode_into_libs=yes
13756 dynamic_linker="$host_os dld.so"
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 if test "X$HPUX_IA64_MODE" = X32; then
13762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13763 else
13764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13765 fi
13766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13767 ;;
13768 hppa*64*)
13769 shrext_cmds='.sl'
13770 hardcode_into_libs=yes
13771 dynamic_linker="$host_os dld.sl"
13772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13778 ;;
13779 *)
13780 shrext_cmds='.sl'
13781 dynamic_linker="$host_os dld.sl"
13782 shlibpath_var=SHLIB_PATH
13783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 ;;
13787 esac
13788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13789 postinstall_cmds='chmod 555 $lib'
13790 ;;
9c60689e 13791
47aaa820
DWT
13792interix[3-9]*)
13793 version_type=linux
13794 need_lib_prefix=no
13795 need_version=no
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 shlibpath_overrides_runpath=no
13801 hardcode_into_libs=yes
13802 ;;
9c60689e 13803
47aaa820
DWT
13804irix5* | irix6* | nonstopux*)
13805 case $host_os in
13806 nonstopux*) version_type=nonstopux ;;
13807 *)
13808 if test "$lt_cv_prog_gnu_ld" = yes; then
13809 version_type=linux
13810 else
13811 version_type=irix
13812 fi ;;
13813 esac
13814 need_lib_prefix=no
13815 need_version=no
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13818 case $host_os in
13819 irix5* | nonstopux*)
13820 libsuff= shlibsuff=
13821 ;;
13822 *)
13823 case $LD in # libtool.m4 will add one of these switches to LD
13824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13825 libsuff= shlibsuff= libmagic=32-bit;;
13826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13827 libsuff=32 shlibsuff=N32 libmagic=N32;;
13828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13830 *) libsuff= shlibsuff= libmagic=never-match;;
13831 esac
13832 ;;
13833 esac
13834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13835 shlibpath_overrides_runpath=no
13836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13838 hardcode_into_libs=yes
13839 ;;
9c60689e 13840
47aaa820
DWT
13841# No shared lib support for Linux oldld, aout, or coff.
13842linux*oldld* | linux*aout* | linux*coff*)
13843 dynamic_linker=no
13844 ;;
9c60689e 13845
47aaa820 13846# This must be Linux ELF.
1504c9b8 13847linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13848 version_type=linux
13849 need_lib_prefix=no
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=no
13856 # Some binutils ld are patched to set DT_RUNPATH
13857 save_LDFLAGS=$LDFLAGS
13858 save_libdir=$libdir
13859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h. */
9c60689e 13863
47aaa820
DWT
13864int
13865main ()
13866{
9c60689e 13867
47aaa820
DWT
13868 ;
13869 return 0;
13870}
13871_ACEOF
13872if ac_fn_cxx_try_link "$LINENO"; then :
13873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13874 shlibpath_overrides_runpath=yes
9c60689e 13875fi
47aaa820
DWT
13876fi
13877rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 LDFLAGS=$save_LDFLAGS
13880 libdir=$save_libdir
9c60689e 13881
47aaa820
DWT
13882 # This implies no fast_install, which is unacceptable.
13883 # Some rework will be needed to allow for fast_install
13884 # before this can be enabled.
13885 hardcode_into_libs=yes
9c60689e 13886
47aaa820
DWT
13887 # Append ld.so.conf contents to the search path
13888 if test -f /etc/ld.so.conf; then
13889 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;/^$/d' | tr '\n' ' '`
13890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13891 fi
9c60689e 13892
47aaa820
DWT
13893 # We used to test for /lib/ld.so.1 and disable shared libraries on
13894 # powerpc, because MkLinux only supported shared libraries with the
13895 # GNU dynamic linker. Since this was broken with cross compilers,
13896 # most powerpc-linux boxes support dynamic linking these days and
13897 # people can always --disable-shared, the test was removed, and we
13898 # assume the GNU/Linux dynamic linker is in use.
13899 dynamic_linker='GNU/Linux ld.so'
9c60689e 13900 ;;
47aaa820 13901
1504c9b8
DWT
13902netbsdelf*-gnu)
13903 version_type=linux
13904 need_lib_prefix=no
13905 need_version=no
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 shlibpath_overrides_runpath=no
13910 hardcode_into_libs=yes
13911 dynamic_linker='NetBSD ld.elf_so'
13912 ;;
13913
47aaa820
DWT
13914netbsd*)
13915 version_type=sunos
13916 need_lib_prefix=no
13917 need_version=no
13918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13921 dynamic_linker='NetBSD (a.out) ld.so'
13922 else
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 dynamic_linker='NetBSD ld.elf_so'
13926 fi
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=yes
13929 hardcode_into_libs=yes
9c60689e 13930 ;;
9c60689e 13931
47aaa820
DWT
13932newsos6)
13933 version_type=linux
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=yes
13937 ;;
9c60689e 13938
47aaa820
DWT
13939*nto* | *qnx*)
13940 version_type=qnx
13941 need_lib_prefix=no
13942 need_version=no
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=no
13947 hardcode_into_libs=yes
13948 dynamic_linker='ldqnx.so'
13949 ;;
9c60689e 13950
47aaa820
DWT
13951openbsd*)
13952 version_type=sunos
13953 sys_lib_dlsearch_path_spec="/usr/lib"
13954 need_lib_prefix=no
13955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13956 case $host_os in
13957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13958 *) need_version=no ;;
13959 esac
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13964 case $host_os in
13965 openbsd2.[89] | openbsd2.[89].*)
13966 shlibpath_overrides_runpath=no
13967 ;;
13968 *)
13969 shlibpath_overrides_runpath=yes
13970 ;;
13971 esac
13972 else
13973 shlibpath_overrides_runpath=yes
13974 fi
13975 ;;
9c60689e 13976
47aaa820
DWT
13977os2*)
13978 libname_spec='$name'
13979 shrext_cmds=".dll"
13980 need_lib_prefix=no
13981 library_names_spec='$libname${shared_ext} $libname.a'
13982 dynamic_linker='OS/2 ld.exe'
13983 shlibpath_var=LIBPATH
13984 ;;
9c60689e 13985
47aaa820
DWT
13986osf3* | osf4* | osf5*)
13987 version_type=osf
13988 need_lib_prefix=no
13989 need_version=no
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13995 ;;
9c60689e 13996
47aaa820
DWT
13997rdos*)
13998 dynamic_linker=no
13999 ;;
9c60689e 14000
47aaa820
DWT
14001solaris*)
14002 version_type=linux
14003 need_lib_prefix=no
14004 need_version=no
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14008 shlibpath_overrides_runpath=yes
14009 hardcode_into_libs=yes
14010 # ldd complains unless libraries are executable
14011 postinstall_cmds='chmod +x $lib'
14012 ;;
9c60689e 14013
47aaa820
DWT
14014sunos4*)
14015 version_type=sunos
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=yes
14020 if test "$with_gnu_ld" = yes; then
14021 need_lib_prefix=no
14022 fi
14023 need_version=yes
14024 ;;
9c60689e 14025
47aaa820
DWT
14026sysv4 | sysv4.3*)
14027 version_type=linux
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 case $host_vendor in
14032 sni)
14033 shlibpath_overrides_runpath=no
14034 need_lib_prefix=no
14035 runpath_var=LD_RUN_PATH
9c60689e 14036 ;;
47aaa820
DWT
14037 siemens)
14038 need_lib_prefix=no
9c60689e 14039 ;;
47aaa820
DWT
14040 motorola)
14041 need_lib_prefix=no
14042 need_version=no
14043 shlibpath_overrides_runpath=no
14044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14045 ;;
14046 esac
9c60689e 14047 ;;
9c60689e 14048
47aaa820
DWT
14049sysv4*MP*)
14050 if test -d /usr/nec ;then
14051 version_type=linux
14052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14053 soname_spec='$libname${shared_ext}.$major'
14054 shlibpath_var=LD_LIBRARY_PATH
14055 fi
14056 ;;
9c60689e 14057
47aaa820
DWT
14058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14059 version_type=freebsd-elf
14060 need_lib_prefix=no
14061 need_version=no
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14067 if test "$with_gnu_ld" = yes; then
14068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14069 else
14070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14071 case $host_os in
14072 sco3.2v5*)
14073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14074 ;;
14075 esac
14076 fi
14077 sys_lib_dlsearch_path_spec='/usr/lib'
14078 ;;
9c60689e 14079
47aaa820
DWT
14080tpf*)
14081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14082 version_type=linux
14083 need_lib_prefix=no
14084 need_version=no
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 shlibpath_var=LD_LIBRARY_PATH
14087 shlibpath_overrides_runpath=no
14088 hardcode_into_libs=yes
14089 ;;
9c60689e 14090
47aaa820
DWT
14091uts4*)
14092 version_type=linux
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 ;;
9c60689e 14097
47aaa820
DWT
14098*)
14099 dynamic_linker=no
e9c9a47c
DWT
14100 ;;
14101esac
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14103$as_echo "$dynamic_linker" >&6; }
14104test "$dynamic_linker" = no && can_build_shared=no
14105
14106variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14107if test "$GCC" = yes; then
14108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 14109fi
9c60689e 14110
e9c9a47c
DWT
14111if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 14113fi
e9c9a47c
DWT
14114if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 14116fi
9c60689e 14117
9c60689e 14118
9c60689e 14119
9c60689e 14120
47aaa820 14121
47aaa820 14122
47aaa820 14123
9c60689e 14124
9c60689e 14125
47aaa820 14126
47aaa820 14127
47aaa820 14128
47aaa820 14129
47aaa820 14130
47aaa820 14131
47aaa820 14132
47aaa820 14133
9c60689e 14134
9c60689e 14135
9c60689e 14136
9c60689e 14137
9c60689e 14138
e9c9a47c
DWT
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14154$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14155hardcode_action_CXX=
14156if test -n "$hardcode_libdir_flag_spec_CXX" ||
14157 test -n "$runpath_var_CXX" ||
14158 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14159
14160 # We can hardcode non-existent directories.
14161 if test "$hardcode_direct_CXX" != no &&
14162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14163 # have to relink, otherwise we might link with an installed library
14164 # when we should be linking with a yet-to-be-installed one
14165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14166 test "$hardcode_minus_L_CXX" != no; then
14167 # Linking always hardcodes the temporary library directory.
14168 hardcode_action_CXX=relink
14169 else
14170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14171 hardcode_action_CXX=immediate
14172 fi
14173else
14174 # We cannot hardcode anything, or else we can only hardcode existing
14175 # directories.
14176 hardcode_action_CXX=unsupported
14177fi
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14179$as_echo "$hardcode_action_CXX" >&6; }
14180
14181if test "$hardcode_action_CXX" = relink ||
14182 test "$inherit_rpath_CXX" = yes; then
14183 # Fast installation is not supported
14184 enable_fast_install=no
14185elif test "$shlibpath_overrides_runpath" = yes ||
14186 test "$enable_shared" = no; then
14187 # Fast installation is not necessary
14188 enable_fast_install=needless
47aaa820 14189fi
9c60689e 14190
47aaa820 14191
47aaa820 14192
e9c9a47c
DWT
14193
14194
14195
14196
14197 fi # test -n "$compiler"
14198
14199 CC=$lt_save_CC
14200 LDCXX=$LD
14201 LD=$lt_save_LD
14202 GCC=$lt_save_GCC
14203 with_gnu_ld=$lt_save_with_gnu_ld
14204 lt_cv_path_LDCXX=$lt_cv_path_LD
14205 lt_cv_path_LD=$lt_save_path_LD
14206 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14207 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14208fi # test "$_lt_caught_CXX_error" != yes
14209
14210ac_ext=c
14211ac_cpp='$CPP $CPPFLAGS'
14212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14214ac_compiler_gnu=$ac_cv_c_compiler_gnu
14215
14216
14217ac_ext=mm
14218ac_cpp='$OBJCXXCPP $CPPFLAGS'
14219ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14220ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14221ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14222if test -n "$ac_tool_prefix"; then
14223 for ac_prog in g++ objc++ objcxx c++ CXX
14224 do
14225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
632b71ea
DWT
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 14229if test "${ac_cv_prog_OBJCXX+set}" = set; then :
632b71ea
DWT
14230 $as_echo_n "(cached) " >&6
14231else
e9c9a47c
DWT
14232 if test -n "$OBJCXX"; then
14233 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
632b71ea
DWT
14234else
14235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236for as_dir in $PATH
14237do
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14242 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
632b71ea
DWT
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14245 fi
14246done
14247 done
14248IFS=$as_save_IFS
14249
14250fi
14251fi
e9c9a47c
DWT
14252OBJCXX=$ac_cv_prog_OBJCXX
14253if test -n "$OBJCXX"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14255$as_echo "$OBJCXX" >&6; }
632b71ea
DWT
14256else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258$as_echo "no" >&6; }
14259fi
14260
14261
e9c9a47c
DWT
14262 test -n "$OBJCXX" && break
14263 done
632b71ea 14264fi
e9c9a47c
DWT
14265if test -z "$OBJCXX"; then
14266 ac_ct_OBJCXX=$OBJCXX
14267 for ac_prog in g++ objc++ objcxx c++ CXX
47aaa820
DWT
14268do
14269 # Extract the first word of "$ac_prog", so it can be a program name with args.
14270set dummy $ac_prog; ac_word=$2
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14272$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 14273if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
47aaa820
DWT
14274 $as_echo_n "(cached) " >&6
14275else
e9c9a47c
DWT
14276 if test -n "$ac_ct_OBJCXX"; then
14277 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
47aaa820
DWT
14278else
14279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280for as_dir in $PATH
14281do
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14286 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
47aaa820
DWT
14287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14289 fi
14290done
14291 done
14292IFS=$as_save_IFS
9c60689e 14293
9c60689e 14294fi
9c60689e 14295fi
e9c9a47c
DWT
14296ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
14297if test -n "$ac_ct_OBJCXX"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
14299$as_echo "$ac_ct_OBJCXX" >&6; }
47aaa820
DWT
14300else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302$as_echo "no" >&6; }
9c60689e
DWT
14303fi
14304
14305
e9c9a47c 14306 test -n "$ac_ct_OBJCXX" && break
47aaa820 14307done
e9c9a47c
DWT
14308
14309 if test "x$ac_ct_OBJCXX" = x; then
14310 OBJCXX="g++"
14311 else
14312 case $cross_compiling:$ac_tool_warned in
14313yes:)
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14316ac_tool_warned=yes ;;
14317esac
14318 OBJCXX=$ac_ct_OBJCXX
14319 fi
14320fi
14321
14322# Provide some information about the compiler.
14323$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
14324set X $ac_compile
14325ac_compiler=$2
14326for ac_option in --version -v -V -qversion; do
14327 { { ac_try="$ac_compiler $ac_option >&5"
632b71ea
DWT
14328case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331esac
14332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14333$as_echo "$ac_try_echo"; } >&5
e9c9a47c 14334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
632b71ea 14335 ac_status=$?
e9c9a47c
DWT
14336 if test -s conftest.err; then
14337 sed '10a\
14338... rest of stderr output deleted ...
14339 10q' conftest.err >conftest.er1
14340 cat conftest.er1 >&5
14341 fi
14342 rm -f conftest.er1 conftest.err
632b71ea
DWT
14343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14344 test $ac_status = 0; }
e9c9a47c 14345done
9c60689e 14346
e9c9a47c
DWT
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
14348$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
14349if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
632b71ea
DWT
14350 $as_echo_n "(cached) " >&6
14351else
e9c9a47c 14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 14353/* end confdefs.h. */
e9c9a47c
DWT
14354
14355int
14356main ()
14357{
14358#ifndef __GNUC__
14359 choke me
14360#endif
14361
14362 ;
14363 return 0;
14364}
632b71ea 14365_ACEOF
e9c9a47c
DWT
14366if ac_fn_objcxx_try_compile "$LINENO"; then :
14367 ac_compiler_gnu=yes
14368else
14369 ac_compiler_gnu=no
632b71ea 14370fi
e9c9a47c
DWT
14371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 14373
632b71ea 14374fi
e9c9a47c
DWT
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
14376$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
14377if test $ac_compiler_gnu = yes; then
14378 GOBJCXX=yes
14379else
14380 GOBJCXX=
632b71ea 14381fi
e9c9a47c
DWT
14382ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
14383ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
14384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
14385$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
14386if test "${ac_cv_prog_objcxx_g+set}" = set; then :
632b71ea 14387 $as_echo_n "(cached) " >&6
47aaa820 14388else
e9c9a47c
DWT
14389 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
14390 ac_objcxx_werror_flag=yes
14391 ac_cv_prog_objcxx_g=no
14392 OBJCXXFLAGS="-g"
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 14394/* end confdefs.h. */
9c60689e 14395
e9c9a47c
DWT
14396int
14397main ()
14398{
9c60689e 14399
e9c9a47c
DWT
14400 ;
14401 return 0;
14402}
14403_ACEOF
14404if ac_fn_objcxx_try_compile "$LINENO"; then :
14405 ac_cv_prog_objcxx_g=yes
632b71ea 14406else
e9c9a47c
DWT
14407 OBJCXXFLAGS=""
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h. */
9c60689e 14410
e9c9a47c
DWT
14411int
14412main ()
14413{
9c60689e 14414
e9c9a47c
DWT
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 14420
47aaa820 14421else
e9c9a47c
DWT
14422 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
14423 OBJCXXFLAGS="-g"
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h. */
9c60689e 14426
e9c9a47c
DWT
14427int
14428main ()
14429{
9c60689e 14430
e9c9a47c
DWT
14431 ;
14432 return 0;
14433}
14434_ACEOF
14435if ac_fn_objcxx_try_compile "$LINENO"; then :
14436 ac_cv_prog_objcxx_g=yes
47aaa820 14437fi
e9c9a47c 14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 14439fi
e9c9a47c 14440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 14441fi
e9c9a47c
DWT
14442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
790e5246 14444fi
e9c9a47c
DWT
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
14446$as_echo "$ac_cv_prog_objcxx_g" >&6; }
14447if test "$ac_test_OBJCXXFLAGS" = set; then
14448 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
14449elif test $ac_cv_prog_objcxx_g = yes; then
14450 if test "$GOBJCXX" = yes; then
14451 OBJCXXFLAGS="-g -O2"
14452 else
14453 OBJCXXFLAGS="-g"
632b71ea 14454 fi
632b71ea 14455else
e9c9a47c
DWT
14456 if test "$GOBJCXX" = yes; then
14457 OBJCXXFLAGS="-O2"
14458 else
14459 OBJCXXFLAGS=
14460 fi
632b71ea 14461fi
e9c9a47c
DWT
14462ac_ext=c
14463ac_cpp='$CPP $CPPFLAGS'
14464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14466ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 14467
b816329d
JF
14468ac_ext=cpp
14469ac_cpp='$CXXCPP $CPPFLAGS'
14470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14473
9c60689e 14474
1504c9b8
DWT
14475# Check whether --enable-universal-binary was given.
14476if test "${enable_universal_binary+set}" = set; then :
14477 enableval=$enable_universal_binary;
14478 case $enableval in #(
14479 no) :
14480 ;; #(
14481 *) :
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
14484$as_echo_n "checking for universal binary support... " >&6; }
14485 case $host_vendor in #(
14486 apple) :
14487
14488 case $host_cpu in #(
9d13f949 14489 armv6|i386|x86_64) :
1504c9b8 14490
9d13f949 14491 for cy_arch in armv6 i386 x86_64; do
1504c9b8
DWT
14492 cy_save_CXXFLAGS=$CXXFLAGS
14493
14494 for element in "-arch $cy_arch"; do
14495 haveit=
14496 for x in $CXXFLAGS; do
14497
14498 acl_save_prefix="$prefix"
14499 prefix="$acl_final_prefix"
14500 acl_save_exec_prefix="$exec_prefix"
14501 exec_prefix="$acl_final_exec_prefix"
14502 eval x=\"$x\"
14503 exec_prefix="$acl_save_exec_prefix"
14504 prefix="$acl_save_prefix"
14505
14506 if test "X$x" = "X$element"; then
14507 haveit=yes
14508 break
14509 fi
14510 done
14511 if test -z "$haveit"; then
14512 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14513 fi
14514 done
14515
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h. */
14518
14519int
14520main ()
14521{
14522
14523 ;
14524 return 0;
14525}
14526_ACEOF
b816329d 14527if ac_fn_cxx_try_link "$LINENO"; then :
1504c9b8
DWT
14528
14529
14530 for element in $cy_arch; do
14531 haveit=
14532 for x in $cy_arches; do
14533
14534 acl_save_prefix="$prefix"
14535 prefix="$acl_final_prefix"
14536 acl_save_exec_prefix="$exec_prefix"
14537 exec_prefix="$acl_final_exec_prefix"
14538 eval x=\"$x\"
14539 exec_prefix="$acl_save_exec_prefix"
14540 prefix="$acl_save_prefix"
14541
14542 if test "X$x" = "X$element"; then
14543 haveit=yes
14544 break
14545 fi
14546 done
14547 if test -z "$haveit"; then
14548 cy_arches="${cy_arches}${cy_arches:+ }$element"
14549 fi
14550 done
14551
14552
14553 for element in "-arch $cy_arch"; do
14554 haveit=
14555 for x in $CFLAGS; do
14556
14557 acl_save_prefix="$prefix"
14558 prefix="$acl_final_prefix"
14559 acl_save_exec_prefix="$exec_prefix"
14560 exec_prefix="$acl_final_exec_prefix"
14561 eval x=\"$x\"
14562 exec_prefix="$acl_save_exec_prefix"
14563 prefix="$acl_save_prefix"
14564
14565 if test "X$x" = "X$element"; then
14566 haveit=yes
14567 break
14568 fi
14569 done
14570 if test -z "$haveit"; then
14571 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14572 fi
14573 done
14574
14575
14576 for element in "-arch $cy_arch"; do
14577 haveit=
14578 for x in $LDFLAGS; do
14579
14580 acl_save_prefix="$prefix"
14581 prefix="$acl_final_prefix"
14582 acl_save_exec_prefix="$exec_prefix"
14583 exec_prefix="$acl_final_exec_prefix"
14584 eval x=\"$x\"
14585 exec_prefix="$acl_save_exec_prefix"
14586 prefix="$acl_save_prefix"
14587
14588 if test "X$x" = "X$element"; then
14589 haveit=yes
14590 break
14591 fi
14592 done
14593 if test -z "$haveit"; then
14594 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
14595 fi
14596 done
14597
14598
14599 for element in "-arch $cy_arch"; do
14600 haveit=
14601 for x in $OBJCXXFLAGS; do
14602
14603 acl_save_prefix="$prefix"
14604 prefix="$acl_final_prefix"
14605 acl_save_exec_prefix="$exec_prefix"
14606 exec_prefix="$acl_final_exec_prefix"
14607 eval x=\"$x\"
14608 exec_prefix="$acl_save_exec_prefix"
14609 prefix="$acl_save_prefix"
14610
14611 if test "X$x" = "X$element"; then
14612 haveit=yes
14613 break
14614 fi
14615 done
14616 if test -z "$haveit"; then
14617 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
14618 fi
14619 done
14620
14621
14622else
14623
14624 CXXFLAGS=$cy_save_CXXFLAGS
14625
14626fi
14627rm -f core conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14629 done
14630 ;; #(
14631 *) :
14632 ;;
14633esac
14634 ;; #(
14635 *) :
14636 ;;
14637esac
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
14639$as_echo "${cy_arches-no}" >&6; }
14640 ;;
14641esac
14642
14643else
14644
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
14646$as_echo_n "checking for universal binary support... " >&6; }
14647 case $host_vendor in #(
14648 apple) :
14649
14650 case $host_cpu in #(
9d13f949 14651 armv6|i386|x86_64) :
1504c9b8 14652
9d13f949 14653 for cy_arch in armv6 i386 x86_64; do
1504c9b8
DWT
14654 cy_save_CXXFLAGS=$CXXFLAGS
14655
14656 for element in "-arch $cy_arch"; do
14657 haveit=
14658 for x in $CXXFLAGS; do
14659
14660 acl_save_prefix="$prefix"
14661 prefix="$acl_final_prefix"
14662 acl_save_exec_prefix="$exec_prefix"
14663 exec_prefix="$acl_final_exec_prefix"
14664 eval x=\"$x\"
14665 exec_prefix="$acl_save_exec_prefix"
14666 prefix="$acl_save_prefix"
14667
14668 if test "X$x" = "X$element"; then
14669 haveit=yes
14670 break
14671 fi
14672 done
14673 if test -z "$haveit"; then
14674 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14675 fi
14676 done
14677
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679/* end confdefs.h. */
14680
14681int
14682main ()
14683{
14684
14685 ;
14686 return 0;
14687}
14688_ACEOF
b816329d 14689if ac_fn_cxx_try_link "$LINENO"; then :
1504c9b8
DWT
14690
14691
14692 for element in $cy_arch; do
14693 haveit=
14694 for x in $cy_arches; do
14695
14696 acl_save_prefix="$prefix"
14697 prefix="$acl_final_prefix"
14698 acl_save_exec_prefix="$exec_prefix"
14699 exec_prefix="$acl_final_exec_prefix"
14700 eval x=\"$x\"
14701 exec_prefix="$acl_save_exec_prefix"
14702 prefix="$acl_save_prefix"
14703
14704 if test "X$x" = "X$element"; then
14705 haveit=yes
14706 break
14707 fi
14708 done
14709 if test -z "$haveit"; then
14710 cy_arches="${cy_arches}${cy_arches:+ }$element"
14711 fi
14712 done
14713
14714
14715 for element in "-arch $cy_arch"; do
14716 haveit=
14717 for x in $CFLAGS; do
14718
14719 acl_save_prefix="$prefix"
14720 prefix="$acl_final_prefix"
14721 acl_save_exec_prefix="$exec_prefix"
14722 exec_prefix="$acl_final_exec_prefix"
14723 eval x=\"$x\"
14724 exec_prefix="$acl_save_exec_prefix"
14725 prefix="$acl_save_prefix"
14726
14727 if test "X$x" = "X$element"; then
14728 haveit=yes
14729 break
14730 fi
14731 done
14732 if test -z "$haveit"; then
14733 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14734 fi
14735 done
14736
14737
14738 for element in "-arch $cy_arch"; do
14739 haveit=
14740 for x in $LDFLAGS; do
14741
14742 acl_save_prefix="$prefix"
14743 prefix="$acl_final_prefix"
14744 acl_save_exec_prefix="$exec_prefix"
14745 exec_prefix="$acl_final_exec_prefix"
14746 eval x=\"$x\"
14747 exec_prefix="$acl_save_exec_prefix"
14748 prefix="$acl_save_prefix"
14749
14750 if test "X$x" = "X$element"; then
14751 haveit=yes
14752 break
14753 fi
14754 done
14755 if test -z "$haveit"; then
14756 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
14757 fi
14758 done
14759
14760
14761 for element in "-arch $cy_arch"; do
14762 haveit=
14763 for x in $OBJCXXFLAGS; do
14764
14765 acl_save_prefix="$prefix"
14766 prefix="$acl_final_prefix"
14767 acl_save_exec_prefix="$exec_prefix"
14768 exec_prefix="$acl_final_exec_prefix"
14769 eval x=\"$x\"
14770 exec_prefix="$acl_save_exec_prefix"
14771 prefix="$acl_save_prefix"
14772
14773 if test "X$x" = "X$element"; then
14774 haveit=yes
14775 break
14776 fi
14777 done
14778 if test -z "$haveit"; then
14779 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
14780 fi
14781 done
14782
14783
14784else
14785
14786 CXXFLAGS=$cy_save_CXXFLAGS
14787
14788fi
14789rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 done
14792 ;; #(
14793 *) :
14794 ;;
14795esac
14796 ;; #(
14797 *) :
14798 ;;
14799esac
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
14801$as_echo "${cy_arches-no}" >&6; }
14802
14803fi
14804
14805
e9c9a47c
DWT
14806# Check whether --with-frameworks was given.
14807if test "${with_frameworks+set}" = set; then :
14808 withval=$with_frameworks;
1504c9b8 14809 for cy_framework in $withval; do
9c60689e 14810
1504c9b8 14811 for element in -F$cy_framework; do
e9c9a47c
DWT
14812 haveit=
14813 for x in $CFLAGS; do
9c60689e 14814
e9c9a47c
DWT
14815 acl_save_prefix="$prefix"
14816 prefix="$acl_final_prefix"
14817 acl_save_exec_prefix="$exec_prefix"
14818 exec_prefix="$acl_final_exec_prefix"
14819 eval x=\"$x\"
14820 exec_prefix="$acl_save_exec_prefix"
14821 prefix="$acl_save_prefix"
14822
14823 if test "X$x" = "X$element"; then
14824 haveit=yes
14825 break
14826 fi
14827 done
14828 if test -z "$haveit"; then
14829 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14830 fi
9c60689e 14831 done
9c60689e 14832
94690cff 14833
1504c9b8 14834 for element in -F$cy_framework; do
e9c9a47c
DWT
14835 haveit=
14836 for x in $CXXFLAGS; do
9c60689e 14837
e9c9a47c
DWT
14838 acl_save_prefix="$prefix"
14839 prefix="$acl_final_prefix"
14840 acl_save_exec_prefix="$exec_prefix"
14841 exec_prefix="$acl_final_exec_prefix"
14842 eval x=\"$x\"
14843 exec_prefix="$acl_save_exec_prefix"
14844 prefix="$acl_save_prefix"
9c60689e 14845
e9c9a47c
DWT
14846 if test "X$x" = "X$element"; then
14847 haveit=yes
14848 break
14849 fi
14850 done
14851 if test -z "$haveit"; then
14852 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14853 fi
14854 done
9c60689e 14855
e9c9a47c 14856
1504c9b8 14857 for element in -F$cy_framework; do
e9c9a47c
DWT
14858 haveit=
14859 for x in $OBJCCXXFLAGS; do
14860
14861 acl_save_prefix="$prefix"
14862 prefix="$acl_final_prefix"
14863 acl_save_exec_prefix="$exec_prefix"
14864 exec_prefix="$acl_final_exec_prefix"
14865 eval x=\"$x\"
14866 exec_prefix="$acl_save_exec_prefix"
14867 prefix="$acl_save_prefix"
14868
14869 if test "X$x" = "X$element"; then
14870 haveit=yes
14871 break
14872 fi
14873 done
14874 if test -z "$haveit"; then
14875 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14876 fi
9c60689e 14877 done
632b71ea 14878
e9c9a47c 14879 done
9c60689e 14880
e9c9a47c 14881fi
9c60689e 14882
9c60689e 14883
632b71ea 14884 apr_found="no"
9c60689e 14885
632b71ea
DWT
14886 if test "$target_os" = "os2-emx"; then
14887 # Scripts don't pass test -x on OS/2
14888 TEST_X="test -f"
14889 else
14890 TEST_X="test -x"
14891 fi
9c60689e 14892
632b71ea 14893 acceptable_majors="1"
9c60689e 14894
632b71ea
DWT
14895 apr_temp_acceptable_apr_config=""
14896 for apr_temp_major in $acceptable_majors
14897 do
14898 case $apr_temp_major in
14899 0)
14900 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14901 ;;
14902 *)
14903 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14904 ;;
14905 esac
14906 done
9c60689e 14907
632b71ea
DWT
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14909$as_echo_n "checking for APR... " >&6; }
9c60689e 14910
632b71ea
DWT
14911# Check whether --with-apr was given.
14912if test "${with_apr+set}" = set; then :
14913 withval=$with_apr;
14914 if test "$withval" = "no" || test "$withval" = "yes"; then
12833ad8 14915 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
632b71ea 14916 fi
9c60689e 14917
632b71ea
DWT
14918 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14919 do
14920 for lookdir in "$withval/bin" "$withval"
14921 do
14922 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14923 apr_config="$lookdir/$apr_temp_apr_config_file"
9c60689e 14924
632b71ea
DWT
14925 apr_found="yes"
14926 break 2
14927 fi
14928 done
14929 done
9c60689e 14930
632b71ea
DWT
14931 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14932 apr_config="$withval"
14933 apr_found="yes"
14934 fi
9c60689e 14935
632b71ea 14936 if test "$apr_found" != "yes"; then
12833ad8 14937 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 14938 fi
9c60689e 14939
632b71ea 14940else
9c60689e 14941
632b71ea
DWT
14942 if test -n "1" && test "1" = "1"; then
14943 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14944 do
14945 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14946 apr_config="$apr_temp_apr_config_file"
9c60689e 14947
632b71ea
DWT
14948 apr_found="yes"
14949 break
14950 else
14951 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14952 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14953 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
9c60689e 14954
632b71ea
DWT
14955 apr_found="yes"
14956 break 2
14957 fi
14958 done
14959 fi
14960 done
14961 fi
14962 if test "$apr_found" = "no" && test -d ""; then
14963 apr_temp_abs_srcdir="`cd && pwd`"
14964 apr_found="reconfig"
14965 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14966 case $apr_bundled_major in
14967 "")
12833ad8 14968 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
632b71ea
DWT
14969 ;;
14970 0)
14971 apr_temp_apr_config_file="apr-config"
14972 ;;
14973 *)
14974 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14975 ;;
14976 esac
14977 if test -n ""; then
14978 apr_config="/$apr_temp_apr_config_file"
14979 else
14980 apr_config="/$apr_temp_apr_config_file"
14981 fi
14982 fi
9c60689e 14983
632b71ea 14984fi
9c60689e 14985
9c60689e 14986
632b71ea
DWT
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14988$as_echo "$apr_found" >&6; }
9c60689e 14989
632b71ea
DWT
14990case $apr_found in #(
14991 yes) :
9c60689e
DWT
14992
14993
632b71ea
DWT
14994 for element in `$apr_config --includes`; do
14995 haveit=
14996 for x in $CPPFLAGS; do
9c60689e
DWT
14997
14998 acl_save_prefix="$prefix"
14999 prefix="$acl_final_prefix"
15000 acl_save_exec_prefix="$exec_prefix"
15001 exec_prefix="$acl_final_exec_prefix"
632b71ea 15002 eval x=\"$x\"
9c60689e
DWT
15003 exec_prefix="$acl_save_exec_prefix"
15004 prefix="$acl_save_prefix"
15005
632b71ea
DWT
15006 if test "X$x" = "X$element"; then
15007 haveit=yes
15008 break
9c60689e 15009 fi
632b71ea
DWT
15010 done
15011 if test -z "$haveit"; then
15012 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9c60689e 15013 fi
632b71ea 15014 done
9c60689e 15015
632b71ea 15016 LTLIBAPR=`$apr_config --link-libtool`
9c60689e 15017
632b71ea
DWT
15018 ;; #(
15019 *) :
12833ad8 15020 as_fn_error $? "You need apr" "$LINENO" 5 ;;
632b71ea
DWT
15021esac
15022
15023
5053a6d1
DWT
15024# Check whether --enable-javascript was given.
15025if test "${enable_javascript+set}" = set; then :
15026 enableval=$enable_javascript;
15027 case $enableval in #(
15028 yes) :
9c60689e
DWT
15029
15030
9c60689e 15031
5053a6d1
DWT
15032pkg_failed=no
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15034$as_echo_n "checking for WEBKIT... " >&6; }
15035
12833ad8
JF
15036if test -n "$WEBKIT_CFLAGS"; then
15037 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15038 elif test -n "$PKG_CONFIG"; then
15039 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15041 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15042 ac_status=$?
15043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15044 test $ac_status = 0; }; then
15045 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
9c60689e 15046else
5053a6d1 15047 pkg_failed=yes
9c60689e 15048fi
12833ad8
JF
15049 else
15050 pkg_failed=untried
632b71ea 15051fi
12833ad8
JF
15052if test -n "$WEBKIT_LIBS"; then
15053 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15054 elif test -n "$PKG_CONFIG"; then
15055 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15057 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15058 ac_status=$?
15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060 test $ac_status = 0; }; then
15061 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
9c60689e 15062else
5053a6d1 15063 pkg_failed=yes
9c60689e 15064fi
12833ad8
JF
15065 else
15066 pkg_failed=untried
9c60689e
DWT
15067fi
15068
15069
15070
5053a6d1 15071if test $pkg_failed = yes; then
12833ad8
JF
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073$as_echo "no" >&6; }
9c60689e 15074
5053a6d1
DWT
15075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15076 _pkg_short_errors_supported=yes
9c60689e 15077else
5053a6d1
DWT
15078 _pkg_short_errors_supported=no
15079fi
15080 if test $_pkg_short_errors_supported = yes; then
12833ad8 15081 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
5053a6d1 15082 else
12833ad8 15083 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
5053a6d1
DWT
15084 fi
15085 # Put the nasty error message in config.log where it belongs
15086 echo "$WEBKIT_PKG_ERRORS" >&5
632b71ea 15087
5053a6d1
DWT
15088
15089
15090pkg_failed=no
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15092$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 15093
12833ad8
JF
15094if test -n "$WEBKIT_CFLAGS"; then
15095 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15096 elif test -n "$PKG_CONFIG"; then
15097 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15099 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15100 ac_status=$?
15101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15102 test $ac_status = 0; }; then
15103 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15104else
15105 pkg_failed=yes
9c60689e 15106fi
12833ad8
JF
15107 else
15108 pkg_failed=untried
5053a6d1 15109fi
12833ad8
JF
15110if test -n "$WEBKIT_LIBS"; then
15111 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15112 elif test -n "$PKG_CONFIG"; then
15113 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15115 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15118 test $ac_status = 0; }; then
15119 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15120else
15121 pkg_failed=yes
15122fi
12833ad8
JF
15123 else
15124 pkg_failed=untried
632b71ea
DWT
15125fi
15126
15127
15128
5053a6d1 15129if test $pkg_failed = yes; then
12833ad8
JF
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131$as_echo "no" >&6; }
5053a6d1
DWT
15132
15133if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15134 _pkg_short_errors_supported=yes
15135else
15136 _pkg_short_errors_supported=no
15137fi
15138 if test $_pkg_short_errors_supported = yes; then
12833ad8 15139 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
5053a6d1 15140 else
12833ad8 15141 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
5053a6d1
DWT
15142 fi
15143 # Put the nasty error message in config.log where it belongs
15144 echo "$WEBKIT_PKG_ERRORS" >&5
15145
5053a6d1 15146
632b71ea 15147
5053a6d1
DWT
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15149$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15150if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15152else
632b71ea 15153
5053a6d1
DWT
15154 ac_check_framework_save_LIBS=$LIBS
15155 LIBS="-framework JavaScriptCore $LIBS"
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h. */
632b71ea 15158
5053a6d1 15159 #include <JavaScriptCore/JSBase.h>
632b71ea 15160
5053a6d1
DWT
15161int
15162main ()
15163{
15164JSEvaluateScript(0, 0, 0, 0, 0, 0);
15165 ;
15166 return 0;
15167}
15168_ACEOF
15169if ac_fn_cxx_try_link "$LINENO"; then :
632b71ea 15170
5053a6d1 15171 ac_cv_framework_JavaScriptCore=yes
632b71ea 15172
5053a6d1
DWT
15173else
15174 ac_cv_framework_JavaScriptCore=no
15175fi
15176rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_framework_save_LIBS
632b71ea 15179
5053a6d1
DWT
15180fi
15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15182$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15183 if test $ac_cv_framework_JavaScriptCore = yes; then :
632b71ea
DWT
15184
15185
5053a6d1
DWT
15186 for element in "-framework JavaScriptCore $LIBS"; do
15187 haveit=
15188 for x in $LIBS; do
632b71ea
DWT
15189
15190 acl_save_prefix="$prefix"
15191 prefix="$acl_final_prefix"
15192 acl_save_exec_prefix="$exec_prefix"
15193 exec_prefix="$acl_final_exec_prefix"
5053a6d1 15194 eval x=\"$x\"
632b71ea
DWT
15195 exec_prefix="$acl_save_exec_prefix"
15196 prefix="$acl_save_prefix"
15197
5053a6d1
DWT
15198 if test "X$x" = "X$element"; then
15199 haveit=yes
15200 break
15201 fi
15202 done
15203 if test -z "$haveit"; then
15204 LIBS="${LIBS}${LIBS:+ }$element"
15205 fi
15206 done
15207
15208 CY_EXECUTE=1
632b71ea 15209
5053a6d1
DWT
15210fi
15211
15212elif test $pkg_failed = untried; then
12833ad8
JF
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214$as_echo "no" >&6; }
5053a6d1
DWT
15215
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15218$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15219if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15221else
15222
15223 ac_check_framework_save_LIBS=$LIBS
15224 LIBS="-framework JavaScriptCore $LIBS"
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226/* end confdefs.h. */
15227
15228 #include <JavaScriptCore/JSBase.h>
15229
15230int
15231main ()
15232{
15233JSEvaluateScript(0, 0, 0, 0, 0, 0);
15234 ;
15235 return 0;
15236}
15237_ACEOF
15238if ac_fn_cxx_try_link "$LINENO"; then :
15239
15240 ac_cv_framework_JavaScriptCore=yes
15241
15242else
15243 ac_cv_framework_JavaScriptCore=no
15244fi
15245rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247 LIBS=$ac_check_framework_save_LIBS
15248
15249fi
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15251$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15252 if test $ac_cv_framework_JavaScriptCore = yes; then :
15253
15254
15255 for element in "-framework JavaScriptCore $LIBS"; do
15256 haveit=
15257 for x in $LIBS; do
632b71ea
DWT
15258
15259 acl_save_prefix="$prefix"
15260 prefix="$acl_final_prefix"
15261 acl_save_exec_prefix="$exec_prefix"
15262 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
15263 eval x=\"$x\"
15264 exec_prefix="$acl_save_exec_prefix"
15265 prefix="$acl_save_prefix"
632b71ea 15266
5053a6d1
DWT
15267 if test "X$x" = "X$element"; then
15268 haveit=yes
15269 break
15270 fi
15271 done
15272 if test -z "$haveit"; then
15273 LIBS="${LIBS}${LIBS:+ }$element"
15274 fi
15275 done
15276
15277 CY_EXECUTE=1
15278
15279fi
15280
15281else
15282 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15283 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285$as_echo "yes" >&6; }
15286
15287 CY_EXECUTE=1
15288
15289 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15290 haveit=
15291 for x in $CXXFLAGS; do
632b71ea 15292
5053a6d1
DWT
15293 acl_save_prefix="$prefix"
15294 prefix="$acl_final_prefix"
15295 acl_save_exec_prefix="$exec_prefix"
15296 exec_prefix="$acl_final_exec_prefix"
15297 eval x=\"$x\"
632b71ea
DWT
15298 exec_prefix="$acl_save_exec_prefix"
15299 prefix="$acl_save_prefix"
15300
5053a6d1
DWT
15301 if test "X$x" = "X$element"; then
15302 haveit=yes
15303 break
632b71ea 15304 fi
5053a6d1
DWT
15305 done
15306 if test -z "$haveit"; then
15307 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
632b71ea 15308 fi
5053a6d1 15309 done
632b71ea 15310
632b71ea 15311
5053a6d1
DWT
15312 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15313 haveit=
15314 for x in $LIBS; do
632b71ea
DWT
15315
15316 acl_save_prefix="$prefix"
15317 prefix="$acl_final_prefix"
15318 acl_save_exec_prefix="$exec_prefix"
15319 exec_prefix="$acl_final_exec_prefix"
15320 eval x=\"$x\"
15321 exec_prefix="$acl_save_exec_prefix"
15322 prefix="$acl_save_prefix"
15323
5053a6d1
DWT
15324 if test "X$x" = "X$element"; then
15325 haveit=yes
15326 break
15327 fi
15328 done
15329 if test -z "$haveit"; then
15330 LIBS="${LIBS}${LIBS:+ }$element"
15331 fi
15332 done
632b71ea 15333
632b71ea 15334
5053a6d1 15335fi
632b71ea 15336
5053a6d1 15337elif test $pkg_failed = untried; then
12833ad8
JF
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339$as_echo "no" >&6; }
632b71ea 15340
632b71ea 15341
5053a6d1
DWT
15342pkg_failed=no
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15344$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 15345
12833ad8
JF
15346if test -n "$WEBKIT_CFLAGS"; then
15347 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15348 elif test -n "$PKG_CONFIG"; then
15349 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15351 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15352 ac_status=$?
15353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15354 test $ac_status = 0; }; then
15355 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15356else
15357 pkg_failed=yes
15358fi
12833ad8
JF
15359 else
15360 pkg_failed=untried
5053a6d1 15361fi
12833ad8
JF
15362if test -n "$WEBKIT_LIBS"; then
15363 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15364 elif test -n "$PKG_CONFIG"; then
15365 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
15366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15367 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15368 ac_status=$?
15369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15370 test $ac_status = 0; }; then
15371 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15372else
15373 pkg_failed=yes
15374fi
12833ad8
JF
15375 else
15376 pkg_failed=untried
5053a6d1 15377fi
9c60689e 15378
9c60689e
DWT
15379
15380
5053a6d1 15381if test $pkg_failed = yes; then
12833ad8
JF
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15383$as_echo "no" >&6; }
5053a6d1
DWT
15384
15385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15386 _pkg_short_errors_supported=yes
15387else
15388 _pkg_short_errors_supported=no
15389fi
15390 if test $_pkg_short_errors_supported = yes; then
12833ad8 15391 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
5053a6d1 15392 else
12833ad8 15393 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
5053a6d1
DWT
15394 fi
15395 # Put the nasty error message in config.log where it belongs
15396 echo "$WEBKIT_PKG_ERRORS" >&5
15397
9c60689e 15398
9c60689e 15399
5053a6d1
DWT
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15401$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15402if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15403 $as_echo_n "(cached) " >&6
15404else
9c60689e 15405
5053a6d1
DWT
15406 ac_check_framework_save_LIBS=$LIBS
15407 LIBS="-framework JavaScriptCore $LIBS"
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409/* end confdefs.h. */
9c60689e 15410
5053a6d1 15411 #include <JavaScriptCore/JSBase.h>
9c60689e 15412
5053a6d1
DWT
15413int
15414main ()
15415{
15416JSEvaluateScript(0, 0, 0, 0, 0, 0);
15417 ;
15418 return 0;
15419}
15420_ACEOF
15421if ac_fn_cxx_try_link "$LINENO"; then :
15422
15423 ac_cv_framework_JavaScriptCore=yes
15424
15425else
15426 ac_cv_framework_JavaScriptCore=no
15427fi
15428rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 LIBS=$ac_check_framework_save_LIBS
15431
15432fi
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15434$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15435 if test $ac_cv_framework_JavaScriptCore = yes; then :
15436
15437
15438 for element in "-framework JavaScriptCore $LIBS"; do
632b71ea 15439 haveit=
5053a6d1 15440 for x in $LIBS; do
9c60689e 15441
632b71ea
DWT
15442 acl_save_prefix="$prefix"
15443 prefix="$acl_final_prefix"
15444 acl_save_exec_prefix="$exec_prefix"
15445 exec_prefix="$acl_final_exec_prefix"
15446 eval x=\"$x\"
15447 exec_prefix="$acl_save_exec_prefix"
15448 prefix="$acl_save_prefix"
15449
15450 if test "X$x" = "X$element"; then
15451 haveit=yes
15452 break
15453 fi
15454 done
15455 if test -z "$haveit"; then
5053a6d1 15456 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
15457 fi
15458 done
b128dfee 15459
5053a6d1
DWT
15460 CY_EXECUTE=1
15461
15462fi
c823f118 15463
5053a6d1 15464elif test $pkg_failed = untried; then
12833ad8
JF
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466$as_echo "no" >&6; }
5053a6d1
DWT
15467
15468
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15470$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15471if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
c823f118
DWT
15472 $as_echo_n "(cached) " >&6
15473else
15474
5053a6d1
DWT
15475 ac_check_framework_save_LIBS=$LIBS
15476 LIBS="-framework JavaScriptCore $LIBS"
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 15478/* end confdefs.h. */
5053a6d1
DWT
15479
15480 #include <JavaScriptCore/JSBase.h>
15481
632b71ea
DWT
15482int
15483main ()
15484{
5053a6d1 15485JSEvaluateScript(0, 0, 0, 0, 0, 0);
632b71ea
DWT
15486 ;
15487 return 0;
15488}
15489_ACEOF
5053a6d1
DWT
15490if ac_fn_cxx_try_link "$LINENO"; then :
15491
15492 ac_cv_framework_JavaScriptCore=yes
15493
15494else
15495 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
15496fi
15497rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
5053a6d1 15499 LIBS=$ac_check_framework_save_LIBS
b128dfee 15500
c823f118 15501fi
5053a6d1
DWT
15502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15503$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15504 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
15505
15506
5053a6d1
DWT
15507 for element in "-framework JavaScriptCore $LIBS"; do
15508 haveit=
15509 for x in $LIBS; do
15510
15511 acl_save_prefix="$prefix"
15512 prefix="$acl_final_prefix"
15513 acl_save_exec_prefix="$exec_prefix"
15514 exec_prefix="$acl_final_exec_prefix"
15515 eval x=\"$x\"
15516 exec_prefix="$acl_save_exec_prefix"
15517 prefix="$acl_save_prefix"
15518
15519 if test "X$x" = "X$element"; then
15520 haveit=yes
15521 break
15522 fi
15523 done
15524 if test -z "$haveit"; then
15525 LIBS="${LIBS}${LIBS:+ }$element"
15526 fi
15527 done
c823f118 15528
5053a6d1 15529 CY_EXECUTE=1
b128dfee 15530
632b71ea 15531fi
c823f118 15532
5053a6d1
DWT
15533else
15534 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15535 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15537$as_echo "yes" >&6; }
c823f118 15538
5053a6d1 15539 CY_EXECUTE=1
b128dfee 15540
5053a6d1
DWT
15541 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15542 haveit=
15543 for x in $CXXFLAGS; do
b128dfee 15544
5053a6d1
DWT
15545 acl_save_prefix="$prefix"
15546 prefix="$acl_final_prefix"
15547 acl_save_exec_prefix="$exec_prefix"
15548 exec_prefix="$acl_final_exec_prefix"
15549 eval x=\"$x\"
15550 exec_prefix="$acl_save_exec_prefix"
15551 prefix="$acl_save_prefix"
c823f118 15552
5053a6d1
DWT
15553 if test "X$x" = "X$element"; then
15554 haveit=yes
15555 break
15556 fi
15557 done
15558 if test -z "$haveit"; then
15559 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15560 fi
15561 done
c823f118 15562
c823f118 15563
5053a6d1
DWT
15564 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15565 haveit=
15566 for x in $LIBS; do
15567
15568 acl_save_prefix="$prefix"
15569 prefix="$acl_final_prefix"
15570 acl_save_exec_prefix="$exec_prefix"
15571 exec_prefix="$acl_final_exec_prefix"
15572 eval x=\"$x\"
15573 exec_prefix="$acl_save_exec_prefix"
15574 prefix="$acl_save_prefix"
15575
15576 if test "X$x" = "X$element"; then
15577 haveit=yes
15578 break
15579 fi
15580 done
15581 if test -z "$haveit"; then
15582 LIBS="${LIBS}${LIBS:+ }$element"
15583 fi
15584 done
c823f118 15585
632b71ea 15586
b128dfee
DWT
15587fi
15588
5053a6d1
DWT
15589else
15590 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15591 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15593$as_echo "yes" >&6; }
b128dfee 15594
5053a6d1 15595 CY_EXECUTE=1
c823f118 15596
5053a6d1
DWT
15597 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15598 haveit=
15599 for x in $CXXFLAGS; do
c823f118 15600
5053a6d1
DWT
15601 acl_save_prefix="$prefix"
15602 prefix="$acl_final_prefix"
15603 acl_save_exec_prefix="$exec_prefix"
15604 exec_prefix="$acl_final_exec_prefix"
15605 eval x=\"$x\"
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
c823f118 15608
5053a6d1
DWT
15609 if test "X$x" = "X$element"; then
15610 haveit=yes
15611 break
15612 fi
15613 done
15614 if test -z "$haveit"; then
15615 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15616 fi
15617 done
c823f118 15618
b66977f1 15619
5053a6d1
DWT
15620 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15621 haveit=
15622 for x in $LIBS; do
15623
15624 acl_save_prefix="$prefix"
15625 prefix="$acl_final_prefix"
15626 acl_save_exec_prefix="$exec_prefix"
15627 exec_prefix="$acl_final_exec_prefix"
15628 eval x=\"$x\"
15629 exec_prefix="$acl_save_exec_prefix"
15630 prefix="$acl_save_prefix"
15631
15632 if test "X$x" = "X$element"; then
15633 haveit=yes
15634 break
15635 fi
15636 done
15637 if test -z "$haveit"; then
15638 LIBS="${LIBS}${LIBS:+ }$element"
15639 fi
15640 done
15641
15642
15643fi
15644
15645 ;; #(
15646 no) :
15647
15648 CY_EXECUTE=0
15649
15650 ;; #(
15651 JavaScriptCore) :
b66977f1
DWT
15652
15653
15654
15655pkg_failed=no
15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15657$as_echo_n "checking for WEBKIT... " >&6; }
15658
12833ad8
JF
15659if test -n "$WEBKIT_CFLAGS"; then
15660 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15661 elif test -n "$PKG_CONFIG"; then
15662 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
15663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15664 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15665 ac_status=$?
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; }; then
15668 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15669else
15670 pkg_failed=yes
15671fi
12833ad8
JF
15672 else
15673 pkg_failed=untried
b66977f1 15674fi
12833ad8
JF
15675if test -n "$WEBKIT_LIBS"; then
15676 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15677 elif test -n "$PKG_CONFIG"; then
15678 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
15679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15680 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15681 ac_status=$?
15682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15683 test $ac_status = 0; }; then
15684 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15685else
15686 pkg_failed=yes
15687fi
12833ad8
JF
15688 else
15689 pkg_failed=untried
b66977f1
DWT
15690fi
15691
15692
15693
15694if test $pkg_failed = yes; then
12833ad8
JF
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696$as_echo "no" >&6; }
b66977f1
DWT
15697
15698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15699 _pkg_short_errors_supported=yes
15700else
15701 _pkg_short_errors_supported=no
15702fi
15703 if test $_pkg_short_errors_supported = yes; then
12833ad8 15704 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
b66977f1 15705 else
12833ad8 15706 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
b66977f1
DWT
15707 fi
15708 # Put the nasty error message in config.log where it belongs
15709 echo "$WEBKIT_PKG_ERRORS" >&5
15710
b66977f1
DWT
15711
15712
15713pkg_failed=no
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15715$as_echo_n "checking for WEBKIT... " >&6; }
15716
12833ad8
JF
15717if test -n "$WEBKIT_CFLAGS"; then
15718 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15719 elif test -n "$PKG_CONFIG"; then
15720 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
15721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15722 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15723 ac_status=$?
15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725 test $ac_status = 0; }; then
15726 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15727else
15728 pkg_failed=yes
15729fi
12833ad8
JF
15730 else
15731 pkg_failed=untried
b66977f1 15732fi
12833ad8
JF
15733if test -n "$WEBKIT_LIBS"; then
15734 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15735 elif test -n "$PKG_CONFIG"; then
15736 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
15737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15738 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15739 ac_status=$?
15740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15741 test $ac_status = 0; }; then
15742 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15743else
15744 pkg_failed=yes
15745fi
12833ad8
JF
15746 else
15747 pkg_failed=untried
b66977f1
DWT
15748fi
15749
15750
15751
15752if test $pkg_failed = yes; then
12833ad8
JF
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754$as_echo "no" >&6; }
b66977f1
DWT
15755
15756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15757 _pkg_short_errors_supported=yes
15758else
15759 _pkg_short_errors_supported=no
15760fi
15761 if test $_pkg_short_errors_supported = yes; then
12833ad8 15762 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 15763 else
12833ad8 15764 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
15765 fi
15766 # Put the nasty error message in config.log where it belongs
15767 echo "$WEBKIT_PKG_ERRORS" >&5
15768
b66977f1
DWT
15769
15770
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15772$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15773if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15774 $as_echo_n "(cached) " >&6
15775else
15776
15777 ac_check_framework_save_LIBS=$LIBS
15778 LIBS="-framework JavaScriptCore $LIBS"
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780/* end confdefs.h. */
15781
15782 #include <JavaScriptCore/JSBase.h>
15783
15784int
15785main ()
15786{
15787JSEvaluateScript(0, 0, 0, 0, 0, 0);
15788 ;
15789 return 0;
15790}
15791_ACEOF
15792if ac_fn_cxx_try_link "$LINENO"; then :
15793
15794 ac_cv_framework_JavaScriptCore=yes
15795
15796else
15797 ac_cv_framework_JavaScriptCore=no
15798fi
15799rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_framework_save_LIBS
15802
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15805$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15806 if test $ac_cv_framework_JavaScriptCore = yes; then :
15807
15808
15809 for element in "-framework JavaScriptCore $LIBS"; do
15810 haveit=
15811 for x in $LIBS; do
15812
15813 acl_save_prefix="$prefix"
15814 prefix="$acl_final_prefix"
15815 acl_save_exec_prefix="$exec_prefix"
15816 exec_prefix="$acl_final_exec_prefix"
15817 eval x=\"$x\"
15818 exec_prefix="$acl_save_exec_prefix"
15819 prefix="$acl_save_prefix"
15820
15821 if test "X$x" = "X$element"; then
15822 haveit=yes
15823 break
15824 fi
15825 done
15826 if test -z "$haveit"; then
15827 LIBS="${LIBS}${LIBS:+ }$element"
15828 fi
15829 done
15830
15831 CY_EXECUTE=1
15832
15833fi
15834
15835elif test $pkg_failed = untried; then
12833ad8
JF
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837$as_echo "no" >&6; }
b66977f1
DWT
15838
15839
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15841$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15842if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15843 $as_echo_n "(cached) " >&6
15844else
15845
15846 ac_check_framework_save_LIBS=$LIBS
15847 LIBS="-framework JavaScriptCore $LIBS"
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849/* end confdefs.h. */
15850
15851 #include <JavaScriptCore/JSBase.h>
15852
15853int
15854main ()
15855{
15856JSEvaluateScript(0, 0, 0, 0, 0, 0);
15857 ;
15858 return 0;
15859}
15860_ACEOF
15861if ac_fn_cxx_try_link "$LINENO"; then :
15862
15863 ac_cv_framework_JavaScriptCore=yes
15864
15865else
15866 ac_cv_framework_JavaScriptCore=no
15867fi
15868rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_framework_save_LIBS
15871
15872fi
15873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15874$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15875 if test $ac_cv_framework_JavaScriptCore = yes; then :
15876
15877
15878 for element in "-framework JavaScriptCore $LIBS"; do
15879 haveit=
15880 for x in $LIBS; do
15881
15882 acl_save_prefix="$prefix"
15883 prefix="$acl_final_prefix"
15884 acl_save_exec_prefix="$exec_prefix"
15885 exec_prefix="$acl_final_exec_prefix"
15886 eval x=\"$x\"
15887 exec_prefix="$acl_save_exec_prefix"
15888 prefix="$acl_save_prefix"
15889
15890 if test "X$x" = "X$element"; then
15891 haveit=yes
15892 break
15893 fi
15894 done
15895 if test -z "$haveit"; then
15896 LIBS="${LIBS}${LIBS:+ }$element"
15897 fi
15898 done
15899
15900 CY_EXECUTE=1
15901
15902fi
15903
15904else
15905 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15906 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15908$as_echo "yes" >&6; }
15909
15910 CY_EXECUTE=1
15911
15912 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15913 haveit=
15914 for x in $CXXFLAGS; do
15915
15916 acl_save_prefix="$prefix"
15917 prefix="$acl_final_prefix"
15918 acl_save_exec_prefix="$exec_prefix"
15919 exec_prefix="$acl_final_exec_prefix"
15920 eval x=\"$x\"
15921 exec_prefix="$acl_save_exec_prefix"
15922 prefix="$acl_save_prefix"
15923
15924 if test "X$x" = "X$element"; then
15925 haveit=yes
15926 break
15927 fi
15928 done
15929 if test -z "$haveit"; then
15930 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15931 fi
15932 done
15933
15934
15935 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15936 haveit=
15937 for x in $LIBS; do
15938
15939 acl_save_prefix="$prefix"
15940 prefix="$acl_final_prefix"
15941 acl_save_exec_prefix="$exec_prefix"
15942 exec_prefix="$acl_final_exec_prefix"
15943 eval x=\"$x\"
15944 exec_prefix="$acl_save_exec_prefix"
15945 prefix="$acl_save_prefix"
15946
15947 if test "X$x" = "X$element"; then
15948 haveit=yes
15949 break
15950 fi
15951 done
15952 if test -z "$haveit"; then
15953 LIBS="${LIBS}${LIBS:+ }$element"
15954 fi
15955 done
15956
15957
15958fi
15959
15960elif test $pkg_failed = untried; then
12833ad8
JF
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962$as_echo "no" >&6; }
b66977f1
DWT
15963
15964
15965pkg_failed=no
15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15967$as_echo_n "checking for WEBKIT... " >&6; }
15968
12833ad8
JF
15969if test -n "$WEBKIT_CFLAGS"; then
15970 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15971 elif test -n "$PKG_CONFIG"; then
15972 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
15973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15974 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15975 ac_status=$?
15976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977 test $ac_status = 0; }; then
15978 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15979else
15980 pkg_failed=yes
15981fi
12833ad8
JF
15982 else
15983 pkg_failed=untried
b66977f1 15984fi
12833ad8
JF
15985if test -n "$WEBKIT_LIBS"; then
15986 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15987 elif test -n "$PKG_CONFIG"; then
15988 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
15989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15990 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15991 ac_status=$?
15992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15993 test $ac_status = 0; }; then
15994 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15995else
15996 pkg_failed=yes
15997fi
12833ad8
JF
15998 else
15999 pkg_failed=untried
b66977f1
DWT
16000fi
16001
16002
16003
16004if test $pkg_failed = yes; then
12833ad8
JF
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16006$as_echo "no" >&6; }
b66977f1
DWT
16007
16008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16009 _pkg_short_errors_supported=yes
16010else
16011 _pkg_short_errors_supported=no
16012fi
16013 if test $_pkg_short_errors_supported = yes; then
12833ad8 16014 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 16015 else
12833ad8 16016 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
16017 fi
16018 # Put the nasty error message in config.log where it belongs
16019 echo "$WEBKIT_PKG_ERRORS" >&5
16020
b66977f1
DWT
16021
16022
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16024$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16025if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16026 $as_echo_n "(cached) " >&6
16027else
16028
16029 ac_check_framework_save_LIBS=$LIBS
16030 LIBS="-framework JavaScriptCore $LIBS"
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032/* end confdefs.h. */
16033
16034 #include <JavaScriptCore/JSBase.h>
16035
16036int
16037main ()
16038{
16039JSEvaluateScript(0, 0, 0, 0, 0, 0);
16040 ;
16041 return 0;
16042}
16043_ACEOF
16044if ac_fn_cxx_try_link "$LINENO"; then :
16045
16046 ac_cv_framework_JavaScriptCore=yes
16047
16048else
16049 ac_cv_framework_JavaScriptCore=no
16050fi
16051rm -f core conftest.err conftest.$ac_objext \
16052 conftest$ac_exeext conftest.$ac_ext
16053 LIBS=$ac_check_framework_save_LIBS
16054
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16057$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16058 if test $ac_cv_framework_JavaScriptCore = yes; then :
16059
16060
16061 for element in "-framework JavaScriptCore $LIBS"; do
16062 haveit=
16063 for x in $LIBS; do
16064
16065 acl_save_prefix="$prefix"
16066 prefix="$acl_final_prefix"
16067 acl_save_exec_prefix="$exec_prefix"
16068 exec_prefix="$acl_final_exec_prefix"
16069 eval x=\"$x\"
16070 exec_prefix="$acl_save_exec_prefix"
16071 prefix="$acl_save_prefix"
16072
16073 if test "X$x" = "X$element"; then
16074 haveit=yes
16075 break
16076 fi
16077 done
16078 if test -z "$haveit"; then
16079 LIBS="${LIBS}${LIBS:+ }$element"
16080 fi
16081 done
16082
16083 CY_EXECUTE=1
16084
16085fi
16086
16087elif test $pkg_failed = untried; then
12833ad8
JF
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089$as_echo "no" >&6; }
b66977f1
DWT
16090
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16093$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16094if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16095 $as_echo_n "(cached) " >&6
16096else
16097
16098 ac_check_framework_save_LIBS=$LIBS
16099 LIBS="-framework JavaScriptCore $LIBS"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h. */
16102
16103 #include <JavaScriptCore/JSBase.h>
16104
16105int
16106main ()
16107{
16108JSEvaluateScript(0, 0, 0, 0, 0, 0);
16109 ;
16110 return 0;
16111}
16112_ACEOF
16113if ac_fn_cxx_try_link "$LINENO"; then :
16114
16115 ac_cv_framework_JavaScriptCore=yes
16116
16117else
16118 ac_cv_framework_JavaScriptCore=no
16119fi
16120rm -f core conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_check_framework_save_LIBS
16123
16124fi
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16126$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16127 if test $ac_cv_framework_JavaScriptCore = yes; then :
16128
16129
16130 for element in "-framework JavaScriptCore $LIBS"; do
16131 haveit=
16132 for x in $LIBS; do
16133
16134 acl_save_prefix="$prefix"
16135 prefix="$acl_final_prefix"
16136 acl_save_exec_prefix="$exec_prefix"
16137 exec_prefix="$acl_final_exec_prefix"
16138 eval x=\"$x\"
16139 exec_prefix="$acl_save_exec_prefix"
16140 prefix="$acl_save_prefix"
16141
16142 if test "X$x" = "X$element"; then
16143 haveit=yes
16144 break
16145 fi
16146 done
16147 if test -z "$haveit"; then
16148 LIBS="${LIBS}${LIBS:+ }$element"
16149 fi
16150 done
16151
16152 CY_EXECUTE=1
16153
16154fi
16155
16156else
16157 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16158 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16160$as_echo "yes" >&6; }
16161
16162 CY_EXECUTE=1
16163
16164 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16165 haveit=
16166 for x in $CXXFLAGS; do
16167
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
16182 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16183 fi
16184 done
16185
16186
16187 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16188 haveit=
16189 for x in $LIBS; do
16190
16191 acl_save_prefix="$prefix"
16192 prefix="$acl_final_prefix"
16193 acl_save_exec_prefix="$exec_prefix"
16194 exec_prefix="$acl_final_exec_prefix"
16195 eval x=\"$x\"
16196 exec_prefix="$acl_save_exec_prefix"
16197 prefix="$acl_save_prefix"
16198
16199 if test "X$x" = "X$element"; then
16200 haveit=yes
16201 break
16202 fi
16203 done
16204 if test -z "$haveit"; then
16205 LIBS="${LIBS}${LIBS:+ }$element"
16206 fi
16207 done
16208
16209
16210fi
16211
16212else
16213 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16214 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16216$as_echo "yes" >&6; }
16217
16218 CY_EXECUTE=1
16219
16220 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16221 haveit=
16222 for x in $CXXFLAGS; do
16223
16224 acl_save_prefix="$prefix"
16225 prefix="$acl_final_prefix"
16226 acl_save_exec_prefix="$exec_prefix"
16227 exec_prefix="$acl_final_exec_prefix"
16228 eval x=\"$x\"
16229 exec_prefix="$acl_save_exec_prefix"
16230 prefix="$acl_save_prefix"
16231
16232 if test "X$x" = "X$element"; then
16233 haveit=yes
16234 break
16235 fi
16236 done
16237 if test -z "$haveit"; then
16238 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16239 fi
16240 done
16241
16242
16243 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16244 haveit=
16245 for x in $LIBS; do
16246
16247 acl_save_prefix="$prefix"
16248 prefix="$acl_final_prefix"
16249 acl_save_exec_prefix="$exec_prefix"
16250 exec_prefix="$acl_final_exec_prefix"
16251 eval x=\"$x\"
16252 exec_prefix="$acl_save_exec_prefix"
16253 prefix="$acl_save_prefix"
16254
16255 if test "X$x" = "X$element"; then
16256 haveit=yes
16257 break
16258 fi
16259 done
16260 if test -z "$haveit"; then
16261 LIBS="${LIBS}${LIBS:+ }$element"
16262 fi
16263 done
16264
16265
16266fi
16267
b66977f1 16268 ;; #(
5053a6d1 16269 *) :
12833ad8 16270 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
5053a6d1
DWT
16271esac
16272
16273else
b66977f1
DWT
16274
16275
16276
16277pkg_failed=no
16278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16279$as_echo_n "checking for WEBKIT... " >&6; }
16280
12833ad8
JF
16281if test -n "$WEBKIT_CFLAGS"; then
16282 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16283 elif test -n "$PKG_CONFIG"; then
16284 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16286 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16287 ac_status=$?
16288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289 test $ac_status = 0; }; then
16290 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16291else
16292 pkg_failed=yes
16293fi
12833ad8
JF
16294 else
16295 pkg_failed=untried
b66977f1 16296fi
12833ad8
JF
16297if test -n "$WEBKIT_LIBS"; then
16298 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16299 elif test -n "$PKG_CONFIG"; then
16300 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16302 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16303 ac_status=$?
16304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16305 test $ac_status = 0; }; then
16306 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16307else
16308 pkg_failed=yes
16309fi
12833ad8
JF
16310 else
16311 pkg_failed=untried
b66977f1
DWT
16312fi
16313
16314
16315
16316if test $pkg_failed = yes; then
12833ad8
JF
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318$as_echo "no" >&6; }
b66977f1
DWT
16319
16320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16321 _pkg_short_errors_supported=yes
16322else
16323 _pkg_short_errors_supported=no
16324fi
16325 if test $_pkg_short_errors_supported = yes; then
12833ad8 16326 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
b66977f1 16327 else
12833ad8 16328 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
b66977f1
DWT
16329 fi
16330 # Put the nasty error message in config.log where it belongs
16331 echo "$WEBKIT_PKG_ERRORS" >&5
16332
b66977f1
DWT
16333
16334
16335pkg_failed=no
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16337$as_echo_n "checking for WEBKIT... " >&6; }
16338
12833ad8
JF
16339if test -n "$WEBKIT_CFLAGS"; then
16340 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16341 elif test -n "$PKG_CONFIG"; then
16342 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16344 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16345 ac_status=$?
16346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16347 test $ac_status = 0; }; then
16348 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16349else
16350 pkg_failed=yes
16351fi
12833ad8
JF
16352 else
16353 pkg_failed=untried
b66977f1 16354fi
12833ad8
JF
16355if test -n "$WEBKIT_LIBS"; then
16356 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16357 elif test -n "$PKG_CONFIG"; then
16358 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16360 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16361 ac_status=$?
16362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16363 test $ac_status = 0; }; then
16364 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16365else
16366 pkg_failed=yes
16367fi
12833ad8
JF
16368 else
16369 pkg_failed=untried
b66977f1
DWT
16370fi
16371
16372
16373
16374if test $pkg_failed = yes; then
12833ad8
JF
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376$as_echo "no" >&6; }
b66977f1
DWT
16377
16378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16379 _pkg_short_errors_supported=yes
16380else
16381 _pkg_short_errors_supported=no
16382fi
16383 if test $_pkg_short_errors_supported = yes; then
12833ad8 16384 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 16385 else
12833ad8 16386 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
16387 fi
16388 # Put the nasty error message in config.log where it belongs
16389 echo "$WEBKIT_PKG_ERRORS" >&5
16390
b66977f1
DWT
16391
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16394$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16395if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16396 $as_echo_n "(cached) " >&6
16397else
16398
16399 ac_check_framework_save_LIBS=$LIBS
16400 LIBS="-framework JavaScriptCore $LIBS"
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402/* end confdefs.h. */
16403
16404 #include <JavaScriptCore/JSBase.h>
16405
16406int
16407main ()
16408{
16409JSEvaluateScript(0, 0, 0, 0, 0, 0);
16410 ;
16411 return 0;
16412}
16413_ACEOF
16414if ac_fn_cxx_try_link "$LINENO"; then :
16415
16416 ac_cv_framework_JavaScriptCore=yes
16417
16418else
16419 ac_cv_framework_JavaScriptCore=no
16420fi
16421rm -f core conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LIBS=$ac_check_framework_save_LIBS
16424
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16427$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16428 if test $ac_cv_framework_JavaScriptCore = yes; then :
16429
16430
16431 for element in "-framework JavaScriptCore $LIBS"; do
16432 haveit=
16433 for x in $LIBS; do
16434
16435 acl_save_prefix="$prefix"
16436 prefix="$acl_final_prefix"
16437 acl_save_exec_prefix="$exec_prefix"
16438 exec_prefix="$acl_final_exec_prefix"
16439 eval x=\"$x\"
16440 exec_prefix="$acl_save_exec_prefix"
16441 prefix="$acl_save_prefix"
16442
16443 if test "X$x" = "X$element"; then
16444 haveit=yes
16445 break
16446 fi
16447 done
16448 if test -z "$haveit"; then
16449 LIBS="${LIBS}${LIBS:+ }$element"
16450 fi
16451 done
16452
16453 CY_EXECUTE=1
16454
16455fi
16456
16457elif test $pkg_failed = untried; then
12833ad8
JF
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459$as_echo "no" >&6; }
b66977f1
DWT
16460
16461
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16463$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16464if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16466else
16467
16468 ac_check_framework_save_LIBS=$LIBS
16469 LIBS="-framework JavaScriptCore $LIBS"
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h. */
16472
16473 #include <JavaScriptCore/JSBase.h>
16474
16475int
16476main ()
16477{
16478JSEvaluateScript(0, 0, 0, 0, 0, 0);
16479 ;
16480 return 0;
16481}
16482_ACEOF
16483if ac_fn_cxx_try_link "$LINENO"; then :
16484
16485 ac_cv_framework_JavaScriptCore=yes
16486
16487else
16488 ac_cv_framework_JavaScriptCore=no
16489fi
16490rm -f core conftest.err conftest.$ac_objext \
16491 conftest$ac_exeext conftest.$ac_ext
16492 LIBS=$ac_check_framework_save_LIBS
16493
16494fi
16495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16496$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16497 if test $ac_cv_framework_JavaScriptCore = yes; then :
16498
16499
16500 for element in "-framework JavaScriptCore $LIBS"; do
16501 haveit=
16502 for x in $LIBS; do
16503
16504 acl_save_prefix="$prefix"
16505 prefix="$acl_final_prefix"
16506 acl_save_exec_prefix="$exec_prefix"
16507 exec_prefix="$acl_final_exec_prefix"
16508 eval x=\"$x\"
16509 exec_prefix="$acl_save_exec_prefix"
16510 prefix="$acl_save_prefix"
16511
16512 if test "X$x" = "X$element"; then
16513 haveit=yes
16514 break
16515 fi
16516 done
16517 if test -z "$haveit"; then
16518 LIBS="${LIBS}${LIBS:+ }$element"
16519 fi
16520 done
16521
16522 CY_EXECUTE=1
16523
16524fi
16525
16526else
16527 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16528 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530$as_echo "yes" >&6; }
16531
16532 CY_EXECUTE=1
16533
16534 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16535 haveit=
16536 for x in $CXXFLAGS; do
16537
16538 acl_save_prefix="$prefix"
16539 prefix="$acl_final_prefix"
16540 acl_save_exec_prefix="$exec_prefix"
16541 exec_prefix="$acl_final_exec_prefix"
16542 eval x=\"$x\"
16543 exec_prefix="$acl_save_exec_prefix"
16544 prefix="$acl_save_prefix"
16545
16546 if test "X$x" = "X$element"; then
16547 haveit=yes
16548 break
16549 fi
16550 done
16551 if test -z "$haveit"; then
16552 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16553 fi
16554 done
16555
16556
16557 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16558 haveit=
16559 for x in $LIBS; do
16560
16561 acl_save_prefix="$prefix"
16562 prefix="$acl_final_prefix"
16563 acl_save_exec_prefix="$exec_prefix"
16564 exec_prefix="$acl_final_exec_prefix"
16565 eval x=\"$x\"
16566 exec_prefix="$acl_save_exec_prefix"
16567 prefix="$acl_save_prefix"
16568
16569 if test "X$x" = "X$element"; then
16570 haveit=yes
16571 break
16572 fi
16573 done
16574 if test -z "$haveit"; then
16575 LIBS="${LIBS}${LIBS:+ }$element"
16576 fi
16577 done
16578
16579
16580fi
16581
16582elif test $pkg_failed = untried; then
12833ad8
JF
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584$as_echo "no" >&6; }
b66977f1
DWT
16585
16586
16587pkg_failed=no
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16589$as_echo_n "checking for WEBKIT... " >&6; }
16590
12833ad8
JF
16591if test -n "$WEBKIT_CFLAGS"; then
16592 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16593 elif test -n "$PKG_CONFIG"; then
16594 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16596 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; then
16600 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16601else
16602 pkg_failed=yes
16603fi
12833ad8
JF
16604 else
16605 pkg_failed=untried
b66977f1 16606fi
12833ad8
JF
16607if test -n "$WEBKIT_LIBS"; then
16608 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16609 elif test -n "$PKG_CONFIG"; then
16610 if test -n "$PKG_CONFIG" && \
b66977f1
DWT
16611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16612 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16613 ac_status=$?
16614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16615 test $ac_status = 0; }; then
16616 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16617else
16618 pkg_failed=yes
16619fi
12833ad8
JF
16620 else
16621 pkg_failed=untried
b66977f1
DWT
16622fi
16623
16624
16625
16626if test $pkg_failed = yes; then
12833ad8
JF
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628$as_echo "no" >&6; }
b66977f1
DWT
16629
16630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16631 _pkg_short_errors_supported=yes
16632else
16633 _pkg_short_errors_supported=no
16634fi
16635 if test $_pkg_short_errors_supported = yes; then
12833ad8 16636 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
b66977f1 16637 else
12833ad8 16638 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
b66977f1
DWT
16639 fi
16640 # Put the nasty error message in config.log where it belongs
16641 echo "$WEBKIT_PKG_ERRORS" >&5
16642
b66977f1
DWT
16643
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16646$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16647if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16649else
16650
16651 ac_check_framework_save_LIBS=$LIBS
16652 LIBS="-framework JavaScriptCore $LIBS"
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h. */
16655
16656 #include <JavaScriptCore/JSBase.h>
16657
16658int
16659main ()
16660{
16661JSEvaluateScript(0, 0, 0, 0, 0, 0);
16662 ;
16663 return 0;
16664}
16665_ACEOF
16666if ac_fn_cxx_try_link "$LINENO"; then :
16667
16668 ac_cv_framework_JavaScriptCore=yes
16669
16670else
16671 ac_cv_framework_JavaScriptCore=no
16672fi
16673rm -f core conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_framework_save_LIBS
16676
16677fi
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16679$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16680 if test $ac_cv_framework_JavaScriptCore = yes; then :
16681
16682
16683 for element in "-framework JavaScriptCore $LIBS"; do
16684 haveit=
16685 for x in $LIBS; do
16686
16687 acl_save_prefix="$prefix"
16688 prefix="$acl_final_prefix"
16689 acl_save_exec_prefix="$exec_prefix"
16690 exec_prefix="$acl_final_exec_prefix"
16691 eval x=\"$x\"
16692 exec_prefix="$acl_save_exec_prefix"
16693 prefix="$acl_save_prefix"
16694
16695 if test "X$x" = "X$element"; then
16696 haveit=yes
16697 break
16698 fi
16699 done
16700 if test -z "$haveit"; then
16701 LIBS="${LIBS}${LIBS:+ }$element"
16702 fi
16703 done
16704
16705 CY_EXECUTE=1
16706
16707fi
16708
16709elif test $pkg_failed = untried; then
12833ad8
JF
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711$as_echo "no" >&6; }
b66977f1
DWT
16712
16713
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16715$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16716if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16718else
16719
16720 ac_check_framework_save_LIBS=$LIBS
16721 LIBS="-framework JavaScriptCore $LIBS"
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723/* end confdefs.h. */
16724
16725 #include <JavaScriptCore/JSBase.h>
16726
16727int
16728main ()
16729{
16730JSEvaluateScript(0, 0, 0, 0, 0, 0);
16731 ;
16732 return 0;
16733}
16734_ACEOF
16735if ac_fn_cxx_try_link "$LINENO"; then :
16736
16737 ac_cv_framework_JavaScriptCore=yes
16738
16739else
16740 ac_cv_framework_JavaScriptCore=no
16741fi
16742rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_framework_save_LIBS
16745
16746fi
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16748$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16749 if test $ac_cv_framework_JavaScriptCore = yes; then :
16750
16751
16752 for element in "-framework JavaScriptCore $LIBS"; do
16753 haveit=
16754 for x in $LIBS; do
16755
16756 acl_save_prefix="$prefix"
16757 prefix="$acl_final_prefix"
16758 acl_save_exec_prefix="$exec_prefix"
16759 exec_prefix="$acl_final_exec_prefix"
16760 eval x=\"$x\"
16761 exec_prefix="$acl_save_exec_prefix"
16762 prefix="$acl_save_prefix"
16763
16764 if test "X$x" = "X$element"; then
16765 haveit=yes
16766 break
16767 fi
16768 done
16769 if test -z "$haveit"; then
16770 LIBS="${LIBS}${LIBS:+ }$element"
16771 fi
16772 done
16773
16774 CY_EXECUTE=1
16775
16776fi
16777
16778else
16779 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16780 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782$as_echo "yes" >&6; }
16783
16784 CY_EXECUTE=1
16785
16786 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16787 haveit=
16788 for x in $CXXFLAGS; do
16789
16790 acl_save_prefix="$prefix"
16791 prefix="$acl_final_prefix"
16792 acl_save_exec_prefix="$exec_prefix"
16793 exec_prefix="$acl_final_exec_prefix"
16794 eval x=\"$x\"
16795 exec_prefix="$acl_save_exec_prefix"
16796 prefix="$acl_save_prefix"
16797
16798 if test "X$x" = "X$element"; then
16799 haveit=yes
16800 break
16801 fi
16802 done
16803 if test -z "$haveit"; then
16804 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16805 fi
16806 done
16807
16808
16809 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16810 haveit=
16811 for x in $LIBS; do
16812
16813 acl_save_prefix="$prefix"
16814 prefix="$acl_final_prefix"
16815 acl_save_exec_prefix="$exec_prefix"
16816 exec_prefix="$acl_final_exec_prefix"
16817 eval x=\"$x\"
16818 exec_prefix="$acl_save_exec_prefix"
16819 prefix="$acl_save_prefix"
16820
16821 if test "X$x" = "X$element"; then
16822 haveit=yes
16823 break
16824 fi
16825 done
16826 if test -z "$haveit"; then
16827 LIBS="${LIBS}${LIBS:+ }$element"
16828 fi
16829 done
16830
16831
16832fi
16833
16834else
16835 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16836 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16838$as_echo "yes" >&6; }
16839
16840 CY_EXECUTE=1
16841
16842 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16843 haveit=
16844 for x in $CXXFLAGS; do
16845
16846 acl_save_prefix="$prefix"
16847 prefix="$acl_final_prefix"
16848 acl_save_exec_prefix="$exec_prefix"
16849 exec_prefix="$acl_final_exec_prefix"
16850 eval x=\"$x\"
16851 exec_prefix="$acl_save_exec_prefix"
16852 prefix="$acl_save_prefix"
16853
16854 if test "X$x" = "X$element"; then
16855 haveit=yes
16856 break
16857 fi
16858 done
16859 if test -z "$haveit"; then
16860 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16861 fi
16862 done
16863
16864
16865 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16866 haveit=
16867 for x in $LIBS; do
16868
16869 acl_save_prefix="$prefix"
16870 prefix="$acl_final_prefix"
16871 acl_save_exec_prefix="$exec_prefix"
16872 exec_prefix="$acl_final_exec_prefix"
16873 eval x=\"$x\"
16874 exec_prefix="$acl_save_exec_prefix"
16875 prefix="$acl_save_prefix"
16876
16877 if test "X$x" = "X$element"; then
16878 haveit=yes
16879 break
16880 fi
16881 done
16882 if test -z "$haveit"; then
16883 LIBS="${LIBS}${LIBS:+ }$element"
16884 fi
16885 done
16886
16887
16888fi
5053a6d1
DWT
16889
16890
9c60689e
DWT
16891fi
16892
5053a6d1 16893
058f1bc8 16894
e5cca37d 16895
5053a6d1
DWT
16896case $CY_EXECUTE in #(
16897 1) :
16898
9c60689e 16899
e5cca37d
DWT
16900 for ac_header in ffi.h ffi/ffi.h
16901do :
16902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 16904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e5cca37d
DWT
16905 cat >>confdefs.h <<_ACEOF
16906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16907_ACEOF
16908 break
16909fi
16910
16911done
16912
16913 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16914
16915
9c60689e
DWT
16916
16917pkg_failed=no
5053a6d1
DWT
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16919$as_echo_n "checking for LIBFFI... " >&6; }
9c60689e 16920
12833ad8
JF
16921if test -n "$LIBFFI_CFLAGS"; then
16922 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
16923 elif test -n "$PKG_CONFIG"; then
16924 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
16925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16926 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
16927 ac_status=$?
16928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16929 test $ac_status = 0; }; then
5053a6d1 16930 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
9c60689e
DWT
16931else
16932 pkg_failed=yes
16933fi
12833ad8
JF
16934 else
16935 pkg_failed=untried
9c60689e 16936fi
12833ad8
JF
16937if test -n "$LIBFFI_LIBS"; then
16938 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
16939 elif test -n "$PKG_CONFIG"; then
16940 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
16941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16942 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
16943 ac_status=$?
16944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16945 test $ac_status = 0; }; then
5053a6d1 16946 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
9c60689e
DWT
16947else
16948 pkg_failed=yes
16949fi
12833ad8
JF
16950 else
16951 pkg_failed=untried
9c60689e
DWT
16952fi
16953
16954
16955
16956if test $pkg_failed = yes; then
12833ad8
JF
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16958$as_echo "no" >&6; }
9c60689e
DWT
16959
16960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16961 _pkg_short_errors_supported=yes
16962else
16963 _pkg_short_errors_supported=no
16964fi
16965 if test $_pkg_short_errors_supported = yes; then
12833ad8 16966 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
9c60689e 16967 else
12833ad8 16968 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
9c60689e
DWT
16969 fi
16970 # Put the nasty error message in config.log where it belongs
5053a6d1 16971 echo "$LIBFFI_PKG_ERRORS" >&5
9c60689e 16972
b128dfee 16973
12833ad8 16974 as_fn_error $? "You need libffi" "$LINENO" 5
5053a6d1 16975
e5cca37d 16976elif test $pkg_failed = untried; then
12833ad8
JF
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978$as_echo "no" >&6; }
e5cca37d 16979
12833ad8 16980 as_fn_error $? "You need libffi" "$LINENO" 5
e5cca37d
DWT
16981
16982else
16983 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16984 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16986$as_echo "yes" >&6; }
16987
16988
16989 for element in `$PKG_CONFIG --cflags libffi`; do
16990 haveit=
16991 for x in $CXXFLAGS; do
16992
16993 acl_save_prefix="$prefix"
16994 prefix="$acl_final_prefix"
16995 acl_save_exec_prefix="$exec_prefix"
16996 exec_prefix="$acl_final_exec_prefix"
16997 eval x=\"$x\"
16998 exec_prefix="$acl_save_exec_prefix"
16999 prefix="$acl_save_prefix"
17000
17001 if test "X$x" = "X$element"; then
17002 haveit=yes
17003 break
17004 fi
17005 done
17006 if test -z "$haveit"; then
17007 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17008 fi
17009 done
c823f118 17010
5053a6d1 17011
e5cca37d
DWT
17012 for element in `$PKG_CONFIG --libs libffi`; do
17013 haveit=
17014 for x in $LIBS; do
17015
17016 acl_save_prefix="$prefix"
17017 prefix="$acl_final_prefix"
17018 acl_save_exec_prefix="$exec_prefix"
17019 exec_prefix="$acl_final_exec_prefix"
17020 eval x=\"$x\"
17021 exec_prefix="$acl_save_exec_prefix"
17022 prefix="$acl_save_prefix"
17023
17024 if test "X$x" = "X$element"; then
17025 haveit=yes
17026 break
17027 fi
17028 done
17029 if test -z "$haveit"; then
17030 LIBS="${LIBS}${LIBS:+ }$element"
17031 fi
17032 done
17033
5053a6d1
DWT
17034
17035fi
e5cca37d
DWT
17036
17037
17038else
17039
5053a6d1
DWT
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17041$as_echo_n "checking for library containing ffi_call... " >&6; }
17042if test "${ac_cv_search_ffi_call+set}" = set; then :
c823f118
DWT
17043 $as_echo_n "(cached) " >&6
17044else
5053a6d1
DWT
17045 ac_func_search_save_LIBS=$LIBS
17046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
17047/* end confdefs.h. */
17048
5053a6d1
DWT
17049/* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17052#ifdef __cplusplus
17053extern "C"
17054#endif
17055char ffi_call ();
c823f118
DWT
17056int
17057main ()
17058{
5053a6d1 17059return ffi_call ();
c823f118
DWT
17060 ;
17061 return 0;
17062}
b128dfee 17063_ACEOF
5053a6d1
DWT
17064for ac_lib in '' ffi; do
17065 if test -z "$ac_lib"; then
17066 ac_res="none required"
17067 else
17068 ac_res=-l$ac_lib
17069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17070 fi
17071 if ac_fn_cxx_try_link "$LINENO"; then :
17072 ac_cv_search_ffi_call=$ac_res
c823f118
DWT
17073fi
17074rm -f core conftest.err conftest.$ac_objext \
5053a6d1
DWT
17075 conftest$ac_exeext
17076 if test "${ac_cv_search_ffi_call+set}" = set; then :
17077 break
b128dfee 17078fi
5053a6d1
DWT
17079done
17080if test "${ac_cv_search_ffi_call+set}" = set; then :
b128dfee 17081
5053a6d1
DWT
17082else
17083 ac_cv_search_ffi_call=no
17084fi
17085rm conftest.$ac_ext
17086LIBS=$ac_func_search_save_LIBS
17087fi
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17089$as_echo "$ac_cv_search_ffi_call" >&6; }
17090ac_res=$ac_cv_search_ffi_call
17091if test "$ac_res" != no; then :
17092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b128dfee 17093
5053a6d1 17094fi
c823f118 17095
5053a6d1
DWT
17096 case $ac_cv_search_ffi_call in #(
17097 no) :
c823f118 17098
c823f118 17099
e5cca37d
DWT
17100pkg_failed=no
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17102$as_echo_n "checking for LIBFFI... " >&6; }
c823f118 17103
12833ad8
JF
17104if test -n "$LIBFFI_CFLAGS"; then
17105 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17106 elif test -n "$PKG_CONFIG"; then
17107 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
17108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17109 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17112 test $ac_status = 0; }; then
17113 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17114else
17115 pkg_failed=yes
c823f118 17116fi
12833ad8
JF
17117 else
17118 pkg_failed=untried
5053a6d1 17119fi
12833ad8
JF
17120if test -n "$LIBFFI_LIBS"; then
17121 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17122 elif test -n "$PKG_CONFIG"; then
17123 if test -n "$PKG_CONFIG" && \
e5cca37d
DWT
17124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17125 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17126 ac_status=$?
17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17128 test $ac_status = 0; }; then
17129 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
c823f118 17130else
e5cca37d 17131 pkg_failed=yes
632b71ea 17132fi
12833ad8
JF
17133 else
17134 pkg_failed=untried
632b71ea 17135fi
3fd51f51 17136
e5cca37d
DWT
17137
17138
17139if test $pkg_failed = yes; then
12833ad8
JF
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141$as_echo "no" >&6; }
e5cca37d
DWT
17142
17143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17144 _pkg_short_errors_supported=yes
5053a6d1 17145else
e5cca37d 17146 _pkg_short_errors_supported=no
5053a6d1 17147fi
e5cca37d 17148 if test $_pkg_short_errors_supported = yes; then
12833ad8 17149 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
e5cca37d 17150 else
12833ad8 17151 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
e5cca37d
DWT
17152 fi
17153 # Put the nasty error message in config.log where it belongs
17154 echo "$LIBFFI_PKG_ERRORS" >&5
3fd51f51 17155
3fd51f51 17156
12833ad8 17157 as_fn_error $? "You need libffi" "$LINENO" 5
3fd51f51 17158
e5cca37d 17159elif test $pkg_failed = untried; then
12833ad8
JF
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161$as_echo "no" >&6; }
e5cca37d 17162
12833ad8 17163 as_fn_error $? "You need libffi" "$LINENO" 5
9c60689e
DWT
17164
17165else
5053a6d1
DWT
17166 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17167 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
9c60689e
DWT
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17169$as_echo "yes" >&6; }
3fd51f51 17170
3fd51f51 17171
5053a6d1 17172 for element in `$PKG_CONFIG --cflags libffi`; do
3fd51f51
DWT
17173 haveit=
17174 for x in $CXXFLAGS; do
17175
17176 acl_save_prefix="$prefix"
17177 prefix="$acl_final_prefix"
17178 acl_save_exec_prefix="$exec_prefix"
17179 exec_prefix="$acl_final_exec_prefix"
17180 eval x=\"$x\"
17181 exec_prefix="$acl_save_exec_prefix"
17182 prefix="$acl_save_prefix"
17183
17184 if test "X$x" = "X$element"; then
17185 haveit=yes
17186 break
17187 fi
17188 done
17189 if test -z "$haveit"; then
17190 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17191 fi
17192 done
17193
17194
5053a6d1 17195 for element in `$PKG_CONFIG --libs libffi`; do
3fd51f51
DWT
17196 haveit=
17197 for x in $LIBS; do
17198
17199 acl_save_prefix="$prefix"
17200 prefix="$acl_final_prefix"
17201 acl_save_exec_prefix="$exec_prefix"
17202 exec_prefix="$acl_final_exec_prefix"
17203 eval x=\"$x\"
17204 exec_prefix="$acl_save_exec_prefix"
17205 prefix="$acl_save_prefix"
17206
17207 if test "X$x" = "X$element"; then
17208 haveit=yes
17209 break
17210 fi
17211 done
17212 if test -z "$haveit"; then
17213 LIBS="${LIBS}${LIBS:+ }$element"
17214 fi
17215 done
17216
17217
e5cca37d
DWT
17218fi
17219 ;; #(
17220 *) :
17221 ;;
17222esac
17223
9c60689e 17224fi
5053a6d1
DWT
17225 ac_ext=mm
17226ac_cpp='$OBJCXXCPP $CPPFLAGS'
17227ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17228ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17229ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a667869d 17230
5053a6d1
DWT
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17232$as_echo_n "checking if we really have Objective C++... " >&6; }
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234/* end confdefs.h. */
9c60689e 17235
5053a6d1 17236 // This space intentionally left blank
a667869d 17237
5053a6d1
DWT
17238_ACEOF
17239if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 17240
5053a6d1
DWT
17241 CY_OBJECTIVEC=1
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17243$as_echo "yes" >&6; }
632b71ea 17244
632b71ea 17245else
5053a6d1 17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
632b71ea 17247$as_echo "no" >&6; }
5053a6d1
DWT
17248fi
17249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 if test "x$CY_OBJECTIVEC" = x1; then :
9c60689e 17251
632b71ea 17252
5053a6d1
DWT
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
17254$as_echo_n "checking for framework CoreFoundation... " >&6; }
17255if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
9c60689e
DWT
17256 $as_echo_n "(cached) " >&6
17257else
632b71ea
DWT
17258
17259 ac_check_framework_save_LIBS=$LIBS
5053a6d1 17260 LIBS="-framework CoreFoundation $LIBS"
632b71ea 17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
17262/* end confdefs.h. */
17263
5053a6d1 17264 #include <CoreFoundation/CFBase.h>
632b71ea 17265
9c60689e
DWT
17266int
17267main ()
17268{
5053a6d1 17269CFAllocatorGetDefault();
9c60689e
DWT
17270 ;
17271 return 0;
17272}
17273_ACEOF
5053a6d1 17274if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 17275
5053a6d1 17276 ac_cv_framework_CoreFoundation=yes
632b71ea 17277
9c60689e 17278else
5053a6d1 17279 ac_cv_framework_CoreFoundation=no
9c60689e 17280fi
632b71ea
DWT
17281rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_framework_save_LIBS
9c60689e
DWT
17284
17285fi
5053a6d1
DWT
17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
17287$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
17288 if test $ac_cv_framework_CoreFoundation = yes; then :
632b71ea
DWT
17289
17290
5053a6d1 17291 for element in "-framework CoreFoundation $LIBS"; do
632b71ea
DWT
17292 haveit=
17293 for x in $LIBS; do
17294
17295 acl_save_prefix="$prefix"
17296 prefix="$acl_final_prefix"
17297 acl_save_exec_prefix="$exec_prefix"
17298 exec_prefix="$acl_final_exec_prefix"
17299 eval x=\"$x\"
17300 exec_prefix="$acl_save_exec_prefix"
17301 prefix="$acl_save_prefix"
17302
17303 if test "X$x" = "X$element"; then
17304 haveit=yes
17305 break
17306 fi
17307 done
17308 if test -z "$haveit"; then
17309 LIBS="${LIBS}${LIBS:+ }$element"
17310 fi
17311 done
17312
632b71ea 17313
632b71ea 17314
632b71ea
DWT
17315
17316
5053a6d1
DWT
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
17318$as_echo_n "checking for framework Foundation... " >&6; }
17319if test "${ac_cv_framework_Foundation+set}" = set; then :
a667869d
DWT
17320 $as_echo_n "(cached) " >&6
17321else
632b71ea
DWT
17322
17323 ac_check_framework_save_LIBS=$LIBS
5053a6d1 17324 LIBS="-framework Foundation $LIBS"
632b71ea 17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a667869d
DWT
17326/* end confdefs.h. */
17327
5053a6d1 17328 #include <Foundation/NSObject.h>
632b71ea 17329
a667869d
DWT
17330int
17331main ()
17332{
5053a6d1 17333[[NSObject alloc] init];
a667869d
DWT
17334 ;
17335 return 0;
17336}
17337_ACEOF
5053a6d1 17338if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 17339
5053a6d1 17340 ac_cv_framework_Foundation=yes
632b71ea 17341
a667869d 17342else
5053a6d1 17343 ac_cv_framework_Foundation=no
632b71ea
DWT
17344fi
17345rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_framework_save_LIBS
a667869d 17348
632b71ea 17349fi
5053a6d1
DWT
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
17351$as_echo "$ac_cv_framework_Foundation" >&6; }
17352 if test $ac_cv_framework_Foundation = yes; then :
a667869d 17353
a667869d 17354
5053a6d1 17355 for element in "-framework Foundation $LIBS"; do
632b71ea
DWT
17356 haveit=
17357 for x in $LIBS; do
a667869d 17358
632b71ea
DWT
17359 acl_save_prefix="$prefix"
17360 prefix="$acl_final_prefix"
17361 acl_save_exec_prefix="$exec_prefix"
17362 exec_prefix="$acl_final_exec_prefix"
17363 eval x=\"$x\"
17364 exec_prefix="$acl_save_exec_prefix"
17365 prefix="$acl_save_prefix"
17366
17367 if test "X$x" = "X$element"; then
17368 haveit=yes
17369 break
17370 fi
17371 done
17372 if test -z "$haveit"; then
17373 LIBS="${LIBS}${LIBS:+ }$element"
17374 fi
17375 done
17376
5053a6d1
DWT
17377 cat >>confdefs.h <<_ACEOF
17378#define HAVE_FRAMEWORK_FOUNDATION 1
17379_ACEOF
17380
a667869d 17381
a667869d 17382fi
632b71ea 17383
5053a6d1
DWT
17384
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
17386$as_echo_n "checking for framework WebKit... " >&6; }
17387if test "${ac_cv_framework_WebKit+set}" = set; then :
17388 $as_echo_n "(cached) " >&6
a667869d 17389else
632b71ea 17390
5053a6d1
DWT
17391 ac_check_framework_save_LIBS=$LIBS
17392 LIBS="-framework WebKit $LIBS"
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394/* end confdefs.h. */
632b71ea 17395
5053a6d1 17396 #include <WebKit/WebScriptObject.h>
632b71ea 17397
5053a6d1
DWT
17398int
17399main ()
17400{
17401[[WebScriptObject alloc] init];
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 17407
5053a6d1 17408 ac_cv_framework_WebKit=yes
632b71ea 17409
5053a6d1
DWT
17410else
17411 ac_cv_framework_WebKit=no
17412fi
17413rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 LIBS=$ac_check_framework_save_LIBS
632b71ea 17416
5053a6d1
DWT
17417fi
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
17419$as_echo "$ac_cv_framework_WebKit" >&6; }
17420 if test $ac_cv_framework_WebKit = yes; then :
17421
17422
17423 for element in "-framework WebKit $LIBS"; do
632b71ea
DWT
17424 haveit=
17425 for x in $LIBS; do
17426
17427 acl_save_prefix="$prefix"
17428 prefix="$acl_final_prefix"
17429 acl_save_exec_prefix="$exec_prefix"
17430 exec_prefix="$acl_final_exec_prefix"
17431 eval x=\"$x\"
17432 exec_prefix="$acl_save_exec_prefix"
17433 prefix="$acl_save_prefix"
17434
17435 if test "X$x" = "X$element"; then
17436 haveit=yes
17437 break
17438 fi
17439 done
17440 if test -z "$haveit"; then
17441 LIBS="${LIBS}${LIBS:+ }$element"
17442 fi
17443 done
17444
5053a6d1
DWT
17445 cat >>confdefs.h <<_ACEOF
17446#define HAVE_FRAMEWORK_WEBKIT 1
17447_ACEOF
17448
17449
17450fi
17451
17452
17453else
17454
17455
17456 for ac_prog in gnustep-config
17457do
17458 # Extract the first word of "$ac_prog", so it can be a program name with args.
17459set dummy $ac_prog; ac_word=$2
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17461$as_echo_n "checking for $ac_word... " >&6; }
17462if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17464else
17465 if test -n "$GNUSTEP_CONFIG"; then
17466 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
17467else
17468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469for as_dir in $PATH
17470do
17471 IFS=$as_save_IFS
17472 test -z "$as_dir" && as_dir=.
17473 for ac_exec_ext in '' $ac_executable_extensions; do
17474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17475 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
17476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17477 break 2
17478 fi
17479done
17480 done
17481IFS=$as_save_IFS
17482
17483fi
17484fi
17485GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
17486if test -n "$GNUSTEP_CONFIG"; then
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
17488$as_echo "$GNUSTEP_CONFIG" >&6; }
17489else
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491$as_echo "no" >&6; }
17492fi
17493
17494
17495 test -n "$GNUSTEP_CONFIG" && break
17496done
632b71ea 17497
5053a6d1 17498 if test "x$GNUSTEP_CONFIG" != x; then :
a667869d 17499
632b71ea 17500
632b71ea 17501
5053a6d1 17502 for element in `$GNUSTEP_CONFIG --objc-flags`; do
632b71ea 17503 haveit=
5053a6d1 17504 for x in $OBJCXXFLAGS; do
632b71ea
DWT
17505
17506 acl_save_prefix="$prefix"
17507 prefix="$acl_final_prefix"
17508 acl_save_exec_prefix="$exec_prefix"
17509 exec_prefix="$acl_final_exec_prefix"
17510 eval x=\"$x\"
17511 exec_prefix="$acl_save_exec_prefix"
17512 prefix="$acl_save_prefix"
17513
17514 if test "X$x" = "X$element"; then
17515 haveit=yes
17516 break
17517 fi
17518 done
17519 if test -z "$haveit"; then
5053a6d1 17520 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
632b71ea
DWT
17521 fi
17522 done
17523
17524
5053a6d1 17525 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea
DWT
17526 haveit=
17527 for x in $LIBS; do
17528
17529 acl_save_prefix="$prefix"
17530 prefix="$acl_final_prefix"
17531 acl_save_exec_prefix="$exec_prefix"
17532 exec_prefix="$acl_final_exec_prefix"
17533 eval x=\"$x\"
17534 exec_prefix="$acl_save_exec_prefix"
17535 prefix="$acl_save_prefix"
17536
17537 if test "X$x" = "X$element"; then
17538 haveit=yes
17539 break
17540 fi
17541 done
17542 if test -z "$haveit"; then
17543 LIBS="${LIBS}${LIBS:+ }$element"
17544 fi
17545 done
17546
17547
5053a6d1
DWT
17548else
17549 CY_OBJECTIVEC=0
a667869d 17550
5053a6d1 17551fi
b66977f1
DWT
17552
17553fi
17554
5053a6d1
DWT
17555fi
17556 ac_ext=cpp
17557ac_cpp='$CXXCPP $CPPFLAGS'
17558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
b66977f1 17561
5053a6d1
DWT
17562 ;; #(
17563 *) :
17564 ;;
17565esac
a667869d 17566
058f1bc8
DWT
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
17568$as_echo_n "checking for a readline compatible library... " >&6; }
17569if test "${vl_cv_lib_readline+set}" = set; then :
17570 $as_echo_n "(cached) " >&6
17571else
a667869d 17572
058f1bc8
DWT
17573 ORIG_LIBS="$LIBS"
17574 for readline_lib in readline edit editline; do
17575 for termcap_lib in "" termcap curses ncurses; do
17576 if test -z "$termcap_lib"; then
17577 TRY_LIB="-l$readline_lib"
17578 else
17579 TRY_LIB="-l$readline_lib -l$termcap_lib"
17580 fi
17581 LIBS="$ORIG_LIBS $TRY_LIB"
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583/* end confdefs.h. */
a667869d 17584
058f1bc8
DWT
17585/* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588#ifdef __cplusplus
17589extern "C"
17590#endif
17591char readline ();
17592int
17593main ()
17594{
17595return readline ();
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600if ac_fn_cxx_try_link "$LINENO"; then :
17601 vl_cv_lib_readline="$TRY_LIB"
17602fi
17603rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 if test -n "$vl_cv_lib_readline"; then
17606 break
17607 fi
17608 done
17609 if test -n "$vl_cv_lib_readline"; then
17610 break
17611 fi
17612 done
17613 if test -z "$vl_cv_lib_readline"; then
17614 vl_cv_lib_readline="no"
17615 LIBS="$ORIG_LIBS"
17616 fi
a667869d 17617
a667869d 17618fi
058f1bc8
DWT
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
17620$as_echo "$vl_cv_lib_readline" >&6; }
17621
17622 if test "$vl_cv_lib_readline" != "no"; then
17623
17624$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17625
17626 for ac_header in readline.h readline/readline.h
17627do :
17628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17629ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 17630if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
17631 cat >>confdefs.h <<_ACEOF
17632#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17633_ACEOF
5053a6d1 17634
a667869d 17635fi
058f1bc8
DWT
17636
17637done
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17640$as_echo_n "checking whether readline supports history... " >&6; }
17641if test "${vl_cv_lib_readline_history+set}" = set; then :
17642 $as_echo_n "(cached) " >&6
17643else
17644
17645 vl_cv_lib_readline_history="no"
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h. */
17648
17649/* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17652#ifdef __cplusplus
17653extern "C"
17654#endif
17655char add_history ();
17656int
17657main ()
17658{
17659return add_history ();
17660 ;
17661 return 0;
17662}
17663_ACEOF
17664if ac_fn_cxx_try_link "$LINENO"; then :
17665 vl_cv_lib_readline_history="yes"
17666fi
17667rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669
17670fi
17671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
17672$as_echo "$vl_cv_lib_readline_history" >&6; }
17673 if test "$vl_cv_lib_readline_history" = "yes"; then
17674
17675$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17676
17677 for ac_header in history.h readline/history.h
17678do :
17679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17680ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12833ad8 17681if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
058f1bc8
DWT
17682 cat >>confdefs.h <<_ACEOF
17683#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17684_ACEOF
17685
17686fi
17687
17688done
17689
17690 fi
17691 fi
17692
17693case $vl_cv_lib_readline in #(
17694 no) :
12833ad8 17695 as_fn_error $? "You need readline" "$LINENO" 5 ;; #(
058f1bc8
DWT
17696 *) :
17697 ;;
17698esac
17699ac_ext=c
17700ac_cpp='$CPP $CPPFLAGS'
17701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705
17706 if test "X$prefix" = "XNONE"; then
17707 acl_final_prefix="$ac_default_prefix"
17708 else
17709 acl_final_prefix="$prefix"
17710 fi
17711 if test "X$exec_prefix" = "XNONE"; then
17712 acl_final_exec_prefix='${prefix}'
17713 else
17714 acl_final_exec_prefix="$exec_prefix"
17715 fi
17716 acl_save_prefix="$prefix"
17717 prefix="$acl_final_prefix"
17718 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17719 prefix="$acl_save_prefix"
17720
17721
17722# Check whether --with-gnu-ld was given.
17723if test "${with_gnu_ld+set}" = set; then :
17724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17725else
17726 with_gnu_ld=no
17727fi
17728
17729# Prepare PATH_SEPARATOR.
17730# The user is always right.
17731if test "${PATH_SEPARATOR+set}" != set; then
17732 echo "#! /bin/sh" >conf$$.sh
17733 echo "exit 0" >>conf$$.sh
17734 chmod +x conf$$.sh
17735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17736 PATH_SEPARATOR=';'
17737 else
17738 PATH_SEPARATOR=:
17739 fi
17740 rm -f conf$$.sh
17741fi
17742ac_prog=ld
17743if test "$GCC" = yes; then
17744 # Check if gcc -print-prog-name=ld gives a path.
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17746$as_echo_n "checking for ld used by GCC... " >&6; }
17747 case $host in
17748 *-*-mingw*)
17749 # gcc leaves a trailing carriage return which upsets mingw
17750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17751 *)
17752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17753 esac
17754 case $ac_prog in
17755 # Accept absolute paths.
17756 [\\/]* | [A-Za-z]:[\\/]*)
17757 re_direlt='/[^/][^/]*/\.\./'
17758 # Canonicalize the path of ld
17759 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17760 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12833ad8 17761 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5053a6d1
DWT
17762 done
17763 test -z "$LD" && LD="$ac_prog"
17764 ;;
17765 "")
17766 # If it fails, then pretend we aren't using GCC.
17767 ac_prog=ld
17768 ;;
17769 *)
17770 # If it is relative, then search for the first ld in PATH.
17771 with_gnu_ld=unknown
17772 ;;
17773 esac
17774elif test "$with_gnu_ld" = yes; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17776$as_echo_n "checking for GNU ld... " >&6; }
a667869d 17777else
5053a6d1
DWT
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17779$as_echo_n "checking for non-GNU ld... " >&6; }
a667869d 17780fi
5053a6d1
DWT
17781if test "${acl_cv_path_LD+set}" = set; then :
17782 $as_echo_n "(cached) " >&6
17783else
17784 if test -z "$LD"; then
17785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17786 for ac_dir in $PATH; do
17787 test -z "$ac_dir" && ac_dir=.
17788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17789 acl_cv_path_LD="$ac_dir/$ac_prog"
17790 # Check to see if the program is GNU ld. I'd rather use --version,
17791 # but apparently some GNU ld's only accept -v.
17792 # Break only if it was the GNU/non-GNU ld that we prefer.
17793 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17794 *GNU* | *'with BFD'*)
12833ad8 17795 test "$with_gnu_ld" != no && break ;;
5053a6d1 17796 *)
12833ad8 17797 test "$with_gnu_ld" != yes && break ;;
5053a6d1 17798 esac
a667869d 17799 fi
5053a6d1
DWT
17800 done
17801 IFS="$ac_save_ifs"
a667869d 17802else
5053a6d1 17803 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a667869d 17804fi
a667869d 17805fi
a667869d 17806
5053a6d1
DWT
17807LD="$acl_cv_path_LD"
17808if test -n "$LD"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17810$as_echo "$LD" >&6; }
17811else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a667869d 17813$as_echo "no" >&6; }
a667869d 17814fi
12833ad8 17815test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5053a6d1
DWT
17816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17817$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17818if test "${acl_cv_prog_gnu_ld+set}" = set; then :
a667869d
DWT
17819 $as_echo_n "(cached) " >&6
17820else
5053a6d1
DWT
17821 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17822case `$LD -v 2>&1 </dev/null` in
17823*GNU* | *'with BFD'*)
17824 acl_cv_prog_gnu_ld=yes ;;
17825*)
17826 acl_cv_prog_gnu_ld=no ;;
17827esac
a667869d 17828fi
5053a6d1
DWT
17829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17830$as_echo "$acl_cv_prog_gnu_ld" >&6; }
17831with_gnu_ld=$acl_cv_prog_gnu_ld
17832
17833
17834
a667869d 17835
5053a6d1
DWT
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17837$as_echo_n "checking for shared library run path origin... " >&6; }
17838if test "${acl_cv_rpath+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
a667869d 17840else
5053a6d1
DWT
17841
17842 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17843 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17844 . ./conftest.sh
17845 rm -f ./conftest.sh
17846 acl_cv_rpath=done
17847
a667869d 17848fi
5053a6d1
DWT
17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17850$as_echo "$acl_cv_rpath" >&6; }
17851 wl="$acl_cv_wl"
17852 acl_libext="$acl_cv_libext"
17853 acl_shlibext="$acl_cv_shlibext"
17854 acl_libname_spec="$acl_cv_libname_spec"
17855 acl_library_names_spec="$acl_cv_library_names_spec"
17856 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17857 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17858 acl_hardcode_direct="$acl_cv_hardcode_direct"
17859 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17860 # Check whether --enable-rpath was given.
17861if test "${enable_rpath+set}" = set; then :
17862 enableval=$enable_rpath; :
17863else
17864 enable_rpath=yes
a667869d 17865fi
a667869d 17866
a667869d 17867
a667869d 17868
12833ad8
JF
17869
17870 acl_libdirstem=lib
17871 acl_libdirstem2=
17872 case "$host_os" in
17873 solaris*)
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17875$as_echo_n "checking for 64-bit host... " >&6; }
17876if test "${gl_cv_solaris_64bit+set}" = set; then :
17877 $as_echo_n "(cached) " >&6
17878else
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h. */
17881
17882#ifdef _LP64
17883sixtyfour bits
17884#endif
17885
17886_ACEOF
17887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17888 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17889 gl_cv_solaris_64bit=yes
17890else
17891 gl_cv_solaris_64bit=no
17892fi
17893rm -f conftest*
17894
17895
17896fi
17897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17898$as_echo "$gl_cv_solaris_64bit" >&6; }
17899 if test $gl_cv_solaris_64bit = yes; then
17900 acl_libdirstem=lib/64
17901 case "$host_cpu" in
17902 sparc*) acl_libdirstem2=lib/sparcv9 ;;
17903 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5053a6d1
DWT
17904 esac
17905 fi
12833ad8
JF
17906 ;;
17907 *)
17908 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17909 if test -n "$searchpath"; then
17910 acl_save_IFS="${IFS= }"; IFS=":"
17911 for searchdir in $searchpath; do
17912 if test -d "$searchdir"; then
17913 case "$searchdir" in
17914 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17915 */../ | */.. )
17916 # Better ignore directories of this form. They are misleading.
17917 ;;
17918 *) searchdir=`cd "$searchdir" && pwd`
17919 case "$searchdir" in
17920 */lib64 ) acl_libdirstem=lib64 ;;
17921 esac ;;
17922 esac
17923 fi
17924 done
17925 IFS="$acl_save_IFS"
17926 fi
17927 ;;
17928 esac
17929 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17930
17931
17932
9c60689e 17933
9c60689e 17934
9c60689e 17935
9c60689e 17936
9c60689e 17937
9c60689e 17938
9c60689e 17939
9c60689e 17940
9c60689e 17941
5053a6d1 17942 use_additional=yes
9c60689e 17943
5053a6d1
DWT
17944 acl_save_prefix="$prefix"
17945 prefix="$acl_final_prefix"
17946 acl_save_exec_prefix="$exec_prefix"
17947 exec_prefix="$acl_final_exec_prefix"
9c60689e 17948
5053a6d1
DWT
17949 eval additional_includedir=\"$includedir\"
17950 eval additional_libdir=\"$libdir\"
9c60689e 17951
5053a6d1
DWT
17952 exec_prefix="$acl_save_exec_prefix"
17953 prefix="$acl_save_prefix"
3fd51f51
DWT
17954
17955
5053a6d1
DWT
17956# Check whether --with-libiconv-prefix was given.
17957if test "${with_libiconv_prefix+set}" = set; then :
17958 withval=$with_libiconv_prefix;
17959 if test "X$withval" = "Xno"; then
17960 use_additional=no
17961 else
17962 if test "X$withval" = "X"; then
3fd51f51
DWT
17963
17964 acl_save_prefix="$prefix"
17965 prefix="$acl_final_prefix"
17966 acl_save_exec_prefix="$exec_prefix"
17967 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
17968
17969 eval additional_includedir=\"$includedir\"
17970 eval additional_libdir=\"$libdir\"
17971
3fd51f51
DWT
17972 exec_prefix="$acl_save_exec_prefix"
17973 prefix="$acl_save_prefix"
17974
5053a6d1
DWT
17975 else
17976 additional_includedir="$withval/include"
17977 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
17978 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17979 && ! test -d "$withval/$acl_libdirstem"; then
17980 additional_libdir="$withval/$acl_libdirstem2"
17981 fi
3fd51f51 17982 fi
3fd51f51 17983 fi
3fd51f51 17984
5053a6d1 17985fi
3fd51f51 17986
5053a6d1
DWT
17987 LIBICONV=
17988 LTLIBICONV=
17989 INCICONV=
17990 LIBICONV_PREFIX=
12833ad8 17991 HAVE_LIBICONV=
5053a6d1
DWT
17992 rpathdirs=
17993 ltrpathdirs=
17994 names_already_handled=
17995 names_next_round='iconv '
17996 while test -n "$names_next_round"; do
17997 names_this_round="$names_next_round"
17998 names_next_round=
17999 for name in $names_this_round; do
18000 already_handled=
18001 for n in $names_already_handled; do
18002 if test "$n" = "$name"; then
18003 already_handled=yes
18004 break
18005 fi
18006 done
18007 if test -z "$already_handled"; then
18008 names_already_handled="$names_already_handled $name"
18009 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18010 eval value=\"\$HAVE_LIB$uppername\"
18011 if test -n "$value"; then
18012 if test "$value" = yes; then
18013 eval value=\"\$LIB$uppername\"
18014 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18015 eval value=\"\$LTLIB$uppername\"
18016 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18017 else
18018 :
18019 fi
18020 else
18021 found_dir=
18022 found_la=
18023 found_so=
18024 found_a=
18025 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18026 if test -n "$acl_shlibext"; then
18027 shrext=".$acl_shlibext" # typically: shrext=.so
18028 else
18029 shrext=
18030 fi
18031 if test $use_additional = yes; then
18032 dir="$additional_libdir"
18033 if test -n "$acl_shlibext"; then
18034 if test -f "$dir/$libname$shrext"; then
18035 found_dir="$dir"
18036 found_so="$dir/$libname$shrext"
18037 else
18038 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18039 ver=`(cd "$dir" && \
18040 for f in "$libname$shrext".*; do echo "$f"; done \
18041 | sed -e "s,^$libname$shrext\\\\.,," \
18042 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18043 | sed 1q ) 2>/dev/null`
18044 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18045 found_dir="$dir"
18046 found_so="$dir/$libname$shrext.$ver"
18047 fi
18048 else
18049 eval library_names=\"$acl_library_names_spec\"
18050 for f in $library_names; do
18051 if test -f "$dir/$f"; then
18052 found_dir="$dir"
18053 found_so="$dir/$f"
18054 break
18055 fi
18056 done
18057 fi
18058 fi
18059 fi
18060 if test "X$found_dir" = "X"; then
18061 if test -f "$dir/$libname.$acl_libext"; then
18062 found_dir="$dir"
18063 found_a="$dir/$libname.$acl_libext"
18064 fi
18065 fi
18066 if test "X$found_dir" != "X"; then
18067 if test -f "$dir/$libname.la"; then
18068 found_la="$dir/$libname.la"
18069 fi
18070 fi
18071 fi
18072 if test "X$found_dir" = "X"; then
18073 for x in $LDFLAGS $LTLIBICONV; do
3fd51f51
DWT
18074
18075 acl_save_prefix="$prefix"
18076 prefix="$acl_final_prefix"
18077 acl_save_exec_prefix="$exec_prefix"
18078 exec_prefix="$acl_final_exec_prefix"
18079 eval x=\"$x\"
18080 exec_prefix="$acl_save_exec_prefix"
18081 prefix="$acl_save_prefix"
18082
5053a6d1
DWT
18083 case "$x" in
18084 -L*)
18085 dir=`echo "X$x" | sed -e 's/^X-L//'`
18086 if test -n "$acl_shlibext"; then
18087 if test -f "$dir/$libname$shrext"; then
18088 found_dir="$dir"
18089 found_so="$dir/$libname$shrext"
18090 else
18091 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18092 ver=`(cd "$dir" && \
18093 for f in "$libname$shrext".*; do echo "$f"; done \
18094 | sed -e "s,^$libname$shrext\\\\.,," \
18095 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18096 | sed 1q ) 2>/dev/null`
18097 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18098 found_dir="$dir"
18099 found_so="$dir/$libname$shrext.$ver"
18100 fi
18101 else
18102 eval library_names=\"$acl_library_names_spec\"
18103 for f in $library_names; do
18104 if test -f "$dir/$f"; then
18105 found_dir="$dir"
18106 found_so="$dir/$f"
18107 break
18108 fi
18109 done
18110 fi
18111 fi
18112 fi
18113 if test "X$found_dir" = "X"; then
18114 if test -f "$dir/$libname.$acl_libext"; then
18115 found_dir="$dir"
18116 found_a="$dir/$libname.$acl_libext"
18117 fi
18118 fi
18119 if test "X$found_dir" != "X"; then
18120 if test -f "$dir/$libname.la"; then
18121 found_la="$dir/$libname.la"
18122 fi
18123 fi
18124 ;;
18125 esac
18126 if test "X$found_dir" != "X"; then
18127 break
18128 fi
18129 done
18130 fi
18131 if test "X$found_dir" != "X"; then
18132 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18133 if test "X$found_so" != "X"; then
12833ad8
JF
18134 if test "$enable_rpath" = no \
18135 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18136 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5053a6d1
DWT
18137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18138 else
18139 haveit=
18140 for x in $ltrpathdirs; do
18141 if test "X$x" = "X$found_dir"; then
18142 haveit=yes
18143 break
18144 fi
18145 done
18146 if test -z "$haveit"; then
18147 ltrpathdirs="$ltrpathdirs $found_dir"
18148 fi
18149 if test "$acl_hardcode_direct" = yes; then
18150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18151 else
18152 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18153 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18154 haveit=
18155 for x in $rpathdirs; do
18156 if test "X$x" = "X$found_dir"; then
18157 haveit=yes
18158 break
18159 fi
18160 done
18161 if test -z "$haveit"; then
18162 rpathdirs="$rpathdirs $found_dir"
18163 fi
18164 else
18165 haveit=
18166 for x in $LDFLAGS $LIBICONV; do
c823f118
DWT
18167
18168 acl_save_prefix="$prefix"
18169 prefix="$acl_final_prefix"
18170 acl_save_exec_prefix="$exec_prefix"
18171 exec_prefix="$acl_final_exec_prefix"
18172 eval x=\"$x\"
18173 exec_prefix="$acl_save_exec_prefix"
18174 prefix="$acl_save_prefix"
18175
5053a6d1
DWT
18176 if test "X$x" = "X-L$found_dir"; then
18177 haveit=yes
18178 break
18179 fi
18180 done
18181 if test -z "$haveit"; then
18182 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18183 fi
18184 if test "$acl_hardcode_minus_L" != no; then
18185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18186 else
18187 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18188 fi
18189 fi
18190 fi
18191 fi
18192 else
18193 if test "X$found_a" != "X"; then
18194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18195 else
18196 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18197 fi
18198 fi
18199 additional_includedir=
18200 case "$found_dir" in
18201 */$acl_libdirstem | */$acl_libdirstem/)
18202 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
18203 if test "$name" = 'iconv'; then
18204 LIBICONV_PREFIX="$basedir"
18205 fi
18206 additional_includedir="$basedir/include"
18207 ;;
18208 */$acl_libdirstem2 | */$acl_libdirstem2/)
18209 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18210 if test "$name" = 'iconv'; then
18211 LIBICONV_PREFIX="$basedir"
18212 fi
5053a6d1
DWT
18213 additional_includedir="$basedir/include"
18214 ;;
18215 esac
18216 if test "X$additional_includedir" != "X"; then
18217 if test "X$additional_includedir" != "X/usr/include"; then
18218 haveit=
18219 if test "X$additional_includedir" = "X/usr/local/include"; then
18220 if test -n "$GCC"; then
18221 case $host_os in
18222 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18223 esac
18224 fi
18225 fi
18226 if test -z "$haveit"; then
18227 for x in $CPPFLAGS $INCICONV; do
c823f118
DWT
18228
18229 acl_save_prefix="$prefix"
18230 prefix="$acl_final_prefix"
18231 acl_save_exec_prefix="$exec_prefix"
18232 exec_prefix="$acl_final_exec_prefix"
18233 eval x=\"$x\"
18234 exec_prefix="$acl_save_exec_prefix"
18235 prefix="$acl_save_prefix"
18236
5053a6d1
DWT
18237 if test "X$x" = "X-I$additional_includedir"; then
18238 haveit=yes
18239 break
18240 fi
18241 done
18242 if test -z "$haveit"; then
18243 if test -d "$additional_includedir"; then
18244 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18245 fi
18246 fi
18247 fi
18248 fi
18249 fi
18250 if test -n "$found_la"; then
18251 save_libdir="$libdir"
18252 case "$found_la" in
18253 */* | *\\*) . "$found_la" ;;
18254 *) . "./$found_la" ;;
18255 esac
18256 libdir="$save_libdir"
18257 for dep in $dependency_libs; do
18258 case "$dep" in
18259 -L*)
18260 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
18261 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18262 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5053a6d1 18263 haveit=
12833ad8
JF
18264 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18265 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5053a6d1
DWT
18266 if test -n "$GCC"; then
18267 case $host_os in
18268 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18269 esac
18270 fi
18271 fi
18272 if test -z "$haveit"; then
18273 haveit=
18274 for x in $LDFLAGS $LIBICONV; do
c823f118 18275
5053a6d1
DWT
18276 acl_save_prefix="$prefix"
18277 prefix="$acl_final_prefix"
18278 acl_save_exec_prefix="$exec_prefix"
18279 exec_prefix="$acl_final_exec_prefix"
18280 eval x=\"$x\"
18281 exec_prefix="$acl_save_exec_prefix"
18282 prefix="$acl_save_prefix"
c823f118 18283
5053a6d1
DWT
18284 if test "X$x" = "X-L$additional_libdir"; then
18285 haveit=yes
18286 break
18287 fi
18288 done
18289 if test -z "$haveit"; then
18290 if test -d "$additional_libdir"; then
18291 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18292 fi
18293 fi
18294 haveit=
18295 for x in $LDFLAGS $LTLIBICONV; do
c823f118
DWT
18296
18297 acl_save_prefix="$prefix"
18298 prefix="$acl_final_prefix"
18299 acl_save_exec_prefix="$exec_prefix"
18300 exec_prefix="$acl_final_exec_prefix"
18301 eval x=\"$x\"
18302 exec_prefix="$acl_save_exec_prefix"
18303 prefix="$acl_save_prefix"
18304
5053a6d1
DWT
18305 if test "X$x" = "X-L$additional_libdir"; then
18306 haveit=yes
18307 break
18308 fi
18309 done
18310 if test -z "$haveit"; then
18311 if test -d "$additional_libdir"; then
18312 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18313 fi
18314 fi
18315 fi
18316 fi
18317 ;;
18318 -R*)
18319 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18320 if test "$enable_rpath" != no; then
18321 haveit=
18322 for x in $rpathdirs; do
18323 if test "X$x" = "X$dir"; then
18324 haveit=yes
18325 break
18326 fi
18327 done
18328 if test -z "$haveit"; then
18329 rpathdirs="$rpathdirs $dir"
18330 fi
18331 haveit=
18332 for x in $ltrpathdirs; do
18333 if test "X$x" = "X$dir"; then
18334 haveit=yes
18335 break
18336 fi
18337 done
18338 if test -z "$haveit"; then
18339 ltrpathdirs="$ltrpathdirs $dir"
18340 fi
18341 fi
18342 ;;
18343 -l*)
18344 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18345 ;;
18346 *.la)
18347 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18348 ;;
18349 *)
18350 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18352 ;;
18353 esac
18354 done
18355 fi
18356 else
18357 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18358 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18359 fi
18360 fi
c823f118
DWT
18361 fi
18362 done
c823f118 18363 done
5053a6d1
DWT
18364 if test "X$rpathdirs" != "X"; then
18365 if test -n "$acl_hardcode_libdir_separator"; then
18366 alldirs=
18367 for found_dir in $rpathdirs; do
18368 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18369 done
18370 acl_save_libdir="$libdir"
18371 libdir="$alldirs"
18372 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18373 libdir="$acl_save_libdir"
18374 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18375 else
18376 for found_dir in $rpathdirs; do
18377 acl_save_libdir="$libdir"
18378 libdir="$found_dir"
18379 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18380 libdir="$acl_save_libdir"
18381 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18382 done
18383 fi
18384 fi
18385 if test "X$ltrpathdirs" != "X"; then
18386 for found_dir in $ltrpathdirs; do
18387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18388 done
47aaa820 18389 fi
47aaa820
DWT
18390
18391
47aaa820 18392
47aaa820
DWT
18393
18394
18395
5053a6d1 18396
12833ad8
JF
18397
18398
18399
18400
18401
5053a6d1
DWT
18402 am_save_CPPFLAGS="$CPPFLAGS"
18403
18404 for element in $INCICONV; do
47aaa820 18405 haveit=
5053a6d1 18406 for x in $CPPFLAGS; do
47aaa820
DWT
18407
18408 acl_save_prefix="$prefix"
18409 prefix="$acl_final_prefix"
18410 acl_save_exec_prefix="$exec_prefix"
18411 exec_prefix="$acl_final_exec_prefix"
18412 eval x=\"$x\"
18413 exec_prefix="$acl_save_exec_prefix"
18414 prefix="$acl_save_prefix"
9c60689e 18415
47aaa820
DWT
18416 if test "X$x" = "X$element"; then
18417 haveit=yes
18418 break
18419 fi
18420 done
18421 if test -z "$haveit"; then
5053a6d1 18422 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
47aaa820
DWT
18423 fi
18424 done
18425
18426
5053a6d1
DWT
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18428$as_echo_n "checking for iconv... " >&6; }
18429if test "${am_cv_func_iconv+set}" = set; then :
18430 $as_echo_n "(cached) " >&6
18431else
47aaa820 18432
5053a6d1
DWT
18433 am_cv_func_iconv="no, consider installing GNU libiconv"
18434 am_cv_lib_iconv=no
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436/* end confdefs.h. */
18437#include <stdlib.h>
18438#include <iconv.h>
18439int
18440main ()
18441{
18442iconv_t cd = iconv_open("","");
18443 iconv(cd,NULL,NULL,NULL,NULL);
18444 iconv_close(cd);
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449if ac_fn_c_try_link "$LINENO"; then :
18450 am_cv_func_iconv=yes
18451fi
18452rm -f core conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454 if test "$am_cv_func_iconv" != yes; then
18455 am_save_LIBS="$LIBS"
18456 LIBS="$LIBS $LIBICONV"
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h. */
18459#include <stdlib.h>
18460#include <iconv.h>
18461int
18462main ()
18463{
18464iconv_t cd = iconv_open("","");
18465 iconv(cd,NULL,NULL,NULL,NULL);
18466 iconv_close(cd);
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471if ac_fn_c_try_link "$LINENO"; then :
18472 am_cv_lib_iconv=yes
18473 am_cv_func_iconv=yes
18474fi
18475rm -f core conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18477 LIBS="$am_save_LIBS"
47aaa820 18478 fi
47aaa820 18479
5053a6d1
DWT
18480fi
18481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18482$as_echo "$am_cv_func_iconv" >&6; }
18483 if test "$am_cv_func_iconv" = yes; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18485$as_echo_n "checking for working iconv... " >&6; }
18486if test "${am_cv_func_iconv_works+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18488else
47aaa820 18489
5053a6d1
DWT
18490 am_save_LIBS="$LIBS"
18491 if test $am_cv_lib_iconv = yes; then
18492 LIBS="$LIBS $LIBICONV"
18493 fi
18494 if test "$cross_compiling" = yes; then :
18495 case "$host_os" in
18496 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18497 *) am_cv_func_iconv_works="guessing yes" ;;
18498 esac
c823f118 18499else
5053a6d1
DWT
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501/* end confdefs.h. */
c823f118 18502
5053a6d1
DWT
18503#include <iconv.h>
18504#include <string.h>
18505int main ()
18506{
18507 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18508 returns. */
18509 {
18510 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18511 if (cd_utf8_to_88591 != (iconv_t)(-1))
18512 {
18513 static const char input[] = "\342\202\254"; /* EURO SIGN */
18514 char buf[10];
18515 const char *inptr = input;
18516 size_t inbytesleft = strlen (input);
18517 char *outptr = buf;
18518 size_t outbytesleft = sizeof (buf);
18519 size_t res = iconv (cd_utf8_to_88591,
18520 (char **) &inptr, &inbytesleft,
18521 &outptr, &outbytesleft);
18522 if (res == 0)
18523 return 1;
18524 }
18525 }
12833ad8
JF
18526 /* Test against Solaris 10 bug: Failures are not distinguishable from
18527 successful returns. */
18528 {
18529 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18530 if (cd_ascii_to_88591 != (iconv_t)(-1))
18531 {
18532 static const char input[] = "\263";
18533 char buf[10];
18534 const char *inptr = input;
18535 size_t inbytesleft = strlen (input);
18536 char *outptr = buf;
18537 size_t outbytesleft = sizeof (buf);
18538 size_t res = iconv (cd_ascii_to_88591,
18539 (char **) &inptr, &inbytesleft,
18540 &outptr, &outbytesleft);
18541 if (res == 0)
18542 return 1;
18543 }
18544 }
5053a6d1
DWT
18545#if 0 /* This bug could be worked around by the caller. */
18546 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18547 {
18548 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18549 if (cd_88591_to_utf8 != (iconv_t)(-1))
18550 {
18551 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18552 char buf[50];
18553 const char *inptr = input;
18554 size_t inbytesleft = strlen (input);
18555 char *outptr = buf;
18556 size_t outbytesleft = sizeof (buf);
18557 size_t res = iconv (cd_88591_to_utf8,
18558 (char **) &inptr, &inbytesleft,
18559 &outptr, &outbytesleft);
18560 if ((int)res > 0)
18561 return 1;
18562 }
18563 }
18564#endif
18565 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18566 provided. */
18567 if (/* Try standardized names. */
18568 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18569 /* Try IRIX, OSF/1 names. */
18570 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18571 /* Try AIX names. */
18572 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18573 /* Try HP-UX names. */
18574 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18575 return 1;
18576 return 0;
18577}
18578_ACEOF
18579if ac_fn_c_try_run "$LINENO"; then :
18580 am_cv_func_iconv_works=yes
18581else
18582 am_cv_func_iconv_works=no
18583fi
18584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18585 conftest.$ac_objext conftest.beam conftest.$ac_ext
c823f118
DWT
18586fi
18587
5053a6d1
DWT
18588 LIBS="$am_save_LIBS"
18589
47aaa820 18590fi
5053a6d1
DWT
18591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18592$as_echo "$am_cv_func_iconv_works" >&6; }
18593 case "$am_cv_func_iconv_works" in
18594 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18595 *) am_func_iconv=yes ;;
18596 esac
18597 else
18598 am_func_iconv=no am_cv_lib_iconv=no
18599 fi
18600 if test "$am_func_iconv" = yes; then
18601
18602$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18603
18604 fi
18605 if test "$am_cv_lib_iconv" = yes; then
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18607$as_echo_n "checking how to link with libiconv... " >&6; }
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18609$as_echo "$LIBICONV" >&6; }
18610 else
18611 CPPFLAGS="$am_save_CPPFLAGS"
18612 LIBICONV=
18613 LTLIBICONV=
18614 fi
18615
18616
18617
18618 if test "$am_cv_func_iconv" = yes; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18620$as_echo_n "checking for iconv declaration... " >&6; }
18621 if test "${am_cv_proto_iconv+set}" = set; then :
18622 $as_echo_n "(cached) " >&6
18623else
18624
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626/* end confdefs.h. */
18627
18628#include <stdlib.h>
18629#include <iconv.h>
18630extern
18631#ifdef __cplusplus
18632"C"
18633#endif
18634#if defined(__STDC__) || defined(__cplusplus)
18635size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18636#else
18637size_t iconv();
18638#endif
18639
18640int
18641main ()
18642{
47aaa820 18643
5053a6d1
DWT
18644 ;
18645 return 0;
18646}
18647_ACEOF
18648if ac_fn_c_try_compile "$LINENO"; then :
18649 am_cv_proto_iconv_arg1=""
18650else
18651 am_cv_proto_iconv_arg1="const"
47aaa820 18652fi
5053a6d1
DWT
18653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 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);"
18655fi
18656
18657 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12833ad8
JF
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18659 $am_cv_proto_iconv" >&5
18660$as_echo "
18661 $am_cv_proto_iconv" >&6; }
5053a6d1
DWT
18662
18663cat >>confdefs.h <<_ACEOF
18664#define ICONV_CONST $am_cv_proto_iconv_arg1
18665_ACEOF
18666
18667 fi
18668
5053a6d1
DWT
18669case $am_cv_func_iconv in #(
18670 yes) :
18671 ;; #(
a667869d 18672 *) :
058f1bc8
DWT
18673
18674 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
18675 case $cy_iconv_prefix_arg in #(
18676 -I*) :
18677
18678
18679 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
18680 haveit=
18681 for x in $cy_iconv_prefixes; do
18682
18683 acl_save_prefix="$prefix"
18684 prefix="$acl_final_prefix"
18685 acl_save_exec_prefix="$exec_prefix"
18686 exec_prefix="$acl_final_exec_prefix"
18687 eval x=\"$x\"
18688 exec_prefix="$acl_save_exec_prefix"
18689 prefix="$acl_save_prefix"
18690
18691 if test "X$x" = "X$element"; then
18692 haveit=yes
18693 break
18694 fi
18695 done
18696 if test -z "$haveit"; then
18697 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18698 fi
18699 done
18700
18701 ;; #(
18702 -L*) :
18703
18704
18705 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
18706 haveit=
18707 for x in $cy_iconv_prefixes; do
18708
18709 acl_save_prefix="$prefix"
18710 prefix="$acl_final_prefix"
18711 acl_save_exec_prefix="$exec_prefix"
18712 exec_prefix="$acl_final_exec_prefix"
18713 eval x=\"$x\"
18714 exec_prefix="$acl_save_exec_prefix"
18715 prefix="$acl_save_prefix"
18716
18717 if test "X$x" = "X$element"; then
18718 haveit=yes
18719 break
18720 fi
18721 done
18722 if test -z "$haveit"; then
18723 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18724 fi
18725 done
18726
18727 ;; #(
18728 *) :
18729 ;;
a667869d 18730esac
058f1bc8
DWT
18731 done
18732 for with_libiconv_prefix in $cy_iconv_prefixes; do
18733 { am_cv_func_iconv=; unset am_cv_func_iconv;}
18734
18735
18736
18737
18738
18739
18740
18741
12833ad8
JF
18742
18743
18744
058f1bc8
DWT
18745 use_additional=yes
18746
18747 acl_save_prefix="$prefix"
18748 prefix="$acl_final_prefix"
18749 acl_save_exec_prefix="$exec_prefix"
18750 exec_prefix="$acl_final_exec_prefix"
18751
18752 eval additional_includedir=\"$includedir\"
18753 eval additional_libdir=\"$libdir\"
18754
18755 exec_prefix="$acl_save_exec_prefix"
18756 prefix="$acl_save_prefix"
18757
18758
18759# Check whether --with-libiconv-prefix was given.
18760if test "${with_libiconv_prefix+set}" = set; then :
18761 withval=$with_libiconv_prefix;
18762 if test "X$withval" = "Xno"; then
18763 use_additional=no
18764 else
18765 if test "X$withval" = "X"; then
18766
18767 acl_save_prefix="$prefix"
18768 prefix="$acl_final_prefix"
18769 acl_save_exec_prefix="$exec_prefix"
18770 exec_prefix="$acl_final_exec_prefix"
18771
18772 eval additional_includedir=\"$includedir\"
18773 eval additional_libdir=\"$libdir\"
18774
18775 exec_prefix="$acl_save_exec_prefix"
18776 prefix="$acl_save_prefix"
18777
18778 else
18779 additional_includedir="$withval/include"
18780 additional_libdir="$withval/$acl_libdirstem"
12833ad8
JF
18781 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18782 && ! test -d "$withval/$acl_libdirstem"; then
18783 additional_libdir="$withval/$acl_libdirstem2"
18784 fi
058f1bc8
DWT
18785 fi
18786 fi
18787
18788fi
18789
18790 LIBICONV=
18791 LTLIBICONV=
18792 INCICONV=
18793 LIBICONV_PREFIX=
12833ad8 18794 HAVE_LIBICONV=
058f1bc8
DWT
18795 rpathdirs=
18796 ltrpathdirs=
18797 names_already_handled=
18798 names_next_round='iconv '
18799 while test -n "$names_next_round"; do
18800 names_this_round="$names_next_round"
18801 names_next_round=
18802 for name in $names_this_round; do
18803 already_handled=
18804 for n in $names_already_handled; do
18805 if test "$n" = "$name"; then
18806 already_handled=yes
18807 break
18808 fi
18809 done
18810 if test -z "$already_handled"; then
18811 names_already_handled="$names_already_handled $name"
18812 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18813 eval value=\"\$HAVE_LIB$uppername\"
18814 if test -n "$value"; then
18815 if test "$value" = yes; then
18816 eval value=\"\$LIB$uppername\"
18817 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18818 eval value=\"\$LTLIB$uppername\"
18819 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18820 else
18821 :
18822 fi
18823 else
18824 found_dir=
18825 found_la=
18826 found_so=
18827 found_a=
18828 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18829 if test -n "$acl_shlibext"; then
18830 shrext=".$acl_shlibext" # typically: shrext=.so
18831 else
18832 shrext=
18833 fi
18834 if test $use_additional = yes; then
18835 dir="$additional_libdir"
18836 if test -n "$acl_shlibext"; then
18837 if test -f "$dir/$libname$shrext"; then
18838 found_dir="$dir"
18839 found_so="$dir/$libname$shrext"
18840 else
18841 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18842 ver=`(cd "$dir" && \
18843 for f in "$libname$shrext".*; do echo "$f"; done \
18844 | sed -e "s,^$libname$shrext\\\\.,," \
18845 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18846 | sed 1q ) 2>/dev/null`
18847 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18848 found_dir="$dir"
18849 found_so="$dir/$libname$shrext.$ver"
18850 fi
18851 else
18852 eval library_names=\"$acl_library_names_spec\"
18853 for f in $library_names; do
18854 if test -f "$dir/$f"; then
18855 found_dir="$dir"
18856 found_so="$dir/$f"
18857 break
18858 fi
18859 done
18860 fi
18861 fi
18862 fi
18863 if test "X$found_dir" = "X"; then
18864 if test -f "$dir/$libname.$acl_libext"; then
18865 found_dir="$dir"
18866 found_a="$dir/$libname.$acl_libext"
18867 fi
18868 fi
18869 if test "X$found_dir" != "X"; then
18870 if test -f "$dir/$libname.la"; then
18871 found_la="$dir/$libname.la"
18872 fi
18873 fi
18874 fi
18875 if test "X$found_dir" = "X"; then
18876 for x in $LDFLAGS $LTLIBICONV; do
18877
18878 acl_save_prefix="$prefix"
18879 prefix="$acl_final_prefix"
18880 acl_save_exec_prefix="$exec_prefix"
18881 exec_prefix="$acl_final_exec_prefix"
18882 eval x=\"$x\"
18883 exec_prefix="$acl_save_exec_prefix"
18884 prefix="$acl_save_prefix"
18885
18886 case "$x" in
18887 -L*)
18888 dir=`echo "X$x" | sed -e 's/^X-L//'`
18889 if test -n "$acl_shlibext"; then
18890 if test -f "$dir/$libname$shrext"; then
18891 found_dir="$dir"
18892 found_so="$dir/$libname$shrext"
18893 else
18894 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18895 ver=`(cd "$dir" && \
18896 for f in "$libname$shrext".*; do echo "$f"; done \
18897 | sed -e "s,^$libname$shrext\\\\.,," \
18898 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18899 | sed 1q ) 2>/dev/null`
18900 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18901 found_dir="$dir"
18902 found_so="$dir/$libname$shrext.$ver"
18903 fi
18904 else
18905 eval library_names=\"$acl_library_names_spec\"
18906 for f in $library_names; do
18907 if test -f "$dir/$f"; then
18908 found_dir="$dir"
18909 found_so="$dir/$f"
18910 break
18911 fi
18912 done
18913 fi
18914 fi
18915 fi
18916 if test "X$found_dir" = "X"; then
18917 if test -f "$dir/$libname.$acl_libext"; then
18918 found_dir="$dir"
18919 found_a="$dir/$libname.$acl_libext"
18920 fi
18921 fi
18922 if test "X$found_dir" != "X"; then
18923 if test -f "$dir/$libname.la"; then
18924 found_la="$dir/$libname.la"
18925 fi
18926 fi
18927 ;;
18928 esac
18929 if test "X$found_dir" != "X"; then
18930 break
18931 fi
18932 done
18933 fi
18934 if test "X$found_dir" != "X"; then
18935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18936 if test "X$found_so" != "X"; then
12833ad8
JF
18937 if test "$enable_rpath" = no \
18938 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18939 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
058f1bc8
DWT
18940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18941 else
18942 haveit=
18943 for x in $ltrpathdirs; do
18944 if test "X$x" = "X$found_dir"; then
18945 haveit=yes
18946 break
18947 fi
18948 done
18949 if test -z "$haveit"; then
18950 ltrpathdirs="$ltrpathdirs $found_dir"
18951 fi
18952 if test "$acl_hardcode_direct" = yes; then
18953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18954 else
18955 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18956 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18957 haveit=
18958 for x in $rpathdirs; do
18959 if test "X$x" = "X$found_dir"; then
18960 haveit=yes
18961 break
18962 fi
18963 done
18964 if test -z "$haveit"; then
18965 rpathdirs="$rpathdirs $found_dir"
18966 fi
18967 else
18968 haveit=
18969 for x in $LDFLAGS $LIBICONV; do
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 if test "X$x" = "X-L$found_dir"; then
18980 haveit=yes
18981 break
18982 fi
18983 done
18984 if test -z "$haveit"; then
18985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18986 fi
18987 if test "$acl_hardcode_minus_L" != no; then
18988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18989 else
18990 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18991 fi
18992 fi
18993 fi
18994 fi
18995 else
18996 if test "X$found_a" != "X"; then
18997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18998 else
18999 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19000 fi
19001 fi
19002 additional_includedir=
19003 case "$found_dir" in
19004 */$acl_libdirstem | */$acl_libdirstem/)
19005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12833ad8
JF
19006 if test "$name" = 'iconv'; then
19007 LIBICONV_PREFIX="$basedir"
19008 fi
19009 additional_includedir="$basedir/include"
19010 ;;
19011 */$acl_libdirstem2 | */$acl_libdirstem2/)
19012 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19013 if test "$name" = 'iconv'; then
19014 LIBICONV_PREFIX="$basedir"
19015 fi
058f1bc8
DWT
19016 additional_includedir="$basedir/include"
19017 ;;
19018 esac
19019 if test "X$additional_includedir" != "X"; then
19020 if test "X$additional_includedir" != "X/usr/include"; then
19021 haveit=
19022 if test "X$additional_includedir" = "X/usr/local/include"; then
19023 if test -n "$GCC"; then
19024 case $host_os in
19025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19026 esac
19027 fi
19028 fi
19029 if test -z "$haveit"; then
19030 for x in $CPPFLAGS $INCICONV; do
19031
19032 acl_save_prefix="$prefix"
19033 prefix="$acl_final_prefix"
19034 acl_save_exec_prefix="$exec_prefix"
19035 exec_prefix="$acl_final_exec_prefix"
19036 eval x=\"$x\"
19037 exec_prefix="$acl_save_exec_prefix"
19038 prefix="$acl_save_prefix"
19039
19040 if test "X$x" = "X-I$additional_includedir"; then
19041 haveit=yes
19042 break
19043 fi
19044 done
19045 if test -z "$haveit"; then
19046 if test -d "$additional_includedir"; then
19047 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19048 fi
19049 fi
19050 fi
19051 fi
19052 fi
19053 if test -n "$found_la"; then
19054 save_libdir="$libdir"
19055 case "$found_la" in
19056 */* | *\\*) . "$found_la" ;;
19057 *) . "./$found_la" ;;
19058 esac
19059 libdir="$save_libdir"
19060 for dep in $dependency_libs; do
19061 case "$dep" in
19062 -L*)
19063 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12833ad8
JF
19064 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19065 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
058f1bc8 19066 haveit=
12833ad8
JF
19067 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19068 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
058f1bc8
DWT
19069 if test -n "$GCC"; then
19070 case $host_os in
19071 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19072 esac
19073 fi
19074 fi
19075 if test -z "$haveit"; then
19076 haveit=
19077 for x in $LDFLAGS $LIBICONV; do
19078
19079 acl_save_prefix="$prefix"
19080 prefix="$acl_final_prefix"
19081 acl_save_exec_prefix="$exec_prefix"
19082 exec_prefix="$acl_final_exec_prefix"
19083 eval x=\"$x\"
19084 exec_prefix="$acl_save_exec_prefix"
19085 prefix="$acl_save_prefix"
19086
19087 if test "X$x" = "X-L$additional_libdir"; then
19088 haveit=yes
19089 break
19090 fi
19091 done
19092 if test -z "$haveit"; then
19093 if test -d "$additional_libdir"; then
19094 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19095 fi
19096 fi
19097 haveit=
19098 for x in $LDFLAGS $LTLIBICONV; do
19099
19100 acl_save_prefix="$prefix"
19101 prefix="$acl_final_prefix"
19102 acl_save_exec_prefix="$exec_prefix"
19103 exec_prefix="$acl_final_exec_prefix"
19104 eval x=\"$x\"
19105 exec_prefix="$acl_save_exec_prefix"
19106 prefix="$acl_save_prefix"
19107
19108 if test "X$x" = "X-L$additional_libdir"; then
19109 haveit=yes
19110 break
19111 fi
19112 done
19113 if test -z "$haveit"; then
19114 if test -d "$additional_libdir"; then
19115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19116 fi
19117 fi
19118 fi
19119 fi
19120 ;;
19121 -R*)
19122 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19123 if test "$enable_rpath" != no; then
19124 haveit=
19125 for x in $rpathdirs; do
19126 if test "X$x" = "X$dir"; then
19127 haveit=yes
19128 break
19129 fi
19130 done
19131 if test -z "$haveit"; then
19132 rpathdirs="$rpathdirs $dir"
19133 fi
19134 haveit=
19135 for x in $ltrpathdirs; do
19136 if test "X$x" = "X$dir"; then
19137 haveit=yes
19138 break
19139 fi
19140 done
19141 if test -z "$haveit"; then
19142 ltrpathdirs="$ltrpathdirs $dir"
19143 fi
19144 fi
19145 ;;
19146 -l*)
19147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19148 ;;
19149 *.la)
19150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19151 ;;
19152 *)
19153 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19155 ;;
19156 esac
19157 done
19158 fi
19159 else
19160 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19161 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19162 fi
19163 fi
19164 fi
19165 done
19166 done
19167 if test "X$rpathdirs" != "X"; then
19168 if test -n "$acl_hardcode_libdir_separator"; then
19169 alldirs=
19170 for found_dir in $rpathdirs; do
19171 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19172 done
19173 acl_save_libdir="$libdir"
19174 libdir="$alldirs"
19175 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19176 libdir="$acl_save_libdir"
19177 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19178 else
19179 for found_dir in $rpathdirs; do
19180 acl_save_libdir="$libdir"
19181 libdir="$found_dir"
19182 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19183 libdir="$acl_save_libdir"
19184 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19185 done
19186 fi
19187 fi
19188 if test "X$ltrpathdirs" != "X"; then
19189 for found_dir in $ltrpathdirs; do
19190 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19191 done
19192 fi
19193
19194
19195
19196
19197
19198
19199
058f1bc8
DWT
19200
19201 done
19202 ;;
19203esac
19204case $am_cv_func_iconv in #(
19205 yes) :
19206 ;; #(
19207 *) :
12833ad8 19208 as_fn_error $? "You need iconv" "$LINENO" 5 ;;
058f1bc8
DWT
19209esac
19210ac_ext=cpp
19211ac_cpp='$CXXCPP $CPPFLAGS'
19212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19215
9777bd50
JF
19216SO=$acl_shlibext
19217
e1cce270
DWT
19218if test "x$CY_OBJECTIVEC" = x1; then :
19219
19220 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19221if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19222
794e88e7
DWT
19223 if test -n "$ac_tool_prefix"; then
19224 for ac_prog in otool
19225 do
19226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19229$as_echo_n "checking for $ac_word... " >&6; }
19230if test "${ac_cv_prog__OTOOL+set}" = set; then :
19231 $as_echo_n "(cached) " >&6
19232else
19233 if test -n "$_OTOOL"; then
19234 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
19235else
19236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19237for as_dir in $PATH
19238do
19239 IFS=$as_save_IFS
19240 test -z "$as_dir" && as_dir=.
19241 for ac_exec_ext in '' $ac_executable_extensions; do
19242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19243 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
19244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19245 break 2
19246 fi
19247done
19248 done
19249IFS=$as_save_IFS
19250
19251fi
19252fi
19253_OTOOL=$ac_cv_prog__OTOOL
19254if test -n "$_OTOOL"; then
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
19256$as_echo "$_OTOOL" >&6; }
19257else
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259$as_echo "no" >&6; }
19260fi
19261
19262
19263 test -n "$_OTOOL" && break
19264 done
19265fi
19266if test -z "$_OTOOL"; then
19267 ac_ct__OTOOL=$_OTOOL
19268 for ac_prog in otool
19269do
19270 # Extract the first word of "$ac_prog", so it can be a program name with args.
19271set dummy $ac_prog; ac_word=$2
19272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19273$as_echo_n "checking for $ac_word... " >&6; }
19274if test "${ac_cv_prog_ac_ct__OTOOL+set}" = set; then :
19275 $as_echo_n "(cached) " >&6
19276else
19277 if test -n "$ac_ct__OTOOL"; then
19278 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
19279else
19280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19281for as_dir in $PATH
19282do
19283 IFS=$as_save_IFS
19284 test -z "$as_dir" && as_dir=.
19285 for ac_exec_ext in '' $ac_executable_extensions; do
19286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19287 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
19288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19289 break 2
19290 fi
19291done
19292 done
19293IFS=$as_save_IFS
19294
19295fi
19296fi
19297ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
19298if test -n "$ac_ct__OTOOL"; then
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
19300$as_echo "$ac_ct__OTOOL" >&6; }
19301else
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19303$as_echo "no" >&6; }
19304fi
19305
19306
19307 test -n "$ac_ct__OTOOL" && break
19308done
19309
19310 if test "x$ac_ct__OTOOL" = x; then
19311 _OTOOL=""
19312 else
19313 case $cross_compiling:$ac_tool_warned in
19314yes:)
19315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19317ac_tool_warned=yes ;;
e1cce270 19318esac
794e88e7
DWT
19319 _OTOOL=$ac_ct__OTOOL
19320 fi
19321fi
19322
19323 if test "x$_OTOOL" = x; then :
12833ad8 19324 as_fn_error $? "You need otool" "$LINENO" 5
794e88e7
DWT
19325fi
19326 if test -n "$ac_tool_prefix"; then
19327 for ac_prog in lipo
19328 do
19329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19332$as_echo_n "checking for $ac_word... " >&6; }
19333if test "${ac_cv_prog__LIPO+set}" = set; then :
19334 $as_echo_n "(cached) " >&6
19335else
19336 if test -n "$_LIPO"; then
19337 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
19338else
19339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340for as_dir in $PATH
19341do
19342 IFS=$as_save_IFS
19343 test -z "$as_dir" && as_dir=.
19344 for ac_exec_ext in '' $ac_executable_extensions; do
19345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19346 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
19347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19348 break 2
19349 fi
19350done
19351 done
19352IFS=$as_save_IFS
19353
19354fi
19355fi
19356_LIPO=$ac_cv_prog__LIPO
19357if test -n "$_LIPO"; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
19359$as_echo "$_LIPO" >&6; }
19360else
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19362$as_echo "no" >&6; }
19363fi
19364
19365
19366 test -n "$_LIPO" && break
19367 done
19368fi
19369if test -z "$_LIPO"; then
19370 ac_ct__LIPO=$_LIPO
19371 for ac_prog in lipo
19372do
19373 # Extract the first word of "$ac_prog", so it can be a program name with args.
19374set dummy $ac_prog; ac_word=$2
19375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19376$as_echo_n "checking for $ac_word... " >&6; }
19377if test "${ac_cv_prog_ac_ct__LIPO+set}" = set; then :
19378 $as_echo_n "(cached) " >&6
19379else
19380 if test -n "$ac_ct__LIPO"; then
19381 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
19382else
19383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19384for as_dir in $PATH
19385do
19386 IFS=$as_save_IFS
19387 test -z "$as_dir" && as_dir=.
19388 for ac_exec_ext in '' $ac_executable_extensions; do
19389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19390 ac_cv_prog_ac_ct__LIPO="$ac_prog"
19391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19392 break 2
19393 fi
19394done
19395 done
19396IFS=$as_save_IFS
19397
19398fi
19399fi
19400ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
19401if test -n "$ac_ct__LIPO"; then
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
19403$as_echo "$ac_ct__LIPO" >&6; }
19404else
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406$as_echo "no" >&6; }
19407fi
19408
19409
19410 test -n "$ac_ct__LIPO" && break
19411done
19412
19413 if test "x$ac_ct__LIPO" = x; then
19414 _LIPO=""
19415 else
19416 case $cross_compiling:$ac_tool_warned in
19417yes:)
19418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19420ac_tool_warned=yes ;;
19421esac
19422 _LIPO=$ac_ct__LIPO
19423 fi
19424fi
19425
19426 if test "x$_LIPO" = x; then :
12833ad8 19427 as_fn_error $? "You need lipo" "$LINENO" 5
794e88e7
DWT
19428fi
19429 if test -n "$ac_tool_prefix"; then
19430 for ac_prog in nm
19431 do
19432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19433set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19435$as_echo_n "checking for $ac_word... " >&6; }
19436if test "${ac_cv_prog__NM+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
19438else
19439 if test -n "$_NM"; then
19440 ac_cv_prog__NM="$_NM" # Let the user override the test.
19441else
19442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443for as_dir in $PATH
19444do
19445 IFS=$as_save_IFS
19446 test -z "$as_dir" && as_dir=.
19447 for ac_exec_ext in '' $ac_executable_extensions; do
19448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19449 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
19450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19451 break 2
19452 fi
19453done
19454 done
19455IFS=$as_save_IFS
19456
19457fi
19458fi
19459_NM=$ac_cv_prog__NM
19460if test -n "$_NM"; then
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
19462$as_echo "$_NM" >&6; }
19463else
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465$as_echo "no" >&6; }
19466fi
19467
19468
19469 test -n "$_NM" && break
19470 done
19471fi
19472if test -z "$_NM"; then
19473 ac_ct__NM=$_NM
19474 for ac_prog in nm
19475do
19476 # Extract the first word of "$ac_prog", so it can be a program name with args.
19477set dummy $ac_prog; ac_word=$2
19478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19479$as_echo_n "checking for $ac_word... " >&6; }
19480if test "${ac_cv_prog_ac_ct__NM+set}" = set; then :
19481 $as_echo_n "(cached) " >&6
19482else
19483 if test -n "$ac_ct__NM"; then
19484 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
19485else
19486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19487for as_dir in $PATH
19488do
19489 IFS=$as_save_IFS
19490 test -z "$as_dir" && as_dir=.
19491 for ac_exec_ext in '' $ac_executable_extensions; do
19492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19493 ac_cv_prog_ac_ct__NM="$ac_prog"
19494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19495 break 2
19496 fi
19497done
19498 done
19499IFS=$as_save_IFS
19500
19501fi
19502fi
19503ac_ct__NM=$ac_cv_prog_ac_ct__NM
19504if test -n "$ac_ct__NM"; then
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
19506$as_echo "$ac_ct__NM" >&6; }
19507else
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19509$as_echo "no" >&6; }
19510fi
19511
19512
19513 test -n "$ac_ct__NM" && break
19514done
19515
19516 if test "x$ac_ct__NM" = x; then
19517 _NM=""
19518 else
19519 case $cross_compiling:$ac_tool_warned in
19520yes:)
19521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19523ac_tool_warned=yes ;;
19524esac
19525 _NM=$ac_ct__NM
19526 fi
19527fi
19528
19529 if test "x$_NM" = x; then :
12833ad8 19530 as_fn_error $? "You need nm" "$LINENO" 5
794e88e7 19531fi
794e88e7
DWT
19532 CY_OBJECTIVEC_MACH=1
19533
19534 CY_ATTACH_GROUP=procmod
19535
e1cce270
DWT
19536
19537fi
19538
19539
19540
790e5246
DWT
19541fi
19542if test "x$GMAKE" != xmake; then :
19543
19544 ac_config_files="$ac_config_files Makefile"
19545
19546
47aaa820 19547fi
9c60689e
DWT
19548ac_config_files="$ac_config_files GNUmakefile"
19549
19550cat >confcache <<\_ACEOF
19551# This file is a shell script that caches the results of configure
19552# tests run on this system so they can be shared between configure
19553# scripts and configure runs, see configure's option --config-cache.
19554# It is not useful on other systems. If it contains results you don't
19555# want to keep, you may remove or edit it.
19556#
19557# config.status only pays attention to the cache file if you give it
19558# the --recheck option to rerun configure.
19559#
19560# `ac_cv_env_foo' variables (set or unset) will be overridden when
19561# loading this file, other *unset* `ac_cv_foo' will be assigned the
19562# following values.
19563
19564_ACEOF
19565
19566# The following way of writing the cache mishandles newlines in values,
19567# but we know of no workaround that is simple, portable, and efficient.
19568# So, we kill variables containing newlines.
19569# Ultrix sh set writes to stderr and can't be redirected directly,
19570# and sets the high bit in the cache file unless we assign to the vars.
19571(
19572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19573 eval ac_val=\$$ac_var
19574 case $ac_val in #(
19575 *${as_nl}*)
19576 case $ac_var in #(
19577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19578$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19579 esac
19580 case $ac_var in #(
19581 _ | IFS | as_nl) ;; #(
19582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19583 *) { eval $ac_var=; unset $ac_var;} ;;
19584 esac ;;
19585 esac
19586 done
19587
19588 (set) 2>&1 |
19589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19590 *${as_nl}ac_space=\ *)
19591 # `set' does not quote correctly, so add quotes: double-quote
19592 # substitution turns \\\\ into \\, and sed turns \\ into \.
19593 sed -n \
19594 "s/'/'\\\\''/g;
19595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19596 ;; #(
19597 *)
19598 # `set' quotes correctly as required by POSIX, so do not add quotes.
19599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19600 ;;
19601 esac |
19602 sort
19603) |
19604 sed '
19605 /^ac_cv_env_/b end
19606 t clear
19607 :clear
19608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19609 t end
19610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19611 :end' >>confcache
19612if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19613 if test -w "$cache_file"; then
19614 test "x$cache_file" != "x/dev/null" &&
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19616$as_echo "$as_me: updating cache $cache_file" >&6;}
19617 cat confcache >$cache_file
19618 else
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19620$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19621 fi
19622fi
19623rm -f confcache
19624
19625test "x$prefix" = xNONE && prefix=$ac_default_prefix
19626# Let make expand exec_prefix.
19627test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19628
19629# Transform confdefs.h into DEFS.
19630# Protect against shell expansion while executing Makefile rules.
19631# Protect against Makefile macro expansion.
19632#
19633# If the first sed substitution is executed (which looks for macros that
19634# take arguments), then branch to the quote section. Otherwise,
19635# look for a macro that doesn't take arguments.
19636ac_script='
19637:mline
19638/\\$/{
19639 N
19640 s,\\\n,,
19641 b mline
19642}
19643t clear
19644:clear
19645s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19646t quote
19647s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19648t quote
19649b any
19650:quote
19651s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19652s/\[/\\&/g
19653s/\]/\\&/g
19654s/\$/$$/g
19655H
19656:any
19657${
19658 g
19659 s/^\n//
19660 s/\n/ /g
19661 p
19662}
19663'
19664DEFS=`sed -n "$ac_script" confdefs.h`
19665
19666
19667ac_libobjs=
19668ac_ltlibobjs=
12833ad8 19669U=
9c60689e
DWT
19670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19671 # 1. Remove the extension, and $U if already installed.
19672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19675 # will be set to the directory where LIBOBJS objects are built.
19676 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19677 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19678done
19679LIBOBJS=$ac_libobjs
19680
19681LTLIBOBJS=$ac_ltlibobjs
19682
19683
19684
19685: ${CONFIG_STATUS=./config.status}
19686ac_write_fail=0
19687ac_clean_files_save=$ac_clean_files
19688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19689{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19690$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19691as_write_fail=0
19692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19693#! $SHELL
19694# Generated by $as_me.
19695# Run this file to recreate the current configuration.
19696# Compiler output produced by configure, useful for debugging
19697# configure, is in config.log if it exists.
19698
19699debug=false
19700ac_cs_recheck=false
19701ac_cs_silent=false
19702
19703SHELL=\${CONFIG_SHELL-$SHELL}
19704export SHELL
19705_ASEOF
19706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19707## -------------------- ##
19708## M4sh Initialization. ##
19709## -------------------- ##
19710
19711# Be more Bourne compatible
19712DUALCASE=1; export DUALCASE # for MKS sh
19713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19714 emulate sh
19715 NULLCMD=:
19716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19717 # is contrary to our usage. Disable this feature.
19718 alias -g '${1+"$@"}'='"$@"'
19719 setopt NO_GLOB_SUBST
19720else
19721 case `(set -o) 2>/dev/null` in #(
19722 *posix*) :
19723 set -o posix ;; #(
19724 *) :
19725 ;;
19726esac
19727fi
19728
19729
19730as_nl='
19731'
19732export as_nl
19733# Printing a long string crashes Solaris 7 /usr/bin/printf.
19734as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19737# Prefer a ksh shell builtin over an external printf program on Solaris,
19738# but without wasting forks for bash or zsh.
19739if test -z "$BASH_VERSION$ZSH_VERSION" \
19740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19741 as_echo='print -r --'
19742 as_echo_n='print -rn --'
19743elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19744 as_echo='printf %s\n'
19745 as_echo_n='printf %s'
19746else
19747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19749 as_echo_n='/usr/ucb/echo -n'
19750 else
19751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19752 as_echo_n_body='eval
19753 arg=$1;
19754 case $arg in #(
19755 *"$as_nl"*)
19756 expr "X$arg" : "X\\(.*\\)$as_nl";
19757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19758 esac;
19759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19760 '
19761 export as_echo_n_body
19762 as_echo_n='sh -c $as_echo_n_body as_echo'
19763 fi
19764 export as_echo_body
19765 as_echo='sh -c $as_echo_body as_echo'
19766fi
19767
19768# The user is always right.
19769if test "${PATH_SEPARATOR+set}" != set; then
19770 PATH_SEPARATOR=:
19771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19773 PATH_SEPARATOR=';'
19774 }
19775fi
19776
19777
19778# IFS
19779# We need space, tab and new line, in precisely that order. Quoting is
19780# there to prevent editors from complaining about space-tab.
19781# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19782# splitting by setting IFS to empty value.)
19783IFS=" "" $as_nl"
19784
19785# Find who we are. Look in the path if we contain no directory separator.
19786case $0 in #((
19787 *[\\/]* ) as_myself=$0 ;;
19788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789for as_dir in $PATH
19790do
19791 IFS=$as_save_IFS
19792 test -z "$as_dir" && as_dir=.
19793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19794 done
19795IFS=$as_save_IFS
19796
19797 ;;
19798esac
19799# We did not find ourselves, most probably we were run as `sh COMMAND'
19800# in which case we are not to be found in the path.
19801if test "x$as_myself" = x; then
19802 as_myself=$0
19803fi
19804if test ! -f "$as_myself"; then
19805 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19806 exit 1
19807fi
19808
19809# Unset variables that we do not need and which cause bugs (e.g. in
19810# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19811# suppresses any "Segmentation fault" message there. '((' could
19812# trigger a bug in pdksh 5.2.14.
19813for as_var in BASH_ENV ENV MAIL MAILPATH
19814do eval test x\${$as_var+set} = xset \
19815 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19816done
19817PS1='$ '
19818PS2='> '
19819PS4='+ '
19820
19821# NLS nuisances.
19822LC_ALL=C
19823export LC_ALL
19824LANGUAGE=C
19825export LANGUAGE
19826
19827# CDPATH.
19828(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19829
19830
12833ad8
JF
19831# as_fn_error STATUS ERROR [LINENO LOG_FD]
19832# ----------------------------------------
9c60689e
DWT
19833# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19834# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 19835# script with STATUS, using 1 if that was 0.
9c60689e
DWT
19836as_fn_error ()
19837{
12833ad8
JF
19838 as_status=$1; test $as_status -eq 0 && as_status=1
19839 if test "$4"; then
19840 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19841 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 19842 fi
12833ad8 19843 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
19844 as_fn_exit $as_status
19845} # as_fn_error
19846
19847
19848# as_fn_set_status STATUS
19849# -----------------------
19850# Set $? to STATUS, without forking.
19851as_fn_set_status ()
19852{
19853 return $1
19854} # as_fn_set_status
19855
19856# as_fn_exit STATUS
19857# -----------------
19858# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19859as_fn_exit ()
19860{
19861 set +e
19862 as_fn_set_status $1
19863 exit $1
19864} # as_fn_exit
19865
19866# as_fn_unset VAR
19867# ---------------
19868# Portably unset VAR.
19869as_fn_unset ()
19870{
19871 { eval $1=; unset $1;}
19872}
19873as_unset=as_fn_unset
19874# as_fn_append VAR VALUE
19875# ----------------------
19876# Append the text in VALUE to the end of the definition contained in VAR. Take
19877# advantage of any shell optimizations that allow amortized linear growth over
19878# repeated appends, instead of the typical quadratic growth present in naive
19879# implementations.
19880if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19881 eval 'as_fn_append ()
19882 {
19883 eval $1+=\$2
19884 }'
19885else
19886 as_fn_append ()
19887 {
19888 eval $1=\$$1\$2
19889 }
19890fi # as_fn_append
19891
19892# as_fn_arith ARG...
19893# ------------------
19894# Perform arithmetic evaluation on the ARGs, and store the result in the
19895# global $as_val. Take advantage of shells that can avoid forks. The arguments
19896# must be portable across $(()) and expr.
19897if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19898 eval 'as_fn_arith ()
19899 {
19900 as_val=$(( $* ))
19901 }'
19902else
19903 as_fn_arith ()
19904 {
19905 as_val=`expr "$@" || test $? -eq 1`
19906 }
19907fi # as_fn_arith
19908
19909
19910if expr a : '\(a\)' >/dev/null 2>&1 &&
19911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19912 as_expr=expr
19913else
19914 as_expr=false
19915fi
19916
19917if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19918 as_basename=basename
19919else
19920 as_basename=false
19921fi
19922
19923if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19924 as_dirname=dirname
19925else
19926 as_dirname=false
19927fi
19928
19929as_me=`$as_basename -- "$0" ||
19930$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19931 X"$0" : 'X\(//\)$' \| \
19932 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19933$as_echo X/"$0" |
19934 sed '/^.*\/\([^/][^/]*\)\/*$/{
19935 s//\1/
19936 q
19937 }
19938 /^X\/\(\/\/\)$/{
19939 s//\1/
19940 q
19941 }
19942 /^X\/\(\/\).*/{
19943 s//\1/
19944 q
19945 }
19946 s/.*/./; q'`
19947
19948# Avoid depending upon Character Ranges.
19949as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19950as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19951as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19952as_cr_digits='0123456789'
19953as_cr_alnum=$as_cr_Letters$as_cr_digits
19954
19955ECHO_C= ECHO_N= ECHO_T=
19956case `echo -n x` in #(((((
19957-n*)
19958 case `echo 'xy\c'` in
19959 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19960 xy) ECHO_C='\c';;
19961 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19962 ECHO_T=' ';;
19963 esac;;
19964*)
19965 ECHO_N='-n';;
19966esac
19967
19968rm -f conf$$ conf$$.exe conf$$.file
19969if test -d conf$$.dir; then
19970 rm -f conf$$.dir/conf$$.file
19971else
19972 rm -f conf$$.dir
19973 mkdir conf$$.dir 2>/dev/null
19974fi
19975if (echo >conf$$.file) 2>/dev/null; then
19976 if ln -s conf$$.file conf$$ 2>/dev/null; then
19977 as_ln_s='ln -s'
19978 # ... but there are two gotchas:
19979 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19980 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19981 # In both cases, we have to default to `cp -p'.
19982 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19983 as_ln_s='cp -p'
19984 elif ln conf$$.file conf$$ 2>/dev/null; then
19985 as_ln_s=ln
19986 else
19987 as_ln_s='cp -p'
19988 fi
19989else
19990 as_ln_s='cp -p'
19991fi
19992rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19993rmdir conf$$.dir 2>/dev/null
19994
19995
19996# as_fn_mkdir_p
19997# -------------
19998# Create "$as_dir" as a directory, including parents if necessary.
19999as_fn_mkdir_p ()
20000{
20001
20002 case $as_dir in #(
20003 -*) as_dir=./$as_dir;;
20004 esac
20005 test -d "$as_dir" || eval $as_mkdir_p || {
20006 as_dirs=
20007 while :; do
20008 case $as_dir in #(
20009 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20010 *) as_qdir=$as_dir;;
20011 esac
20012 as_dirs="'$as_qdir' $as_dirs"
20013 as_dir=`$as_dirname -- "$as_dir" ||
20014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20015 X"$as_dir" : 'X\(//\)[^/]' \| \
20016 X"$as_dir" : 'X\(//\)$' \| \
20017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20018$as_echo X"$as_dir" |
20019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20020 s//\1/
20021 q
20022 }
20023 /^X\(\/\/\)[^/].*/{
20024 s//\1/
20025 q
20026 }
20027 /^X\(\/\/\)$/{
20028 s//\1/
20029 q
20030 }
20031 /^X\(\/\).*/{
20032 s//\1/
20033 q
20034 }
20035 s/.*/./; q'`
20036 test -d "$as_dir" && break
20037 done
20038 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 20039 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
20040
20041
20042} # as_fn_mkdir_p
20043if mkdir -p . 2>/dev/null; then
20044 as_mkdir_p='mkdir -p "$as_dir"'
20045else
20046 test -d ./-p && rmdir ./-p
20047 as_mkdir_p=false
20048fi
20049
20050if test -x / >/dev/null 2>&1; then
20051 as_test_x='test -x'
20052else
20053 if ls -dL / >/dev/null 2>&1; then
20054 as_ls_L_option=L
20055 else
20056 as_ls_L_option=
20057 fi
20058 as_test_x='
20059 eval sh -c '\''
20060 if test -d "$1"; then
20061 test -d "$1/.";
20062 else
20063 case $1 in #(
20064 -*)set "./$1";;
20065 esac;
20066 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20067 ???[sx]*):;;*)false;;esac;fi
20068 '\'' sh
20069 '
20070fi
20071as_executable_p=$as_test_x
20072
20073# Sed expression to map a string onto a valid CPP name.
20074as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20075
20076# Sed expression to map a string onto a valid variable name.
20077as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20078
20079
20080exec 6>&1
20081## ----------------------------------- ##
20082## Main body of $CONFIG_STATUS script. ##
20083## ----------------------------------- ##
20084_ASEOF
20085test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20086
20087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20088# Save the log message, to keep $0 and so on meaningful, and to
20089# report actual input values of CONFIG_FILES etc. instead of their
20090# values after options handling.
20091ac_log="
20092This file was extended by Cycript $as_me 0.9, which was
12833ad8 20093generated by GNU Autoconf 2.67. Invocation command line was
9c60689e
DWT
20094
20095 CONFIG_FILES = $CONFIG_FILES
20096 CONFIG_HEADERS = $CONFIG_HEADERS
20097 CONFIG_LINKS = $CONFIG_LINKS
20098 CONFIG_COMMANDS = $CONFIG_COMMANDS
20099 $ $0 $@
20100
20101on `(hostname || uname -n) 2>/dev/null | sed 1q`
20102"
20103
20104_ACEOF
20105
20106case $ac_config_files in *"
20107"*) set x $ac_config_files; shift; ac_config_files=$*;;
20108esac
20109
20110
20111
20112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20113# Files that config.status was made for.
20114config_files="$ac_config_files"
20115config_commands="$ac_config_commands"
20116
20117_ACEOF
20118
20119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20120ac_cs_usage="\
20121\`$as_me' instantiates files and other configuration actions
20122from templates according to the current configuration. Unless the files
20123and actions are specified as TAGs, all are instantiated by default.
20124
20125Usage: $0 [OPTION]... [TAG]...
20126
20127 -h, --help print this help, then exit
20128 -V, --version print version number and configuration settings, then exit
20129 --config print configuration, then exit
20130 -q, --quiet, --silent
20131 do not print progress messages
20132 -d, --debug don't remove temporary files
20133 --recheck update $as_me by reconfiguring in the same conditions
20134 --file=FILE[:TEMPLATE]
20135 instantiate the configuration file FILE
20136
20137Configuration files:
20138$config_files
20139
20140Configuration commands:
20141$config_commands
20142
20143Report bugs to <saurik@saurik.com>.
20144Cycript home page: <http://www.cycript.org/>."
20145
20146_ACEOF
20147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20148ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20149ac_cs_version="\\
20150Cycript config.status 0.9
12833ad8 20151configured by $0, generated by GNU Autoconf 2.67,
9c60689e
DWT
20152 with options \\"\$ac_cs_config\\"
20153
12833ad8 20154Copyright (C) 2010 Free Software Foundation, Inc.
9c60689e
DWT
20155This config.status script is free software; the Free Software Foundation
20156gives unlimited permission to copy, distribute and modify it."
20157
20158ac_pwd='$ac_pwd'
20159srcdir='$srcdir'
20160INSTALL='$INSTALL'
9c60689e
DWT
20161test -n "\$AWK" || AWK=awk
20162_ACEOF
20163
20164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20165# The default lists apply if the user does not specify any file.
20166ac_need_defaults=:
20167while test $# != 0
20168do
20169 case $1 in
12833ad8 20170 --*=?*)
9c60689e
DWT
20171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20173 ac_shift=:
20174 ;;
12833ad8
JF
20175 --*=)
20176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20177 ac_optarg=
20178 ac_shift=:
20179 ;;
9c60689e
DWT
20180 *)
20181 ac_option=$1
20182 ac_optarg=$2
20183 ac_shift=shift
20184 ;;
20185 esac
20186
20187 case $ac_option in
20188 # Handling of the options.
20189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20190 ac_cs_recheck=: ;;
20191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20192 $as_echo "$ac_cs_version"; exit ;;
20193 --config | --confi | --conf | --con | --co | --c )
20194 $as_echo "$ac_cs_config"; exit ;;
20195 --debug | --debu | --deb | --de | --d | -d )
20196 debug=: ;;
20197 --file | --fil | --fi | --f )
20198 $ac_shift
20199 case $ac_optarg in
20200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 20201 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
20202 esac
20203 as_fn_append CONFIG_FILES " '$ac_optarg'"
20204 ac_need_defaults=false;;
20205 --he | --h | --help | --hel | -h )
20206 $as_echo "$ac_cs_usage"; exit ;;
20207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20209 ac_cs_silent=: ;;
20210
20211 # This is an error.
12833ad8 20212 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
20213Try \`$0 --help' for more information." ;;
20214
20215 *) as_fn_append ac_config_targets " $1"
20216 ac_need_defaults=false ;;
20217
20218 esac
20219 shift
20220done
20221
20222ac_configure_extra_args=
20223
20224if $ac_cs_silent; then
20225 exec 6>/dev/null
20226 ac_configure_extra_args="$ac_configure_extra_args --silent"
20227fi
20228
20229_ACEOF
20230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20231if \$ac_cs_recheck; then
20232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20233 shift
20234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20235 CONFIG_SHELL='$SHELL'
20236 export CONFIG_SHELL
20237 exec "\$@"
20238fi
20239
20240_ACEOF
20241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20242exec 5>>config.log
20243{
20244 echo
20245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20246## Running $as_me. ##
20247_ASBOX
20248 $as_echo "$ac_log"
20249} >&5
20250
20251_ACEOF
20252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20253#
20254# INIT-COMMANDS
20255#
20256
20257
20258# The HP-UX ksh and POSIX shell print the target directory to stdout
20259# if CDPATH is set.
20260(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20261
20262sed_quote_subst='$sed_quote_subst'
20263double_quote_subst='$double_quote_subst'
20264delay_variable_subst='$delay_variable_subst'
20265macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20266macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e 20267enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
549f29b5 20268enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e
DWT
20269pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20270enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20271host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20272host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20273host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20274build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20275build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20276build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20277SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20278Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20279GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20280EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20281FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20282LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20283NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20284LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20285max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20286ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20287exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20288lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20289lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20290lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20291reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20292reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20293OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20294deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20295file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20296AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20297AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20298STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20299RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20300old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20301old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20302old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20303CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20304CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20305compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20306GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20307lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20308lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20309lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20310lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20311objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20312SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20313ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20314MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20315lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20316lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20317lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20318lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20319lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20320need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20321DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20322NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20323LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20324OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20325OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20326libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20327shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20328extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20329archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20330enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20331export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20332whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20333compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20334old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20335old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20336archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20337archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20338module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20339module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20340with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20341allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20342no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20343hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20344hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20345hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20346hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20347hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20348hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20349hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20350hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20351inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20352link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20353fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20354always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20355export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20356exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20357include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20358prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20359file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20360variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20361need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20362need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20363version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20364runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20365shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20366shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20367libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20368library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20369soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20370postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20371postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20372finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20373finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20374hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20375sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20376sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20377hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20378enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20379enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20380enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20381old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20382striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20383compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20384predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20385postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20386predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20387postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20388compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20389LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20390old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20391compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20392GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20393lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20394lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20395lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20396lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20397lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20398archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20399enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20400export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20401whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20402compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20403old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20404old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20405archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20406archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20407module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20408module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20409with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20410allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20411no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20412hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20413hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20414hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20415hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20416hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20417hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20418hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20419hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20420inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20421link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20422fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20423always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20424export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20425exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20426include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20427prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20428file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20429hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20430compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20431predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20432postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20433predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20434postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20435compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20436
20437LTCC='$LTCC'
20438LTCFLAGS='$LTCFLAGS'
20439compiler='$compiler_DEFAULT'
20440
20441# Quote evaled strings.
20442for var in SED \
20443GREP \
20444EGREP \
20445FGREP \
20446LD \
20447NM \
20448LN_S \
20449lt_SP2NL \
20450lt_NL2SP \
20451reload_flag \
20452OBJDUMP \
20453deplibs_check_method \
20454file_magic_cmd \
20455AR \
20456AR_FLAGS \
20457STRIP \
20458RANLIB \
20459CC \
20460CFLAGS \
20461compiler \
20462lt_cv_sys_global_symbol_pipe \
20463lt_cv_sys_global_symbol_to_cdecl \
20464lt_cv_sys_global_symbol_to_c_name_address \
20465lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20466SHELL \
20467ECHO \
20468lt_prog_compiler_no_builtin_flag \
20469lt_prog_compiler_wl \
20470lt_prog_compiler_pic \
20471lt_prog_compiler_static \
20472lt_cv_prog_compiler_c_o \
20473need_locks \
20474DSYMUTIL \
20475NMEDIT \
20476LIPO \
20477OTOOL \
20478OTOOL64 \
20479shrext_cmds \
20480export_dynamic_flag_spec \
20481whole_archive_flag_spec \
20482compiler_needs_object \
20483with_gnu_ld \
20484allow_undefined_flag \
20485no_undefined_flag \
20486hardcode_libdir_flag_spec \
20487hardcode_libdir_flag_spec_ld \
20488hardcode_libdir_separator \
20489fix_srcfile_path \
20490exclude_expsyms \
20491include_expsyms \
20492file_list_spec \
20493variables_saved_for_relink \
20494libname_spec \
20495library_names_spec \
20496soname_spec \
20497finish_eval \
20498old_striplib \
20499striplib \
20500compiler_lib_search_dirs \
20501predep_objects \
20502postdep_objects \
20503predeps \
20504postdeps \
20505compiler_lib_search_path \
20506LD_CXX \
20507compiler_CXX \
20508lt_prog_compiler_no_builtin_flag_CXX \
20509lt_prog_compiler_wl_CXX \
20510lt_prog_compiler_pic_CXX \
20511lt_prog_compiler_static_CXX \
20512lt_cv_prog_compiler_c_o_CXX \
20513export_dynamic_flag_spec_CXX \
20514whole_archive_flag_spec_CXX \
20515compiler_needs_object_CXX \
20516with_gnu_ld_CXX \
20517allow_undefined_flag_CXX \
20518no_undefined_flag_CXX \
20519hardcode_libdir_flag_spec_CXX \
20520hardcode_libdir_flag_spec_ld_CXX \
20521hardcode_libdir_separator_CXX \
20522fix_srcfile_path_CXX \
20523exclude_expsyms_CXX \
20524include_expsyms_CXX \
20525file_list_spec_CXX \
20526compiler_lib_search_dirs_CXX \
20527predep_objects_CXX \
20528postdep_objects_CXX \
20529predeps_CXX \
20530postdeps_CXX \
20531compiler_lib_search_path_CXX; do
20532 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20533 *[\\\\\\\`\\"\\\$]*)
20534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20535 ;;
20536 *)
20537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20538 ;;
20539 esac
20540done
20541
20542# Double-quote double-evaled strings.
20543for var in reload_cmds \
20544old_postinstall_cmds \
20545old_postuninstall_cmds \
20546old_archive_cmds \
20547extract_expsyms_cmds \
20548old_archive_from_new_cmds \
20549old_archive_from_expsyms_cmds \
20550archive_cmds \
20551archive_expsym_cmds \
20552module_cmds \
20553module_expsym_cmds \
20554export_symbols_cmds \
20555prelink_cmds \
20556postinstall_cmds \
20557postuninstall_cmds \
20558finish_cmds \
20559sys_lib_search_path_spec \
20560sys_lib_dlsearch_path_spec \
20561old_archive_cmds_CXX \
20562old_archive_from_new_cmds_CXX \
20563old_archive_from_expsyms_cmds_CXX \
20564archive_cmds_CXX \
20565archive_expsym_cmds_CXX \
20566module_cmds_CXX \
20567module_expsym_cmds_CXX \
20568export_symbols_cmds_CXX \
20569prelink_cmds_CXX; do
20570 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20571 *[\\\\\\\`\\"\\\$]*)
20572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20573 ;;
20574 *)
20575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20576 ;;
20577 esac
20578done
20579
20580# Fix-up fallback echo if it was mangled by the above quoting rules.
20581case \$lt_ECHO in
20582*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20583 ;;
20584esac
20585
20586ac_aux_dir='$ac_aux_dir'
20587xsi_shell='$xsi_shell'
20588lt_shell_append='$lt_shell_append'
20589
20590# See if we are running on zsh, and set the options which allow our
20591# commands through without removal of \ escapes INIT.
20592if test -n "\${ZSH_VERSION+set}" ; then
20593 setopt NO_GLOB_SUBST
20594fi
20595
20596
20597 PACKAGE='$PACKAGE'
20598 VERSION='$VERSION'
20599 TIMESTAMP='$TIMESTAMP'
20600 RM='$RM'
20601 ofile='$ofile'
20602
20603
20604
20605
20606
20607
20608_ACEOF
20609
20610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20611
20612# Handling of arguments.
20613for ac_config_target in $ac_config_targets
20614do
20615 case $ac_config_target in
20616 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 20617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e
DWT
20618 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
20619
12833ad8 20620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
9c60689e
DWT
20621 esac
20622done
20623
20624
20625# If the user did not use the arguments to specify the items to instantiate,
20626# then the envvar interface is used. Set only those that are not.
20627# We use the long form for the default assignment because of an extremely
20628# bizarre bug on SunOS 4.1.3.
20629if $ac_need_defaults; then
20630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20631 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20632fi
20633
20634# Have a temporary directory for convenience. Make it in the build tree
20635# simply because there is no reason against having it here, and in addition,
20636# creating and moving files from /tmp can sometimes cause problems.
20637# Hook for its removal unless debugging.
20638# Note that there is a small window in which the directory will not be cleaned:
20639# after its creation but before its name has been assigned to `$tmp'.
20640$debug ||
20641{
20642 tmp=
20643 trap 'exit_status=$?
20644 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20645' 0
20646 trap 'as_fn_exit 1' 1 2 13 15
20647}
20648# Create a (secure) tmp directory for tmp files.
20649
20650{
20651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20652 test -n "$tmp" && test -d "$tmp"
20653} ||
20654{
20655 tmp=./conf$$-$RANDOM
20656 (umask 077 && mkdir "$tmp")
12833ad8 20657} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9c60689e
DWT
20658
20659# Set up the scripts for CONFIG_FILES section.
20660# No need to generate them if there are no CONFIG_FILES.
20661# This happens for instance with `./config.status config.h'.
20662if test -n "$CONFIG_FILES"; then
20663
20664
20665ac_cr=`echo X | tr X '\015'`
20666# On cygwin, bash can eat \r inside `` if the user requested igncr.
20667# But we know of no other shell where ac_cr would be empty at this
20668# point, so we can use a bashism as a fallback.
20669if test "x$ac_cr" = x; then
20670 eval ac_cr=\$\'\\r\'
20671fi
20672ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20673if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 20674 ac_cs_awk_cr='\\r'
9c60689e
DWT
20675else
20676 ac_cs_awk_cr=$ac_cr
20677fi
20678
20679echo 'BEGIN {' >"$tmp/subs1.awk" &&
20680_ACEOF
20681
20682
20683{
20684 echo "cat >conf$$subs.awk <<_ACEOF" &&
20685 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20686 echo "_ACEOF"
20687} >conf$$subs.sh ||
12833ad8
JF
20688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20689ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
20690ac_delim='%!_!# '
20691for ac_last_try in false false false false false :; do
20692 . ./conf$$subs.sh ||
12833ad8 20693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
20694
20695 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20696 if test $ac_delim_n = $ac_delim_num; then
20697 break
20698 elif $ac_last_try; then
12833ad8 20699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
20700 else
20701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20702 fi
20703done
20704rm -f conf$$subs.sh
20705
20706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20708_ACEOF
20709sed -n '
20710h
20711s/^/S["/; s/!.*/"]=/
20712p
20713g
20714s/^[^!]*!//
20715:repl
20716t repl
20717s/'"$ac_delim"'$//
20718t delim
20719:nl
20720h
20721s/\(.\{148\}\)..*/\1/
20722t more1
20723s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20724p
20725n
20726b repl
20727:more1
20728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20729p
20730g
20731s/.\{148\}//
20732t nl
20733:delim
20734h
20735s/\(.\{148\}\)..*/\1/
20736t more2
20737s/["\\]/\\&/g; s/^/"/; s/$/"/
20738p
20739b
20740:more2
20741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20742p
20743g
20744s/.\{148\}//
20745t delim
20746' <conf$$subs.awk | sed '
20747/^[^""]/{
20748 N
20749 s/\n//
20750}
20751' >>$CONFIG_STATUS || ac_write_fail=1
20752rm -f conf$$subs.awk
20753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20754_ACAWK
20755cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20756 for (key in S) S_is_set[key] = 1
20757 FS = "\a"
20758
20759}
20760{
20761 line = $ 0
20762 nfields = split(line, field, "@")
20763 substed = 0
20764 len = length(field[1])
20765 for (i = 2; i < nfields; i++) {
20766 key = field[i]
20767 keylen = length(key)
20768 if (S_is_set[key]) {
20769 value = S[key]
20770 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20771 len += length(value) + length(field[++i])
20772 substed = 1
20773 } else
20774 len += 1 + keylen
20775 }
20776
20777 print line
20778}
20779
20780_ACAWK
20781_ACEOF
20782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20783if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20784 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20785else
20786 cat
20787fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12833ad8 20788 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
20789_ACEOF
20790
12833ad8
JF
20791# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20792# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
20793# trailing colons and then remove the whole line if VPATH becomes empty
20794# (actually we leave an empty line to preserve line numbers).
20795if test "x$srcdir" = x.; then
12833ad8
JF
20796 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20797h
20798s///
20799s/^/:/
20800s/[ ]*$/:/
20801s/:\$(srcdir):/:/g
20802s/:\${srcdir}:/:/g
20803s/:@srcdir@:/:/g
20804s/^:*//
9c60689e 20805s/:*$//
12833ad8
JF
20806x
20807s/\(=[ ]*\).*/\1/
20808G
20809s/\n//
9c60689e
DWT
20810s/^[^=]*=[ ]*$//
20811}'
20812fi
20813
20814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20815fi # test -n "$CONFIG_FILES"
20816
20817
20818eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20819shift
20820for ac_tag
20821do
20822 case $ac_tag in
20823 :[FHLC]) ac_mode=$ac_tag; continue;;
20824 esac
20825 case $ac_mode$ac_tag in
20826 :[FHL]*:*);;
12833ad8 20827 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9c60689e
DWT
20828 :[FH]-) ac_tag=-:-;;
20829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20830 esac
20831 ac_save_IFS=$IFS
20832 IFS=:
20833 set x $ac_tag
20834 IFS=$ac_save_IFS
20835 shift
20836 ac_file=$1
20837 shift
20838
20839 case $ac_mode in
20840 :L) ac_source=$1;;
20841 :[FH])
20842 ac_file_inputs=
20843 for ac_f
20844 do
20845 case $ac_f in
20846 -) ac_f="$tmp/stdin";;
20847 *) # Look for the file first in the build tree, then in the source tree
20848 # (if the path is not absolute). The absolute path cannot be DOS-style,
20849 # because $ac_f cannot contain `:'.
20850 test -f "$ac_f" ||
20851 case $ac_f in
20852 [\\/$]*) false;;
20853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20854 esac ||
12833ad8 20855 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9c60689e
DWT
20856 esac
20857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20858 as_fn_append ac_file_inputs " '$ac_f'"
20859 done
20860
20861 # Let's still pretend it is `configure' which instantiates (i.e., don't
20862 # use $as_me), people would be surprised to read:
20863 # /* config.h. Generated by config.status. */
20864 configure_input='Generated from '`
20865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20866 `' by configure.'
20867 if test x"$ac_file" != x-; then
20868 configure_input="$ac_file. $configure_input"
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20870$as_echo "$as_me: creating $ac_file" >&6;}
20871 fi
20872 # Neutralize special characters interpreted by sed in replacement strings.
20873 case $configure_input in #(
20874 *\&* | *\|* | *\\* )
20875 ac_sed_conf_input=`$as_echo "$configure_input" |
20876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20877 *) ac_sed_conf_input=$configure_input;;
20878 esac
20879
20880 case $ac_tag in
20881 *:-:* | *:-) cat >"$tmp/stdin" \
12833ad8 20882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
20883 esac
20884 ;;
20885 esac
20886
20887 ac_dir=`$as_dirname -- "$ac_file" ||
20888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20889 X"$ac_file" : 'X\(//\)[^/]' \| \
20890 X"$ac_file" : 'X\(//\)$' \| \
20891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20892$as_echo X"$ac_file" |
20893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20894 s//\1/
20895 q
20896 }
20897 /^X\(\/\/\)[^/].*/{
20898 s//\1/
20899 q
20900 }
20901 /^X\(\/\/\)$/{
20902 s//\1/
20903 q
20904 }
20905 /^X\(\/\).*/{
20906 s//\1/
20907 q
20908 }
20909 s/.*/./; q'`
20910 as_dir="$ac_dir"; as_fn_mkdir_p
20911 ac_builddir=.
20912
20913case "$ac_dir" in
20914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20915*)
20916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20917 # A ".." for each directory in $ac_dir_suffix.
20918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20919 case $ac_top_builddir_sub in
20920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20922 esac ;;
20923esac
20924ac_abs_top_builddir=$ac_pwd
20925ac_abs_builddir=$ac_pwd$ac_dir_suffix
20926# for backward compatibility:
20927ac_top_builddir=$ac_top_build_prefix
35fa52c0 20928
9c60689e
DWT
20929case $srcdir in
20930 .) # We are building in place.
20931 ac_srcdir=.
20932 ac_top_srcdir=$ac_top_builddir_sub
20933 ac_abs_top_srcdir=$ac_pwd ;;
20934 [\\/]* | ?:[\\/]* ) # Absolute name.
20935 ac_srcdir=$srcdir$ac_dir_suffix;
20936 ac_top_srcdir=$srcdir
20937 ac_abs_top_srcdir=$srcdir ;;
20938 *) # Relative name.
20939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20940 ac_top_srcdir=$ac_top_build_prefix$srcdir
20941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20942esac
20943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
20944
20945
9c60689e
DWT
20946 case $ac_mode in
20947 :F)
20948 #
20949 # CONFIG_FILE
20950 #
35fa52c0 20951
9c60689e
DWT
20952 case $INSTALL in
20953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20955 esac
20956_ACEOF
35fa52c0 20957
9c60689e
DWT
20958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20959# If the template does not know about datarootdir, expand it.
20960# FIXME: This hack should be removed a few years after 2.60.
20961ac_datarootdir_hack=; ac_datarootdir_seen=
20962ac_sed_dataroot='
20963/datarootdir/ {
20964 p
20965 q
20966}
20967/@datadir@/p
20968/@docdir@/p
20969/@infodir@/p
20970/@localedir@/p
20971/@mandir@/p'
20972case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20973*datarootdir*) ac_datarootdir_seen=yes;;
20974*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20976$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20977_ACEOF
20978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20979 ac_datarootdir_hack='
20980 s&@datadir@&$datadir&g
20981 s&@docdir@&$docdir&g
20982 s&@infodir@&$infodir&g
20983 s&@localedir@&$localedir&g
20984 s&@mandir@&$mandir&g
20985 s&\\\${datarootdir}&$datarootdir&g' ;;
20986esac
20987_ACEOF
35fa52c0 20988
9c60689e
DWT
20989# Neutralize VPATH when `$srcdir' = `.'.
20990# Shell code in configure.ac might set extrasub.
20991# FIXME: do we really want to maintain this feature?
20992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20993ac_sed_extra="$ac_vpsub
20994$extrasub
20995_ACEOF
20996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997:t
20998/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20999s|@configure_input@|$ac_sed_conf_input|;t t
21000s&@top_builddir@&$ac_top_builddir_sub&;t t
21001s&@top_build_prefix@&$ac_top_build_prefix&;t t
21002s&@srcdir@&$ac_srcdir&;t t
21003s&@abs_srcdir@&$ac_abs_srcdir&;t t
21004s&@top_srcdir@&$ac_top_srcdir&;t t
21005s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21006s&@builddir@&$ac_builddir&;t t
21007s&@abs_builddir@&$ac_abs_builddir&;t t
21008s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21009s&@INSTALL@&$ac_INSTALL&;t t
21010$ac_datarootdir_hack
21011"
21012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12833ad8 21013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
21014
21015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 21019which seems to be undefined. Please make sure it is defined" >&5
9c60689e 21020$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 21021which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e
DWT
21022
21023 rm -f "$tmp/stdin"
21024 case $ac_file in
21025 -) cat "$tmp/out" && rm -f "$tmp/out";;
21026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21027 esac \
12833ad8 21028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 21029 ;;
35fa52c0 21030
35fa52c0 21031
9c60689e
DWT
21032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21033$as_echo "$as_me: executing $ac_file commands" >&6;}
21034 ;;
21035 esac
35fa52c0 21036
35fa52c0 21037
9c60689e
DWT
21038 case $ac_file$ac_mode in
21039 "libtool":C)
21040
21041 # See if we are running on zsh, and set the options which allow our
21042 # commands through without removal of \ escapes.
21043 if test -n "${ZSH_VERSION+set}" ; then
21044 setopt NO_GLOB_SUBST
35fa52c0 21045 fi
35fa52c0 21046
9c60689e
DWT
21047 cfgfile="${ofile}T"
21048 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21049 $RM "$cfgfile"
35fa52c0 21050
9c60689e
DWT
21051 cat <<_LT_EOF >> "$cfgfile"
21052#! $SHELL
35fa52c0 21053
9c60689e
DWT
21054# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21055# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21056# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21057# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21058#
21059# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21060# 2006, 2007, 2008 Free Software Foundation, Inc.
21061# Written by Gordon Matzigkeit, 1996
21062#
21063# This file is part of GNU Libtool.
21064#
21065# GNU Libtool is free software; you can redistribute it and/or
21066# modify it under the terms of the GNU General Public License as
21067# published by the Free Software Foundation; either version 2 of
21068# the License, or (at your option) any later version.
21069#
21070# As a special exception to the GNU General Public License,
21071# if you distribute this file as part of a program or library that
21072# is built using GNU Libtool, you may include this file under the
21073# same distribution terms that you use for the rest of that program.
21074#
21075# GNU Libtool is distributed in the hope that it will be useful,
21076# but WITHOUT ANY WARRANTY; without even the implied warranty of
21077# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21078# GNU General Public License for more details.
21079#
21080# You should have received a copy of the GNU General Public License
21081# along with GNU Libtool; see the file COPYING. If not, a copy
21082# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21083# obtained by writing to the Free Software Foundation, Inc.,
21084# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 21085
35fa52c0 21086
9c60689e
DWT
21087# The names of the tagged configurations supported by this script.
21088available_tags="CXX "
35fa52c0 21089
9c60689e 21090# ### BEGIN LIBTOOL CONFIG
35fa52c0 21091
9c60689e
DWT
21092# Which release of libtool.m4 was used?
21093macro_version=$macro_version
21094macro_revision=$macro_revision
35fa52c0 21095
9c60689e
DWT
21096# Whether or not to build static libraries.
21097build_old_libs=$enable_static
35fa52c0 21098
549f29b5
DWT
21099# Whether or not to build shared libraries.
21100build_libtool_libs=$enable_shared
21101
9c60689e
DWT
21102# What type of objects to build.
21103pic_mode=$pic_mode
35fa52c0 21104
9c60689e
DWT
21105# Whether or not to optimize for fast installation.
21106fast_install=$enable_fast_install
35fa52c0 21107
9c60689e
DWT
21108# The host system.
21109host_alias=$host_alias
21110host=$host
21111host_os=$host_os
35fa52c0 21112
9c60689e
DWT
21113# The build system.
21114build_alias=$build_alias
21115build=$build
21116build_os=$build_os
21117
21118# A sed program that does not truncate output.
21119SED=$lt_SED
21120
21121# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21122Xsed="\$SED -e 1s/^X//"
21123
21124# A grep program that handles long lines.
21125GREP=$lt_GREP
21126
21127# An ERE matcher.
21128EGREP=$lt_EGREP
21129
21130# A literal string matcher.
21131FGREP=$lt_FGREP
21132
21133# A BSD- or MS-compatible name lister.
21134NM=$lt_NM
21135
21136# Whether we need soft or hard links.
21137LN_S=$lt_LN_S
21138
21139# What is the maximum length of a command?
21140max_cmd_len=$max_cmd_len
21141
21142# Object file suffix (normally "o").
21143objext=$ac_objext
21144
21145# Executable file suffix (normally "").
21146exeext=$exeext
21147
21148# whether the shell understands "unset".
21149lt_unset=$lt_unset
21150
21151# turn spaces into newlines.
21152SP2NL=$lt_lt_SP2NL
21153
21154# turn newlines into spaces.
21155NL2SP=$lt_lt_NL2SP
21156
21157# How to create reloadable object files.
21158reload_flag=$lt_reload_flag
21159reload_cmds=$lt_reload_cmds
21160
21161# An object symbol dumper.
21162OBJDUMP=$lt_OBJDUMP
21163
21164# Method to check whether dependent libraries are shared objects.
21165deplibs_check_method=$lt_deplibs_check_method
21166
21167# Command to use when deplibs_check_method == "file_magic".
21168file_magic_cmd=$lt_file_magic_cmd
21169
21170# The archiver.
21171AR=$lt_AR
21172AR_FLAGS=$lt_AR_FLAGS
21173
21174# A symbol stripping program.
21175STRIP=$lt_STRIP
21176
21177# Commands used to install an old-style archive.
21178RANLIB=$lt_RANLIB
21179old_postinstall_cmds=$lt_old_postinstall_cmds
21180old_postuninstall_cmds=$lt_old_postuninstall_cmds
21181
21182# A C compiler.
21183LTCC=$lt_CC
21184
21185# LTCC compiler flags.
21186LTCFLAGS=$lt_CFLAGS
21187
21188# Take the output of nm and produce a listing of raw symbols and C names.
21189global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21190
21191# Transform the output of nm in a proper C declaration.
21192global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21193
21194# Transform the output of nm in a C name address pair.
21195global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21196
21197# Transform the output of nm in a C name address pair when lib prefix is needed.
21198global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21199
21200# The name of the directory that contains temporary libtool files.
21201objdir=$objdir
21202
21203# Shell to use when invoking shell scripts.
21204SHELL=$lt_SHELL
21205
21206# An echo program that does not interpret backslashes.
21207ECHO=$lt_ECHO
21208
21209# Used to examine libraries when file_magic_cmd begins with "file".
21210MAGIC_CMD=$MAGIC_CMD
21211
21212# Must we lock files when doing compilation?
21213need_locks=$lt_need_locks
21214
21215# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21216DSYMUTIL=$lt_DSYMUTIL
21217
21218# Tool to change global to local symbols on Mac OS X.
21219NMEDIT=$lt_NMEDIT
21220
21221# Tool to manipulate fat objects and archives on Mac OS X.
21222LIPO=$lt_LIPO
21223
21224# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21225OTOOL=$lt_OTOOL
21226
21227# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21228OTOOL64=$lt_OTOOL64
21229
21230# Old archive suffix (normally "a").
21231libext=$libext
21232
21233# Shared library suffix (normally ".so").
21234shrext_cmds=$lt_shrext_cmds
35fa52c0 21235
9c60689e
DWT
21236# The commands to extract the exported symbol list from a shared archive.
21237extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 21238
9c60689e
DWT
21239# Variables whose values should be saved in libtool wrapper scripts and
21240# restored at link time.
21241variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 21242
9c60689e
DWT
21243# Do we need the "lib" prefix for modules?
21244need_lib_prefix=$need_lib_prefix
35fa52c0 21245
9c60689e
DWT
21246# Do we need a version for libraries?
21247need_version=$need_version
35fa52c0 21248
9c60689e
DWT
21249# Library versioning type.
21250version_type=$version_type
35fa52c0 21251
9c60689e
DWT
21252# Shared library runtime path variable.
21253runpath_var=$runpath_var
35fa52c0 21254
9c60689e
DWT
21255# Shared library path variable.
21256shlibpath_var=$shlibpath_var
35fa52c0 21257
9c60689e
DWT
21258# Is shlibpath searched before the hard-coded library search path?
21259shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 21260
9c60689e
DWT
21261# Format of library name prefix.
21262libname_spec=$lt_libname_spec
35fa52c0 21263
9c60689e
DWT
21264# List of archive names. First name is the real one, the rest are links.
21265# The last name is the one that the linker finds with -lNAME
21266library_names_spec=$lt_library_names_spec
dbadc56a 21267
9c60689e
DWT
21268# The coded name of the library, if different from the real name.
21269soname_spec=$lt_soname_spec
dbadc56a 21270
9c60689e
DWT
21271# Command to use after installation of a shared archive.
21272postinstall_cmds=$lt_postinstall_cmds
35fa52c0 21273
9c60689e
DWT
21274# Command to use after uninstallation of a shared archive.
21275postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 21276
9c60689e
DWT
21277# Commands used to finish a libtool library installation in a directory.
21278finish_cmds=$lt_finish_cmds
35fa52c0 21279
9c60689e
DWT
21280# As "finish_cmds", except a single script fragment to be evaled but
21281# not shown.
21282finish_eval=$lt_finish_eval
35fa52c0 21283
9c60689e
DWT
21284# Whether we should hardcode library paths into libraries.
21285hardcode_into_libs=$hardcode_into_libs
dbadc56a 21286
9c60689e
DWT
21287# Compile-time system search path for libraries.
21288sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 21289
9c60689e
DWT
21290# Run-time system search path for libraries.
21291sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 21292
9c60689e
DWT
21293# Whether dlopen is supported.
21294dlopen_support=$enable_dlopen
dbadc56a 21295
9c60689e
DWT
21296# Whether dlopen of programs is supported.
21297dlopen_self=$enable_dlopen_self
35fa52c0 21298
9c60689e
DWT
21299# Whether dlopen of statically linked programs is supported.
21300dlopen_self_static=$enable_dlopen_self_static
35fa52c0 21301
9c60689e
DWT
21302# Commands to strip libraries.
21303old_striplib=$lt_old_striplib
21304striplib=$lt_striplib
35fa52c0 21305
35fa52c0 21306
9c60689e
DWT
21307# The linker used to build libraries.
21308LD=$lt_LD
dbadc56a 21309
9c60689e
DWT
21310# Commands used to build an old-style archive.
21311old_archive_cmds=$lt_old_archive_cmds
dbadc56a 21312
9c60689e
DWT
21313# A language specific compiler.
21314CC=$lt_compiler
35fa52c0 21315
9c60689e
DWT
21316# Is the compiler the GNU compiler?
21317with_gcc=$GCC
dbadc56a 21318
9c60689e
DWT
21319# Compiler flag to turn off builtin functions.
21320no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 21321
9c60689e
DWT
21322# How to pass a linker flag through the compiler.
21323wl=$lt_lt_prog_compiler_wl
35fa52c0 21324
9c60689e
DWT
21325# Additional compiler flags for building library objects.
21326pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 21327
9c60689e
DWT
21328# Compiler flag to prevent dynamic linking.
21329link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 21330
9c60689e
DWT
21331# Does compiler simultaneously support -c and -o options?
21332compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 21333
9c60689e
DWT
21334# Whether or not to add -lc for building shared libraries.
21335build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 21336
9c60689e
DWT
21337# Whether or not to disallow shared libs when runtime libs are static.
21338allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 21339
9c60689e
DWT
21340# Compiler flag to allow reflexive dlopens.
21341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 21342
9c60689e
DWT
21343# Compiler flag to generate shared objects directly from archives.
21344whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 21345
9c60689e
DWT
21346# Whether the compiler copes with passing no objects directly.
21347compiler_needs_object=$lt_compiler_needs_object
dbadc56a 21348
9c60689e
DWT
21349# Create an old-style archive from a shared archive.
21350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 21351
9c60689e
DWT
21352# Create a temporary old-style archive to link instead of a shared archive.
21353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 21354
9c60689e
DWT
21355# Commands used to build a shared archive.
21356archive_cmds=$lt_archive_cmds
21357archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 21358
9c60689e
DWT
21359# Commands used to build a loadable module if different from building
21360# a shared archive.
21361module_cmds=$lt_module_cmds
21362module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 21363
9c60689e
DWT
21364# Whether we are building with GNU ld or not.
21365with_gnu_ld=$lt_with_gnu_ld
6b66678a 21366
9c60689e
DWT
21367# Flag that allows shared libraries with undefined symbols to be built.
21368allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 21369
9c60689e
DWT
21370# Flag that enforces no undefined symbols.
21371no_undefined_flag=$lt_no_undefined_flag
6b66678a 21372
9c60689e
DWT
21373# Flag to hardcode \$libdir into a binary during linking.
21374# This must work even if \$libdir does not exist
21375hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 21376
9c60689e
DWT
21377# If ld is used when linking, flag to hardcode \$libdir into a binary
21378# during linking. This must work even if \$libdir does not exist.
21379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
6b66678a 21380
9c60689e
DWT
21381# Whether we need a single "-rpath" flag with a separated argument.
21382hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 21383
9c60689e
DWT
21384# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21385# DIR into the resulting binary.
21386hardcode_direct=$hardcode_direct
6b66678a 21387
9c60689e
DWT
21388# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21389# DIR into the resulting binary and the resulting library dependency is
21390# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21391# library is relocated.
21392hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 21393
9c60689e
DWT
21394# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21395# into the resulting binary.
21396hardcode_minus_L=$hardcode_minus_L
6b66678a 21397
9c60689e
DWT
21398# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21399# into the resulting binary.
21400hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 21401
9c60689e
DWT
21402# Set to "yes" if building a shared library automatically hardcodes DIR
21403# into the library and all subsequent libraries and executables linked
21404# against it.
21405hardcode_automatic=$hardcode_automatic
6b66678a 21406
9c60689e
DWT
21407# Set to yes if linker adds runtime paths of dependent libraries
21408# to runtime path list.
21409inherit_rpath=$inherit_rpath
6b66678a 21410
9c60689e
DWT
21411# Whether libtool must link a program against all its dependency libraries.
21412link_all_deplibs=$link_all_deplibs
21413
21414# Fix the shell variable \$srcfile for the compiler.
21415fix_srcfile_path=$lt_fix_srcfile_path
21416
21417# Set to "yes" if exported symbols are required.
21418always_export_symbols=$always_export_symbols
6b66678a 21419
9c60689e
DWT
21420# The commands to list exported symbols.
21421export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 21422
9c60689e
DWT
21423# Symbols that should not be listed in the preloaded symbols.
21424exclude_expsyms=$lt_exclude_expsyms
6b66678a 21425
9c60689e
DWT
21426# Symbols that must always be exported.
21427include_expsyms=$lt_include_expsyms
6b66678a 21428
9c60689e
DWT
21429# Commands necessary for linking programs (against libraries) with templates.
21430prelink_cmds=$lt_prelink_cmds
6b66678a 21431
9c60689e
DWT
21432# Specify filename containing input files.
21433file_list_spec=$lt_file_list_spec
6b66678a 21434
9c60689e
DWT
21435# How to hardcode a shared library path into an executable.
21436hardcode_action=$hardcode_action
21437
21438# The directories searched by this compiler when creating a shared library.
21439compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21440
21441# Dependencies to place before and after the objects being linked to
21442# create a shared library.
21443predep_objects=$lt_predep_objects
21444postdep_objects=$lt_postdep_objects
21445predeps=$lt_predeps
21446postdeps=$lt_postdeps
21447
21448# The library search path used internally by the compiler when linking
21449# a shared library.
21450compiler_lib_search_path=$lt_compiler_lib_search_path
21451
21452# ### END LIBTOOL CONFIG
21453
21454_LT_EOF
21455
21456 case $host_os in
21457 aix3*)
21458 cat <<\_LT_EOF >> "$cfgfile"
21459# AIX sometimes has problems with the GCC collect2 program. For some
21460# reason, if we set the COLLECT_NAMES environment variable, the problems
21461# vanish in a puff of smoke.
21462if test "X${COLLECT_NAMES+set}" != Xset; then
21463 COLLECT_NAMES=
21464 export COLLECT_NAMES
6b66678a 21465fi
9c60689e
DWT
21466_LT_EOF
21467 ;;
21468 esac
6b66678a
DWT
21469
21470
9c60689e 21471ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 21472
9c60689e
DWT
21473
21474 # We use sed instead of cat because bash on DJGPP gets confused if
21475 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21476 # text mode, it properly converts lines to CR/LF. This bash problem
21477 # is reportedly fixed, but why not run on old versions too?
21478 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21479 || (rm -f "$cfgfile"; exit 1)
21480
21481 case $xsi_shell in
21482 yes)
21483 cat << \_LT_EOF >> "$cfgfile"
21484
21485# func_dirname file append nondir_replacement
21486# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21487# otherwise set result to NONDIR_REPLACEMENT.
21488func_dirname ()
6b66678a 21489{
9c60689e
DWT
21490 case ${1} in
21491 */*) func_dirname_result="${1%/*}${2}" ;;
21492 * ) func_dirname_result="${3}" ;;
21493 esac
21494}
6b66678a 21495
9c60689e
DWT
21496# func_basename file
21497func_basename ()
21498{
21499 func_basename_result="${1##*/}"
6b66678a 21500}
6b66678a 21501
9c60689e
DWT
21502# func_dirname_and_basename file append nondir_replacement
21503# perform func_basename and func_dirname in a single function
21504# call:
21505# dirname: Compute the dirname of FILE. If nonempty,
21506# add APPEND to the result, otherwise set result
21507# to NONDIR_REPLACEMENT.
21508# value returned in "$func_dirname_result"
21509# basename: Compute filename of FILE.
21510# value retuned in "$func_basename_result"
21511# Implementation must be kept synchronized with func_dirname
21512# and func_basename. For efficiency, we do not delegate to
21513# those functions but instead duplicate the functionality here.
21514func_dirname_and_basename ()
21515{
21516 case ${1} in
21517 */*) func_dirname_result="${1%/*}${2}" ;;
21518 * ) func_dirname_result="${3}" ;;
21519 esac
21520 func_basename_result="${1##*/}"
21521}
6b66678a 21522
9c60689e
DWT
21523# func_stripname prefix suffix name
21524# strip PREFIX and SUFFIX off of NAME.
21525# PREFIX and SUFFIX must not contain globbing or regex special
21526# characters, hashes, percent signs, but SUFFIX may contain a leading
21527# dot (in which case that matches only a dot).
21528func_stripname ()
21529{
21530 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21531 # positional parameters, so assign one to ordinary parameter first.
21532 func_stripname_result=${3}
21533 func_stripname_result=${func_stripname_result#"${1}"}
21534 func_stripname_result=${func_stripname_result%"${2}"}
21535}
6b66678a 21536
9c60689e
DWT
21537# func_opt_split
21538func_opt_split ()
21539{
21540 func_opt_split_opt=${1%%=*}
21541 func_opt_split_arg=${1#*=}
21542}
6b66678a 21543
9c60689e
DWT
21544# func_lo2o object
21545func_lo2o ()
21546{
21547 case ${1} in
21548 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21549 *) func_lo2o_result=${1} ;;
21550 esac
21551}
6b66678a 21552
9c60689e
DWT
21553# func_xform libobj-or-source
21554func_xform ()
21555{
21556 func_xform_result=${1%.*}.lo
21557}
6b66678a 21558
9c60689e
DWT
21559# func_arith arithmetic-term...
21560func_arith ()
21561{
21562 func_arith_result=$(( $* ))
21563}
6b66678a 21564
9c60689e
DWT
21565# func_len string
21566# STRING may not start with a hyphen.
21567func_len ()
21568{
21569 func_len_result=${#1}
21570}
6b66678a 21571
9c60689e
DWT
21572_LT_EOF
21573 ;;
21574 *) # Bourne compatible functions.
21575 cat << \_LT_EOF >> "$cfgfile"
6b66678a 21576
9c60689e
DWT
21577# func_dirname file append nondir_replacement
21578# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21579# otherwise set result to NONDIR_REPLACEMENT.
21580func_dirname ()
21581{
21582 # Extract subdirectory from the argument.
21583 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21584 if test "X$func_dirname_result" = "X${1}"; then
21585 func_dirname_result="${3}"
21586 else
21587 func_dirname_result="$func_dirname_result${2}"
21588 fi
21589}
6b66678a 21590
9c60689e
DWT
21591# func_basename file
21592func_basename ()
6b66678a 21593{
9c60689e 21594 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6b66678a 21595}
6b66678a 21596
6b66678a 21597
9c60689e
DWT
21598# func_stripname prefix suffix name
21599# strip PREFIX and SUFFIX off of NAME.
21600# PREFIX and SUFFIX must not contain globbing or regex special
21601# characters, hashes, percent signs, but SUFFIX may contain a leading
21602# dot (in which case that matches only a dot).
21603# func_strip_suffix prefix name
21604func_stripname ()
21605{
21606 case ${2} in
21607 .*) func_stripname_result=`$ECHO "X${3}" \
21608 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21609 *) func_stripname_result=`$ECHO "X${3}" \
21610 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21611 esac
21612}
6b66678a 21613
9c60689e
DWT
21614# sed scripts:
21615my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21616my_sed_long_arg='1s/^-[^=]*=//'
6b66678a 21617
9c60689e
DWT
21618# func_opt_split
21619func_opt_split ()
21620{
21621 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21622 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21623}
6b66678a 21624
9c60689e
DWT
21625# func_lo2o object
21626func_lo2o ()
21627{
21628 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21629}
21630
21631# func_xform libobj-or-source
21632func_xform ()
21633{
21634 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21635}
21636
21637# func_arith arithmetic-term...
21638func_arith ()
21639{
21640 func_arith_result=`expr "$@"`
21641}
21642
21643# func_len string
21644# STRING may not start with a hyphen.
21645func_len ()
21646{
21647 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21648}
21649
21650_LT_EOF
21651esac
21652
21653case $lt_shell_append in
21654 yes)
21655 cat << \_LT_EOF >> "$cfgfile"
21656
21657# func_append var value
21658# Append VALUE to the end of shell variable VAR.
21659func_append ()
21660{
21661 eval "$1+=\$2"
21662}
21663_LT_EOF
21664 ;;
21665 *)
21666 cat << \_LT_EOF >> "$cfgfile"
21667
21668# func_append var value
21669# Append VALUE to the end of shell variable VAR.
21670func_append ()
21671{
21672 eval "$1=\$$1\$2"
21673}
21674
21675_LT_EOF
21676 ;;
21677 esac
21678
21679
21680 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21681 || (rm -f "$cfgfile"; exit 1)
21682
21683 mv -f "$cfgfile" "$ofile" ||
21684 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21685 chmod +x "$ofile"
21686
21687
21688 cat <<_LT_EOF >> "$ofile"
21689
21690# ### BEGIN LIBTOOL TAG CONFIG: CXX
21691
21692# The linker used to build libraries.
21693LD=$lt_LD_CXX
21694
21695# Commands used to build an old-style archive.
21696old_archive_cmds=$lt_old_archive_cmds_CXX
21697
21698# A language specific compiler.
21699CC=$lt_compiler_CXX
21700
21701# Is the compiler the GNU compiler?
21702with_gcc=$GCC_CXX
21703
21704# Compiler flag to turn off builtin functions.
21705no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 21706
9c60689e
DWT
21707# How to pass a linker flag through the compiler.
21708wl=$lt_lt_prog_compiler_wl_CXX
6b66678a 21709
9c60689e
DWT
21710# Additional compiler flags for building library objects.
21711pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 21712
9c60689e
DWT
21713# Compiler flag to prevent dynamic linking.
21714link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 21715
9c60689e
DWT
21716# Does compiler simultaneously support -c and -o options?
21717compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 21718
9c60689e
DWT
21719# Whether or not to add -lc for building shared libraries.
21720build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 21721
9c60689e
DWT
21722# Whether or not to disallow shared libs when runtime libs are static.
21723allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 21724
9c60689e
DWT
21725# Compiler flag to allow reflexive dlopens.
21726export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 21727
9c60689e
DWT
21728# Compiler flag to generate shared objects directly from archives.
21729whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 21730
9c60689e
DWT
21731# Whether the compiler copes with passing no objects directly.
21732compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 21733
9c60689e
DWT
21734# Create an old-style archive from a shared archive.
21735old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 21736
9c60689e
DWT
21737# Create a temporary old-style archive to link instead of a shared archive.
21738old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 21739
9c60689e
DWT
21740# Commands used to build a shared archive.
21741archive_cmds=$lt_archive_cmds_CXX
21742archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 21743
9c60689e
DWT
21744# Commands used to build a loadable module if different from building
21745# a shared archive.
21746module_cmds=$lt_module_cmds_CXX
21747module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 21748
9c60689e
DWT
21749# Whether we are building with GNU ld or not.
21750with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 21751
9c60689e
DWT
21752# Flag that allows shared libraries with undefined symbols to be built.
21753allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 21754
9c60689e
DWT
21755# Flag that enforces no undefined symbols.
21756no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 21757
9c60689e
DWT
21758# Flag to hardcode \$libdir into a binary during linking.
21759# This must work even if \$libdir does not exist
21760hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 21761
9c60689e
DWT
21762# If ld is used when linking, flag to hardcode \$libdir into a binary
21763# during linking. This must work even if \$libdir does not exist.
21764hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
6b66678a 21765
9c60689e
DWT
21766# Whether we need a single "-rpath" flag with a separated argument.
21767hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 21768
9c60689e
DWT
21769# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21770# DIR into the resulting binary.
21771hardcode_direct=$hardcode_direct_CXX
6b66678a 21772
9c60689e
DWT
21773# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21774# DIR into the resulting binary and the resulting library dependency is
21775# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21776# library is relocated.
21777hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 21778
9c60689e
DWT
21779# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21780# into the resulting binary.
21781hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 21782
9c60689e
DWT
21783# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21784# into the resulting binary.
21785hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 21786
9c60689e
DWT
21787# Set to "yes" if building a shared library automatically hardcodes DIR
21788# into the library and all subsequent libraries and executables linked
21789# against it.
21790hardcode_automatic=$hardcode_automatic_CXX
6b66678a 21791
9c60689e
DWT
21792# Set to yes if linker adds runtime paths of dependent libraries
21793# to runtime path list.
21794inherit_rpath=$inherit_rpath_CXX
6b66678a 21795
9c60689e
DWT
21796# Whether libtool must link a program against all its dependency libraries.
21797link_all_deplibs=$link_all_deplibs_CXX
6b66678a 21798
9c60689e
DWT
21799# Fix the shell variable \$srcfile for the compiler.
21800fix_srcfile_path=$lt_fix_srcfile_path_CXX
6b66678a 21801
9c60689e
DWT
21802# Set to "yes" if exported symbols are required.
21803always_export_symbols=$always_export_symbols_CXX
6b66678a 21804
9c60689e
DWT
21805# The commands to list exported symbols.
21806export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 21807
9c60689e
DWT
21808# Symbols that should not be listed in the preloaded symbols.
21809exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 21810
9c60689e
DWT
21811# Symbols that must always be exported.
21812include_expsyms=$lt_include_expsyms_CXX
6b66678a 21813
9c60689e
DWT
21814# Commands necessary for linking programs (against libraries) with templates.
21815prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 21816
9c60689e
DWT
21817# Specify filename containing input files.
21818file_list_spec=$lt_file_list_spec_CXX
dbadc56a 21819
9c60689e
DWT
21820# How to hardcode a shared library path into an executable.
21821hardcode_action=$hardcode_action_CXX
309b0535 21822
9c60689e
DWT
21823# The directories searched by this compiler when creating a shared library.
21824compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 21825
9c60689e
DWT
21826# Dependencies to place before and after the objects being linked to
21827# create a shared library.
21828predep_objects=$lt_predep_objects_CXX
21829postdep_objects=$lt_postdep_objects_CXX
21830predeps=$lt_predeps_CXX
21831postdeps=$lt_postdeps_CXX
309b0535 21832
9c60689e
DWT
21833# The library search path used internally by the compiler when linking
21834# a shared library.
21835compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21836
21837# ### END LIBTOOL TAG CONFIG: CXX
21838_LT_EOF
21839
21840 ;;
21841
21842 esac
21843done # for ac_tag
21844
21845
21846as_fn_exit 0
21847_ACEOF
21848ac_clean_files=$ac_clean_files_save
21849
21850test $ac_write_fail = 0 ||
12833ad8 21851 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
21852
21853
21854# configure is writing to config.log, and then calls config.status.
21855# config.status does its own redirection, appending to config.log.
21856# Unfortunately, on DOS this fails, as config.log is still kept open
21857# by configure, so config.status won't be able to write to it; its
21858# output is simply discarded. So we exec the FD to /dev/null,
21859# effectively closing config.log, so it can be properly (re)opened and
21860# appended to by config.status. When coming back to configure, we
21861# need to make the FD available again.
21862if test "$no_create" != yes; then
21863 ac_cs_success=:
21864 ac_config_status_args=
21865 test "$silent" = yes &&
21866 ac_config_status_args="$ac_config_status_args --quiet"
21867 exec 5>/dev/null
21868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21869 exec 5>>config.log
21870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21871 # would make configure fail if this is the last instruction.
12833ad8 21872 $ac_cs_success || as_fn_exit 1
309b0535 21873fi
9c60689e
DWT
21874if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21876$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21877fi
21878