]> git.saurik.com Git - cycript.git/blame - configure
Better version checking for bison, flex, and gperf that falls through to other versio...
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
9c60689e 3# Generated by GNU Autoconf 2.65 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,
9c60689e
DWT
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
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"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
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
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
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
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
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.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
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
e1cce270 748CY_OBJECTIVEC_MACH
47aaa820 749GNUSTEP_CONFIG
c823f118 750CY_OBJECTIVEC
309b0535 751LIBFFI_LIBS
35fa52c0 752LIBFFI_CFLAGS
3fd51f51 753CY_EXECUTE
35fa52c0
DWT
754WEBKIT_LIBS
755WEBKIT_CFLAGS
35fa52c0
DWT
756LTLIBICONV
757LIBICONV
549f29b5 758LTLIBAPR
632b71ea
DWT
759ac_ct_OBJCXX
760OBJCXXFLAGS
761OBJCXX
47aaa820
DWT
762CXXCPP
763ac_ct_CXX
764CXXFLAGS
765CXX
e9c9a47c
DWT
766GNUTAR
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
770GPERF
771FLEX
772BISON
773TIME
774_BASH
790e5246 775GMAKE
632b71ea 776ifGNUmake
3fd51f51 777PKG_CONFIG
9c60689e
DWT
778CPP
779OTOOL64
780OTOOL
781LIPO
782NMEDIT
783DSYMUTIL
784lt_ECHO
785RANLIB
786STRIP
787AR
788OBJDUMP
789LN_S
790NM
791ac_ct_DUMPBIN
792DUMPBIN
793LD
794FGREP
795EGREP
796GREP
797SED
35fa52c0
DWT
798OBJEXT
799EXEEXT
800ac_ct_CC
801CPPFLAGS
802LDFLAGS
803CFLAGS
804CC
9c60689e
DWT
805host_os
806host_vendor
807host_cpu
808host
809build_os
810build_vendor
811build_cpu
812build
813LIBTOOL
dbadc56a 814target_alias
c7aa54aa
DWT
815host_alias
816build_alias
817LIBS
818ECHO_T
819ECHO_N
820ECHO_C
821DEFS
822mandir
823localedir
824libdir
825psdir
826pdfdir
827dvidir
828htmldir
829infodir
830docdir
831oldincludedir
832includedir
833localstatedir
834sharedstatedir
835sysconfdir
836datadir
837datarootdir
838libexecdir
839sbindir
840bindir
841program_transform_name
842prefix
843exec_prefix
844PACKAGE_URL
845PACKAGE_BUGREPORT
846PACKAGE_STRING
847PACKAGE_VERSION
848PACKAGE_TARNAME
849PACKAGE_NAME
850PATH_SEPARATOR
851SHELL'
852ac_subst_files=''
853ac_user_opts='
854enable_option_checking
9c60689e 855enable_static
549f29b5 856enable_shared
9c60689e
DWT
857with_pic
858enable_fast_install
35fa52c0 859with_gnu_ld
9c60689e 860enable_libtool_lock
632b71ea 861with_frameworks
9c60689e 862with_apr
35fa52c0
DWT
863enable_rpath
864with_libiconv_prefix
b66977f1 865enable_javascript
c7aa54aa
DWT
866'
867 ac_precious_vars='build_alias
868host_alias
dbadc56a 869target_alias
35fa52c0
DWT
870CC
871CFLAGS
dbadc56a
DWT
872LDFLAGS
873LIBS
874CPPFLAGS
9c60689e 875CPP
3fd51f51 876PKG_CONFIG
e9c9a47c
DWT
877BISON
878FLEX
879GPERF
35fa52c0
DWT
880CXX
881CXXFLAGS
882CCC
9c60689e 883CXXCPP
632b71ea
DWT
884OBJCXX
885OBJCXXFLAGS
35fa52c0
DWT
886WEBKIT_CFLAGS
887WEBKIT_LIBS
a667869d 888LIBFFI_CFLAGS
790e5246
DWT
889LIBFFI_LIBS
890GNUSTEP_CONFIG'
c7aa54aa
DWT
891
892
893# Initialize some variables set by options.
894ac_init_help=
895ac_init_version=false
896ac_unrecognized_opts=
897ac_unrecognized_sep=
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
948 ac_prev=
949 continue
950 fi
951
952 case $ac_option in
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 # Accept the important Cygnus configure options, so we can diagnose typos.
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"enable_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030"enable_$ac_useropt"
1031"*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1185
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1196
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1201
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1206
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1213
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1218
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1221
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1224
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234"with_$ac_useropt"
1235"*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1240
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250"with_$ac_useropt"
1251"*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1256
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1260
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1267
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1274
1275 -*) as_fn_error "unrecognized option: \`$ac_option'
1276Try \`$0 --help' for more information."
1277 ;;
1278
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1288
1289 *)
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295 ;;
1296
1297 esac
1298done
1299
1300if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error "missing argument to $ac_option"
1303fi
1304
1305if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311fi
1312
1313# Check all directory arguments for consistency.
1314for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1318do
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1332done
1333
1334# There might be people who depend on the old broken behavior: `$host'
1335# used to hold the argument of --host etc.
1336# FIXME: To remove some day.
1337build=$build_alias
1338host=$host_alias
1339target=$target_alias
1340
1341# FIXME: To remove some day.
1342if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1348 cross_compiling=yes
1349 fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
1356
1357
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error "working directory cannot be determined"
1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error "pwd does not report name of working directory"
1364
1365
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397else
1398 ac_srcdir_defaulted=no
1399fi
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1407 pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1485_ACEOF
1486
1487 cat <<\_ACEOF
35fa52c0
DWT
1488
1489System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1492_ACEOF
1493fi
1494
1495if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of Cycript 0.9:";;
1498 esac
1499 cat <<\_ACEOF
1500
35fa52c0
DWT
1501Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549f29b5 1505 --enable-static[=PKGS] build static libraries [default=no]
9c60689e 1506 --enable-shared[=PKGS] build shared libraries [default=yes]
9c60689e
DWT
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
35fa52c0 1510 --disable-rpath do not hardcode runtime library paths
b66977f1 1511 --enable-javascript[=ENGINE]
790e5246 1512 use a JavaScript runtime (currently the only
b66977f1
DWT
1513 available option for ENGINE is JavaScriptCore)
1514 [default=yes]
35fa52c0
DWT
1515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9c60689e
DWT
1519 --with-pic try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
632b71ea
DWT
1522 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1523 path for frameworks with -F
309b0535
DWT
1524 --with-apr=PATH prefix for installed APR or the full path to
1525 apr-config
35fa52c0
DWT
1526 --with-gnu-ld assume the C compiler uses GNU ld default=no
1527 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1528 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1529
dbadc56a 1530Some influential environment variables:
35fa52c0
DWT
1531 CC C compiler command
1532 CFLAGS C compiler flags
dbadc56a
DWT
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1536 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1537 you have headers in a nonstandard directory <include dir>
9c60689e 1538 CPP C preprocessor
3fd51f51 1539 PKG_CONFIG path to pkg-config utility
e9c9a47c
DWT
1540 BISON GNU Project parser generator (yacc replacement)
1541 FLEX the fast lexical analyser generator
1542 GPERF perfect hash function generator
47aaa820
DWT
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 CXXCPP C++ preprocessor
632b71ea
DWT
1546 OBJCXX Objective C++ compiler command
1547 OBJCXXFLAGS Objective C++ compiler flags
35fa52c0
DWT
1548 WEBKIT_CFLAGS
1549 C compiler flags for WEBKIT, overriding pkg-config
1550 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1551 LIBFFI_CFLAGS
1552 C compiler flags for LIBFFI, overriding pkg-config
1553 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1554 GNUSTEP_CONFIG
1555 prints information about the current gnustep installation
dbadc56a
DWT
1556
1557Use these variables to override the choices made by `configure' or to help
1558it to find libraries and programs with nonstandard names/locations.
1559
c7aa54aa
DWT
1560Report bugs to <saurik@saurik.com>.
1561Cycript home page: <http://www.cycript.org/>.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1614 else
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1618 done
1619fi
1620
1621test -n "$ac_init_help" && exit $ac_status
1622if $ac_init_version; then
1623 cat <<\_ACEOF
1624Cycript configure 0.9
9c60689e 1625generated by GNU Autoconf 2.65
c7aa54aa
DWT
1626
1627Copyright (C) 2009 Free Software Foundation, Inc.
1628This configure script is free software; the Free Software Foundation
1629gives unlimited permission to copy, distribute and modify it.
1630_ACEOF
1631 exit
1632fi
1633
1634## ------------------------ ##
1635## Autoconf initialization. ##
1636## ------------------------ ##
dbadc56a 1637
35fa52c0
DWT
1638# ac_fn_c_try_compile LINENO
1639# --------------------------
1640# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_compile ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1672 as_fn_set_status $ac_retval
35fa52c0
DWT
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_c_try_link LINENO
1677# -----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_link ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 $as_test_x conftest$ac_exeext
1704 }; then :
1705 ac_retval=0
1706else
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711fi
1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714 # interfere with the next link command; also delete a directory that is
1715 # left behind by Apple's compiler. We do this before executing the actions.
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1718 as_fn_set_status $ac_retval
35fa52c0
DWT
1719
1720} # ac_fn_c_try_link
1721
9c60689e
DWT
1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists and can be compiled using the include files in
1725# INCLUDES, setting the cache variable VAR accordingly.
1726ac_fn_c_check_header_compile ()
dbadc56a
DWT
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 $as_echo_n "(cached) " >&6
1733else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h. */
1736$4
1737#include <$2>
1738_ACEOF
1739if ac_fn_c_try_compile "$LINENO"; then :
1740 eval "$3=yes"
1741else
1742 eval "$3=no"
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750
1751} # ac_fn_c_check_header_compile
1752
1753# ac_fn_c_try_cpp LINENO
1754# ----------------------
1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_cpp ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
9c60689e 1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9c60689e
DWT
1774 test $ac_status = 0; } >/dev/null && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1776 test ! -s conftest.err
9c60689e 1777 }; then :
dbadc56a
DWT
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
9c60689e 1783 ac_retval=1
dbadc56a
DWT
1784fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1786 as_fn_set_status $ac_retval
dbadc56a 1787
9c60689e 1788} # ac_fn_c_try_cpp
35fa52c0
DWT
1789
1790# ac_fn_c_try_run LINENO
1791# ----------------------
1792# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793# that executables *can* be run.
1794ac_fn_c_try_run ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808 { { case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_try") 2>&5
1815 ac_status=$?
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }; then :
1818 ac_retval=0
1819else
1820 $as_echo "$as_me: program exited with status $ac_status" >&5
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=$ac_status
1825fi
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1828 as_fn_set_status $ac_retval
35fa52c0
DWT
1829
1830} # ac_fn_c_try_run
6b66678a 1831
9c60689e
DWT
1832# ac_fn_c_check_func LINENO FUNC VAR
1833# ----------------------------------
1834# Tests whether FUNC exists, setting the cache variable VAR accordingly
1835ac_fn_c_check_func ()
6b66678a
DWT
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
6b66678a 1842else
9c60689e
DWT
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847#define $2 innocuous_$2
6b66678a 1848
9c60689e
DWT
1849/* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1853
1854#ifdef __STDC__
1855# include <limits.h>
1856#else
1857# include <assert.h>
1858#endif
1859
1860#undef $2
1861
1862/* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865#ifdef __cplusplus
1866extern "C"
1867#endif
1868char $2 ();
1869/* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872#if defined __stub_$2 || defined __stub___$2
1873choke me
1874#endif
1875
1876int
1877main ()
1878{
1879return $2 ();
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886else
1887 eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
6b66678a 1891fi
9c60689e
DWT
1892eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
6b66678a 1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6b66678a 1896
9c60689e 1897} # ac_fn_c_check_func
6b66678a 1898
9c60689e
DWT
1899# ac_fn_cxx_try_compile LINENO
1900# ----------------------------
1901# Try to compile conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_cxx_try_compile ()
6b66678a
DWT
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1905 rm -f conftest.$ac_objext
1906 if { { ac_try="$ac_compile"
1907case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_compile") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest.$ac_objext; then :
1925 ac_retval=0
1926else
1927 $as_echo "$as_me: failed program was:" >&5
1928sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931fi
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 as_fn_set_status $ac_retval
1934
1935} # ac_fn_cxx_try_compile
1936
1937# ac_fn_cxx_try_cpp LINENO
1938# ------------------------
1939# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1940ac_fn_cxx_try_cpp ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_cpp conftest.$ac_ext"
1944case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1956 fi
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } >/dev/null && {
1959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1960 test ! -s conftest.err
1961 }; then :
1962 ac_retval=0
1963else
1964 $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967 ac_retval=1
1968fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 as_fn_set_status $ac_retval
1971
1972} # ac_fn_cxx_try_cpp
1973
1974# ac_fn_cxx_try_link LINENO
1975# -------------------------
1976# Try to link conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_cxx_try_link ()
1978{
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext conftest$ac_exeext
1981 if { { ac_try="$ac_link"
1982case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_cxx_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest$ac_exeext && {
2000 test "$cross_compiling" = yes ||
2001 $as_test_x conftest$ac_exeext
2002 }; then :
2003 ac_retval=0
2004else
2005 $as_echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=1
2009fi
2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2012 # interfere with the next link command; also delete a directory that is
2013 # left behind by Apple's compiler. We do this before executing the actions.
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 as_fn_set_status $ac_retval
2017
2018} # ac_fn_cxx_try_link
2019
632b71ea
DWT
2020# ac_fn_objcxx_try_compile LINENO
2021# -------------------------------
2022# Try to compile conftest.$ac_ext, and return whether this succeeded.
2023ac_fn_objcxx_try_compile ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 rm -f conftest.$ac_objext
2027 if { { ac_try="$ac_compile"
2028case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_compile") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } && {
2043 test -z "$ac_objcxx_werror_flag" ||
2044 test ! -s conftest.err
2045 } && test -s conftest.$ac_objext; then :
2046 ac_retval=0
2047else
2048 $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052fi
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2055
2056} # ac_fn_objcxx_try_compile
2057
47aaa820
DWT
2058# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2059# ---------------------------------------------------------
2060# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2061# the include files in INCLUDES and setting the cache variable VAR
2062# accordingly.
2063ac_fn_cxx_check_header_mongrel ()
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068$as_echo_n "checking for $2... " >&6; }
2069if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071fi
2072eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075else
2076 # Is the header compilable?
2077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2078$as_echo_n "checking $2 usability... " >&6; }
2079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h. */
2081$4
2082#include <$2>
2083_ACEOF
2084if ac_fn_cxx_try_compile "$LINENO"; then :
2085 ac_header_compiler=yes
2086else
2087 ac_header_compiler=no
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2091$as_echo "$ac_header_compiler" >&6; }
2092
2093# Is the header present?
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2095$as_echo_n "checking $2 presence... " >&6; }
2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098#include <$2>
2099_ACEOF
2100if ac_fn_cxx_try_cpp "$LINENO"; then :
2101 ac_header_preproc=yes
2102else
2103 ac_header_preproc=no
2104fi
2105rm -f conftest.err conftest.$ac_ext
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2107$as_echo "$ac_header_preproc" >&6; }
2108
2109# So? What about this header?
2110case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2111 yes:no: )
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2113$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 ;;
2117 no:yes:* )
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2119$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2121$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2123$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2125$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128( cat <<\_ASBOX
2129## -------------------------------- ##
2130## Report this to saurik@saurik.com ##
2131## -------------------------------- ##
2132_ASBOX
2133 ) | sed "s/^/$as_me: WARNING: /" >&2
2134 ;;
2135esac
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137$as_echo_n "checking for $2... " >&6; }
2138if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2139 $as_echo_n "(cached) " >&6
2140else
2141 eval "$3=\$ac_header_compiler"
2142fi
2143eval ac_res=\$$3
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145$as_echo "$ac_res" >&6; }
2146fi
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148
2149} # ac_fn_cxx_check_header_mongrel
2150
c823f118
DWT
2151# ac_fn_objcxx_try_link LINENO
2152# ----------------------------
2153# Try to link conftest.$ac_ext, and return whether this succeeded.
2154ac_fn_objcxx_try_link ()
2155{
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 rm -f conftest.$ac_objext conftest$ac_exeext
2158 if { { ac_try="$ac_link"
2159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
2163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164$as_echo "$ac_try_echo"; } >&5
2165 (eval "$ac_link") 2>conftest.err
2166 ac_status=$?
2167 if test -s conftest.err; then
2168 grep -v '^ *+' conftest.err >conftest.er1
2169 cat conftest.er1 >&5
2170 mv -f conftest.er1 conftest.err
2171 fi
2172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2173 test $ac_status = 0; } && {
2174 test -z "$ac_objcxx_werror_flag" ||
2175 test ! -s conftest.err
2176 } && test -s conftest$ac_exeext && {
2177 test "$cross_compiling" = yes ||
2178 $as_test_x conftest$ac_exeext
2179 }; then :
2180 ac_retval=0
2181else
2182 $as_echo "$as_me: failed program was:" >&5
2183sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 ac_retval=1
2186fi
2187 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2188 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2189 # interfere with the next link command; also delete a directory that is
2190 # left behind by Apple's compiler. We do this before executing the actions.
2191 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2194
2195} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2196cat >config.log <<_ACEOF
2197This file contains any messages produced by compilers while
2198running configure, to aid debugging if configure makes a mistake.
2199
2200It was created by Cycript $as_me 0.9, which was
9c60689e 2201generated by GNU Autoconf 2.65. Invocation command line was
c7aa54aa
DWT
2202
2203 $ $0 $@
2204
2205_ACEOF
2206exec 5>>config.log
2207{
2208cat <<_ASUNAME
2209## --------- ##
2210## Platform. ##
2211## --------- ##
2212
2213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2214uname -m = `(uname -m) 2>/dev/null || echo unknown`
2215uname -r = `(uname -r) 2>/dev/null || echo unknown`
2216uname -s = `(uname -s) 2>/dev/null || echo unknown`
2217uname -v = `(uname -v) 2>/dev/null || echo unknown`
2218
2219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2221
2222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2225/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2229
2230_ASUNAME
2231
2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH
2234do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 $as_echo "PATH: $as_dir"
2238 done
2239IFS=$as_save_IFS
2240
2241} >&5
2242
2243cat >&5 <<_ACEOF
2244
2245
2246## ----------- ##
2247## Core tests. ##
2248## ----------- ##
2249
2250_ACEOF
2251
2252
2253# Keep a trace of the command line.
2254# Strip out --no-create and --no-recursion so they do not pile up.
2255# Strip out --silent because we don't want to record it for future runs.
2256# Also quote any args containing shell meta-characters.
2257# Make two passes to allow for proper duplicate-argument suppression.
2258ac_configure_args=
2259ac_configure_args0=
2260ac_configure_args1=
2261ac_must_keep_next=false
2262for ac_pass in 1 2
2263do
2264 for ac_arg
2265 do
2266 case $ac_arg in
2267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2269 | -silent | --silent | --silen | --sile | --sil)
2270 continue ;;
2271 *\'*)
2272 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 esac
2274 case $ac_pass in
2275 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2276 2)
2277 as_fn_append ac_configure_args1 " '$ac_arg'"
2278 if test $ac_must_keep_next = true; then
2279 ac_must_keep_next=false # Got value, back to normal.
2280 else
2281 case $ac_arg in
2282 *=* | --config-cache | -C | -disable-* | --disable-* \
2283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2285 | -with-* | --with-* | -without-* | --without-* | --x)
2286 case "$ac_configure_args0 " in
2287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2288 esac
2289 ;;
2290 -* ) ac_must_keep_next=true ;;
2291 esac
2292 fi
2293 as_fn_append ac_configure_args " '$ac_arg'"
2294 ;;
2295 esac
2296 done
2297done
2298{ ac_configure_args0=; unset ac_configure_args0;}
2299{ ac_configure_args1=; unset ac_configure_args1;}
2300
2301# When interrupted or exit'd, cleanup temporary files, and complete
2302# config.log. We remove comments because anyway the quotes in there
2303# would cause problems or look ugly.
2304# WARNING: Use '\'' to represent an apostrophe within the trap.
2305# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2306trap 'exit_status=$?
2307 # Save into config.log some information that might help in debugging.
2308 {
2309 echo
2310
2311 cat <<\_ASBOX
2312## ---------------- ##
2313## Cache variables. ##
2314## ---------------- ##
2315_ASBOX
2316 echo
2317 # The following way of writing the cache mishandles newlines in values,
2318(
2319 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2320 eval ac_val=\$$ac_var
2321 case $ac_val in #(
2322 *${as_nl}*)
2323 case $ac_var in #(
2324 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2325$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2326 esac
2327 case $ac_var in #(
2328 _ | IFS | as_nl) ;; #(
2329 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2330 *) { eval $ac_var=; unset $ac_var;} ;;
2331 esac ;;
2332 esac
2333 done
2334 (set) 2>&1 |
2335 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2336 *${as_nl}ac_space=\ *)
2337 sed -n \
2338 "s/'\''/'\''\\\\'\'''\''/g;
2339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2340 ;; #(
2341 *)
2342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2343 ;;
2344 esac |
2345 sort
2346)
2347 echo
2348
2349 cat <<\_ASBOX
2350## ----------------- ##
2351## Output variables. ##
2352## ----------------- ##
2353_ASBOX
2354 echo
2355 for ac_var in $ac_subst_vars
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364
2365 if test -n "$ac_subst_files"; then
2366 cat <<\_ASBOX
2367## ------------------- ##
2368## File substitutions. ##
2369## ------------------- ##
2370_ASBOX
2371 echo
2372 for ac_var in $ac_subst_files
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 fi
2382
2383 if test -s confdefs.h; then
2384 cat <<\_ASBOX
2385## ----------- ##
2386## confdefs.h. ##
2387## ----------- ##
2388_ASBOX
2389 echo
2390 cat confdefs.h
2391 echo
2392 fi
2393 test "$ac_signal" != 0 &&
2394 $as_echo "$as_me: caught signal $ac_signal"
2395 $as_echo "$as_me: exit $exit_status"
2396 } >&5
2397 rm -f core *.core core.conftest.* &&
2398 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2399 exit $exit_status
2400' 0
2401for ac_signal in 1 2 13 15; do
2402 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403done
2404ac_signal=0
2405
2406# confdefs.h avoids OS command line length limits that DEFS can exceed.
2407rm -f -r conftest* confdefs.h
2408
2409$as_echo "/* confdefs.h */" > confdefs.h
2410
2411# Predefined preprocessor variables.
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_NAME "$PACKAGE_NAME"
2415_ACEOF
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_VERSION "$PACKAGE_VERSION"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_STRING "$PACKAGE_STRING"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_URL "$PACKAGE_URL"
2435_ACEOF
2436
2437
2438# Let the site file select an alternate cache file if it wants to.
2439# Prefer an explicitly selected file to automatically selected ones.
2440ac_site_file1=NONE
2441ac_site_file2=NONE
2442if test -n "$CONFIG_SITE"; then
2443 ac_site_file1=$CONFIG_SITE
2444elif test "x$prefix" != xNONE; then
2445 ac_site_file1=$prefix/share/config.site
2446 ac_site_file2=$prefix/etc/config.site
2447else
2448 ac_site_file1=$ac_default_prefix/share/config.site
2449 ac_site_file2=$ac_default_prefix/etc/config.site
2450fi
2451for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452do
2453 test "x$ac_site_file" = xNONE && continue
9c60689e 2454 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457 sed 's/^/| /' "$ac_site_file" >&5
2458 . "$ac_site_file"
2459 fi
2460done
2461
2462if test -r "$cache_file"; then
9c60689e
DWT
2463 # Some versions of bash will fail to source /dev/null (special files
2464 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2467$as_echo "$as_me: loading cache $cache_file" >&6;}
2468 case $cache_file in
2469 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2470 *) . "./$cache_file";;
2471 esac
2472 fi
2473else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2475$as_echo "$as_me: creating cache $cache_file" >&6;}
2476 >$cache_file
2477fi
2478
2479# Check that the precious variables saved in the cache have kept the same
2480# value.
2481ac_cache_corrupted=false
2482for ac_var in $ac_precious_vars; do
2483 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2484 eval ac_new_set=\$ac_env_${ac_var}_set
2485 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2486 eval ac_new_val=\$ac_env_${ac_var}_value
2487 case $ac_old_set,$ac_new_set in
2488 set,)
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2490$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2491 ac_cache_corrupted=: ;;
2492 ,set)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2496 ,);;
2497 *)
2498 if test "x$ac_old_val" != "x$ac_new_val"; then
2499 # differences in whitespace do not lead to failure.
2500 ac_old_val_w=`echo x $ac_old_val`
2501 ac_new_val_w=`echo x $ac_new_val`
2502 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2504$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2505 ac_cache_corrupted=:
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2508$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2509 eval $ac_var=\$ac_old_val
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2512$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2514$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2515 fi;;
2516 esac
2517 # Pass precious variables to config.status.
2518 if test "$ac_new_set" = set; then
2519 case $ac_new_val in
2520 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2521 *) ac_arg=$ac_var=$ac_new_val ;;
2522 esac
2523 case " $ac_configure_args " in
2524 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2525 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2526 esac
2527 fi
2528done
2529if $ac_cache_corrupted; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2533$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2534 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2535fi
2536## -------------------- ##
2537## Main body of script. ##
2538## -------------------- ##
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
35fa52c0 2547
6b66678a
DWT
2548ac_aux_dir=
2549for ac_dir in . "$srcdir"/.; do
2550 for ac_t in install-sh install.sh shtool; do
2551 if test -f "$ac_dir/$ac_t"; then
2552 ac_aux_dir=$ac_dir
2553 ac_install_sh="$ac_aux_dir/$ac_t -c"
2554 break 2
2555 fi
2556 done
2557done
2558if test -z "$ac_aux_dir"; then
2559 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2560fi
2561
2562# These three variables are undocumented and unsupported,
2563# and are intended to be withdrawn in a future Autoconf release.
2564# They can cause serious problems if a builder's source tree is in a directory
2565# whose full name contains unusual characters.
2566ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2567ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2568ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2569
2570
9c60689e
DWT
2571case `pwd` in
2572 *\ * | *\ *)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2574$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2575esac
2576
2577
2578
2579macro_version='2.2.6b'
2580macro_revision='1.3017'
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594ltmain="$ac_aux_dir/ltmain.sh"
2595
2596# Make sure we can run config.sub.
2597$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2598 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2601$as_echo_n "checking build system type... " >&6; }
2602if test "${ac_cv_build+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
2604else
2605 ac_build_alias=$build_alias
2606test "x$ac_build_alias" = x &&
2607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608test "x$ac_build_alias" = x &&
2609 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2612
2613fi
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2615$as_echo "$ac_cv_build" >&6; }
2616case $ac_cv_build in
2617*-*-*) ;;
2618*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2619esac
2620build=$ac_cv_build
2621ac_save_IFS=$IFS; IFS='-'
2622set x $ac_cv_build
2623shift
2624build_cpu=$1
2625build_vendor=$2
2626shift; shift
2627# Remember, the first character of IFS is used to create $*,
2628# except with old shells:
2629build_os=$*
2630IFS=$ac_save_IFS
2631case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2632
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2635$as_echo_n "checking host system type... " >&6; }
2636if test "${ac_cv_host+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test "x$host_alias" = x; then
2640 ac_cv_host=$ac_cv_build
2641else
2642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2643 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2644fi
2645
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2648$as_echo "$ac_cv_host" >&6; }
2649case $ac_cv_host in
2650*-*-*) ;;
2651*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2652esac
2653host=$ac_cv_host
2654ac_save_IFS=$IFS; IFS='-'
2655set x $ac_cv_host
2656shift
2657host_cpu=$1
2658host_vendor=$2
2659shift; shift
2660# Remember, the first character of IFS is used to create $*,
2661# except with old shells:
2662host_os=$*
2663IFS=$ac_save_IFS
2664case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2665
2666
2667ac_ext=c
2668ac_cpp='$CPP $CPPFLAGS'
2669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672if test -n "$ac_tool_prefix"; then
2673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2674set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 2677if test "${ac_cv_prog_CC+set}" = set; then :
dbadc56a
DWT
2678 $as_echo_n "(cached) " >&6
2679else
9c60689e
DWT
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 2690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695 done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
9c60689e
DWT
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703$as_echo "$CC" >&6; }
35fa52c0
DWT
2704else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710fi
2711if test -z "$ac_cv_prog_CC"; then
2712 ac_ct_CC=$CC
2713 # Extract the first word of "gcc", so it can be a program name with args.
2714set dummy gcc; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719else
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_CC="gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734done
2735 done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741if test -n "$ac_ct_CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743$as_echo "$ac_ct_CC" >&6; }
2744else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749 if test "x$ac_ct_CC" = x; then
2750 CC=""
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753yes:)
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756ac_tool_warned=yes ;;
2757esac
2758 CC=$ac_ct_CC
2759 fi
2760else
2761 CC="$ac_cv_prog_CC"
2762fi
2763
2764if test -z "$CC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}cc; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC="${ac_tool_prefix}cc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788 done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793CC=$ac_cv_prog_CC
2794if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796$as_echo "$CC" >&6; }
2797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802
2803 fi
2804fi
2805if test -z "$CC"; then
2806 # Extract the first word of "cc", so it can be a program name with args.
2807set dummy cc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if test "${ac_cv_prog_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815else
2816 ac_prog_rejected=no
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825 ac_prog_rejected=yes
2826 continue
2827 fi
2828 ac_cv_prog_CC="cc"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833 done
2834IFS=$as_save_IFS
2835
2836if test $ac_prog_rejected = yes; then
2837 # We found a bogon in the path, so make sure we never use it.
2838 set dummy $ac_cv_prog_CC
2839 shift
2840 if test $# != 0; then
2841 # We chose a different compiler from the bogus one.
2842 # However, it has the same basename, so the bogon will be chosen
2843 # first if we set CC to just the basename; use the full file name.
2844 shift
2845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2846 fi
2847fi
2848fi
2849fi
2850CC=$ac_cv_prog_CC
2851if test -n "$CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853$as_echo "$CC" >&6; }
2854else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859
2860fi
2861if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 for ac_prog in cl.exe
2864 do
2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868$as_echo_n "checking for $ac_word... " >&6; }
2869if test "${ac_cv_prog_CC+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2871else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887 done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892CC=$ac_cv_prog_CC
2893if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895$as_echo "$CC" >&6; }
2896else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899fi
2900
2901
2902 test -n "$CC" && break
2903 done
2904fi
2905if test -z "$CC"; then
2906 ac_ct_CC=$CC
2907 for ac_prog in cl.exe
2908do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910set dummy $ac_prog; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_ac_ct_CC="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931 done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939$as_echo "$ac_ct_CC" >&6; }
2940else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946 test -n "$ac_ct_CC" && break
2947done
2948
2949 if test "x$ac_ct_CC" = x; then
2950 CC=""
2951 else
2952 case $cross_compiling:$ac_tool_warned in
2953yes:)
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956ac_tool_warned=yes ;;
2957esac
2958 CC=$ac_ct_CC
2959 fi
2960fi
2961
2962fi
2963
2964
2965test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967as_fn_error "no acceptable C compiler found in \$PATH
2968See \`config.log' for more details." "$LINENO" 5; }
2969
2970# Provide some information about the compiler.
2971$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2972set X $ac_compile
2973ac_compiler=$2
2974for ac_option in --version -v -V -qversion; do
2975 { { ac_try="$ac_compiler $ac_option >&5"
2976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981$as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2983 ac_status=$?
2984 if test -s conftest.err; then
2985 sed '10a\
2986... rest of stderr output deleted ...
2987 10q' conftest.err >conftest.er1
2988 cat conftest.er1 >&5
35fa52c0 2989 fi
9c60689e 2990 rm -f conftest.er1 conftest.err
35fa52c0
DWT
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }
2993done
2994
2995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996/* end confdefs.h. */
9c60689e 2997
35fa52c0
DWT
2998int
2999main ()
3000{
35fa52c0
DWT
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006ac_clean_files_save=$ac_clean_files
9c60689e 3007ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3008# Try to create an executable without -o first, disregard a.out.
3009# It will help us diagnose broken compilers, and finding out an intuition
3010# of exeext.
9c60689e
DWT
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3012$as_echo_n "checking whether the C compiler works... " >&6; }
35fa52c0
DWT
3013ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014
3015# The possible output files:
3016ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3017
3018ac_rmfiles=
3019for ac_file in $ac_files
3020do
3021 case $ac_file in
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3024 esac
3025done
3026rm -f $ac_rmfiles
3027
3028if { { ac_try="$ac_link_default"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link_default") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; then :
3039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3040# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3041# in a Makefile. We should not override ac_cv_exeext if it was cached,
3042# so that the user can short-circuit this test for compilers unknown to
3043# Autoconf.
3044for ac_file in $ac_files ''
3045do
3046 test -f "$ac_file" || continue
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3049 ;;
3050 [ab].out )
3051 # We found the default executable, but exeext='' is most
3052 # certainly right.
3053 break;;
3054 *.* )
3055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3056 then :; else
3057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 fi
3059 # We set ac_cv_exeext here because the later test for it is not
3060 # safe: cross compilers may not add the suffix if given an `-o'
3061 # argument, so we may need to know it at that point already.
3062 # Even if this section looks crufty: it has the advantage of
3063 # actually working.
3064 break;;
3065 * )
3066 break;;
3067 esac
3068done
3069test "$ac_cv_exeext" = no && ac_cv_exeext=
3070
3071else
3072 ac_file=''
3073fi
35fa52c0 3074if test -z "$ac_file"; then :
9c60689e
DWT
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
3077$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082{ as_fn_set_status 77
3083as_fn_error "C compiler cannot create executables
3084See \`config.log' for more details." "$LINENO" 5; }; }
9c60689e
DWT
3085else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087$as_echo "yes" >&6; }
35fa52c0 3088fi
9c60689e
DWT
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3090$as_echo_n "checking for C compiler default output file name... " >&6; }
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3092$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3093ac_exeext=$ac_cv_exeext
3094
9c60689e 3095rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3096ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3098$as_echo_n "checking for suffix of executables... " >&6; }
3099if { { ac_try="$ac_link"
3100case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105$as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112# work properly (i.e., refer to `conftest.exe'), while it won't with
3113# `rm'.
3114for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 break;;
3120 * ) break;;
3121 esac
3122done
3123else
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126as_fn_error "cannot compute suffix of executables: cannot compile and link
3127See \`config.log' for more details." "$LINENO" 5; }
3128fi
9c60689e 3129rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3131$as_echo "$ac_cv_exeext" >&6; }
3132
3133rm -f conftest.$ac_ext
3134EXEEXT=$ac_cv_exeext
3135ac_exeext=$EXEEXT
9c60689e
DWT
3136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137/* end confdefs.h. */
3138#include <stdio.h>
3139int
3140main ()
3141{
3142FILE *f = fopen ("conftest.out", "w");
3143 return ferror (f) || fclose (f) != 0;
3144
3145 ;
3146 return 0;
3147}
3148_ACEOF
3149ac_clean_files="$ac_clean_files conftest.out"
3150# Check that the compiler produces executables we can run. If not, either
3151# the compiler is broken, or we cross compile.
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3153$as_echo_n "checking whether we are cross compiling... " >&6; }
3154if test "$cross_compiling" != yes; then
3155 { { ac_try="$ac_link"
3156case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161$as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_link") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }
3166 if { ac_try='./conftest$ac_cv_exeext'
3167 { { case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172$as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; }; then
3177 cross_compiling=no
3178 else
3179 if test "$cross_compiling" = maybe; then
3180 cross_compiling=yes
3181 else
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184as_fn_error "cannot run C compiled programs.
3185If you meant to cross compile, use \`--host'.
3186See \`config.log' for more details." "$LINENO" 5; }
3187 fi
3188 fi
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3191$as_echo "$cross_compiling" >&6; }
3192
3193rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3194ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3196$as_echo_n "checking for suffix of object files... " >&6; }
3197if test "${ac_cv_objext+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h. */
3202
3203int
3204main ()
3205{
3206
3207 ;
3208 return 0;
3209}
3210_ACEOF
3211rm -f conftest.o conftest.obj
3212if { { ac_try="$ac_compile"
3213case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compile") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 for ac_file in conftest.o conftest.obj conftest.*; do
3224 test -f "$ac_file" || continue;
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3228 break;;
3229 esac
3230done
3231else
3232 $as_echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error "cannot compute suffix of object files: cannot compile
3238See \`config.log' for more details." "$LINENO" 5; }
3239fi
3240rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3243$as_echo "$ac_cv_objext" >&6; }
3244OBJEXT=$ac_cv_objext
3245ac_objext=$OBJEXT
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3247$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3248if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250else
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257#ifndef __GNUC__
3258 choke me
3259#endif
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_compiler_gnu=yes
3267else
3268 ac_compiler_gnu=no
3269fi
3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3275$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3276if test $ac_compiler_gnu = yes; then
3277 GCC=yes
3278else
3279 GCC=
3280fi
3281ac_test_CFLAGS=${CFLAGS+set}
3282ac_save_CFLAGS=$CFLAGS
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3284$as_echo_n "checking whether $CC accepts -g... " >&6; }
3285if test "${ac_cv_prog_cc_g+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287else
3288 ac_save_c_werror_flag=$ac_c_werror_flag
3289 ac_c_werror_flag=yes
3290 ac_cv_prog_cc_g=no
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3305else
3306 CFLAGS=""
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318if ac_fn_c_try_compile "$LINENO"; then :
3319
3320else
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3322 CFLAGS="-g"
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h. */
3325
3326int
3327main ()
3328{
3329
3330 ;
3331 return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_cv_prog_cc_g=yes
3336fi
3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338fi
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340fi
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_c_werror_flag=$ac_save_c_werror_flag
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3345$as_echo "$ac_cv_prog_cc_g" >&6; }
3346if test "$ac_test_CFLAGS" = set; then
3347 CFLAGS=$ac_save_CFLAGS
3348elif test $ac_cv_prog_cc_g = yes; then
3349 if test "$GCC" = yes; then
3350 CFLAGS="-g -O2"
3351 else
3352 CFLAGS="-g"
3353 fi
3354else
3355 if test "$GCC" = yes; then
3356 CFLAGS="-O2"
3357 else
3358 CFLAGS=
3359 fi
3360fi
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3362$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3363if test "${ac_cv_prog_cc_c89+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365else
3366 ac_cv_prog_cc_c89=no
3367ac_save_CC=$CC
3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h. */
3370#include <stdarg.h>
3371#include <stdio.h>
3372#include <sys/types.h>
3373#include <sys/stat.h>
3374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3375struct buf { int x; };
3376FILE * (*rcsopen) (struct buf *, struct stat *, int);
3377static char *e (p, i)
3378 char **p;
3379 int i;
3380{
3381 return p[i];
3382}
3383static char *f (char * (*g) (char **, int), char **p, ...)
3384{
3385 char *s;
3386 va_list v;
3387 va_start (v,p);
3388 s = g (p, va_arg (v,int));
3389 va_end (v);
3390 return s;
3391}
3392
3393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3394 function prototypes and stuff, but not '\xHH' hex character constants.
3395 These don't provoke an error unfortunately, instead are silently treated
3396 as 'x'. The following induces an error, until -std is added to get
3397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3398 array size at least. It's necessary to write '\x00'==0 to get something
3399 that's true only with -std. */
3400int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401
3402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3403 inside strings and character constants. */
3404#define FOO(x) 'x'
3405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406
3407int test (int i, double x);
3408struct s1 {int (*f) (int a);};
3409struct s2 {int (*f) (double a);};
3410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3411int argc;
3412char **argv;
3413int
3414main ()
3415{
3416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423do
3424 CC="$ac_save_CC $ac_arg"
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_c89=$ac_arg
3427fi
3428rm -f core conftest.err conftest.$ac_objext
3429 test "x$ac_cv_prog_cc_c89" != "xno" && break
3430done
3431rm -f conftest.$ac_ext
3432CC=$ac_save_CC
3433
3434fi
3435# AC_CACHE_VAL
3436case "x$ac_cv_prog_cc_c89" in
3437 x)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3439$as_echo "none needed" >&6; } ;;
3440 xno)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3442$as_echo "unsupported" >&6; } ;;
3443 *)
3444 CC="$CC $ac_cv_prog_cc_c89"
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3446$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3447esac
3448if test "x$ac_cv_prog_cc_c89" != xno; then :
3449
3450fi
3451
3452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
9c60689e
DWT
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3459$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3460if test "${ac_cv_path_SED+set}" = set; then :
35fa52c0
DWT
3461 $as_echo_n "(cached) " >&6
3462else
9c60689e
DWT
3463 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3464 for ac_i in 1 2 3 4 5 6 7; do
3465 ac_script="$ac_script$as_nl$ac_script"
3466 done
3467 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3468 { ac_script=; unset ac_script;}
3469 if test -z "$SED"; then
3470 ac_path_SED_found=false
3471 # Loop through the user's path and test for each of PROGNAME-LIST
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35fa52c0
DWT
3473for as_dir in $PATH
3474do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
9c60689e 3477 for ac_prog in sed gsed; do
35fa52c0 3478 for ac_exec_ext in '' $ac_executable_extensions; do
9c60689e
DWT
3479 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3480 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3481# Check for GNU ac_path_SED and select it if it is found.
3482 # Check for GNU $ac_path_SED
3483case `"$ac_path_SED" --version 2>&1` in
3484*GNU*)
3485 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3486*)
3487 ac_count=0
3488 $as_echo_n 0123456789 >"conftest.in"
3489 while :
3490 do
3491 cat "conftest.in" "conftest.in" >"conftest.tmp"
3492 mv "conftest.tmp" "conftest.in"
3493 cp "conftest.in" "conftest.nl"
3494 $as_echo '' >> "conftest.nl"
3495 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3497 as_fn_arith $ac_count + 1 && ac_count=$as_val
3498 if test $ac_count -gt ${ac_path_SED_max-0}; then
3499 # Best one so far, save it but keep looking for a better one
3500 ac_cv_path_SED="$ac_path_SED"
3501 ac_path_SED_max=$ac_count
3502 fi
3503 # 10*(2^10) chars as input seems more than enough
3504 test $ac_count -gt 10 && break
35fa52c0 3505 done
9c60689e
DWT
3506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3507esac
35fa52c0 3508
9c60689e
DWT
3509 $ac_path_SED_found && break 3
3510 done
3511 done
3512 done
3513IFS=$as_save_IFS
3514 if test -z "$ac_cv_path_SED"; then
3515 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3516 fi
35fa52c0 3517else
9c60689e 3518 ac_cv_path_SED=$SED
35fa52c0
DWT
3519fi
3520
9c60689e
DWT
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3523$as_echo "$ac_cv_path_SED" >&6; }
3524 SED="$ac_cv_path_SED"
3525 rm -f conftest.sed
35fa52c0 3526
9c60689e
DWT
3527test -z "$SED" && SED=sed
3528Xsed="$SED -e 1s/^X//"
35fa52c0 3529
35fa52c0 3530
35fa52c0 3531
35fa52c0 3532
35fa52c0 3533
35fa52c0
DWT
3534
3535
35fa52c0 3536
35fa52c0 3537
35fa52c0 3538
35fa52c0 3539
9c60689e
DWT
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3541$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3542if test "${ac_cv_path_GREP+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544else
3545 if test -z "$GREP"; then
3546 ac_path_GREP_found=false
3547 # Loop through the user's path and test for each of PROGNAME-LIST
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3550do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_prog in grep ggrep; do
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3557# Check for GNU ac_path_GREP and select it if it is found.
3558 # Check for GNU $ac_path_GREP
3559case `"$ac_path_GREP" --version 2>&1` in
3560*GNU*)
3561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3562*)
3563 ac_count=0
3564 $as_echo_n 0123456789 >"conftest.in"
3565 while :
3566 do
3567 cat "conftest.in" "conftest.in" >"conftest.tmp"
3568 mv "conftest.tmp" "conftest.in"
3569 cp "conftest.in" "conftest.nl"
3570 $as_echo 'GREP' >> "conftest.nl"
3571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3573 as_fn_arith $ac_count + 1 && ac_count=$as_val
3574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3575 # Best one so far, save it but keep looking for a better one
3576 ac_cv_path_GREP="$ac_path_GREP"
3577 ac_path_GREP_max=$ac_count
3578 fi
3579 # 10*(2^10) chars as input seems more than enough
3580 test $ac_count -gt 10 && break
3581 done
3582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3583esac
6b66678a 3584
9c60689e
DWT
3585 $ac_path_GREP_found && break 3
3586 done
3587 done
3588 done
3589IFS=$as_save_IFS
3590 if test -z "$ac_cv_path_GREP"; then
3591 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3592 fi
3593else
3594 ac_cv_path_GREP=$GREP
3595fi
6b66678a 3596
9c60689e
DWT
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3599$as_echo "$ac_cv_path_GREP" >&6; }
3600 GREP="$ac_cv_path_GREP"
6b66678a
DWT
3601
3602
9c60689e
DWT
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3604$as_echo_n "checking for egrep... " >&6; }
3605if test "${ac_cv_path_EGREP+set}" = set; then :
6b66678a
DWT
3606 $as_echo_n "(cached) " >&6
3607else
9c60689e
DWT
3608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3609 then ac_cv_path_EGREP="$GREP -E"
3610 else
3611 if test -z "$EGREP"; then
3612 ac_path_EGREP_found=false
3613 # Loop through the user's path and test for each of PROGNAME-LIST
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_prog in egrep; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3623# Check for GNU ac_path_EGREP and select it if it is found.
3624 # Check for GNU $ac_path_EGREP
3625case `"$ac_path_EGREP" --version 2>&1` in
3626*GNU*)
3627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3628*)
3629 ac_count=0
3630 $as_echo_n 0123456789 >"conftest.in"
3631 while :
3632 do
3633 cat "conftest.in" "conftest.in" >"conftest.tmp"
3634 mv "conftest.tmp" "conftest.in"
3635 cp "conftest.in" "conftest.nl"
3636 $as_echo 'EGREP' >> "conftest.nl"
3637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3639 as_fn_arith $ac_count + 1 && ac_count=$as_val
3640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3641 # Best one so far, save it but keep looking for a better one
3642 ac_cv_path_EGREP="$ac_path_EGREP"
3643 ac_path_EGREP_max=$ac_count
3644 fi
3645 # 10*(2^10) chars as input seems more than enough
3646 test $ac_count -gt 10 && break
3647 done
3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649esac
3650
3651 $ac_path_EGREP_found && break 3
3652 done
3653 done
3654 done
3655IFS=$as_save_IFS
3656 if test -z "$ac_cv_path_EGREP"; then
3657 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3658 fi
3659else
3660 ac_cv_path_EGREP=$EGREP
3661fi
6b66678a 3662
9c60689e
DWT
3663 fi
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3666$as_echo "$ac_cv_path_EGREP" >&6; }
3667 EGREP="$ac_cv_path_EGREP"
6b66678a 3668
6b66678a 3669
9c60689e
DWT
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3671$as_echo_n "checking for fgrep... " >&6; }
3672if test "${ac_cv_path_FGREP+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
6b66678a 3674else
9c60689e
DWT
3675 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3676 then ac_cv_path_FGREP="$GREP -F"
3677 else
3678 if test -z "$FGREP"; then
3679 ac_path_FGREP_found=false
3680 # Loop through the user's path and test for each of PROGNAME-LIST
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_prog in fgrep; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3689 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3690# Check for GNU ac_path_FGREP and select it if it is found.
3691 # Check for GNU $ac_path_FGREP
3692case `"$ac_path_FGREP" --version 2>&1` in
3693*GNU*)
3694 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3695*)
3696 ac_count=0
3697 $as_echo_n 0123456789 >"conftest.in"
3698 while :
3699 do
3700 cat "conftest.in" "conftest.in" >"conftest.tmp"
3701 mv "conftest.tmp" "conftest.in"
3702 cp "conftest.in" "conftest.nl"
3703 $as_echo 'FGREP' >> "conftest.nl"
3704 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3706 as_fn_arith $ac_count + 1 && ac_count=$as_val
3707 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3708 # Best one so far, save it but keep looking for a better one
3709 ac_cv_path_FGREP="$ac_path_FGREP"
3710 ac_path_FGREP_max=$ac_count
3711 fi
3712 # 10*(2^10) chars as input seems more than enough
3713 test $ac_count -gt 10 && break
3714 done
3715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716esac
6b66678a 3717
9c60689e
DWT
3718 $ac_path_FGREP_found && break 3
3719 done
3720 done
3721 done
3722IFS=$as_save_IFS
3723 if test -z "$ac_cv_path_FGREP"; then
3724 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3725 fi
3726else
3727 ac_cv_path_FGREP=$FGREP
6b66678a
DWT
3728fi
3729
9c60689e 3730 fi
6b66678a 3731fi
9c60689e
DWT
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3733$as_echo "$ac_cv_path_FGREP" >&6; }
3734 FGREP="$ac_cv_path_FGREP"
6b66678a 3735
35fa52c0 3736
9c60689e 3737test -z "$GREP" && GREP=grep
35fa52c0 3738
309b0535 3739
35fa52c0 3740
6b66678a 3741
6b66678a
DWT
3742
3743
6b66678a 3744
6b66678a 3745
35fa52c0 3746
35fa52c0 3747
309b0535 3748
309b0535 3749
309b0535 3750
309b0535 3751
309b0535 3752
309b0535 3753
309b0535 3754
309b0535 3755
309b0535 3756
9c60689e
DWT
3757# Check whether --with-gnu-ld was given.
3758if test "${with_gnu_ld+set}" = set; then :
3759 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
309b0535 3760else
9c60689e
DWT
3761 with_gnu_ld=no
3762fi
309b0535 3763
9c60689e
DWT
3764ac_prog=ld
3765if test "$GCC" = yes; then
3766 # Check if gcc -print-prog-name=ld gives a path.
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3768$as_echo_n "checking for ld used by $CC... " >&6; }
3769 case $host in
3770 *-*-mingw*)
3771 # gcc leaves a trailing carriage return which upsets mingw
3772 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3773 *)
3774 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3775 esac
3776 case $ac_prog in
3777 # Accept absolute paths.
3778 [\\/]* | ?:[\\/]*)
3779 re_direlt='/[^/][^/]*/\.\./'
3780 # Canonicalize the pathname of ld
3781 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3782 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3783 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
309b0535 3784 done
9c60689e
DWT
3785 test -z "$LD" && LD="$ac_prog"
3786 ;;
3787 "")
3788 # If it fails, then pretend we aren't using GCC.
3789 ac_prog=ld
3790 ;;
3791 *)
3792 # If it is relative, then search for the first ld in PATH.
3793 with_gnu_ld=unknown
3794 ;;
3795 esac
3796elif test "$with_gnu_ld" = yes; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3798$as_echo_n "checking for GNU ld... " >&6; }
3799else
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3801$as_echo_n "checking for non-GNU ld... " >&6; }
3802fi
3803if test "${lt_cv_path_LD+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 if test -z "$LD"; then
3807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3808 for ac_dir in $PATH; do
3809 IFS="$lt_save_ifs"
3810 test -z "$ac_dir" && ac_dir=.
3811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3812 lt_cv_path_LD="$ac_dir/$ac_prog"
3813 # Check to see if the program is GNU ld. I'd rather use --version,
3814 # but apparently some variants of GNU ld only accept -v.
3815 # Break only if it was the GNU/non-GNU ld that we prefer.
3816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3817 *GNU* | *'with BFD'*)
3818 test "$with_gnu_ld" != no && break
3819 ;;
3820 *)
3821 test "$with_gnu_ld" != yes && break
3822 ;;
309b0535 3823 esac
309b0535 3824 fi
9c60689e
DWT
3825 done
3826 IFS="$lt_save_ifs"
3827else
3828 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3829fi
3830fi
309b0535 3831
9c60689e
DWT
3832LD="$lt_cv_path_LD"
3833if test -n "$LD"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3835$as_echo "$LD" >&6; }
3836else
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838$as_echo "no" >&6; }
3839fi
3840test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3842$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3843if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3845else
3846 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3847case `$LD -v 2>&1 </dev/null` in
3848*GNU* | *'with BFD'*)
3849 lt_cv_prog_gnu_ld=yes
3850 ;;
3851*)
3852 lt_cv_prog_gnu_ld=no
3853 ;;
3854esac
309b0535 3855fi
9c60689e
DWT
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3857$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3858with_gnu_ld=$lt_cv_prog_gnu_ld
309b0535
DWT
3859
3860
309b0535 3861
309b0535
DWT
3862
3863
309b0535 3864
309b0535 3865
9c60689e
DWT
3866
3867
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3869$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3870if test "${lt_cv_path_NM+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872else
3873 if test -n "$NM"; then
3874 # Let the user override the test.
3875 lt_cv_path_NM="$NM"
3876else
3877 lt_nm_to_check="${ac_tool_prefix}nm"
3878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3879 lt_nm_to_check="$lt_nm_to_check nm"
3880 fi
3881 for lt_tmp_nm in $lt_nm_to_check; do
3882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3884 IFS="$lt_save_ifs"
3885 test -z "$ac_dir" && ac_dir=.
3886 tmp_nm="$ac_dir/$lt_tmp_nm"
3887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3888 # Check to see if the nm accepts a BSD-compat flag.
3889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3890 # nm: unknown option "B" ignored
3891 # Tru64's nm complains that /dev/null is an invalid object file
3892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3893 */dev/null* | *'Invalid file or object type'*)
3894 lt_cv_path_NM="$tmp_nm -B"
3895 break
3896 ;;
3897 *)
3898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3899 */dev/null*)
3900 lt_cv_path_NM="$tmp_nm -p"
3901 break
3902 ;;
3903 *)
3904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3905 continue # so that we can try to find one that supports BSD flags
3906 ;;
3907 esac
3908 ;;
3909 esac
309b0535
DWT
3910 fi
3911 done
9c60689e 3912 IFS="$lt_save_ifs"
309b0535 3913 done
9c60689e
DWT
3914 : ${lt_cv_path_NM=no}
3915fi
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3918$as_echo "$lt_cv_path_NM" >&6; }
3919if test "$lt_cv_path_NM" != "no"; then
3920 NM="$lt_cv_path_NM"
3921else
3922 # Didn't find any BSD compatible name lister, look for dumpbin.
3923 if test -n "$ac_tool_prefix"; then
3924 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3925 do
3926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3930if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3931 $as_echo_n "(cached) " >&6
3932else
9c60689e
DWT
3933 if test -n "$DUMPBIN"; then
3934 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3943 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35fa52c0
DWT
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947done
3948 done
3949IFS=$as_save_IFS
3950
3951fi
3952fi
9c60689e
DWT
3953DUMPBIN=$ac_cv_prog_DUMPBIN
3954if test -n "$DUMPBIN"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3956$as_echo "$DUMPBIN" >&6; }
35fa52c0
DWT
3957else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
3960fi
3961
3962
9c60689e 3963 test -n "$DUMPBIN" && break
35fa52c0
DWT
3964 done
3965fi
9c60689e
DWT
3966if test -z "$DUMPBIN"; then
3967 ac_ct_DUMPBIN=$DUMPBIN
3968 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3969do
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971set dummy $ac_prog; ac_word=$2
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3974if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3975 $as_echo_n "(cached) " >&6
3976else
9c60689e
DWT
3977 if test -n "$ac_ct_DUMPBIN"; then
3978 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3987 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35fa52c0
DWT
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991done
3992 done
3993IFS=$as_save_IFS
3994
3995fi
3996fi
9c60689e
DWT
3997ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3998if test -n "$ac_ct_DUMPBIN"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4000$as_echo "$ac_ct_DUMPBIN" >&6; }
35fa52c0
DWT
4001else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
4004fi
4005
4006
9c60689e 4007 test -n "$ac_ct_DUMPBIN" && break
35fa52c0
DWT
4008done
4009
9c60689e
DWT
4010 if test "x$ac_ct_DUMPBIN" = x; then
4011 DUMPBIN=":"
35fa52c0
DWT
4012 else
4013 case $cross_compiling:$ac_tool_warned in
4014yes:)
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017ac_tool_warned=yes ;;
4018esac
9c60689e 4019 DUMPBIN=$ac_ct_DUMPBIN
35fa52c0
DWT
4020 fi
4021fi
4022
9c60689e
DWT
4023
4024 if test "$DUMPBIN" != ":"; then
4025 NM="$DUMPBIN"
35fa52c0
DWT
4026 fi
4027fi
9c60689e 4028test -z "$NM" && NM=nm
35fa52c0 4029
35fa52c0 4030
35fa52c0 4031
35fa52c0 4032
9c60689e
DWT
4033
4034
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4036$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4037if test "${lt_cv_nm_interface+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039else
4040 lt_cv_nm_interface="BSD nm"
4041 echo "int some_variable = 0;" > conftest.$ac_ext
e9c9a47c 4042 (eval echo "\"\$as_me:4042: $ac_compile\"" >&5)
9c60689e
DWT
4043 (eval "$ac_compile" 2>conftest.err)
4044 cat conftest.err >&5
e9c9a47c 4045 (eval echo "\"\$as_me:4045: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9c60689e
DWT
4046 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4047 cat conftest.err >&5
e9c9a47c 4048 (eval echo "\"\$as_me:4048: output\"" >&5)
9c60689e
DWT
4049 cat conftest.out >&5
4050 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4051 lt_cv_nm_interface="MS dumpbin"
4052 fi
4053 rm -f conftest*
35fa52c0 4054fi
9c60689e
DWT
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4056$as_echo "$lt_cv_nm_interface" >&6; }
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4059$as_echo_n "checking whether ln -s works... " >&6; }
4060LN_S=$as_ln_s
4061if test "$LN_S" = "ln -s"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063$as_echo "yes" >&6; }
35fa52c0 4064else
9c60689e
DWT
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4066$as_echo "no, using $LN_S" >&6; }
35fa52c0 4067fi
9c60689e
DWT
4068
4069# find the maximum length of command line arguments
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4071$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4072if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
35fa52c0
DWT
4073 $as_echo_n "(cached) " >&6
4074else
9c60689e
DWT
4075 i=0
4076 teststring="ABCD"
4077
4078 case $build_os in
4079 msdosdjgpp*)
4080 # On DJGPP, this test can blow up pretty badly due to problems in libc
4081 # (any single argument exceeding 2000 bytes causes a buffer overrun
4082 # during glob expansion). Even if it were fixed, the result of this
4083 # check would be larger than it should be.
4084 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4085 ;;
35fa52c0 4086
9c60689e
DWT
4087 gnu*)
4088 # Under GNU Hurd, this test is not required because there is
4089 # no limit to the length of command line arguments.
4090 # Libtool will interpret -1 as no limit whatsoever
4091 lt_cv_sys_max_cmd_len=-1;
4092 ;;
35fa52c0 4093
9c60689e
DWT
4094 cygwin* | mingw* | cegcc*)
4095 # On Win9x/ME, this test blows up -- it succeeds, but takes
4096 # about 5 minutes as the teststring grows exponentially.
4097 # Worse, since 9x/ME are not pre-emptively multitasking,
4098 # you end up with a "frozen" computer, even though with patience
4099 # the test eventually succeeds (with a max line length of 256k).
4100 # Instead, let's just punt: use the minimum linelength reported by
4101 # all of the supported platforms: 8192 (on NT/2K/XP).
4102 lt_cv_sys_max_cmd_len=8192;
4103 ;;
35fa52c0 4104
9c60689e
DWT
4105 amigaos*)
4106 # On AmigaOS with pdksh, this test takes hours, literally.
4107 # So we just punt and use a minimum line length of 8192.
4108 lt_cv_sys_max_cmd_len=8192;
4109 ;;
35fa52c0 4110
9c60689e
DWT
4111 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4112 # This has been around since 386BSD, at least. Likely further.
4113 if test -x /sbin/sysctl; then
4114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4115 elif test -x /usr/sbin/sysctl; then
4116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4117 else
4118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4119 fi
4120 # And add a safety zone
4121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4123 ;;
35fa52c0 4124
9c60689e
DWT
4125 interix*)
4126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4127 lt_cv_sys_max_cmd_len=196608
4128 ;;
35fa52c0 4129
9c60689e
DWT
4130 osf*)
4131 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4132 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4133 # nice to cause kernel panics so lets avoid the loop below.
4134 # First set a reasonable default.
4135 lt_cv_sys_max_cmd_len=16384
4136 #
4137 if test -x /sbin/sysconfig; then
4138 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4139 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4140 esac
4141 fi
4142 ;;
4143 sco3.2v5*)
4144 lt_cv_sys_max_cmd_len=102400
4145 ;;
4146 sysv5* | sco5v6* | sysv4.2uw2*)
4147 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4148 if test -n "$kargmax"; then
4149 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4150 else
4151 lt_cv_sys_max_cmd_len=32768
4152 fi
4153 ;;
4154 *)
4155 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4156 if test -n "$lt_cv_sys_max_cmd_len"; then
4157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4159 else
4160 # Make teststring a little bigger before we do anything with it.
4161 # a 1K string should be a reasonable start.
4162 for i in 1 2 3 4 5 6 7 8 ; do
4163 teststring=$teststring$teststring
4164 done
4165 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4166 # If test is not a shell built-in, we'll probably end up computing a
4167 # maximum length that is only half of the actual maximum length, but
4168 # we can't tell.
4169 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4170 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4171 test $i != 17 # 1/2 MB should be enough
4172 do
4173 i=`expr $i + 1`
4174 teststring=$teststring$teststring
4175 done
4176 # Only check the string length outside the loop.
4177 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4178 teststring=
4179 # Add a significant safety factor because C++ compilers can tack on
4180 # massive amounts of additional arguments before passing them to the
4181 # linker. It appears as though 1/2 is a usable value.
4182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4183 fi
4184 ;;
4185 esac
35fa52c0 4186
35fa52c0 4187fi
9c60689e
DWT
4188
4189if test -n $lt_cv_sys_max_cmd_len ; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4191$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35fa52c0 4192else
9c60689e
DWT
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4194$as_echo "none" >&6; }
35fa52c0 4195fi
9c60689e 4196max_cmd_len=$lt_cv_sys_max_cmd_len
35fa52c0 4197
9c60689e
DWT
4198
4199
4200
4201
4202
4203: ${CP="cp -f"}
4204: ${MV="mv -f"}
4205: ${RM="rm -f"}
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4208$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4209# Try some XSI features
4210xsi_shell=no
4211( _lt_dummy="a/b/c"
4212 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4213 = c,a/b,, \
4214 && eval 'test $(( 1 + 1 )) -eq 2 \
4215 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4216 && xsi_shell=yes
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4218$as_echo "$xsi_shell" >&6; }
4219
4220
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4222$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4223lt_shell_append=no
4224( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4225 >/dev/null 2>&1 \
4226 && lt_shell_append=yes
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4228$as_echo "$lt_shell_append" >&6; }
4229
4230
4231if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4232 lt_unset=unset
35fa52c0 4233else
9c60689e
DWT
4234 lt_unset=false
4235fi
4236
4237
4238
4239
4240
4241# test EBCDIC or ASCII
4242case `echo X|tr X '\101'` in
4243 A) # ASCII based system
4244 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4245 lt_SP2NL='tr \040 \012'
4246 lt_NL2SP='tr \015\012 \040\040'
4247 ;;
4248 *) # EBCDIC based system
4249 lt_SP2NL='tr \100 \n'
4250 lt_NL2SP='tr \r\n \100\100'
4251 ;;
35fa52c0
DWT
4252esac
4253
35fa52c0 4254
35fa52c0 4255
35fa52c0 4256
35fa52c0 4257
35fa52c0 4258
35fa52c0 4259
35fa52c0 4260
9c60689e
DWT
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4263$as_echo_n "checking for $LD option to reload object files... " >&6; }
4264if test "${lt_cv_ld_reload_flag+set}" = set; then :
35fa52c0
DWT
4265 $as_echo_n "(cached) " >&6
4266else
9c60689e 4267 lt_cv_ld_reload_flag='-r'
35fa52c0 4268fi
9c60689e
DWT
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4270$as_echo "$lt_cv_ld_reload_flag" >&6; }
4271reload_flag=$lt_cv_ld_reload_flag
4272case $reload_flag in
4273"" | " "*) ;;
4274*) reload_flag=" $reload_flag" ;;
4275esac
4276reload_cmds='$LD$reload_flag -o $output$reload_objs'
4277case $host_os in
4278 darwin*)
4279 if test "$GCC" = yes; then
4280 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4281 else
4282 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4283 fi
4284 ;;
35fa52c0 4285esac
35fa52c0
DWT
4286
4287
9c60689e
DWT
4288
4289
4290
4291
4292
4293
4294
4295if test -n "$ac_tool_prefix"; then
4296 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4297set dummy ${ac_tool_prefix}objdump; ac_word=$2
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299$as_echo_n "checking for $ac_word... " >&6; }
4300if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4301 $as_echo_n "(cached) " >&6
4302else
9c60689e
DWT
4303 if test -n "$OBJDUMP"; then
4304 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35fa52c0 4305else
9c60689e
DWT
4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
35fa52c0 4316 fi
9c60689e
DWT
4317done
4318 done
4319IFS=$as_save_IFS
35fa52c0 4320
35fa52c0 4321fi
35fa52c0 4322fi
9c60689e
DWT
4323OBJDUMP=$ac_cv_prog_OBJDUMP
4324if test -n "$OBJDUMP"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4326$as_echo "$OBJDUMP" >&6; }
35fa52c0 4327else
9c60689e
DWT
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
35fa52c0 4330fi
9c60689e
DWT
4331
4332
4333fi
4334if test -z "$ac_cv_prog_OBJDUMP"; then
4335 ac_ct_OBJDUMP=$OBJDUMP
4336 # Extract the first word of "objdump", so it can be a program name with args.
4337set dummy objdump; ac_word=$2
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339$as_echo_n "checking for $ac_word... " >&6; }
4340if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4341 $as_echo_n "(cached) " >&6
4342else
9c60689e
DWT
4343 if test -n "$ac_ct_OBJDUMP"; then
4344 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
35fa52c0 4345else
9c60689e
DWT
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358 done
4359IFS=$as_save_IFS
4360
35fa52c0
DWT
4361fi
4362fi
9c60689e
DWT
4363ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4364if test -n "$ac_ct_OBJDUMP"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4366$as_echo "$ac_ct_OBJDUMP" >&6; }
35fa52c0
DWT
4367else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369$as_echo "no" >&6; }
4370fi
9c60689e
DWT
4371
4372 if test "x$ac_ct_OBJDUMP" = x; then
4373 OBJDUMP="false"
4374 else
4375 case $cross_compiling:$ac_tool_warned in
4376yes:)
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379ac_tool_warned=yes ;;
35fa52c0 4380esac
9c60689e
DWT
4381 OBJDUMP=$ac_ct_OBJDUMP
4382 fi
4383else
4384 OBJDUMP="$ac_cv_prog_OBJDUMP"
35fa52c0 4385fi
35fa52c0 4386
9c60689e 4387test -z "$OBJDUMP" && OBJDUMP=objdump
35fa52c0
DWT
4388
4389
35fa52c0 4390
35fa52c0 4391
35fa52c0
DWT
4392
4393
4394
35fa52c0
DWT
4395
4396
9c60689e
DWT
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4398$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4399if test "${lt_cv_deplibs_check_method+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401else
4402 lt_cv_file_magic_cmd='$MAGIC_CMD'
4403lt_cv_file_magic_test_file=
4404lt_cv_deplibs_check_method='unknown'
4405# Need to set the preceding variable on all platforms that support
4406# interlibrary dependencies.
4407# 'none' -- dependencies not supported.
4408# `unknown' -- same as none, but documents that we really don't know.
4409# 'pass_all' -- all dependencies passed with no checks.
4410# 'test_compile' -- check by making test program.
4411# 'file_magic [[regex]]' -- check by looking for files in library path
4412# which responds to the $file_magic_cmd with a given extended regex.
4413# If you have `file' or equivalent on your system and you're not sure
4414# whether `pass_all' will *always* work, you probably want this one.
4415
4416case $host_os in
4417aix[4-9]*)
4418 lt_cv_deplibs_check_method=pass_all
4419 ;;
35fa52c0 4420
9c60689e
DWT
4421beos*)
4422 lt_cv_deplibs_check_method=pass_all
4423 ;;
35fa52c0 4424
9c60689e
DWT
4425bsdi[45]*)
4426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4427 lt_cv_file_magic_cmd='/usr/bin/file -L'
4428 lt_cv_file_magic_test_file=/shlib/libc.so
4429 ;;
35fa52c0 4430
9c60689e
DWT
4431cygwin*)
4432 # func_win32_libid is a shell function defined in ltmain.sh
4433 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4434 lt_cv_file_magic_cmd='func_win32_libid'
4435 ;;
35fa52c0 4436
9c60689e
DWT
4437mingw* | pw32*)
4438 # Base MSYS/MinGW do not provide the 'file' command needed by
4439 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4440 # unless we find 'file', for example because we are cross-compiling.
4441 if ( file / ) >/dev/null 2>&1; then
4442 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4443 lt_cv_file_magic_cmd='func_win32_libid'
4444 else
4445 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4446 lt_cv_file_magic_cmd='$OBJDUMP -f'
4447 fi
4448 ;;
35fa52c0 4449
9c60689e
DWT
4450cegcc)
4451 # use the weaker test based on 'objdump'. See mingw*.
4452 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4453 lt_cv_file_magic_cmd='$OBJDUMP -f'
4454 ;;
35fa52c0 4455
9c60689e
DWT
4456darwin* | rhapsody*)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
35fa52c0 4459
9c60689e
DWT
4460freebsd* | dragonfly*)
4461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4462 case $host_cpu in
4463 i*86 )
4464 # Not sure whether the presence of OpenBSD here was a mistake.
4465 # Let's accept both of them until this is cleared up.
4466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4467 lt_cv_file_magic_cmd=/usr/bin/file
4468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4469 ;;
4470 esac
4471 else
4472 lt_cv_deplibs_check_method=pass_all
4473 fi
4474 ;;
35fa52c0 4475
9c60689e
DWT
4476gnu*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
35fa52c0 4479
9c60689e
DWT
4480hpux10.20* | hpux11*)
4481 lt_cv_file_magic_cmd=/usr/bin/file
4482 case $host_cpu in
4483 ia64*)
4484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4486 ;;
4487 hppa*64*)
4488 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]'
4489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4490 ;;
4491 *)
4492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4494 ;;
4495 esac
4496 ;;
35fa52c0 4497
9c60689e
DWT
4498interix[3-9]*)
4499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4501 ;;
35fa52c0 4502
9c60689e
DWT
4503irix5* | irix6* | nonstopux*)
4504 case $LD in
4505 *-32|*"-32 ") libmagic=32-bit;;
4506 *-n32|*"-n32 ") libmagic=N32;;
4507 *-64|*"-64 ") libmagic=64-bit;;
4508 *) libmagic=never-match;;
4509 esac
4510 lt_cv_deplibs_check_method=pass_all
4511 ;;
35fa52c0 4512
9c60689e
DWT
4513# This must be Linux ELF.
4514linux* | k*bsd*-gnu | kopensolaris*-gnu)
4515 lt_cv_deplibs_check_method=pass_all
4516 ;;
35fa52c0 4517
9c60689e
DWT
4518netbsd* | netbsdelf*-gnu)
4519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4521 else
4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4523 fi
4524 ;;
35fa52c0 4525
9c60689e
DWT
4526newos6*)
4527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4528 lt_cv_file_magic_cmd=/usr/bin/file
4529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4530 ;;
35fa52c0 4531
9c60689e
DWT
4532*nto* | *qnx*)
4533 lt_cv_deplibs_check_method=pass_all
4534 ;;
35fa52c0 4535
9c60689e
DWT
4536openbsd*)
4537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4539 else
4540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4541 fi
4542 ;;
4543
4544osf3* | osf4* | osf5*)
4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
4548rdos*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552solaris*)
4553 lt_cv_deplibs_check_method=pass_all
4554 ;;
4555
4556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4557 lt_cv_deplibs_check_method=pass_all
4558 ;;
4559
4560sysv4 | sysv4.3*)
4561 case $host_vendor in
4562 motorola)
4563 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]'
4564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4565 ;;
4566 ncr)
4567 lt_cv_deplibs_check_method=pass_all
4568 ;;
4569 sequent)
4570 lt_cv_file_magic_cmd='/bin/file'
4571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4572 ;;
4573 sni)
4574 lt_cv_file_magic_cmd='/bin/file'
4575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4576 lt_cv_file_magic_test_file=/lib/libc.so
4577 ;;
4578 siemens)
4579 lt_cv_deplibs_check_method=pass_all
4580 ;;
4581 pc)
4582 lt_cv_deplibs_check_method=pass_all
4583 ;;
4584 esac
4585 ;;
4586
4587tpf*)
4588 lt_cv_deplibs_check_method=pass_all
4589 ;;
4590esac
35fa52c0
DWT
4591
4592fi
9c60689e
DWT
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4594$as_echo "$lt_cv_deplibs_check_method" >&6; }
4595file_magic_cmd=$lt_cv_file_magic_cmd
4596deplibs_check_method=$lt_cv_deplibs_check_method
4597test -z "$deplibs_check_method" && deplibs_check_method=unknown
dbadc56a 4598
35fa52c0 4599
35fa52c0 4600
35fa52c0 4601
35fa52c0 4602
35fa52c0 4603
35fa52c0 4604
35fa52c0 4605
35fa52c0 4606
35fa52c0 4607
35fa52c0 4608
9c60689e
DWT
4609
4610if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}ar; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_prog_AR+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 if test -n "$AR"; then
4619 ac_cv_prog_AR="$AR" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_AR="${ac_tool_prefix}ar"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
35fa52c0 4633 done
9c60689e
DWT
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638AR=$ac_cv_prog_AR
4639if test -n "$AR"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4641$as_echo "$AR" >&6; }
4642else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647
4648fi
4649if test -z "$ac_cv_prog_AR"; then
4650 ac_ct_AR=$AR
4651 # Extract the first word of "ar", so it can be a program name with args.
4652set dummy ar; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
4655if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657else
4658 if test -n "$ac_ct_AR"; then
4659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_AR="ar"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
35fa52c0 4671 fi
9c60689e
DWT
4672done
4673 done
4674IFS=$as_save_IFS
4675
4676fi
4677fi
4678ac_ct_AR=$ac_cv_prog_ac_ct_AR
4679if test -n "$ac_ct_AR"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4681$as_echo "$ac_ct_AR" >&6; }
4682else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687 if test "x$ac_ct_AR" = x; then
4688 AR="false"
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691yes:)
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694ac_tool_warned=yes ;;
4695esac
4696 AR=$ac_ct_AR
4697 fi
4698else
4699 AR="$ac_cv_prog_AR"
4700fi
4701
4702test -z "$AR" && AR=ar
4703test -z "$AR_FLAGS" && AR_FLAGS=cru
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717set dummy ${ac_tool_prefix}strip; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if test "${ac_cv_prog_STRIP+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722else
4723 if test -n "$STRIP"; then
4724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
35fa52c0 4736 fi
9c60689e
DWT
4737done
4738 done
4739IFS=$as_save_IFS
4740
4741fi
4742fi
4743STRIP=$ac_cv_prog_STRIP
4744if test -n "$STRIP"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4746$as_echo "$STRIP" >&6; }
4747else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
4751
4752
4753fi
4754if test -z "$ac_cv_prog_STRIP"; then
4755 ac_ct_STRIP=$STRIP
4756 # Extract the first word of "strip", so it can be a program name with args.
4757set dummy strip; ac_word=$2
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759$as_echo_n "checking for $ac_word... " >&6; }
4760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 if test -n "$ac_ct_STRIP"; then
4764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4765else
4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_STRIP="strip"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777done
4778 done
4779IFS=$as_save_IFS
4780
4781fi
4782fi
4783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4784if test -n "$ac_ct_STRIP"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4786$as_echo "$ac_ct_STRIP" >&6; }
4787else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789$as_echo "no" >&6; }
4790fi
4791
4792 if test "x$ac_ct_STRIP" = x; then
4793 STRIP=":"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796yes:)
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799ac_tool_warned=yes ;;
4800esac
4801 STRIP=$ac_ct_STRIP
4802 fi
4803else
4804 STRIP="$ac_cv_prog_STRIP"
4805fi
4806
4807test -z "$STRIP" && STRIP=:
4808
4809
4810
4811
4812
4813
4814if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4816set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if test "${ac_cv_prog_RANLIB+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821else
4822 if test -n "$RANLIB"; then
4823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837 done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842RANLIB=$ac_cv_prog_RANLIB
4843if test -n "$RANLIB"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4845$as_echo "$RANLIB" >&6; }
4846else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852fi
4853if test -z "$ac_cv_prog_RANLIB"; then
4854 ac_ct_RANLIB=$RANLIB
4855 # Extract the first word of "ranlib", so it can be a program name with args.
4856set dummy ranlib; ac_word=$2
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858$as_echo_n "checking for $ac_word... " >&6; }
4859if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861else
4862 if test -n "$ac_ct_RANLIB"; then
4863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_ac_ct_RANLIB="ranlib"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876done
4877 done
4878IFS=$as_save_IFS
4879
4880fi
4881fi
4882ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4883if test -n "$ac_ct_RANLIB"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4885$as_echo "$ac_ct_RANLIB" >&6; }
4886else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888$as_echo "no" >&6; }
4889fi
4890
4891 if test "x$ac_ct_RANLIB" = x; then
4892 RANLIB=":"
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895yes:)
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898ac_tool_warned=yes ;;
4899esac
4900 RANLIB=$ac_ct_RANLIB
4901 fi
4902else
4903 RANLIB="$ac_cv_prog_RANLIB"
4904fi
4905
4906test -z "$RANLIB" && RANLIB=:
4907
4908
4909
4910
4911
4912
4913# Determine commands to create old-style static archives.
4914old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4915old_postinstall_cmds='chmod 644 $oldlib'
4916old_postuninstall_cmds=
4917
4918if test -n "$RANLIB"; then
4919 case $host_os in
4920 openbsd*)
4921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4922 ;;
4923 *)
4924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4925 ;;
4926 esac
4927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4928fi
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963# If no C compiler was specified, use CC.
4964LTCC=${LTCC-"$CC"}
4965
4966# If no C compiler flags were specified, use CFLAGS.
4967LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4968
4969# Allow CC to be a program name with arguments.
4970compiler=$CC
4971
4972
4973# Check for command to grab the raw symbol name followed by C symbol from nm.
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4975$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4976if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978else
4979
4980# These are sane defaults that work on at least a few old systems.
4981# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4982
4983# Character class describing NM global symbol codes.
4984symcode='[BCDEGRST]'
4985
4986# Regexp to match symbols that can be accessed directly from C.
4987sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4988
4989# Define system-specific variables.
4990case $host_os in
4991aix*)
4992 symcode='[BCDT]'
4993 ;;
4994cygwin* | mingw* | pw32* | cegcc*)
4995 symcode='[ABCDGISTW]'
4996 ;;
4997hpux*)
4998 if test "$host_cpu" = ia64; then
4999 symcode='[ABCDEGRST]'
5000 fi
5001 ;;
5002irix* | nonstopux*)
5003 symcode='[BCDEGRST]'
5004 ;;
5005osf*)
5006 symcode='[BCDEGQRST]'
5007 ;;
5008solaris*)
5009 symcode='[BDRT]'
5010 ;;
5011sco3.2v5*)
5012 symcode='[DT]'
5013 ;;
5014sysv4.2uw2*)
5015 symcode='[DT]'
5016 ;;
5017sysv5* | sco5v6* | unixware* | OpenUNIX*)
5018 symcode='[ABDT]'
5019 ;;
5020sysv4)
5021 symcode='[DFNSTU]'
5022 ;;
5023esac
5024
5025# If we're using GNU nm, then use its standard symbol codes.
5026case `$NM -V 2>&1` in
5027*GNU* | *'with BFD'*)
5028 symcode='[ABCDGIRSTW]' ;;
5029esac
5030
5031# Transform an extracted symbol line into a proper C declaration.
5032# Some systems (esp. on ia64) link data and code symbols differently,
5033# so use this general approach.
5034lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5035
5036# Transform an extracted symbol line into symbol name and symbol address
5037lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5038lt_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'"
5039
5040# Handle CRLF in mingw tool chain
5041opt_cr=
5042case $build_os in
5043mingw*)
5044 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5045 ;;
5046esac
5047
5048# Try without a prefix underscore, then with it.
5049for ac_symprfx in "" "_"; do
5050
5051 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5052 symxfrm="\\1 $ac_symprfx\\2 \\2"
5053
5054 # Write the raw and C identifiers.
5055 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5056 # Fake it for dumpbin and say T for any non-static function
5057 # and D for any global variable.
5058 # Also find C++ and __fastcall symbols from MSVC++,
5059 # which start with @ or ?.
5060 lt_cv_sys_global_symbol_pipe="$AWK '"\
5061" {last_section=section; section=\$ 3};"\
5062" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5063" \$ 0!~/External *\|/{next};"\
5064" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5065" {if(hide[section]) next};"\
5066" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5067" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5068" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5069" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5070" ' prfx=^$ac_symprfx"
5071 else
5072 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5073 fi
5074
5075 # Check to see that the pipe works correctly.
5076 pipe_works=no
5077
5078 rm -f conftest*
5079 cat > conftest.$ac_ext <<_LT_EOF
5080#ifdef __cplusplus
5081extern "C" {
5082#endif
5083char nm_test_var;
5084void nm_test_func(void);
5085void nm_test_func(void){}
5086#ifdef __cplusplus
5087}
5088#endif
5089int main(){nm_test_var='a';nm_test_func();return(0);}
5090_LT_EOF
5091
5092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5093 (eval $ac_compile) 2>&5
5094 ac_status=$?
5095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096 test $ac_status = 0; }; then
5097 # Now try to grab the symbols.
5098 nlist=conftest.nm
5099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5100 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5101 ac_status=$?
5102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5103 test $ac_status = 0; } && test -s "$nlist"; then
5104 # Try sorting and uniquifying the output.
5105 if sort "$nlist" | uniq > "$nlist"T; then
5106 mv -f "$nlist"T "$nlist"
5107 else
5108 rm -f "$nlist"T
5109 fi
5110
5111 # Make sure that we snagged all the symbols we need.
5112 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5113 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5114 cat <<_LT_EOF > conftest.$ac_ext
5115#ifdef __cplusplus
5116extern "C" {
5117#endif
5118
5119_LT_EOF
5120 # Now generate the symbol file.
5121 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5122
5123 cat <<_LT_EOF >> conftest.$ac_ext
5124
5125/* The mapping between symbol names and symbols. */
5126const struct {
5127 const char *name;
5128 void *address;
5129}
5130lt__PROGRAM__LTX_preloaded_symbols[] =
5131{
5132 { "@PROGRAM@", (void *) 0 },
5133_LT_EOF
5134 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5135 cat <<\_LT_EOF >> conftest.$ac_ext
5136 {0, (void *) 0}
5137};
5138
5139/* This works around a problem in FreeBSD linker */
5140#ifdef FREEBSD_WORKAROUND
5141static const void *lt_preloaded_setup() {
5142 return lt__PROGRAM__LTX_preloaded_symbols;
5143}
5144#endif
5145
5146#ifdef __cplusplus
5147}
5148#endif
5149_LT_EOF
5150 # Now try linking the two files.
5151 mv conftest.$ac_objext conftstm.$ac_objext
5152 lt_save_LIBS="$LIBS"
5153 lt_save_CFLAGS="$CFLAGS"
5154 LIBS="conftstm.$ac_objext"
5155 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5157 (eval $ac_link) 2>&5
5158 ac_status=$?
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5161 pipe_works=yes
5162 fi
5163 LIBS="$lt_save_LIBS"
5164 CFLAGS="$lt_save_CFLAGS"
5165 else
5166 echo "cannot find nm_test_func in $nlist" >&5
5167 fi
5168 else
5169 echo "cannot find nm_test_var in $nlist" >&5
5170 fi
5171 else
5172 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5173 fi
5174 else
5175 echo "$progname: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 fi
5178 rm -rf conftest* conftst*
5179
5180 # Do not use the global_symbol_pipe unless it works.
5181 if test "$pipe_works" = yes; then
5182 break
5183 else
5184 lt_cv_sys_global_symbol_pipe=
5185 fi
5186done
5187
5188fi
5189
5190if test -z "$lt_cv_sys_global_symbol_pipe"; then
5191 lt_cv_sys_global_symbol_to_cdecl=
5192fi
5193if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5195$as_echo "failed" >&6; }
5196else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5198$as_echo "ok" >&6; }
5199fi
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223# Check whether --enable-libtool-lock was given.
5224if test "${enable_libtool_lock+set}" = set; then :
5225 enableval=$enable_libtool_lock;
5226fi
5227
5228test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5229
5230# Some flags need to be propagated to the compiler or linker for good
5231# libtool support.
5232case $host in
5233ia64-*-hpux*)
5234 # Find out which ABI we are using.
5235 echo 'int i;' > conftest.$ac_ext
5236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5237 (eval $ac_compile) 2>&5
5238 ac_status=$?
5239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5240 test $ac_status = 0; }; then
5241 case `/usr/bin/file conftest.$ac_objext` in
5242 *ELF-32*)
5243 HPUX_IA64_MODE="32"
5244 ;;
5245 *ELF-64*)
5246 HPUX_IA64_MODE="64"
5247 ;;
5248 esac
5249 fi
5250 rm -rf conftest*
5251 ;;
5252*-*-irix6*)
5253 # Find out which ABI we are using.
e9c9a47c 5254 echo '#line 5254 "configure"' > conftest.$ac_ext
9c60689e
DWT
5255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5256 (eval $ac_compile) 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }; then
5260 if test "$lt_cv_prog_gnu_ld" = yes; then
5261 case `/usr/bin/file conftest.$ac_objext` in
5262 *32-bit*)
5263 LD="${LD-ld} -melf32bsmip"
5264 ;;
5265 *N32*)
5266 LD="${LD-ld} -melf32bmipn32"
5267 ;;
5268 *64-bit*)
5269 LD="${LD-ld} -melf64bmip"
5270 ;;
5271 esac
5272 else
5273 case `/usr/bin/file conftest.$ac_objext` in
5274 *32-bit*)
5275 LD="${LD-ld} -32"
5276 ;;
5277 *N32*)
5278 LD="${LD-ld} -n32"
5279 ;;
5280 *64-bit*)
5281 LD="${LD-ld} -64"
5282 ;;
5283 esac
5284 fi
5285 fi
5286 rm -rf conftest*
5287 ;;
5288
5289x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5290s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5291 # Find out which ABI we are using.
5292 echo 'int i;' > conftest.$ac_ext
5293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5294 (eval $ac_compile) 2>&5
5295 ac_status=$?
5296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297 test $ac_status = 0; }; then
5298 case `/usr/bin/file conftest.o` in
5299 *32-bit*)
5300 case $host in
5301 x86_64-*kfreebsd*-gnu)
5302 LD="${LD-ld} -m elf_i386_fbsd"
5303 ;;
5304 x86_64-*linux*)
5305 LD="${LD-ld} -m elf_i386"
5306 ;;
5307 ppc64-*linux*|powerpc64-*linux*)
5308 LD="${LD-ld} -m elf32ppclinux"
5309 ;;
5310 s390x-*linux*)
5311 LD="${LD-ld} -m elf_s390"
5312 ;;
5313 sparc64-*linux*)
5314 LD="${LD-ld} -m elf32_sparc"
5315 ;;
5316 esac
5317 ;;
5318 *64-bit*)
5319 case $host in
5320 x86_64-*kfreebsd*-gnu)
5321 LD="${LD-ld} -m elf_x86_64_fbsd"
5322 ;;
5323 x86_64-*linux*)
5324 LD="${LD-ld} -m elf_x86_64"
5325 ;;
5326 ppc*-*linux*|powerpc*-*linux*)
5327 LD="${LD-ld} -m elf64ppc"
5328 ;;
5329 s390*-*linux*|s390*-*tpf*)
5330 LD="${LD-ld} -m elf64_s390"
5331 ;;
5332 sparc*-*linux*)
5333 LD="${LD-ld} -m elf64_sparc"
5334 ;;
5335 esac
5336 ;;
5337 esac
5338 fi
5339 rm -rf conftest*
5340 ;;
5341
5342*-*-sco3.2v5*)
5343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5344 SAVE_CFLAGS="$CFLAGS"
5345 CFLAGS="$CFLAGS -belf"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5347$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5348if test "${lt_cv_cc_needs_belf+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350else
5351 ac_ext=c
5352ac_cpp='$CPP $CPPFLAGS'
5353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358/* end confdefs.h. */
5359
5360int
5361main ()
5362{
5363
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_link "$LINENO"; then :
5369 lt_cv_cc_needs_belf=yes
5370else
5371 lt_cv_cc_needs_belf=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext \
5374 conftest$ac_exeext conftest.$ac_ext
5375 ac_ext=c
5376ac_cpp='$CPP $CPPFLAGS'
5377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379ac_compiler_gnu=$ac_cv_c_compiler_gnu
5380
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5383$as_echo "$lt_cv_cc_needs_belf" >&6; }
5384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5386 CFLAGS="$SAVE_CFLAGS"
5387 fi
5388 ;;
5389sparc*-*solaris*)
5390 # Find out which ABI we are using.
5391 echo 'int i;' > conftest.$ac_ext
5392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5393 (eval $ac_compile) 2>&5
5394 ac_status=$?
5395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5396 test $ac_status = 0; }; then
5397 case `/usr/bin/file conftest.o` in
5398 *64-bit*)
5399 case $lt_cv_prog_gnu_ld in
5400 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5401 *)
5402 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5403 LD="${LD-ld} -64"
5404 fi
5405 ;;
5406 esac
5407 ;;
5408 esac
5409 fi
5410 rm -rf conftest*
5411 ;;
5412esac
5413
5414need_locks="$enable_libtool_lock"
5415
5416
5417 case $host_os in
5418 rhapsody* | darwin*)
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426else
5427 if test -n "$DSYMUTIL"; then
5428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442 done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447DSYMUTIL=$ac_cv_prog_DSYMUTIL
5448if test -n "$DSYMUTIL"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5450$as_echo "$DSYMUTIL" >&6; }
5451else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457fi
5458if test -z "$ac_cv_prog_DSYMUTIL"; then
5459 ac_ct_DSYMUTIL=$DSYMUTIL
5460 # Extract the first word of "dsymutil", so it can be a program name with args.
5461set dummy dsymutil; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466else
5467 if test -n "$ac_ct_DSYMUTIL"; then
5468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482 done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5488if test -n "$ac_ct_DSYMUTIL"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5490$as_echo "$ac_ct_DSYMUTIL" >&6; }
5491else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496 if test "x$ac_ct_DSYMUTIL" = x; then
5497 DSYMUTIL=":"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503ac_tool_warned=yes ;;
5504esac
5505 DSYMUTIL=$ac_ct_DSYMUTIL
5506 fi
5507else
5508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5509fi
5510
5511 if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5513set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515$as_echo_n "checking for $ac_word... " >&6; }
5516if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5518else
5519 if test -n "$NMEDIT"; then
5520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5521else
5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534 done
5535IFS=$as_save_IFS
5536
5537fi
5538fi
5539NMEDIT=$ac_cv_prog_NMEDIT
5540if test -n "$NMEDIT"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5542$as_echo "$NMEDIT" >&6; }
5543else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546fi
5547
5548
5549fi
5550if test -z "$ac_cv_prog_NMEDIT"; then
5551 ac_ct_NMEDIT=$NMEDIT
5552 # Extract the first word of "nmedit", so it can be a program name with args.
5553set dummy nmedit; ac_word=$2
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555$as_echo_n "checking for $ac_word... " >&6; }
5556if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558else
5559 if test -n "$ac_ct_NMEDIT"; then
5560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574 done
5575IFS=$as_save_IFS
5576
5577fi
5578fi
5579ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5580if test -n "$ac_ct_NMEDIT"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5582$as_echo "$ac_ct_NMEDIT" >&6; }
5583else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585$as_echo "no" >&6; }
5586fi
5587
5588 if test "x$ac_ct_NMEDIT" = x; then
5589 NMEDIT=":"
5590 else
5591 case $cross_compiling:$ac_tool_warned in
5592yes:)
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5595ac_tool_warned=yes ;;
5596esac
5597 NMEDIT=$ac_ct_NMEDIT
5598 fi
5599else
5600 NMEDIT="$ac_cv_prog_NMEDIT"
5601fi
5602
5603 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5605set dummy ${ac_tool_prefix}lipo; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if test "${ac_cv_prog_LIPO+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610else
5611 if test -n "$LIPO"; then
5612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625done
5626 done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631LIPO=$ac_cv_prog_LIPO
5632if test -n "$LIPO"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5634$as_echo "$LIPO" >&6; }
5635else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640
5641fi
5642if test -z "$ac_cv_prog_LIPO"; then
5643 ac_ct_LIPO=$LIPO
5644 # Extract the first word of "lipo", so it can be a program name with args.
5645set dummy lipo; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 if test -n "$ac_ct_LIPO"; then
5652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_ac_ct_LIPO="lipo"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666 done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5672if test -n "$ac_ct_LIPO"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5674$as_echo "$ac_ct_LIPO" >&6; }
5675else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680 if test "x$ac_ct_LIPO" = x; then
5681 LIPO=":"
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684yes:)
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687ac_tool_warned=yes ;;
5688esac
5689 LIPO=$ac_ct_LIPO
5690 fi
5691else
5692 LIPO="$ac_cv_prog_LIPO"
5693fi
5694
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5697set dummy ${ac_tool_prefix}otool; ac_word=$2
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699$as_echo_n "checking for $ac_word... " >&6; }
5700if test "${ac_cv_prog_OTOOL+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702else
5703 if test -n "$OTOOL"; then
5704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718 done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723OTOOL=$ac_cv_prog_OTOOL
5724if test -n "$OTOOL"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5726$as_echo "$OTOOL" >&6; }
5727else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730fi
5731
5732
5733fi
5734if test -z "$ac_cv_prog_OTOOL"; then
5735 ac_ct_OTOOL=$OTOOL
5736 # Extract the first word of "otool", so it can be a program name with args.
5737set dummy otool; ac_word=$2
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739$as_echo_n "checking for $ac_word... " >&6; }
5740if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742else
5743 if test -n "$ac_ct_OTOOL"; then
5744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5745else
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753 ac_cv_prog_ac_ct_OTOOL="otool"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5756 fi
5757done
5758 done
5759IFS=$as_save_IFS
5760
5761fi
5762fi
5763ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5764if test -n "$ac_ct_OTOOL"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5766$as_echo "$ac_ct_OTOOL" >&6; }
5767else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769$as_echo "no" >&6; }
5770fi
5771
5772 if test "x$ac_ct_OTOOL" = x; then
5773 OTOOL=":"
5774 else
5775 case $cross_compiling:$ac_tool_warned in
5776yes:)
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779ac_tool_warned=yes ;;
5780esac
5781 OTOOL=$ac_ct_OTOOL
5782 fi
5783else
5784 OTOOL="$ac_cv_prog_OTOOL"
5785fi
5786
5787 if test -n "$ac_tool_prefix"; then
5788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5789set dummy ${ac_tool_prefix}otool64; ac_word=$2
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791$as_echo_n "checking for $ac_word... " >&6; }
5792if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794else
5795 if test -n "$OTOOL64"; then
5796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809done
5810 done
5811IFS=$as_save_IFS
5812
5813fi
5814fi
5815OTOOL64=$ac_cv_prog_OTOOL64
5816if test -n "$OTOOL64"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5818$as_echo "$OTOOL64" >&6; }
5819else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821$as_echo "no" >&6; }
5822fi
5823
5824
5825fi
5826if test -z "$ac_cv_prog_OTOOL64"; then
5827 ac_ct_OTOOL64=$OTOOL64
5828 # Extract the first word of "otool64", so it can be a program name with args.
5829set dummy otool64; ac_word=$2
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831$as_echo_n "checking for $ac_word... " >&6; }
5832if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 if test -n "$ac_ct_OTOOL64"; then
5836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_prog_ac_ct_OTOOL64="otool64"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849done
5850 done
5851IFS=$as_save_IFS
5852
5853fi
5854fi
5855ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5856if test -n "$ac_ct_OTOOL64"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5858$as_echo "$ac_ct_OTOOL64" >&6; }
5859else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861$as_echo "no" >&6; }
5862fi
5863
5864 if test "x$ac_ct_OTOOL64" = x; then
5865 OTOOL64=":"
5866 else
5867 case $cross_compiling:$ac_tool_warned in
5868yes:)
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5871ac_tool_warned=yes ;;
5872esac
5873 OTOOL64=$ac_ct_OTOOL64
5874 fi
5875else
5876 OTOOL64="$ac_cv_prog_OTOOL64"
5877fi
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5906$as_echo_n "checking for -single_module linker flag... " >&6; }
5907if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909else
5910 lt_cv_apple_cc_single_mod=no
5911 if test -z "${LT_MULTI_MODULE}"; then
5912 # By default we will add the -single_module flag. You can override
5913 # by either setting the environment variable LT_MULTI_MODULE
5914 # non-empty at configure time, or by adding -multi_module to the
5915 # link flags.
5916 rm -rf libconftest.dylib*
5917 echo "int foo(void){return 1;}" > conftest.c
5918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5919-dynamiclib -Wl,-single_module conftest.c" >&5
5920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5922 _lt_result=$?
5923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5924 lt_cv_apple_cc_single_mod=yes
5925 else
5926 cat conftest.err >&5
5927 fi
5928 rm -rf libconftest.dylib*
5929 rm -f conftest.*
5930 fi
5931fi
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5933$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5935$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5936if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938else
5939 lt_cv_ld_exported_symbols_list=no
5940 save_LDFLAGS=$LDFLAGS
5941 echo "_main" > conftest.sym
5942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945
5946int
5947main ()
5948{
5949
5950 ;
5951 return 0;
5952}
5953_ACEOF
5954if ac_fn_c_try_link "$LINENO"; then :
5955 lt_cv_ld_exported_symbols_list=yes
5956else
5957 lt_cv_ld_exported_symbols_list=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext \
5960 conftest$ac_exeext conftest.$ac_ext
5961 LDFLAGS="$save_LDFLAGS"
5962
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5965$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5966 case $host_os in
5967 rhapsody* | darwin1.[012])
5968 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5969 darwin1.*)
5970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5971 darwin*) # darwin 5.x on
5972 # if running on 10.5 or later, the deployment target defaults
5973 # to the OS version, if on x86, and 10.4, the deployment
5974 # target defaults to 10.4. Don't you love it?
5975 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5976 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5977 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5978 10.[012]*)
5979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5980 10.*)
5981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5982 esac
5983 ;;
5984 esac
5985 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5986 _lt_dar_single_mod='$single_module'
5987 fi
5988 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5989 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5990 else
5991 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5992 fi
5993 if test "$DSYMUTIL" != ":"; then
5994 _lt_dsymutil='~$DSYMUTIL $lib || :'
5995 else
5996 _lt_dsymutil=
5997 fi
5998 ;;
5999 esac
6000
6001ac_ext=c
6002ac_cpp='$CPP $CPPFLAGS'
6003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6007$as_echo_n "checking how to run the C preprocessor... " >&6; }
6008# On Suns, sometimes $CPP names a directory.
6009if test -n "$CPP" && test -d "$CPP"; then
6010 CPP=
6011fi
6012if test -z "$CPP"; then
6013 if test "${ac_cv_prog_CPP+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6015else
6016 # Double quotes because CPP needs to be expanded
6017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6018 do
6019 ac_preproc_ok=false
6020for ac_c_preproc_warn_flag in '' yes
6021do
6022 # Use a header file that comes with gcc, so configuring glibc
6023 # with a fresh cross-compiler works.
6024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6025 # <limits.h> exists even on freestanding compilers.
6026 # On the NeXT, cc -E runs the code through the compiler's parser,
6027 # not just through cpp. "Syntax error" is here to catch this case.
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h. */
6030#ifdef __STDC__
6031# include <limits.h>
6032#else
6033# include <assert.h>
6034#endif
6035 Syntax error
6036_ACEOF
6037if ac_fn_c_try_cpp "$LINENO"; then :
6038
6039else
6040 # Broken: fails on valid input.
6041continue
6042fi
6043rm -f conftest.err conftest.$ac_ext
6044
6045 # OK, works on sane cases. Now check whether nonexistent headers
6046 # can be detected and how.
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h. */
6049#include <ac_nonexistent.h>
6050_ACEOF
6051if ac_fn_c_try_cpp "$LINENO"; then :
6052 # Broken: success on invalid input.
6053continue
6054else
6055 # Passes both tests.
6056ac_preproc_ok=:
6057break
6058fi
6059rm -f conftest.err conftest.$ac_ext
6060
6061done
6062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6063rm -f conftest.err conftest.$ac_ext
6064if $ac_preproc_ok; then :
6065 break
6066fi
6067
6068 done
6069 ac_cv_prog_CPP=$CPP
6070
6071fi
6072 CPP=$ac_cv_prog_CPP
6073else
6074 ac_cv_prog_CPP=$CPP
6075fi
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6077$as_echo "$CPP" >&6; }
6078ac_preproc_ok=false
6079for ac_c_preproc_warn_flag in '' yes
6080do
6081 # Use a header file that comes with gcc, so configuring glibc
6082 # with a fresh cross-compiler works.
6083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6084 # <limits.h> exists even on freestanding compilers.
6085 # On the NeXT, cc -E runs the code through the compiler's parser,
6086 # not just through cpp. "Syntax error" is here to catch this case.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h. */
6089#ifdef __STDC__
6090# include <limits.h>
6091#else
6092# include <assert.h>
6093#endif
6094 Syntax error
6095_ACEOF
6096if ac_fn_c_try_cpp "$LINENO"; then :
6097
6098else
6099 # Broken: fails on valid input.
6100continue
6101fi
6102rm -f conftest.err conftest.$ac_ext
6103
6104 # OK, works on sane cases. Now check whether nonexistent headers
6105 # can be detected and how.
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h. */
6108#include <ac_nonexistent.h>
6109_ACEOF
6110if ac_fn_c_try_cpp "$LINENO"; then :
6111 # Broken: success on invalid input.
6112continue
6113else
6114 # Passes both tests.
6115ac_preproc_ok=:
6116break
6117fi
6118rm -f conftest.err conftest.$ac_ext
6119
6120done
6121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6122rm -f conftest.err conftest.$ac_ext
6123if $ac_preproc_ok; then :
6124
6125else
6126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128as_fn_error "C preprocessor \"$CPP\" fails sanity check
6129See \`config.log' for more details." "$LINENO" 5; }
6130fi
6131
6132ac_ext=c
6133ac_cpp='$CPP $CPPFLAGS'
6134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6140$as_echo_n "checking for ANSI C header files... " >&6; }
6141if test "${ac_cv_header_stdc+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h. */
6146#include <stdlib.h>
6147#include <stdarg.h>
6148#include <string.h>
6149#include <float.h>
6150
6151int
6152main ()
6153{
6154
6155 ;
6156 return 0;
6157}
6158_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then :
6160 ac_cv_header_stdc=yes
6161else
6162 ac_cv_header_stdc=no
6163fi
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165
6166if test $ac_cv_header_stdc = yes; then
6167 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169/* end confdefs.h. */
6170#include <string.h>
6171
6172_ACEOF
6173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6174 $EGREP "memchr" >/dev/null 2>&1; then :
6175
6176else
6177 ac_cv_header_stdc=no
6178fi
6179rm -f conftest*
6180
6181fi
6182
6183if test $ac_cv_header_stdc = yes; then
6184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h. */
6187#include <stdlib.h>
6188
6189_ACEOF
6190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "free" >/dev/null 2>&1; then :
6192
6193else
6194 ac_cv_header_stdc=no
6195fi
6196rm -f conftest*
6197
6198fi
6199
6200if test $ac_cv_header_stdc = yes; then
6201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6202 if test "$cross_compiling" = yes; then :
6203 :
6204else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h. */
6207#include <ctype.h>
6208#include <stdlib.h>
6209#if ((' ' & 0x0FF) == 0x020)
6210# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6211# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6212#else
6213# define ISLOWER(c) \
6214 (('a' <= (c) && (c) <= 'i') \
6215 || ('j' <= (c) && (c) <= 'r') \
6216 || ('s' <= (c) && (c) <= 'z'))
6217# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6218#endif
6219
6220#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6221int
6222main ()
6223{
6224 int i;
6225 for (i = 0; i < 256; i++)
6226 if (XOR (islower (i), ISLOWER (i))
6227 || toupper (i) != TOUPPER (i))
6228 return 2;
6229 return 0;
6230}
6231_ACEOF
6232if ac_fn_c_try_run "$LINENO"; then :
6233
6234else
6235 ac_cv_header_stdc=no
6236fi
6237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6238 conftest.$ac_objext conftest.beam conftest.$ac_ext
6239fi
6240
6241fi
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6244$as_echo "$ac_cv_header_stdc" >&6; }
6245if test $ac_cv_header_stdc = yes; then
6246
6247$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6248
6249fi
6250
6251# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6252for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6253 inttypes.h stdint.h unistd.h
6254do :
6255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6256ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6257"
6258eval as_val=\$$as_ac_Header
6259 if test "x$as_val" = x""yes; then :
6260 cat >>confdefs.h <<_ACEOF
6261#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262_ACEOF
6263
6264fi
6265
6266done
6267
6268
6269for ac_header in dlfcn.h
6270do :
6271 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6272"
6273if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6274 cat >>confdefs.h <<_ACEOF
6275#define HAVE_DLFCN_H 1
6276_ACEOF
6277
6278fi
6279
6280done
6281
6282
6283
6284# Set options
549f29b5
DWT
6285# Check whether --enable-static was given.
6286if test "${enable_static+set}" = set; then :
6287 enableval=$enable_static; p=${PACKAGE-default}
9c60689e 6288 case $enableval in
549f29b5
DWT
6289 yes) enable_static=yes ;;
6290 no) enable_static=no ;;
9c60689e 6291 *)
549f29b5 6292 enable_static=no
9c60689e
DWT
6293 # Look at the argument we got. We use all the common list separators.
6294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6295 for pkg in $enableval; do
6296 IFS="$lt_save_ifs"
6297 if test "X$pkg" = "X$p"; then
549f29b5 6298 enable_static=yes
9c60689e
DWT
6299 fi
6300 done
6301 IFS="$lt_save_ifs"
6302 ;;
6303 esac
6304else
549f29b5 6305 enable_static=no
9c60689e
DWT
6306fi
6307
6308
6309
6310
6311
6312
6313
6314
6315
549f29b5
DWT
6316
6317 enable_dlopen=no
6318
6319
6320 enable_win32_dll=no
6321
6322
6323 # Check whether --enable-shared was given.
6324if test "${enable_shared+set}" = set; then :
6325 enableval=$enable_shared; p=${PACKAGE-default}
9c60689e 6326 case $enableval in
549f29b5
DWT
6327 yes) enable_shared=yes ;;
6328 no) enable_shared=no ;;
9c60689e 6329 *)
549f29b5 6330 enable_shared=no
9c60689e
DWT
6331 # Look at the argument we got. We use all the common list separators.
6332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6333 for pkg in $enableval; do
6334 IFS="$lt_save_ifs"
6335 if test "X$pkg" = "X$p"; then
549f29b5 6336 enable_shared=yes
9c60689e
DWT
6337 fi
6338 done
6339 IFS="$lt_save_ifs"
6340 ;;
6341 esac
6342else
549f29b5 6343 enable_shared=yes
9c60689e
DWT
6344fi
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
549f29b5 6355
9c60689e
DWT
6356# Check whether --with-pic was given.
6357if test "${with_pic+set}" = set; then :
6358 withval=$with_pic; pic_mode="$withval"
6359else
6360 pic_mode=default
6361fi
6362
6363
6364test -z "$pic_mode" && pic_mode=default
6365
6366
6367
6368
6369
6370
6371
6372 # Check whether --enable-fast-install was given.
6373if test "${enable_fast_install+set}" = set; then :
6374 enableval=$enable_fast_install; p=${PACKAGE-default}
6375 case $enableval in
6376 yes) enable_fast_install=yes ;;
6377 no) enable_fast_install=no ;;
6378 *)
6379 enable_fast_install=no
6380 # Look at the argument we got. We use all the common list separators.
6381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6382 for pkg in $enableval; do
6383 IFS="$lt_save_ifs"
6384 if test "X$pkg" = "X$p"; then
6385 enable_fast_install=yes
6386 fi
6387 done
6388 IFS="$lt_save_ifs"
6389 ;;
6390 esac
6391else
6392 enable_fast_install=yes
6393fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405# This can be used to rebuild libtool when needed
6406LIBTOOL_DEPS="$ltmain"
6407
6408# Always use our own libtool.
6409LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435test -z "$LN_S" && LN_S="ln -s"
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450if test -n "${ZSH_VERSION+set}" ; then
6451 setopt NO_GLOB_SUBST
6452fi
6453
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6455$as_echo_n "checking for objdir... " >&6; }
6456if test "${lt_cv_objdir+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458else
6459 rm -f .libs 2>/dev/null
6460mkdir .libs 2>/dev/null
6461if test -d .libs; then
6462 lt_cv_objdir=.libs
6463else
6464 # MS-DOS does not allow filenames that begin with a dot.
6465 lt_cv_objdir=_libs
6466fi
6467rmdir .libs 2>/dev/null
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6470$as_echo "$lt_cv_objdir" >&6; }
6471objdir=$lt_cv_objdir
6472
6473
6474
6475
6476
6477cat >>confdefs.h <<_ACEOF
6478#define LT_OBJDIR "$lt_cv_objdir/"
6479_ACEOF
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497case $host_os in
6498aix3*)
6499 # AIX sometimes has problems with the GCC collect2 program. For some
6500 # reason, if we set the COLLECT_NAMES environment variable, the problems
6501 # vanish in a puff of smoke.
6502 if test "X${COLLECT_NAMES+set}" != Xset; then
6503 COLLECT_NAMES=
6504 export COLLECT_NAMES
6505 fi
6506 ;;
6507esac
6508
6509# Sed substitution that helps us do robust quoting. It backslashifies
6510# metacharacters that are still active within double-quoted strings.
6511sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6512
6513# Same as above, but do not quote variable references.
6514double_quote_subst='s/\(["`\\]\)/\\\1/g'
6515
6516# Sed substitution to delay expansion of an escaped shell variable in a
6517# double_quote_subst'ed string.
6518delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6519
6520# Sed substitution to delay expansion of an escaped single quote.
6521delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6522
6523# Sed substitution to avoid accidental globbing in evaled expressions
6524no_glob_subst='s/\*/\\\*/g'
6525
6526# Global variables:
6527ofile=libtool
6528can_build_shared=yes
6529
6530# All known linkers require a `.a' archive for static linking (except MSVC,
6531# which needs '.lib').
6532libext=a
6533
6534with_gnu_ld="$lt_cv_prog_gnu_ld"
6535
6536old_CC="$CC"
6537old_CFLAGS="$CFLAGS"
6538
6539# Set sane defaults for various variables
6540test -z "$CC" && CC=cc
6541test -z "$LTCC" && LTCC=$CC
6542test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6543test -z "$LD" && LD=ld
6544test -z "$ac_objext" && ac_objext=o
6545
6546for cc_temp in $compiler""; do
6547 case $cc_temp in
6548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6550 \-*) ;;
6551 *) break;;
6552 esac
6553done
6554cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6555
6556
6557# Only perform the check for file, if the check method requires it
6558test -z "$MAGIC_CMD" && MAGIC_CMD=file
6559case $deplibs_check_method in
6560file_magic*)
6561 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6563$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6564if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566else
6567 case $MAGIC_CMD in
6568[\\/*] | ?:[\\/]*)
6569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6570 ;;
6571*)
6572 lt_save_MAGIC_CMD="$MAGIC_CMD"
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6575 for ac_dir in $ac_dummy; do
6576 IFS="$lt_save_ifs"
6577 test -z "$ac_dir" && ac_dir=.
6578 if test -f $ac_dir/${ac_tool_prefix}file; then
6579 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6580 if test -n "$file_magic_test_file"; then
6581 case $deplibs_check_method in
6582 "file_magic "*)
6583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6586 $EGREP "$file_magic_regex" > /dev/null; then
6587 :
6588 else
6589 cat <<_LT_EOF 1>&2
6590
6591*** Warning: the command libtool uses to detect shared libraries,
6592*** $file_magic_cmd, produces output that libtool cannot recognize.
6593*** The result is that libtool may fail to recognize shared libraries
6594*** as such. This will affect the creation of libtool libraries that
6595*** depend on shared libraries, but programs linked with such libtool
6596*** libraries will work regardless of this problem. Nevertheless, you
6597*** may want to report the problem to your system manager and/or to
6598*** bug-libtool@gnu.org
6599
6600_LT_EOF
6601 fi ;;
6602 esac
6603 fi
6604 break
6605 fi
6606 done
6607 IFS="$lt_save_ifs"
6608 MAGIC_CMD="$lt_save_MAGIC_CMD"
6609 ;;
6610esac
6611fi
6612
6613MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6614if test -n "$MAGIC_CMD"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6616$as_echo "$MAGIC_CMD" >&6; }
6617else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622
6623
6624
6625
6626if test -z "$lt_cv_path_MAGIC_CMD"; then
6627 if test -n "$ac_tool_prefix"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6629$as_echo_n "checking for file... " >&6; }
6630if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6631 $as_echo_n "(cached) " >&6
6632else
6633 case $MAGIC_CMD in
6634[\\/*] | ?:[\\/]*)
6635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6636 ;;
6637*)
6638 lt_save_MAGIC_CMD="$MAGIC_CMD"
6639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6641 for ac_dir in $ac_dummy; do
6642 IFS="$lt_save_ifs"
6643 test -z "$ac_dir" && ac_dir=.
6644 if test -f $ac_dir/file; then
6645 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6646 if test -n "$file_magic_test_file"; then
6647 case $deplibs_check_method in
6648 "file_magic "*)
6649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6652 $EGREP "$file_magic_regex" > /dev/null; then
6653 :
6654 else
6655 cat <<_LT_EOF 1>&2
6656
6657*** Warning: the command libtool uses to detect shared libraries,
6658*** $file_magic_cmd, produces output that libtool cannot recognize.
6659*** The result is that libtool may fail to recognize shared libraries
6660*** as such. This will affect the creation of libtool libraries that
6661*** depend on shared libraries, but programs linked with such libtool
6662*** libraries will work regardless of this problem. Nevertheless, you
6663*** may want to report the problem to your system manager and/or to
6664*** bug-libtool@gnu.org
6665
6666_LT_EOF
6667 fi ;;
6668 esac
6669 fi
6670 break
6671 fi
6672 done
6673 IFS="$lt_save_ifs"
6674 MAGIC_CMD="$lt_save_MAGIC_CMD"
6675 ;;
6676esac
6677fi
6678
6679MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6680if test -n "$MAGIC_CMD"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6682$as_echo "$MAGIC_CMD" >&6; }
6683else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688
6689 else
6690 MAGIC_CMD=:
6691 fi
6692fi
6693
6694 fi
6695 ;;
6696esac
6697
6698# Use C for the default configuration in the libtool script
6699
6700lt_save_CC="$CC"
6701ac_ext=c
6702ac_cpp='$CPP $CPPFLAGS'
6703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707
6708# Source file extension for C test sources.
6709ac_ext=c
6710
6711# Object file extension for compiled C test sources.
6712objext=o
6713objext=$objext
6714
6715# Code to be used in simple compile tests
6716lt_simple_compile_test_code="int some_variable = 0;"
6717
6718# Code to be used in simple link tests
6719lt_simple_link_test_code='int main(){return(0);}'
6720
6721
6722
6723
6724
6725
6726
6727# If no C compiler was specified, use CC.
6728LTCC=${LTCC-"$CC"}
6729
6730# If no C compiler flags were specified, use CFLAGS.
6731LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6732
6733# Allow CC to be a program name with arguments.
6734compiler=$CC
6735
6736# Save the default compiler, since it gets overwritten when the other
6737# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6738compiler_DEFAULT=$CC
6739
6740# save warnings/boilerplate of simple test code
6741ac_outfile=conftest.$ac_objext
6742echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6744_lt_compiler_boilerplate=`cat conftest.err`
6745$RM conftest*
6746
6747ac_outfile=conftest.$ac_objext
6748echo "$lt_simple_link_test_code" >conftest.$ac_ext
6749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6750_lt_linker_boilerplate=`cat conftest.err`
6751$RM -r conftest*
6752
6753
6754if test -n "$compiler"; then
6755
6756lt_prog_compiler_no_builtin_flag=
6757
6758if test "$GCC" = yes; then
6759 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6762$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6763if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6765else
6766 lt_cv_prog_compiler_rtti_exceptions=no
6767 ac_outfile=conftest.$ac_objext
6768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6769 lt_compiler_flag="-fno-rtti -fno-exceptions"
6770 # Insert the option either (1) after the last *FLAGS variable, or
6771 # (2) before a word containing "conftest.", or (3) at the end.
6772 # Note that $ac_compile itself does not contain backslashes and begins
6773 # with a dollar sign (not a hyphen), so the echo should work correctly.
6774 # The option is referenced via a variable to avoid confusing sed.
6775 lt_compile=`echo "$ac_compile" | $SED \
6776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6778 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 6779 (eval echo "\"\$as_me:6779: $lt_compile\"" >&5)
9c60689e
DWT
6780 (eval "$lt_compile" 2>conftest.err)
6781 ac_status=$?
6782 cat conftest.err >&5
e9c9a47c 6783 echo "$as_me:6783: \$? = $ac_status" >&5
9c60689e
DWT
6784 if (exit $ac_status) && test -s "$ac_outfile"; then
6785 # The compiler can only warn and ignore the option if not recognized
6786 # So say no if there are warnings other than the usual output.
6787 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6790 lt_cv_prog_compiler_rtti_exceptions=yes
6791 fi
6792 fi
6793 $RM conftest*
6794
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6797$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6798
6799if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6800 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6801else
6802 :
6803fi
6804
6805fi
6806
6807
6808
6809
6810
6811
6812 lt_prog_compiler_wl=
6813lt_prog_compiler_pic=
6814lt_prog_compiler_static=
6815
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6817$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6818
6819 if test "$GCC" = yes; then
6820 lt_prog_compiler_wl='-Wl,'
6821 lt_prog_compiler_static='-static'
6822
6823 case $host_os in
6824 aix*)
6825 # All AIX code is PIC.
6826 if test "$host_cpu" = ia64; then
6827 # AIX 5 now supports IA64 processor
6828 lt_prog_compiler_static='-Bstatic'
6829 fi
6830 ;;
6831
6832 amigaos*)
6833 case $host_cpu in
6834 powerpc)
6835 # see comment about AmigaOS4 .so support
6836 lt_prog_compiler_pic='-fPIC'
6837 ;;
6838 m68k)
6839 # FIXME: we need at least 68020 code to build shared libraries, but
6840 # adding the `-m68020' flag to GCC prevents building anything better,
6841 # like `-m68040'.
6842 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6843 ;;
6844 esac
6845 ;;
6846
6847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6848 # PIC is the default for these OSes.
6849 ;;
6850
6851 mingw* | cygwin* | pw32* | os2* | cegcc*)
6852 # This hack is so that the source file can tell whether it is being
6853 # built for inclusion in a dll (and should export symbols for example).
6854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6855 # (--disable-auto-import) libraries
6856 lt_prog_compiler_pic='-DDLL_EXPORT'
6857 ;;
6858
6859 darwin* | rhapsody*)
6860 # PIC is the default on this platform
6861 # Common symbols not allowed in MH_DYLIB files
6862 lt_prog_compiler_pic='-fno-common'
6863 ;;
6864
6865 hpux*)
6866 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6867 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6868 # sets the default TLS model and affects inlining.
6869 case $host_cpu in
6870 hppa*64*)
6871 # +Z the default
6872 ;;
6873 *)
6874 lt_prog_compiler_pic='-fPIC'
6875 ;;
6876 esac
6877 ;;
6878
6879 interix[3-9]*)
6880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6881 # Instead, we relocate shared libraries at runtime.
6882 ;;
6883
6884 msdosdjgpp*)
6885 # Just because we use GCC doesn't mean we suddenly get shared libraries
6886 # on systems that don't support them.
6887 lt_prog_compiler_can_build_shared=no
6888 enable_shared=no
6889 ;;
6890
6891 *nto* | *qnx*)
6892 # QNX uses GNU C++, but need to define -shared option too, otherwise
6893 # it will coredump.
6894 lt_prog_compiler_pic='-fPIC -shared'
6895 ;;
6896
6897 sysv4*MP*)
6898 if test -d /usr/nec; then
6899 lt_prog_compiler_pic=-Kconform_pic
6900 fi
6901 ;;
6902
6903 *)
6904 lt_prog_compiler_pic='-fPIC'
6905 ;;
6906 esac
6907 else
6908 # PORTME Check for flag to pass linker flags through the system compiler.
6909 case $host_os in
6910 aix*)
6911 lt_prog_compiler_wl='-Wl,'
6912 if test "$host_cpu" = ia64; then
6913 # AIX 5 now supports IA64 processor
6914 lt_prog_compiler_static='-Bstatic'
6915 else
6916 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6917 fi
6918 ;;
6919
6920 mingw* | cygwin* | pw32* | os2* | cegcc*)
6921 # This hack is so that the source file can tell whether it is being
6922 # built for inclusion in a dll (and should export symbols for example).
6923 lt_prog_compiler_pic='-DDLL_EXPORT'
6924 ;;
6925
6926 hpux9* | hpux10* | hpux11*)
6927 lt_prog_compiler_wl='-Wl,'
6928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6929 # not for PA HP-UX.
6930 case $host_cpu in
6931 hppa*64*|ia64*)
6932 # +Z the default
6933 ;;
6934 *)
6935 lt_prog_compiler_pic='+Z'
6936 ;;
6937 esac
6938 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6939 lt_prog_compiler_static='${wl}-a ${wl}archive'
6940 ;;
6941
6942 irix5* | irix6* | nonstopux*)
6943 lt_prog_compiler_wl='-Wl,'
6944 # PIC (with -KPIC) is the default.
6945 lt_prog_compiler_static='-non_shared'
6946 ;;
6947
6948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6949 case $cc_basename in
6950 # old Intel for x86_64 which still supported -KPIC.
6951 ecc*)
6952 lt_prog_compiler_wl='-Wl,'
6953 lt_prog_compiler_pic='-KPIC'
6954 lt_prog_compiler_static='-static'
6955 ;;
6956 # icc used to be incompatible with GCC.
6957 # ICC 10 doesn't accept -KPIC any more.
6958 icc* | ifort*)
6959 lt_prog_compiler_wl='-Wl,'
6960 lt_prog_compiler_pic='-fPIC'
6961 lt_prog_compiler_static='-static'
6962 ;;
6963 # Lahey Fortran 8.1.
6964 lf95*)
6965 lt_prog_compiler_wl='-Wl,'
6966 lt_prog_compiler_pic='--shared'
6967 lt_prog_compiler_static='--static'
6968 ;;
6969 pgcc* | pgf77* | pgf90* | pgf95*)
6970 # Portland Group compilers (*not* the Pentium gcc compiler,
6971 # which looks to be a dead project)
6972 lt_prog_compiler_wl='-Wl,'
6973 lt_prog_compiler_pic='-fpic'
6974 lt_prog_compiler_static='-Bstatic'
6975 ;;
6976 ccc*)
6977 lt_prog_compiler_wl='-Wl,'
6978 # All Alpha code is PIC.
6979 lt_prog_compiler_static='-non_shared'
6980 ;;
6981 xl*)
6982 # IBM XL C 8.0/Fortran 10.1 on PPC
6983 lt_prog_compiler_wl='-Wl,'
6984 lt_prog_compiler_pic='-qpic'
6985 lt_prog_compiler_static='-qstaticlink'
6986 ;;
6987 *)
6988 case `$CC -V 2>&1 | sed 5q` in
6989 *Sun\ C*)
6990 # Sun C 5.9
6991 lt_prog_compiler_pic='-KPIC'
6992 lt_prog_compiler_static='-Bstatic'
6993 lt_prog_compiler_wl='-Wl,'
6994 ;;
6995 *Sun\ F*)
6996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6997 lt_prog_compiler_pic='-KPIC'
6998 lt_prog_compiler_static='-Bstatic'
6999 lt_prog_compiler_wl=''
7000 ;;
7001 esac
7002 ;;
7003 esac
7004 ;;
7005
7006 newsos6)
7007 lt_prog_compiler_pic='-KPIC'
7008 lt_prog_compiler_static='-Bstatic'
7009 ;;
7010
7011 *nto* | *qnx*)
7012 # QNX uses GNU C++, but need to define -shared option too, otherwise
7013 # it will coredump.
7014 lt_prog_compiler_pic='-fPIC -shared'
7015 ;;
7016
7017 osf3* | osf4* | osf5*)
7018 lt_prog_compiler_wl='-Wl,'
7019 # All OSF/1 code is PIC.
7020 lt_prog_compiler_static='-non_shared'
7021 ;;
7022
7023 rdos*)
7024 lt_prog_compiler_static='-non_shared'
7025 ;;
7026
7027 solaris*)
7028 lt_prog_compiler_pic='-KPIC'
7029 lt_prog_compiler_static='-Bstatic'
7030 case $cc_basename in
7031 f77* | f90* | f95*)
7032 lt_prog_compiler_wl='-Qoption ld ';;
7033 *)
7034 lt_prog_compiler_wl='-Wl,';;
7035 esac
7036 ;;
7037
7038 sunos4*)
7039 lt_prog_compiler_wl='-Qoption ld '
7040 lt_prog_compiler_pic='-PIC'
7041 lt_prog_compiler_static='-Bstatic'
7042 ;;
7043
7044 sysv4 | sysv4.2uw2* | sysv4.3*)
7045 lt_prog_compiler_wl='-Wl,'
7046 lt_prog_compiler_pic='-KPIC'
7047 lt_prog_compiler_static='-Bstatic'
7048 ;;
7049
7050 sysv4*MP*)
7051 if test -d /usr/nec ;then
7052 lt_prog_compiler_pic='-Kconform_pic'
7053 lt_prog_compiler_static='-Bstatic'
7054 fi
7055 ;;
7056
7057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7058 lt_prog_compiler_wl='-Wl,'
7059 lt_prog_compiler_pic='-KPIC'
7060 lt_prog_compiler_static='-Bstatic'
7061 ;;
7062
7063 unicos*)
7064 lt_prog_compiler_wl='-Wl,'
7065 lt_prog_compiler_can_build_shared=no
7066 ;;
7067
7068 uts4*)
7069 lt_prog_compiler_pic='-pic'
7070 lt_prog_compiler_static='-Bstatic'
7071 ;;
7072
7073 *)
7074 lt_prog_compiler_can_build_shared=no
7075 ;;
7076 esac
7077 fi
7078
7079case $host_os in
7080 # For platforms which do not support PIC, -DPIC is meaningless:
7081 *djgpp*)
7082 lt_prog_compiler_pic=
7083 ;;
7084 *)
7085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7086 ;;
7087esac
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7089$as_echo "$lt_prog_compiler_pic" >&6; }
7090
7091
7092
7093
7094
7095
7096#
7097# Check to make sure the PIC flag actually works.
7098#
7099if test -n "$lt_prog_compiler_pic"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7101$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7102if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7104else
7105 lt_cv_prog_compiler_pic_works=no
7106 ac_outfile=conftest.$ac_objext
7107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7109 # Insert the option either (1) after the last *FLAGS variable, or
7110 # (2) before a word containing "conftest.", or (3) at the end.
7111 # Note that $ac_compile itself does not contain backslashes and begins
7112 # with a dollar sign (not a hyphen), so the echo should work correctly.
7113 # The option is referenced via a variable to avoid confusing sed.
7114 lt_compile=`echo "$ac_compile" | $SED \
7115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7117 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 7118 (eval echo "\"\$as_me:7118: $lt_compile\"" >&5)
9c60689e
DWT
7119 (eval "$lt_compile" 2>conftest.err)
7120 ac_status=$?
7121 cat conftest.err >&5
e9c9a47c 7122 echo "$as_me:7122: \$? = $ac_status" >&5
9c60689e
DWT
7123 if (exit $ac_status) && test -s "$ac_outfile"; then
7124 # The compiler can only warn and ignore the option if not recognized
7125 # So say no if there are warnings other than the usual output.
7126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7129 lt_cv_prog_compiler_pic_works=yes
7130 fi
7131 fi
7132 $RM conftest*
7133
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7136$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7137
7138if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7139 case $lt_prog_compiler_pic in
7140 "" | " "*) ;;
7141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7142 esac
7143else
7144 lt_prog_compiler_pic=
7145 lt_prog_compiler_can_build_shared=no
7146fi
7147
7148fi
7149
7150
7151
7152
7153
7154
7155#
7156# Check to make sure the static flag actually works.
7157#
7158wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7160$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7161if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163else
7164 lt_cv_prog_compiler_static_works=no
7165 save_LDFLAGS="$LDFLAGS"
7166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7169 # The linker can only warn and ignore the option if not recognized
7170 # So say no if there are warnings
7171 if test -s conftest.err; then
7172 # Append any errors to the config.log.
7173 cat conftest.err 1>&5
7174 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7176 if diff conftest.exp conftest.er2 >/dev/null; then
7177 lt_cv_prog_compiler_static_works=yes
7178 fi
7179 else
7180 lt_cv_prog_compiler_static_works=yes
7181 fi
7182 fi
7183 $RM -r conftest*
7184 LDFLAGS="$save_LDFLAGS"
7185
7186fi
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7188$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7189
7190if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7191 :
7192else
7193 lt_prog_compiler_static=
7194fi
7195
7196
7197
7198
7199
7200
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7203$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7204if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7206else
7207 lt_cv_prog_compiler_c_o=no
7208 $RM -r conftest 2>/dev/null
7209 mkdir conftest
7210 cd conftest
7211 mkdir out
7212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7213
7214 lt_compiler_flag="-o out/conftest2.$ac_objext"
7215 # Insert the option either (1) after the last *FLAGS variable, or
7216 # (2) before a word containing "conftest.", or (3) at the end.
7217 # Note that $ac_compile itself does not contain backslashes and begins
7218 # with a dollar sign (not a hyphen), so the echo should work correctly.
7219 lt_compile=`echo "$ac_compile" | $SED \
7220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7222 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 7223 (eval echo "\"\$as_me:7223: $lt_compile\"" >&5)
9c60689e
DWT
7224 (eval "$lt_compile" 2>out/conftest.err)
7225 ac_status=$?
7226 cat out/conftest.err >&5
e9c9a47c 7227 echo "$as_me:7227: \$? = $ac_status" >&5
9c60689e
DWT
7228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7229 then
7230 # The compiler can only warn and ignore the option if not recognized
7231 # So say no if there are warnings
7232 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7235 lt_cv_prog_compiler_c_o=yes
7236 fi
7237 fi
7238 chmod u+w . 2>&5
7239 $RM conftest*
7240 # SGI C++ compiler will create directory out/ii_files/ for
7241 # template instantiation
7242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7243 $RM out/* && rmdir out
7244 cd ..
7245 $RM -r conftest
7246 $RM conftest*
7247
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7250$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7251
7252
7253
7254
7255
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7259if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261else
7262 lt_cv_prog_compiler_c_o=no
7263 $RM -r conftest 2>/dev/null
7264 mkdir conftest
7265 cd conftest
7266 mkdir out
7267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7268
7269 lt_compiler_flag="-o out/conftest2.$ac_objext"
7270 # Insert the option either (1) after the last *FLAGS variable, or
7271 # (2) before a word containing "conftest.", or (3) at the end.
7272 # Note that $ac_compile itself does not contain backslashes and begins
7273 # with a dollar sign (not a hyphen), so the echo should work correctly.
7274 lt_compile=`echo "$ac_compile" | $SED \
7275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7277 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 7278 (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
9c60689e
DWT
7279 (eval "$lt_compile" 2>out/conftest.err)
7280 ac_status=$?
7281 cat out/conftest.err >&5
e9c9a47c 7282 echo "$as_me:7282: \$? = $ac_status" >&5
9c60689e
DWT
7283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7284 then
7285 # The compiler can only warn and ignore the option if not recognized
7286 # So say no if there are warnings
7287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7290 lt_cv_prog_compiler_c_o=yes
7291 fi
7292 fi
7293 chmod u+w . 2>&5
7294 $RM conftest*
7295 # SGI C++ compiler will create directory out/ii_files/ for
7296 # template instantiation
7297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7298 $RM out/* && rmdir out
7299 cd ..
7300 $RM -r conftest
7301 $RM conftest*
7302
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7305$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7306
7307
7308
7309
7310hard_links="nottested"
7311if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7312 # do not overwrite the value of need_locks provided by the user
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7314$as_echo_n "checking if we can lock with hard links... " >&6; }
7315 hard_links=yes
7316 $RM conftest*
7317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7318 touch conftest.a
7319 ln conftest.a conftest.b 2>&5 || hard_links=no
7320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7322$as_echo "$hard_links" >&6; }
7323 if test "$hard_links" = no; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7325$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7326 need_locks=warn
7327 fi
7328else
7329 need_locks=no
7330fi
7331
7332
7333
7334
7335
7336
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7338$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7339
7340 runpath_var=
7341 allow_undefined_flag=
7342 always_export_symbols=no
7343 archive_cmds=
7344 archive_expsym_cmds=
7345 compiler_needs_object=no
7346 enable_shared_with_static_runtimes=no
7347 export_dynamic_flag_spec=
7348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7349 hardcode_automatic=no
7350 hardcode_direct=no
7351 hardcode_direct_absolute=no
7352 hardcode_libdir_flag_spec=
7353 hardcode_libdir_flag_spec_ld=
7354 hardcode_libdir_separator=
7355 hardcode_minus_L=no
7356 hardcode_shlibpath_var=unsupported
7357 inherit_rpath=no
7358 link_all_deplibs=unknown
7359 module_cmds=
7360 module_expsym_cmds=
7361 old_archive_from_new_cmds=
7362 old_archive_from_expsyms_cmds=
7363 thread_safe_flag_spec=
7364 whole_archive_flag_spec=
7365 # include_expsyms should be a list of space-separated symbols to be *always*
7366 # included in the symbol list
7367 include_expsyms=
7368 # exclude_expsyms can be an extended regexp of symbols to exclude
7369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7371 # as well as any symbol that contains `d'.
7372 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7374 # platforms (ab)use it in PIC code, but their linkers get confused if
7375 # the symbol is explicitly referenced. Since portable code cannot
7376 # rely on this symbol name, it's probably fine to never include it in
7377 # preloaded symbol tables.
7378 # Exclude shared library initialization/finalization symbols.
7379 extract_expsyms_cmds=
7380
7381 case $host_os in
7382 cygwin* | mingw* | pw32* | cegcc*)
7383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7384 # When not using gcc, we currently assume that we are using
7385 # Microsoft Visual C++.
7386 if test "$GCC" != yes; then
7387 with_gnu_ld=no
7388 fi
7389 ;;
7390 interix*)
7391 # we just hope/assume this is gcc and not c89 (= MSVC++)
7392 with_gnu_ld=yes
7393 ;;
7394 openbsd*)
7395 with_gnu_ld=no
7396 ;;
7397 linux* | k*bsd*-gnu)
7398 link_all_deplibs=no
7399 ;;
7400 esac
7401
7402 ld_shlibs=yes
7403 if test "$with_gnu_ld" = yes; then
7404 # If archive_cmds runs LD, not CC, wlarc should be empty
7405 wlarc='${wl}'
7406
7407 # Set some defaults for GNU ld with shared library support. These
7408 # are reset later if shared libraries are not supported. Putting them
7409 # here allows them to be overridden if necessary.
7410 runpath_var=LD_RUN_PATH
7411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7412 export_dynamic_flag_spec='${wl}--export-dynamic'
7413 # ancient GNU ld didn't support --whole-archive et. al.
7414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7415 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7416 else
7417 whole_archive_flag_spec=
7418 fi
7419 supports_anon_versioning=no
7420 case `$LD -v 2>&1` in
7421 *GNU\ gold*) supports_anon_versioning=yes ;;
7422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7425 *\ 2.11.*) ;; # other 2.11 versions
7426 *) supports_anon_versioning=yes ;;
7427 esac
7428
7429 # See if GNU ld supports shared libraries.
7430 case $host_os in
7431 aix[3-9]*)
7432 # On AIX/PPC, the GNU linker is very broken
7433 if test "$host_cpu" != ia64; then
7434 ld_shlibs=no
7435 cat <<_LT_EOF 1>&2
7436
7437*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7438*** to be unable to reliably create shared libraries on AIX.
7439*** Therefore, libtool is disabling shared libraries support. If you
7440*** really care for shared libraries, you may want to modify your PATH
7441*** so that a non-GNU linker is found, and then restart.
7442
7443_LT_EOF
7444 fi
7445 ;;
7446
7447 amigaos*)
7448 case $host_cpu in
7449 powerpc)
7450 # see comment about AmigaOS4 .so support
7451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7452 archive_expsym_cmds=''
7453 ;;
7454 m68k)
7455 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)'
7456 hardcode_libdir_flag_spec='-L$libdir'
7457 hardcode_minus_L=yes
7458 ;;
7459 esac
7460 ;;
7461
7462 beos*)
7463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7464 allow_undefined_flag=unsupported
7465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7466 # support --undefined. This deserves some investigation. FIXME
7467 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 else
7469 ld_shlibs=no
7470 fi
7471 ;;
7472
7473 cygwin* | mingw* | pw32* | cegcc*)
7474 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7475 # as there is no search path for DLLs.
7476 hardcode_libdir_flag_spec='-L$libdir'
7477 allow_undefined_flag=unsupported
7478 always_export_symbols=no
7479 enable_shared_with_static_runtimes=yes
7480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7481
7482 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7484 # If the export-symbols file already is a .def file (1st line
7485 # is EXPORTS), use it as is; otherwise, prepend...
7486 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7487 cp $export_symbols $output_objdir/$soname.def;
7488 else
7489 echo EXPORTS > $output_objdir/$soname.def;
7490 cat $export_symbols >> $output_objdir/$soname.def;
7491 fi~
7492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7493 else
7494 ld_shlibs=no
7495 fi
7496 ;;
7497
7498 interix[3-9]*)
7499 hardcode_direct=no
7500 hardcode_shlibpath_var=no
7501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7502 export_dynamic_flag_spec='${wl}-E'
7503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7504 # Instead, shared libraries are loaded at an image base (0x10000000 by
7505 # default) and relocated if they conflict, which is a slow very memory
7506 # consuming and fragmenting process. To avoid this, we pick a random,
7507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7508 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7510 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'
7511 ;;
7512
7513 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7514 tmp_diet=no
7515 if test "$host_os" = linux-dietlibc; then
7516 case $cc_basename in
7517 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7518 esac
7519 fi
7520 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7521 && test "$tmp_diet" = no
7522 then
7523 tmp_addflag=
7524 tmp_sharedflag='-shared'
7525 case $cc_basename,$host_cpu in
7526 pgcc*) # Portland Group C compiler
7527 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'
7528 tmp_addflag=' $pic_flag'
7529 ;;
7530 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7531 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'
7532 tmp_addflag=' $pic_flag -Mnomain' ;;
7533 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7534 tmp_addflag=' -i_dynamic' ;;
7535 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7536 tmp_addflag=' -i_dynamic -nofor_main' ;;
7537 ifc* | ifort*) # Intel Fortran compiler
7538 tmp_addflag=' -nofor_main' ;;
7539 lf95*) # Lahey Fortran 8.1
7540 whole_archive_flag_spec=
7541 tmp_sharedflag='--shared' ;;
7542 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7543 tmp_sharedflag='-qmkshrobj'
7544 tmp_addflag= ;;
7545 esac
7546 case `$CC -V 2>&1 | sed 5q` in
7547 *Sun\ C*) # Sun C 5.9
7548 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'
7549 compiler_needs_object=yes
7550 tmp_sharedflag='-G' ;;
7551 *Sun\ F*) # Sun Fortran 8.3
7552 tmp_sharedflag='-G' ;;
7553 esac
7554 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7555
7556 if test "x$supports_anon_versioning" = xyes; then
7557 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7558 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7559 echo "local: *; };" >> $output_objdir/$libname.ver~
7560 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7561 fi
7562
7563 case $cc_basename in
7564 xlf*)
7565 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7566 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7567 hardcode_libdir_flag_spec=
7568 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7569 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7570 if test "x$supports_anon_versioning" = xyes; then
7571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7573 echo "local: *; };" >> $output_objdir/$libname.ver~
7574 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7575 fi
7576 ;;
7577 esac
7578 else
7579 ld_shlibs=no
7580 fi
7581 ;;
7582
7583 netbsd* | netbsdelf*-gnu)
7584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7585 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7586 wlarc=
7587 else
7588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7590 fi
7591 ;;
7592
7593 solaris*)
7594 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7595 ld_shlibs=no
7596 cat <<_LT_EOF 1>&2
7597
7598*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7599*** create shared libraries on Solaris systems. Therefore, libtool
7600*** is disabling shared libraries support. We urge you to upgrade GNU
7601*** binutils to release 2.9.1 or newer. Another option is to modify
7602*** your PATH or compiler configuration so that the native linker is
7603*** used, and then restart.
7604
7605_LT_EOF
7606 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7609 else
7610 ld_shlibs=no
7611 fi
7612 ;;
7613
7614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7615 case `$LD -v 2>&1` in
7616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7617 ld_shlibs=no
7618 cat <<_LT_EOF 1>&2
7619
7620*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7621*** reliably create shared libraries on SCO systems. Therefore, libtool
7622*** is disabling shared libraries support. We urge you to upgrade GNU
7623*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7624*** your PATH or compiler configuration so that the native linker is
7625*** used, and then restart.
7626
7627_LT_EOF
7628 ;;
7629 *)
7630 # For security reasons, it is highly recommended that you always
7631 # use absolute paths for naming shared libraries, and exclude the
7632 # DT_RUNPATH tag from executables and libraries. But doing so
7633 # requires that you compile everything twice, which is a pain.
7634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7638 else
7639 ld_shlibs=no
7640 fi
7641 ;;
7642 esac
7643 ;;
7644
7645 sunos4*)
7646 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7647 wlarc=
7648 hardcode_direct=yes
7649 hardcode_shlibpath_var=no
7650 ;;
7651
7652 *)
7653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7656 else
7657 ld_shlibs=no
7658 fi
7659 ;;
7660 esac
7661
7662 if test "$ld_shlibs" = no; then
7663 runpath_var=
7664 hardcode_libdir_flag_spec=
7665 export_dynamic_flag_spec=
7666 whole_archive_flag_spec=
7667 fi
7668 else
7669 # PORTME fill in a description of your system's linker (not GNU ld)
7670 case $host_os in
7671 aix3*)
7672 allow_undefined_flag=unsupported
7673 always_export_symbols=yes
7674 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'
7675 # Note: this linker hardcodes the directories in LIBPATH if there
7676 # are no directories specified by -L.
7677 hardcode_minus_L=yes
7678 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7679 # Neither direct hardcoding nor static linking is supported with a
7680 # broken collect2.
7681 hardcode_direct=unsupported
7682 fi
7683 ;;
7684
7685 aix[4-9]*)
7686 if test "$host_cpu" = ia64; then
7687 # On IA64, the linker does run time linking by default, so we don't
7688 # have to do anything special.
7689 aix_use_runtimelinking=no
7690 exp_sym_flag='-Bexport'
7691 no_entry_flag=""
7692 else
7693 # If we're using GNU nm, then we don't want the "-C" option.
7694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7695 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7696 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'
7697 else
7698 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'
7699 fi
7700 aix_use_runtimelinking=no
7701
7702 # Test if we are trying to use run time linking or normal
7703 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7704 # need to do runtime linking.
7705 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7706 for ld_flag in $LDFLAGS; do
7707 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7708 aix_use_runtimelinking=yes
7709 break
7710 fi
7711 done
7712 ;;
7713 esac
7714
7715 exp_sym_flag='-bexport'
7716 no_entry_flag='-bnoentry'
7717 fi
7718
7719 # When large executables or shared objects are built, AIX ld can
7720 # have problems creating the table of contents. If linking a library
7721 # or program results in "error TOC overflow" add -mminimal-toc to
7722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7724
7725 archive_cmds=''
7726 hardcode_direct=yes
7727 hardcode_direct_absolute=yes
7728 hardcode_libdir_separator=':'
7729 link_all_deplibs=yes
7730 file_list_spec='${wl}-f,'
7731
7732 if test "$GCC" = yes; then
7733 case $host_os in aix4.[012]|aix4.[012].*)
7734 # We only want to do this on AIX 4.2 and lower, the check
7735 # below for broken collect2 doesn't work under 4.3+
7736 collect2name=`${CC} -print-prog-name=collect2`
7737 if test -f "$collect2name" &&
7738 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7739 then
7740 # We have reworked collect2
7741 :
7742 else
7743 # We have old collect2
7744 hardcode_direct=unsupported
7745 # It fails to find uninstalled libraries when the uninstalled
7746 # path is not listed in the libpath. Setting hardcode_minus_L
7747 # to unsupported forces relinking
7748 hardcode_minus_L=yes
7749 hardcode_libdir_flag_spec='-L$libdir'
7750 hardcode_libdir_separator=
7751 fi
7752 ;;
7753 esac
7754 shared_flag='-shared'
7755 if test "$aix_use_runtimelinking" = yes; then
7756 shared_flag="$shared_flag "'${wl}-G'
7757 fi
7758 link_all_deplibs=no
7759 else
7760 # not using gcc
7761 if test "$host_cpu" = ia64; then
7762 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7763 # chokes on -Wl,-G. The following line is correct:
7764 shared_flag='-G'
7765 else
7766 if test "$aix_use_runtimelinking" = yes; then
7767 shared_flag='${wl}-G'
7768 else
7769 shared_flag='${wl}-bM:SRE'
7770 fi
7771 fi
7772 fi
7773
7774 export_dynamic_flag_spec='${wl}-bexpall'
7775 # It seems that -bexpall does not export symbols beginning with
7776 # underscore (_), so it is better to generate a list of symbols to export.
7777 always_export_symbols=yes
7778 if test "$aix_use_runtimelinking" = yes; then
7779 # Warning - without using the other runtime loading flags (-brtl),
7780 # -berok will link without error, but may produce a broken library.
7781 allow_undefined_flag='-berok'
7782 # Determine the default libpath from the value encoded in an
7783 # empty executable.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h. */
7786
7787int
7788main ()
7789{
7790
7791 ;
7792 return 0;
7793}
7794_ACEOF
7795if ac_fn_c_try_link "$LINENO"; then :
7796
7797lt_aix_libpath_sed='
7798 /Import File Strings/,/^$/ {
7799 /^0/ {
7800 s/^0 *\(.*\)$/\1/
7801 p
7802 }
7803 }'
7804aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7805# Check for a 64-bit object if we didn't find anything.
7806if test -z "$aix_libpath"; then
7807 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7808fi
7809fi
7810rm -f core conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7813
7814 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7815 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"
7816 else
7817 if test "$host_cpu" = ia64; then
7818 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7819 allow_undefined_flag="-z nodefs"
7820 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"
7821 else
7822 # Determine the default libpath from the value encoded in an
7823 # empty executable.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h. */
7826
7827int
7828main ()
7829{
7830
7831 ;
7832 return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_link "$LINENO"; then :
7836
7837lt_aix_libpath_sed='
7838 /Import File Strings/,/^$/ {
7839 /^0/ {
7840 s/^0 *\(.*\)$/\1/
7841 p
7842 }
7843 }'
7844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7845# Check for a 64-bit object if we didn't find anything.
7846if test -z "$aix_libpath"; then
7847 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7848fi
7849fi
7850rm -f core conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7853
7854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7855 # Warning - without using the other run time loading flags,
7856 # -berok will link without error, but may produce a broken library.
7857 no_undefined_flag=' ${wl}-bernotok'
7858 allow_undefined_flag=' ${wl}-berok'
7859 # Exported symbols can be pulled into shared objects from archives
7860 whole_archive_flag_spec='$convenience'
7861 archive_cmds_need_lc=yes
7862 # This is similar to how AIX traditionally builds its shared libraries.
7863 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'
7864 fi
7865 fi
7866 ;;
7867
7868 amigaos*)
7869 case $host_cpu in
7870 powerpc)
7871 # see comment about AmigaOS4 .so support
7872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7873 archive_expsym_cmds=''
7874 ;;
7875 m68k)
7876 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)'
7877 hardcode_libdir_flag_spec='-L$libdir'
7878 hardcode_minus_L=yes
7879 ;;
7880 esac
7881 ;;
7882
7883 bsdi[45]*)
7884 export_dynamic_flag_spec=-rdynamic
7885 ;;
7886
7887 cygwin* | mingw* | pw32* | cegcc*)
7888 # When not using gcc, we currently assume that we are using
7889 # Microsoft Visual C++.
7890 # hardcode_libdir_flag_spec is actually meaningless, as there is
7891 # no search path for DLLs.
7892 hardcode_libdir_flag_spec=' '
7893 allow_undefined_flag=unsupported
7894 # Tell ltmain to make .lib files, not .a files.
7895 libext=lib
7896 # Tell ltmain to make .dll files, not .so files.
7897 shrext_cmds=".dll"
7898 # FIXME: Setting linknames here is a bad hack.
7899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7900 # The linker will automatically build a .lib file if we build a DLL.
7901 old_archive_from_new_cmds='true'
7902 # FIXME: Should let the user specify the lib program.
7903 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7904 fix_srcfile_path='`cygpath -w "$srcfile"`'
7905 enable_shared_with_static_runtimes=yes
7906 ;;
7907
7908 darwin* | rhapsody*)
7909
7910
7911 archive_cmds_need_lc=no
7912 hardcode_direct=no
7913 hardcode_automatic=yes
7914 hardcode_shlibpath_var=unsupported
7915 whole_archive_flag_spec=''
7916 link_all_deplibs=yes
7917 allow_undefined_flag="$_lt_dar_allow_undefined"
7918 case $cc_basename in
7919 ifort*) _lt_dar_can_shared=yes ;;
7920 *) _lt_dar_can_shared=$GCC ;;
7921 esac
7922 if test "$_lt_dar_can_shared" = "yes"; then
7923 output_verbose_link_cmd=echo
7924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7926 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}"
7927 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}"
7928
7929 else
7930 ld_shlibs=no
7931 fi
7932
7933 ;;
7934
7935 dgux*)
7936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937 hardcode_libdir_flag_spec='-L$libdir'
7938 hardcode_shlibpath_var=no
7939 ;;
7940
7941 freebsd1*)
7942 ld_shlibs=no
7943 ;;
7944
7945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7946 # support. Future versions do this automatically, but an explicit c++rt0.o
7947 # does not break anything, and helps significantly (at the cost of a little
7948 # extra space).
7949 freebsd2.2*)
7950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7951 hardcode_libdir_flag_spec='-R$libdir'
7952 hardcode_direct=yes
7953 hardcode_shlibpath_var=no
7954 ;;
7955
7956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7957 freebsd2*)
7958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_direct=yes
7960 hardcode_minus_L=yes
7961 hardcode_shlibpath_var=no
7962 ;;
7963
7964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7965 freebsd* | dragonfly*)
7966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7967 hardcode_libdir_flag_spec='-R$libdir'
7968 hardcode_direct=yes
7969 hardcode_shlibpath_var=no
7970 ;;
7971
7972 hpux9*)
7973 if test "$GCC" = yes; then
7974 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'
7975 else
7976 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'
7977 fi
7978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7979 hardcode_libdir_separator=:
7980 hardcode_direct=yes
7981
7982 # hardcode_minus_L: Not really in the search PATH,
7983 # but as the default location of the library.
7984 hardcode_minus_L=yes
7985 export_dynamic_flag_spec='${wl}-E'
7986 ;;
7987
7988 hpux10*)
7989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7991 else
7992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7993 fi
7994 if test "$with_gnu_ld" = no; then
7995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7996 hardcode_libdir_flag_spec_ld='+b $libdir'
7997 hardcode_libdir_separator=:
7998 hardcode_direct=yes
7999 hardcode_direct_absolute=yes
8000 export_dynamic_flag_spec='${wl}-E'
8001 # hardcode_minus_L: Not really in the search PATH,
8002 # but as the default location of the library.
8003 hardcode_minus_L=yes
8004 fi
8005 ;;
8006
8007 hpux11*)
8008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8009 case $host_cpu in
8010 hppa*64*)
8011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8012 ;;
8013 ia64*)
8014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8015 ;;
8016 *)
8017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8018 ;;
8019 esac
8020 else
8021 case $host_cpu in
8022 hppa*64*)
8023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8024 ;;
8025 ia64*)
8026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8027 ;;
8028 *)
8029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8030 ;;
8031 esac
8032 fi
8033 if test "$with_gnu_ld" = no; then
8034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8035 hardcode_libdir_separator=:
8036
8037 case $host_cpu in
8038 hppa*64*|ia64*)
8039 hardcode_direct=no
8040 hardcode_shlibpath_var=no
8041 ;;
8042 *)
8043 hardcode_direct=yes
8044 hardcode_direct_absolute=yes
8045 export_dynamic_flag_spec='${wl}-E'
8046
8047 # hardcode_minus_L: Not really in the search PATH,
8048 # but as the default location of the library.
8049 hardcode_minus_L=yes
8050 ;;
8051 esac
8052 fi
8053 ;;
8054
8055 irix5* | irix6* | nonstopux*)
8056 if test "$GCC" = yes; then
8057 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'
8058 # Try to use the -exported_symbol ld option, if it does not
8059 # work, assume that -exports_file does not work either and
8060 # implicitly export all symbols.
8061 save_LDFLAGS="$LDFLAGS"
8062 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h. */
8065int foo(void) {}
8066_ACEOF
8067if ac_fn_c_try_link "$LINENO"; then :
8068 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'
8069
8070fi
8071rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 LDFLAGS="$save_LDFLAGS"
8074 else
8075 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'
8076 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'
8077 fi
8078 archive_cmds_need_lc='no'
8079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8080 hardcode_libdir_separator=:
8081 inherit_rpath=yes
8082 link_all_deplibs=yes
8083 ;;
8084
8085 netbsd* | netbsdelf*-gnu)
8086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8088 else
8089 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8090 fi
8091 hardcode_libdir_flag_spec='-R$libdir'
8092 hardcode_direct=yes
8093 hardcode_shlibpath_var=no
8094 ;;
8095
8096 newsos6)
8097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8098 hardcode_direct=yes
8099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8100 hardcode_libdir_separator=:
8101 hardcode_shlibpath_var=no
8102 ;;
8103
8104 *nto* | *qnx*)
8105 ;;
8106
8107 openbsd*)
8108 if test -f /usr/libexec/ld.so; then
8109 hardcode_direct=yes
8110 hardcode_shlibpath_var=no
8111 hardcode_direct_absolute=yes
8112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8114 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8116 export_dynamic_flag_spec='${wl}-E'
8117 else
8118 case $host_os in
8119 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8121 hardcode_libdir_flag_spec='-R$libdir'
8122 ;;
8123 *)
8124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8126 ;;
8127 esac
8128 fi
8129 else
8130 ld_shlibs=no
8131 fi
8132 ;;
8133
8134 os2*)
8135 hardcode_libdir_flag_spec='-L$libdir'
8136 hardcode_minus_L=yes
8137 allow_undefined_flag=unsupported
8138 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'
8139 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8140 ;;
8141
8142 osf3*)
8143 if test "$GCC" = yes; then
8144 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8145 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'
8146 else
8147 allow_undefined_flag=' -expect_unresolved \*'
8148 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'
8149 fi
8150 archive_cmds_need_lc='no'
8151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8152 hardcode_libdir_separator=:
8153 ;;
8154
8155 osf4* | osf5*) # as osf3* with the addition of -msym flag
8156 if test "$GCC" = yes; then
8157 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8158 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'
8159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8160 else
8161 allow_undefined_flag=' -expect_unresolved \*'
8162 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'
8163 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~
8164 $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'
8165
8166 # Both c and cxx compiler support -rpath directly
8167 hardcode_libdir_flag_spec='-rpath $libdir'
8168 fi
8169 archive_cmds_need_lc='no'
8170 hardcode_libdir_separator=:
8171 ;;
8172
8173 solaris*)
8174 no_undefined_flag=' -z defs'
8175 if test "$GCC" = yes; then
8176 wlarc='${wl}'
8177 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8179 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8180 else
8181 case `$CC -V 2>&1` in
8182 *"Compilers 5.0"*)
8183 wlarc=''
8184 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8186 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8187 ;;
8188 *)
8189 wlarc='${wl}'
8190 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8191 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8192 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8193 ;;
8194 esac
8195 fi
8196 hardcode_libdir_flag_spec='-R$libdir'
8197 hardcode_shlibpath_var=no
8198 case $host_os in
8199 solaris2.[0-5] | solaris2.[0-5].*) ;;
8200 *)
8201 # The compiler driver will combine and reorder linker options,
8202 # but understands `-z linker_flag'. GCC discards it without `$wl',
8203 # but is careful enough not to reorder.
8204 # Supported since Solaris 2.6 (maybe 2.5.1?)
8205 if test "$GCC" = yes; then
8206 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8207 else
8208 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8209 fi
8210 ;;
8211 esac
8212 link_all_deplibs=yes
8213 ;;
8214
8215 sunos4*)
8216 if test "x$host_vendor" = xsequent; then
8217 # Use $CC to link under sequent, because it throws in some extra .o
8218 # files that make .init and .fini sections work.
8219 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8220 else
8221 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8222 fi
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 hardcode_direct=yes
8225 hardcode_minus_L=yes
8226 hardcode_shlibpath_var=no
8227 ;;
8228
8229 sysv4)
8230 case $host_vendor in
8231 sni)
8232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_direct=yes # is this really true???
8234 ;;
8235 siemens)
8236 ## LD is ld it makes a PLAMLIB
8237 ## CC just makes a GrossModule.
8238 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8239 reload_cmds='$CC -r -o $output$reload_objs'
8240 hardcode_direct=no
8241 ;;
8242 motorola)
8243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8245 ;;
8246 esac
8247 runpath_var='LD_RUN_PATH'
8248 hardcode_shlibpath_var=no
8249 ;;
8250
8251 sysv4.3*)
8252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8253 hardcode_shlibpath_var=no
8254 export_dynamic_flag_spec='-Bexport'
8255 ;;
8256
8257 sysv4*MP*)
8258 if test -d /usr/nec; then
8259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8260 hardcode_shlibpath_var=no
8261 runpath_var=LD_RUN_PATH
8262 hardcode_runpath_var=yes
8263 ld_shlibs=yes
8264 fi
8265 ;;
8266
8267 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8268 no_undefined_flag='${wl}-z,text'
8269 archive_cmds_need_lc=no
8270 hardcode_shlibpath_var=no
8271 runpath_var='LD_RUN_PATH'
8272
8273 if test "$GCC" = yes; then
8274 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 else
8277 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 fi
8280 ;;
8281
8282 sysv5* | sco3.2v5* | sco5v6*)
8283 # Note: We can NOT use -z defs as we might desire, because we do not
8284 # link with -lc, and that would cause any symbols used from libc to
8285 # always be unresolved, which means just about no library would
8286 # ever link correctly. If we're not using GNU ld we use -z text
8287 # though, which does catch some bad symbols but isn't as heavy-handed
8288 # as -z defs.
8289 no_undefined_flag='${wl}-z,text'
8290 allow_undefined_flag='${wl}-z,nodefs'
8291 archive_cmds_need_lc=no
8292 hardcode_shlibpath_var=no
8293 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8294 hardcode_libdir_separator=':'
8295 link_all_deplibs=yes
8296 export_dynamic_flag_spec='${wl}-Bexport'
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 uts4*)
8309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310 hardcode_libdir_flag_spec='-L$libdir'
8311 hardcode_shlibpath_var=no
8312 ;;
8313
8314 *)
8315 ld_shlibs=no
8316 ;;
8317 esac
8318
8319 if test x$host_vendor = xsni; then
8320 case $host in
8321 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8322 export_dynamic_flag_spec='${wl}-Blargedynsym'
8323 ;;
8324 esac
8325 fi
8326 fi
8327
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8329$as_echo "$ld_shlibs" >&6; }
8330test "$ld_shlibs" = no && can_build_shared=no
8331
8332with_gnu_ld=$with_gnu_ld
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348#
8349# Do we need to explicitly link libc?
8350#
8351case "x$archive_cmds_need_lc" in
8352x|xyes)
8353 # Assume -lc should be added
8354 archive_cmds_need_lc=yes
8355
8356 if test "$enable_shared" = yes && test "$GCC" = yes; then
8357 case $archive_cmds in
8358 *'~'*)
8359 # FIXME: we may have to deal with multi-command sequences.
8360 ;;
8361 '$CC '*)
8362 # Test whether the compiler implicitly links with -lc since on some
8363 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8364 # to ld, don't add -lc before -lgcc.
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8366$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8367 $RM conftest*
8368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8369
8370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8371 (eval $ac_compile) 2>&5
8372 ac_status=$?
8373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8374 test $ac_status = 0; } 2>conftest.err; then
8375 soname=conftest
8376 lib=conftest
8377 libobjs=conftest.$ac_objext
8378 deplibs=
8379 wl=$lt_prog_compiler_wl
8380 pic_flag=$lt_prog_compiler_pic
8381 compiler_flags=-v
8382 linker_flags=-v
8383 verstring=
8384 output_objdir=.
8385 libname=conftest
8386 lt_save_allow_undefined_flag=$allow_undefined_flag
8387 allow_undefined_flag=
8388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8389 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8390 ac_status=$?
8391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8392 test $ac_status = 0; }
8393 then
8394 archive_cmds_need_lc=no
8395 else
8396 archive_cmds_need_lc=yes
8397 fi
8398 allow_undefined_flag=$lt_save_allow_undefined_flag
8399 else
8400 cat conftest.err 1>&5
8401 fi
8402 $RM conftest*
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8404$as_echo "$archive_cmds_need_lc" >&6; }
8405 ;;
8406 esac
8407 fi
8408 ;;
8409esac
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8568$as_echo_n "checking dynamic linker characteristics... " >&6; }
8569
8570if test "$GCC" = yes; then
8571 case $host_os in
8572 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8573 *) lt_awk_arg="/^libraries:/" ;;
8574 esac
8575 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8577 # if the path contains ";" then we assume it to be the separator
8578 # otherwise default to the standard path separator (i.e. ":") - it is
8579 # assumed that no part of a normal pathname contains ";" but that should
8580 # okay in the real world where ";" in dirpaths is itself problematic.
8581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8582 else
8583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8584 fi
8585 # Ok, now we have the path, separated by spaces, we can step through it
8586 # and add multilib dir if necessary.
8587 lt_tmp_lt_search_path_spec=
8588 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8589 for lt_sys_path in $lt_search_path_spec; do
8590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8592 else
8593 test -d "$lt_sys_path" && \
8594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8595 fi
8596 done
8597 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8598BEGIN {RS=" "; FS="/|\n";} {
8599 lt_foo="";
8600 lt_count=0;
8601 for (lt_i = NF; lt_i > 0; lt_i--) {
8602 if ($lt_i != "" && $lt_i != ".") {
8603 if ($lt_i == "..") {
8604 lt_count++;
8605 } else {
8606 if (lt_count == 0) {
8607 lt_foo="/" $lt_i lt_foo;
8608 } else {
8609 lt_count--;
8610 }
8611 }
8612 }
8613 }
8614 if (lt_foo != "") { lt_freq[lt_foo]++; }
8615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8616}'`
8617 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8618else
8619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8620fi
8621library_names_spec=
8622libname_spec='lib$name'
8623soname_spec=
8624shrext_cmds=".so"
8625postinstall_cmds=
8626postuninstall_cmds=
8627finish_cmds=
8628finish_eval=
8629shlibpath_var=
8630shlibpath_overrides_runpath=unknown
8631version_type=none
8632dynamic_linker="$host_os ld.so"
8633sys_lib_dlsearch_path_spec="/lib /usr/lib"
8634need_lib_prefix=unknown
8635hardcode_into_libs=no
8636
8637# when you set need_version to no, make sure it does not cause -set_version
8638# flags to be left without arguments
8639need_version=unknown
8640
8641case $host_os in
8642aix3*)
8643 version_type=linux
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8645 shlibpath_var=LIBPATH
8646
8647 # AIX 3 has no versioning support, so we append a major version to the name.
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 ;;
8650
8651aix[4-9]*)
8652 version_type=linux
8653 need_lib_prefix=no
8654 need_version=no
8655 hardcode_into_libs=yes
8656 if test "$host_cpu" = ia64; then
8657 # AIX 5 supports IA64
8658 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8659 shlibpath_var=LD_LIBRARY_PATH
8660 else
8661 # With GCC up to 2.95.x, collect2 would create an import file
8662 # for dependence libraries. The import file would start with
8663 # the line `#! .'. This would cause the generated library to
8664 # depend on `.', always an invalid library. This was fixed in
8665 # development snapshots of GCC prior to 3.0.
8666 case $host_os in
8667 aix4 | aix4.[01] | aix4.[01].*)
8668 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8669 echo ' yes '
8670 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8671 :
8672 else
8673 can_build_shared=no
8674 fi
8675 ;;
8676 esac
8677 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8678 # soname into executable. Probably we can add versioning support to
8679 # collect2, so additional links can be useful in future.
8680 if test "$aix_use_runtimelinking" = yes; then
8681 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8682 # instead of lib<name>.a to let people know that these are not
8683 # typical AIX shared libraries.
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 else
8686 # We preserve .a as extension for shared libraries through AIX4.2
8687 # and later when we are not doing run time linking.
8688 library_names_spec='${libname}${release}.a $libname.a'
8689 soname_spec='${libname}${release}${shared_ext}$major'
8690 fi
8691 shlibpath_var=LIBPATH
8692 fi
8693 ;;
8694
8695amigaos*)
8696 case $host_cpu in
8697 powerpc)
8698 # Since July 2007 AmigaOS4 officially supports .so libraries.
8699 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 ;;
8702 m68k)
8703 library_names_spec='$libname.ixlibrary $libname.a'
8704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8705 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'
8706 ;;
8707 esac
8708 ;;
8709
8710beos*)
8711 library_names_spec='${libname}${shared_ext}'
8712 dynamic_linker="$host_os ld.so"
8713 shlibpath_var=LIBRARY_PATH
8714 ;;
8715
8716bsdi[45]*)
8717 version_type=linux
8718 need_version=no
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720 soname_spec='${libname}${release}${shared_ext}$major'
8721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8722 shlibpath_var=LD_LIBRARY_PATH
8723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8725 # the default ld.so.conf also contains /usr/contrib/lib and
8726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8727 # libtool to hard-code these into programs
8728 ;;
8729
8730cygwin* | mingw* | pw32* | cegcc*)
8731 version_type=windows
8732 shrext_cmds=".dll"
8733 need_version=no
8734 need_lib_prefix=no
8735
8736 case $GCC,$host_os in
8737 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8738 library_names_spec='$libname.dll.a'
8739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8740 postinstall_cmds='base_file=`basename \${file}`~
8741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8742 dldir=$destdir/`dirname \$dlpath`~
8743 test -d \$dldir || mkdir -p \$dldir~
8744 $install_prog $dir/$dlname \$dldir/$dlname~
8745 chmod a+x \$dldir/$dlname~
8746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8748 fi'
8749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8750 dlpath=$dir/\$dldll~
8751 $RM \$dlpath'
8752 shlibpath_overrides_runpath=yes
8753
8754 case $host_os in
8755 cygwin*)
8756 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8757 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8758 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8759 ;;
8760 mingw* | cegcc*)
8761 # MinGW DLLs use traditional 'lib' prefix
8762 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8763 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8764 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8765 # It is most probably a Windows format PATH printed by
8766 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8767 # path with ; separators, and with drive letters. We can handle the
8768 # drive letters (cygwin fileutils understands them), so leave them,
8769 # especially as we might pass files found there to a mingw objdump,
8770 # which wouldn't understand a cygwinified path. Ahh.
8771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8772 else
8773 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8774 fi
8775 ;;
8776 pw32*)
8777 # pw32 DLLs use 'pw' prefix rather than 'lib'
8778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8779 ;;
8780 esac
8781 ;;
8782
8783 *)
8784 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8785 ;;
8786 esac
8787 dynamic_linker='Win32 ld.exe'
8788 # FIXME: first we should search . and the directory the executable is in
8789 shlibpath_var=PATH
8790 ;;
8791
8792darwin* | rhapsody*)
8793 dynamic_linker="$host_os dyld"
8794 version_type=darwin
8795 need_lib_prefix=no
8796 need_version=no
8797 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8798 soname_spec='${libname}${release}${major}$shared_ext'
8799 shlibpath_overrides_runpath=yes
8800 shlibpath_var=DYLD_LIBRARY_PATH
8801 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8802
8803 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8805 ;;
8806
8807dgux*)
8808 version_type=linux
8809 need_lib_prefix=no
8810 need_version=no
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 ;;
8815
8816freebsd1*)
8817 dynamic_linker=no
8818 ;;
8819
8820freebsd* | dragonfly*)
8821 # DragonFly does not have aout. When/if they implement a new
8822 # versioning mechanism, adjust this.
8823 if test -x /usr/bin/objformat; then
8824 objformat=`/usr/bin/objformat`
8825 else
8826 case $host_os in
8827 freebsd[123]*) objformat=aout ;;
8828 *) objformat=elf ;;
8829 esac
8830 fi
8831 version_type=freebsd-$objformat
8832 case $version_type in
8833 freebsd-elf*)
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8835 need_version=no
8836 need_lib_prefix=no
8837 ;;
8838 freebsd-*)
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8840 need_version=yes
8841 ;;
8842 esac
8843 shlibpath_var=LD_LIBRARY_PATH
8844 case $host_os in
8845 freebsd2*)
8846 shlibpath_overrides_runpath=yes
8847 ;;
8848 freebsd3.[01]* | freebsdelf3.[01]*)
8849 shlibpath_overrides_runpath=yes
8850 hardcode_into_libs=yes
8851 ;;
8852 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8853 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8854 shlibpath_overrides_runpath=no
8855 hardcode_into_libs=yes
8856 ;;
8857 *) # from 4.6 on, and DragonFly
8858 shlibpath_overrides_runpath=yes
8859 hardcode_into_libs=yes
8860 ;;
8861 esac
8862 ;;
8863
8864gnu*)
8865 version_type=linux
8866 need_lib_prefix=no
8867 need_version=no
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 shlibpath_var=LD_LIBRARY_PATH
8871 hardcode_into_libs=yes
8872 ;;
8873
8874hpux9* | hpux10* | hpux11*)
8875 # Give a soname corresponding to the major version so that dld.sl refuses to
8876 # link against other versions.
8877 version_type=sunos
8878 need_lib_prefix=no
8879 need_version=no
8880 case $host_cpu in
8881 ia64*)
8882 shrext_cmds='.so'
8883 hardcode_into_libs=yes
8884 dynamic_linker="$host_os dld.so"
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 if test "X$HPUX_IA64_MODE" = X32; then
8890 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8891 else
8892 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8893 fi
8894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8895 ;;
8896 hppa*64*)
8897 shrext_cmds='.sl'
8898 hardcode_into_libs=yes
8899 dynamic_linker="$host_os dld.sl"
8900 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8906 ;;
8907 *)
8908 shrext_cmds='.sl'
8909 dynamic_linker="$host_os dld.sl"
8910 shlibpath_var=SHLIB_PATH
8911 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 ;;
8915 esac
8916 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8917 postinstall_cmds='chmod 555 $lib'
8918 ;;
8919
8920interix[3-9]*)
8921 version_type=linux
8922 need_lib_prefix=no
8923 need_version=no
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8927 shlibpath_var=LD_LIBRARY_PATH
8928 shlibpath_overrides_runpath=no
8929 hardcode_into_libs=yes
8930 ;;
8931
8932irix5* | irix6* | nonstopux*)
8933 case $host_os in
8934 nonstopux*) version_type=nonstopux ;;
8935 *)
8936 if test "$lt_cv_prog_gnu_ld" = yes; then
8937 version_type=linux
8938 else
8939 version_type=irix
8940 fi ;;
8941 esac
8942 need_lib_prefix=no
8943 need_version=no
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8946 case $host_os in
8947 irix5* | nonstopux*)
8948 libsuff= shlibsuff=
8949 ;;
8950 *)
8951 case $LD in # libtool.m4 will add one of these switches to LD
8952 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8953 libsuff= shlibsuff= libmagic=32-bit;;
8954 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8955 libsuff=32 shlibsuff=N32 libmagic=N32;;
8956 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8957 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8958 *) libsuff= shlibsuff= libmagic=never-match;;
8959 esac
8960 ;;
8961 esac
8962 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8963 shlibpath_overrides_runpath=no
8964 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8965 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8966 hardcode_into_libs=yes
8967 ;;
8968
8969# No shared lib support for Linux oldld, aout, or coff.
8970linux*oldld* | linux*aout* | linux*coff*)
8971 dynamic_linker=no
8972 ;;
8973
8974# This must be Linux ELF.
8975linux* | k*bsd*-gnu | kopensolaris*-gnu)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=no
8984 # Some binutils ld are patched to set DT_RUNPATH
8985 save_LDFLAGS=$LDFLAGS
8986 save_libdir=$libdir
8987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990/* end confdefs.h. */
8991
8992int
8993main ()
8994{
8995
8996 ;
8997 return 0;
8998}
8999_ACEOF
9000if ac_fn_c_try_link "$LINENO"; then :
9001 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9002 shlibpath_overrides_runpath=yes
9003fi
9004fi
9005rm -f core conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007 LDFLAGS=$save_LDFLAGS
9008 libdir=$save_libdir
9009
9010 # This implies no fast_install, which is unacceptable.
9011 # Some rework will be needed to allow for fast_install
9012 # before this can be enabled.
9013 hardcode_into_libs=yes
9014
9015 # Append ld.so.conf contents to the search path
9016 if test -f /etc/ld.so.conf; then
9017 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' ' '`
9018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9019 fi
9020
9021 # We used to test for /lib/ld.so.1 and disable shared libraries on
9022 # powerpc, because MkLinux only supported shared libraries with the
9023 # GNU dynamic linker. Since this was broken with cross compilers,
9024 # most powerpc-linux boxes support dynamic linking these days and
9025 # people can always --disable-shared, the test was removed, and we
9026 # assume the GNU/Linux dynamic linker is in use.
9027 dynamic_linker='GNU/Linux ld.so'
9028 ;;
9029
9030netbsdelf*-gnu)
9031 version_type=linux
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=no
9038 hardcode_into_libs=yes
9039 dynamic_linker='NetBSD ld.elf_so'
9040 ;;
9041
9042netbsd*)
9043 version_type=sunos
9044 need_lib_prefix=no
9045 need_version=no
9046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049 dynamic_linker='NetBSD (a.out) ld.so'
9050 else
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 dynamic_linker='NetBSD ld.elf_so'
9054 fi
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 hardcode_into_libs=yes
9058 ;;
9059
9060newsos6)
9061 version_type=linux
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 ;;
9066
9067*nto* | *qnx*)
9068 version_type=qnx
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=no
9075 hardcode_into_libs=yes
9076 dynamic_linker='ldqnx.so'
9077 ;;
9078
9079openbsd*)
9080 version_type=sunos
9081 sys_lib_dlsearch_path_spec="/usr/lib"
9082 need_lib_prefix=no
9083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9084 case $host_os in
9085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9086 *) need_version=no ;;
9087 esac
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9092 case $host_os in
9093 openbsd2.[89] | openbsd2.[89].*)
9094 shlibpath_overrides_runpath=no
9095 ;;
9096 *)
9097 shlibpath_overrides_runpath=yes
9098 ;;
9099 esac
9100 else
9101 shlibpath_overrides_runpath=yes
9102 fi
9103 ;;
9104
9105os2*)
9106 libname_spec='$name'
9107 shrext_cmds=".dll"
9108 need_lib_prefix=no
9109 library_names_spec='$libname${shared_ext} $libname.a'
9110 dynamic_linker='OS/2 ld.exe'
9111 shlibpath_var=LIBPATH
9112 ;;
9113
9114osf3* | osf4* | osf5*)
9115 version_type=osf
9116 need_lib_prefix=no
9117 need_version=no
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9123 ;;
9124
9125rdos*)
9126 dynamic_linker=no
9127 ;;
9128
9129solaris*)
9130 version_type=linux
9131 need_lib_prefix=no
9132 need_version=no
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes
9137 hardcode_into_libs=yes
9138 # ldd complains unless libraries are executable
9139 postinstall_cmds='chmod +x $lib'
9140 ;;
9141
9142sunos4*)
9143 version_type=sunos
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=yes
9148 if test "$with_gnu_ld" = yes; then
9149 need_lib_prefix=no
9150 fi
9151 need_version=yes
9152 ;;
9153
9154sysv4 | sysv4.3*)
9155 version_type=linux
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 case $host_vendor in
9160 sni)
9161 shlibpath_overrides_runpath=no
9162 need_lib_prefix=no
9163 runpath_var=LD_RUN_PATH
9164 ;;
9165 siemens)
9166 need_lib_prefix=no
9167 ;;
9168 motorola)
9169 need_lib_prefix=no
9170 need_version=no
9171 shlibpath_overrides_runpath=no
9172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9173 ;;
9174 esac
9175 ;;
9176
9177sysv4*MP*)
9178 if test -d /usr/nec ;then
9179 version_type=linux
9180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9181 soname_spec='$libname${shared_ext}.$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 fi
9184 ;;
9185
9186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9187 version_type=freebsd-elf
9188 need_lib_prefix=no
9189 need_version=no
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=yes
9194 hardcode_into_libs=yes
9195 if test "$with_gnu_ld" = yes; then
9196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9197 else
9198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9199 case $host_os in
9200 sco3.2v5*)
9201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9202 ;;
9203 esac
9204 fi
9205 sys_lib_dlsearch_path_spec='/usr/lib'
9206 ;;
9207
9208tpf*)
9209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9210 version_type=linux
9211 need_lib_prefix=no
9212 need_version=no
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=no
9216 hardcode_into_libs=yes
9217 ;;
9218
9219uts4*)
9220 version_type=linux
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 ;;
9225
9226*)
9227 dynamic_linker=no
9228 ;;
9229esac
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9231$as_echo "$dynamic_linker" >&6; }
9232test "$dynamic_linker" = no && can_build_shared=no
9233
9234variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9235if test "$GCC" = yes; then
9236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9237fi
9238
9239if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9240 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9241fi
9242if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9244fi
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9333$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9334hardcode_action=
9335if test -n "$hardcode_libdir_flag_spec" ||
9336 test -n "$runpath_var" ||
9337 test "X$hardcode_automatic" = "Xyes" ; then
9338
9339 # We can hardcode non-existent directories.
9340 if test "$hardcode_direct" != no &&
9341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9342 # have to relink, otherwise we might link with an installed library
9343 # when we should be linking with a yet-to-be-installed one
9344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9345 test "$hardcode_minus_L" != no; then
9346 # Linking always hardcodes the temporary library directory.
9347 hardcode_action=relink
9348 else
9349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9350 hardcode_action=immediate
9351 fi
9352else
9353 # We cannot hardcode anything, or else we can only hardcode existing
9354 # directories.
9355 hardcode_action=unsupported
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9358$as_echo "$hardcode_action" >&6; }
9359
9360if test "$hardcode_action" = relink ||
9361 test "$inherit_rpath" = yes; then
9362 # Fast installation is not supported
9363 enable_fast_install=no
9364elif test "$shlibpath_overrides_runpath" = yes ||
9365 test "$enable_shared" = no; then
9366 # Fast installation is not necessary
9367 enable_fast_install=needless
9368fi
9369
9370
9371
9372
9373
9374
9375 if test "x$enable_dlopen" != xyes; then
9376 enable_dlopen=unknown
9377 enable_dlopen_self=unknown
9378 enable_dlopen_self_static=unknown
9379else
9380 lt_cv_dlopen=no
9381 lt_cv_dlopen_libs=
9382
9383 case $host_os in
9384 beos*)
9385 lt_cv_dlopen="load_add_on"
9386 lt_cv_dlopen_libs=
9387 lt_cv_dlopen_self=yes
9388 ;;
9389
9390 mingw* | pw32* | cegcc*)
9391 lt_cv_dlopen="LoadLibrary"
9392 lt_cv_dlopen_libs=
9393 ;;
9394
9395 cygwin*)
9396 lt_cv_dlopen="dlopen"
9397 lt_cv_dlopen_libs=
9398 ;;
9399
9400 darwin*)
9401 # if libdl is installed we need to link against it
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9403$as_echo_n "checking for dlopen in -ldl... " >&6; }
9404if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406else
9407 ac_check_lib_save_LIBS=$LIBS
9408LIBS="-ldl $LIBS"
9409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h. */
9411
9412/* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9415#ifdef __cplusplus
9416extern "C"
9417#endif
9418char dlopen ();
9419int
9420main ()
9421{
9422return dlopen ();
9423 ;
9424 return 0;
9425}
9426_ACEOF
9427if ac_fn_c_try_link "$LINENO"; then :
9428 ac_cv_lib_dl_dlopen=yes
9429else
9430 ac_cv_lib_dl_dlopen=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434LIBS=$ac_check_lib_save_LIBS
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9437$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9438if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9440else
9441
9442 lt_cv_dlopen="dyld"
9443 lt_cv_dlopen_libs=
9444 lt_cv_dlopen_self=yes
9445
9446fi
9447
9448 ;;
9449
9450 *)
9451 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9452if test "x$ac_cv_func_shl_load" = x""yes; then :
9453 lt_cv_dlopen="shl_load"
9454else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9456$as_echo_n "checking for shl_load in -ldld... " >&6; }
9457if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9459else
9460 ac_check_lib_save_LIBS=$LIBS
9461LIBS="-ldld $LIBS"
9462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463/* end confdefs.h. */
9464
9465/* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9468#ifdef __cplusplus
9469extern "C"
9470#endif
9471char shl_load ();
9472int
9473main ()
9474{
9475return shl_load ();
9476 ;
9477 return 0;
9478}
9479_ACEOF
9480if ac_fn_c_try_link "$LINENO"; then :
9481 ac_cv_lib_dld_shl_load=yes
9482else
9483 ac_cv_lib_dld_shl_load=no
9484fi
9485rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487LIBS=$ac_check_lib_save_LIBS
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9490$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9491if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9492 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9493else
9494 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9495if test "x$ac_cv_func_dlopen" = x""yes; then :
9496 lt_cv_dlopen="dlopen"
9497else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9499$as_echo_n "checking for dlopen in -ldl... " >&6; }
9500if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9502else
9503 ac_check_lib_save_LIBS=$LIBS
9504LIBS="-ldl $LIBS"
9505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h. */
9507
9508/* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9511#ifdef __cplusplus
9512extern "C"
9513#endif
9514char dlopen ();
9515int
9516main ()
9517{
9518return dlopen ();
9519 ;
9520 return 0;
9521}
9522_ACEOF
9523if ac_fn_c_try_link "$LINENO"; then :
9524 ac_cv_lib_dl_dlopen=yes
9525else
9526 ac_cv_lib_dl_dlopen=no
9527fi
9528rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530LIBS=$ac_check_lib_save_LIBS
9531fi
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9533$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9534if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9536else
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9538$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9539if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9541else
9542 ac_check_lib_save_LIBS=$LIBS
9543LIBS="-lsvld $LIBS"
9544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h. */
9546
9547/* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553char dlopen ();
9554int
9555main ()
9556{
9557return dlopen ();
9558 ;
9559 return 0;
9560}
9561_ACEOF
9562if ac_fn_c_try_link "$LINENO"; then :
9563 ac_cv_lib_svld_dlopen=yes
9564else
9565 ac_cv_lib_svld_dlopen=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569LIBS=$ac_check_lib_save_LIBS
9570fi
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9572$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9573if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9575else
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9577$as_echo_n "checking for dld_link in -ldld... " >&6; }
9578if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580else
9581 ac_check_lib_save_LIBS=$LIBS
9582LIBS="-ldld $LIBS"
9583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584/* end confdefs.h. */
9585
9586/* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589#ifdef __cplusplus
9590extern "C"
9591#endif
9592char dld_link ();
9593int
9594main ()
9595{
9596return dld_link ();
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601if ac_fn_c_try_link "$LINENO"; then :
9602 ac_cv_lib_dld_dld_link=yes
9603else
9604 ac_cv_lib_dld_dld_link=no
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608LIBS=$ac_check_lib_save_LIBS
9609fi
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9611$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9612if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9613 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9614fi
9615
9616
9617fi
9618
9619
9620fi
9621
9622
9623fi
9624
9625
9626fi
9627
9628
9629fi
9630
9631 ;;
9632 esac
9633
9634 if test "x$lt_cv_dlopen" != xno; then
9635 enable_dlopen=yes
9636 else
9637 enable_dlopen=no
9638 fi
9639
9640 case $lt_cv_dlopen in
9641 dlopen)
9642 save_CPPFLAGS="$CPPFLAGS"
9643 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9644
9645 save_LDFLAGS="$LDFLAGS"
9646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9647
9648 save_LIBS="$LIBS"
9649 LIBS="$lt_cv_dlopen_libs $LIBS"
9650
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9652$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9653if test "${lt_cv_dlopen_self+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655else
9656 if test "$cross_compiling" = yes; then :
9657 lt_cv_dlopen_self=cross
9658else
9659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9660 lt_status=$lt_dlunknown
9661 cat > conftest.$ac_ext <<_LT_EOF
e9c9a47c 9662#line 9662 "configure"
9c60689e
DWT
9663#include "confdefs.h"
9664
9665#if HAVE_DLFCN_H
9666#include <dlfcn.h>
9667#endif
9668
9669#include <stdio.h>
9670
9671#ifdef RTLD_GLOBAL
9672# define LT_DLGLOBAL RTLD_GLOBAL
9673#else
9674# ifdef DL_GLOBAL
9675# define LT_DLGLOBAL DL_GLOBAL
9676# else
9677# define LT_DLGLOBAL 0
9678# endif
9679#endif
9680
9681/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9682 find out it does not work in some platform. */
9683#ifndef LT_DLLAZY_OR_NOW
9684# ifdef RTLD_LAZY
9685# define LT_DLLAZY_OR_NOW RTLD_LAZY
9686# else
9687# ifdef DL_LAZY
9688# define LT_DLLAZY_OR_NOW DL_LAZY
9689# else
9690# ifdef RTLD_NOW
9691# define LT_DLLAZY_OR_NOW RTLD_NOW
9692# else
9693# ifdef DL_NOW
9694# define LT_DLLAZY_OR_NOW DL_NOW
9695# else
9696# define LT_DLLAZY_OR_NOW 0
9697# endif
9698# endif
9699# endif
9700# endif
9701#endif
9702
9703void fnord() { int i=42;}
9704int main ()
9705{
9706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9707 int status = $lt_dlunknown;
9708
9709 if (self)
9710 {
9711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9713 /* dlclose (self); */
9714 }
9715 else
9716 puts (dlerror ());
9717
9718 return status;
9719}
9720_LT_EOF
9721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9722 (eval $ac_link) 2>&5
9723 ac_status=$?
9724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9725 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9726 (./conftest; exit; ) >&5 2>/dev/null
9727 lt_status=$?
9728 case x$lt_status in
9729 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9730 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9731 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9732 esac
9733 else :
9734 # compilation failed
9735 lt_cv_dlopen_self=no
9736 fi
9737fi
9738rm -fr conftest*
9739
9740
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9743$as_echo "$lt_cv_dlopen_self" >&6; }
9744
9745 if test "x$lt_cv_dlopen_self" = xyes; then
9746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9748$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9749if test "${lt_cv_dlopen_self_static+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751else
9752 if test "$cross_compiling" = yes; then :
9753 lt_cv_dlopen_self_static=cross
9754else
9755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9756 lt_status=$lt_dlunknown
9757 cat > conftest.$ac_ext <<_LT_EOF
e9c9a47c 9758#line 9758 "configure"
9c60689e
DWT
9759#include "confdefs.h"
9760
9761#if HAVE_DLFCN_H
9762#include <dlfcn.h>
9763#endif
9764
9765#include <stdio.h>
9766
9767#ifdef RTLD_GLOBAL
9768# define LT_DLGLOBAL RTLD_GLOBAL
9769#else
9770# ifdef DL_GLOBAL
9771# define LT_DLGLOBAL DL_GLOBAL
9772# else
9773# define LT_DLGLOBAL 0
9774# endif
9775#endif
9776
9777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9778 find out it does not work in some platform. */
9779#ifndef LT_DLLAZY_OR_NOW
9780# ifdef RTLD_LAZY
9781# define LT_DLLAZY_OR_NOW RTLD_LAZY
9782# else
9783# ifdef DL_LAZY
9784# define LT_DLLAZY_OR_NOW DL_LAZY
9785# else
9786# ifdef RTLD_NOW
9787# define LT_DLLAZY_OR_NOW RTLD_NOW
9788# else
9789# ifdef DL_NOW
9790# define LT_DLLAZY_OR_NOW DL_NOW
9791# else
9792# define LT_DLLAZY_OR_NOW 0
9793# endif
9794# endif
9795# endif
9796# endif
9797#endif
9798
9799void fnord() { int i=42;}
9800int main ()
9801{
9802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9803 int status = $lt_dlunknown;
9804
9805 if (self)
9806 {
9807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9809 /* dlclose (self); */
9810 }
9811 else
9812 puts (dlerror ());
9813
9814 return status;
9815}
9816_LT_EOF
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9818 (eval $ac_link) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9822 (./conftest; exit; ) >&5 2>/dev/null
9823 lt_status=$?
9824 case x$lt_status in
9825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9827 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9828 esac
9829 else :
9830 # compilation failed
9831 lt_cv_dlopen_self_static=no
9832 fi
9833fi
9834rm -fr conftest*
9835
9836
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9839$as_echo "$lt_cv_dlopen_self_static" >&6; }
9840 fi
9841
9842 CPPFLAGS="$save_CPPFLAGS"
9843 LDFLAGS="$save_LDFLAGS"
9844 LIBS="$save_LIBS"
9845 ;;
9846 esac
9847
9848 case $lt_cv_dlopen_self in
9849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9850 *) enable_dlopen_self=unknown ;;
9851 esac
9852
9853 case $lt_cv_dlopen_self_static in
9854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9855 *) enable_dlopen_self_static=unknown ;;
9856 esac
9857fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875striplib=
9876old_striplib=
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9878$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9879if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9883$as_echo "yes" >&6; }
9884else
9885# FIXME - insert some real tests, host_os isn't really good enough
9886 case $host_os in
9887 darwin*)
9888 if test -n "$STRIP" ; then
9889 striplib="$STRIP -x"
9890 old_striplib="$STRIP -S"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9892$as_echo "yes" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
9896 fi
9897 ;;
9898 *)
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900$as_echo "no" >&6; }
9901 ;;
9902 esac
9903fi
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916 # Report which library types will actually be built
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9918$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9920$as_echo "$can_build_shared" >&6; }
9921
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9923$as_echo_n "checking whether to build shared libraries... " >&6; }
9924 test "$can_build_shared" = "no" && enable_shared=no
9925
9926 # On AIX, shared libraries and static libraries use the same namespace, and
9927 # are all built from PIC.
9928 case $host_os in
9929 aix3*)
9930 test "$enable_shared" = yes && enable_static=no
9931 if test -n "$RANLIB"; then
9932 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9933 postinstall_cmds='$RANLIB $lib'
9934 fi
9935 ;;
9936
9937 aix[4-9]*)
9938 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9939 test "$enable_shared" = yes && enable_static=no
9940 fi
9941 ;;
9942 esac
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9944$as_echo "$enable_shared" >&6; }
9945
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9947$as_echo_n "checking whether to build static libraries... " >&6; }
9948 # Make sure either enable_shared or enable_static is yes.
9949 test "$enable_shared" = yes || enable_static=yes
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9951$as_echo "$enable_static" >&6; }
9952
9953
9954
9955
9956fi
9957ac_ext=c
9958ac_cpp='$CPP $CPPFLAGS'
9959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961ac_compiler_gnu=$ac_cv_c_compiler_gnu
9962
9963CC="$lt_save_CC"
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977 ac_config_commands="$ac_config_commands libtool"
9978
9979
9980
9981
9982# Only expand once:
9983
9984
3fd51f51
DWT
9985
9986
9987if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9988 if test -n "$ac_tool_prefix"; then
9989 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9990set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
9993if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9995else
9996 case $PKG_CONFIG in
9997 [\\/]* | ?:[\\/]*)
9998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9999 ;;
10000 *)
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012done
10013 done
10014IFS=$as_save_IFS
10015
10016 ;;
10017esac
10018fi
10019PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10020if test -n "$PKG_CONFIG"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10022$as_echo "$PKG_CONFIG" >&6; }
10023else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
10026fi
10027
10028
10029fi
10030if test -z "$ac_cv_path_PKG_CONFIG"; then
10031 ac_pt_PKG_CONFIG=$PKG_CONFIG
10032 # Extract the first word of "pkg-config", so it can be a program name with args.
10033set dummy pkg-config; ac_word=$2
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035$as_echo_n "checking for $ac_word... " >&6; }
10036if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10038else
10039 case $ac_pt_PKG_CONFIG in
10040 [\\/]* | ?:[\\/]*)
10041 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10042 ;;
10043 *)
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 break 2
10054 fi
10055done
10056 done
10057IFS=$as_save_IFS
10058
10059 ;;
10060esac
10061fi
10062ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10063if test -n "$ac_pt_PKG_CONFIG"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10065$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10066else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068$as_echo "no" >&6; }
10069fi
10070
10071 if test "x$ac_pt_PKG_CONFIG" = x; then
10072 PKG_CONFIG=""
10073 else
10074 case $cross_compiling:$ac_tool_warned in
10075yes:)
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10078ac_tool_warned=yes ;;
10079esac
10080 PKG_CONFIG=$ac_pt_PKG_CONFIG
10081 fi
10082else
10083 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10084fi
10085
10086fi
10087if test -n "$PKG_CONFIG"; then
10088 _pkg_min_version=0.22
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10090$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10091 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10093$as_echo "yes" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096$as_echo "no" >&6; }
10097 PKG_CONFIG=""
10098 fi
10099
632b71ea
DWT
10100fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10102$as_echo_n "checking for GNU make... " >&6; }
10103if test "${_cv_gnu_make_command+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10105else
10106 _cv_gnu_make_command='' ;
10107 for a in "$MAKE" make gmake gnumake ; do
10108 if test -z "$a" ; then continue ; fi ;
10109 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10110 _cv_gnu_make_command=$a ;
10111 break;
10112 fi
10113 done ;
10114
10115fi
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10117$as_echo "$_cv_gnu_make_command" >&6; } ;
10118 if test "x$_cv_gnu_make_command" != "x" ; then
10119 ifGNUmake='' ;
10120 else
10121 ifGNUmake='#' ;
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10123$as_echo "\"Not found\"" >&6; };
10124 fi
10125
10126
790e5246
DWT
10127GMAKE=$_cv_gnu_make_command
10128
10129if test "x$GMAKE" = x; then :
632b71ea 10130 as_fn_error "You need GNU make" "$LINENO" 5
3fd51f51 10131fi
e9c9a47c
DWT
10132for ac_prog in bash
10133do
10134 # Extract the first word of "$ac_prog", so it can be a program name with args.
10135set dummy $ac_prog; ac_word=$2
9c60689e
DWT
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 10138if test "${ac_cv_path__BASH+set}" = set; then :
9c60689e
DWT
10139 $as_echo_n "(cached) " >&6
10140else
e9c9a47c
DWT
10141 case $_BASH in
10142 [\\/]* | ?:[\\/]*)
10143 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10144 ;;
10145 *)
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10153 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157done
10158 done
10159IFS=$as_save_IFS
10160
e9c9a47c
DWT
10161 ;;
10162esac
9c60689e 10163fi
e9c9a47c
DWT
10164_BASH=$ac_cv_path__BASH
10165if test -n "$_BASH"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10167$as_echo "$_BASH" >&6; }
9c60689e
DWT
10168else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
10171fi
10172
10173
e9c9a47c
DWT
10174 test -n "$_BASH" && break
10175done
10176
10177if test "x$_BASH" = x; then :
10178 as_fn_error "You need GNU bash" "$LINENO" 5
9c60689e 10179fi
e9c9a47c 10180for ac_prog in time
9c60689e
DWT
10181do
10182 # Extract the first word of "$ac_prog", so it can be a program name with args.
10183set dummy $ac_prog; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 10186if test "${ac_cv_path_TIME+set}" = set; then :
9c60689e
DWT
10187 $as_echo_n "(cached) " >&6
10188else
e9c9a47c
DWT
10189 case $TIME in
10190 [\\/]* | ?:[\\/]*)
10191 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10192 ;;
10193 *)
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10201 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205done
10206 done
10207IFS=$as_save_IFS
10208
e9c9a47c
DWT
10209 ;;
10210esac
9c60689e 10211fi
e9c9a47c
DWT
10212TIME=$ac_cv_path_TIME
10213if test -n "$TIME"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10215$as_echo "$TIME" >&6; }
9c60689e
DWT
10216else
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218$as_echo "no" >&6; }
10219fi
10220
10221
e9c9a47c 10222 test -n "$TIME" && break
9c60689e
DWT
10223done
10224
e9c9a47c
DWT
10225
10226
10227
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
10229$as_echo_n "checking for bison >= 2.3... " >&6; }
10230 if test -z "$BISON"; then
10231 ac_path_BISON_found=false
10232 # Loop through the user's path and test for each of PROGNAME-LIST
10233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_prog in bison; do
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
10241 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
10242as_awk_strverscmp='
10243 # Use only awk features that work with 7th edition Unix awk (1978).
10244 # My, what an old awk you have, Mr. Solaris!
10245 END {
10246 while (length(v1) && length(v2)) {
10247 # Set d1 to be the next thing to compare from v1, and likewise for d2.
10248 # Normally this is a single character, but if v1 and v2 contain digits,
10249 # compare them as integers and fractions as strverscmp does.
10250 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
10251 # Split v1 and v2 into their leading digit string components d1 and d2,
10252 # and advance v1 and v2 past the leading digit strings.
10253 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
10254 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
10255 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
10256 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
10257 if (d1 ~ /^0/) {
10258 if (d2 ~ /^0/) {
10259 # Compare two fractions.
10260 while (d1 ~ /^0/ && d2 ~ /^0/) {
10261 d1 = substr(d1, 2); len1--
10262 d2 = substr(d2, 2); len2--
10263 }
10264 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
10265 # The two components differ in length, and the common prefix
10266 # contains only leading zeros. Consider the longer to be less.
10267 d1 = -len1
10268 d2 = -len2
10269 } else {
10270 # Otherwise, compare as strings.
10271 d1 = "x" d1
10272 d2 = "x" d2
10273 }
10274 } else {
10275 # A fraction is less than an integer.
10276 exit 1
10277 }
10278 } else {
10279 if (d2 ~ /^0/) {
10280 # An integer is greater than a fraction.
10281 exit 2
10282 } else {
10283 # Compare two integers.
10284 d1 += 0
10285 d2 += 0
10286 }
10287 }
10288 } else {
10289 # The normal case, without worrying about digits.
10290 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
10291 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
10292 }
10293 if (d1 < d2) exit 1
10294 if (d1 > d2) exit 2
10295 }
10296 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
10297 # which mishandles some comparisons of empty strings to integers.
10298 if (length(v2)) exit 1
10299 if (length(v1)) exit 2
10300 }
10301'
10302as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10303as_arg_v2=2.3
10304awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10305case $? in #(
10306 1) :
10307 ;; #(
10308 0) :
10309 ac_cv_path_BISON=$ac_path_BISON
10310 ;; #(
10311 2) :
10312 ac_cv_path_BISON=$ac_path_BISON
10313 ;; #(
10314 *) :
10315 ;;
9c60689e 10316esac
e9c9a47c
DWT
10317
10318 $ac_path_BISON_found && break 3
10319 done
10320 done
10321 done
10322IFS=$as_save_IFS
10323 if test -z "$ac_cv_path_BISON"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10325$as_echo "not found" >&6; }
10326 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
9c60689e 10327
9c60689e 10328 fi
e9c9a47c
DWT
10329else
10330 ac_cv_path_BISON=$BISON
9c60689e 10331fi
9c60689e 10332
e9c9a47c 10333 BISON=$ac_cv_path_BISON
9c60689e 10334
e9c9a47c
DWT
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10336$as_echo "$BISON" >&6; }
9c60689e 10337
9c60689e 10338
9c60689e 10339
e9c9a47c
DWT
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
10341$as_echo_n "checking for flex >= 2.5.33... " >&6; }
10342 if test -z "$FLEX"; then
10343 ac_path_FLEX_found=false
10344 # Loop through the user's path and test for each of PROGNAME-LIST
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10346for as_dir in $PATH
10347do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
e9c9a47c 10350 for ac_prog in flex; do
9c60689e 10351 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
10352 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
10353 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
10354as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10355as_arg_v2=2.5.33
10356awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10357case $? in #(
10358 1) :
10359 ;; #(
10360 0) :
10361 ac_cv_path_FLEX=$ac_path_FLEX
10362 ;; #(
10363 2) :
10364 ac_cv_path_FLEX=$ac_path_FLEX
10365 ;; #(
10366 *) :
10367 ;;
10368esac
10369
10370 $ac_path_FLEX_found && break 3
10371 done
10372 done
9c60689e
DWT
10373 done
10374IFS=$as_save_IFS
e9c9a47c
DWT
10375 if test -z "$ac_cv_path_FLEX"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10377$as_echo "not found" >&6; }
10378 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
9c60689e 10379
e9c9a47c 10380 fi
9c60689e 10381else
e9c9a47c 10382 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
10383fi
10384
e9c9a47c 10385 FLEX=$ac_cv_path_FLEX
9c60689e 10386
e9c9a47c
DWT
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10388$as_echo "$FLEX" >&6; }
10389
10390
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
10393$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
10394 if test -z "$GPERF"; then
10395 ac_path_GPERF_found=false
10396 # Loop through the user's path and test for each of PROGNAME-LIST
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
e9c9a47c 10402 for ac_prog in gperf; do
9c60689e 10403 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
10404 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
10405 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
10406as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10407as_arg_v2=3.0.3
10408awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10409case $? in #(
10410 1) :
10411 ;; #(
10412 0) :
10413 ac_cv_path_GPERF=$ac_path_GPERF
10414 ;; #(
10415 2) :
10416 ac_cv_path_GPERF=$ac_path_GPERF
10417 ;; #(
10418 *) :
10419 ;;
10420esac
10421
10422 $ac_path_GPERF_found && break 3
10423 done
10424 done
9c60689e
DWT
10425 done
10426IFS=$as_save_IFS
e9c9a47c
DWT
10427 if test -z "$ac_cv_path_GPERF"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10429$as_echo "not found" >&6; }
10430 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
9c60689e 10431
e9c9a47c 10432 fi
9c60689e 10433else
e9c9a47c 10434 ac_cv_path_GPERF=$GPERF
9c60689e
DWT
10435fi
10436
e9c9a47c 10437 GPERF=$ac_cv_path_GPERF
9c60689e 10438
e9c9a47c
DWT
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10440$as_echo "$GPERF" >&6; }
3fd51f51 10441
e9c9a47c
DWT
10442# Find a good install program. We prefer a C program (faster),
10443# so one script is as good as another. But avoid the broken or
10444# incompatible versions:
10445# SysV /etc/install, /usr/sbin/install
10446# SunOS /usr/etc/install
10447# IRIX /sbin/install
10448# AIX /bin/install
10449# AmigaOS /C/install, which installs bootblocks on floppy discs
10450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10451# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10453# OS/2's system install, which has a completely different semantic
10454# ./install, which can be erroneously created by make from ./install.sh.
10455# Reject install programs that cannot install multiple files.
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10457$as_echo_n "checking for a BSD-compatible install... " >&6; }
10458if test -z "$INSTALL"; then
10459if test "${ac_cv_path_install+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10461else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463for as_dir in $PATH
10464do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 # Account for people who put trailing slashes in PATH elements.
10468case $as_dir/ in #((
10469 ./ | .// | /[cC]/* | \
10470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10472 /usr/ucb/* ) ;;
10473 *)
10474 # OSF1 and SCO ODT 3.0 have their own names for install.
10475 # Don't use installbsd from OSF since it installs stuff as root
10476 # by default.
10477 for ac_prog in ginstall scoinst install; do
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10480 if test $ac_prog = install &&
10481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10482 # AIX install. It has an incompatible calling convention.
10483 :
10484 elif test $ac_prog = install &&
10485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10486 # program-specific install script used by HP pwplus--don't use.
10487 :
10488 else
10489 rm -rf conftest.one conftest.two conftest.dir
10490 echo one > conftest.one
10491 echo two > conftest.two
10492 mkdir conftest.dir
10493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10494 test -s conftest.one && test -s conftest.two &&
10495 test -s conftest.dir/conftest.one &&
10496 test -s conftest.dir/conftest.two
10497 then
10498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10499 break 3
10500 fi
10501 fi
10502 fi
10503 done
10504 done
10505 ;;
10506esac
10507
10508 done
10509IFS=$as_save_IFS
10510
10511rm -rf conftest.one conftest.two conftest.dir
10512
10513fi
10514 if test "${ac_cv_path_install+set}" = set; then
10515 INSTALL=$ac_cv_path_install
10516 else
10517 # As a last resort, use the slow shell script. Don't cache a
10518 # value for INSTALL within a source directory, because that will
10519 # break other packages using the cache if that directory is
10520 # removed, or if the value is a relative name.
10521 INSTALL=$ac_install_sh
10522 fi
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10525$as_echo "$INSTALL" >&6; }
10526
10527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10528# It thinks the first close brace ends the variable substitution.
10529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10530
10531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10532
10533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10534
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar" >&5
10536$as_echo_n "checking for GNU tar... " >&6; }
10537if test -z "$GNUTAR"; then
10538 ac_path_GNUTAR_found=false
10539 # Loop through the user's path and test for each of PROGNAME-LIST
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541for as_dir in $PATH
10542do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_prog in tar gtar gnutar; do
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
10548 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
10549
10550 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
10551
10552 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10553
10554fi
10555
10556 $ac_path_GNUTAR_found && break 3
10557 done
10558 done
10559 done
10560IFS=$as_save_IFS
10561 if test -z "$ac_cv_path_GNUTAR"; then
10562 :
10563 fi
10564else
10565 ac_cv_path_GNUTAR=$GNUTAR
10566fi
10567
10568if test "x$ac_cv_path_GNUTAR" != x; then :
10569
10570 GNUTAR=$ac_cv_path_GNUTAR
10571
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
10573$as_echo "$GNUTAR" >&6; }
10574
10575else
10576
10577 GNUTAR=:
10578
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10580$as_echo "not found" >&6; }
10581
10582fi
10583ac_ext=cpp
10584ac_cpp='$CXXCPP $CPPFLAGS'
10585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10588if test -z "$CXX"; then
10589 if test -n "$CCC"; then
10590 CXX=$CCC
10591 else
10592 if test -n "$ac_tool_prefix"; then
10593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10594 do
10595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
10599if test "${ac_cv_prog_CXX+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10601else
10602 if test -n "$CXX"; then
10603 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10604else
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10612 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10615 fi
10616done
10617 done
10618IFS=$as_save_IFS
10619
10620fi
10621fi
10622CXX=$ac_cv_prog_CXX
10623if test -n "$CXX"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10625$as_echo "$CXX" >&6; }
10626else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629fi
10630
10631
10632 test -n "$CXX" && break
10633 done
10634fi
10635if test -z "$CXX"; then
10636 ac_ct_CXX=$CXX
10637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10638do
10639 # Extract the first word of "$ac_prog", so it can be a program name with args.
10640set dummy $ac_prog; ac_word=$2
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
10643if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645else
10646 if test -n "$ac_ct_CXX"; then
10647 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10648else
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656 ac_cv_prog_ac_ct_CXX="$ac_prog"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660done
10661 done
10662IFS=$as_save_IFS
10663
10664fi
10665fi
10666ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10667if test -n "$ac_ct_CXX"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10669$as_echo "$ac_ct_CXX" >&6; }
10670else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672$as_echo "no" >&6; }
10673fi
10674
10675
10676 test -n "$ac_ct_CXX" && break
10677done
10678
10679 if test "x$ac_ct_CXX" = x; then
10680 CXX="g++"
10681 else
10682 case $cross_compiling:$ac_tool_warned in
10683yes:)
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10686ac_tool_warned=yes ;;
10687esac
10688 CXX=$ac_ct_CXX
10689 fi
10690fi
10691
10692 fi
10693fi
10694# Provide some information about the compiler.
10695$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10696set X $ac_compile
10697ac_compiler=$2
10698for ac_option in --version -v -V -qversion; do
10699 { { ac_try="$ac_compiler $ac_option >&5"
10700case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703esac
47aaa820
DWT
10704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10705$as_echo "$ac_try_echo"; } >&5
10706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10707 ac_status=$?
10708 if test -s conftest.err; then
10709 sed '10a\
10710... rest of stderr output deleted ...
10711 10q' conftest.err >conftest.er1
10712 cat conftest.er1 >&5
3530897b 10713 fi
47aaa820
DWT
10714 rm -f conftest.er1 conftest.err
10715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10716 test $ac_status = 0; }
3530897b 10717done
3530897b 10718
47aaa820
DWT
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10720$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10721if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10723else
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h. */
10726
10727int
10728main ()
10729{
10730#ifndef __GNUC__
10731 choke me
10732#endif
10733
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738if ac_fn_cxx_try_compile "$LINENO"; then :
10739 ac_compiler_gnu=yes
10740else
10741 ac_compiler_gnu=no
3530897b 10742fi
47aaa820
DWT
10743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10745
3530897b 10746fi
47aaa820
DWT
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10748$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10749if test $ac_compiler_gnu = yes; then
10750 GXX=yes
3530897b 10751else
47aaa820 10752 GXX=
3530897b 10753fi
47aaa820
DWT
10754ac_test_CXXFLAGS=${CXXFLAGS+set}
10755ac_save_CXXFLAGS=$CXXFLAGS
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10757$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10758if test "${ac_cv_prog_cxx_g+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760else
10761 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10762 ac_cxx_werror_flag=yes
10763 ac_cv_prog_cxx_g=no
10764 CXXFLAGS="-g"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766/* end confdefs.h. */
3530897b 10767
47aaa820
DWT
10768int
10769main ()
10770{
3530897b 10771
47aaa820
DWT
10772 ;
10773 return 0;
10774}
10775_ACEOF
10776if ac_fn_cxx_try_compile "$LINENO"; then :
10777 ac_cv_prog_cxx_g=yes
10778else
10779 CXXFLAGS=""
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781/* end confdefs.h. */
9c60689e 10782
47aaa820
DWT
10783int
10784main ()
10785{
9c60689e 10786
47aaa820
DWT
10787 ;
10788 return 0;
10789}
10790_ACEOF
10791if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e 10792
47aaa820
DWT
10793else
10794 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10795 CXXFLAGS="-g"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h. */
9c60689e 10798
47aaa820
DWT
10799int
10800main ()
10801{
9c60689e 10802
47aaa820
DWT
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807if ac_fn_cxx_try_compile "$LINENO"; then :
10808 ac_cv_prog_cxx_g=yes
10809fi
10810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811fi
10812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813fi
10814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10818$as_echo "$ac_cv_prog_cxx_g" >&6; }
10819if test "$ac_test_CXXFLAGS" = set; then
10820 CXXFLAGS=$ac_save_CXXFLAGS
10821elif test $ac_cv_prog_cxx_g = yes; then
10822 if test "$GXX" = yes; then
10823 CXXFLAGS="-g -O2"
10824 else
10825 CXXFLAGS="-g"
10826 fi
10827else
10828 if test "$GXX" = yes; then
10829 CXXFLAGS="-O2"
10830 else
10831 CXXFLAGS=
10832 fi
10833fi
10834ac_ext=c
10835ac_cpp='$CPP $CPPFLAGS'
10836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10839
e9c9a47c
DWT
10840
10841ac_ext=cpp
47aaa820
DWT
10842ac_cpp='$CXXCPP $CPPFLAGS'
10843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
e9c9a47c
DWT
10846if test -z "$CXX"; then
10847 if test -n "$CCC"; then
10848 CXX=$CCC
10849 else
10850 if test -n "$ac_tool_prefix"; then
10851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10852 do
10853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
10857if test "${ac_cv_prog_CXX+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
10859else
10860 if test -n "$CXX"; then
10861 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
47aaa820 10865do
e9c9a47c
DWT
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874done
10875 done
10876IFS=$as_save_IFS
9c60689e 10877
9c60689e 10878fi
47aaa820 10879fi
e9c9a47c
DWT
10880CXX=$ac_cv_prog_CXX
10881if test -n "$CXX"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10883$as_echo "$CXX" >&6; }
10884else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
47aaa820 10887fi
9c60689e 10888
9c60689e 10889
e9c9a47c
DWT
10890 test -n "$CXX" && break
10891 done
47aaa820 10892fi
e9c9a47c
DWT
10893if test -z "$CXX"; then
10894 ac_ct_CXX=$CXX
10895 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10896do
10897 # Extract the first word of "$ac_prog", so it can be a program name with args.
10898set dummy $ac_prog; ac_word=$2
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900$as_echo_n "checking for $ac_word... " >&6; }
10901if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
9c60689e 10903else
e9c9a47c
DWT
10904 if test -n "$ac_ct_CXX"; then
10905 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10906else
10907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908for as_dir in $PATH
47aaa820 10909do
e9c9a47c
DWT
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_prog_ac_ct_CXX="$ac_prog"
10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10917 fi
10918done
10919 done
10920IFS=$as_save_IFS
9c60689e 10921
e9c9a47c
DWT
10922fi
10923fi
10924ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10925if test -n "$ac_ct_CXX"; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10927$as_echo "$ac_ct_CXX" >&6; }
47aaa820 10928else
e9c9a47c
DWT
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930$as_echo "no" >&6; }
9c60689e 10931fi
9c60689e 10932
e9c9a47c
DWT
10933
10934 test -n "$ac_ct_CXX" && break
10935done
10936
10937 if test "x$ac_ct_CXX" = x; then
10938 CXX="g++"
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941yes:)
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944ac_tool_warned=yes ;;
10945esac
10946 CXX=$ac_ct_CXX
10947 fi
9c60689e
DWT
10948fi
10949
e9c9a47c
DWT
10950 fi
10951fi
10952# Provide some information about the compiler.
10953$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10954set X $ac_compile
10955ac_compiler=$2
10956for ac_option in --version -v -V -qversion; do
10957 { { ac_try="$ac_compiler $ac_option >&5"
10958case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10963$as_echo "$ac_try_echo"; } >&5
10964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10965 ac_status=$?
10966 if test -s conftest.err; then
10967 sed '10a\
10968... rest of stderr output deleted ...
10969 10q' conftest.err >conftest.er1
10970 cat conftest.er1 >&5
10971 fi
10972 rm -f conftest.er1 conftest.err
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; }
9c60689e
DWT
10975done
10976
e9c9a47c
DWT
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10978$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10979if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
9c60689e 10981else
e9c9a47c
DWT
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h. */
9c60689e 10984
e9c9a47c
DWT
10985int
10986main ()
10987{
10988#ifndef __GNUC__
10989 choke me
10990#endif
9c60689e 10991
e9c9a47c
DWT
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996if ac_fn_cxx_try_compile "$LINENO"; then :
10997 ac_compiler_gnu=yes
47aaa820 10998else
e9c9a47c 10999 ac_compiler_gnu=no
47aaa820 11000fi
e9c9a47c
DWT
11001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11003
11004fi
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11006$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11007if test $ac_compiler_gnu = yes; then
11008 GXX=yes
11009else
11010 GXX=
11011fi
11012ac_test_CXXFLAGS=${CXXFLAGS+set}
11013ac_save_CXXFLAGS=$CXXFLAGS
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11015$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11016if test "${ac_cv_prog_cxx_g+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018else
11019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11020 ac_cxx_werror_flag=yes
11021 ac_cv_prog_cxx_g=no
11022 CXXFLAGS="-g"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h. */
11025
11026int
11027main ()
11028{
11029
11030 ;
11031 return 0;
11032}
11033_ACEOF
11034if ac_fn_cxx_try_compile "$LINENO"; then :
11035 ac_cv_prog_cxx_g=yes
11036else
11037 CXXFLAGS=""
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h. */
11040
11041int
11042main ()
11043{
11044
11045 ;
11046 return 0;
11047}
11048_ACEOF
11049if ac_fn_cxx_try_compile "$LINENO"; then :
11050
11051else
11052 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11053 CXXFLAGS="-g"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055/* end confdefs.h. */
11056
11057int
11058main ()
11059{
11060
11061 ;
11062 return 0;
11063}
11064_ACEOF
11065if ac_fn_cxx_try_compile "$LINENO"; then :
11066 ac_cv_prog_cxx_g=yes
11067fi
11068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069fi
11070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071fi
11072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11076$as_echo "$ac_cv_prog_cxx_g" >&6; }
11077if test "$ac_test_CXXFLAGS" = set; then
11078 CXXFLAGS=$ac_save_CXXFLAGS
11079elif test $ac_cv_prog_cxx_g = yes; then
11080 if test "$GXX" = yes; then
11081 CXXFLAGS="-g -O2"
11082 else
11083 CXXFLAGS="-g"
11084 fi
11085else
11086 if test "$GXX" = yes; then
11087 CXXFLAGS="-O2"
11088 else
11089 CXXFLAGS=
11090 fi
11091fi
11092ac_ext=c
11093ac_cpp='$CPP $CPPFLAGS'
11094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097
11098if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11099 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11100 (test "X$CXX" != "Xg++"))) ; then
11101 ac_ext=cpp
11102ac_cpp='$CXXCPP $CPPFLAGS'
11103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11107$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11108if test -z "$CXXCPP"; then
11109 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111else
11112 # Double quotes because CXXCPP needs to be expanded
11113 for CXXCPP in "$CXX -E" "/lib/cpp"
11114 do
11115 ac_preproc_ok=false
11116for ac_cxx_preproc_warn_flag in '' yes
11117do
11118 # Use a header file that comes with gcc, so configuring glibc
11119 # with a fresh cross-compiler works.
11120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11121 # <limits.h> exists even on freestanding compilers.
11122 # On the NeXT, cc -E runs the code through the compiler's parser,
11123 # not just through cpp. "Syntax error" is here to catch this case.
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125/* end confdefs.h. */
11126#ifdef __STDC__
11127# include <limits.h>
11128#else
11129# include <assert.h>
11130#endif
11131 Syntax error
11132_ACEOF
11133if ac_fn_cxx_try_cpp "$LINENO"; then :
11134
11135else
11136 # Broken: fails on valid input.
11137continue
11138fi
11139rm -f conftest.err conftest.$ac_ext
11140
11141 # OK, works on sane cases. Now check whether nonexistent headers
11142 # can be detected and how.
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h. */
11145#include <ac_nonexistent.h>
11146_ACEOF
11147if ac_fn_cxx_try_cpp "$LINENO"; then :
11148 # Broken: success on invalid input.
11149continue
11150else
11151 # Passes both tests.
11152ac_preproc_ok=:
11153break
11154fi
11155rm -f conftest.err conftest.$ac_ext
11156
11157done
11158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11159rm -f conftest.err conftest.$ac_ext
11160if $ac_preproc_ok; then :
11161 break
11162fi
11163
11164 done
11165 ac_cv_prog_CXXCPP=$CXXCPP
11166
11167fi
11168 CXXCPP=$ac_cv_prog_CXXCPP
11169else
11170 ac_cv_prog_CXXCPP=$CXXCPP
11171fi
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11173$as_echo "$CXXCPP" >&6; }
11174ac_preproc_ok=false
11175for ac_cxx_preproc_warn_flag in '' yes
11176do
11177 # Use a header file that comes with gcc, so configuring glibc
11178 # with a fresh cross-compiler works.
11179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11180 # <limits.h> exists even on freestanding compilers.
11181 # On the NeXT, cc -E runs the code through the compiler's parser,
11182 # not just through cpp. "Syntax error" is here to catch this case.
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184/* end confdefs.h. */
11185#ifdef __STDC__
11186# include <limits.h>
11187#else
11188# include <assert.h>
11189#endif
11190 Syntax error
11191_ACEOF
11192if ac_fn_cxx_try_cpp "$LINENO"; then :
11193
11194else
11195 # Broken: fails on valid input.
11196continue
11197fi
11198rm -f conftest.err conftest.$ac_ext
11199
11200 # OK, works on sane cases. Now check whether nonexistent headers
11201 # can be detected and how.
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203/* end confdefs.h. */
11204#include <ac_nonexistent.h>
11205_ACEOF
11206if ac_fn_cxx_try_cpp "$LINENO"; then :
11207 # Broken: success on invalid input.
11208continue
11209else
11210 # Passes both tests.
11211ac_preproc_ok=:
11212break
11213fi
11214rm -f conftest.err conftest.$ac_ext
11215
11216done
11217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11218rm -f conftest.err conftest.$ac_ext
11219if $ac_preproc_ok; then :
11220
11221else
11222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11224_lt_caught_CXX_error=yes; }
11225fi
11226
11227ac_ext=c
11228ac_cpp='$CPP $CPPFLAGS'
11229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231ac_compiler_gnu=$ac_cv_c_compiler_gnu
11232
11233else
11234 _lt_caught_CXX_error=yes
11235fi
11236
9c60689e 11237
9c60689e 11238
9c60689e 11239
9c60689e
DWT
11240ac_ext=cpp
11241ac_cpp='$CXXCPP $CPPFLAGS'
11242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 11245
47aaa820
DWT
11246archive_cmds_need_lc_CXX=no
11247allow_undefined_flag_CXX=
11248always_export_symbols_CXX=no
11249archive_expsym_cmds_CXX=
11250compiler_needs_object_CXX=no
11251export_dynamic_flag_spec_CXX=
11252hardcode_direct_CXX=no
11253hardcode_direct_absolute_CXX=no
11254hardcode_libdir_flag_spec_CXX=
11255hardcode_libdir_flag_spec_ld_CXX=
11256hardcode_libdir_separator_CXX=
11257hardcode_minus_L_CXX=no
11258hardcode_shlibpath_var_CXX=unsupported
11259hardcode_automatic_CXX=no
11260inherit_rpath_CXX=no
11261module_cmds_CXX=
11262module_expsym_cmds_CXX=
11263link_all_deplibs_CXX=unknown
11264old_archive_cmds_CXX=$old_archive_cmds
11265no_undefined_flag_CXX=
11266whole_archive_flag_spec_CXX=
11267enable_shared_with_static_runtimes_CXX=no
9c60689e 11268
47aaa820
DWT
11269# Source file extension for C++ test sources.
11270ac_ext=cpp
9c60689e 11271
47aaa820
DWT
11272# Object file extension for compiled C++ test sources.
11273objext=o
11274objext_CXX=$objext
9c60689e 11275
47aaa820
DWT
11276# No sense in running all these tests if we already determined that
11277# the CXX compiler isn't working. Some variables (like enable_shared)
11278# are currently assumed to apply to all compilers on this platform,
11279# and will be corrupted by setting them based on a non-working compiler.
11280if test "$_lt_caught_CXX_error" != yes; then
11281 # Code to be used in simple compile tests
11282 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11283
47aaa820
DWT
11284 # Code to be used in simple link tests
11285 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 11286
47aaa820 11287 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 11288
9c60689e 11289
9c60689e 11290
9c60689e 11291
9c60689e 11292
9c60689e 11293
47aaa820
DWT
11294# If no C compiler was specified, use CC.
11295LTCC=${LTCC-"$CC"}
9c60689e 11296
47aaa820
DWT
11297# If no C compiler flags were specified, use CFLAGS.
11298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11299
47aaa820
DWT
11300# Allow CC to be a program name with arguments.
11301compiler=$CC
9c60689e 11302
9c60689e 11303
47aaa820
DWT
11304 # save warnings/boilerplate of simple test code
11305 ac_outfile=conftest.$ac_objext
11306echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11307eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11308_lt_compiler_boilerplate=`cat conftest.err`
11309$RM conftest*
9c60689e 11310
47aaa820
DWT
11311 ac_outfile=conftest.$ac_objext
11312echo "$lt_simple_link_test_code" >conftest.$ac_ext
11313eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11314_lt_linker_boilerplate=`cat conftest.err`
11315$RM -r conftest*
9c60689e 11316
9c60689e 11317
47aaa820
DWT
11318 # Allow CC to be a program name with arguments.
11319 lt_save_CC=$CC
11320 lt_save_LD=$LD
11321 lt_save_GCC=$GCC
11322 GCC=$GXX
11323 lt_save_with_gnu_ld=$with_gnu_ld
11324 lt_save_path_LD=$lt_cv_path_LD
11325 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11326 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 11327 else
47aaa820 11328 $as_unset lt_cv_prog_gnu_ld
9c60689e 11329 fi
47aaa820
DWT
11330 if test -n "${lt_cv_path_LDCXX+set}"; then
11331 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 11332 else
47aaa820 11333 $as_unset lt_cv_path_LD
9c60689e 11334 fi
47aaa820
DWT
11335 test -z "${LDCXX+set}" || LD=$LDCXX
11336 CC=${CXX-"c++"}
11337 compiler=$CC
11338 compiler_CXX=$CC
11339 for cc_temp in $compiler""; do
11340 case $cc_temp in
11341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11343 \-*) ;;
11344 *) break;;
11345 esac
11346done
11347cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9c60689e
DWT
11348
11349
47aaa820
DWT
11350 if test -n "$compiler"; then
11351 # We don't want -fno-exception when compiling C++ code, so set the
11352 # no_builtin_flag separately
11353 if test "$GXX" = yes; then
11354 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11355 else
11356 lt_prog_compiler_no_builtin_flag_CXX=
11357 fi
9c60689e 11358
47aaa820
DWT
11359 if test "$GXX" = yes; then
11360 # Set up default GNU C++ configuration
11361
11362
11363
11364# Check whether --with-gnu-ld was given.
11365if test "${with_gnu_ld+set}" = set; then :
11366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 11367else
47aaa820 11368 with_gnu_ld=no
9c60689e
DWT
11369fi
11370
47aaa820
DWT
11371ac_prog=ld
11372if test "$GCC" = yes; then
11373 # Check if gcc -print-prog-name=ld gives a path.
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11375$as_echo_n "checking for ld used by $CC... " >&6; }
11376 case $host in
11377 *-*-mingw*)
11378 # gcc leaves a trailing carriage return which upsets mingw
11379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11380 *)
11381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11382 esac
11383 case $ac_prog in
11384 # Accept absolute paths.
11385 [\\/]* | ?:[\\/]*)
11386 re_direlt='/[^/][^/]*/\.\./'
11387 # Canonicalize the pathname of ld
11388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11391 done
11392 test -z "$LD" && LD="$ac_prog"
11393 ;;
11394 "")
11395 # If it fails, then pretend we aren't using GCC.
11396 ac_prog=ld
11397 ;;
11398 *)
11399 # If it is relative, then search for the first ld in PATH.
11400 with_gnu_ld=unknown
11401 ;;
11402 esac
11403elif test "$with_gnu_ld" = yes; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11405$as_echo_n "checking for GNU ld... " >&6; }
11406else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11408$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 11409fi
47aaa820 11410if test "${lt_cv_path_LD+set}" = set; then :
9c60689e
DWT
11411 $as_echo_n "(cached) " >&6
11412else
47aaa820
DWT
11413 if test -z "$LD"; then
11414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415 for ac_dir in $PATH; do
11416 IFS="$lt_save_ifs"
11417 test -z "$ac_dir" && ac_dir=.
11418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11419 lt_cv_path_LD="$ac_dir/$ac_prog"
11420 # Check to see if the program is GNU ld. I'd rather use --version,
11421 # but apparently some variants of GNU ld only accept -v.
11422 # Break only if it was the GNU/non-GNU ld that we prefer.
11423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11424 *GNU* | *'with BFD'*)
11425 test "$with_gnu_ld" != no && break
11426 ;;
11427 *)
11428 test "$with_gnu_ld" != yes && break
11429 ;;
11430 esac
11431 fi
9c60689e 11432 done
47aaa820
DWT
11433 IFS="$lt_save_ifs"
11434else
11435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
11436fi
11437fi
47aaa820
DWT
11438
11439LD="$lt_cv_path_LD"
11440if test -n "$LD"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11442$as_echo "$LD" >&6; }
9c60689e
DWT
11443else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446fi
47aaa820
DWT
11447test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11449$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11450if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
11452else
11453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11454case `$LD -v 2>&1 </dev/null` in
11455*GNU* | *'with BFD'*)
11456 lt_cv_prog_gnu_ld=yes
11457 ;;
11458*)
11459 lt_cv_prog_gnu_ld=no
11460 ;;
11461esac
11462fi
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11464$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11465with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
11466
11467
9c60689e 11468
9c60689e 11469
9c60689e 11470
9c60689e 11471
9c60689e 11472
47aaa820
DWT
11473 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11474 # archiving commands below assume that GNU ld is being used.
11475 if test "$with_gnu_ld" = yes; then
11476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477 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 11478
47aaa820
DWT
11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11481
47aaa820
DWT
11482 # If archive_cmds runs LD, not CC, wlarc should be empty
11483 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11484 # investigate it a little bit more. (MM)
11485 wlarc='${wl}'
9c60689e 11486
47aaa820
DWT
11487 # ancient GNU ld didn't support --whole-archive et. al.
11488 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11489 $GREP 'no-whole-archive' > /dev/null; then
11490 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11491 else
11492 whole_archive_flag_spec_CXX=
11493 fi
11494 else
11495 with_gnu_ld=no
11496 wlarc=
11497
11498 # A generic and very simple default shared library creation
11499 # command for GNU C++ for the case where it uses the native
11500 # linker, instead of GNU ld. If possible, this setting should
11501 # overridden to take advantage of the native linker features on
11502 # the platform it is being used on.
11503 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11504 fi
11505
11506 # Commands to make compiler produce verbose output that lists
11507 # what "hidden" libraries, object files and flags are used when
11508 # linking a shared library.
11509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11510
11511 else
11512 GXX=no
11513 with_gnu_ld=no
11514 wlarc=
11515 fi
11516
11517 # PORTME: fill in a description of your system's C++ link characteristics
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11519$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11520 ld_shlibs_CXX=yes
11521 case $host_os in
11522 aix3*)
11523 # FIXME: insert proper C++ library support
11524 ld_shlibs_CXX=no
11525 ;;
11526 aix[4-9]*)
11527 if test "$host_cpu" = ia64; then
11528 # On IA64, the linker does run time linking by default, so we don't
11529 # have to do anything special.
11530 aix_use_runtimelinking=no
11531 exp_sym_flag='-Bexport'
11532 no_entry_flag=""
11533 else
11534 aix_use_runtimelinking=no
11535
11536 # Test if we are trying to use run time linking or normal
11537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11538 # need to do runtime linking.
11539 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11540 for ld_flag in $LDFLAGS; do
11541 case $ld_flag in
11542 *-brtl*)
11543 aix_use_runtimelinking=yes
11544 break
11545 ;;
11546 esac
11547 done
11548 ;;
11549 esac
11550
11551 exp_sym_flag='-bexport'
11552 no_entry_flag='-bnoentry'
11553 fi
11554
11555 # When large executables or shared objects are built, AIX ld can
11556 # have problems creating the table of contents. If linking a library
11557 # or program results in "error TOC overflow" add -mminimal-toc to
11558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11560
11561 archive_cmds_CXX=''
11562 hardcode_direct_CXX=yes
11563 hardcode_direct_absolute_CXX=yes
11564 hardcode_libdir_separator_CXX=':'
11565 link_all_deplibs_CXX=yes
11566 file_list_spec_CXX='${wl}-f,'
11567
11568 if test "$GXX" = yes; then
11569 case $host_os in aix4.[012]|aix4.[012].*)
11570 # We only want to do this on AIX 4.2 and lower, the check
11571 # below for broken collect2 doesn't work under 4.3+
11572 collect2name=`${CC} -print-prog-name=collect2`
11573 if test -f "$collect2name" &&
11574 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11575 then
11576 # We have reworked collect2
11577 :
11578 else
11579 # We have old collect2
11580 hardcode_direct_CXX=unsupported
11581 # It fails to find uninstalled libraries when the uninstalled
11582 # path is not listed in the libpath. Setting hardcode_minus_L
11583 # to unsupported forces relinking
11584 hardcode_minus_L_CXX=yes
11585 hardcode_libdir_flag_spec_CXX='-L$libdir'
11586 hardcode_libdir_separator_CXX=
11587 fi
11588 esac
11589 shared_flag='-shared'
11590 if test "$aix_use_runtimelinking" = yes; then
11591 shared_flag="$shared_flag "'${wl}-G'
11592 fi
11593 else
11594 # not using gcc
11595 if test "$host_cpu" = ia64; then
11596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11597 # chokes on -Wl,-G. The following line is correct:
11598 shared_flag='-G'
11599 else
11600 if test "$aix_use_runtimelinking" = yes; then
11601 shared_flag='${wl}-G'
11602 else
11603 shared_flag='${wl}-bM:SRE'
11604 fi
11605 fi
11606 fi
11607
11608 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11609 # It seems that -bexpall does not export symbols beginning with
11610 # underscore (_), so it is better to generate a list of symbols to
11611 # export.
11612 always_export_symbols_CXX=yes
11613 if test "$aix_use_runtimelinking" = yes; then
11614 # Warning - without using the other runtime loading flags (-brtl),
11615 # -berok will link without error, but may produce a broken library.
11616 allow_undefined_flag_CXX='-berok'
11617 # Determine the default libpath from the value encoded in an empty
11618 # executable.
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11620/* end confdefs.h. */
11621
11622int
11623main ()
11624{
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
47aaa820 11630if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11631
47aaa820
DWT
11632lt_aix_libpath_sed='
11633 /Import File Strings/,/^$/ {
11634 /^0/ {
11635 s/^0 *\(.*\)$/\1/
11636 p
11637 }
11638 }'
11639aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11640# Check for a 64-bit object if we didn't find anything.
11641if test -z "$aix_libpath"; then
11642 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11643fi
11644fi
11645rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11648
11649 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11650
11651 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"
11652 else
11653 if test "$host_cpu" = ia64; then
11654 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11655 allow_undefined_flag_CXX="-z nodefs"
11656 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"
11657 else
11658 # Determine the default libpath from the value encoded in an
11659 # empty executable.
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11661/* end confdefs.h. */
11662
11663int
11664main ()
11665{
11666
11667 ;
11668 return 0;
11669}
11670_ACEOF
47aaa820 11671if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11672
47aaa820
DWT
11673lt_aix_libpath_sed='
11674 /Import File Strings/,/^$/ {
11675 /^0/ {
11676 s/^0 *\(.*\)$/\1/
11677 p
11678 }
11679 }'
11680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11681# Check for a 64-bit object if we didn't find anything.
11682if test -z "$aix_libpath"; then
11683 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9c60689e 11684fi
9c60689e 11685fi
47aaa820
DWT
11686rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9c60689e 11689
47aaa820
DWT
11690 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11691 # Warning - without using the other run time loading flags,
11692 # -berok will link without error, but may produce a broken library.
11693 no_undefined_flag_CXX=' ${wl}-bernotok'
11694 allow_undefined_flag_CXX=' ${wl}-berok'
11695 # Exported symbols can be pulled into shared objects from archives
11696 whole_archive_flag_spec_CXX='$convenience'
11697 archive_cmds_need_lc_CXX=yes
11698 # This is similar to how AIX traditionally builds its shared
11699 # libraries.
11700 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'
11701 fi
11702 fi
11703 ;;
9c60689e 11704
47aaa820
DWT
11705 beos*)
11706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11707 allow_undefined_flag_CXX=unsupported
11708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11709 # support --undefined. This deserves some investigation. FIXME
11710 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11711 else
11712 ld_shlibs_CXX=no
11713 fi
11714 ;;
9c60689e 11715
47aaa820
DWT
11716 chorus*)
11717 case $cc_basename in
11718 *)
11719 # FIXME: insert proper C++ library support
11720 ld_shlibs_CXX=no
11721 ;;
11722 esac
11723 ;;
9c60689e 11724
47aaa820
DWT
11725 cygwin* | mingw* | pw32* | cegcc*)
11726 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11727 # as there is no search path for DLLs.
11728 hardcode_libdir_flag_spec_CXX='-L$libdir'
11729 allow_undefined_flag_CXX=unsupported
11730 always_export_symbols_CXX=no
11731 enable_shared_with_static_runtimes_CXX=yes
9c60689e 11732
47aaa820
DWT
11733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11734 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'
11735 # If the export-symbols file already is a .def file (1st line
11736 # is EXPORTS), use it as is; otherwise, prepend...
11737 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11738 cp $export_symbols $output_objdir/$soname.def;
11739 else
11740 echo EXPORTS > $output_objdir/$soname.def;
11741 cat $export_symbols >> $output_objdir/$soname.def;
11742 fi~
11743 $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'
11744 else
11745 ld_shlibs_CXX=no
11746 fi
11747 ;;
11748 darwin* | rhapsody*)
9c60689e 11749
9c60689e 11750
47aaa820
DWT
11751 archive_cmds_need_lc_CXX=no
11752 hardcode_direct_CXX=no
11753 hardcode_automatic_CXX=yes
11754 hardcode_shlibpath_var_CXX=unsupported
11755 whole_archive_flag_spec_CXX=''
11756 link_all_deplibs_CXX=yes
11757 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11758 case $cc_basename in
11759 ifort*) _lt_dar_can_shared=yes ;;
11760 *) _lt_dar_can_shared=$GCC ;;
11761 esac
11762 if test "$_lt_dar_can_shared" = "yes"; then
11763 output_verbose_link_cmd=echo
11764 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}"
11765 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11766 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}"
11767 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}"
11768 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11769 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}"
11770 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}"
11771 fi
9c60689e 11772
47aaa820
DWT
11773 else
11774 ld_shlibs_CXX=no
11775 fi
9c60689e 11776
47aaa820 11777 ;;
9c60689e 11778
47aaa820
DWT
11779 dgux*)
11780 case $cc_basename in
11781 ec++*)
11782 # FIXME: insert proper C++ library support
11783 ld_shlibs_CXX=no
11784 ;;
11785 ghcx*)
11786 # Green Hills C++ Compiler
11787 # FIXME: insert proper C++ library support
11788 ld_shlibs_CXX=no
11789 ;;
11790 *)
11791 # FIXME: insert proper C++ library support
11792 ld_shlibs_CXX=no
11793 ;;
11794 esac
11795 ;;
9c60689e 11796
47aaa820
DWT
11797 freebsd[12]*)
11798 # C++ shared libraries reported to be fairly broken before
11799 # switch to ELF
11800 ld_shlibs_CXX=no
11801 ;;
9c60689e 11802
47aaa820
DWT
11803 freebsd-elf*)
11804 archive_cmds_need_lc_CXX=no
11805 ;;
9c60689e 11806
47aaa820
DWT
11807 freebsd* | dragonfly*)
11808 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11809 # conventions
11810 ld_shlibs_CXX=yes
11811 ;;
9c60689e 11812
47aaa820
DWT
11813 gnu*)
11814 ;;
9c60689e 11815
47aaa820
DWT
11816 hpux9*)
11817 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11818 hardcode_libdir_separator_CXX=:
11819 export_dynamic_flag_spec_CXX='${wl}-E'
11820 hardcode_direct_CXX=yes
11821 hardcode_minus_L_CXX=yes # Not in the search PATH,
11822 # but as the default
11823 # location of the library.
9c60689e 11824
47aaa820
DWT
11825 case $cc_basename in
11826 CC*)
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11829 ;;
11830 aCC*)
11831 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'
11832 # Commands to make compiler produce verbose output that lists
11833 # what "hidden" libraries, object files and flags are used when
11834 # linking a shared library.
11835 #
11836 # There doesn't appear to be a way to prevent this compiler from
11837 # explicitly linking system object files so we need to strip them
11838 # from the output so that they don't get included in the library
11839 # dependencies.
11840 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'
11841 ;;
11842 *)
11843 if test "$GXX" = yes; then
11844 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'
11845 else
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 fi
11849 ;;
11850 esac
11851 ;;
9c60689e 11852
47aaa820
DWT
11853 hpux10*|hpux11*)
11854 if test $with_gnu_ld = no; then
11855 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11856 hardcode_libdir_separator_CXX=:
9c60689e 11857
47aaa820
DWT
11858 case $host_cpu in
11859 hppa*64*|ia64*)
11860 ;;
11861 *)
11862 export_dynamic_flag_spec_CXX='${wl}-E'
11863 ;;
11864 esac
11865 fi
11866 case $host_cpu in
11867 hppa*64*|ia64*)
11868 hardcode_direct_CXX=no
11869 hardcode_shlibpath_var_CXX=no
11870 ;;
11871 *)
11872 hardcode_direct_CXX=yes
11873 hardcode_direct_absolute_CXX=yes
11874 hardcode_minus_L_CXX=yes # Not in the search PATH,
11875 # but as the default
11876 # location of the library.
11877 ;;
11878 esac
9c60689e 11879
47aaa820
DWT
11880 case $cc_basename in
11881 CC*)
11882 # FIXME: insert proper C++ library support
11883 ld_shlibs_CXX=no
11884 ;;
11885 aCC*)
11886 case $host_cpu in
11887 hppa*64*)
11888 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11889 ;;
11890 ia64*)
11891 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11892 ;;
11893 *)
11894 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11895 ;;
11896 esac
11897 # Commands to make compiler produce verbose output that lists
11898 # what "hidden" libraries, object files and flags are used when
11899 # linking a shared library.
11900 #
11901 # There doesn't appear to be a way to prevent this compiler from
11902 # explicitly linking system object files so we need to strip them
11903 # from the output so that they don't get included in the library
11904 # dependencies.
11905 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'
11906 ;;
11907 *)
11908 if test "$GXX" = yes; then
11909 if test $with_gnu_ld = no; then
11910 case $host_cpu in
11911 hppa*64*)
11912 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11913 ;;
11914 ia64*)
11915 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11916 ;;
11917 *)
11918 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'
11919 ;;
11920 esac
11921 fi
11922 else
11923 # FIXME: insert proper C++ library support
11924 ld_shlibs_CXX=no
11925 fi
11926 ;;
11927 esac
11928 ;;
9c60689e 11929
47aaa820
DWT
11930 interix[3-9]*)
11931 hardcode_direct_CXX=no
11932 hardcode_shlibpath_var_CXX=no
11933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11934 export_dynamic_flag_spec_CXX='${wl}-E'
11935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11936 # Instead, shared libraries are loaded at an image base (0x10000000 by
11937 # default) and relocated if they conflict, which is a slow very memory
11938 # consuming and fragmenting process. To avoid this, we pick a random,
11939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11941 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'
11942 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'
11943 ;;
11944 irix5* | irix6*)
11945 case $cc_basename in
11946 CC*)
11947 # SGI C++
11948 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 11949
47aaa820
DWT
11950 # Archives containing C++ object files must be created using
11951 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11952 # necessary to make sure instantiated templates are included
11953 # in the archive.
11954 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11955 ;;
11956 *)
11957 if test "$GXX" = yes; then
11958 if test "$with_gnu_ld" = no; then
11959 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'
11960 else
11961 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'
11962 fi
11963 fi
11964 link_all_deplibs_CXX=yes
11965 ;;
11966 esac
11967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968 hardcode_libdir_separator_CXX=:
11969 inherit_rpath_CXX=yes
11970 ;;
9c60689e 11971
47aaa820
DWT
11972 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11973 case $cc_basename in
11974 KCC*)
11975 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 11976
47aaa820
DWT
11977 # KCC will only create a shared library if the output file
11978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11979 # to its proper name (with version) after linking.
11980 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'
11981 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'
11982 # Commands to make compiler produce verbose output that lists
11983 # what "hidden" libraries, object files and flags are used when
11984 # linking a shared library.
11985 #
11986 # There doesn't appear to be a way to prevent this compiler from
11987 # explicitly linking system object files so we need to strip them
11988 # from the output so that they don't get included in the library
11989 # dependencies.
11990 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 11991
47aaa820
DWT
11992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11994
47aaa820
DWT
11995 # Archives containing C++ object files must be created using
11996 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11997 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11998 ;;
11999 icpc* | ecpc* )
12000 # Intel C++
12001 with_gnu_ld=yes
12002 # version 8.0 and above of icpc choke on multiply defined symbols
12003 # if we add $predep_objects and $postdep_objects, however 7.1 and
12004 # earlier do not add the objects themselves.
12005 case `$CC -V 2>&1` in
12006 *"Version 7."*)
12007 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12008 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'
12009 ;;
12010 *) # Version 8.0 or newer
12011 tmp_idyn=
12012 case $host_cpu in
12013 ia64*) tmp_idyn=' -i_dynamic';;
12014 esac
12015 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12016 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'
12017 ;;
12018 esac
12019 archive_cmds_need_lc_CXX=no
12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12022 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12023 ;;
12024 pgCC* | pgcpp*)
12025 # Portland Group C++ compiler
12026 case `$CC -V` in
12027 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12028 prelink_cmds_CXX='tpldir=Template.dir~
12029 rm -rf $tpldir~
12030 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12031 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12032 old_archive_cmds_CXX='tpldir=Template.dir~
12033 rm -rf $tpldir~
12034 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12035 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12036 $RANLIB $oldlib'
12037 archive_cmds_CXX='tpldir=Template.dir~
12038 rm -rf $tpldir~
12039 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12040 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12041 archive_expsym_cmds_CXX='tpldir=Template.dir~
12042 rm -rf $tpldir~
12043 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12044 $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'
12045 ;;
12046 *) # Version 6 will use weak symbols
12047 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12048 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'
12049 ;;
12050 esac
9c60689e 12051
47aaa820
DWT
12052 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12054 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'
12055 ;;
12056 cxx*)
12057 # Compaq C++
12058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059 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 12060
47aaa820
DWT
12061 runpath_var=LD_RUN_PATH
12062 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12063 hardcode_libdir_separator_CXX=:
9c60689e 12064
47aaa820
DWT
12065 # Commands to make compiler produce verbose output that lists
12066 # what "hidden" libraries, object files and flags are used when
12067 # linking a shared library.
12068 #
12069 # There doesn't appear to be a way to prevent this compiler from
12070 # explicitly linking system object files so we need to strip them
12071 # from the output so that they don't get included in the library
12072 # dependencies.
12073 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'
12074 ;;
12075 xl*)
12076 # IBM XL 8.0 on PPC, with GNU ld
12077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12079 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 if test "x$supports_anon_versioning" = xyes; then
12081 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12083 echo "local: *; };" >> $output_objdir/$libname.ver~
12084 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12085 fi
12086 ;;
12087 *)
12088 case `$CC -V 2>&1 | sed 5q` in
12089 *Sun\ C*)
12090 # Sun C++ 5.9
12091 no_undefined_flag_CXX=' -zdefs'
12092 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093 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'
12094 hardcode_libdir_flag_spec_CXX='-R$libdir'
12095 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'
12096 compiler_needs_object_CXX=yes
9c60689e 12097
47aaa820
DWT
12098 # Not sure whether something based on
12099 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12100 # would be better.
12101 output_verbose_link_cmd='echo'
9c60689e 12102
47aaa820
DWT
12103 # Archives containing C++ object files must be created using
12104 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12105 # necessary to make sure instantiated templates are included
12106 # in the archive.
12107 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12108 ;;
12109 esac
12110 ;;
12111 esac
12112 ;;
9c60689e 12113
47aaa820
DWT
12114 lynxos*)
12115 # FIXME: insert proper C++ library support
12116 ld_shlibs_CXX=no
12117 ;;
9c60689e 12118
47aaa820
DWT
12119 m88k*)
12120 # FIXME: insert proper C++ library support
12121 ld_shlibs_CXX=no
12122 ;;
9c60689e 12123
47aaa820
DWT
12124 mvs*)
12125 case $cc_basename in
12126 cxx*)
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12129 ;;
12130 *)
12131 # FIXME: insert proper C++ library support
12132 ld_shlibs_CXX=no
12133 ;;
12134 esac
12135 ;;
9c60689e 12136
47aaa820
DWT
12137 netbsd*)
12138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12139 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12140 wlarc=
12141 hardcode_libdir_flag_spec_CXX='-R$libdir'
12142 hardcode_direct_CXX=yes
12143 hardcode_shlibpath_var_CXX=no
12144 fi
12145 # Workaround some broken pre-1.5 toolchains
12146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 12147 ;;
47aaa820
DWT
12148
12149 *nto* | *qnx*)
12150 ld_shlibs_CXX=yes
9c60689e 12151 ;;
9c60689e 12152
47aaa820
DWT
12153 openbsd2*)
12154 # C++ shared libraries are fairly broken
12155 ld_shlibs_CXX=no
12156 ;;
9c60689e 12157
47aaa820
DWT
12158 openbsd*)
12159 if test -f /usr/libexec/ld.so; then
12160 hardcode_direct_CXX=yes
12161 hardcode_shlibpath_var_CXX=no
12162 hardcode_direct_absolute_CXX=yes
12163 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12166 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12167 export_dynamic_flag_spec_CXX='${wl}-E'
12168 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12169 fi
12170 output_verbose_link_cmd=echo
12171 else
12172 ld_shlibs_CXX=no
12173 fi
12174 ;;
9c60689e 12175
47aaa820
DWT
12176 osf3* | osf4* | osf5*)
12177 case $cc_basename in
12178 KCC*)
12179 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12180
47aaa820
DWT
12181 # KCC will only create a shared library if the output file
12182 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12183 # to its proper name (with version) after linking.
12184 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 12185
47aaa820
DWT
12186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12187 hardcode_libdir_separator_CXX=:
9c60689e 12188
47aaa820
DWT
12189 # Archives containing C++ object files must be created using
12190 # the KAI C++ compiler.
12191 case $host in
12192 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12193 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12194 esac
12195 ;;
12196 RCC*)
12197 # Rational C++ 2.4.1
12198 # FIXME: insert proper C++ library support
12199 ld_shlibs_CXX=no
12200 ;;
12201 cxx*)
12202 case $host in
12203 osf3*)
12204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12205 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'
12206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12207 ;;
12208 *)
12209 allow_undefined_flag_CXX=' -expect_unresolved \*'
12210 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'
12211 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12212 echo "-hidden">> $lib.exp~
12213 $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~
12214 $RM $lib.exp'
12215 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12216 ;;
12217 esac
9c60689e 12218
47aaa820 12219 hardcode_libdir_separator_CXX=:
9c60689e 12220
47aaa820
DWT
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12224 #
12225 # There doesn't appear to be a way to prevent this compiler from
12226 # explicitly linking system object files so we need to strip them
12227 # from the output so that they don't get included in the library
12228 # dependencies.
12229 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'
12230 ;;
12231 *)
12232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12233 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12234 case $host in
12235 osf3*)
12236 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'
12237 ;;
12238 *)
12239 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'
12240 ;;
12241 esac
9c60689e 12242
47aaa820
DWT
12243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12244 hardcode_libdir_separator_CXX=:
9c60689e 12245
47aaa820
DWT
12246 # Commands to make compiler produce verbose output that lists
12247 # what "hidden" libraries, object files and flags are used when
12248 # linking a shared library.
12249 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9c60689e 12250
47aaa820
DWT
12251 else
12252 # FIXME: insert proper C++ library support
12253 ld_shlibs_CXX=no
12254 fi
12255 ;;
12256 esac
12257 ;;
9c60689e 12258
47aaa820 12259 psos*)
9c60689e
DWT
12260 # FIXME: insert proper C++ library support
12261 ld_shlibs_CXX=no
12262 ;;
9c60689e 12263
47aaa820
DWT
12264 sunos4*)
12265 case $cc_basename in
12266 CC*)
12267 # Sun C++ 4.x
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
9c60689e 12270 ;;
47aaa820
DWT
12271 lcc*)
12272 # Lucid
12273 # FIXME: insert proper C++ library support
12274 ld_shlibs_CXX=no
12275 ;;
12276 *)
12277 # FIXME: insert proper C++ library support
12278 ld_shlibs_CXX=no
12279 ;;
12280 esac
12281 ;;
9c60689e 12282
47aaa820
DWT
12283 solaris*)
12284 case $cc_basename in
12285 CC*)
12286 # Sun C++ 4.2, 5.x and Centerline C++
12287 archive_cmds_need_lc_CXX=yes
12288 no_undefined_flag_CXX=' -zdefs'
12289 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12290 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12291 $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 12292
47aaa820
DWT
12293 hardcode_libdir_flag_spec_CXX='-R$libdir'
12294 hardcode_shlibpath_var_CXX=no
12295 case $host_os in
12296 solaris2.[0-5] | solaris2.[0-5].*) ;;
12297 *)
12298 # The compiler driver will combine and reorder linker options,
12299 # but understands `-z linker_flag'.
12300 # Supported since Solaris 2.6 (maybe 2.5.1?)
12301 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12302 ;;
12303 esac
12304 link_all_deplibs_CXX=yes
9c60689e 12305
47aaa820 12306 output_verbose_link_cmd='echo'
9c60689e 12307
47aaa820
DWT
12308 # Archives containing C++ object files must be created using
12309 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12310 # necessary to make sure instantiated templates are included
12311 # in the archive.
12312 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12313 ;;
12314 gcx*)
12315 # Green Hills C++ Compiler
12316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 12317
47aaa820
DWT
12318 # The C++ compiler must be used to create the archive.
12319 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12320 ;;
12321 *)
12322 # GNU C++ compiler with Solaris linker
12323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12324 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12325 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12326 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12327 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12328 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 12329
47aaa820
DWT
12330 # Commands to make compiler produce verbose output that lists
12331 # what "hidden" libraries, object files and flags are used when
12332 # linking a shared library.
12333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12334 else
12335 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12336 # platform.
12337 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12338 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12339 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 12340
47aaa820
DWT
12341 # Commands to make compiler produce verbose output that lists
12342 # what "hidden" libraries, object files and flags are used when
12343 # linking a shared library.
12344 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12345 fi
9c60689e 12346
47aaa820
DWT
12347 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12348 case $host_os in
12349 solaris2.[0-5] | solaris2.[0-5].*) ;;
12350 *)
12351 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12352 ;;
12353 esac
12354 fi
12355 ;;
12356 esac
12357 ;;
9c60689e 12358
47aaa820
DWT
12359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12360 no_undefined_flag_CXX='${wl}-z,text'
12361 archive_cmds_need_lc_CXX=no
12362 hardcode_shlibpath_var_CXX=no
12363 runpath_var='LD_RUN_PATH'
9c60689e 12364
47aaa820
DWT
12365 case $cc_basename in
12366 CC*)
12367 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12368 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12369 ;;
12370 *)
12371 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12372 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12373 ;;
12374 esac
12375 ;;
9c60689e 12376
47aaa820
DWT
12377 sysv5* | sco3.2v5* | sco5v6*)
12378 # Note: We can NOT use -z defs as we might desire, because we do not
12379 # link with -lc, and that would cause any symbols used from libc to
12380 # always be unresolved, which means just about no library would
12381 # ever link correctly. If we're not using GNU ld we use -z text
12382 # though, which does catch some bad symbols but isn't as heavy-handed
12383 # as -z defs.
12384 no_undefined_flag_CXX='${wl}-z,text'
12385 allow_undefined_flag_CXX='${wl}-z,nodefs'
12386 archive_cmds_need_lc_CXX=no
12387 hardcode_shlibpath_var_CXX=no
12388 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12389 hardcode_libdir_separator_CXX=':'
12390 link_all_deplibs_CXX=yes
12391 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12392 runpath_var='LD_RUN_PATH'
9c60689e 12393
47aaa820
DWT
12394 case $cc_basename in
12395 CC*)
12396 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12397 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12398 ;;
12399 *)
12400 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12401 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12402 ;;
12403 esac
12404 ;;
9c60689e 12405
47aaa820 12406 tandem*)
9c60689e 12407 case $cc_basename in
47aaa820
DWT
12408 NCC*)
12409 # NonStop-UX NCC 3.20
12410 # FIXME: insert proper C++ library support
12411 ld_shlibs_CXX=no
12412 ;;
9c60689e 12413 *)
47aaa820
DWT
12414 # FIXME: insert proper C++ library support
12415 ld_shlibs_CXX=no
12416 ;;
9c60689e
DWT
12417 esac
12418 ;;
12419
47aaa820
DWT
12420 vxworks*)
12421 # FIXME: insert proper C++ library support
12422 ld_shlibs_CXX=no
12423 ;;
9c60689e 12424
47aaa820
DWT
12425 *)
12426 # FIXME: insert proper C++ library support
12427 ld_shlibs_CXX=no
9c60689e 12428 ;;
47aaa820 12429 esac
9c60689e 12430
47aaa820
DWT
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12432$as_echo "$ld_shlibs_CXX" >&6; }
12433 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 12434
47aaa820
DWT
12435 GCC_CXX="$GXX"
12436 LD_CXX="$LD"
9c60689e 12437
47aaa820
DWT
12438 ## CAVEAT EMPTOR:
12439 ## There is no encapsulation within the following macros, do not change
12440 ## the running order or otherwise move them around unless you know exactly
12441 ## what you are doing...
12442 # Dependencies to place before and after the object being linked:
12443predep_objects_CXX=
12444postdep_objects_CXX=
12445predeps_CXX=
12446postdeps_CXX=
12447compiler_lib_search_path_CXX=
9c60689e 12448
47aaa820
DWT
12449cat > conftest.$ac_ext <<_LT_EOF
12450class Foo
12451{
12452public:
12453 Foo (void) { a = 0; }
12454private:
12455 int a;
12456};
12457_LT_EOF
9c60689e 12458
47aaa820
DWT
12459if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12460 (eval $ac_compile) 2>&5
12461 ac_status=$?
12462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12463 test $ac_status = 0; }; then
12464 # Parse the compiler output and extract the necessary
12465 # objects, libraries and library flags.
9c60689e 12466
47aaa820
DWT
12467 # Sentinel used to keep track of whether or not we are before
12468 # the conftest object file.
12469 pre_test_object_deps_done=no
9c60689e 12470
47aaa820
DWT
12471 for p in `eval "$output_verbose_link_cmd"`; do
12472 case $p in
9c60689e 12473
47aaa820
DWT
12474 -L* | -R* | -l*)
12475 # Some compilers place space between "-{L,R}" and the path.
12476 # Remove the space.
12477 if test $p = "-L" ||
12478 test $p = "-R"; then
12479 prev=$p
12480 continue
12481 else
12482 prev=
12483 fi
9c60689e 12484
47aaa820
DWT
12485 if test "$pre_test_object_deps_done" = no; then
12486 case $p in
12487 -L* | -R*)
12488 # Internal compiler library paths should come after those
12489 # provided the user. The postdeps already come after the
12490 # user supplied libs so there is no need to process them.
12491 if test -z "$compiler_lib_search_path_CXX"; then
12492 compiler_lib_search_path_CXX="${prev}${p}"
12493 else
12494 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12495 fi
12496 ;;
12497 # The "-l" case would never come before the object being
12498 # linked, so don't bother handling this case.
12499 esac
12500 else
12501 if test -z "$postdeps_CXX"; then
12502 postdeps_CXX="${prev}${p}"
12503 else
12504 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12505 fi
12506 fi
12507 ;;
9c60689e 12508
47aaa820
DWT
12509 *.$objext)
12510 # This assumes that the test object file only shows up
12511 # once in the compiler output.
12512 if test "$p" = "conftest.$objext"; then
12513 pre_test_object_deps_done=yes
12514 continue
12515 fi
9c60689e 12516
47aaa820
DWT
12517 if test "$pre_test_object_deps_done" = no; then
12518 if test -z "$predep_objects_CXX"; then
12519 predep_objects_CXX="$p"
12520 else
12521 predep_objects_CXX="$predep_objects_CXX $p"
12522 fi
12523 else
12524 if test -z "$postdep_objects_CXX"; then
12525 postdep_objects_CXX="$p"
12526 else
12527 postdep_objects_CXX="$postdep_objects_CXX $p"
12528 fi
12529 fi
12530 ;;
9c60689e 12531
47aaa820 12532 *) ;; # Ignore the rest.
9c60689e 12533
47aaa820
DWT
12534 esac
12535 done
9c60689e 12536
47aaa820
DWT
12537 # Clean up.
12538 rm -f a.out a.exe
12539else
12540 echo "libtool.m4: error: problem compiling CXX test program"
12541fi
9c60689e 12542
47aaa820 12543$RM -f confest.$objext
9c60689e 12544
47aaa820
DWT
12545# PORTME: override above test on systems where it is broken
12546case $host_os in
12547interix[3-9]*)
12548 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12549 # hack all around it, let's just trust "g++" to DTRT.
12550 predep_objects_CXX=
12551 postdep_objects_CXX=
12552 postdeps_CXX=
12553 ;;
9c60689e 12554
47aaa820
DWT
12555linux*)
12556 case `$CC -V 2>&1 | sed 5q` in
12557 *Sun\ C*)
12558 # Sun C++ 5.9
9c60689e 12559
47aaa820
DWT
12560 # The more standards-conforming stlport4 library is
12561 # incompatible with the Cstd library. Avoid specifying
12562 # it if it's in CXXFLAGS. Ignore libCrun as
12563 # -library=stlport4 depends on it.
12564 case " $CXX $CXXFLAGS " in
12565 *" -library=stlport4 "*)
12566 solaris_use_stlport4=yes
12567 ;;
12568 esac
9c60689e 12569
47aaa820
DWT
12570 if test "$solaris_use_stlport4" != yes; then
12571 postdeps_CXX='-library=Cstd -library=Crun'
12572 fi
12573 ;;
12574 esac
12575 ;;
9c60689e 12576
47aaa820
DWT
12577solaris*)
12578 case $cc_basename in
12579 CC*)
12580 # The more standards-conforming stlport4 library is
12581 # incompatible with the Cstd library. Avoid specifying
12582 # it if it's in CXXFLAGS. Ignore libCrun as
12583 # -library=stlport4 depends on it.
12584 case " $CXX $CXXFLAGS " in
12585 *" -library=stlport4 "*)
12586 solaris_use_stlport4=yes
12587 ;;
12588 esac
9c60689e 12589
47aaa820
DWT
12590 # Adding this requires a known-good setup of shared libraries for
12591 # Sun compiler versions before 5.6, else PIC objects from an old
12592 # archive will be linked into the output, leading to subtle bugs.
12593 if test "$solaris_use_stlport4" != yes; then
12594 postdeps_CXX='-library=Cstd -library=Crun'
12595 fi
12596 ;;
12597 esac
12598 ;;
12599esac
9c60689e 12600
9c60689e 12601
47aaa820
DWT
12602case " $postdeps_CXX " in
12603*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12604esac
12605 compiler_lib_search_dirs_CXX=
12606if test -n "${compiler_lib_search_path_CXX}"; then
12607 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12608fi
9c60689e 12609
9c60689e 12610
9c60689e 12611
9c60689e 12612
9c60689e 12613
9c60689e 12614
9c60689e 12615
9c60689e 12616
9c60689e 12617
9c60689e 12618
9c60689e 12619
9c60689e 12620
9c60689e 12621
9c60689e 12622
9c60689e 12623
9c60689e 12624
9c60689e 12625
9c60689e 12626
9c60689e 12627
9c60689e 12628
9c60689e 12629
9c60689e 12630
9c60689e 12631
9c60689e 12632
9c60689e 12633
9c60689e 12634
9c60689e 12635
9c60689e 12636
9c60689e 12637
9c60689e 12638
9c60689e 12639
47aaa820
DWT
12640 lt_prog_compiler_wl_CXX=
12641lt_prog_compiler_pic_CXX=
12642lt_prog_compiler_static_CXX=
9c60689e
DWT
12643
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12645$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12646
12647 # C++ specific cases for pic, static, wl, etc.
12648 if test "$GXX" = yes; then
12649 lt_prog_compiler_wl_CXX='-Wl,'
12650 lt_prog_compiler_static_CXX='-static'
12651
12652 case $host_os in
12653 aix*)
12654 # All AIX code is PIC.
12655 if test "$host_cpu" = ia64; then
12656 # AIX 5 now supports IA64 processor
12657 lt_prog_compiler_static_CXX='-Bstatic'
12658 fi
12659 ;;
12660
12661 amigaos*)
12662 case $host_cpu in
12663 powerpc)
12664 # see comment about AmigaOS4 .so support
12665 lt_prog_compiler_pic_CXX='-fPIC'
12666 ;;
12667 m68k)
12668 # FIXME: we need at least 68020 code to build shared libraries, but
12669 # adding the `-m68020' flag to GCC prevents building anything better,
12670 # like `-m68040'.
12671 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12672 ;;
12673 esac
12674 ;;
12675
12676 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12677 # PIC is the default for these OSes.
12678 ;;
12679 mingw* | cygwin* | os2* | pw32* | cegcc*)
12680 # This hack is so that the source file can tell whether it is being
12681 # built for inclusion in a dll (and should export symbols for example).
12682 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12683 # (--disable-auto-import) libraries
12684 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12685 ;;
12686 darwin* | rhapsody*)
12687 # PIC is the default on this platform
12688 # Common symbols not allowed in MH_DYLIB files
12689 lt_prog_compiler_pic_CXX='-fno-common'
12690 ;;
12691 *djgpp*)
12692 # DJGPP does not support shared libraries at all
12693 lt_prog_compiler_pic_CXX=
12694 ;;
12695 interix[3-9]*)
12696 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12697 # Instead, we relocate shared libraries at runtime.
12698 ;;
12699 sysv4*MP*)
12700 if test -d /usr/nec; then
12701 lt_prog_compiler_pic_CXX=-Kconform_pic
12702 fi
12703 ;;
12704 hpux*)
12705 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12706 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12707 # sets the default TLS model and affects inlining.
12708 case $host_cpu in
12709 hppa*64*)
12710 ;;
12711 *)
12712 lt_prog_compiler_pic_CXX='-fPIC'
12713 ;;
12714 esac
12715 ;;
12716 *qnx* | *nto*)
12717 # QNX uses GNU C++, but need to define -shared option too, otherwise
12718 # it will coredump.
12719 lt_prog_compiler_pic_CXX='-fPIC -shared'
12720 ;;
12721 *)
12722 lt_prog_compiler_pic_CXX='-fPIC'
12723 ;;
12724 esac
12725 else
12726 case $host_os in
12727 aix[4-9]*)
12728 # All AIX code is PIC.
12729 if test "$host_cpu" = ia64; then
12730 # AIX 5 now supports IA64 processor
12731 lt_prog_compiler_static_CXX='-Bstatic'
12732 else
12733 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12734 fi
12735 ;;
12736 chorus*)
12737 case $cc_basename in
12738 cxch68*)
12739 # Green Hills C++ Compiler
12740 # _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"
12741 ;;
12742 esac
12743 ;;
12744 dgux*)
12745 case $cc_basename in
12746 ec++*)
12747 lt_prog_compiler_pic_CXX='-KPIC'
12748 ;;
12749 ghcx*)
12750 # Green Hills C++ Compiler
12751 lt_prog_compiler_pic_CXX='-pic'
12752 ;;
12753 *)
12754 ;;
12755 esac
12756 ;;
12757 freebsd* | dragonfly*)
12758 # FreeBSD uses GNU C++
12759 ;;
12760 hpux9* | hpux10* | hpux11*)
12761 case $cc_basename in
12762 CC*)
12763 lt_prog_compiler_wl_CXX='-Wl,'
12764 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12765 if test "$host_cpu" != ia64; then
12766 lt_prog_compiler_pic_CXX='+Z'
12767 fi
12768 ;;
12769 aCC*)
12770 lt_prog_compiler_wl_CXX='-Wl,'
12771 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12772 case $host_cpu in
12773 hppa*64*|ia64*)
12774 # +Z the default
12775 ;;
12776 *)
12777 lt_prog_compiler_pic_CXX='+Z'
12778 ;;
12779 esac
12780 ;;
12781 *)
12782 ;;
12783 esac
12784 ;;
12785 interix*)
12786 # This is c89, which is MS Visual C++ (no shared libs)
12787 # Anyone wants to do a port?
12788 ;;
12789 irix5* | irix6* | nonstopux*)
12790 case $cc_basename in
12791 CC*)
12792 lt_prog_compiler_wl_CXX='-Wl,'
12793 lt_prog_compiler_static_CXX='-non_shared'
12794 # CC pic flag -KPIC is the default.
12795 ;;
12796 *)
12797 ;;
12798 esac
12799 ;;
12800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12801 case $cc_basename in
12802 KCC*)
12803 # KAI C++ Compiler
12804 lt_prog_compiler_wl_CXX='--backend -Wl,'
12805 lt_prog_compiler_pic_CXX='-fPIC'
12806 ;;
12807 ecpc* )
12808 # old Intel C++ for x86_64 which still supported -KPIC.
12809 lt_prog_compiler_wl_CXX='-Wl,'
12810 lt_prog_compiler_pic_CXX='-KPIC'
12811 lt_prog_compiler_static_CXX='-static'
12812 ;;
12813 icpc* )
12814 # Intel C++, used to be incompatible with GCC.
12815 # ICC 10 doesn't accept -KPIC any more.
12816 lt_prog_compiler_wl_CXX='-Wl,'
12817 lt_prog_compiler_pic_CXX='-fPIC'
12818 lt_prog_compiler_static_CXX='-static'
12819 ;;
12820 pgCC* | pgcpp*)
12821 # Portland Group C++ compiler
12822 lt_prog_compiler_wl_CXX='-Wl,'
12823 lt_prog_compiler_pic_CXX='-fpic'
12824 lt_prog_compiler_static_CXX='-Bstatic'
12825 ;;
12826 cxx*)
12827 # Compaq C++
12828 # Make sure the PIC flag is empty. It appears that all Alpha
12829 # Linux and Compaq Tru64 Unix objects are PIC.
12830 lt_prog_compiler_pic_CXX=
12831 lt_prog_compiler_static_CXX='-non_shared'
12832 ;;
12833 xlc* | xlC*)
12834 # IBM XL 8.0 on PPC
12835 lt_prog_compiler_wl_CXX='-Wl,'
12836 lt_prog_compiler_pic_CXX='-qpic'
12837 lt_prog_compiler_static_CXX='-qstaticlink'
12838 ;;
12839 *)
12840 case `$CC -V 2>&1 | sed 5q` in
12841 *Sun\ C*)
12842 # Sun C++ 5.9
12843 lt_prog_compiler_pic_CXX='-KPIC'
12844 lt_prog_compiler_static_CXX='-Bstatic'
12845 lt_prog_compiler_wl_CXX='-Qoption ld '
12846 ;;
12847 esac
12848 ;;
12849 esac
12850 ;;
12851 lynxos*)
12852 ;;
12853 m88k*)
12854 ;;
12855 mvs*)
12856 case $cc_basename in
12857 cxx*)
12858 lt_prog_compiler_pic_CXX='-W c,exportall'
12859 ;;
12860 *)
12861 ;;
12862 esac
12863 ;;
12864 netbsd* | netbsdelf*-gnu)
12865 ;;
12866 *qnx* | *nto*)
12867 # QNX uses GNU C++, but need to define -shared option too, otherwise
12868 # it will coredump.
12869 lt_prog_compiler_pic_CXX='-fPIC -shared'
12870 ;;
12871 osf3* | osf4* | osf5*)
12872 case $cc_basename in
12873 KCC*)
12874 lt_prog_compiler_wl_CXX='--backend -Wl,'
12875 ;;
12876 RCC*)
12877 # Rational C++ 2.4.1
12878 lt_prog_compiler_pic_CXX='-pic'
12879 ;;
12880 cxx*)
12881 # Digital/Compaq C++
12882 lt_prog_compiler_wl_CXX='-Wl,'
12883 # Make sure the PIC flag is empty. It appears that all Alpha
12884 # Linux and Compaq Tru64 Unix objects are PIC.
12885 lt_prog_compiler_pic_CXX=
12886 lt_prog_compiler_static_CXX='-non_shared'
12887 ;;
12888 *)
12889 ;;
12890 esac
12891 ;;
12892 psos*)
12893 ;;
12894 solaris*)
12895 case $cc_basename in
12896 CC*)
12897 # Sun C++ 4.2, 5.x and Centerline C++
12898 lt_prog_compiler_pic_CXX='-KPIC'
12899 lt_prog_compiler_static_CXX='-Bstatic'
12900 lt_prog_compiler_wl_CXX='-Qoption ld '
12901 ;;
12902 gcx*)
12903 # Green Hills C++ Compiler
12904 lt_prog_compiler_pic_CXX='-PIC'
12905 ;;
12906 *)
12907 ;;
12908 esac
12909 ;;
12910 sunos4*)
12911 case $cc_basename in
12912 CC*)
12913 # Sun C++ 4.x
12914 lt_prog_compiler_pic_CXX='-pic'
12915 lt_prog_compiler_static_CXX='-Bstatic'
12916 ;;
12917 lcc*)
12918 # Lucid
12919 lt_prog_compiler_pic_CXX='-pic'
12920 ;;
12921 *)
12922 ;;
12923 esac
12924 ;;
12925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12926 case $cc_basename in
12927 CC*)
12928 lt_prog_compiler_wl_CXX='-Wl,'
12929 lt_prog_compiler_pic_CXX='-KPIC'
12930 lt_prog_compiler_static_CXX='-Bstatic'
12931 ;;
12932 esac
12933 ;;
12934 tandem*)
12935 case $cc_basename in
12936 NCC*)
12937 # NonStop-UX NCC 3.20
12938 lt_prog_compiler_pic_CXX='-KPIC'
12939 ;;
12940 *)
12941 ;;
12942 esac
12943 ;;
12944 vxworks*)
12945 ;;
12946 *)
12947 lt_prog_compiler_can_build_shared_CXX=no
12948 ;;
12949 esac
12950 fi
12951
12952case $host_os in
12953 # For platforms which do not support PIC, -DPIC is meaningless:
12954 *djgpp*)
12955 lt_prog_compiler_pic_CXX=
12956 ;;
12957 *)
12958 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12959 ;;
12960esac
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12962$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12963
12964
12965
12966#
12967# Check to make sure the PIC flag actually works.
12968#
12969if test -n "$lt_prog_compiler_pic_CXX"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12971$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12972if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12974else
12975 lt_cv_prog_compiler_pic_works_CXX=no
12976 ac_outfile=conftest.$ac_objext
12977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12978 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12979 # Insert the option either (1) after the last *FLAGS variable, or
12980 # (2) before a word containing "conftest.", or (3) at the end.
12981 # Note that $ac_compile itself does not contain backslashes and begins
12982 # with a dollar sign (not a hyphen), so the echo should work correctly.
12983 # The option is referenced via a variable to avoid confusing sed.
12984 lt_compile=`echo "$ac_compile" | $SED \
12985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12987 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 12988 (eval echo "\"\$as_me:12988: $lt_compile\"" >&5)
9c60689e
DWT
12989 (eval "$lt_compile" 2>conftest.err)
12990 ac_status=$?
12991 cat conftest.err >&5
e9c9a47c 12992 echo "$as_me:12992: \$? = $ac_status" >&5
9c60689e
DWT
12993 if (exit $ac_status) && test -s "$ac_outfile"; then
12994 # The compiler can only warn and ignore the option if not recognized
12995 # So say no if there are warnings other than the usual output.
12996 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12999 lt_cv_prog_compiler_pic_works_CXX=yes
13000 fi
13001 fi
13002 $RM conftest*
13003
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13006$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13007
13008if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13009 case $lt_prog_compiler_pic_CXX in
13010 "" | " "*) ;;
13011 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13012 esac
13013else
13014 lt_prog_compiler_pic_CXX=
13015 lt_prog_compiler_can_build_shared_CXX=no
13016fi
13017
13018fi
13019
13020
13021
47aaa820
DWT
13022#
13023# Check to make sure the static flag actually works.
13024#
13025wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13027$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13028if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
13030else
13031 lt_cv_prog_compiler_static_works_CXX=no
13032 save_LDFLAGS="$LDFLAGS"
13033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13036 # The linker can only warn and ignore the option if not recognized
13037 # So say no if there are warnings
13038 if test -s conftest.err; then
13039 # Append any errors to the config.log.
13040 cat conftest.err 1>&5
13041 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13043 if diff conftest.exp conftest.er2 >/dev/null; then
13044 lt_cv_prog_compiler_static_works_CXX=yes
13045 fi
13046 else
13047 lt_cv_prog_compiler_static_works_CXX=yes
13048 fi
13049 fi
13050 $RM -r conftest*
13051 LDFLAGS="$save_LDFLAGS"
13052
13053fi
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13055$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13056
13057if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13058 :
13059else
13060 lt_prog_compiler_static_CXX=
13061fi
13062
13063
13064
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13067$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13068if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070else
13071 lt_cv_prog_compiler_c_o_CXX=no
13072 $RM -r conftest 2>/dev/null
13073 mkdir conftest
13074 cd conftest
13075 mkdir out
13076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13077
13078 lt_compiler_flag="-o out/conftest2.$ac_objext"
13079 # Insert the option either (1) after the last *FLAGS variable, or
13080 # (2) before a word containing "conftest.", or (3) at the end.
13081 # Note that $ac_compile itself does not contain backslashes and begins
13082 # with a dollar sign (not a hyphen), so the echo should work correctly.
13083 lt_compile=`echo "$ac_compile" | $SED \
13084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13086 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 13087 (eval echo "\"\$as_me:13087: $lt_compile\"" >&5)
47aaa820
DWT
13088 (eval "$lt_compile" 2>out/conftest.err)
13089 ac_status=$?
13090 cat out/conftest.err >&5
e9c9a47c 13091 echo "$as_me:13091: \$? = $ac_status" >&5
47aaa820
DWT
13092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13093 then
13094 # The compiler can only warn and ignore the option if not recognized
13095 # So say no if there are warnings
13096 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13099 lt_cv_prog_compiler_c_o_CXX=yes
13100 fi
13101 fi
13102 chmod u+w . 2>&5
13103 $RM conftest*
13104 # SGI C++ compiler will create directory out/ii_files/ for
13105 # template instantiation
13106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13107 $RM out/* && rmdir out
13108 cd ..
13109 $RM -r conftest
13110 $RM conftest*
13111
13112fi
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13114$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13115
13116
13117
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13119$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13120if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13122else
13123 lt_cv_prog_compiler_c_o_CXX=no
13124 $RM -r conftest 2>/dev/null
13125 mkdir conftest
13126 cd conftest
13127 mkdir out
13128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13129
13130 lt_compiler_flag="-o out/conftest2.$ac_objext"
13131 # Insert the option either (1) after the last *FLAGS variable, or
13132 # (2) before a word containing "conftest.", or (3) at the end.
13133 # Note that $ac_compile itself does not contain backslashes and begins
13134 # with a dollar sign (not a hyphen), so the echo should work correctly.
13135 lt_compile=`echo "$ac_compile" | $SED \
13136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138 -e 's:$: $lt_compiler_flag:'`
e9c9a47c 13139 (eval echo "\"\$as_me:13139: $lt_compile\"" >&5)
47aaa820
DWT
13140 (eval "$lt_compile" 2>out/conftest.err)
13141 ac_status=$?
13142 cat out/conftest.err >&5
e9c9a47c 13143 echo "$as_me:13143: \$? = $ac_status" >&5
47aaa820
DWT
13144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13145 then
13146 # The compiler can only warn and ignore the option if not recognized
13147 # So say no if there are warnings
13148 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13151 lt_cv_prog_compiler_c_o_CXX=yes
13152 fi
13153 fi
13154 chmod u+w . 2>&5
13155 $RM conftest*
13156 # SGI C++ compiler will create directory out/ii_files/ for
13157 # template instantiation
13158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13159 $RM out/* && rmdir out
13160 cd ..
13161 $RM -r conftest
13162 $RM conftest*
13163
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13166$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13167
13168
13169
13170
13171hard_links="nottested"
13172if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13173 # do not overwrite the value of need_locks provided by the user
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13175$as_echo_n "checking if we can lock with hard links... " >&6; }
13176 hard_links=yes
13177 $RM conftest*
13178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13179 touch conftest.a
13180 ln conftest.a conftest.b 2>&5 || hard_links=no
13181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13183$as_echo "$hard_links" >&6; }
13184 if test "$hard_links" = no; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13186$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13187 need_locks=warn
13188 fi
13189else
13190 need_locks=no
13191fi
13192
13193
13194
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13196$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13197
13198 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13199 case $host_os in
13200 aix[4-9]*)
13201 # If we're using GNU nm, then we don't want the "-C" option.
13202 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13204 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'
13205 else
13206 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'
13207 fi
13208 ;;
13209 pw32*)
13210 export_symbols_cmds_CXX="$ltdll_cmds"
13211 ;;
13212 cygwin* | mingw* | cegcc*)
13213 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'
13214 ;;
13215 linux* | k*bsd*-gnu)
13216 link_all_deplibs_CXX=no
13217 ;;
13218 *)
13219 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13220 ;;
13221 esac
13222 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13223
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13225$as_echo "$ld_shlibs_CXX" >&6; }
13226test "$ld_shlibs_CXX" = no && can_build_shared=no
13227
13228with_gnu_ld_CXX=$with_gnu_ld
13229
13230
13231
13232
13233
13234
13235#
13236# Do we need to explicitly link libc?
13237#
13238case "x$archive_cmds_need_lc_CXX" in
13239x|xyes)
13240 # Assume -lc should be added
13241 archive_cmds_need_lc_CXX=yes
13242
13243 if test "$enable_shared" = yes && test "$GCC" = yes; then
13244 case $archive_cmds_CXX in
13245 *'~'*)
13246 # FIXME: we may have to deal with multi-command sequences.
13247 ;;
13248 '$CC '*)
13249 # Test whether the compiler implicitly links with -lc since on some
13250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13251 # to ld, don't add -lc before -lgcc.
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13253$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13254 $RM conftest*
13255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13256
13257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13258 (eval $ac_compile) 2>&5
13259 ac_status=$?
13260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261 test $ac_status = 0; } 2>conftest.err; then
13262 soname=conftest
13263 lib=conftest
13264 libobjs=conftest.$ac_objext
13265 deplibs=
13266 wl=$lt_prog_compiler_wl_CXX
13267 pic_flag=$lt_prog_compiler_pic_CXX
13268 compiler_flags=-v
13269 linker_flags=-v
13270 verstring=
13271 output_objdir=.
13272 libname=conftest
13273 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13274 allow_undefined_flag_CXX=
13275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13276 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13277 ac_status=$?
13278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13279 test $ac_status = 0; }
13280 then
13281 archive_cmds_need_lc_CXX=no
13282 else
13283 archive_cmds_need_lc_CXX=yes
13284 fi
13285 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13286 else
13287 cat conftest.err 1>&5
13288 fi
13289 $RM conftest*
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13291$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13292 ;;
13293 esac
13294 fi
13295 ;;
13296esac
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13362$as_echo_n "checking dynamic linker characteristics... " >&6; }
13363
13364library_names_spec=
13365libname_spec='lib$name'
13366soname_spec=
13367shrext_cmds=".so"
13368postinstall_cmds=
13369postuninstall_cmds=
13370finish_cmds=
13371finish_eval=
13372shlibpath_var=
13373shlibpath_overrides_runpath=unknown
13374version_type=none
13375dynamic_linker="$host_os ld.so"
13376sys_lib_dlsearch_path_spec="/lib /usr/lib"
13377need_lib_prefix=unknown
13378hardcode_into_libs=no
13379
13380# when you set need_version to no, make sure it does not cause -set_version
13381# flags to be left without arguments
13382need_version=unknown
13383
13384case $host_os in
13385aix3*)
13386 version_type=linux
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13388 shlibpath_var=LIBPATH
13389
13390 # AIX 3 has no versioning support, so we append a major version to the name.
13391 soname_spec='${libname}${release}${shared_ext}$major'
13392 ;;
13393
13394aix[4-9]*)
13395 version_type=linux
13396 need_lib_prefix=no
13397 need_version=no
13398 hardcode_into_libs=yes
13399 if test "$host_cpu" = ia64; then
13400 # AIX 5 supports IA64
13401 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 else
13404 # With GCC up to 2.95.x, collect2 would create an import file
13405 # for dependence libraries. The import file would start with
13406 # the line `#! .'. This would cause the generated library to
13407 # depend on `.', always an invalid library. This was fixed in
13408 # development snapshots of GCC prior to 3.0.
13409 case $host_os in
13410 aix4 | aix4.[01] | aix4.[01].*)
13411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13412 echo ' yes '
13413 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13414 :
13415 else
13416 can_build_shared=no
13417 fi
13418 ;;
13419 esac
13420 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13421 # soname into executable. Probably we can add versioning support to
13422 # collect2, so additional links can be useful in future.
13423 if test "$aix_use_runtimelinking" = yes; then
13424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13425 # instead of lib<name>.a to let people know that these are not
13426 # typical AIX shared libraries.
13427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13428 else
13429 # We preserve .a as extension for shared libraries through AIX4.2
13430 # and later when we are not doing run time linking.
13431 library_names_spec='${libname}${release}.a $libname.a'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 fi
13434 shlibpath_var=LIBPATH
13435 fi
13436 ;;
13437
13438amigaos*)
13439 case $host_cpu in
13440 powerpc)
13441 # Since July 2007 AmigaOS4 officially supports .so libraries.
13442 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 ;;
13445 m68k)
13446 library_names_spec='$libname.ixlibrary $libname.a'
13447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13448 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'
13449 ;;
13450 esac
13451 ;;
13452
13453beos*)
13454 library_names_spec='${libname}${shared_ext}'
13455 dynamic_linker="$host_os ld.so"
13456 shlibpath_var=LIBRARY_PATH
13457 ;;
13458
13459bsdi[45]*)
13460 version_type=linux
13461 need_version=no
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13464 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13465 shlibpath_var=LD_LIBRARY_PATH
13466 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13467 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13468 # the default ld.so.conf also contains /usr/contrib/lib and
13469 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13470 # libtool to hard-code these into programs
13471 ;;
9c60689e 13472
47aaa820
DWT
13473cygwin* | mingw* | pw32* | cegcc*)
13474 version_type=windows
13475 shrext_cmds=".dll"
13476 need_version=no
13477 need_lib_prefix=no
9c60689e 13478
47aaa820
DWT
13479 case $GCC,$host_os in
13480 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13481 library_names_spec='$libname.dll.a'
13482 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13483 postinstall_cmds='base_file=`basename \${file}`~
13484 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13485 dldir=$destdir/`dirname \$dlpath`~
13486 test -d \$dldir || mkdir -p \$dldir~
13487 $install_prog $dir/$dlname \$dldir/$dlname~
13488 chmod a+x \$dldir/$dlname~
13489 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13490 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13491 fi'
13492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13493 dlpath=$dir/\$dldll~
13494 $RM \$dlpath'
13495 shlibpath_overrides_runpath=yes
9c60689e 13496
47aaa820
DWT
13497 case $host_os in
13498 cygwin*)
13499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13502 ;;
13503 mingw* | cegcc*)
13504 # MinGW DLLs use traditional 'lib' prefix
13505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13506 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13507 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13508 # It is most probably a Windows format PATH printed by
13509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13510 # path with ; separators, and with drive letters. We can handle the
13511 # drive letters (cygwin fileutils understands them), so leave them,
13512 # especially as we might pass files found there to a mingw objdump,
13513 # which wouldn't understand a cygwinified path. Ahh.
13514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13515 else
13516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13517 fi
13518 ;;
13519 pw32*)
13520 # pw32 DLLs use 'pw' prefix rather than 'lib'
13521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13522 ;;
13523 esac
13524 ;;
9c60689e 13525
47aaa820
DWT
13526 *)
13527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13528 ;;
13529 esac
13530 dynamic_linker='Win32 ld.exe'
13531 # FIXME: first we should search . and the directory the executable is in
13532 shlibpath_var=PATH
13533 ;;
9c60689e 13534
47aaa820
DWT
13535darwin* | rhapsody*)
13536 dynamic_linker="$host_os dyld"
13537 version_type=darwin
13538 need_lib_prefix=no
13539 need_version=no
13540 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13541 soname_spec='${libname}${release}${major}$shared_ext'
13542 shlibpath_overrides_runpath=yes
13543 shlibpath_var=DYLD_LIBRARY_PATH
13544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13545
47aaa820
DWT
13546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13547 ;;
9c60689e 13548
47aaa820
DWT
13549dgux*)
13550 version_type=linux
13551 need_lib_prefix=no
13552 need_version=no
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13554 soname_spec='${libname}${release}${shared_ext}$major'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 ;;
9c60689e 13557
47aaa820
DWT
13558freebsd1*)
13559 dynamic_linker=no
13560 ;;
9c60689e 13561
47aaa820
DWT
13562freebsd* | dragonfly*)
13563 # DragonFly does not have aout. When/if they implement a new
13564 # versioning mechanism, adjust this.
13565 if test -x /usr/bin/objformat; then
13566 objformat=`/usr/bin/objformat`
13567 else
13568 case $host_os in
13569 freebsd[123]*) objformat=aout ;;
13570 *) objformat=elf ;;
13571 esac
13572 fi
13573 version_type=freebsd-$objformat
13574 case $version_type in
13575 freebsd-elf*)
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13577 need_version=no
13578 need_lib_prefix=no
13579 ;;
13580 freebsd-*)
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13582 need_version=yes
13583 ;;
13584 esac
13585 shlibpath_var=LD_LIBRARY_PATH
13586 case $host_os in
13587 freebsd2*)
13588 shlibpath_overrides_runpath=yes
13589 ;;
13590 freebsd3.[01]* | freebsdelf3.[01]*)
13591 shlibpath_overrides_runpath=yes
13592 hardcode_into_libs=yes
13593 ;;
13594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13596 shlibpath_overrides_runpath=no
13597 hardcode_into_libs=yes
13598 ;;
13599 *) # from 4.6 on, and DragonFly
13600 shlibpath_overrides_runpath=yes
13601 hardcode_into_libs=yes
13602 ;;
13603 esac
13604 ;;
9c60689e 13605
47aaa820
DWT
13606gnu*)
13607 version_type=linux
13608 need_lib_prefix=no
13609 need_version=no
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13613 hardcode_into_libs=yes
13614 ;;
9c60689e 13615
47aaa820
DWT
13616hpux9* | hpux10* | hpux11*)
13617 # Give a soname corresponding to the major version so that dld.sl refuses to
13618 # link against other versions.
13619 version_type=sunos
13620 need_lib_prefix=no
13621 need_version=no
13622 case $host_cpu in
13623 ia64*)
13624 shrext_cmds='.so'
13625 hardcode_into_libs=yes
13626 dynamic_linker="$host_os dld.so"
13627 shlibpath_var=LD_LIBRARY_PATH
13628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630 soname_spec='${libname}${release}${shared_ext}$major'
13631 if test "X$HPUX_IA64_MODE" = X32; then
13632 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13633 else
13634 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13635 fi
13636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13637 ;;
13638 hppa*64*)
13639 shrext_cmds='.sl'
13640 hardcode_into_libs=yes
13641 dynamic_linker="$host_os dld.sl"
13642 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13643 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645 soname_spec='${libname}${release}${shared_ext}$major'
13646 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13648 ;;
13649 *)
13650 shrext_cmds='.sl'
13651 dynamic_linker="$host_os dld.sl"
13652 shlibpath_var=SHLIB_PATH
13653 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13655 soname_spec='${libname}${release}${shared_ext}$major'
13656 ;;
13657 esac
13658 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13659 postinstall_cmds='chmod 555 $lib'
13660 ;;
9c60689e 13661
47aaa820
DWT
13662interix[3-9]*)
13663 version_type=linux
13664 need_lib_prefix=no
13665 need_version=no
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 shlibpath_overrides_runpath=no
13671 hardcode_into_libs=yes
13672 ;;
9c60689e 13673
47aaa820
DWT
13674irix5* | irix6* | nonstopux*)
13675 case $host_os in
13676 nonstopux*) version_type=nonstopux ;;
13677 *)
13678 if test "$lt_cv_prog_gnu_ld" = yes; then
13679 version_type=linux
13680 else
13681 version_type=irix
13682 fi ;;
13683 esac
13684 need_lib_prefix=no
13685 need_version=no
13686 soname_spec='${libname}${release}${shared_ext}$major'
13687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13688 case $host_os in
13689 irix5* | nonstopux*)
13690 libsuff= shlibsuff=
13691 ;;
13692 *)
13693 case $LD in # libtool.m4 will add one of these switches to LD
13694 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13695 libsuff= shlibsuff= libmagic=32-bit;;
13696 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13697 libsuff=32 shlibsuff=N32 libmagic=N32;;
13698 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13699 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13700 *) libsuff= shlibsuff= libmagic=never-match;;
13701 esac
13702 ;;
13703 esac
13704 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13705 shlibpath_overrides_runpath=no
13706 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13707 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13708 hardcode_into_libs=yes
13709 ;;
9c60689e 13710
47aaa820
DWT
13711# No shared lib support for Linux oldld, aout, or coff.
13712linux*oldld* | linux*aout* | linux*coff*)
13713 dynamic_linker=no
13714 ;;
9c60689e 13715
47aaa820
DWT
13716# This must be Linux ELF.
13717linux* | k*bsd*-gnu | kopensolaris*-gnu)
13718 version_type=linux
13719 need_lib_prefix=no
13720 need_version=no
13721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13722 soname_spec='${libname}${release}${shared_ext}$major'
13723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 shlibpath_overrides_runpath=no
13726 # Some binutils ld are patched to set DT_RUNPATH
13727 save_LDFLAGS=$LDFLAGS
13728 save_libdir=$libdir
13729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h. */
9c60689e 13733
47aaa820
DWT
13734int
13735main ()
13736{
9c60689e 13737
47aaa820
DWT
13738 ;
13739 return 0;
13740}
13741_ACEOF
13742if ac_fn_cxx_try_link "$LINENO"; then :
13743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13744 shlibpath_overrides_runpath=yes
9c60689e 13745fi
47aaa820
DWT
13746fi
13747rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LDFLAGS=$save_LDFLAGS
13750 libdir=$save_libdir
9c60689e 13751
47aaa820
DWT
13752 # This implies no fast_install, which is unacceptable.
13753 # Some rework will be needed to allow for fast_install
13754 # before this can be enabled.
13755 hardcode_into_libs=yes
9c60689e 13756
47aaa820
DWT
13757 # Append ld.so.conf contents to the search path
13758 if test -f /etc/ld.so.conf; then
13759 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' ' '`
13760 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13761 fi
9c60689e 13762
47aaa820
DWT
13763 # We used to test for /lib/ld.so.1 and disable shared libraries on
13764 # powerpc, because MkLinux only supported shared libraries with the
13765 # GNU dynamic linker. Since this was broken with cross compilers,
13766 # most powerpc-linux boxes support dynamic linking these days and
13767 # people can always --disable-shared, the test was removed, and we
13768 # assume the GNU/Linux dynamic linker is in use.
13769 dynamic_linker='GNU/Linux ld.so'
9c60689e 13770 ;;
47aaa820
DWT
13771
13772netbsdelf*-gnu)
13773 version_type=linux
13774 need_lib_prefix=no
13775 need_version=no
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13777 soname_spec='${libname}${release}${shared_ext}$major'
13778 shlibpath_var=LD_LIBRARY_PATH
13779 shlibpath_overrides_runpath=no
13780 hardcode_into_libs=yes
13781 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13782 ;;
47aaa820
DWT
13783
13784netbsd*)
13785 version_type=sunos
13786 need_lib_prefix=no
13787 need_version=no
13788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13791 dynamic_linker='NetBSD (a.out) ld.so'
13792 else
13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13794 soname_spec='${libname}${release}${shared_ext}$major'
13795 dynamic_linker='NetBSD ld.elf_so'
13796 fi
13797 shlibpath_var=LD_LIBRARY_PATH
13798 shlibpath_overrides_runpath=yes
13799 hardcode_into_libs=yes
9c60689e 13800 ;;
9c60689e 13801
47aaa820
DWT
13802newsos6)
13803 version_type=linux
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 shlibpath_overrides_runpath=yes
13807 ;;
9c60689e 13808
47aaa820
DWT
13809*nto* | *qnx*)
13810 version_type=qnx
13811 need_lib_prefix=no
13812 need_version=no
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13814 soname_spec='${libname}${release}${shared_ext}$major'
13815 shlibpath_var=LD_LIBRARY_PATH
13816 shlibpath_overrides_runpath=no
13817 hardcode_into_libs=yes
13818 dynamic_linker='ldqnx.so'
13819 ;;
9c60689e 13820
47aaa820
DWT
13821openbsd*)
13822 version_type=sunos
13823 sys_lib_dlsearch_path_spec="/usr/lib"
13824 need_lib_prefix=no
13825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13826 case $host_os in
13827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13828 *) need_version=no ;;
13829 esac
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13832 shlibpath_var=LD_LIBRARY_PATH
13833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13834 case $host_os in
13835 openbsd2.[89] | openbsd2.[89].*)
13836 shlibpath_overrides_runpath=no
13837 ;;
13838 *)
13839 shlibpath_overrides_runpath=yes
13840 ;;
13841 esac
13842 else
13843 shlibpath_overrides_runpath=yes
13844 fi
13845 ;;
9c60689e 13846
47aaa820
DWT
13847os2*)
13848 libname_spec='$name'
13849 shrext_cmds=".dll"
13850 need_lib_prefix=no
13851 library_names_spec='$libname${shared_ext} $libname.a'
13852 dynamic_linker='OS/2 ld.exe'
13853 shlibpath_var=LIBPATH
13854 ;;
9c60689e 13855
47aaa820
DWT
13856osf3* | osf4* | osf5*)
13857 version_type=osf
13858 need_lib_prefix=no
13859 need_version=no
13860 soname_spec='${libname}${release}${shared_ext}$major'
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862 shlibpath_var=LD_LIBRARY_PATH
13863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13865 ;;
9c60689e 13866
47aaa820
DWT
13867rdos*)
13868 dynamic_linker=no
13869 ;;
9c60689e 13870
47aaa820
DWT
13871solaris*)
13872 version_type=linux
13873 need_lib_prefix=no
13874 need_version=no
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 shlibpath_overrides_runpath=yes
13879 hardcode_into_libs=yes
13880 # ldd complains unless libraries are executable
13881 postinstall_cmds='chmod +x $lib'
13882 ;;
9c60689e 13883
47aaa820
DWT
13884sunos4*)
13885 version_type=sunos
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13888 shlibpath_var=LD_LIBRARY_PATH
13889 shlibpath_overrides_runpath=yes
13890 if test "$with_gnu_ld" = yes; then
13891 need_lib_prefix=no
13892 fi
13893 need_version=yes
13894 ;;
9c60689e 13895
47aaa820
DWT
13896sysv4 | sysv4.3*)
13897 version_type=linux
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 case $host_vendor in
13902 sni)
13903 shlibpath_overrides_runpath=no
13904 need_lib_prefix=no
13905 runpath_var=LD_RUN_PATH
9c60689e 13906 ;;
47aaa820
DWT
13907 siemens)
13908 need_lib_prefix=no
9c60689e 13909 ;;
47aaa820
DWT
13910 motorola)
13911 need_lib_prefix=no
13912 need_version=no
13913 shlibpath_overrides_runpath=no
13914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13915 ;;
13916 esac
9c60689e 13917 ;;
9c60689e 13918
47aaa820
DWT
13919sysv4*MP*)
13920 if test -d /usr/nec ;then
13921 version_type=linux
13922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13923 soname_spec='$libname${shared_ext}.$major'
13924 shlibpath_var=LD_LIBRARY_PATH
13925 fi
13926 ;;
9c60689e 13927
47aaa820
DWT
13928sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13929 version_type=freebsd-elf
13930 need_lib_prefix=no
13931 need_version=no
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 shlibpath_overrides_runpath=yes
13936 hardcode_into_libs=yes
13937 if test "$with_gnu_ld" = yes; then
13938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13939 else
13940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13941 case $host_os in
13942 sco3.2v5*)
13943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13944 ;;
13945 esac
13946 fi
13947 sys_lib_dlsearch_path_spec='/usr/lib'
13948 ;;
9c60689e 13949
47aaa820
DWT
13950tpf*)
13951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13952 version_type=linux
13953 need_lib_prefix=no
13954 need_version=no
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 shlibpath_var=LD_LIBRARY_PATH
13957 shlibpath_overrides_runpath=no
13958 hardcode_into_libs=yes
13959 ;;
9c60689e 13960
47aaa820
DWT
13961uts4*)
13962 version_type=linux
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 shlibpath_var=LD_LIBRARY_PATH
13966 ;;
9c60689e 13967
47aaa820
DWT
13968*)
13969 dynamic_linker=no
e9c9a47c
DWT
13970 ;;
13971esac
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13973$as_echo "$dynamic_linker" >&6; }
13974test "$dynamic_linker" = no && can_build_shared=no
13975
13976variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13977if test "$GCC" = yes; then
13978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 13979fi
9c60689e 13980
e9c9a47c
DWT
13981if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 13983fi
e9c9a47c
DWT
13984if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 13986fi
9c60689e 13987
9c60689e 13988
9c60689e 13989
9c60689e 13990
47aaa820 13991
47aaa820 13992
47aaa820 13993
9c60689e 13994
9c60689e 13995
47aaa820 13996
47aaa820 13997
47aaa820 13998
47aaa820 13999
47aaa820 14000
47aaa820 14001
47aaa820 14002
47aaa820 14003
9c60689e 14004
9c60689e 14005
9c60689e 14006
9c60689e 14007
9c60689e 14008
e9c9a47c
DWT
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14024$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14025hardcode_action_CXX=
14026if test -n "$hardcode_libdir_flag_spec_CXX" ||
14027 test -n "$runpath_var_CXX" ||
14028 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14029
14030 # We can hardcode non-existent directories.
14031 if test "$hardcode_direct_CXX" != no &&
14032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14033 # have to relink, otherwise we might link with an installed library
14034 # when we should be linking with a yet-to-be-installed one
14035 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14036 test "$hardcode_minus_L_CXX" != no; then
14037 # Linking always hardcodes the temporary library directory.
14038 hardcode_action_CXX=relink
14039 else
14040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14041 hardcode_action_CXX=immediate
14042 fi
14043else
14044 # We cannot hardcode anything, or else we can only hardcode existing
14045 # directories.
14046 hardcode_action_CXX=unsupported
14047fi
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14049$as_echo "$hardcode_action_CXX" >&6; }
14050
14051if test "$hardcode_action_CXX" = relink ||
14052 test "$inherit_rpath_CXX" = yes; then
14053 # Fast installation is not supported
14054 enable_fast_install=no
14055elif test "$shlibpath_overrides_runpath" = yes ||
14056 test "$enable_shared" = no; then
14057 # Fast installation is not necessary
14058 enable_fast_install=needless
47aaa820 14059fi
9c60689e 14060
47aaa820 14061
47aaa820 14062
e9c9a47c
DWT
14063
14064
14065
14066
14067 fi # test -n "$compiler"
14068
14069 CC=$lt_save_CC
14070 LDCXX=$LD
14071 LD=$lt_save_LD
14072 GCC=$lt_save_GCC
14073 with_gnu_ld=$lt_save_with_gnu_ld
14074 lt_cv_path_LDCXX=$lt_cv_path_LD
14075 lt_cv_path_LD=$lt_save_path_LD
14076 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14077 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14078fi # test "$_lt_caught_CXX_error" != yes
14079
14080ac_ext=c
14081ac_cpp='$CPP $CPPFLAGS'
14082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14084ac_compiler_gnu=$ac_cv_c_compiler_gnu
14085
14086
14087ac_ext=mm
14088ac_cpp='$OBJCXXCPP $CPPFLAGS'
14089ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14092if test -n "$ac_tool_prefix"; then
14093 for ac_prog in g++ objc++ objcxx c++ CXX
14094 do
14095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14096set dummy $ac_tool_prefix$ac_prog; ac_word=$2
632b71ea
DWT
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 14099if test "${ac_cv_prog_OBJCXX+set}" = set; then :
632b71ea
DWT
14100 $as_echo_n "(cached) " >&6
14101else
e9c9a47c
DWT
14102 if test -n "$OBJCXX"; then
14103 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
632b71ea
DWT
14104else
14105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106for as_dir in $PATH
14107do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14112 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
632b71ea
DWT
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116done
14117 done
14118IFS=$as_save_IFS
14119
14120fi
14121fi
e9c9a47c
DWT
14122OBJCXX=$ac_cv_prog_OBJCXX
14123if test -n "$OBJCXX"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14125$as_echo "$OBJCXX" >&6; }
632b71ea
DWT
14126else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128$as_echo "no" >&6; }
14129fi
14130
14131
e9c9a47c
DWT
14132 test -n "$OBJCXX" && break
14133 done
632b71ea 14134fi
e9c9a47c
DWT
14135if test -z "$OBJCXX"; then
14136 ac_ct_OBJCXX=$OBJCXX
14137 for ac_prog in g++ objc++ objcxx c++ CXX
47aaa820
DWT
14138do
14139 # Extract the first word of "$ac_prog", so it can be a program name with args.
14140set dummy $ac_prog; ac_word=$2
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 14143if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
47aaa820
DWT
14144 $as_echo_n "(cached) " >&6
14145else
e9c9a47c
DWT
14146 if test -n "$ac_ct_OBJCXX"; then
14147 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
47aaa820
DWT
14148else
14149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150for as_dir in $PATH
14151do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14156 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
47aaa820
DWT
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14159 fi
14160done
14161 done
14162IFS=$as_save_IFS
9c60689e 14163
9c60689e 14164fi
9c60689e 14165fi
e9c9a47c
DWT
14166ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
14167if test -n "$ac_ct_OBJCXX"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
14169$as_echo "$ac_ct_OBJCXX" >&6; }
47aaa820
DWT
14170else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172$as_echo "no" >&6; }
9c60689e
DWT
14173fi
14174
14175
e9c9a47c 14176 test -n "$ac_ct_OBJCXX" && break
47aaa820 14177done
e9c9a47c
DWT
14178
14179 if test "x$ac_ct_OBJCXX" = x; then
14180 OBJCXX="g++"
14181 else
14182 case $cross_compiling:$ac_tool_warned in
14183yes:)
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14186ac_tool_warned=yes ;;
14187esac
14188 OBJCXX=$ac_ct_OBJCXX
14189 fi
14190fi
14191
14192# Provide some information about the compiler.
14193$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
14194set X $ac_compile
14195ac_compiler=$2
14196for ac_option in --version -v -V -qversion; do
14197 { { ac_try="$ac_compiler $ac_option >&5"
632b71ea
DWT
14198case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201esac
14202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14203$as_echo "$ac_try_echo"; } >&5
e9c9a47c 14204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
632b71ea 14205 ac_status=$?
e9c9a47c
DWT
14206 if test -s conftest.err; then
14207 sed '10a\
14208... rest of stderr output deleted ...
14209 10q' conftest.err >conftest.er1
14210 cat conftest.er1 >&5
14211 fi
14212 rm -f conftest.er1 conftest.err
632b71ea
DWT
14213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14214 test $ac_status = 0; }
e9c9a47c 14215done
9c60689e 14216
e9c9a47c
DWT
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
14218$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
14219if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
632b71ea
DWT
14220 $as_echo_n "(cached) " >&6
14221else
e9c9a47c 14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 14223/* end confdefs.h. */
e9c9a47c
DWT
14224
14225int
14226main ()
14227{
14228#ifndef __GNUC__
14229 choke me
14230#endif
14231
14232 ;
14233 return 0;
14234}
632b71ea 14235_ACEOF
e9c9a47c
DWT
14236if ac_fn_objcxx_try_compile "$LINENO"; then :
14237 ac_compiler_gnu=yes
14238else
14239 ac_compiler_gnu=no
632b71ea 14240fi
e9c9a47c
DWT
14241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 14243
632b71ea 14244fi
e9c9a47c
DWT
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
14246$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
14247if test $ac_compiler_gnu = yes; then
14248 GOBJCXX=yes
14249else
14250 GOBJCXX=
632b71ea 14251fi
e9c9a47c
DWT
14252ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
14253ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
14255$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
14256if test "${ac_cv_prog_objcxx_g+set}" = set; then :
632b71ea 14257 $as_echo_n "(cached) " >&6
47aaa820 14258else
e9c9a47c
DWT
14259 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
14260 ac_objcxx_werror_flag=yes
14261 ac_cv_prog_objcxx_g=no
14262 OBJCXXFLAGS="-g"
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 14264/* end confdefs.h. */
9c60689e 14265
e9c9a47c
DWT
14266int
14267main ()
14268{
9c60689e 14269
e9c9a47c
DWT
14270 ;
14271 return 0;
14272}
14273_ACEOF
14274if ac_fn_objcxx_try_compile "$LINENO"; then :
14275 ac_cv_prog_objcxx_g=yes
632b71ea 14276else
e9c9a47c
DWT
14277 OBJCXXFLAGS=""
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279/* end confdefs.h. */
9c60689e 14280
e9c9a47c
DWT
14281int
14282main ()
14283{
9c60689e 14284
e9c9a47c
DWT
14285 ;
14286 return 0;
14287}
14288_ACEOF
14289if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 14290
47aaa820 14291else
e9c9a47c
DWT
14292 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
14293 OBJCXXFLAGS="-g"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h. */
9c60689e 14296
e9c9a47c
DWT
14297int
14298main ()
14299{
9c60689e 14300
e9c9a47c
DWT
14301 ;
14302 return 0;
14303}
14304_ACEOF
14305if ac_fn_objcxx_try_compile "$LINENO"; then :
14306 ac_cv_prog_objcxx_g=yes
47aaa820 14307fi
e9c9a47c 14308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 14309fi
e9c9a47c 14310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 14311fi
e9c9a47c
DWT
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
790e5246 14314fi
e9c9a47c
DWT
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
14316$as_echo "$ac_cv_prog_objcxx_g" >&6; }
14317if test "$ac_test_OBJCXXFLAGS" = set; then
14318 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
14319elif test $ac_cv_prog_objcxx_g = yes; then
14320 if test "$GOBJCXX" = yes; then
14321 OBJCXXFLAGS="-g -O2"
14322 else
14323 OBJCXXFLAGS="-g"
632b71ea 14324 fi
632b71ea 14325else
e9c9a47c
DWT
14326 if test "$GOBJCXX" = yes; then
14327 OBJCXXFLAGS="-O2"
14328 else
14329 OBJCXXFLAGS=
14330 fi
632b71ea 14331fi
e9c9a47c
DWT
14332ac_ext=c
14333ac_cpp='$CPP $CPPFLAGS'
14334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 14337
9c60689e 14338
e9c9a47c
DWT
14339# Check whether --with-frameworks was given.
14340if test "${with_frameworks+set}" = set; then :
14341 withval=$with_frameworks;
14342 for framework in $withval; do
9c60689e 14343
e9c9a47c
DWT
14344 for element in -F$framework; do
14345 haveit=
14346 for x in $CFLAGS; do
9c60689e 14347
e9c9a47c
DWT
14348 acl_save_prefix="$prefix"
14349 prefix="$acl_final_prefix"
14350 acl_save_exec_prefix="$exec_prefix"
14351 exec_prefix="$acl_final_exec_prefix"
14352 eval x=\"$x\"
14353 exec_prefix="$acl_save_exec_prefix"
14354 prefix="$acl_save_prefix"
14355
14356 if test "X$x" = "X$element"; then
14357 haveit=yes
14358 break
14359 fi
14360 done
14361 if test -z "$haveit"; then
14362 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14363 fi
9c60689e 14364 done
9c60689e 14365
94690cff 14366
e9c9a47c
DWT
14367 for element in -F$framework; do
14368 haveit=
14369 for x in $CXXFLAGS; do
9c60689e 14370
e9c9a47c
DWT
14371 acl_save_prefix="$prefix"
14372 prefix="$acl_final_prefix"
14373 acl_save_exec_prefix="$exec_prefix"
14374 exec_prefix="$acl_final_exec_prefix"
14375 eval x=\"$x\"
14376 exec_prefix="$acl_save_exec_prefix"
14377 prefix="$acl_save_prefix"
9c60689e 14378
e9c9a47c
DWT
14379 if test "X$x" = "X$element"; then
14380 haveit=yes
14381 break
14382 fi
14383 done
14384 if test -z "$haveit"; then
14385 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14386 fi
14387 done
9c60689e 14388
e9c9a47c
DWT
14389
14390 for element in -F$framework; do
14391 haveit=
14392 for x in $OBJCCXXFLAGS; do
14393
14394 acl_save_prefix="$prefix"
14395 prefix="$acl_final_prefix"
14396 acl_save_exec_prefix="$exec_prefix"
14397 exec_prefix="$acl_final_exec_prefix"
14398 eval x=\"$x\"
14399 exec_prefix="$acl_save_exec_prefix"
14400 prefix="$acl_save_prefix"
14401
14402 if test "X$x" = "X$element"; then
14403 haveit=yes
14404 break
14405 fi
14406 done
14407 if test -z "$haveit"; then
14408 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14409 fi
9c60689e 14410 done
632b71ea 14411
e9c9a47c 14412 done
9c60689e 14413
e9c9a47c 14414fi
9c60689e 14415
e9c9a47c
DWT
14416ac_ext=cpp
14417ac_cpp='$CXXCPP $CPPFLAGS'
14418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e
DWT
14421
14422
632b71ea 14423 apr_found="no"
9c60689e 14424
632b71ea
DWT
14425 if test "$target_os" = "os2-emx"; then
14426 # Scripts don't pass test -x on OS/2
14427 TEST_X="test -f"
14428 else
14429 TEST_X="test -x"
14430 fi
9c60689e 14431
632b71ea 14432 acceptable_majors="1"
9c60689e 14433
632b71ea
DWT
14434 apr_temp_acceptable_apr_config=""
14435 for apr_temp_major in $acceptable_majors
14436 do
14437 case $apr_temp_major in
14438 0)
14439 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14440 ;;
14441 *)
14442 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14443 ;;
14444 esac
14445 done
9c60689e 14446
632b71ea
DWT
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14448$as_echo_n "checking for APR... " >&6; }
9c60689e 14449
632b71ea
DWT
14450# Check whether --with-apr was given.
14451if test "${with_apr+set}" = set; then :
14452 withval=$with_apr;
14453 if test "$withval" = "no" || test "$withval" = "yes"; then
14454 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14455 fi
9c60689e 14456
632b71ea
DWT
14457 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14458 do
14459 for lookdir in "$withval/bin" "$withval"
14460 do
14461 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14462 apr_config="$lookdir/$apr_temp_apr_config_file"
9c60689e 14463
632b71ea
DWT
14464 apr_found="yes"
14465 break 2
14466 fi
14467 done
14468 done
9c60689e 14469
632b71ea
DWT
14470 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14471 apr_config="$withval"
14472 apr_found="yes"
14473 fi
9c60689e 14474
632b71ea
DWT
14475 if test "$apr_found" != "yes"; then
14476 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
14477 fi
9c60689e 14478
632b71ea 14479else
9c60689e 14480
632b71ea
DWT
14481 if test -n "1" && test "1" = "1"; then
14482 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14483 do
14484 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14485 apr_config="$apr_temp_apr_config_file"
9c60689e 14486
632b71ea
DWT
14487 apr_found="yes"
14488 break
14489 else
14490 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14491 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14492 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
9c60689e 14493
632b71ea
DWT
14494 apr_found="yes"
14495 break 2
14496 fi
14497 done
14498 fi
14499 done
14500 fi
14501 if test "$apr_found" = "no" && test -d ""; then
14502 apr_temp_abs_srcdir="`cd && pwd`"
14503 apr_found="reconfig"
14504 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14505 case $apr_bundled_major in
14506 "")
14507 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14508 ;;
14509 0)
14510 apr_temp_apr_config_file="apr-config"
14511 ;;
14512 *)
14513 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14514 ;;
14515 esac
14516 if test -n ""; then
14517 apr_config="/$apr_temp_apr_config_file"
14518 else
14519 apr_config="/$apr_temp_apr_config_file"
14520 fi
14521 fi
9c60689e 14522
632b71ea 14523fi
9c60689e 14524
9c60689e 14525
632b71ea
DWT
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14527$as_echo "$apr_found" >&6; }
9c60689e 14528
632b71ea
DWT
14529case $apr_found in #(
14530 yes) :
9c60689e
DWT
14531
14532
632b71ea
DWT
14533 for element in `$apr_config --includes`; do
14534 haveit=
14535 for x in $CPPFLAGS; do
9c60689e
DWT
14536
14537 acl_save_prefix="$prefix"
14538 prefix="$acl_final_prefix"
14539 acl_save_exec_prefix="$exec_prefix"
14540 exec_prefix="$acl_final_exec_prefix"
632b71ea 14541 eval x=\"$x\"
9c60689e
DWT
14542 exec_prefix="$acl_save_exec_prefix"
14543 prefix="$acl_save_prefix"
14544
632b71ea
DWT
14545 if test "X$x" = "X$element"; then
14546 haveit=yes
14547 break
9c60689e 14548 fi
632b71ea
DWT
14549 done
14550 if test -z "$haveit"; then
14551 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9c60689e 14552 fi
632b71ea 14553 done
9c60689e 14554
632b71ea 14555 LTLIBAPR=`$apr_config --link-libtool`
9c60689e 14556
632b71ea
DWT
14557 ;; #(
14558 *) :
14559 as_fn_error "You need apr" "$LINENO" 5 ;;
14560esac
14561
14562
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14564$as_echo_n "checking for a readline compatible library... " >&6; }
14565if test "${vl_cv_lib_readline+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567else
14568
14569 ORIG_LIBS="$LIBS"
14570 for readline_lib in readline edit editline; do
14571 for termcap_lib in "" termcap curses ncurses; do
14572 if test -z "$termcap_lib"; then
14573 TRY_LIB="-l$readline_lib"
14574 else
14575 TRY_LIB="-l$readline_lib -l$termcap_lib"
14576 fi
14577 LIBS="$ORIG_LIBS $TRY_LIB"
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579/* end confdefs.h. */
14580
14581/* Override any GCC internal prototype to avoid an error.
14582 Use char because int might match the return type of a GCC
14583 builtin and then its argument prototype would still apply. */
14584#ifdef __cplusplus
14585extern "C"
14586#endif
14587char readline ();
14588int
14589main ()
14590{
14591return readline ();
14592 ;
14593 return 0;
14594}
14595_ACEOF
14596if ac_fn_cxx_try_link "$LINENO"; then :
14597 vl_cv_lib_readline="$TRY_LIB"
14598fi
14599rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14601 if test -n "$vl_cv_lib_readline"; then
9c60689e
DWT
14602 break
14603 fi
14604 done
632b71ea
DWT
14605 if test -n "$vl_cv_lib_readline"; then
14606 break
14607 fi
14608 done
14609 if test -z "$vl_cv_lib_readline"; then
14610 vl_cv_lib_readline="no"
14611 LIBS="$ORIG_LIBS"
14612 fi
9c60689e 14613
632b71ea
DWT
14614fi
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14616$as_echo "$vl_cv_lib_readline" >&6; }
9c60689e 14617
632b71ea 14618 if test "$vl_cv_lib_readline" != "no"; then
9c60689e 14619
632b71ea 14620$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9c60689e 14621
632b71ea
DWT
14622 for ac_header in readline.h readline/readline.h
14623do :
14624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14625ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14626eval as_val=\$$as_ac_Header
14627 if test "x$as_val" = x""yes; then :
14628 cat >>confdefs.h <<_ACEOF
14629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14630_ACEOF
9c60689e 14631
632b71ea 14632fi
9c60689e 14633
632b71ea 14634done
9c60689e 14635
632b71ea
DWT
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14637$as_echo_n "checking whether readline supports history... " >&6; }
14638if test "${vl_cv_lib_readline_history+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14640else
9c60689e 14641
632b71ea
DWT
14642 vl_cv_lib_readline_history="no"
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644/* end confdefs.h. */
9c60689e 14645
632b71ea
DWT
14646/* Override any GCC internal prototype to avoid an error.
14647 Use char because int might match the return type of a GCC
14648 builtin and then its argument prototype would still apply. */
14649#ifdef __cplusplus
14650extern "C"
14651#endif
14652char add_history ();
14653int
14654main ()
14655{
14656return add_history ();
14657 ;
14658 return 0;
14659}
14660_ACEOF
14661if ac_fn_cxx_try_link "$LINENO"; then :
14662 vl_cv_lib_readline_history="yes"
14663fi
14664rm -f core conftest.err conftest.$ac_objext \
14665 conftest$ac_exeext conftest.$ac_ext
9c60689e 14666
632b71ea
DWT
14667fi
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14669$as_echo "$vl_cv_lib_readline_history" >&6; }
14670 if test "$vl_cv_lib_readline_history" = "yes"; then
9c60689e 14671
632b71ea 14672$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
9c60689e 14673
632b71ea
DWT
14674 for ac_header in history.h readline/history.h
14675do :
14676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14677ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14678eval as_val=\$$as_ac_Header
14679 if test "x$as_val" = x""yes; then :
14680 cat >>confdefs.h <<_ACEOF
14681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14682_ACEOF
9c60689e 14683
632b71ea 14684fi
9c60689e 14685
632b71ea 14686done
9c60689e 14687
9c60689e 14688 fi
632b71ea 14689 fi
9c60689e 14690
632b71ea
DWT
14691ac_ext=c
14692ac_cpp='$CPP $CPPFLAGS'
14693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 14696
9c60689e 14697
632b71ea
DWT
14698 if test "X$prefix" = "XNONE"; then
14699 acl_final_prefix="$ac_default_prefix"
14700 else
14701 acl_final_prefix="$prefix"
9c60689e 14702 fi
632b71ea
DWT
14703 if test "X$exec_prefix" = "XNONE"; then
14704 acl_final_exec_prefix='${prefix}'
9c60689e 14705 else
632b71ea 14706 acl_final_exec_prefix="$exec_prefix"
9c60689e 14707 fi
632b71ea
DWT
14708 acl_save_prefix="$prefix"
14709 prefix="$acl_final_prefix"
14710 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14711 prefix="$acl_save_prefix"
9c60689e
DWT
14712
14713
632b71ea
DWT
14714# Check whether --with-gnu-ld was given.
14715if test "${with_gnu_ld+set}" = set; then :
14716 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 14717else
632b71ea 14718 with_gnu_ld=no
9c60689e
DWT
14719fi
14720
632b71ea
DWT
14721# Prepare PATH_SEPARATOR.
14722# The user is always right.
14723if test "${PATH_SEPARATOR+set}" != set; then
14724 echo "#! /bin/sh" >conf$$.sh
14725 echo "exit 0" >>conf$$.sh
14726 chmod +x conf$$.sh
14727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14728 PATH_SEPARATOR=';'
14729 else
14730 PATH_SEPARATOR=:
9c60689e 14731 fi
632b71ea
DWT
14732 rm -f conf$$.sh
14733fi
14734ac_prog=ld
14735if test "$GCC" = yes; then
14736 # Check if gcc -print-prog-name=ld gives a path.
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14738$as_echo_n "checking for ld used by GCC... " >&6; }
14739 case $host in
14740 *-*-mingw*)
14741 # gcc leaves a trailing carriage return which upsets mingw
14742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14743 *)
14744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14745 esac
14746 case $ac_prog in
14747 # Accept absolute paths.
14748 [\\/]* | [A-Za-z]:[\\/]*)
14749 re_direlt='/[^/][^/]*/\.\./'
14750 # Canonicalize the path of ld
14751 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14752 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14753 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14754 done
14755 test -z "$LD" && LD="$ac_prog"
14756 ;;
14757 "")
14758 # If it fails, then pretend we aren't using GCC.
14759 ac_prog=ld
14760 ;;
14761 *)
14762 # If it is relative, then search for the first ld in PATH.
14763 with_gnu_ld=unknown
14764 ;;
14765 esac
14766elif test "$with_gnu_ld" = yes; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14768$as_echo_n "checking for GNU ld... " >&6; }
9c60689e 14769else
632b71ea
DWT
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14771$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 14772fi
632b71ea
DWT
14773if test "${acl_cv_path_LD+set}" = set; then :
14774 $as_echo_n "(cached) " >&6
14775else
14776 if test -z "$LD"; then
14777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14778 for ac_dir in $PATH; do
14779 test -z "$ac_dir" && ac_dir=.
14780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14781 acl_cv_path_LD="$ac_dir/$ac_prog"
14782 # Check to see if the program is GNU ld. I'd rather use --version,
14783 # but apparently some GNU ld's only accept -v.
14784 # Break only if it was the GNU/non-GNU ld that we prefer.
14785 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14786 *GNU* | *'with BFD'*)
14787 test "$with_gnu_ld" != no && break ;;
14788 *)
14789 test "$with_gnu_ld" != yes && break ;;
14790 esac
9c60689e 14791 fi
632b71ea
DWT
14792 done
14793 IFS="$ac_save_ifs"
9c60689e 14794else
632b71ea 14795 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e 14796fi
632b71ea
DWT
14797fi
14798
14799LD="$acl_cv_path_LD"
14800if test -n "$LD"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14802$as_echo "$LD" >&6; }
9c60689e 14803else
632b71ea
DWT
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805$as_echo "no" >&6; }
9c60689e 14806fi
632b71ea
DWT
14807test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14809$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14810if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14811 $as_echo_n "(cached) " >&6
9c60689e 14812else
632b71ea
DWT
14813 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14814case `$LD -v 2>&1 </dev/null` in
14815*GNU* | *'with BFD'*)
14816 acl_cv_prog_gnu_ld=yes ;;
14817*)
14818 acl_cv_prog_gnu_ld=no ;;
14819esac
9c60689e 14820fi
632b71ea
DWT
14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14822$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14823with_gnu_ld=$acl_cv_prog_gnu_ld
9c60689e
DWT
14824
14825
14826
9c60689e 14827
632b71ea
DWT
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14829$as_echo_n "checking for shared library run path origin... " >&6; }
14830if test "${acl_cv_rpath+set}" = set; then :
14831 $as_echo_n "(cached) " >&6
9c60689e 14832else
632b71ea
DWT
14833
14834 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14835 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14836 . ./conftest.sh
14837 rm -f ./conftest.sh
14838 acl_cv_rpath=done
14839
9c60689e 14840fi
632b71ea
DWT
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14842$as_echo "$acl_cv_rpath" >&6; }
14843 wl="$acl_cv_wl"
14844 acl_libext="$acl_cv_libext"
14845 acl_shlibext="$acl_cv_shlibext"
14846 acl_libname_spec="$acl_cv_libname_spec"
14847 acl_library_names_spec="$acl_cv_library_names_spec"
14848 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14849 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14850 acl_hardcode_direct="$acl_cv_hardcode_direct"
14851 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14852 # Check whether --enable-rpath was given.
14853if test "${enable_rpath+set}" = set; then :
14854 enableval=$enable_rpath; :
14855else
14856 enable_rpath=yes
14857fi
14858
14859
14860
14861 acl_libdirstem=lib
14862 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14863 if test -n "$searchpath"; then
14864 acl_save_IFS="${IFS= }"; IFS=":"
14865 for searchdir in $searchpath; do
14866 if test -d "$searchdir"; then
14867 case "$searchdir" in
14868 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14869 *) searchdir=`cd "$searchdir" && pwd`
14870 case "$searchdir" in
14871 */lib64 ) acl_libdirstem=lib64 ;;
14872 esac ;;
14873 esac
14874 fi
14875 done
14876 IFS="$acl_save_IFS"
14877 fi
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887 use_additional=yes
14888
14889 acl_save_prefix="$prefix"
14890 prefix="$acl_final_prefix"
14891 acl_save_exec_prefix="$exec_prefix"
14892 exec_prefix="$acl_final_exec_prefix"
14893
14894 eval additional_includedir=\"$includedir\"
14895 eval additional_libdir=\"$libdir\"
14896
14897 exec_prefix="$acl_save_exec_prefix"
14898 prefix="$acl_save_prefix"
14899
14900
14901# Check whether --with-libiconv-prefix was given.
14902if test "${with_libiconv_prefix+set}" = set; then :
14903 withval=$with_libiconv_prefix;
14904 if test "X$withval" = "Xno"; then
14905 use_additional=no
14906 else
14907 if test "X$withval" = "X"; then
14908
14909 acl_save_prefix="$prefix"
14910 prefix="$acl_final_prefix"
14911 acl_save_exec_prefix="$exec_prefix"
14912 exec_prefix="$acl_final_exec_prefix"
14913
14914 eval additional_includedir=\"$includedir\"
14915 eval additional_libdir=\"$libdir\"
14916
14917 exec_prefix="$acl_save_exec_prefix"
14918 prefix="$acl_save_prefix"
14919
14920 else
14921 additional_includedir="$withval/include"
14922 additional_libdir="$withval/$acl_libdirstem"
14923 fi
14924 fi
14925
14926fi
14927
14928 LIBICONV=
14929 LTLIBICONV=
14930 INCICONV=
14931 LIBICONV_PREFIX=
14932 rpathdirs=
14933 ltrpathdirs=
14934 names_already_handled=
14935 names_next_round='iconv '
14936 while test -n "$names_next_round"; do
14937 names_this_round="$names_next_round"
14938 names_next_round=
14939 for name in $names_this_round; do
14940 already_handled=
14941 for n in $names_already_handled; do
14942 if test "$n" = "$name"; then
14943 already_handled=yes
14944 break
14945 fi
14946 done
14947 if test -z "$already_handled"; then
14948 names_already_handled="$names_already_handled $name"
14949 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14950 eval value=\"\$HAVE_LIB$uppername\"
14951 if test -n "$value"; then
14952 if test "$value" = yes; then
14953 eval value=\"\$LIB$uppername\"
14954 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14955 eval value=\"\$LTLIB$uppername\"
14956 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14957 else
14958 :
14959 fi
14960 else
14961 found_dir=
14962 found_la=
14963 found_so=
14964 found_a=
14965 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14966 if test -n "$acl_shlibext"; then
14967 shrext=".$acl_shlibext" # typically: shrext=.so
14968 else
14969 shrext=
14970 fi
14971 if test $use_additional = yes; then
14972 dir="$additional_libdir"
14973 if test -n "$acl_shlibext"; then
14974 if test -f "$dir/$libname$shrext"; then
14975 found_dir="$dir"
14976 found_so="$dir/$libname$shrext"
14977 else
14978 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14979 ver=`(cd "$dir" && \
14980 for f in "$libname$shrext".*; do echo "$f"; done \
14981 | sed -e "s,^$libname$shrext\\\\.,," \
14982 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14983 | sed 1q ) 2>/dev/null`
14984 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14985 found_dir="$dir"
14986 found_so="$dir/$libname$shrext.$ver"
14987 fi
14988 else
14989 eval library_names=\"$acl_library_names_spec\"
14990 for f in $library_names; do
14991 if test -f "$dir/$f"; then
14992 found_dir="$dir"
14993 found_so="$dir/$f"
14994 break
14995 fi
14996 done
14997 fi
14998 fi
14999 fi
15000 if test "X$found_dir" = "X"; then
15001 if test -f "$dir/$libname.$acl_libext"; then
15002 found_dir="$dir"
15003 found_a="$dir/$libname.$acl_libext"
15004 fi
15005 fi
15006 if test "X$found_dir" != "X"; then
15007 if test -f "$dir/$libname.la"; then
15008 found_la="$dir/$libname.la"
15009 fi
15010 fi
15011 fi
15012 if test "X$found_dir" = "X"; then
15013 for x in $LDFLAGS $LTLIBICONV; do
15014
15015 acl_save_prefix="$prefix"
15016 prefix="$acl_final_prefix"
15017 acl_save_exec_prefix="$exec_prefix"
15018 exec_prefix="$acl_final_exec_prefix"
15019 eval x=\"$x\"
15020 exec_prefix="$acl_save_exec_prefix"
15021 prefix="$acl_save_prefix"
15022
15023 case "$x" in
15024 -L*)
15025 dir=`echo "X$x" | sed -e 's/^X-L//'`
15026 if test -n "$acl_shlibext"; then
15027 if test -f "$dir/$libname$shrext"; then
15028 found_dir="$dir"
15029 found_so="$dir/$libname$shrext"
15030 else
15031 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15032 ver=`(cd "$dir" && \
15033 for f in "$libname$shrext".*; do echo "$f"; done \
15034 | sed -e "s,^$libname$shrext\\\\.,," \
15035 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15036 | sed 1q ) 2>/dev/null`
15037 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15038 found_dir="$dir"
15039 found_so="$dir/$libname$shrext.$ver"
15040 fi
15041 else
15042 eval library_names=\"$acl_library_names_spec\"
15043 for f in $library_names; do
15044 if test -f "$dir/$f"; then
15045 found_dir="$dir"
15046 found_so="$dir/$f"
15047 break
15048 fi
15049 done
15050 fi
15051 fi
15052 fi
15053 if test "X$found_dir" = "X"; then
15054 if test -f "$dir/$libname.$acl_libext"; then
15055 found_dir="$dir"
15056 found_a="$dir/$libname.$acl_libext"
15057 fi
15058 fi
15059 if test "X$found_dir" != "X"; then
15060 if test -f "$dir/$libname.la"; then
15061 found_la="$dir/$libname.la"
15062 fi
15063 fi
15064 ;;
15065 esac
15066 if test "X$found_dir" != "X"; then
15067 break
15068 fi
15069 done
15070 fi
15071 if test "X$found_dir" != "X"; then
15072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15073 if test "X$found_so" != "X"; then
15074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15076 else
15077 haveit=
15078 for x in $ltrpathdirs; do
15079 if test "X$x" = "X$found_dir"; then
15080 haveit=yes
15081 break
15082 fi
15083 done
15084 if test -z "$haveit"; then
15085 ltrpathdirs="$ltrpathdirs $found_dir"
15086 fi
15087 if test "$acl_hardcode_direct" = yes; then
15088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15089 else
15090 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15092 haveit=
15093 for x in $rpathdirs; do
15094 if test "X$x" = "X$found_dir"; then
15095 haveit=yes
15096 break
15097 fi
15098 done
15099 if test -z "$haveit"; then
15100 rpathdirs="$rpathdirs $found_dir"
15101 fi
15102 else
15103 haveit=
15104 for x in $LDFLAGS $LIBICONV; do
15105
15106 acl_save_prefix="$prefix"
15107 prefix="$acl_final_prefix"
15108 acl_save_exec_prefix="$exec_prefix"
15109 exec_prefix="$acl_final_exec_prefix"
15110 eval x=\"$x\"
15111 exec_prefix="$acl_save_exec_prefix"
15112 prefix="$acl_save_prefix"
15113
15114 if test "X$x" = "X-L$found_dir"; then
15115 haveit=yes
15116 break
15117 fi
15118 done
15119 if test -z "$haveit"; then
15120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15121 fi
15122 if test "$acl_hardcode_minus_L" != no; then
15123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15124 else
15125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15126 fi
15127 fi
15128 fi
15129 fi
15130 else
15131 if test "X$found_a" != "X"; then
15132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15133 else
15134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15135 fi
15136 fi
15137 additional_includedir=
15138 case "$found_dir" in
15139 */$acl_libdirstem | */$acl_libdirstem/)
15140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15141 LIBICONV_PREFIX="$basedir"
15142 additional_includedir="$basedir/include"
15143 ;;
15144 esac
15145 if test "X$additional_includedir" != "X"; then
15146 if test "X$additional_includedir" != "X/usr/include"; then
15147 haveit=
15148 if test "X$additional_includedir" = "X/usr/local/include"; then
15149 if test -n "$GCC"; then
15150 case $host_os in
15151 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15152 esac
15153 fi
15154 fi
15155 if test -z "$haveit"; then
15156 for x in $CPPFLAGS $INCICONV; do
15157
15158 acl_save_prefix="$prefix"
15159 prefix="$acl_final_prefix"
15160 acl_save_exec_prefix="$exec_prefix"
15161 exec_prefix="$acl_final_exec_prefix"
15162 eval x=\"$x\"
15163 exec_prefix="$acl_save_exec_prefix"
15164 prefix="$acl_save_prefix"
15165
15166 if test "X$x" = "X-I$additional_includedir"; then
15167 haveit=yes
15168 break
15169 fi
15170 done
15171 if test -z "$haveit"; then
15172 if test -d "$additional_includedir"; then
15173 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15174 fi
15175 fi
15176 fi
15177 fi
15178 fi
15179 if test -n "$found_la"; then
15180 save_libdir="$libdir"
15181 case "$found_la" in
15182 */* | *\\*) . "$found_la" ;;
15183 *) . "./$found_la" ;;
15184 esac
15185 libdir="$save_libdir"
15186 for dep in $dependency_libs; do
15187 case "$dep" in
15188 -L*)
15189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15190 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15191 haveit=
15192 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15193 if test -n "$GCC"; then
15194 case $host_os in
15195 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15196 esac
15197 fi
15198 fi
15199 if test -z "$haveit"; then
15200 haveit=
15201 for x in $LDFLAGS $LIBICONV; do
15202
15203 acl_save_prefix="$prefix"
15204 prefix="$acl_final_prefix"
15205 acl_save_exec_prefix="$exec_prefix"
15206 exec_prefix="$acl_final_exec_prefix"
15207 eval x=\"$x\"
15208 exec_prefix="$acl_save_exec_prefix"
15209 prefix="$acl_save_prefix"
15210
15211 if test "X$x" = "X-L$additional_libdir"; then
15212 haveit=yes
15213 break
15214 fi
15215 done
15216 if test -z "$haveit"; then
15217 if test -d "$additional_libdir"; then
15218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15219 fi
15220 fi
15221 haveit=
15222 for x in $LDFLAGS $LTLIBICONV; do
15223
15224 acl_save_prefix="$prefix"
15225 prefix="$acl_final_prefix"
15226 acl_save_exec_prefix="$exec_prefix"
15227 exec_prefix="$acl_final_exec_prefix"
15228 eval x=\"$x\"
15229 exec_prefix="$acl_save_exec_prefix"
15230 prefix="$acl_save_prefix"
15231
15232 if test "X$x" = "X-L$additional_libdir"; then
15233 haveit=yes
15234 break
15235 fi
15236 done
15237 if test -z "$haveit"; then
15238 if test -d "$additional_libdir"; then
15239 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15240 fi
15241 fi
15242 fi
15243 fi
15244 ;;
15245 -R*)
15246 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15247 if test "$enable_rpath" != no; then
15248 haveit=
15249 for x in $rpathdirs; do
15250 if test "X$x" = "X$dir"; then
15251 haveit=yes
15252 break
15253 fi
15254 done
15255 if test -z "$haveit"; then
15256 rpathdirs="$rpathdirs $dir"
15257 fi
15258 haveit=
15259 for x in $ltrpathdirs; do
15260 if test "X$x" = "X$dir"; then
15261 haveit=yes
15262 break
15263 fi
15264 done
15265 if test -z "$haveit"; then
15266 ltrpathdirs="$ltrpathdirs $dir"
15267 fi
15268 fi
15269 ;;
15270 -l*)
15271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15272 ;;
15273 *.la)
15274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15275 ;;
15276 *)
15277 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15279 ;;
15280 esac
15281 done
15282 fi
15283 else
15284 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15285 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15286 fi
15287 fi
15288 fi
15289 done
15290 done
15291 if test "X$rpathdirs" != "X"; then
15292 if test -n "$acl_hardcode_libdir_separator"; then
15293 alldirs=
15294 for found_dir in $rpathdirs; do
15295 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15296 done
15297 acl_save_libdir="$libdir"
15298 libdir="$alldirs"
15299 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15300 libdir="$acl_save_libdir"
15301 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15302 else
15303 for found_dir in $rpathdirs; do
15304 acl_save_libdir="$libdir"
15305 libdir="$found_dir"
15306 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15307 libdir="$acl_save_libdir"
15308 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15309 done
15310 fi
15311 fi
15312 if test "X$ltrpathdirs" != "X"; then
15313 for found_dir in $ltrpathdirs; do
15314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15315 done
15316 fi
9c60689e 15317
9c60689e
DWT
15318
15319
9c60689e 15320
9c60689e
DWT
15321
15322
15323
632b71ea 15324 am_save_CPPFLAGS="$CPPFLAGS"
9c60689e 15325
632b71ea
DWT
15326 for element in $INCICONV; do
15327 haveit=
15328 for x in $CPPFLAGS; do
9c60689e 15329
632b71ea
DWT
15330 acl_save_prefix="$prefix"
15331 prefix="$acl_final_prefix"
15332 acl_save_exec_prefix="$exec_prefix"
15333 exec_prefix="$acl_final_exec_prefix"
15334 eval x=\"$x\"
15335 exec_prefix="$acl_save_exec_prefix"
15336 prefix="$acl_save_prefix"
15337
15338 if test "X$x" = "X$element"; then
15339 haveit=yes
15340 break
15341 fi
15342 done
15343 if test -z "$haveit"; then
15344 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15345 fi
15346 done
b128dfee 15347
c823f118 15348
632b71ea
DWT
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15350$as_echo_n "checking for iconv... " >&6; }
15351if test "${am_cv_func_iconv+set}" = set; then :
c823f118
DWT
15352 $as_echo_n "(cached) " >&6
15353else
15354
632b71ea
DWT
15355 am_cv_func_iconv="no, consider installing GNU libiconv"
15356 am_cv_lib_iconv=no
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118 15358/* end confdefs.h. */
632b71ea
DWT
15359#include <stdlib.h>
15360#include <iconv.h>
c823f118
DWT
15361int
15362main ()
15363{
632b71ea
DWT
15364iconv_t cd = iconv_open("","");
15365 iconv(cd,NULL,NULL,NULL,NULL);
15366 iconv_close(cd);
c823f118
DWT
15367 ;
15368 return 0;
15369}
b128dfee 15370_ACEOF
632b71ea
DWT
15371if ac_fn_c_try_link "$LINENO"; then :
15372 am_cv_func_iconv=yes
b128dfee 15373fi
c823f118
DWT
15374rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
632b71ea
DWT
15376 if test "$am_cv_func_iconv" != yes; then
15377 am_save_LIBS="$LIBS"
15378 LIBS="$LIBS $LIBICONV"
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h. */
15381#include <stdlib.h>
15382#include <iconv.h>
15383int
15384main ()
15385{
15386iconv_t cd = iconv_open("","");
15387 iconv(cd,NULL,NULL,NULL,NULL);
15388 iconv_close(cd);
15389 ;
15390 return 0;
15391}
15392_ACEOF
15393if ac_fn_c_try_link "$LINENO"; then :
15394 am_cv_lib_iconv=yes
15395 am_cv_func_iconv=yes
15396fi
15397rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399 LIBS="$am_save_LIBS"
15400 fi
b128dfee 15401
c823f118 15402fi
632b71ea
DWT
15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15404$as_echo "$am_cv_func_iconv" >&6; }
15405 if test "$am_cv_func_iconv" = yes; then
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15407$as_echo_n "checking for working iconv... " >&6; }
15408if test "${am_cv_func_iconv_works+set}" = set; then :
15409 $as_echo_n "(cached) " >&6
15410else
c823f118 15411
632b71ea
DWT
15412 am_save_LIBS="$LIBS"
15413 if test $am_cv_lib_iconv = yes; then
15414 LIBS="$LIBS $LIBICONV"
15415 fi
15416 if test "$cross_compiling" = yes; then :
15417 case "$host_os" in
15418 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15419 *) am_cv_func_iconv_works="guessing yes" ;;
15420 esac
15421else
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423/* end confdefs.h. */
c823f118 15424
632b71ea
DWT
15425#include <iconv.h>
15426#include <string.h>
15427int main ()
15428{
15429 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15430 returns. */
15431 {
15432 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15433 if (cd_utf8_to_88591 != (iconv_t)(-1))
15434 {
15435 static const char input[] = "\342\202\254"; /* EURO SIGN */
15436 char buf[10];
15437 const char *inptr = input;
15438 size_t inbytesleft = strlen (input);
15439 char *outptr = buf;
15440 size_t outbytesleft = sizeof (buf);
15441 size_t res = iconv (cd_utf8_to_88591,
15442 (char **) &inptr, &inbytesleft,
15443 &outptr, &outbytesleft);
15444 if (res == 0)
15445 return 1;
15446 }
15447 }
15448#if 0 /* This bug could be worked around by the caller. */
15449 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15450 {
15451 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15452 if (cd_88591_to_utf8 != (iconv_t)(-1))
15453 {
15454 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15455 char buf[50];
15456 const char *inptr = input;
15457 size_t inbytesleft = strlen (input);
15458 char *outptr = buf;
15459 size_t outbytesleft = sizeof (buf);
15460 size_t res = iconv (cd_88591_to_utf8,
15461 (char **) &inptr, &inbytesleft,
15462 &outptr, &outbytesleft);
15463 if ((int)res > 0)
15464 return 1;
15465 }
15466 }
15467#endif
15468 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15469 provided. */
15470 if (/* Try standardized names. */
15471 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15472 /* Try IRIX, OSF/1 names. */
15473 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15474 /* Try AIX names. */
15475 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15476 /* Try HP-UX names. */
15477 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15478 return 1;
15479 return 0;
15480}
15481_ACEOF
15482if ac_fn_c_try_run "$LINENO"; then :
15483 am_cv_func_iconv_works=yes
15484else
15485 am_cv_func_iconv_works=no
15486fi
15487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15488 conftest.$ac_objext conftest.beam conftest.$ac_ext
15489fi
c823f118 15490
632b71ea 15491 LIBS="$am_save_LIBS"
b128dfee 15492
632b71ea
DWT
15493fi
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15495$as_echo "$am_cv_func_iconv_works" >&6; }
15496 case "$am_cv_func_iconv_works" in
15497 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15498 *) am_func_iconv=yes ;;
15499 esac
15500 else
15501 am_func_iconv=no am_cv_lib_iconv=no
15502 fi
15503 if test "$am_func_iconv" = yes; then
c823f118 15504
632b71ea 15505$as_echo "#define HAVE_ICONV 1" >>confdefs.h
c823f118 15506
632b71ea
DWT
15507 fi
15508 if test "$am_cv_lib_iconv" = yes; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15510$as_echo_n "checking how to link with libiconv... " >&6; }
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15512$as_echo "$LIBICONV" >&6; }
15513 else
15514 CPPFLAGS="$am_save_CPPFLAGS"
15515 LIBICONV=
15516 LTLIBICONV=
15517 fi
b128dfee 15518
b128dfee 15519
c823f118 15520
632b71ea
DWT
15521 if test "$am_cv_func_iconv" = yes; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15523$as_echo_n "checking for iconv declaration... " >&6; }
15524 if test "${am_cv_proto_iconv+set}" = set; then :
c823f118
DWT
15525 $as_echo_n "(cached) " >&6
15526else
15527
632b71ea 15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
15529/* end confdefs.h. */
15530
632b71ea
DWT
15531#include <stdlib.h>
15532#include <iconv.h>
15533extern
15534#ifdef __cplusplus
15535"C"
15536#endif
15537#if defined(__STDC__) || defined(__cplusplus)
15538size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15539#else
15540size_t iconv();
15541#endif
c823f118
DWT
15542
15543int
15544main ()
15545{
632b71ea 15546
c823f118
DWT
15547 ;
15548 return 0;
15549}
b128dfee 15550_ACEOF
632b71ea
DWT
15551if ac_fn_c_try_compile "$LINENO"; then :
15552 am_cv_proto_iconv_arg1=""
c823f118 15553else
632b71ea 15554 am_cv_proto_iconv_arg1="const"
c823f118 15555fi
632b71ea
DWT
15556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 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);"
b128dfee
DWT
15558fi
15559
632b71ea
DWT
15560 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15562 }$am_cv_proto_iconv" >&5
15563$as_echo "${ac_t:-
15564 }$am_cv_proto_iconv" >&6; }
b128dfee 15565
632b71ea
DWT
15566cat >>confdefs.h <<_ACEOF
15567#define ICONV_CONST $am_cv_proto_iconv_arg1
15568_ACEOF
c823f118 15569
632b71ea 15570 fi
c823f118 15571
632b71ea
DWT
15572ac_ext=cpp
15573ac_cpp='$CXXCPP $CPPFLAGS'
15574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
c823f118 15577
632b71ea
DWT
15578case $am_cv_func_iconv in #(
15579 yes) :
15580 ;; #(
15581 *) :
15582 as_fn_error "You need iconv" "$LINENO" 5 ;;
15583esac
c823f118 15584
b66977f1
DWT
15585
15586# Check whether --enable-javascript was given.
15587if test "${enable_javascript+set}" = set; then :
15588 enableval=$enable_javascript;
15589 case $enableval in #(
15590 yes) :
15591
15592
15593
15594pkg_failed=no
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15596$as_echo_n "checking for WEBKIT... " >&6; }
15597
15598if test -n "$PKG_CONFIG"; then
15599 if test -n "$WEBKIT_CFLAGS"; then
15600 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15601 else
15602 if test -n "$PKG_CONFIG" && \
15603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15604 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15605 ac_status=$?
15606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; }; then
15608 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15609else
15610 pkg_failed=yes
15611fi
15612 fi
15613else
15614 pkg_failed=untried
15615fi
15616if test -n "$PKG_CONFIG"; then
15617 if test -n "$WEBKIT_LIBS"; then
15618 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15619 else
15620 if test -n "$PKG_CONFIG" && \
15621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15622 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15623 ac_status=$?
15624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15625 test $ac_status = 0; }; then
15626 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15627else
15628 pkg_failed=yes
15629fi
15630 fi
15631else
15632 pkg_failed=untried
15633fi
15634
15635
15636
15637if test $pkg_failed = yes; then
15638
15639if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15640 _pkg_short_errors_supported=yes
15641else
15642 _pkg_short_errors_supported=no
15643fi
15644 if test $_pkg_short_errors_supported = yes; then
15645 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15646 else
15647 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15648 fi
15649 # Put the nasty error message in config.log where it belongs
15650 echo "$WEBKIT_PKG_ERRORS" >&5
15651
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653$as_echo "no" >&6; }
15654
15655
15656pkg_failed=no
15657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15658$as_echo_n "checking for WEBKIT... " >&6; }
15659
15660if test -n "$PKG_CONFIG"; then
15661 if test -n "$WEBKIT_CFLAGS"; then
15662 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15663 else
15664 if test -n "$PKG_CONFIG" && \
15665 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15666 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15667 ac_status=$?
15668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15669 test $ac_status = 0; }; then
15670 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15671else
15672 pkg_failed=yes
15673fi
15674 fi
15675else
15676 pkg_failed=untried
15677fi
15678if test -n "$PKG_CONFIG"; then
15679 if test -n "$WEBKIT_LIBS"; then
15680 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15681 else
15682 if test -n "$PKG_CONFIG" && \
15683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15684 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15685 ac_status=$?
15686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15687 test $ac_status = 0; }; then
15688 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15689else
15690 pkg_failed=yes
15691fi
15692 fi
15693else
15694 pkg_failed=untried
15695fi
15696
15697
15698
15699if test $pkg_failed = yes; then
15700
15701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15702 _pkg_short_errors_supported=yes
15703else
15704 _pkg_short_errors_supported=no
15705fi
15706 if test $_pkg_short_errors_supported = yes; then
15707 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15708 else
15709 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15710 fi
15711 # Put the nasty error message in config.log where it belongs
15712 echo "$WEBKIT_PKG_ERRORS" >&5
15713
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15715$as_echo "no" >&6; }
15716
15717
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15719$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15720if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15721 $as_echo_n "(cached) " >&6
15722else
15723
15724 ac_check_framework_save_LIBS=$LIBS
15725 LIBS="-framework JavaScriptCore $LIBS"
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727/* end confdefs.h. */
15728
15729 #include <JavaScriptCore/JSBase.h>
15730
15731int
15732main ()
15733{
15734JSEvaluateScript(0, 0, 0, 0, 0, 0);
15735 ;
15736 return 0;
15737}
15738_ACEOF
15739if ac_fn_cxx_try_link "$LINENO"; then :
15740
15741 ac_cv_framework_JavaScriptCore=yes
15742
15743else
15744 ac_cv_framework_JavaScriptCore=no
15745fi
15746rm -f core conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_framework_save_LIBS
15749
15750fi
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15752$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15753 if test $ac_cv_framework_JavaScriptCore = yes; then :
15754
15755
15756 for element in "-framework JavaScriptCore $LIBS"; do
15757 haveit=
15758 for x in $LIBS; do
15759
15760 acl_save_prefix="$prefix"
15761 prefix="$acl_final_prefix"
15762 acl_save_exec_prefix="$exec_prefix"
15763 exec_prefix="$acl_final_exec_prefix"
15764 eval x=\"$x\"
15765 exec_prefix="$acl_save_exec_prefix"
15766 prefix="$acl_save_prefix"
15767
15768 if test "X$x" = "X$element"; then
15769 haveit=yes
15770 break
15771 fi
15772 done
15773 if test -z "$haveit"; then
15774 LIBS="${LIBS}${LIBS:+ }$element"
15775 fi
15776 done
15777
15778 CY_EXECUTE=1
15779
15780fi
15781
15782elif test $pkg_failed = untried; then
15783
15784
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15786$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15787if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15789else
15790
15791 ac_check_framework_save_LIBS=$LIBS
15792 LIBS="-framework JavaScriptCore $LIBS"
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794/* end confdefs.h. */
15795
15796 #include <JavaScriptCore/JSBase.h>
15797
15798int
15799main ()
15800{
15801JSEvaluateScript(0, 0, 0, 0, 0, 0);
15802 ;
15803 return 0;
15804}
15805_ACEOF
15806if ac_fn_cxx_try_link "$LINENO"; then :
15807
15808 ac_cv_framework_JavaScriptCore=yes
15809
15810else
15811 ac_cv_framework_JavaScriptCore=no
15812fi
15813rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_framework_save_LIBS
15816
15817fi
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15819$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15820 if test $ac_cv_framework_JavaScriptCore = yes; then :
15821
15822
15823 for element in "-framework JavaScriptCore $LIBS"; do
15824 haveit=
15825 for x in $LIBS; do
15826
15827 acl_save_prefix="$prefix"
15828 prefix="$acl_final_prefix"
15829 acl_save_exec_prefix="$exec_prefix"
15830 exec_prefix="$acl_final_exec_prefix"
15831 eval x=\"$x\"
15832 exec_prefix="$acl_save_exec_prefix"
15833 prefix="$acl_save_prefix"
15834
15835 if test "X$x" = "X$element"; then
15836 haveit=yes
15837 break
15838 fi
15839 done
15840 if test -z "$haveit"; then
15841 LIBS="${LIBS}${LIBS:+ }$element"
15842 fi
15843 done
15844
15845 CY_EXECUTE=1
15846
15847fi
15848
15849else
15850 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15851 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15853$as_echo "yes" >&6; }
15854
15855 CY_EXECUTE=1
15856
15857 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15858 haveit=
15859 for x in $CXXFLAGS; do
15860
15861 acl_save_prefix="$prefix"
15862 prefix="$acl_final_prefix"
15863 acl_save_exec_prefix="$exec_prefix"
15864 exec_prefix="$acl_final_exec_prefix"
15865 eval x=\"$x\"
15866 exec_prefix="$acl_save_exec_prefix"
15867 prefix="$acl_save_prefix"
15868
15869 if test "X$x" = "X$element"; then
15870 haveit=yes
15871 break
15872 fi
15873 done
15874 if test -z "$haveit"; then
15875 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15876 fi
15877 done
15878
15879
15880 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15881 haveit=
15882 for x in $LIBS; do
15883
15884 acl_save_prefix="$prefix"
15885 prefix="$acl_final_prefix"
15886 acl_save_exec_prefix="$exec_prefix"
15887 exec_prefix="$acl_final_exec_prefix"
15888 eval x=\"$x\"
15889 exec_prefix="$acl_save_exec_prefix"
15890 prefix="$acl_save_prefix"
15891
15892 if test "X$x" = "X$element"; then
15893 haveit=yes
15894 break
15895 fi
15896 done
15897 if test -z "$haveit"; then
15898 LIBS="${LIBS}${LIBS:+ }$element"
15899 fi
15900 done
15901
15902
15903fi
15904
15905elif test $pkg_failed = untried; then
15906
15907
15908pkg_failed=no
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15910$as_echo_n "checking for WEBKIT... " >&6; }
15911
15912if test -n "$PKG_CONFIG"; then
15913 if test -n "$WEBKIT_CFLAGS"; then
15914 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15915 else
15916 if test -n "$PKG_CONFIG" && \
15917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15918 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15919 ac_status=$?
15920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921 test $ac_status = 0; }; then
15922 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15923else
15924 pkg_failed=yes
15925fi
15926 fi
15927else
15928 pkg_failed=untried
15929fi
15930if test -n "$PKG_CONFIG"; then
15931 if test -n "$WEBKIT_LIBS"; then
15932 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15933 else
15934 if test -n "$PKG_CONFIG" && \
15935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15936 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15937 ac_status=$?
15938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939 test $ac_status = 0; }; then
15940 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15941else
15942 pkg_failed=yes
15943fi
15944 fi
15945else
15946 pkg_failed=untried
15947fi
15948
15949
15950
15951if test $pkg_failed = yes; then
15952
15953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15954 _pkg_short_errors_supported=yes
15955else
15956 _pkg_short_errors_supported=no
15957fi
15958 if test $_pkg_short_errors_supported = yes; then
15959 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15960 else
15961 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15962 fi
15963 # Put the nasty error message in config.log where it belongs
15964 echo "$WEBKIT_PKG_ERRORS" >&5
15965
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15967$as_echo "no" >&6; }
15968
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15971$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15972if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15973 $as_echo_n "(cached) " >&6
15974else
15975
15976 ac_check_framework_save_LIBS=$LIBS
15977 LIBS="-framework JavaScriptCore $LIBS"
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979/* end confdefs.h. */
15980
15981 #include <JavaScriptCore/JSBase.h>
15982
15983int
15984main ()
15985{
15986JSEvaluateScript(0, 0, 0, 0, 0, 0);
15987 ;
15988 return 0;
15989}
15990_ACEOF
15991if ac_fn_cxx_try_link "$LINENO"; then :
15992
15993 ac_cv_framework_JavaScriptCore=yes
15994
15995else
15996 ac_cv_framework_JavaScriptCore=no
15997fi
15998rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16000 LIBS=$ac_check_framework_save_LIBS
16001
16002fi
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16004$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16005 if test $ac_cv_framework_JavaScriptCore = yes; then :
16006
16007
16008 for element in "-framework JavaScriptCore $LIBS"; do
16009 haveit=
16010 for x in $LIBS; do
16011
16012 acl_save_prefix="$prefix"
16013 prefix="$acl_final_prefix"
16014 acl_save_exec_prefix="$exec_prefix"
16015 exec_prefix="$acl_final_exec_prefix"
16016 eval x=\"$x\"
16017 exec_prefix="$acl_save_exec_prefix"
16018 prefix="$acl_save_prefix"
16019
16020 if test "X$x" = "X$element"; then
16021 haveit=yes
16022 break
16023 fi
16024 done
16025 if test -z "$haveit"; then
16026 LIBS="${LIBS}${LIBS:+ }$element"
16027 fi
16028 done
16029
16030 CY_EXECUTE=1
16031
16032fi
16033
16034elif test $pkg_failed = untried; then
16035
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16038$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16039if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16040 $as_echo_n "(cached) " >&6
16041else
16042
16043 ac_check_framework_save_LIBS=$LIBS
16044 LIBS="-framework JavaScriptCore $LIBS"
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046/* end confdefs.h. */
16047
16048 #include <JavaScriptCore/JSBase.h>
16049
16050int
16051main ()
16052{
16053JSEvaluateScript(0, 0, 0, 0, 0, 0);
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058if ac_fn_cxx_try_link "$LINENO"; then :
16059
16060 ac_cv_framework_JavaScriptCore=yes
16061
16062else
16063 ac_cv_framework_JavaScriptCore=no
16064fi
16065rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16067 LIBS=$ac_check_framework_save_LIBS
16068
16069fi
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16071$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16072 if test $ac_cv_framework_JavaScriptCore = yes; then :
16073
16074
16075 for element in "-framework JavaScriptCore $LIBS"; do
16076 haveit=
16077 for x in $LIBS; do
16078
16079 acl_save_prefix="$prefix"
16080 prefix="$acl_final_prefix"
16081 acl_save_exec_prefix="$exec_prefix"
16082 exec_prefix="$acl_final_exec_prefix"
16083 eval x=\"$x\"
16084 exec_prefix="$acl_save_exec_prefix"
16085 prefix="$acl_save_prefix"
16086
16087 if test "X$x" = "X$element"; then
16088 haveit=yes
16089 break
16090 fi
16091 done
16092 if test -z "$haveit"; then
16093 LIBS="${LIBS}${LIBS:+ }$element"
16094 fi
16095 done
16096
16097 CY_EXECUTE=1
16098
16099fi
16100
16101else
16102 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16103 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105$as_echo "yes" >&6; }
16106
16107 CY_EXECUTE=1
16108
16109 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16110 haveit=
16111 for x in $CXXFLAGS; do
16112
16113 acl_save_prefix="$prefix"
16114 prefix="$acl_final_prefix"
16115 acl_save_exec_prefix="$exec_prefix"
16116 exec_prefix="$acl_final_exec_prefix"
16117 eval x=\"$x\"
16118 exec_prefix="$acl_save_exec_prefix"
16119 prefix="$acl_save_prefix"
16120
16121 if test "X$x" = "X$element"; then
16122 haveit=yes
16123 break
16124 fi
16125 done
16126 if test -z "$haveit"; then
16127 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16128 fi
16129 done
16130
16131
16132 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16133 haveit=
16134 for x in $LIBS; do
16135
16136 acl_save_prefix="$prefix"
16137 prefix="$acl_final_prefix"
16138 acl_save_exec_prefix="$exec_prefix"
16139 exec_prefix="$acl_final_exec_prefix"
16140 eval x=\"$x\"
16141 exec_prefix="$acl_save_exec_prefix"
16142 prefix="$acl_save_prefix"
16143
16144 if test "X$x" = "X$element"; then
16145 haveit=yes
16146 break
16147 fi
16148 done
16149 if test -z "$haveit"; then
16150 LIBS="${LIBS}${LIBS:+ }$element"
16151 fi
16152 done
16153
16154
16155fi
16156
16157else
16158 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16159 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16161$as_echo "yes" >&6; }
16162
16163 CY_EXECUTE=1
16164
16165 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16166 haveit=
16167 for x in $CXXFLAGS; do
16168
16169 acl_save_prefix="$prefix"
16170 prefix="$acl_final_prefix"
16171 acl_save_exec_prefix="$exec_prefix"
16172 exec_prefix="$acl_final_exec_prefix"
16173 eval x=\"$x\"
16174 exec_prefix="$acl_save_exec_prefix"
16175 prefix="$acl_save_prefix"
16176
16177 if test "X$x" = "X$element"; then
16178 haveit=yes
16179 break
16180 fi
16181 done
16182 if test -z "$haveit"; then
16183 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16184 fi
16185 done
16186
16187
16188 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16189 haveit=
16190 for x in $LIBS; do
16191
16192 acl_save_prefix="$prefix"
16193 prefix="$acl_final_prefix"
16194 acl_save_exec_prefix="$exec_prefix"
16195 exec_prefix="$acl_final_exec_prefix"
16196 eval x=\"$x\"
16197 exec_prefix="$acl_save_exec_prefix"
16198 prefix="$acl_save_prefix"
16199
16200 if test "X$x" = "X$element"; then
16201 haveit=yes
16202 break
16203 fi
16204 done
16205 if test -z "$haveit"; then
16206 LIBS="${LIBS}${LIBS:+ }$element"
16207 fi
16208 done
16209
16210
16211fi
16212
16213 ;; #(
16214 no) :
16215
16216 CY_EXECUTE=0
16217
16218 ;; #(
16219 JavaScriptCore) :
16220
16221
16222
16223pkg_failed=no
16224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16225$as_echo_n "checking for WEBKIT... " >&6; }
16226
16227if test -n "$PKG_CONFIG"; then
16228 if test -n "$WEBKIT_CFLAGS"; then
16229 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16230 else
16231 if test -n "$PKG_CONFIG" && \
16232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16233 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16234 ac_status=$?
16235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16236 test $ac_status = 0; }; then
16237 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16238else
16239 pkg_failed=yes
16240fi
16241 fi
16242else
16243 pkg_failed=untried
16244fi
16245if test -n "$PKG_CONFIG"; then
16246 if test -n "$WEBKIT_LIBS"; then
16247 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16248 else
16249 if test -n "$PKG_CONFIG" && \
16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16251 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16252 ac_status=$?
16253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254 test $ac_status = 0; }; then
16255 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16256else
16257 pkg_failed=yes
16258fi
16259 fi
16260else
16261 pkg_failed=untried
16262fi
16263
16264
16265
16266if test $pkg_failed = yes; then
16267
16268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16269 _pkg_short_errors_supported=yes
16270else
16271 _pkg_short_errors_supported=no
16272fi
16273 if test $_pkg_short_errors_supported = yes; then
16274 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
16275 else
16276 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
16277 fi
16278 # Put the nasty error message in config.log where it belongs
16279 echo "$WEBKIT_PKG_ERRORS" >&5
16280
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282$as_echo "no" >&6; }
16283
16284
16285pkg_failed=no
16286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16287$as_echo_n "checking for WEBKIT... " >&6; }
16288
16289if test -n "$PKG_CONFIG"; then
16290 if test -n "$WEBKIT_CFLAGS"; then
16291 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16292 else
16293 if test -n "$PKG_CONFIG" && \
16294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16295 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16296 ac_status=$?
16297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16298 test $ac_status = 0; }; then
16299 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16300else
16301 pkg_failed=yes
16302fi
16303 fi
16304else
16305 pkg_failed=untried
16306fi
16307if test -n "$PKG_CONFIG"; then
16308 if test -n "$WEBKIT_LIBS"; then
16309 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16310 else
16311 if test -n "$PKG_CONFIG" && \
16312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16313 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16314 ac_status=$?
16315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16316 test $ac_status = 0; }; then
16317 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16318else
16319 pkg_failed=yes
16320fi
16321 fi
16322else
16323 pkg_failed=untried
16324fi
16325
16326
16327
16328if test $pkg_failed = yes; then
16329
16330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16331 _pkg_short_errors_supported=yes
16332else
16333 _pkg_short_errors_supported=no
16334fi
16335 if test $_pkg_short_errors_supported = yes; then
16336 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16337 else
16338 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16339 fi
16340 # Put the nasty error message in config.log where it belongs
16341 echo "$WEBKIT_PKG_ERRORS" >&5
16342
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16344$as_echo "no" >&6; }
16345
16346
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16348$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16349if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16350 $as_echo_n "(cached) " >&6
16351else
16352
16353 ac_check_framework_save_LIBS=$LIBS
16354 LIBS="-framework JavaScriptCore $LIBS"
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356/* end confdefs.h. */
16357
16358 #include <JavaScriptCore/JSBase.h>
16359
16360int
16361main ()
16362{
16363JSEvaluateScript(0, 0, 0, 0, 0, 0);
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_cxx_try_link "$LINENO"; then :
16369
16370 ac_cv_framework_JavaScriptCore=yes
16371
16372else
16373 ac_cv_framework_JavaScriptCore=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_framework_save_LIBS
16378
16379fi
16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16381$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16382 if test $ac_cv_framework_JavaScriptCore = yes; then :
16383
16384
16385 for element in "-framework JavaScriptCore $LIBS"; do
16386 haveit=
16387 for x in $LIBS; do
16388
16389 acl_save_prefix="$prefix"
16390 prefix="$acl_final_prefix"
16391 acl_save_exec_prefix="$exec_prefix"
16392 exec_prefix="$acl_final_exec_prefix"
16393 eval x=\"$x\"
16394 exec_prefix="$acl_save_exec_prefix"
16395 prefix="$acl_save_prefix"
16396
16397 if test "X$x" = "X$element"; then
16398 haveit=yes
16399 break
16400 fi
16401 done
16402 if test -z "$haveit"; then
16403 LIBS="${LIBS}${LIBS:+ }$element"
16404 fi
16405 done
16406
16407 CY_EXECUTE=1
16408
16409fi
16410
16411elif test $pkg_failed = untried; then
16412
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16415$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16416if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16417 $as_echo_n "(cached) " >&6
16418else
16419
16420 ac_check_framework_save_LIBS=$LIBS
16421 LIBS="-framework JavaScriptCore $LIBS"
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423/* end confdefs.h. */
16424
16425 #include <JavaScriptCore/JSBase.h>
16426
16427int
16428main ()
16429{
16430JSEvaluateScript(0, 0, 0, 0, 0, 0);
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435if ac_fn_cxx_try_link "$LINENO"; then :
16436
16437 ac_cv_framework_JavaScriptCore=yes
16438
16439else
16440 ac_cv_framework_JavaScriptCore=no
16441fi
16442rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 LIBS=$ac_check_framework_save_LIBS
16445
16446fi
16447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16448$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16449 if test $ac_cv_framework_JavaScriptCore = yes; then :
16450
16451
16452 for element in "-framework JavaScriptCore $LIBS"; do
16453 haveit=
16454 for x in $LIBS; do
16455
16456 acl_save_prefix="$prefix"
16457 prefix="$acl_final_prefix"
16458 acl_save_exec_prefix="$exec_prefix"
16459 exec_prefix="$acl_final_exec_prefix"
16460 eval x=\"$x\"
16461 exec_prefix="$acl_save_exec_prefix"
16462 prefix="$acl_save_prefix"
16463
16464 if test "X$x" = "X$element"; then
16465 haveit=yes
16466 break
16467 fi
16468 done
16469 if test -z "$haveit"; then
16470 LIBS="${LIBS}${LIBS:+ }$element"
16471 fi
16472 done
16473
16474 CY_EXECUTE=1
16475
16476fi
16477
16478else
16479 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16480 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16482$as_echo "yes" >&6; }
16483
16484 CY_EXECUTE=1
16485
16486 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16487 haveit=
16488 for x in $CXXFLAGS; do
16489
16490 acl_save_prefix="$prefix"
16491 prefix="$acl_final_prefix"
16492 acl_save_exec_prefix="$exec_prefix"
16493 exec_prefix="$acl_final_exec_prefix"
16494 eval x=\"$x\"
16495 exec_prefix="$acl_save_exec_prefix"
16496 prefix="$acl_save_prefix"
16497
16498 if test "X$x" = "X$element"; then
16499 haveit=yes
16500 break
16501 fi
16502 done
16503 if test -z "$haveit"; then
16504 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16505 fi
16506 done
16507
16508
16509 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16510 haveit=
16511 for x in $LIBS; do
16512
16513 acl_save_prefix="$prefix"
16514 prefix="$acl_final_prefix"
16515 acl_save_exec_prefix="$exec_prefix"
16516 exec_prefix="$acl_final_exec_prefix"
16517 eval x=\"$x\"
16518 exec_prefix="$acl_save_exec_prefix"
16519 prefix="$acl_save_prefix"
16520
16521 if test "X$x" = "X$element"; then
16522 haveit=yes
16523 break
16524 fi
16525 done
16526 if test -z "$haveit"; then
16527 LIBS="${LIBS}${LIBS:+ }$element"
16528 fi
16529 done
16530
16531
16532fi
16533
16534elif test $pkg_failed = untried; then
16535
16536
16537pkg_failed=no
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16539$as_echo_n "checking for WEBKIT... " >&6; }
16540
16541if test -n "$PKG_CONFIG"; then
16542 if test -n "$WEBKIT_CFLAGS"; then
16543 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16544 else
16545 if test -n "$PKG_CONFIG" && \
16546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16547 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16548 ac_status=$?
16549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16550 test $ac_status = 0; }; then
16551 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16552else
16553 pkg_failed=yes
16554fi
16555 fi
16556else
16557 pkg_failed=untried
16558fi
16559if test -n "$PKG_CONFIG"; then
16560 if test -n "$WEBKIT_LIBS"; then
16561 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16562 else
16563 if test -n "$PKG_CONFIG" && \
16564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16565 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16566 ac_status=$?
16567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16568 test $ac_status = 0; }; then
16569 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16570else
16571 pkg_failed=yes
16572fi
16573 fi
16574else
16575 pkg_failed=untried
16576fi
16577
16578
16579
16580if test $pkg_failed = yes; then
16581
16582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16583 _pkg_short_errors_supported=yes
16584else
16585 _pkg_short_errors_supported=no
16586fi
16587 if test $_pkg_short_errors_supported = yes; then
16588 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16589 else
16590 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16591 fi
16592 # Put the nasty error message in config.log where it belongs
16593 echo "$WEBKIT_PKG_ERRORS" >&5
16594
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596$as_echo "no" >&6; }
16597
16598
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16600$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16601if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16602 $as_echo_n "(cached) " >&6
16603else
16604
16605 ac_check_framework_save_LIBS=$LIBS
16606 LIBS="-framework JavaScriptCore $LIBS"
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608/* end confdefs.h. */
16609
16610 #include <JavaScriptCore/JSBase.h>
16611
16612int
16613main ()
16614{
16615JSEvaluateScript(0, 0, 0, 0, 0, 0);
16616 ;
16617 return 0;
16618}
16619_ACEOF
16620if ac_fn_cxx_try_link "$LINENO"; then :
16621
16622 ac_cv_framework_JavaScriptCore=yes
16623
16624else
16625 ac_cv_framework_JavaScriptCore=no
16626fi
16627rm -f core conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
16629 LIBS=$ac_check_framework_save_LIBS
16630
16631fi
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16633$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16634 if test $ac_cv_framework_JavaScriptCore = yes; then :
16635
16636
16637 for element in "-framework JavaScriptCore $LIBS"; do
16638 haveit=
16639 for x in $LIBS; do
16640
16641 acl_save_prefix="$prefix"
16642 prefix="$acl_final_prefix"
16643 acl_save_exec_prefix="$exec_prefix"
16644 exec_prefix="$acl_final_exec_prefix"
16645 eval x=\"$x\"
16646 exec_prefix="$acl_save_exec_prefix"
16647 prefix="$acl_save_prefix"
16648
16649 if test "X$x" = "X$element"; then
16650 haveit=yes
16651 break
16652 fi
16653 done
16654 if test -z "$haveit"; then
16655 LIBS="${LIBS}${LIBS:+ }$element"
16656 fi
16657 done
16658
16659 CY_EXECUTE=1
16660
16661fi
16662
16663elif test $pkg_failed = untried; then
16664
16665
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16667$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16668if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16669 $as_echo_n "(cached) " >&6
16670else
16671
16672 ac_check_framework_save_LIBS=$LIBS
16673 LIBS="-framework JavaScriptCore $LIBS"
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675/* end confdefs.h. */
16676
16677 #include <JavaScriptCore/JSBase.h>
16678
16679int
16680main ()
16681{
16682JSEvaluateScript(0, 0, 0, 0, 0, 0);
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687if ac_fn_cxx_try_link "$LINENO"; then :
16688
16689 ac_cv_framework_JavaScriptCore=yes
16690
16691else
16692 ac_cv_framework_JavaScriptCore=no
16693fi
16694rm -f core conftest.err conftest.$ac_objext \
16695 conftest$ac_exeext conftest.$ac_ext
16696 LIBS=$ac_check_framework_save_LIBS
16697
16698fi
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16700$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16701 if test $ac_cv_framework_JavaScriptCore = yes; then :
16702
16703
16704 for element in "-framework JavaScriptCore $LIBS"; do
16705 haveit=
16706 for x in $LIBS; do
16707
16708 acl_save_prefix="$prefix"
16709 prefix="$acl_final_prefix"
16710 acl_save_exec_prefix="$exec_prefix"
16711 exec_prefix="$acl_final_exec_prefix"
16712 eval x=\"$x\"
16713 exec_prefix="$acl_save_exec_prefix"
16714 prefix="$acl_save_prefix"
16715
16716 if test "X$x" = "X$element"; then
16717 haveit=yes
16718 break
16719 fi
16720 done
16721 if test -z "$haveit"; then
16722 LIBS="${LIBS}${LIBS:+ }$element"
16723 fi
16724 done
16725
16726 CY_EXECUTE=1
16727
16728fi
16729
16730else
16731 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16732 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16734$as_echo "yes" >&6; }
16735
16736 CY_EXECUTE=1
16737
16738 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16739 haveit=
16740 for x in $CXXFLAGS; do
16741
16742 acl_save_prefix="$prefix"
16743 prefix="$acl_final_prefix"
16744 acl_save_exec_prefix="$exec_prefix"
16745 exec_prefix="$acl_final_exec_prefix"
16746 eval x=\"$x\"
16747 exec_prefix="$acl_save_exec_prefix"
16748 prefix="$acl_save_prefix"
16749
16750 if test "X$x" = "X$element"; then
16751 haveit=yes
16752 break
16753 fi
16754 done
16755 if test -z "$haveit"; then
16756 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16757 fi
16758 done
16759
16760
16761 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16762 haveit=
16763 for x in $LIBS; do
16764
16765 acl_save_prefix="$prefix"
16766 prefix="$acl_final_prefix"
16767 acl_save_exec_prefix="$exec_prefix"
16768 exec_prefix="$acl_final_exec_prefix"
16769 eval x=\"$x\"
16770 exec_prefix="$acl_save_exec_prefix"
16771 prefix="$acl_save_prefix"
16772
16773 if test "X$x" = "X$element"; then
16774 haveit=yes
16775 break
16776 fi
16777 done
16778 if test -z "$haveit"; then
16779 LIBS="${LIBS}${LIBS:+ }$element"
16780 fi
16781 done
16782
16783
16784fi
16785
16786else
16787 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16788 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790$as_echo "yes" >&6; }
16791
16792 CY_EXECUTE=1
16793
16794 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16795 haveit=
16796 for x in $CXXFLAGS; do
16797
16798 acl_save_prefix="$prefix"
16799 prefix="$acl_final_prefix"
16800 acl_save_exec_prefix="$exec_prefix"
16801 exec_prefix="$acl_final_exec_prefix"
16802 eval x=\"$x\"
16803 exec_prefix="$acl_save_exec_prefix"
16804 prefix="$acl_save_prefix"
16805
16806 if test "X$x" = "X$element"; then
16807 haveit=yes
16808 break
16809 fi
16810 done
16811 if test -z "$haveit"; then
16812 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16813 fi
16814 done
16815
16816
16817 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16818 haveit=
16819 for x in $LIBS; do
16820
16821 acl_save_prefix="$prefix"
16822 prefix="$acl_final_prefix"
16823 acl_save_exec_prefix="$exec_prefix"
16824 exec_prefix="$acl_final_exec_prefix"
16825 eval x=\"$x\"
16826 exec_prefix="$acl_save_exec_prefix"
16827 prefix="$acl_save_prefix"
16828
16829 if test "X$x" = "X$element"; then
16830 haveit=yes
16831 break
16832 fi
16833 done
16834 if test -z "$haveit"; then
16835 LIBS="${LIBS}${LIBS:+ }$element"
16836 fi
16837 done
16838
16839
16840fi
16841
16842 ;; #(
16843 *) :
16844 as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
16845esac
16846
16847else
16848
16849
16850
632b71ea
DWT
16851pkg_failed=no
16852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16853$as_echo_n "checking for WEBKIT... " >&6; }
b128dfee 16854
632b71ea
DWT
16855if test -n "$PKG_CONFIG"; then
16856 if test -n "$WEBKIT_CFLAGS"; then
16857 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16858 else
16859 if test -n "$PKG_CONFIG" && \
16860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16861 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16862 ac_status=$?
16863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16864 test $ac_status = 0; }; then
16865 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
9c60689e 16866else
632b71ea
DWT
16867 pkg_failed=yes
16868fi
3fd51f51 16869 fi
632b71ea
DWT
16870else
16871 pkg_failed=untried
16872fi
16873if test -n "$PKG_CONFIG"; then
16874 if test -n "$WEBKIT_LIBS"; then
16875 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16876 else
16877 if test -n "$PKG_CONFIG" && \
16878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16879 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16880 ac_status=$?
16881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16882 test $ac_status = 0; }; then
16883 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16884else
16885 pkg_failed=yes
16886fi
16887 fi
16888else
16889 pkg_failed=untried
16890fi
3fd51f51 16891
3fd51f51 16892
3fd51f51 16893
632b71ea 16894if test $pkg_failed = yes; then
3fd51f51 16895
632b71ea
DWT
16896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16897 _pkg_short_errors_supported=yes
16898else
16899 _pkg_short_errors_supported=no
9c60689e 16900fi
632b71ea
DWT
16901 if test $_pkg_short_errors_supported = yes; then
16902 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
16903 else
16904 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
16905 fi
16906 # Put the nasty error message in config.log where it belongs
16907 echo "$WEBKIT_PKG_ERRORS" >&5
9c60689e 16908
632b71ea
DWT
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910$as_echo "no" >&6; }
9c60689e
DWT
16911
16912
16913pkg_failed=no
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16915$as_echo_n "checking for WEBKIT... " >&6; }
16916
16917if test -n "$PKG_CONFIG"; then
16918 if test -n "$WEBKIT_CFLAGS"; then
16919 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16920 else
16921 if test -n "$PKG_CONFIG" && \
16922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16923 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16924 ac_status=$?
16925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16926 test $ac_status = 0; }; then
16927 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16928else
16929 pkg_failed=yes
16930fi
16931 fi
16932else
16933 pkg_failed=untried
16934fi
16935if test -n "$PKG_CONFIG"; then
16936 if test -n "$WEBKIT_LIBS"; then
16937 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16938 else
16939 if test -n "$PKG_CONFIG" && \
16940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16941 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; then
16945 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16946else
16947 pkg_failed=yes
16948fi
16949 fi
16950else
16951 pkg_failed=untried
16952fi
16953
16954
16955
16956if test $pkg_failed = yes; then
16957
16958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16959 _pkg_short_errors_supported=yes
16960else
16961 _pkg_short_errors_supported=no
16962fi
16963 if test $_pkg_short_errors_supported = yes; then
16964 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16965 else
16966 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16967 fi
16968 # Put the nasty error message in config.log where it belongs
16969 echo "$WEBKIT_PKG_ERRORS" >&5
16970
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972$as_echo "no" >&6; }
b128dfee 16973
c823f118
DWT
16974
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16976$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16977if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16978 $as_echo_n "(cached) " >&6
16979else
16980
16981 ac_check_framework_save_LIBS=$LIBS
16982 LIBS="-framework JavaScriptCore $LIBS"
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h. */
16985
b66977f1 16986 #include <JavaScriptCore/JSBase.h>
c823f118
DWT
16987
16988int
16989main ()
16990{
16991JSEvaluateScript(0, 0, 0, 0, 0, 0);
16992 ;
16993 return 0;
16994}
b128dfee 16995_ACEOF
c823f118
DWT
16996if ac_fn_cxx_try_link "$LINENO"; then :
16997
16998 ac_cv_framework_JavaScriptCore=yes
16999
17000else
17001 ac_cv_framework_JavaScriptCore=no
17002fi
17003rm -f core conftest.err conftest.$ac_objext \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_framework_save_LIBS
17006
b128dfee 17007fi
c823f118
DWT
17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17009$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17010 if test $ac_cv_framework_JavaScriptCore = yes; then :
b128dfee 17011
b128dfee 17012
c823f118
DWT
17013 for element in "-framework JavaScriptCore $LIBS"; do
17014 haveit=
17015 for x in $LIBS; do
17016
17017 acl_save_prefix="$prefix"
17018 prefix="$acl_final_prefix"
17019 acl_save_exec_prefix="$exec_prefix"
17020 exec_prefix="$acl_final_exec_prefix"
17021 eval x=\"$x\"
17022 exec_prefix="$acl_save_exec_prefix"
17023 prefix="$acl_save_prefix"
17024
17025 if test "X$x" = "X$element"; then
17026 haveit=yes
17027 break
17028 fi
17029 done
17030 if test -z "$haveit"; then
17031 LIBS="${LIBS}${LIBS:+ }$element"
17032 fi
17033 done
17034
17035 CY_EXECUTE=1
17036
17037fi
b128dfee 17038
9c60689e 17039elif test $pkg_failed = untried; then
b128dfee 17040
c823f118
DWT
17041
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17043$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17044if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17045 $as_echo_n "(cached) " >&6
17046else
17047
17048 ac_check_framework_save_LIBS=$LIBS
17049 LIBS="-framework JavaScriptCore $LIBS"
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051/* end confdefs.h. */
17052
b66977f1 17053 #include <JavaScriptCore/JSBase.h>
c823f118
DWT
17054
17055int
17056main ()
17057{
17058JSEvaluateScript(0, 0, 0, 0, 0, 0);
17059 ;
17060 return 0;
17061}
b128dfee 17062_ACEOF
c823f118
DWT
17063if ac_fn_cxx_try_link "$LINENO"; then :
17064
17065 ac_cv_framework_JavaScriptCore=yes
17066
632b71ea
DWT
17067else
17068 ac_cv_framework_JavaScriptCore=no
17069fi
17070rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_framework_save_LIBS
3fd51f51 17073
632b71ea
DWT
17074fi
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17076$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17077 if test $ac_cv_framework_JavaScriptCore = yes; then :
3fd51f51
DWT
17078
17079
632b71ea 17080 for element in "-framework JavaScriptCore $LIBS"; do
3fd51f51
DWT
17081 haveit=
17082 for x in $LIBS; do
17083
17084 acl_save_prefix="$prefix"
17085 prefix="$acl_final_prefix"
17086 acl_save_exec_prefix="$exec_prefix"
17087 exec_prefix="$acl_final_exec_prefix"
17088 eval x=\"$x\"
17089 exec_prefix="$acl_save_exec_prefix"
17090 prefix="$acl_save_prefix"
17091
17092 if test "X$x" = "X$element"; then
17093 haveit=yes
17094 break
17095 fi
17096 done
17097 if test -z "$haveit"; then
17098 LIBS="${LIBS}${LIBS:+ }$element"
17099 fi
17100 done
17101
632b71ea 17102 CY_EXECUTE=1
3fd51f51 17103
9c60689e
DWT
17104fi
17105
17106else
17107 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17108 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17110$as_echo "yes" >&6; }
3fd51f51 17111
b66977f1 17112 CY_EXECUTE=1
3fd51f51 17113
632b71ea 17114 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
3fd51f51
DWT
17115 haveit=
17116 for x in $CXXFLAGS; do
17117
17118 acl_save_prefix="$prefix"
17119 prefix="$acl_final_prefix"
17120 acl_save_exec_prefix="$exec_prefix"
17121 exec_prefix="$acl_final_exec_prefix"
17122 eval x=\"$x\"
17123 exec_prefix="$acl_save_exec_prefix"
17124 prefix="$acl_save_prefix"
17125
17126 if test "X$x" = "X$element"; then
17127 haveit=yes
17128 break
17129 fi
17130 done
17131 if test -z "$haveit"; then
17132 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17133 fi
17134 done
17135
17136
632b71ea 17137 for element in `$PKG_CONFIG --libs WebKitGtk`; do
3fd51f51
DWT
17138 haveit=
17139 for x in $LIBS; do
17140
17141 acl_save_prefix="$prefix"
17142 prefix="$acl_final_prefix"
17143 acl_save_exec_prefix="$exec_prefix"
17144 exec_prefix="$acl_final_exec_prefix"
17145 eval x=\"$x\"
17146 exec_prefix="$acl_save_exec_prefix"
17147 prefix="$acl_save_prefix"
17148
17149 if test "X$x" = "X$element"; then
17150 haveit=yes
17151 break
17152 fi
17153 done
17154 if test -z "$haveit"; then
17155 LIBS="${LIBS}${LIBS:+ }$element"
17156 fi
17157 done
17158
17159
9c60689e 17160fi
a667869d 17161
632b71ea 17162elif test $pkg_failed = untried; then
9c60689e
DWT
17163
17164
632b71ea
DWT
17165pkg_failed=no
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17167$as_echo_n "checking for WEBKIT... " >&6; }
17168
17169if test -n "$PKG_CONFIG"; then
17170 if test -n "$WEBKIT_CFLAGS"; then
17171 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17172 else
17173 if test -n "$PKG_CONFIG" && \
17174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17175 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17176 ac_status=$?
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }; then
17179 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
a667869d 17180else
632b71ea
DWT
17181 pkg_failed=yes
17182fi
17183 fi
a667869d 17184else
632b71ea 17185 pkg_failed=untried
a667869d 17186fi
632b71ea
DWT
17187if test -n "$PKG_CONFIG"; then
17188 if test -n "$WEBKIT_LIBS"; then
17189 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17190 else
17191 if test -n "$PKG_CONFIG" && \
17192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17193 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17194 ac_status=$?
17195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17196 test $ac_status = 0; }; then
17197 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17198else
17199 pkg_failed=yes
a667869d 17200fi
632b71ea 17201 fi
a667869d 17202else
632b71ea 17203 pkg_failed=untried
9c60689e
DWT
17204fi
17205
a667869d 17206
9c60689e 17207
632b71ea
DWT
17208if test $pkg_failed = yes; then
17209
17210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17211 _pkg_short_errors_supported=yes
17212else
17213 _pkg_short_errors_supported=no
a667869d 17214fi
632b71ea
DWT
17215 if test $_pkg_short_errors_supported = yes; then
17216 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
17217 else
17218 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
17219 fi
17220 # Put the nasty error message in config.log where it belongs
17221 echo "$WEBKIT_PKG_ERRORS" >&5
9c60689e 17222
632b71ea
DWT
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224$as_echo "no" >&6; }
9c60689e 17225
632b71ea
DWT
17226
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17228$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17229if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
9c60689e
DWT
17230 $as_echo_n "(cached) " >&6
17231else
632b71ea
DWT
17232
17233 ac_check_framework_save_LIBS=$LIBS
17234 LIBS="-framework JavaScriptCore $LIBS"
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
17236/* end confdefs.h. */
17237
b66977f1 17238 #include <JavaScriptCore/JSBase.h>
632b71ea 17239
9c60689e
DWT
17240int
17241main ()
17242{
632b71ea 17243JSEvaluateScript(0, 0, 0, 0, 0, 0);
9c60689e
DWT
17244 ;
17245 return 0;
17246}
17247_ACEOF
632b71ea
DWT
17248if ac_fn_cxx_try_link "$LINENO"; then :
17249
17250 ac_cv_framework_JavaScriptCore=yes
17251
9c60689e 17252else
632b71ea 17253 ac_cv_framework_JavaScriptCore=no
9c60689e 17254fi
632b71ea
DWT
17255rm -f core conftest.err conftest.$ac_objext \
17256 conftest$ac_exeext conftest.$ac_ext
17257 LIBS=$ac_check_framework_save_LIBS
9c60689e
DWT
17258
17259fi
632b71ea
DWT
17260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17261$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17262 if test $ac_cv_framework_JavaScriptCore = yes; then :
17263
17264
17265 for element in "-framework JavaScriptCore $LIBS"; do
17266 haveit=
17267 for x in $LIBS; do
17268
17269 acl_save_prefix="$prefix"
17270 prefix="$acl_final_prefix"
17271 acl_save_exec_prefix="$exec_prefix"
17272 exec_prefix="$acl_final_exec_prefix"
17273 eval x=\"$x\"
17274 exec_prefix="$acl_save_exec_prefix"
17275 prefix="$acl_save_prefix"
17276
17277 if test "X$x" = "X$element"; then
17278 haveit=yes
17279 break
17280 fi
17281 done
17282 if test -z "$haveit"; then
17283 LIBS="${LIBS}${LIBS:+ }$element"
17284 fi
17285 done
17286
17287 CY_EXECUTE=1
17288
a667869d 17289fi
632b71ea
DWT
17290
17291elif test $pkg_failed = untried; then
17292
17293
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17295$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17296if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
a667869d
DWT
17297 $as_echo_n "(cached) " >&6
17298else
632b71ea
DWT
17299
17300 ac_check_framework_save_LIBS=$LIBS
17301 LIBS="-framework JavaScriptCore $LIBS"
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a667869d
DWT
17303/* end confdefs.h. */
17304
b66977f1 17305 #include <JavaScriptCore/JSBase.h>
632b71ea 17306
a667869d
DWT
17307int
17308main ()
17309{
632b71ea 17310JSEvaluateScript(0, 0, 0, 0, 0, 0);
a667869d
DWT
17311 ;
17312 return 0;
17313}
17314_ACEOF
632b71ea
DWT
17315if ac_fn_cxx_try_link "$LINENO"; then :
17316
17317 ac_cv_framework_JavaScriptCore=yes
17318
a667869d 17319else
632b71ea
DWT
17320 ac_cv_framework_JavaScriptCore=no
17321fi
17322rm -f core conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17324 LIBS=$ac_check_framework_save_LIBS
a667869d 17325
632b71ea
DWT
17326fi
17327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17328$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17329 if test $ac_cv_framework_JavaScriptCore = yes; then :
a667869d 17330
a667869d 17331
632b71ea
DWT
17332 for element in "-framework JavaScriptCore $LIBS"; do
17333 haveit=
17334 for x in $LIBS; do
a667869d 17335
632b71ea
DWT
17336 acl_save_prefix="$prefix"
17337 prefix="$acl_final_prefix"
17338 acl_save_exec_prefix="$exec_prefix"
17339 exec_prefix="$acl_final_exec_prefix"
17340 eval x=\"$x\"
17341 exec_prefix="$acl_save_exec_prefix"
17342 prefix="$acl_save_prefix"
17343
17344 if test "X$x" = "X$element"; then
17345 haveit=yes
17346 break
17347 fi
17348 done
17349 if test -z "$haveit"; then
17350 LIBS="${LIBS}${LIBS:+ }$element"
17351 fi
17352 done
17353
17354 CY_EXECUTE=1
a667869d 17355
a667869d 17356fi
632b71ea 17357
a667869d 17358else
632b71ea
DWT
17359 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17360 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362$as_echo "yes" >&6; }
17363
b66977f1 17364 CY_EXECUTE=1
632b71ea
DWT
17365
17366 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17367 haveit=
17368 for x in $CXXFLAGS; do
17369
17370 acl_save_prefix="$prefix"
17371 prefix="$acl_final_prefix"
17372 acl_save_exec_prefix="$exec_prefix"
17373 exec_prefix="$acl_final_exec_prefix"
17374 eval x=\"$x\"
17375 exec_prefix="$acl_save_exec_prefix"
17376 prefix="$acl_save_prefix"
17377
17378 if test "X$x" = "X$element"; then
17379 haveit=yes
17380 break
17381 fi
17382 done
17383 if test -z "$haveit"; then
17384 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17385 fi
17386 done
17387
17388
17389 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17390 haveit=
17391 for x in $LIBS; do
17392
17393 acl_save_prefix="$prefix"
17394 prefix="$acl_final_prefix"
17395 acl_save_exec_prefix="$exec_prefix"
17396 exec_prefix="$acl_final_exec_prefix"
17397 eval x=\"$x\"
17398 exec_prefix="$acl_save_exec_prefix"
17399 prefix="$acl_save_prefix"
17400
17401 if test "X$x" = "X$element"; then
17402 haveit=yes
17403 break
17404 fi
17405 done
17406 if test -z "$haveit"; then
17407 LIBS="${LIBS}${LIBS:+ }$element"
17408 fi
17409 done
17410
17411
a667869d 17412fi
a667869d 17413
632b71ea
DWT
17414else
17415 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17416 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17418$as_echo "yes" >&6; }
17419
b66977f1 17420 CY_EXECUTE=1
632b71ea
DWT
17421
17422 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17423 haveit=
17424 for x in $CXXFLAGS; do
17425
17426 acl_save_prefix="$prefix"
17427 prefix="$acl_final_prefix"
17428 acl_save_exec_prefix="$exec_prefix"
17429 exec_prefix="$acl_final_exec_prefix"
17430 eval x=\"$x\"
17431 exec_prefix="$acl_save_exec_prefix"
17432 prefix="$acl_save_prefix"
17433
17434 if test "X$x" = "X$element"; then
17435 haveit=yes
17436 break
17437 fi
17438 done
17439 if test -z "$haveit"; then
17440 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17441 fi
17442 done
17443
17444
17445 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17446 haveit=
17447 for x in $LIBS; do
17448
17449 acl_save_prefix="$prefix"
17450 prefix="$acl_final_prefix"
17451 acl_save_exec_prefix="$exec_prefix"
17452 exec_prefix="$acl_final_exec_prefix"
17453 eval x=\"$x\"
17454 exec_prefix="$acl_save_exec_prefix"
17455 prefix="$acl_save_prefix"
17456
17457 if test "X$x" = "X$element"; then
17458 haveit=yes
17459 break
17460 fi
17461 done
17462 if test -z "$haveit"; then
17463 LIBS="${LIBS}${LIBS:+ }$element"
17464 fi
17465 done
17466
17467
17468fi
a667869d 17469
b66977f1
DWT
17470
17471fi
17472
17473
a667869d
DWT
17474case $CY_EXECUTE in #(
17475 1) :
17476
17477
17478
17479pkg_failed=no
17480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17481$as_echo_n "checking for LIBFFI... " >&6; }
17482
17483if test -n "$PKG_CONFIG"; then
17484 if test -n "$LIBFFI_CFLAGS"; then
17485 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17486 else
17487 if test -n "$PKG_CONFIG" && \
17488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17489 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17490 ac_status=$?
17491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17492 test $ac_status = 0; }; then
17493 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17494else
17495 pkg_failed=yes
17496fi
17497 fi
17498else
17499 pkg_failed=untried
17500fi
17501if test -n "$PKG_CONFIG"; then
17502 if test -n "$LIBFFI_LIBS"; then
17503 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17504 else
17505 if test -n "$PKG_CONFIG" && \
17506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17507 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17508 ac_status=$?
17509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17510 test $ac_status = 0; }; then
17511 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17512else
17513 pkg_failed=yes
17514fi
17515 fi
17516else
17517 pkg_failed=untried
17518fi
17519
17520
17521
17522if test $pkg_failed = yes; then
17523
17524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17525 _pkg_short_errors_supported=yes
17526else
17527 _pkg_short_errors_supported=no
17528fi
17529 if test $_pkg_short_errors_supported = yes; then
17530 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
17531 else
17532 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
17533 fi
17534 # Put the nasty error message in config.log where it belongs
17535 echo "$LIBFFI_PKG_ERRORS" >&5
17536
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538$as_echo "no" >&6; }
17539
17540 for ac_header in ffi.h ffi/ffi.h
17541do :
17542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17543ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17544eval as_val=\$$as_ac_Header
17545 if test "x$as_val" = x""yes; then :
17546 cat >>confdefs.h <<_ACEOF
17547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17548_ACEOF
17549 break
17550fi
17551
17552done
17553
17554 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17555
17556 as_fn_error "You need libffi" "$LINENO" 5
17557
17558fi
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17560$as_echo_n "checking for library containing ffi_call... " >&6; }
17561if test "${ac_cv_search_ffi_call+set}" = set; then :
17562 $as_echo_n "(cached) " >&6
17563else
17564 ac_func_search_save_LIBS=$LIBS
17565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566/* end confdefs.h. */
17567
17568/* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17571#ifdef __cplusplus
17572extern "C"
17573#endif
17574char ffi_call ();
17575int
17576main ()
17577{
17578return ffi_call ();
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583for ac_lib in '' ffi; do
17584 if test -z "$ac_lib"; then
17585 ac_res="none required"
17586 else
17587 ac_res=-l$ac_lib
17588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17589 fi
17590 if ac_fn_cxx_try_link "$LINENO"; then :
17591 ac_cv_search_ffi_call=$ac_res
17592fi
17593rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext
17595 if test "${ac_cv_search_ffi_call+set}" = set; then :
17596 break
17597fi
17598done
17599if test "${ac_cv_search_ffi_call+set}" = set; then :
17600
17601else
17602 ac_cv_search_ffi_call=no
17603fi
17604rm conftest.$ac_ext
17605LIBS=$ac_func_search_save_LIBS
17606fi
17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17608$as_echo "$ac_cv_search_ffi_call" >&6; }
17609ac_res=$ac_cv_search_ffi_call
17610if test "$ac_res" != no; then :
17611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17612
17613fi
17614
17615 case $ac_cv_search_ffi_call in #(
17616 no) :
17617
17618 as_fn_error "You need libffi" "$LINENO" 5
17619 ;; #(
17620 *) :
9c60689e
DWT
17621 ;;
17622esac
17623
17624elif test $pkg_failed = untried; then
17625
17626 for ac_header in ffi.h ffi/ffi.h
17627do :
17628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47aaa820 17629ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9c60689e
DWT
17630eval as_val=\$$as_ac_Header
17631 if test "x$as_val" = x""yes; then :
17632 cat >>confdefs.h <<_ACEOF
17633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17634_ACEOF
17635 break
17636fi
17637
17638done
17639
17640 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17641
17642 as_fn_error "You need libffi" "$LINENO" 5
17643
17644fi
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17646$as_echo_n "checking for library containing ffi_call... " >&6; }
17647if test "${ac_cv_search_ffi_call+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17649else
17650 ac_func_search_save_LIBS=$LIBS
17651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652/* end confdefs.h. */
17653
17654/* Override any GCC internal prototype to avoid an error.
17655 Use char because int might match the return type of a GCC
17656 builtin and then its argument prototype would still apply. */
17657#ifdef __cplusplus
17658extern "C"
17659#endif
17660char ffi_call ();
17661int
17662main ()
17663{
17664return ffi_call ();
17665 ;
17666 return 0;
17667}
17668_ACEOF
17669for ac_lib in '' ffi; do
17670 if test -z "$ac_lib"; then
17671 ac_res="none required"
17672 else
17673 ac_res=-l$ac_lib
17674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17675 fi
47aaa820 17676 if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e
DWT
17677 ac_cv_search_ffi_call=$ac_res
17678fi
17679rm -f core conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext
17681 if test "${ac_cv_search_ffi_call+set}" = set; then :
17682 break
17683fi
17684done
17685if test "${ac_cv_search_ffi_call+set}" = set; then :
17686
17687else
17688 ac_cv_search_ffi_call=no
17689fi
17690rm conftest.$ac_ext
17691LIBS=$ac_func_search_save_LIBS
17692fi
17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17694$as_echo "$ac_cv_search_ffi_call" >&6; }
17695ac_res=$ac_cv_search_ffi_call
17696if test "$ac_res" != no; then :
17697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17698
17699fi
17700
17701 case $ac_cv_search_ffi_call in #(
17702 no) :
17703
17704 as_fn_error "You need libffi" "$LINENO" 5
17705 ;; #(
17706 *) :
17707 ;;
17708esac
17709
17710else
17711 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17712 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17714$as_echo "yes" >&6; }
3fd51f51
DWT
17715
17716
17717 for element in `$PKG_CONFIG --cflags libffi`; do
17718 haveit=
17719 for x in $CXXFLAGS; do
17720
17721 acl_save_prefix="$prefix"
17722 prefix="$acl_final_prefix"
17723 acl_save_exec_prefix="$exec_prefix"
17724 exec_prefix="$acl_final_exec_prefix"
17725 eval x=\"$x\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17728
17729 if test "X$x" = "X$element"; then
17730 haveit=yes
17731 break
17732 fi
17733 done
17734 if test -z "$haveit"; then
17735 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17736 fi
17737 done
17738
17739
17740 for element in `$PKG_CONFIG --libs libffi`; do
17741 haveit=
17742 for x in $LIBS; do
17743
17744 acl_save_prefix="$prefix"
17745 prefix="$acl_final_prefix"
17746 acl_save_exec_prefix="$exec_prefix"
17747 exec_prefix="$acl_final_exec_prefix"
17748 eval x=\"$x\"
17749 exec_prefix="$acl_save_exec_prefix"
17750 prefix="$acl_save_prefix"
17751
17752 if test "X$x" = "X$element"; then
17753 haveit=yes
17754 break
17755 fi
17756 done
17757 if test -z "$haveit"; then
17758 LIBS="${LIBS}${LIBS:+ }$element"
17759 fi
17760 done
17761
17762
9c60689e 17763fi
a667869d 17764 ac_ext=mm
47aaa820
DWT
17765ac_cpp='$OBJCXXCPP $CPPFLAGS'
17766ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17769
a667869d 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
47aaa820 17771$as_echo_n "checking if we really have Objective C++... " >&6; }
a667869d 17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820
DWT
17773/* end confdefs.h. */
17774
a667869d 17775 // This space intentionally left blank
47aaa820
DWT
17776
17777_ACEOF
17778if ac_fn_objcxx_try_compile "$LINENO"; then :
17779
a667869d
DWT
17780 CY_OBJECTIVEC=1
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47aaa820
DWT
17782$as_echo "yes" >&6; }
17783
17784else
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786$as_echo "no" >&6; }
17787fi
17788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a667869d 17789 if test "x$CY_OBJECTIVEC" = x1; then :
47aaa820 17790
c823f118
DWT
17791
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
17793$as_echo_n "checking for framework CoreFoundation... " >&6; }
17794if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17796else
17797
17798 ac_check_framework_save_LIBS=$LIBS
17799 LIBS="-framework CoreFoundation $LIBS"
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801/* end confdefs.h. */
17802
17803 #include <CoreFoundation/CFBase.h>
17804
17805int
17806main ()
17807{
17808CFAllocatorGetDefault();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813if ac_fn_objcxx_try_link "$LINENO"; then :
17814
17815 ac_cv_framework_CoreFoundation=yes
17816
17817else
17818 ac_cv_framework_CoreFoundation=no
17819fi
17820rm -f core conftest.err conftest.$ac_objext \
17821 conftest$ac_exeext conftest.$ac_ext
17822 LIBS=$ac_check_framework_save_LIBS
17823
17824fi
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
17826$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
17827 if test $ac_cv_framework_CoreFoundation = yes; then :
17828
17829
17830 for element in "-framework CoreFoundation $LIBS"; do
17831 haveit=
17832 for x in $LIBS; do
17833
17834 acl_save_prefix="$prefix"
17835 prefix="$acl_final_prefix"
17836 acl_save_exec_prefix="$exec_prefix"
17837 exec_prefix="$acl_final_exec_prefix"
17838 eval x=\"$x\"
17839 exec_prefix="$acl_save_exec_prefix"
17840 prefix="$acl_save_prefix"
17841
17842 if test "X$x" = "X$element"; then
17843 haveit=yes
17844 break
17845 fi
17846 done
17847 if test -z "$haveit"; then
17848 LIBS="${LIBS}${LIBS:+ }$element"
17849 fi
17850 done
17851
17852
17853
17854
17855
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
17857$as_echo_n "checking for framework Foundation... " >&6; }
17858if test "${ac_cv_framework_Foundation+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17860else
17861
17862 ac_check_framework_save_LIBS=$LIBS
17863 LIBS="-framework Foundation $LIBS"
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865/* end confdefs.h. */
17866
17867 #include <Foundation/NSObject.h>
17868
17869int
17870main ()
17871{
17872[[NSObject alloc] init];
17873 ;
17874 return 0;
17875}
17876_ACEOF
17877if ac_fn_objcxx_try_link "$LINENO"; then :
17878
17879 ac_cv_framework_Foundation=yes
17880
17881else
17882 ac_cv_framework_Foundation=no
17883fi
17884rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_framework_save_LIBS
17887
17888fi
17889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
17890$as_echo "$ac_cv_framework_Foundation" >&6; }
17891 if test $ac_cv_framework_Foundation = yes; then :
17892
17893
17894 for element in "-framework Foundation $LIBS"; do
17895 haveit=
17896 for x in $LIBS; do
17897
17898 acl_save_prefix="$prefix"
17899 prefix="$acl_final_prefix"
17900 acl_save_exec_prefix="$exec_prefix"
17901 exec_prefix="$acl_final_exec_prefix"
17902 eval x=\"$x\"
17903 exec_prefix="$acl_save_exec_prefix"
17904 prefix="$acl_save_prefix"
17905
17906 if test "X$x" = "X$element"; then
17907 haveit=yes
17908 break
17909 fi
17910 done
17911 if test -z "$haveit"; then
17912 LIBS="${LIBS}${LIBS:+ }$element"
17913 fi
17914 done
17915
17916 cat >>confdefs.h <<_ACEOF
17917#define HAVE_FRAMEWORK_FOUNDATION 1
17918_ACEOF
17919
17920
17921fi
17922
17923
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
17925$as_echo_n "checking for framework WebKit... " >&6; }
17926if test "${ac_cv_framework_WebKit+set}" = set; then :
17927 $as_echo_n "(cached) " >&6
17928else
17929
17930 ac_check_framework_save_LIBS=$LIBS
17931 LIBS="-framework WebKit $LIBS"
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933/* end confdefs.h. */
17934
17935 #include <WebKit/WebScriptObject.h>
17936
17937int
17938main ()
17939{
17940[[WebScriptObject alloc] init];
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945if ac_fn_objcxx_try_link "$LINENO"; then :
17946
17947 ac_cv_framework_WebKit=yes
17948
17949else
17950 ac_cv_framework_WebKit=no
17951fi
17952rm -f core conftest.err conftest.$ac_objext \
17953 conftest$ac_exeext conftest.$ac_ext
17954 LIBS=$ac_check_framework_save_LIBS
17955
17956fi
17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
17958$as_echo "$ac_cv_framework_WebKit" >&6; }
17959 if test $ac_cv_framework_WebKit = yes; then :
17960
17961
17962 for element in "-framework WebKit $LIBS"; do
17963 haveit=
17964 for x in $LIBS; do
17965
17966 acl_save_prefix="$prefix"
17967 prefix="$acl_final_prefix"
17968 acl_save_exec_prefix="$exec_prefix"
17969 exec_prefix="$acl_final_exec_prefix"
17970 eval x=\"$x\"
17971 exec_prefix="$acl_save_exec_prefix"
17972 prefix="$acl_save_prefix"
17973
17974 if test "X$x" = "X$element"; then
17975 haveit=yes
17976 break
17977 fi
17978 done
17979 if test -z "$haveit"; then
17980 LIBS="${LIBS}${LIBS:+ }$element"
17981 fi
17982 done
17983
17984 cat >>confdefs.h <<_ACEOF
17985#define HAVE_FRAMEWORK_WEBKIT 1
17986_ACEOF
17987
17988
17989fi
17990
17991
17992else
17993
790e5246 17994
c823f118 17995 for ac_prog in gnustep-config
47aaa820
DWT
17996do
17997 # Extract the first word of "$ac_prog", so it can be a program name with args.
17998set dummy $ac_prog; ac_word=$2
17999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18000$as_echo_n "checking for $ac_word... " >&6; }
18001if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
18002 $as_echo_n "(cached) " >&6
18003else
18004 if test -n "$GNUSTEP_CONFIG"; then
18005 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18006else
18007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18008for as_dir in $PATH
18009do
18010 IFS=$as_save_IFS
18011 test -z "$as_dir" && as_dir=.
18012 for ac_exec_ext in '' $ac_executable_extensions; do
18013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18014 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18016 break 2
18017 fi
18018done
18019 done
18020IFS=$as_save_IFS
18021
18022fi
18023fi
18024GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18025if test -n "$GNUSTEP_CONFIG"; then
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18027$as_echo "$GNUSTEP_CONFIG" >&6; }
18028else
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030$as_echo "no" >&6; }
18031fi
18032
18033
18034 test -n "$GNUSTEP_CONFIG" && break
18035done
18036
c823f118 18037 if test "x$GNUSTEP_CONFIG" != x; then :
47aaa820
DWT
18038
18039
18040
18041 for element in `$GNUSTEP_CONFIG --objc-flags`; do
18042 haveit=
18043 for x in $OBJCXXFLAGS; do
18044
18045 acl_save_prefix="$prefix"
18046 prefix="$acl_final_prefix"
18047 acl_save_exec_prefix="$exec_prefix"
18048 exec_prefix="$acl_final_exec_prefix"
18049 eval x=\"$x\"
18050 exec_prefix="$acl_save_exec_prefix"
18051 prefix="$acl_save_prefix"
9c60689e 18052
47aaa820
DWT
18053 if test "X$x" = "X$element"; then
18054 haveit=yes
18055 break
18056 fi
18057 done
18058 if test -z "$haveit"; then
18059 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18060 fi
18061 done
18062
18063
18064 for element in `$GNUSTEP_CONFIG --base-libs`; do
18065 haveit=
18066 for x in $LIBS; do
18067
18068 acl_save_prefix="$prefix"
18069 prefix="$acl_final_prefix"
18070 acl_save_exec_prefix="$exec_prefix"
18071 exec_prefix="$acl_final_exec_prefix"
18072 eval x=\"$x\"
18073 exec_prefix="$acl_save_exec_prefix"
18074 prefix="$acl_save_prefix"
18075
18076 if test "X$x" = "X$element"; then
18077 haveit=yes
18078 break
18079 fi
18080 done
18081 if test -z "$haveit"; then
18082 LIBS="${LIBS}${LIBS:+ }$element"
18083 fi
18084 done
18085
18086
c823f118
DWT
18087else
18088 CY_OBJECTIVEC=0
18089
18090fi
18091
47aaa820
DWT
18092fi
18093
18094fi
c823f118
DWT
18095 ac_ext=cpp
18096ac_cpp='$CXXCPP $CPPFLAGS'
18097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18100
a667869d
DWT
18101 ;; #(
18102 *) :
b66977f1 18103 ;;
a667869d 18104esac
e1cce270
DWT
18105if test "x$CY_OBJECTIVEC" = x1; then :
18106
18107 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18108if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18109
18110 case $OTOOL in #(
18111 :) :
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5
18113$as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #(
18114 *) :
18115 CY_OBJECTIVEC_MACH=1
18116 ;;
18117esac
18118
18119fi
18120
18121
18122
790e5246
DWT
18123fi
18124if test "x$GMAKE" != xmake; then :
18125
18126 ac_config_files="$ac_config_files Makefile"
18127
18128
47aaa820 18129fi
9c60689e
DWT
18130ac_config_files="$ac_config_files GNUmakefile"
18131
18132cat >confcache <<\_ACEOF
18133# This file is a shell script that caches the results of configure
18134# tests run on this system so they can be shared between configure
18135# scripts and configure runs, see configure's option --config-cache.
18136# It is not useful on other systems. If it contains results you don't
18137# want to keep, you may remove or edit it.
18138#
18139# config.status only pays attention to the cache file if you give it
18140# the --recheck option to rerun configure.
18141#
18142# `ac_cv_env_foo' variables (set or unset) will be overridden when
18143# loading this file, other *unset* `ac_cv_foo' will be assigned the
18144# following values.
18145
18146_ACEOF
18147
18148# The following way of writing the cache mishandles newlines in values,
18149# but we know of no workaround that is simple, portable, and efficient.
18150# So, we kill variables containing newlines.
18151# Ultrix sh set writes to stderr and can't be redirected directly,
18152# and sets the high bit in the cache file unless we assign to the vars.
18153(
18154 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18155 eval ac_val=\$$ac_var
18156 case $ac_val in #(
18157 *${as_nl}*)
18158 case $ac_var in #(
18159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18161 esac
18162 case $ac_var in #(
18163 _ | IFS | as_nl) ;; #(
18164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18165 *) { eval $ac_var=; unset $ac_var;} ;;
18166 esac ;;
18167 esac
18168 done
18169
18170 (set) 2>&1 |
18171 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18172 *${as_nl}ac_space=\ *)
18173 # `set' does not quote correctly, so add quotes: double-quote
18174 # substitution turns \\\\ into \\, and sed turns \\ into \.
18175 sed -n \
18176 "s/'/'\\\\''/g;
18177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18178 ;; #(
18179 *)
18180 # `set' quotes correctly as required by POSIX, so do not add quotes.
18181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18182 ;;
18183 esac |
18184 sort
18185) |
18186 sed '
18187 /^ac_cv_env_/b end
18188 t clear
18189 :clear
18190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18191 t end
18192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18193 :end' >>confcache
18194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18195 if test -w "$cache_file"; then
18196 test "x$cache_file" != "x/dev/null" &&
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18198$as_echo "$as_me: updating cache $cache_file" >&6;}
18199 cat confcache >$cache_file
18200 else
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18202$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18203 fi
18204fi
18205rm -f confcache
18206
18207test "x$prefix" = xNONE && prefix=$ac_default_prefix
18208# Let make expand exec_prefix.
18209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18210
18211# Transform confdefs.h into DEFS.
18212# Protect against shell expansion while executing Makefile rules.
18213# Protect against Makefile macro expansion.
18214#
18215# If the first sed substitution is executed (which looks for macros that
18216# take arguments), then branch to the quote section. Otherwise,
18217# look for a macro that doesn't take arguments.
18218ac_script='
18219:mline
18220/\\$/{
18221 N
18222 s,\\\n,,
18223 b mline
18224}
18225t clear
18226:clear
18227s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18228t quote
18229s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18230t quote
18231b any
18232:quote
18233s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18234s/\[/\\&/g
18235s/\]/\\&/g
18236s/\$/$$/g
18237H
18238:any
18239${
18240 g
18241 s/^\n//
18242 s/\n/ /g
18243 p
18244}
18245'
18246DEFS=`sed -n "$ac_script" confdefs.h`
18247
18248
18249ac_libobjs=
18250ac_ltlibobjs=
18251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18252 # 1. Remove the extension, and $U if already installed.
18253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18256 # will be set to the directory where LIBOBJS objects are built.
18257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18259done
18260LIBOBJS=$ac_libobjs
18261
18262LTLIBOBJS=$ac_ltlibobjs
18263
18264
18265
18266: ${CONFIG_STATUS=./config.status}
18267ac_write_fail=0
18268ac_clean_files_save=$ac_clean_files
18269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18270{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18271$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18272as_write_fail=0
18273cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18274#! $SHELL
18275# Generated by $as_me.
18276# Run this file to recreate the current configuration.
18277# Compiler output produced by configure, useful for debugging
18278# configure, is in config.log if it exists.
18279
18280debug=false
18281ac_cs_recheck=false
18282ac_cs_silent=false
18283
18284SHELL=\${CONFIG_SHELL-$SHELL}
18285export SHELL
18286_ASEOF
18287cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18288## -------------------- ##
18289## M4sh Initialization. ##
18290## -------------------- ##
18291
18292# Be more Bourne compatible
18293DUALCASE=1; export DUALCASE # for MKS sh
18294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18295 emulate sh
18296 NULLCMD=:
18297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18298 # is contrary to our usage. Disable this feature.
18299 alias -g '${1+"$@"}'='"$@"'
18300 setopt NO_GLOB_SUBST
18301else
18302 case `(set -o) 2>/dev/null` in #(
18303 *posix*) :
18304 set -o posix ;; #(
18305 *) :
18306 ;;
18307esac
18308fi
18309
18310
18311as_nl='
18312'
18313export as_nl
18314# Printing a long string crashes Solaris 7 /usr/bin/printf.
18315as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18317as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18318# Prefer a ksh shell builtin over an external printf program on Solaris,
18319# but without wasting forks for bash or zsh.
18320if test -z "$BASH_VERSION$ZSH_VERSION" \
18321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18322 as_echo='print -r --'
18323 as_echo_n='print -rn --'
18324elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18325 as_echo='printf %s\n'
18326 as_echo_n='printf %s'
18327else
18328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18330 as_echo_n='/usr/ucb/echo -n'
18331 else
18332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18333 as_echo_n_body='eval
18334 arg=$1;
18335 case $arg in #(
18336 *"$as_nl"*)
18337 expr "X$arg" : "X\\(.*\\)$as_nl";
18338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18339 esac;
18340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18341 '
18342 export as_echo_n_body
18343 as_echo_n='sh -c $as_echo_n_body as_echo'
18344 fi
18345 export as_echo_body
18346 as_echo='sh -c $as_echo_body as_echo'
18347fi
18348
18349# The user is always right.
18350if test "${PATH_SEPARATOR+set}" != set; then
18351 PATH_SEPARATOR=:
18352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18354 PATH_SEPARATOR=';'
18355 }
18356fi
18357
18358
18359# IFS
18360# We need space, tab and new line, in precisely that order. Quoting is
18361# there to prevent editors from complaining about space-tab.
18362# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18363# splitting by setting IFS to empty value.)
18364IFS=" "" $as_nl"
18365
18366# Find who we are. Look in the path if we contain no directory separator.
18367case $0 in #((
18368 *[\\/]* ) as_myself=$0 ;;
18369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18370for as_dir in $PATH
18371do
18372 IFS=$as_save_IFS
18373 test -z "$as_dir" && as_dir=.
18374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18375 done
18376IFS=$as_save_IFS
18377
18378 ;;
18379esac
18380# We did not find ourselves, most probably we were run as `sh COMMAND'
18381# in which case we are not to be found in the path.
18382if test "x$as_myself" = x; then
18383 as_myself=$0
18384fi
18385if test ! -f "$as_myself"; then
18386 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18387 exit 1
18388fi
18389
18390# Unset variables that we do not need and which cause bugs (e.g. in
18391# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18392# suppresses any "Segmentation fault" message there. '((' could
18393# trigger a bug in pdksh 5.2.14.
18394for as_var in BASH_ENV ENV MAIL MAILPATH
18395do eval test x\${$as_var+set} = xset \
18396 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18397done
18398PS1='$ '
18399PS2='> '
18400PS4='+ '
18401
18402# NLS nuisances.
18403LC_ALL=C
18404export LC_ALL
18405LANGUAGE=C
18406export LANGUAGE
18407
18408# CDPATH.
18409(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18410
18411
18412# as_fn_error ERROR [LINENO LOG_FD]
18413# ---------------------------------
18414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18416# script with status $?, using 1 if that was 0.
18417as_fn_error ()
18418{
18419 as_status=$?; test $as_status -eq 0 && as_status=1
18420 if test "$3"; then
18421 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18423 fi
18424 $as_echo "$as_me: error: $1" >&2
18425 as_fn_exit $as_status
18426} # as_fn_error
18427
18428
18429# as_fn_set_status STATUS
18430# -----------------------
18431# Set $? to STATUS, without forking.
18432as_fn_set_status ()
18433{
18434 return $1
18435} # as_fn_set_status
18436
18437# as_fn_exit STATUS
18438# -----------------
18439# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18440as_fn_exit ()
18441{
18442 set +e
18443 as_fn_set_status $1
18444 exit $1
18445} # as_fn_exit
18446
18447# as_fn_unset VAR
18448# ---------------
18449# Portably unset VAR.
18450as_fn_unset ()
18451{
18452 { eval $1=; unset $1;}
18453}
18454as_unset=as_fn_unset
18455# as_fn_append VAR VALUE
18456# ----------------------
18457# Append the text in VALUE to the end of the definition contained in VAR. Take
18458# advantage of any shell optimizations that allow amortized linear growth over
18459# repeated appends, instead of the typical quadratic growth present in naive
18460# implementations.
18461if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18462 eval 'as_fn_append ()
18463 {
18464 eval $1+=\$2
18465 }'
18466else
18467 as_fn_append ()
18468 {
18469 eval $1=\$$1\$2
18470 }
18471fi # as_fn_append
18472
18473# as_fn_arith ARG...
18474# ------------------
18475# Perform arithmetic evaluation on the ARGs, and store the result in the
18476# global $as_val. Take advantage of shells that can avoid forks. The arguments
18477# must be portable across $(()) and expr.
18478if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18479 eval 'as_fn_arith ()
18480 {
18481 as_val=$(( $* ))
18482 }'
18483else
18484 as_fn_arith ()
18485 {
18486 as_val=`expr "$@" || test $? -eq 1`
18487 }
18488fi # as_fn_arith
18489
18490
18491if expr a : '\(a\)' >/dev/null 2>&1 &&
18492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18493 as_expr=expr
18494else
18495 as_expr=false
18496fi
18497
18498if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18499 as_basename=basename
18500else
18501 as_basename=false
18502fi
18503
18504if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18505 as_dirname=dirname
18506else
18507 as_dirname=false
18508fi
18509
18510as_me=`$as_basename -- "$0" ||
18511$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18512 X"$0" : 'X\(//\)$' \| \
18513 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18514$as_echo X/"$0" |
18515 sed '/^.*\/\([^/][^/]*\)\/*$/{
18516 s//\1/
18517 q
18518 }
18519 /^X\/\(\/\/\)$/{
18520 s//\1/
18521 q
18522 }
18523 /^X\/\(\/\).*/{
18524 s//\1/
18525 q
18526 }
18527 s/.*/./; q'`
18528
18529# Avoid depending upon Character Ranges.
18530as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18532as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18533as_cr_digits='0123456789'
18534as_cr_alnum=$as_cr_Letters$as_cr_digits
18535
18536ECHO_C= ECHO_N= ECHO_T=
18537case `echo -n x` in #(((((
18538-n*)
18539 case `echo 'xy\c'` in
18540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18541 xy) ECHO_C='\c';;
18542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18543 ECHO_T=' ';;
18544 esac;;
18545*)
18546 ECHO_N='-n';;
18547esac
18548
18549rm -f conf$$ conf$$.exe conf$$.file
18550if test -d conf$$.dir; then
18551 rm -f conf$$.dir/conf$$.file
18552else
18553 rm -f conf$$.dir
18554 mkdir conf$$.dir 2>/dev/null
18555fi
18556if (echo >conf$$.file) 2>/dev/null; then
18557 if ln -s conf$$.file conf$$ 2>/dev/null; then
18558 as_ln_s='ln -s'
18559 # ... but there are two gotchas:
18560 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18561 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18562 # In both cases, we have to default to `cp -p'.
18563 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18564 as_ln_s='cp -p'
18565 elif ln conf$$.file conf$$ 2>/dev/null; then
18566 as_ln_s=ln
18567 else
18568 as_ln_s='cp -p'
18569 fi
18570else
18571 as_ln_s='cp -p'
18572fi
18573rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18574rmdir conf$$.dir 2>/dev/null
18575
18576
18577# as_fn_mkdir_p
18578# -------------
18579# Create "$as_dir" as a directory, including parents if necessary.
18580as_fn_mkdir_p ()
18581{
18582
18583 case $as_dir in #(
18584 -*) as_dir=./$as_dir;;
18585 esac
18586 test -d "$as_dir" || eval $as_mkdir_p || {
18587 as_dirs=
18588 while :; do
18589 case $as_dir in #(
18590 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18591 *) as_qdir=$as_dir;;
18592 esac
18593 as_dirs="'$as_qdir' $as_dirs"
18594 as_dir=`$as_dirname -- "$as_dir" ||
18595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18596 X"$as_dir" : 'X\(//\)[^/]' \| \
18597 X"$as_dir" : 'X\(//\)$' \| \
18598 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18599$as_echo X"$as_dir" |
18600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18601 s//\1/
18602 q
18603 }
18604 /^X\(\/\/\)[^/].*/{
18605 s//\1/
18606 q
18607 }
18608 /^X\(\/\/\)$/{
18609 s//\1/
18610 q
18611 }
18612 /^X\(\/\).*/{
18613 s//\1/
18614 q
18615 }
18616 s/.*/./; q'`
18617 test -d "$as_dir" && break
18618 done
18619 test -z "$as_dirs" || eval "mkdir $as_dirs"
18620 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18621
18622
18623} # as_fn_mkdir_p
18624if mkdir -p . 2>/dev/null; then
18625 as_mkdir_p='mkdir -p "$as_dir"'
18626else
18627 test -d ./-p && rmdir ./-p
18628 as_mkdir_p=false
18629fi
18630
18631if test -x / >/dev/null 2>&1; then
18632 as_test_x='test -x'
18633else
18634 if ls -dL / >/dev/null 2>&1; then
18635 as_ls_L_option=L
18636 else
18637 as_ls_L_option=
18638 fi
18639 as_test_x='
18640 eval sh -c '\''
18641 if test -d "$1"; then
18642 test -d "$1/.";
18643 else
18644 case $1 in #(
18645 -*)set "./$1";;
18646 esac;
18647 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18648 ???[sx]*):;;*)false;;esac;fi
18649 '\'' sh
18650 '
18651fi
18652as_executable_p=$as_test_x
18653
18654# Sed expression to map a string onto a valid CPP name.
18655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18656
18657# Sed expression to map a string onto a valid variable name.
18658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18659
18660
18661exec 6>&1
18662## ----------------------------------- ##
18663## Main body of $CONFIG_STATUS script. ##
18664## ----------------------------------- ##
18665_ASEOF
18666test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18667
18668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669# Save the log message, to keep $0 and so on meaningful, and to
18670# report actual input values of CONFIG_FILES etc. instead of their
18671# values after options handling.
18672ac_log="
18673This file was extended by Cycript $as_me 0.9, which was
18674generated by GNU Autoconf 2.65. Invocation command line was
18675
18676 CONFIG_FILES = $CONFIG_FILES
18677 CONFIG_HEADERS = $CONFIG_HEADERS
18678 CONFIG_LINKS = $CONFIG_LINKS
18679 CONFIG_COMMANDS = $CONFIG_COMMANDS
18680 $ $0 $@
18681
18682on `(hostname || uname -n) 2>/dev/null | sed 1q`
18683"
18684
18685_ACEOF
18686
18687case $ac_config_files in *"
18688"*) set x $ac_config_files; shift; ac_config_files=$*;;
18689esac
18690
18691
18692
18693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18694# Files that config.status was made for.
18695config_files="$ac_config_files"
18696config_commands="$ac_config_commands"
18697
18698_ACEOF
18699
18700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18701ac_cs_usage="\
18702\`$as_me' instantiates files and other configuration actions
18703from templates according to the current configuration. Unless the files
18704and actions are specified as TAGs, all are instantiated by default.
18705
18706Usage: $0 [OPTION]... [TAG]...
18707
18708 -h, --help print this help, then exit
18709 -V, --version print version number and configuration settings, then exit
18710 --config print configuration, then exit
18711 -q, --quiet, --silent
18712 do not print progress messages
18713 -d, --debug don't remove temporary files
18714 --recheck update $as_me by reconfiguring in the same conditions
18715 --file=FILE[:TEMPLATE]
18716 instantiate the configuration file FILE
18717
18718Configuration files:
18719$config_files
18720
18721Configuration commands:
18722$config_commands
18723
18724Report bugs to <saurik@saurik.com>.
18725Cycript home page: <http://www.cycript.org/>."
18726
18727_ACEOF
18728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18729ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18730ac_cs_version="\\
18731Cycript config.status 0.9
18732configured by $0, generated by GNU Autoconf 2.65,
18733 with options \\"\$ac_cs_config\\"
18734
18735Copyright (C) 2009 Free Software Foundation, Inc.
18736This config.status script is free software; the Free Software Foundation
18737gives unlimited permission to copy, distribute and modify it."
18738
18739ac_pwd='$ac_pwd'
18740srcdir='$srcdir'
18741INSTALL='$INSTALL'
9c60689e
DWT
18742test -n "\$AWK" || AWK=awk
18743_ACEOF
18744
18745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746# The default lists apply if the user does not specify any file.
18747ac_need_defaults=:
18748while test $# != 0
18749do
18750 case $1 in
18751 --*=*)
18752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18754 ac_shift=:
18755 ;;
18756 *)
18757 ac_option=$1
18758 ac_optarg=$2
18759 ac_shift=shift
18760 ;;
18761 esac
18762
18763 case $ac_option in
18764 # Handling of the options.
18765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18766 ac_cs_recheck=: ;;
18767 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18768 $as_echo "$ac_cs_version"; exit ;;
18769 --config | --confi | --conf | --con | --co | --c )
18770 $as_echo "$ac_cs_config"; exit ;;
18771 --debug | --debu | --deb | --de | --d | -d )
18772 debug=: ;;
18773 --file | --fil | --fi | --f )
18774 $ac_shift
18775 case $ac_optarg in
18776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18777 esac
18778 as_fn_append CONFIG_FILES " '$ac_optarg'"
18779 ac_need_defaults=false;;
18780 --he | --h | --help | --hel | -h )
18781 $as_echo "$ac_cs_usage"; exit ;;
18782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18784 ac_cs_silent=: ;;
18785
18786 # This is an error.
18787 -*) as_fn_error "unrecognized option: \`$1'
18788Try \`$0 --help' for more information." ;;
18789
18790 *) as_fn_append ac_config_targets " $1"
18791 ac_need_defaults=false ;;
18792
18793 esac
18794 shift
18795done
18796
18797ac_configure_extra_args=
18798
18799if $ac_cs_silent; then
18800 exec 6>/dev/null
18801 ac_configure_extra_args="$ac_configure_extra_args --silent"
18802fi
18803
18804_ACEOF
18805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18806if \$ac_cs_recheck; then
18807 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18808 shift
18809 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18810 CONFIG_SHELL='$SHELL'
18811 export CONFIG_SHELL
18812 exec "\$@"
18813fi
18814
18815_ACEOF
18816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18817exec 5>>config.log
18818{
18819 echo
18820 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18821## Running $as_me. ##
18822_ASBOX
18823 $as_echo "$ac_log"
18824} >&5
18825
18826_ACEOF
18827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828#
18829# INIT-COMMANDS
18830#
18831
18832
18833# The HP-UX ksh and POSIX shell print the target directory to stdout
18834# if CDPATH is set.
18835(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18836
18837sed_quote_subst='$sed_quote_subst'
18838double_quote_subst='$double_quote_subst'
18839delay_variable_subst='$delay_variable_subst'
18840macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18841macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e 18842enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
549f29b5 18843enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e
DWT
18844pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18845enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18846host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18847host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18848host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18849build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18850build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18851build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18852SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18853Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18854GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18855EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18856FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18857LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18858NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18859LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18860max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18861ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18862exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18863lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18864lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18865lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18866reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18867reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18868OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18869deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18870file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18871AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18872AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18873STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18874RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18875old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18876old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18877old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18878CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18879CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18880compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18881GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18882lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18883lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18884lt_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"`'
18885lt_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"`'
18886objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18887SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18888ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18889MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18890lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18891lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18892lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18893lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18894lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18895need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18896DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18897NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18898LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18899OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18900OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18901libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18902shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18903extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18904archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18905enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18906export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18907whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18908compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18909old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18910old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18911archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18912archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18913module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18914module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18915with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18916allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18917no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18918hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18919hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18920hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18921hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18922hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18923hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18924hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18925hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18926inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18927link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18928fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18929always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18930export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18931exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18932include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18933prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18934file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18935variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18936need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18937need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18938version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18939runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18940shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18941shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18942libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18943library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18944soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18945postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18946postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18947finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18948finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18949hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18950sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18951sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18952hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18953enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18954enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18955enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18956old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18957striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18958compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18959predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18960postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18961predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18962postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18963compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18964LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18965old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18966compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18967GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18968lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18969lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18970lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18971lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18972lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18973archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18974enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18975export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18976whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18977compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18978old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18979old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18980archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18981archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18982module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18983module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18984with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18985allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18986no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18987hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18988hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18989hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18990hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18991hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18992hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18993hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18994hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18995inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18996link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18997fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18998always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18999export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19000exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19001include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19002prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19003file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19004hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19005compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19006predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19007postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19008predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19009postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19010compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19011
19012LTCC='$LTCC'
19013LTCFLAGS='$LTCFLAGS'
19014compiler='$compiler_DEFAULT'
19015
19016# Quote evaled strings.
19017for var in SED \
19018GREP \
19019EGREP \
19020FGREP \
19021LD \
19022NM \
19023LN_S \
19024lt_SP2NL \
19025lt_NL2SP \
19026reload_flag \
19027OBJDUMP \
19028deplibs_check_method \
19029file_magic_cmd \
19030AR \
19031AR_FLAGS \
19032STRIP \
19033RANLIB \
19034CC \
19035CFLAGS \
19036compiler \
19037lt_cv_sys_global_symbol_pipe \
19038lt_cv_sys_global_symbol_to_cdecl \
19039lt_cv_sys_global_symbol_to_c_name_address \
19040lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19041SHELL \
19042ECHO \
19043lt_prog_compiler_no_builtin_flag \
19044lt_prog_compiler_wl \
19045lt_prog_compiler_pic \
19046lt_prog_compiler_static \
19047lt_cv_prog_compiler_c_o \
19048need_locks \
19049DSYMUTIL \
19050NMEDIT \
19051LIPO \
19052OTOOL \
19053OTOOL64 \
19054shrext_cmds \
19055export_dynamic_flag_spec \
19056whole_archive_flag_spec \
19057compiler_needs_object \
19058with_gnu_ld \
19059allow_undefined_flag \
19060no_undefined_flag \
19061hardcode_libdir_flag_spec \
19062hardcode_libdir_flag_spec_ld \
19063hardcode_libdir_separator \
19064fix_srcfile_path \
19065exclude_expsyms \
19066include_expsyms \
19067file_list_spec \
19068variables_saved_for_relink \
19069libname_spec \
19070library_names_spec \
19071soname_spec \
19072finish_eval \
19073old_striplib \
19074striplib \
19075compiler_lib_search_dirs \
19076predep_objects \
19077postdep_objects \
19078predeps \
19079postdeps \
19080compiler_lib_search_path \
19081LD_CXX \
19082compiler_CXX \
19083lt_prog_compiler_no_builtin_flag_CXX \
19084lt_prog_compiler_wl_CXX \
19085lt_prog_compiler_pic_CXX \
19086lt_prog_compiler_static_CXX \
19087lt_cv_prog_compiler_c_o_CXX \
19088export_dynamic_flag_spec_CXX \
19089whole_archive_flag_spec_CXX \
19090compiler_needs_object_CXX \
19091with_gnu_ld_CXX \
19092allow_undefined_flag_CXX \
19093no_undefined_flag_CXX \
19094hardcode_libdir_flag_spec_CXX \
19095hardcode_libdir_flag_spec_ld_CXX \
19096hardcode_libdir_separator_CXX \
19097fix_srcfile_path_CXX \
19098exclude_expsyms_CXX \
19099include_expsyms_CXX \
19100file_list_spec_CXX \
19101compiler_lib_search_dirs_CXX \
19102predep_objects_CXX \
19103postdep_objects_CXX \
19104predeps_CXX \
19105postdeps_CXX \
19106compiler_lib_search_path_CXX; do
19107 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19108 *[\\\\\\\`\\"\\\$]*)
19109 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19110 ;;
19111 *)
19112 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19113 ;;
19114 esac
19115done
19116
19117# Double-quote double-evaled strings.
19118for var in reload_cmds \
19119old_postinstall_cmds \
19120old_postuninstall_cmds \
19121old_archive_cmds \
19122extract_expsyms_cmds \
19123old_archive_from_new_cmds \
19124old_archive_from_expsyms_cmds \
19125archive_cmds \
19126archive_expsym_cmds \
19127module_cmds \
19128module_expsym_cmds \
19129export_symbols_cmds \
19130prelink_cmds \
19131postinstall_cmds \
19132postuninstall_cmds \
19133finish_cmds \
19134sys_lib_search_path_spec \
19135sys_lib_dlsearch_path_spec \
19136old_archive_cmds_CXX \
19137old_archive_from_new_cmds_CXX \
19138old_archive_from_expsyms_cmds_CXX \
19139archive_cmds_CXX \
19140archive_expsym_cmds_CXX \
19141module_cmds_CXX \
19142module_expsym_cmds_CXX \
19143export_symbols_cmds_CXX \
19144prelink_cmds_CXX; do
19145 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19146 *[\\\\\\\`\\"\\\$]*)
19147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19148 ;;
19149 *)
19150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19151 ;;
19152 esac
19153done
19154
19155# Fix-up fallback echo if it was mangled by the above quoting rules.
19156case \$lt_ECHO in
19157*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19158 ;;
19159esac
19160
19161ac_aux_dir='$ac_aux_dir'
19162xsi_shell='$xsi_shell'
19163lt_shell_append='$lt_shell_append'
19164
19165# See if we are running on zsh, and set the options which allow our
19166# commands through without removal of \ escapes INIT.
19167if test -n "\${ZSH_VERSION+set}" ; then
19168 setopt NO_GLOB_SUBST
19169fi
19170
19171
19172 PACKAGE='$PACKAGE'
19173 VERSION='$VERSION'
19174 TIMESTAMP='$TIMESTAMP'
19175 RM='$RM'
19176 ofile='$ofile'
19177
19178
19179
19180
19181
19182
19183_ACEOF
19184
19185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19186
19187# Handling of arguments.
19188for ac_config_target in $ac_config_targets
19189do
19190 case $ac_config_target in
19191 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 19192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e
DWT
19193 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19194
19195 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19196 esac
19197done
19198
19199
19200# If the user did not use the arguments to specify the items to instantiate,
19201# then the envvar interface is used. Set only those that are not.
19202# We use the long form for the default assignment because of an extremely
19203# bizarre bug on SunOS 4.1.3.
19204if $ac_need_defaults; then
19205 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19206 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19207fi
19208
19209# Have a temporary directory for convenience. Make it in the build tree
19210# simply because there is no reason against having it here, and in addition,
19211# creating and moving files from /tmp can sometimes cause problems.
19212# Hook for its removal unless debugging.
19213# Note that there is a small window in which the directory will not be cleaned:
19214# after its creation but before its name has been assigned to `$tmp'.
19215$debug ||
19216{
19217 tmp=
19218 trap 'exit_status=$?
19219 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19220' 0
19221 trap 'as_fn_exit 1' 1 2 13 15
19222}
19223# Create a (secure) tmp directory for tmp files.
19224
19225{
19226 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19227 test -n "$tmp" && test -d "$tmp"
19228} ||
19229{
19230 tmp=./conf$$-$RANDOM
19231 (umask 077 && mkdir "$tmp")
19232} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19233
19234# Set up the scripts for CONFIG_FILES section.
19235# No need to generate them if there are no CONFIG_FILES.
19236# This happens for instance with `./config.status config.h'.
19237if test -n "$CONFIG_FILES"; then
19238
19239
19240ac_cr=`echo X | tr X '\015'`
19241# On cygwin, bash can eat \r inside `` if the user requested igncr.
19242# But we know of no other shell where ac_cr would be empty at this
19243# point, so we can use a bashism as a fallback.
19244if test "x$ac_cr" = x; then
19245 eval ac_cr=\$\'\\r\'
19246fi
19247ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19248if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19249 ac_cs_awk_cr='\r'
19250else
19251 ac_cs_awk_cr=$ac_cr
19252fi
19253
19254echo 'BEGIN {' >"$tmp/subs1.awk" &&
19255_ACEOF
19256
19257
19258{
19259 echo "cat >conf$$subs.awk <<_ACEOF" &&
19260 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19261 echo "_ACEOF"
19262} >conf$$subs.sh ||
19263 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19264ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19265ac_delim='%!_!# '
19266for ac_last_try in false false false false false :; do
19267 . ./conf$$subs.sh ||
19268 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19269
19270 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19271 if test $ac_delim_n = $ac_delim_num; then
19272 break
19273 elif $ac_last_try; then
19274 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19275 else
19276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19277 fi
19278done
19279rm -f conf$$subs.sh
19280
19281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19282cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19283_ACEOF
19284sed -n '
19285h
19286s/^/S["/; s/!.*/"]=/
19287p
19288g
19289s/^[^!]*!//
19290:repl
19291t repl
19292s/'"$ac_delim"'$//
19293t delim
19294:nl
19295h
19296s/\(.\{148\}\)..*/\1/
19297t more1
19298s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19299p
19300n
19301b repl
19302:more1
19303s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19304p
19305g
19306s/.\{148\}//
19307t nl
19308:delim
19309h
19310s/\(.\{148\}\)..*/\1/
19311t more2
19312s/["\\]/\\&/g; s/^/"/; s/$/"/
19313p
19314b
19315:more2
19316s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19317p
19318g
19319s/.\{148\}//
19320t delim
19321' <conf$$subs.awk | sed '
19322/^[^""]/{
19323 N
19324 s/\n//
19325}
19326' >>$CONFIG_STATUS || ac_write_fail=1
19327rm -f conf$$subs.awk
19328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19329_ACAWK
19330cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19331 for (key in S) S_is_set[key] = 1
19332 FS = "\a"
19333
19334}
19335{
19336 line = $ 0
19337 nfields = split(line, field, "@")
19338 substed = 0
19339 len = length(field[1])
19340 for (i = 2; i < nfields; i++) {
19341 key = field[i]
19342 keylen = length(key)
19343 if (S_is_set[key]) {
19344 value = S[key]
19345 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19346 len += length(value) + length(field[++i])
19347 substed = 1
19348 } else
19349 len += 1 + keylen
19350 }
19351
19352 print line
19353}
19354
19355_ACAWK
19356_ACEOF
19357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19358if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19359 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19360else
19361 cat
19362fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19363 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19364_ACEOF
19365
19366# VPATH may cause trouble with some makes, so we remove $(srcdir),
19367# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19368# trailing colons and then remove the whole line if VPATH becomes empty
19369# (actually we leave an empty line to preserve line numbers).
19370if test "x$srcdir" = x.; then
19371 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19372s/:*\$(srcdir):*/:/
19373s/:*\${srcdir}:*/:/
19374s/:*@srcdir@:*/:/
19375s/^\([^=]*=[ ]*\):*/\1/
19376s/:*$//
19377s/^[^=]*=[ ]*$//
19378}'
19379fi
19380
19381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19382fi # test -n "$CONFIG_FILES"
19383
19384
19385eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19386shift
19387for ac_tag
19388do
19389 case $ac_tag in
19390 :[FHLC]) ac_mode=$ac_tag; continue;;
19391 esac
19392 case $ac_mode$ac_tag in
19393 :[FHL]*:*);;
19394 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19395 :[FH]-) ac_tag=-:-;;
19396 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19397 esac
19398 ac_save_IFS=$IFS
19399 IFS=:
19400 set x $ac_tag
19401 IFS=$ac_save_IFS
19402 shift
19403 ac_file=$1
19404 shift
19405
19406 case $ac_mode in
19407 :L) ac_source=$1;;
19408 :[FH])
19409 ac_file_inputs=
19410 for ac_f
19411 do
19412 case $ac_f in
19413 -) ac_f="$tmp/stdin";;
19414 *) # Look for the file first in the build tree, then in the source tree
19415 # (if the path is not absolute). The absolute path cannot be DOS-style,
19416 # because $ac_f cannot contain `:'.
19417 test -f "$ac_f" ||
19418 case $ac_f in
19419 [\\/$]*) false;;
19420 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19421 esac ||
19422 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19423 esac
19424 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19425 as_fn_append ac_file_inputs " '$ac_f'"
19426 done
19427
19428 # Let's still pretend it is `configure' which instantiates (i.e., don't
19429 # use $as_me), people would be surprised to read:
19430 # /* config.h. Generated by config.status. */
19431 configure_input='Generated from '`
19432 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19433 `' by configure.'
19434 if test x"$ac_file" != x-; then
19435 configure_input="$ac_file. $configure_input"
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19437$as_echo "$as_me: creating $ac_file" >&6;}
19438 fi
19439 # Neutralize special characters interpreted by sed in replacement strings.
19440 case $configure_input in #(
19441 *\&* | *\|* | *\\* )
19442 ac_sed_conf_input=`$as_echo "$configure_input" |
19443 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19444 *) ac_sed_conf_input=$configure_input;;
19445 esac
19446
19447 case $ac_tag in
19448 *:-:* | *:-) cat >"$tmp/stdin" \
19449 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19450 esac
19451 ;;
19452 esac
19453
19454 ac_dir=`$as_dirname -- "$ac_file" ||
19455$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19456 X"$ac_file" : 'X\(//\)[^/]' \| \
19457 X"$ac_file" : 'X\(//\)$' \| \
19458 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19459$as_echo X"$ac_file" |
19460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19461 s//\1/
19462 q
19463 }
19464 /^X\(\/\/\)[^/].*/{
19465 s//\1/
19466 q
19467 }
19468 /^X\(\/\/\)$/{
19469 s//\1/
19470 q
19471 }
19472 /^X\(\/\).*/{
19473 s//\1/
19474 q
19475 }
19476 s/.*/./; q'`
19477 as_dir="$ac_dir"; as_fn_mkdir_p
19478 ac_builddir=.
19479
19480case "$ac_dir" in
19481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19482*)
19483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19484 # A ".." for each directory in $ac_dir_suffix.
19485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19486 case $ac_top_builddir_sub in
19487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19489 esac ;;
19490esac
19491ac_abs_top_builddir=$ac_pwd
19492ac_abs_builddir=$ac_pwd$ac_dir_suffix
19493# for backward compatibility:
19494ac_top_builddir=$ac_top_build_prefix
35fa52c0 19495
9c60689e
DWT
19496case $srcdir in
19497 .) # We are building in place.
19498 ac_srcdir=.
19499 ac_top_srcdir=$ac_top_builddir_sub
19500 ac_abs_top_srcdir=$ac_pwd ;;
19501 [\\/]* | ?:[\\/]* ) # Absolute name.
19502 ac_srcdir=$srcdir$ac_dir_suffix;
19503 ac_top_srcdir=$srcdir
19504 ac_abs_top_srcdir=$srcdir ;;
19505 *) # Relative name.
19506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19507 ac_top_srcdir=$ac_top_build_prefix$srcdir
19508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19509esac
19510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
19511
19512
9c60689e
DWT
19513 case $ac_mode in
19514 :F)
19515 #
19516 # CONFIG_FILE
19517 #
35fa52c0 19518
9c60689e
DWT
19519 case $INSTALL in
19520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19521 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19522 esac
19523_ACEOF
35fa52c0 19524
9c60689e
DWT
19525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19526# If the template does not know about datarootdir, expand it.
19527# FIXME: This hack should be removed a few years after 2.60.
19528ac_datarootdir_hack=; ac_datarootdir_seen=
19529ac_sed_dataroot='
19530/datarootdir/ {
19531 p
19532 q
19533}
19534/@datadir@/p
19535/@docdir@/p
19536/@infodir@/p
19537/@localedir@/p
19538/@mandir@/p'
19539case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19540*datarootdir*) ac_datarootdir_seen=yes;;
19541*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19543$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19544_ACEOF
19545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546 ac_datarootdir_hack='
19547 s&@datadir@&$datadir&g
19548 s&@docdir@&$docdir&g
19549 s&@infodir@&$infodir&g
19550 s&@localedir@&$localedir&g
19551 s&@mandir@&$mandir&g
19552 s&\\\${datarootdir}&$datarootdir&g' ;;
19553esac
19554_ACEOF
35fa52c0 19555
9c60689e
DWT
19556# Neutralize VPATH when `$srcdir' = `.'.
19557# Shell code in configure.ac might set extrasub.
19558# FIXME: do we really want to maintain this feature?
19559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19560ac_sed_extra="$ac_vpsub
19561$extrasub
19562_ACEOF
19563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19564:t
19565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19566s|@configure_input@|$ac_sed_conf_input|;t t
19567s&@top_builddir@&$ac_top_builddir_sub&;t t
19568s&@top_build_prefix@&$ac_top_build_prefix&;t t
19569s&@srcdir@&$ac_srcdir&;t t
19570s&@abs_srcdir@&$ac_abs_srcdir&;t t
19571s&@top_srcdir@&$ac_top_srcdir&;t t
19572s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19573s&@builddir@&$ac_builddir&;t t
19574s&@abs_builddir@&$ac_abs_builddir&;t t
19575s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19576s&@INSTALL@&$ac_INSTALL&;t t
19577$ac_datarootdir_hack
19578"
19579eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19580 || as_fn_error "could not create $ac_file" "$LINENO" 5
19581
19582test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19586which seems to be undefined. Please make sure it is defined." >&5
19587$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19588which seems to be undefined. Please make sure it is defined." >&2;}
19589
19590 rm -f "$tmp/stdin"
19591 case $ac_file in
19592 -) cat "$tmp/out" && rm -f "$tmp/out";;
19593 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19594 esac \
19595 || as_fn_error "could not create $ac_file" "$LINENO" 5
19596 ;;
35fa52c0 19597
35fa52c0 19598
9c60689e
DWT
19599 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19600$as_echo "$as_me: executing $ac_file commands" >&6;}
19601 ;;
19602 esac
35fa52c0 19603
35fa52c0 19604
9c60689e
DWT
19605 case $ac_file$ac_mode in
19606 "libtool":C)
19607
19608 # See if we are running on zsh, and set the options which allow our
19609 # commands through without removal of \ escapes.
19610 if test -n "${ZSH_VERSION+set}" ; then
19611 setopt NO_GLOB_SUBST
35fa52c0 19612 fi
35fa52c0 19613
9c60689e
DWT
19614 cfgfile="${ofile}T"
19615 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19616 $RM "$cfgfile"
35fa52c0 19617
9c60689e
DWT
19618 cat <<_LT_EOF >> "$cfgfile"
19619#! $SHELL
35fa52c0 19620
9c60689e
DWT
19621# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19622# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19623# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19624# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19625#
19626# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19627# 2006, 2007, 2008 Free Software Foundation, Inc.
19628# Written by Gordon Matzigkeit, 1996
19629#
19630# This file is part of GNU Libtool.
19631#
19632# GNU Libtool is free software; you can redistribute it and/or
19633# modify it under the terms of the GNU General Public License as
19634# published by the Free Software Foundation; either version 2 of
19635# the License, or (at your option) any later version.
19636#
19637# As a special exception to the GNU General Public License,
19638# if you distribute this file as part of a program or library that
19639# is built using GNU Libtool, you may include this file under the
19640# same distribution terms that you use for the rest of that program.
19641#
19642# GNU Libtool is distributed in the hope that it will be useful,
19643# but WITHOUT ANY WARRANTY; without even the implied warranty of
19644# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19645# GNU General Public License for more details.
19646#
19647# You should have received a copy of the GNU General Public License
19648# along with GNU Libtool; see the file COPYING. If not, a copy
19649# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19650# obtained by writing to the Free Software Foundation, Inc.,
19651# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 19652
35fa52c0 19653
9c60689e
DWT
19654# The names of the tagged configurations supported by this script.
19655available_tags="CXX "
35fa52c0 19656
9c60689e 19657# ### BEGIN LIBTOOL CONFIG
35fa52c0 19658
9c60689e
DWT
19659# Which release of libtool.m4 was used?
19660macro_version=$macro_version
19661macro_revision=$macro_revision
35fa52c0 19662
9c60689e
DWT
19663# Whether or not to build static libraries.
19664build_old_libs=$enable_static
35fa52c0 19665
549f29b5
DWT
19666# Whether or not to build shared libraries.
19667build_libtool_libs=$enable_shared
19668
9c60689e
DWT
19669# What type of objects to build.
19670pic_mode=$pic_mode
35fa52c0 19671
9c60689e
DWT
19672# Whether or not to optimize for fast installation.
19673fast_install=$enable_fast_install
35fa52c0 19674
9c60689e
DWT
19675# The host system.
19676host_alias=$host_alias
19677host=$host
19678host_os=$host_os
35fa52c0 19679
9c60689e
DWT
19680# The build system.
19681build_alias=$build_alias
19682build=$build
19683build_os=$build_os
19684
19685# A sed program that does not truncate output.
19686SED=$lt_SED
19687
19688# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19689Xsed="\$SED -e 1s/^X//"
19690
19691# A grep program that handles long lines.
19692GREP=$lt_GREP
19693
19694# An ERE matcher.
19695EGREP=$lt_EGREP
19696
19697# A literal string matcher.
19698FGREP=$lt_FGREP
19699
19700# A BSD- or MS-compatible name lister.
19701NM=$lt_NM
19702
19703# Whether we need soft or hard links.
19704LN_S=$lt_LN_S
19705
19706# What is the maximum length of a command?
19707max_cmd_len=$max_cmd_len
19708
19709# Object file suffix (normally "o").
19710objext=$ac_objext
19711
19712# Executable file suffix (normally "").
19713exeext=$exeext
19714
19715# whether the shell understands "unset".
19716lt_unset=$lt_unset
19717
19718# turn spaces into newlines.
19719SP2NL=$lt_lt_SP2NL
19720
19721# turn newlines into spaces.
19722NL2SP=$lt_lt_NL2SP
19723
19724# How to create reloadable object files.
19725reload_flag=$lt_reload_flag
19726reload_cmds=$lt_reload_cmds
19727
19728# An object symbol dumper.
19729OBJDUMP=$lt_OBJDUMP
19730
19731# Method to check whether dependent libraries are shared objects.
19732deplibs_check_method=$lt_deplibs_check_method
19733
19734# Command to use when deplibs_check_method == "file_magic".
19735file_magic_cmd=$lt_file_magic_cmd
19736
19737# The archiver.
19738AR=$lt_AR
19739AR_FLAGS=$lt_AR_FLAGS
19740
19741# A symbol stripping program.
19742STRIP=$lt_STRIP
19743
19744# Commands used to install an old-style archive.
19745RANLIB=$lt_RANLIB
19746old_postinstall_cmds=$lt_old_postinstall_cmds
19747old_postuninstall_cmds=$lt_old_postuninstall_cmds
19748
19749# A C compiler.
19750LTCC=$lt_CC
19751
19752# LTCC compiler flags.
19753LTCFLAGS=$lt_CFLAGS
19754
19755# Take the output of nm and produce a listing of raw symbols and C names.
19756global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19757
19758# Transform the output of nm in a proper C declaration.
19759global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19760
19761# Transform the output of nm in a C name address pair.
19762global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19763
19764# Transform the output of nm in a C name address pair when lib prefix is needed.
19765global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19766
19767# The name of the directory that contains temporary libtool files.
19768objdir=$objdir
19769
19770# Shell to use when invoking shell scripts.
19771SHELL=$lt_SHELL
19772
19773# An echo program that does not interpret backslashes.
19774ECHO=$lt_ECHO
19775
19776# Used to examine libraries when file_magic_cmd begins with "file".
19777MAGIC_CMD=$MAGIC_CMD
19778
19779# Must we lock files when doing compilation?
19780need_locks=$lt_need_locks
19781
19782# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19783DSYMUTIL=$lt_DSYMUTIL
19784
19785# Tool to change global to local symbols on Mac OS X.
19786NMEDIT=$lt_NMEDIT
19787
19788# Tool to manipulate fat objects and archives on Mac OS X.
19789LIPO=$lt_LIPO
19790
19791# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19792OTOOL=$lt_OTOOL
19793
19794# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19795OTOOL64=$lt_OTOOL64
19796
19797# Old archive suffix (normally "a").
19798libext=$libext
19799
19800# Shared library suffix (normally ".so").
19801shrext_cmds=$lt_shrext_cmds
35fa52c0 19802
9c60689e
DWT
19803# The commands to extract the exported symbol list from a shared archive.
19804extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 19805
9c60689e
DWT
19806# Variables whose values should be saved in libtool wrapper scripts and
19807# restored at link time.
19808variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 19809
9c60689e
DWT
19810# Do we need the "lib" prefix for modules?
19811need_lib_prefix=$need_lib_prefix
35fa52c0 19812
9c60689e
DWT
19813# Do we need a version for libraries?
19814need_version=$need_version
35fa52c0 19815
9c60689e
DWT
19816# Library versioning type.
19817version_type=$version_type
35fa52c0 19818
9c60689e
DWT
19819# Shared library runtime path variable.
19820runpath_var=$runpath_var
35fa52c0 19821
9c60689e
DWT
19822# Shared library path variable.
19823shlibpath_var=$shlibpath_var
35fa52c0 19824
9c60689e
DWT
19825# Is shlibpath searched before the hard-coded library search path?
19826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 19827
9c60689e
DWT
19828# Format of library name prefix.
19829libname_spec=$lt_libname_spec
35fa52c0 19830
9c60689e
DWT
19831# List of archive names. First name is the real one, the rest are links.
19832# The last name is the one that the linker finds with -lNAME
19833library_names_spec=$lt_library_names_spec
dbadc56a 19834
9c60689e
DWT
19835# The coded name of the library, if different from the real name.
19836soname_spec=$lt_soname_spec
dbadc56a 19837
9c60689e
DWT
19838# Command to use after installation of a shared archive.
19839postinstall_cmds=$lt_postinstall_cmds
35fa52c0 19840
9c60689e
DWT
19841# Command to use after uninstallation of a shared archive.
19842postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 19843
9c60689e
DWT
19844# Commands used to finish a libtool library installation in a directory.
19845finish_cmds=$lt_finish_cmds
35fa52c0 19846
9c60689e
DWT
19847# As "finish_cmds", except a single script fragment to be evaled but
19848# not shown.
19849finish_eval=$lt_finish_eval
35fa52c0 19850
9c60689e
DWT
19851# Whether we should hardcode library paths into libraries.
19852hardcode_into_libs=$hardcode_into_libs
dbadc56a 19853
9c60689e
DWT
19854# Compile-time system search path for libraries.
19855sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 19856
9c60689e
DWT
19857# Run-time system search path for libraries.
19858sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 19859
9c60689e
DWT
19860# Whether dlopen is supported.
19861dlopen_support=$enable_dlopen
dbadc56a 19862
9c60689e
DWT
19863# Whether dlopen of programs is supported.
19864dlopen_self=$enable_dlopen_self
35fa52c0 19865
9c60689e
DWT
19866# Whether dlopen of statically linked programs is supported.
19867dlopen_self_static=$enable_dlopen_self_static
35fa52c0 19868
9c60689e
DWT
19869# Commands to strip libraries.
19870old_striplib=$lt_old_striplib
19871striplib=$lt_striplib
35fa52c0 19872
35fa52c0 19873
9c60689e
DWT
19874# The linker used to build libraries.
19875LD=$lt_LD
dbadc56a 19876
9c60689e
DWT
19877# Commands used to build an old-style archive.
19878old_archive_cmds=$lt_old_archive_cmds
dbadc56a 19879
9c60689e
DWT
19880# A language specific compiler.
19881CC=$lt_compiler
35fa52c0 19882
9c60689e
DWT
19883# Is the compiler the GNU compiler?
19884with_gcc=$GCC
dbadc56a 19885
9c60689e
DWT
19886# Compiler flag to turn off builtin functions.
19887no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 19888
9c60689e
DWT
19889# How to pass a linker flag through the compiler.
19890wl=$lt_lt_prog_compiler_wl
35fa52c0 19891
9c60689e
DWT
19892# Additional compiler flags for building library objects.
19893pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 19894
9c60689e
DWT
19895# Compiler flag to prevent dynamic linking.
19896link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 19897
9c60689e
DWT
19898# Does compiler simultaneously support -c and -o options?
19899compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 19900
9c60689e
DWT
19901# Whether or not to add -lc for building shared libraries.
19902build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 19903
9c60689e
DWT
19904# Whether or not to disallow shared libs when runtime libs are static.
19905allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 19906
9c60689e
DWT
19907# Compiler flag to allow reflexive dlopens.
19908export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 19909
9c60689e
DWT
19910# Compiler flag to generate shared objects directly from archives.
19911whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 19912
9c60689e
DWT
19913# Whether the compiler copes with passing no objects directly.
19914compiler_needs_object=$lt_compiler_needs_object
dbadc56a 19915
9c60689e
DWT
19916# Create an old-style archive from a shared archive.
19917old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 19918
9c60689e
DWT
19919# Create a temporary old-style archive to link instead of a shared archive.
19920old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 19921
9c60689e
DWT
19922# Commands used to build a shared archive.
19923archive_cmds=$lt_archive_cmds
19924archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 19925
9c60689e
DWT
19926# Commands used to build a loadable module if different from building
19927# a shared archive.
19928module_cmds=$lt_module_cmds
19929module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 19930
9c60689e
DWT
19931# Whether we are building with GNU ld or not.
19932with_gnu_ld=$lt_with_gnu_ld
6b66678a 19933
9c60689e
DWT
19934# Flag that allows shared libraries with undefined symbols to be built.
19935allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 19936
9c60689e
DWT
19937# Flag that enforces no undefined symbols.
19938no_undefined_flag=$lt_no_undefined_flag
6b66678a 19939
9c60689e
DWT
19940# Flag to hardcode \$libdir into a binary during linking.
19941# This must work even if \$libdir does not exist
19942hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 19943
9c60689e
DWT
19944# If ld is used when linking, flag to hardcode \$libdir into a binary
19945# during linking. This must work even if \$libdir does not exist.
19946hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
6b66678a 19947
9c60689e
DWT
19948# Whether we need a single "-rpath" flag with a separated argument.
19949hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 19950
9c60689e
DWT
19951# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19952# DIR into the resulting binary.
19953hardcode_direct=$hardcode_direct
6b66678a 19954
9c60689e
DWT
19955# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19956# DIR into the resulting binary and the resulting library dependency is
19957# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19958# library is relocated.
19959hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 19960
9c60689e
DWT
19961# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19962# into the resulting binary.
19963hardcode_minus_L=$hardcode_minus_L
6b66678a 19964
9c60689e
DWT
19965# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19966# into the resulting binary.
19967hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 19968
9c60689e
DWT
19969# Set to "yes" if building a shared library automatically hardcodes DIR
19970# into the library and all subsequent libraries and executables linked
19971# against it.
19972hardcode_automatic=$hardcode_automatic
6b66678a 19973
9c60689e
DWT
19974# Set to yes if linker adds runtime paths of dependent libraries
19975# to runtime path list.
19976inherit_rpath=$inherit_rpath
6b66678a 19977
9c60689e
DWT
19978# Whether libtool must link a program against all its dependency libraries.
19979link_all_deplibs=$link_all_deplibs
19980
19981# Fix the shell variable \$srcfile for the compiler.
19982fix_srcfile_path=$lt_fix_srcfile_path
19983
19984# Set to "yes" if exported symbols are required.
19985always_export_symbols=$always_export_symbols
6b66678a 19986
9c60689e
DWT
19987# The commands to list exported symbols.
19988export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 19989
9c60689e
DWT
19990# Symbols that should not be listed in the preloaded symbols.
19991exclude_expsyms=$lt_exclude_expsyms
6b66678a 19992
9c60689e
DWT
19993# Symbols that must always be exported.
19994include_expsyms=$lt_include_expsyms
6b66678a 19995
9c60689e
DWT
19996# Commands necessary for linking programs (against libraries) with templates.
19997prelink_cmds=$lt_prelink_cmds
6b66678a 19998
9c60689e
DWT
19999# Specify filename containing input files.
20000file_list_spec=$lt_file_list_spec
6b66678a 20001
9c60689e
DWT
20002# How to hardcode a shared library path into an executable.
20003hardcode_action=$hardcode_action
20004
20005# The directories searched by this compiler when creating a shared library.
20006compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20007
20008# Dependencies to place before and after the objects being linked to
20009# create a shared library.
20010predep_objects=$lt_predep_objects
20011postdep_objects=$lt_postdep_objects
20012predeps=$lt_predeps
20013postdeps=$lt_postdeps
20014
20015# The library search path used internally by the compiler when linking
20016# a shared library.
20017compiler_lib_search_path=$lt_compiler_lib_search_path
20018
20019# ### END LIBTOOL CONFIG
20020
20021_LT_EOF
20022
20023 case $host_os in
20024 aix3*)
20025 cat <<\_LT_EOF >> "$cfgfile"
20026# AIX sometimes has problems with the GCC collect2 program. For some
20027# reason, if we set the COLLECT_NAMES environment variable, the problems
20028# vanish in a puff of smoke.
20029if test "X${COLLECT_NAMES+set}" != Xset; then
20030 COLLECT_NAMES=
20031 export COLLECT_NAMES
6b66678a 20032fi
9c60689e
DWT
20033_LT_EOF
20034 ;;
20035 esac
6b66678a
DWT
20036
20037
9c60689e 20038ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 20039
9c60689e
DWT
20040
20041 # We use sed instead of cat because bash on DJGPP gets confused if
20042 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20043 # text mode, it properly converts lines to CR/LF. This bash problem
20044 # is reportedly fixed, but why not run on old versions too?
20045 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20046 || (rm -f "$cfgfile"; exit 1)
20047
20048 case $xsi_shell in
20049 yes)
20050 cat << \_LT_EOF >> "$cfgfile"
20051
20052# func_dirname file append nondir_replacement
20053# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20054# otherwise set result to NONDIR_REPLACEMENT.
20055func_dirname ()
6b66678a 20056{
9c60689e
DWT
20057 case ${1} in
20058 */*) func_dirname_result="${1%/*}${2}" ;;
20059 * ) func_dirname_result="${3}" ;;
20060 esac
20061}
6b66678a 20062
9c60689e
DWT
20063# func_basename file
20064func_basename ()
20065{
20066 func_basename_result="${1##*/}"
6b66678a 20067}
6b66678a 20068
9c60689e
DWT
20069# func_dirname_and_basename file append nondir_replacement
20070# perform func_basename and func_dirname in a single function
20071# call:
20072# dirname: Compute the dirname of FILE. If nonempty,
20073# add APPEND to the result, otherwise set result
20074# to NONDIR_REPLACEMENT.
20075# value returned in "$func_dirname_result"
20076# basename: Compute filename of FILE.
20077# value retuned in "$func_basename_result"
20078# Implementation must be kept synchronized with func_dirname
20079# and func_basename. For efficiency, we do not delegate to
20080# those functions but instead duplicate the functionality here.
20081func_dirname_and_basename ()
20082{
20083 case ${1} in
20084 */*) func_dirname_result="${1%/*}${2}" ;;
20085 * ) func_dirname_result="${3}" ;;
20086 esac
20087 func_basename_result="${1##*/}"
20088}
6b66678a 20089
9c60689e
DWT
20090# func_stripname prefix suffix name
20091# strip PREFIX and SUFFIX off of NAME.
20092# PREFIX and SUFFIX must not contain globbing or regex special
20093# characters, hashes, percent signs, but SUFFIX may contain a leading
20094# dot (in which case that matches only a dot).
20095func_stripname ()
20096{
20097 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20098 # positional parameters, so assign one to ordinary parameter first.
20099 func_stripname_result=${3}
20100 func_stripname_result=${func_stripname_result#"${1}"}
20101 func_stripname_result=${func_stripname_result%"${2}"}
20102}
6b66678a 20103
9c60689e
DWT
20104# func_opt_split
20105func_opt_split ()
20106{
20107 func_opt_split_opt=${1%%=*}
20108 func_opt_split_arg=${1#*=}
20109}
6b66678a 20110
9c60689e
DWT
20111# func_lo2o object
20112func_lo2o ()
20113{
20114 case ${1} in
20115 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20116 *) func_lo2o_result=${1} ;;
20117 esac
20118}
6b66678a 20119
9c60689e
DWT
20120# func_xform libobj-or-source
20121func_xform ()
20122{
20123 func_xform_result=${1%.*}.lo
20124}
6b66678a 20125
9c60689e
DWT
20126# func_arith arithmetic-term...
20127func_arith ()
20128{
20129 func_arith_result=$(( $* ))
20130}
6b66678a 20131
9c60689e
DWT
20132# func_len string
20133# STRING may not start with a hyphen.
20134func_len ()
20135{
20136 func_len_result=${#1}
20137}
6b66678a 20138
9c60689e
DWT
20139_LT_EOF
20140 ;;
20141 *) # Bourne compatible functions.
20142 cat << \_LT_EOF >> "$cfgfile"
6b66678a 20143
9c60689e
DWT
20144# func_dirname file append nondir_replacement
20145# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20146# otherwise set result to NONDIR_REPLACEMENT.
20147func_dirname ()
20148{
20149 # Extract subdirectory from the argument.
20150 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20151 if test "X$func_dirname_result" = "X${1}"; then
20152 func_dirname_result="${3}"
20153 else
20154 func_dirname_result="$func_dirname_result${2}"
20155 fi
20156}
6b66678a 20157
9c60689e
DWT
20158# func_basename file
20159func_basename ()
6b66678a 20160{
9c60689e 20161 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6b66678a 20162}
6b66678a 20163
6b66678a 20164
9c60689e
DWT
20165# func_stripname prefix suffix name
20166# strip PREFIX and SUFFIX off of NAME.
20167# PREFIX and SUFFIX must not contain globbing or regex special
20168# characters, hashes, percent signs, but SUFFIX may contain a leading
20169# dot (in which case that matches only a dot).
20170# func_strip_suffix prefix name
20171func_stripname ()
20172{
20173 case ${2} in
20174 .*) func_stripname_result=`$ECHO "X${3}" \
20175 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20176 *) func_stripname_result=`$ECHO "X${3}" \
20177 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20178 esac
20179}
6b66678a 20180
9c60689e
DWT
20181# sed scripts:
20182my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20183my_sed_long_arg='1s/^-[^=]*=//'
6b66678a 20184
9c60689e
DWT
20185# func_opt_split
20186func_opt_split ()
20187{
20188 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20189 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20190}
6b66678a 20191
9c60689e
DWT
20192# func_lo2o object
20193func_lo2o ()
20194{
20195 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20196}
20197
20198# func_xform libobj-or-source
20199func_xform ()
20200{
20201 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20202}
20203
20204# func_arith arithmetic-term...
20205func_arith ()
20206{
20207 func_arith_result=`expr "$@"`
20208}
20209
20210# func_len string
20211# STRING may not start with a hyphen.
20212func_len ()
20213{
20214 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20215}
20216
20217_LT_EOF
20218esac
20219
20220case $lt_shell_append in
20221 yes)
20222 cat << \_LT_EOF >> "$cfgfile"
20223
20224# func_append var value
20225# Append VALUE to the end of shell variable VAR.
20226func_append ()
20227{
20228 eval "$1+=\$2"
20229}
20230_LT_EOF
20231 ;;
20232 *)
20233 cat << \_LT_EOF >> "$cfgfile"
20234
20235# func_append var value
20236# Append VALUE to the end of shell variable VAR.
20237func_append ()
20238{
20239 eval "$1=\$$1\$2"
20240}
20241
20242_LT_EOF
20243 ;;
20244 esac
20245
20246
20247 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20248 || (rm -f "$cfgfile"; exit 1)
20249
20250 mv -f "$cfgfile" "$ofile" ||
20251 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20252 chmod +x "$ofile"
20253
20254
20255 cat <<_LT_EOF >> "$ofile"
20256
20257# ### BEGIN LIBTOOL TAG CONFIG: CXX
20258
20259# The linker used to build libraries.
20260LD=$lt_LD_CXX
20261
20262# Commands used to build an old-style archive.
20263old_archive_cmds=$lt_old_archive_cmds_CXX
20264
20265# A language specific compiler.
20266CC=$lt_compiler_CXX
20267
20268# Is the compiler the GNU compiler?
20269with_gcc=$GCC_CXX
20270
20271# Compiler flag to turn off builtin functions.
20272no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 20273
9c60689e
DWT
20274# How to pass a linker flag through the compiler.
20275wl=$lt_lt_prog_compiler_wl_CXX
6b66678a 20276
9c60689e
DWT
20277# Additional compiler flags for building library objects.
20278pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 20279
9c60689e
DWT
20280# Compiler flag to prevent dynamic linking.
20281link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 20282
9c60689e
DWT
20283# Does compiler simultaneously support -c and -o options?
20284compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 20285
9c60689e
DWT
20286# Whether or not to add -lc for building shared libraries.
20287build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 20288
9c60689e
DWT
20289# Whether or not to disallow shared libs when runtime libs are static.
20290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 20291
9c60689e
DWT
20292# Compiler flag to allow reflexive dlopens.
20293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 20294
9c60689e
DWT
20295# Compiler flag to generate shared objects directly from archives.
20296whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 20297
9c60689e
DWT
20298# Whether the compiler copes with passing no objects directly.
20299compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 20300
9c60689e
DWT
20301# Create an old-style archive from a shared archive.
20302old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 20303
9c60689e
DWT
20304# Create a temporary old-style archive to link instead of a shared archive.
20305old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 20306
9c60689e
DWT
20307# Commands used to build a shared archive.
20308archive_cmds=$lt_archive_cmds_CXX
20309archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 20310
9c60689e
DWT
20311# Commands used to build a loadable module if different from building
20312# a shared archive.
20313module_cmds=$lt_module_cmds_CXX
20314module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 20315
9c60689e
DWT
20316# Whether we are building with GNU ld or not.
20317with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 20318
9c60689e
DWT
20319# Flag that allows shared libraries with undefined symbols to be built.
20320allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 20321
9c60689e
DWT
20322# Flag that enforces no undefined symbols.
20323no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 20324
9c60689e
DWT
20325# Flag to hardcode \$libdir into a binary during linking.
20326# This must work even if \$libdir does not exist
20327hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 20328
9c60689e
DWT
20329# If ld is used when linking, flag to hardcode \$libdir into a binary
20330# during linking. This must work even if \$libdir does not exist.
20331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
6b66678a 20332
9c60689e
DWT
20333# Whether we need a single "-rpath" flag with a separated argument.
20334hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 20335
9c60689e
DWT
20336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20337# DIR into the resulting binary.
20338hardcode_direct=$hardcode_direct_CXX
6b66678a 20339
9c60689e
DWT
20340# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20341# DIR into the resulting binary and the resulting library dependency is
20342# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20343# library is relocated.
20344hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 20345
9c60689e
DWT
20346# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20347# into the resulting binary.
20348hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 20349
9c60689e
DWT
20350# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20351# into the resulting binary.
20352hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 20353
9c60689e
DWT
20354# Set to "yes" if building a shared library automatically hardcodes DIR
20355# into the library and all subsequent libraries and executables linked
20356# against it.
20357hardcode_automatic=$hardcode_automatic_CXX
6b66678a 20358
9c60689e
DWT
20359# Set to yes if linker adds runtime paths of dependent libraries
20360# to runtime path list.
20361inherit_rpath=$inherit_rpath_CXX
6b66678a 20362
9c60689e
DWT
20363# Whether libtool must link a program against all its dependency libraries.
20364link_all_deplibs=$link_all_deplibs_CXX
6b66678a 20365
9c60689e
DWT
20366# Fix the shell variable \$srcfile for the compiler.
20367fix_srcfile_path=$lt_fix_srcfile_path_CXX
6b66678a 20368
9c60689e
DWT
20369# Set to "yes" if exported symbols are required.
20370always_export_symbols=$always_export_symbols_CXX
6b66678a 20371
9c60689e
DWT
20372# The commands to list exported symbols.
20373export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 20374
9c60689e
DWT
20375# Symbols that should not be listed in the preloaded symbols.
20376exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 20377
9c60689e
DWT
20378# Symbols that must always be exported.
20379include_expsyms=$lt_include_expsyms_CXX
6b66678a 20380
9c60689e
DWT
20381# Commands necessary for linking programs (against libraries) with templates.
20382prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 20383
9c60689e
DWT
20384# Specify filename containing input files.
20385file_list_spec=$lt_file_list_spec_CXX
dbadc56a 20386
9c60689e
DWT
20387# How to hardcode a shared library path into an executable.
20388hardcode_action=$hardcode_action_CXX
309b0535 20389
9c60689e
DWT
20390# The directories searched by this compiler when creating a shared library.
20391compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 20392
9c60689e
DWT
20393# Dependencies to place before and after the objects being linked to
20394# create a shared library.
20395predep_objects=$lt_predep_objects_CXX
20396postdep_objects=$lt_postdep_objects_CXX
20397predeps=$lt_predeps_CXX
20398postdeps=$lt_postdeps_CXX
309b0535 20399
9c60689e
DWT
20400# The library search path used internally by the compiler when linking
20401# a shared library.
20402compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20403
20404# ### END LIBTOOL TAG CONFIG: CXX
20405_LT_EOF
20406
20407 ;;
20408
20409 esac
20410done # for ac_tag
20411
20412
20413as_fn_exit 0
20414_ACEOF
20415ac_clean_files=$ac_clean_files_save
20416
20417test $ac_write_fail = 0 ||
20418 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20419
20420
20421# configure is writing to config.log, and then calls config.status.
20422# config.status does its own redirection, appending to config.log.
20423# Unfortunately, on DOS this fails, as config.log is still kept open
20424# by configure, so config.status won't be able to write to it; its
20425# output is simply discarded. So we exec the FD to /dev/null,
20426# effectively closing config.log, so it can be properly (re)opened and
20427# appended to by config.status. When coming back to configure, we
20428# need to make the FD available again.
20429if test "$no_create" != yes; then
20430 ac_cs_success=:
20431 ac_config_status_args=
20432 test "$silent" = yes &&
20433 ac_config_status_args="$ac_config_status_args --quiet"
20434 exec 5>/dev/null
20435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20436 exec 5>>config.log
20437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20438 # would make configure fail if this is the last instruction.
20439 $ac_cs_success || as_fn_exit $?
309b0535 20440fi
9c60689e
DWT
20441if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20443$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20444fi
20445