]> git.saurik.com Git - cycript.git/blame - configure
Hack to try to find a useable iconv if pkg-config and libffi have messed it up on...
[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
5053a6d1
DWT
749LTLIBICONV
750LIBICONV
47aaa820 751GNUSTEP_CONFIG
c823f118 752CY_OBJECTIVEC
309b0535 753LIBFFI_LIBS
35fa52c0 754LIBFFI_CFLAGS
3fd51f51 755CY_EXECUTE
35fa52c0
DWT
756WEBKIT_LIBS
757WEBKIT_CFLAGS
549f29b5 758LTLIBAPR
632b71ea
DWT
759ac_ct_OBJCXX
760OBJCXXFLAGS
761OBJCXX
47aaa820
DWT
762CXXCPP
763ac_ct_CXX
764CXXFLAGS
765CXX
b65019fe
DWT
766SVNVERSION
767SVN
e9c9a47c
DWT
768GNUTAR
769INSTALL_DATA
770INSTALL_SCRIPT
771INSTALL_PROGRAM
772GPERF
773FLEX
774BISON
775TIME
776_BASH
790e5246 777GMAKE
632b71ea 778ifGNUmake
3fd51f51 779PKG_CONFIG
9c60689e
DWT
780CPP
781OTOOL64
782OTOOL
783LIPO
784NMEDIT
785DSYMUTIL
786lt_ECHO
787RANLIB
788STRIP
789AR
790OBJDUMP
791LN_S
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797EGREP
798GREP
799SED
35fa52c0
DWT
800OBJEXT
801EXEEXT
802ac_ct_CC
803CPPFLAGS
804LDFLAGS
805CFLAGS
806CC
9c60689e
DWT
807host_os
808host_vendor
809host_cpu
810host
811build_os
812build_vendor
813build_cpu
814build
815LIBTOOL
dbadc56a 816target_alias
c7aa54aa
DWT
817host_alias
818build_alias
819LIBS
820ECHO_T
821ECHO_N
822ECHO_C
823DEFS
824mandir
825localedir
826libdir
827psdir
828pdfdir
829dvidir
830htmldir
831infodir
832docdir
833oldincludedir
834includedir
835localstatedir
836sharedstatedir
837sysconfdir
838datadir
839datarootdir
840libexecdir
841sbindir
842bindir
843program_transform_name
844prefix
845exec_prefix
846PACKAGE_URL
847PACKAGE_BUGREPORT
848PACKAGE_STRING
849PACKAGE_VERSION
850PACKAGE_TARNAME
851PACKAGE_NAME
852PATH_SEPARATOR
853SHELL'
854ac_subst_files=''
855ac_user_opts='
856enable_option_checking
9c60689e 857enable_static
549f29b5 858enable_shared
9c60689e
DWT
859with_pic
860enable_fast_install
35fa52c0 861with_gnu_ld
9c60689e 862enable_libtool_lock
632b71ea 863with_frameworks
9c60689e 864with_apr
5053a6d1 865enable_javascript
35fa52c0
DWT
866enable_rpath
867with_libiconv_prefix
c7aa54aa
DWT
868'
869 ac_precious_vars='build_alias
870host_alias
dbadc56a 871target_alias
35fa52c0
DWT
872CC
873CFLAGS
dbadc56a
DWT
874LDFLAGS
875LIBS
876CPPFLAGS
9c60689e 877CPP
3fd51f51 878PKG_CONFIG
e9c9a47c
DWT
879BISON
880FLEX
881GPERF
35fa52c0
DWT
882CXX
883CXXFLAGS
884CCC
9c60689e 885CXXCPP
632b71ea
DWT
886OBJCXX
887OBJCXXFLAGS
35fa52c0
DWT
888WEBKIT_CFLAGS
889WEBKIT_LIBS
a667869d 890LIBFFI_CFLAGS
790e5246
DWT
891LIBFFI_LIBS
892GNUSTEP_CONFIG'
c7aa54aa
DWT
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898ac_unrecognized_opts=
899ac_unrecognized_sep=
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
922# (The list follows the same order as the GNU Coding Standards.)
923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
931includedir='${prefix}/include'
932oldincludedir='/usr/include'
933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
942
943ac_prev=
944ac_dashdash=
945for ac_option
946do
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
950 ac_prev=
951 continue
952 fi
953
954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
985 -datadir | --datadir | --datadi | --datad)
986 ac_prev=datadir ;;
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
989
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006"enable_$ac_useropt"
1007"*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1022
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032"enable_$ac_useropt"
1033"*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) as_fn_error "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information."
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1287 esac
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 ;;
1298
1299 esac
1300done
1301
1302if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error "missing argument to $ac_option"
1305fi
1306
1307if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1309 no) ;;
1310 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1313fi
1314
1315# Check all directory arguments for consistency.
1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1320do
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1334done
1335
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
1342
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352fi
1353
1354ac_tool_prefix=
1355test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357test "$silent" = yes && exec 6>/dev/null
1358
1359
1360ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361ac_ls_di=`ls -di .` &&
1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error "working directory cannot be determined"
1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error "pwd does not report name of working directory"
1366
1367
1368# Find the source files, if location was not specified.
1369if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377$as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\).*/{
1391 s//\1/
1392 q
1393 }
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1398 fi
1399else
1400 ac_srcdir_defaulted=no
1401fi
1402if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1405fi
1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1409 pwd)`
1410# When building in place, set srcdir=.
1411if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1413fi
1414# Remove unnecessary trailing slashes from srcdir.
1415# Double slashes in file names in object file debugging info
1416# mess up M-x gdb in Emacs.
1417case $srcdir in
1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419esac
1420for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
1426
1427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
1454Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487_ACEOF
1488
1489 cat <<\_ACEOF
35fa52c0
DWT
1490
1491System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1494_ACEOF
1495fi
1496
1497if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of Cycript 0.9:";;
1500 esac
1501 cat <<\_ACEOF
1502
35fa52c0
DWT
1503Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549f29b5 1507 --enable-static[=PKGS] build static libraries [default=no]
9c60689e 1508 --enable-shared[=PKGS] build shared libraries [default=yes]
9c60689e
DWT
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1512 --enable-javascript[=ENGINE]
790e5246 1513 use a JavaScript runtime (currently the only
b66977f1
DWT
1514 available option for ENGINE is JavaScriptCore)
1515 [default=yes]
5053a6d1 1516 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1517
1518Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9c60689e
DWT
1521 --with-pic try to use only PIC/non-PIC objects [default=use
1522 both]
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
632b71ea
DWT
1524 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1525 path for frameworks with -F
309b0535
DWT
1526 --with-apr=PATH prefix for installed APR or the full path to
1527 apr-config
35fa52c0
DWT
1528 --with-gnu-ld assume the C compiler uses GNU ld default=no
1529 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1530 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1531
dbadc56a 1532Some influential environment variables:
35fa52c0
DWT
1533 CC C compiler command
1534 CFLAGS C compiler flags
dbadc56a
DWT
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1539 you have headers in a nonstandard directory <include dir>
9c60689e 1540 CPP C preprocessor
3fd51f51 1541 PKG_CONFIG path to pkg-config utility
e9c9a47c
DWT
1542 BISON GNU Project parser generator (yacc replacement)
1543 FLEX the fast lexical analyser generator
1544 GPERF perfect hash function generator
47aaa820
DWT
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
1547 CXXCPP C++ preprocessor
632b71ea
DWT
1548 OBJCXX Objective C++ compiler command
1549 OBJCXXFLAGS Objective C++ compiler flags
35fa52c0
DWT
1550 WEBKIT_CFLAGS
1551 C compiler flags for WEBKIT, overriding pkg-config
1552 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1553 LIBFFI_CFLAGS
1554 C compiler flags for LIBFFI, overriding pkg-config
1555 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1556 GNUSTEP_CONFIG
1557 prints information about the current gnustep installation
dbadc56a
DWT
1558
1559Use these variables to override the choices made by `configure' or to help
1560it to find libraries and programs with nonstandard names/locations.
1561
c7aa54aa
DWT
1562Report bugs to <saurik@saurik.com>.
1563Cycript home page: <http://www.cycript.org/>.
1564_ACEOF
1565ac_status=$?
1566fi
1567
1568if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1575
1576case "$ac_dir" in
1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578*)
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586esac
1587ac_abs_top_builddir=$ac_pwd
1588ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589# for backward compatibility:
1590ac_top_builddir=$ac_top_build_prefix
1591
1592case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605esac
1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621fi
1622
1623test -n "$ac_init_help" && exit $ac_status
1624if $ac_init_version; then
1625 cat <<\_ACEOF
1626Cycript configure 0.9
9c60689e 1627generated by GNU Autoconf 2.65
c7aa54aa
DWT
1628
1629Copyright (C) 2009 Free Software Foundation, Inc.
1630This configure script is free software; the Free Software Foundation
1631gives unlimited permission to copy, distribute and modify it.
1632_ACEOF
1633 exit
1634fi
1635
1636## ------------------------ ##
1637## Autoconf initialization. ##
1638## ------------------------ ##
dbadc56a 1639
35fa52c0
DWT
1640# ac_fn_c_try_compile LINENO
1641# --------------------------
1642# Try to compile conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_compile ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1674 as_fn_set_status $ac_retval
35fa52c0
DWT
1675
1676} # ac_fn_c_try_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1720 as_fn_set_status $ac_retval
35fa52c0
DWT
1721
1722} # ac_fn_c_try_link
1723
9c60689e
DWT
1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists and can be compiled using the include files in
1727# INCLUDES, setting the cache variable VAR accordingly.
1728ac_fn_c_check_header_compile ()
dbadc56a
DWT
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742 eval "$3=yes"
1743else
1744 eval "$3=no"
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752
1753} # ac_fn_c_check_header_compile
1754
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
9c60689e 1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9c60689e
DWT
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1778 test ! -s conftest.err
9c60689e 1779 }; then :
dbadc56a
DWT
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
9c60689e 1785 ac_retval=1
dbadc56a
DWT
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1788 as_fn_set_status $ac_retval
dbadc56a 1789
9c60689e 1790} # ac_fn_c_try_cpp
35fa52c0
DWT
1791
1792# ac_fn_c_try_run LINENO
1793# ----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795# that executables *can* be run.
1796ac_fn_c_try_run ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=$ac_status
1827fi
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1830 as_fn_set_status $ac_retval
35fa52c0
DWT
1831
1832} # ac_fn_c_try_run
6b66678a 1833
9c60689e
DWT
1834# ac_fn_c_check_func LINENO FUNC VAR
1835# ----------------------------------
1836# Tests whether FUNC exists, setting the cache variable VAR accordingly
1837ac_fn_c_check_func ()
6b66678a
DWT
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 $as_echo_n "(cached) " >&6
6b66678a 1844else
9c60689e
DWT
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h. */
1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849#define $2 innocuous_$2
6b66678a 1850
9c60689e
DWT
1851/* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1855
1856#ifdef __STDC__
1857# include <limits.h>
1858#else
1859# include <assert.h>
1860#endif
1861
1862#undef $2
1863
1864/* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1867#ifdef __cplusplus
1868extern "C"
1869#endif
1870char $2 ();
1871/* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874#if defined __stub_$2 || defined __stub___$2
1875choke me
1876#endif
1877
1878int
1879main ()
1880{
1881return $2 ();
1882 ;
1883 return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_link "$LINENO"; then :
1887 eval "$3=yes"
1888else
1889 eval "$3=no"
1890fi
1891rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
6b66678a 1893fi
9c60689e
DWT
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
6b66678a 1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6b66678a 1898
9c60689e 1899} # ac_fn_c_check_func
6b66678a 1900
9c60689e
DWT
1901# ac_fn_cxx_try_compile LINENO
1902# ----------------------------
1903# Try to compile conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_cxx_try_compile ()
6b66678a
DWT
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1907 rm -f conftest.$ac_objext
1908 if { { ac_try="$ac_compile"
1909case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1921 fi
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_cxx_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1927 ac_retval=0
1928else
1929 $as_echo "$as_me: failed program was:" >&5
1930sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 ac_retval=1
1933fi
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 as_fn_set_status $ac_retval
1936
1937} # ac_fn_cxx_try_compile
1938
1939# ac_fn_cxx_try_cpp LINENO
1940# ------------------------
1941# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942ac_fn_cxx_try_cpp ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949esac
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } >/dev/null && {
1961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970fi
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 as_fn_set_status $ac_retval
1973
1974} # ac_fn_cxx_try_cpp
1975
1976# ac_fn_cxx_try_link LINENO
1977# -------------------------
1978# Try to link conftest.$ac_ext, and return whether this succeeded.
1979ac_fn_cxx_try_link ()
1980{
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1984case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1996 fi
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_cxx_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 $as_test_x conftest$ac_exeext
2004 }; then :
2005 ac_retval=0
2006else
2007 $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=1
2011fi
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 as_fn_set_status $ac_retval
2019
2020} # ac_fn_cxx_try_link
2021
632b71ea
DWT
2022# ac_fn_objcxx_try_compile LINENO
2023# -------------------------------
2024# Try to compile conftest.$ac_ext, and return whether this succeeded.
2025ac_fn_objcxx_try_compile ()
2026{
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext
2029 if { { ac_try="$ac_compile"
2030case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033esac
2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035$as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_compile") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_objcxx_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest.$ac_objext; then :
2048 ac_retval=0
2049else
2050 $as_echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 ac_retval=1
2054fi
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 as_fn_set_status $ac_retval
2057
2058} # ac_fn_objcxx_try_compile
2059
47aaa820
DWT
2060# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2061# ---------------------------------------------------------
2062# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2063# the include files in INCLUDES and setting the cache variable VAR
2064# accordingly.
2065ac_fn_cxx_check_header_mongrel ()
2066{
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 $as_echo_n "(cached) " >&6
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077else
2078 # Is the header compilable?
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2080$as_echo_n "checking $2 usability... " >&6; }
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084#include <$2>
2085_ACEOF
2086if ac_fn_cxx_try_compile "$LINENO"; then :
2087 ac_header_compiler=yes
2088else
2089 ac_header_compiler=no
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2093$as_echo "$ac_header_compiler" >&6; }
2094
2095# Is the header present?
2096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2097$as_echo_n "checking $2 presence... " >&6; }
2098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100#include <$2>
2101_ACEOF
2102if ac_fn_cxx_try_cpp "$LINENO"; then :
2103 ac_header_preproc=yes
2104else
2105 ac_header_preproc=no
2106fi
2107rm -f conftest.err conftest.$ac_ext
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2109$as_echo "$ac_header_preproc" >&6; }
2110
2111# So? What about this header?
2112case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2113 yes:no: )
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2115$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118 ;;
2119 no:yes:* )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2121$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2123$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2125$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2127$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2130( cat <<\_ASBOX
2131## -------------------------------- ##
2132## Report this to saurik@saurik.com ##
2133## -------------------------------- ##
2134_ASBOX
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
2140if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_cxx_check_header_mongrel
2152
c823f118
DWT
2153# ac_fn_objcxx_try_link LINENO
2154# ----------------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded.
2156ac_fn_objcxx_try_link ()
2157{
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 rm -f conftest.$ac_objext conftest$ac_exeext
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>conftest.err
2168 ac_status=$?
2169 if test -s conftest.err; then
2170 grep -v '^ *+' conftest.err >conftest.er1
2171 cat conftest.er1 >&5
2172 mv -f conftest.er1 conftest.err
2173 fi
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175 test $ac_status = 0; } && {
2176 test -z "$ac_objcxx_werror_flag" ||
2177 test ! -s conftest.err
2178 } && test -s conftest$ac_exeext && {
2179 test "$cross_compiling" = yes ||
2180 $as_test_x conftest$ac_exeext
2181 }; then :
2182 ac_retval=0
2183else
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=1
2188fi
2189 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2190 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2191 # interfere with the next link command; also delete a directory that is
2192 # left behind by Apple's compiler. We do this before executing the actions.
2193 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2196
2197} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2198cat >config.log <<_ACEOF
2199This file contains any messages produced by compilers while
2200running configure, to aid debugging if configure makes a mistake.
2201
2202It was created by Cycript $as_me 0.9, which was
9c60689e 2203generated by GNU Autoconf 2.65. Invocation command line was
c7aa54aa
DWT
2204
2205 $ $0 $@
2206
2207_ACEOF
2208exec 5>>config.log
2209{
2210cat <<_ASUNAME
2211## --------- ##
2212## Platform. ##
2213## --------- ##
2214
2215hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2216uname -m = `(uname -m) 2>/dev/null || echo unknown`
2217uname -r = `(uname -r) 2>/dev/null || echo unknown`
2218uname -s = `(uname -s) 2>/dev/null || echo unknown`
2219uname -v = `(uname -v) 2>/dev/null || echo unknown`
2220
2221/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2222/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2223
2224/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2225/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2226/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2227/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2228/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2229/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2230/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2231
2232_ASUNAME
2233
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 $as_echo "PATH: $as_dir"
2240 done
2241IFS=$as_save_IFS
2242
2243} >&5
2244
2245cat >&5 <<_ACEOF
2246
2247
2248## ----------- ##
2249## Core tests. ##
2250## ----------- ##
2251
2252_ACEOF
2253
2254
2255# Keep a trace of the command line.
2256# Strip out --no-create and --no-recursion so they do not pile up.
2257# Strip out --silent because we don't want to record it for future runs.
2258# Also quote any args containing shell meta-characters.
2259# Make two passes to allow for proper duplicate-argument suppression.
2260ac_configure_args=
2261ac_configure_args0=
2262ac_configure_args1=
2263ac_must_keep_next=false
2264for ac_pass in 1 2
2265do
2266 for ac_arg
2267 do
2268 case $ac_arg in
2269 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2271 | -silent | --silent | --silen | --sile | --sil)
2272 continue ;;
2273 *\'*)
2274 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 esac
2276 case $ac_pass in
2277 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2278 2)
2279 as_fn_append ac_configure_args1 " '$ac_arg'"
2280 if test $ac_must_keep_next = true; then
2281 ac_must_keep_next=false # Got value, back to normal.
2282 else
2283 case $ac_arg in
2284 *=* | --config-cache | -C | -disable-* | --disable-* \
2285 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2286 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2287 | -with-* | --with-* | -without-* | --without-* | --x)
2288 case "$ac_configure_args0 " in
2289 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2290 esac
2291 ;;
2292 -* ) ac_must_keep_next=true ;;
2293 esac
2294 fi
2295 as_fn_append ac_configure_args " '$ac_arg'"
2296 ;;
2297 esac
2298 done
2299done
2300{ ac_configure_args0=; unset ac_configure_args0;}
2301{ ac_configure_args1=; unset ac_configure_args1;}
2302
2303# When interrupted or exit'd, cleanup temporary files, and complete
2304# config.log. We remove comments because anyway the quotes in there
2305# would cause problems or look ugly.
2306# WARNING: Use '\'' to represent an apostrophe within the trap.
2307# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2308trap 'exit_status=$?
2309 # Save into config.log some information that might help in debugging.
2310 {
2311 echo
2312
2313 cat <<\_ASBOX
2314## ---------------- ##
2315## Cache variables. ##
2316## ---------------- ##
2317_ASBOX
2318 echo
2319 # The following way of writing the cache mishandles newlines in values,
2320(
2321 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in #(
2324 *${as_nl}*)
2325 case $ac_var in #(
2326 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2327$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2328 esac
2329 case $ac_var in #(
2330 _ | IFS | as_nl) ;; #(
2331 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2332 *) { eval $ac_var=; unset $ac_var;} ;;
2333 esac ;;
2334 esac
2335 done
2336 (set) 2>&1 |
2337 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2338 *${as_nl}ac_space=\ *)
2339 sed -n \
2340 "s/'\''/'\''\\\\'\'''\''/g;
2341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2342 ;; #(
2343 *)
2344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 ;;
2346 esac |
2347 sort
2348)
2349 echo
2350
2351 cat <<\_ASBOX
2352## ----------------- ##
2353## Output variables. ##
2354## ----------------- ##
2355_ASBOX
2356 echo
2357 for ac_var in $ac_subst_vars
2358 do
2359 eval ac_val=\$$ac_var
2360 case $ac_val in
2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 esac
2363 $as_echo "$ac_var='\''$ac_val'\''"
2364 done | sort
2365 echo
2366
2367 if test -n "$ac_subst_files"; then
2368 cat <<\_ASBOX
2369## ------------------- ##
2370## File substitutions. ##
2371## ------------------- ##
2372_ASBOX
2373 echo
2374 for ac_var in $ac_subst_files
2375 do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 esac
2380 $as_echo "$ac_var='\''$ac_val'\''"
2381 done | sort
2382 echo
2383 fi
2384
2385 if test -s confdefs.h; then
2386 cat <<\_ASBOX
2387## ----------- ##
2388## confdefs.h. ##
2389## ----------- ##
2390_ASBOX
2391 echo
2392 cat confdefs.h
2393 echo
2394 fi
2395 test "$ac_signal" != 0 &&
2396 $as_echo "$as_me: caught signal $ac_signal"
2397 $as_echo "$as_me: exit $exit_status"
2398 } >&5
2399 rm -f core *.core core.conftest.* &&
2400 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2401 exit $exit_status
2402' 0
2403for ac_signal in 1 2 13 15; do
2404 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405done
2406ac_signal=0
2407
2408# confdefs.h avoids OS command line length limits that DEFS can exceed.
2409rm -f -r conftest* confdefs.h
2410
2411$as_echo "/* confdefs.h */" > confdefs.h
2412
2413# Predefined preprocessor variables.
2414
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_NAME "$PACKAGE_NAME"
2417_ACEOF
2418
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2421_ACEOF
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_VERSION "$PACKAGE_VERSION"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_STRING "$PACKAGE_STRING"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_URL "$PACKAGE_URL"
2437_ACEOF
2438
2439
2440# Let the site file select an alternate cache file if it wants to.
2441# Prefer an explicitly selected file to automatically selected ones.
2442ac_site_file1=NONE
2443ac_site_file2=NONE
2444if test -n "$CONFIG_SITE"; then
2445 ac_site_file1=$CONFIG_SITE
2446elif test "x$prefix" != xNONE; then
2447 ac_site_file1=$prefix/share/config.site
2448 ac_site_file2=$prefix/etc/config.site
2449else
2450 ac_site_file1=$ac_default_prefix/share/config.site
2451 ac_site_file2=$ac_default_prefix/etc/config.site
2452fi
2453for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454do
2455 test "x$ac_site_file" = xNONE && continue
9c60689e 2456 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459 sed 's/^/| /' "$ac_site_file" >&5
2460 . "$ac_site_file"
2461 fi
2462done
2463
2464if test -r "$cache_file"; then
9c60689e
DWT
2465 # Some versions of bash will fail to source /dev/null (special files
2466 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2467 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2469$as_echo "$as_me: loading cache $cache_file" >&6;}
2470 case $cache_file in
2471 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2472 *) . "./$cache_file";;
2473 esac
2474 fi
2475else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2477$as_echo "$as_me: creating cache $cache_file" >&6;}
2478 >$cache_file
2479fi
2480
2481# Check that the precious variables saved in the cache have kept the same
2482# value.
2483ac_cache_corrupted=false
2484for ac_var in $ac_precious_vars; do
2485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2486 eval ac_new_set=\$ac_env_${ac_var}_set
2487 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2488 eval ac_new_val=\$ac_env_${ac_var}_value
2489 case $ac_old_set,$ac_new_set in
2490 set,)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2492$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2494 ,set)
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2496$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2498 ,);;
2499 *)
2500 if test "x$ac_old_val" != "x$ac_new_val"; then
2501 # differences in whitespace do not lead to failure.
2502 ac_old_val_w=`echo x $ac_old_val`
2503 ac_new_val_w=`echo x $ac_new_val`
2504 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2506$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2507 ac_cache_corrupted=:
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2510$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2511 eval $ac_var=\$ac_old_val
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2514$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2516$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2517 fi;;
2518 esac
2519 # Pass precious variables to config.status.
2520 if test "$ac_new_set" = set; then
2521 case $ac_new_val in
2522 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2523 *) ac_arg=$ac_var=$ac_new_val ;;
2524 esac
2525 case " $ac_configure_args " in
2526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2527 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2528 esac
2529 fi
2530done
2531if $ac_cache_corrupted; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2535$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2536 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2537fi
2538## -------------------- ##
2539## Main body of script. ##
2540## -------------------- ##
2541
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
35fa52c0 2549
6b66678a
DWT
2550ac_aux_dir=
2551for ac_dir in . "$srcdir"/.; do
2552 for ac_t in install-sh install.sh shtool; do
2553 if test -f "$ac_dir/$ac_t"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/$ac_t -c"
2556 break 2
2557 fi
2558 done
2559done
2560if test -z "$ac_aux_dir"; then
2561 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2562fi
2563
2564# These three variables are undocumented and unsupported,
2565# and are intended to be withdrawn in a future Autoconf release.
2566# They can cause serious problems if a builder's source tree is in a directory
2567# whose full name contains unusual characters.
2568ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2569ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2570ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2571
2572
9c60689e
DWT
2573case `pwd` in
2574 *\ * | *\ *)
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2576$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2577esac
2578
2579
2580
2581macro_version='2.2.6b'
2582macro_revision='1.3017'
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596ltmain="$ac_aux_dir/ltmain.sh"
2597
2598# Make sure we can run config.sub.
2599$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2600 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2601
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2603$as_echo_n "checking build system type... " >&6; }
2604if test "${ac_cv_build+set}" = set; then :
2605 $as_echo_n "(cached) " >&6
2606else
2607 ac_build_alias=$build_alias
2608test "x$ac_build_alias" = x &&
2609 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2610test "x$ac_build_alias" = x &&
2611 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2612ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2613 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2614
2615fi
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2617$as_echo "$ac_cv_build" >&6; }
2618case $ac_cv_build in
2619*-*-*) ;;
2620*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2621esac
2622build=$ac_cv_build
2623ac_save_IFS=$IFS; IFS='-'
2624set x $ac_cv_build
2625shift
2626build_cpu=$1
2627build_vendor=$2
2628shift; shift
2629# Remember, the first character of IFS is used to create $*,
2630# except with old shells:
2631build_os=$*
2632IFS=$ac_save_IFS
2633case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2634
2635
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2637$as_echo_n "checking host system type... " >&6; }
2638if test "${ac_cv_host+set}" = set; then :
2639 $as_echo_n "(cached) " >&6
2640else
2641 if test "x$host_alias" = x; then
2642 ac_cv_host=$ac_cv_build
2643else
2644 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2645 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2646fi
2647
2648fi
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2650$as_echo "$ac_cv_host" >&6; }
2651case $ac_cv_host in
2652*-*-*) ;;
2653*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2654esac
2655host=$ac_cv_host
2656ac_save_IFS=$IFS; IFS='-'
2657set x $ac_cv_host
2658shift
2659host_cpu=$1
2660host_vendor=$2
2661shift; shift
2662# Remember, the first character of IFS is used to create $*,
2663# except with old shells:
2664host_os=$*
2665IFS=$ac_save_IFS
2666case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2667
2668
2669ac_ext=c
2670ac_cpp='$CPP $CPPFLAGS'
2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 2679if test "${ac_cv_prog_CC+set}" = set; then :
dbadc56a
DWT
2680 $as_echo_n "(cached) " >&6
2681else
9c60689e
DWT
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 2692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696done
2697 done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
9c60689e
DWT
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705$as_echo "$CC" >&6; }
35fa52c0
DWT
2706else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711
2712fi
2713if test -z "$ac_cv_prog_CC"; then
2714 ac_ct_CC=$CC
2715 # Extract the first word of "gcc", so it can be a program name with args.
2716set dummy gcc; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721else
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_ac_ct_CC="gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736done
2737 done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743if test -n "$ac_ct_CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745$as_echo "$ac_ct_CC" >&6; }
2746else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751 if test "x$ac_ct_CC" = x; then
2752 CC=""
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758ac_tool_warned=yes ;;
2759esac
2760 CC=$ac_ct_CC
2761 fi
2762else
2763 CC="$ac_cv_prog_CC"
2764fi
2765
2766if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}cc; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if test "${ac_cv_prog_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CC="${ac_tool_prefix}cc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798$as_echo "$CC" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805 fi
2806fi
2807if test -z "$CC"; then
2808 # Extract the first word of "cc", so it can be a program name with args.
2809set dummy cc; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818 ac_prog_rejected=no
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2827 ac_prog_rejected=yes
2828 continue
2829 fi
2830 ac_cv_prog_CC="cc"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835 done
2836IFS=$as_save_IFS
2837
2838if test $ac_prog_rejected = yes; then
2839 # We found a bogon in the path, so make sure we never use it.
2840 set dummy $ac_cv_prog_CC
2841 shift
2842 if test $# != 0; then
2843 # We chose a different compiler from the bogus one.
2844 # However, it has the same basename, so the bogon will be chosen
2845 # first if we set CC to just the basename; use the full file name.
2846 shift
2847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2848 fi
2849fi
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855$as_echo "$CC" >&6; }
2856else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861
2862fi
2863if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 for ac_prog in cl.exe
2866 do
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if test "${ac_cv_prog_CC+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889 done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894CC=$ac_cv_prog_CC
2895if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897$as_echo "$CC" >&6; }
2898else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904 test -n "$CC" && break
2905 done
2906fi
2907if test -z "$CC"; then
2908 ac_ct_CC=$CC
2909 for ac_prog in cl.exe
2910do
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917else
2918 if test -n "$ac_ct_CC"; then
2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_ac_ct_CC="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933 done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939if test -n "$ac_ct_CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2941$as_echo "$ac_ct_CC" >&6; }
2942else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948 test -n "$ac_ct_CC" && break
2949done
2950
2951 if test "x$ac_ct_CC" = x; then
2952 CC=""
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960 CC=$ac_ct_CC
2961 fi
2962fi
2963
2964fi
2965
2966
2967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969as_fn_error "no acceptable C compiler found in \$PATH
2970See \`config.log' for more details." "$LINENO" 5; }
2971
2972# Provide some information about the compiler.
2973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974set X $ac_compile
2975ac_compiler=$2
2976for ac_option in --version -v -V -qversion; do
2977 { { ac_try="$ac_compiler $ac_option >&5"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2985 ac_status=$?
2986 if test -s conftest.err; then
2987 sed '10a\
2988... rest of stderr output deleted ...
2989 10q' conftest.err >conftest.er1
2990 cat conftest.er1 >&5
35fa52c0 2991 fi
9c60689e 2992 rm -f conftest.er1 conftest.err
35fa52c0
DWT
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }
2995done
2996
2997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h. */
9c60689e 2999
35fa52c0
DWT
3000int
3001main ()
3002{
35fa52c0
DWT
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008ac_clean_files_save=$ac_clean_files
9c60689e 3009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3010# Try to create an executable without -o first, disregard a.out.
3011# It will help us diagnose broken compilers, and finding out an intuition
3012# of exeext.
9c60689e
DWT
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3014$as_echo_n "checking whether the C compiler works... " >&6; }
35fa52c0
DWT
3015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016
3017# The possible output files:
3018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019
3020ac_rmfiles=
3021for ac_file in $ac_files
3022do
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3026 esac
3027done
3028rm -f $ac_rmfiles
3029
3030if { { ac_try="$ac_link_default"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_link_default") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; then :
3041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043# in a Makefile. We should not override ac_cv_exeext if it was cached,
3044# so that the user can short-circuit this test for compilers unknown to
3045# Autoconf.
3046for ac_file in $ac_files ''
3047do
3048 test -f "$ac_file" || continue
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3051 ;;
3052 [ab].out )
3053 # We found the default executable, but exeext='' is most
3054 # certainly right.
3055 break;;
3056 *.* )
3057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058 then :; else
3059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060 fi
3061 # We set ac_cv_exeext here because the later test for it is not
3062 # safe: cross compilers may not add the suffix if given an `-o'
3063 # argument, so we may need to know it at that point already.
3064 # Even if this section looks crufty: it has the advantage of
3065 # actually working.
3066 break;;
3067 * )
3068 break;;
3069 esac
3070done
3071test "$ac_cv_exeext" = no && ac_cv_exeext=
3072
3073else
3074 ac_file=''
3075fi
35fa52c0 3076if test -z "$ac_file"; then :
9c60689e
DWT
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084{ as_fn_set_status 77
3085as_fn_error "C compiler cannot create executables
3086See \`config.log' for more details." "$LINENO" 5; }; }
9c60689e
DWT
3087else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089$as_echo "yes" >&6; }
35fa52c0 3090fi
9c60689e
DWT
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092$as_echo_n "checking for C compiler default output file name... " >&6; }
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3095ac_exeext=$ac_cv_exeext
3096
9c60689e 3097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3098ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3100$as_echo_n "checking for suffix of executables... " >&6; }
3101if { { ac_try="$ac_link"
3102case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3113# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3114# work properly (i.e., refer to `conftest.exe'), while it won't with
3115# `rm'.
3116for ac_file in conftest.exe conftest conftest.*; do
3117 test -f "$ac_file" || continue
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 break;;
3122 * ) break;;
3123 esac
3124done
3125else
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128as_fn_error "cannot compute suffix of executables: cannot compile and link
3129See \`config.log' for more details." "$LINENO" 5; }
3130fi
9c60689e 3131rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3133$as_echo "$ac_cv_exeext" >&6; }
3134
3135rm -f conftest.$ac_ext
3136EXEEXT=$ac_cv_exeext
3137ac_exeext=$EXEEXT
9c60689e
DWT
3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h. */
3140#include <stdio.h>
3141int
3142main ()
3143{
3144FILE *f = fopen ("conftest.out", "w");
3145 return ferror (f) || fclose (f) != 0;
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151ac_clean_files="$ac_clean_files conftest.out"
3152# Check that the compiler produces executables we can run. If not, either
3153# the compiler is broken, or we cross compile.
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3155$as_echo_n "checking whether we are cross compiling... " >&6; }
3156if test "$cross_compiling" != yes; then
3157 { { ac_try="$ac_link"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168 if { ac_try='./conftest$ac_cv_exeext'
3169 { { case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174$as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }; }; then
3179 cross_compiling=no
3180 else
3181 if test "$cross_compiling" = maybe; then
3182 cross_compiling=yes
3183 else
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186as_fn_error "cannot run C compiled programs.
3187If you meant to cross compile, use \`--host'.
3188See \`config.log' for more details." "$LINENO" 5; }
3189 fi
3190 fi
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3193$as_echo "$cross_compiling" >&6; }
3194
3195rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3196ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3198$as_echo_n "checking for suffix of object files... " >&6; }
3199if test "${ac_cv_objext+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3201else
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203/* end confdefs.h. */
3204
3205int
3206main ()
3207{
3208
3209 ;
3210 return 0;
3211}
3212_ACEOF
3213rm -f conftest.o conftest.obj
3214if { { ac_try="$ac_compile"
3215case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220$as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_compile") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 for ac_file in conftest.o conftest.obj conftest.*; do
3226 test -f "$ac_file" || continue;
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 break;;
3231 esac
3232done
3233else
3234 $as_echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error "cannot compute suffix of object files: cannot compile
3240See \`config.log' for more details." "$LINENO" 5; }
3241fi
3242rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3245$as_echo "$ac_cv_objext" >&6; }
3246OBJEXT=$ac_cv_objext
3247ac_objext=$OBJEXT
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252else
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259#ifndef __GNUC__
3260 choke me
3261#endif
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267if ac_fn_c_try_compile "$LINENO"; then :
3268 ac_compiler_gnu=yes
3269else
3270 ac_compiler_gnu=no
3271fi
3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3277$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3278if test $ac_compiler_gnu = yes; then
3279 GCC=yes
3280else
3281 GCC=
3282fi
3283ac_test_CFLAGS=${CFLAGS+set}
3284ac_save_CFLAGS=$CFLAGS
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3286$as_echo_n "checking whether $CC accepts -g... " >&6; }
3287if test "${ac_cv_prog_cc_g+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289else
3290 ac_save_c_werror_flag=$ac_c_werror_flag
3291 ac_c_werror_flag=yes
3292 ac_cv_prog_cc_g=no
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h. */
3296
3297int
3298main ()
3299{
3300
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307else
3308 CFLAGS=""
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320if ac_fn_c_try_compile "$LINENO"; then :
3321
3322else
3323 ac_c_werror_flag=$ac_save_c_werror_flag
3324 CFLAGS="-g"
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336if ac_fn_c_try_compile "$LINENO"; then :
3337 ac_cv_prog_cc_g=yes
3338fi
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340fi
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342fi
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3347$as_echo "$ac_cv_prog_cc_g" >&6; }
3348if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3352 CFLAGS="-g -O2"
3353 else
3354 CFLAGS="-g"
3355 fi
3356else
3357 if test "$GCC" = yes; then
3358 CFLAGS="-O2"
3359 else
3360 CFLAGS=
3361 fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365if test "${ac_cv_prog_cc_c89+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3367else
3368 ac_cv_prog_cc_c89=no
3369ac_save_CC=$CC
3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h. */
3372#include <stdarg.h>
3373#include <stdio.h>
3374#include <sys/types.h>
3375#include <sys/stat.h>
3376/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3377struct buf { int x; };
3378FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379static char *e (p, i)
3380 char **p;
3381 int i;
3382{
3383 return p[i];
3384}
3385static char *f (char * (*g) (char **, int), char **p, ...)
3386{
3387 char *s;
3388 va_list v;
3389 va_start (v,p);
3390 s = g (p, va_arg (v,int));
3391 va_end (v);
3392 return s;
3393}
3394
3395/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3396 function prototypes and stuff, but not '\xHH' hex character constants.
3397 These don't provoke an error unfortunately, instead are silently treated
3398 as 'x'. The following induces an error, until -std is added to get
3399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3400 array size at least. It's necessary to write '\x00'==0 to get something
3401 that's true only with -std. */
3402int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
3404/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405 inside strings and character constants. */
3406#define FOO(x) 'x'
3407int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
3409int test (int i, double x);
3410struct s1 {int (*f) (int a);};
3411struct s2 {int (*f) (double a);};
3412int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413int argc;
3414char **argv;
3415int
3416main ()
3417{
3418return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425do
3426 CC="$ac_save_CC $ac_arg"
3427 if ac_fn_c_try_compile "$LINENO"; then :
3428 ac_cv_prog_cc_c89=$ac_arg
3429fi
3430rm -f core conftest.err conftest.$ac_objext
3431 test "x$ac_cv_prog_cc_c89" != "xno" && break
3432done
3433rm -f conftest.$ac_ext
3434CC=$ac_save_CC
3435
3436fi
3437# AC_CACHE_VAL
3438case "x$ac_cv_prog_cc_c89" in
3439 x)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441$as_echo "none needed" >&6; } ;;
3442 xno)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444$as_echo "unsupported" >&6; } ;;
3445 *)
3446 CC="$CC $ac_cv_prog_cc_c89"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449esac
3450if test "x$ac_cv_prog_cc_c89" != xno; then :
3451
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
9c60689e
DWT
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3461$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3462if test "${ac_cv_path_SED+set}" = set; then :
35fa52c0
DWT
3463 $as_echo_n "(cached) " >&6
3464else
9c60689e
DWT
3465 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3466 for ac_i in 1 2 3 4 5 6 7; do
3467 ac_script="$ac_script$as_nl$ac_script"
3468 done
3469 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3470 { ac_script=; unset ac_script;}
3471 if test -z "$SED"; then
3472 ac_path_SED_found=false
3473 # Loop through the user's path and test for each of PROGNAME-LIST
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35fa52c0
DWT
3475for as_dir in $PATH
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
9c60689e 3479 for ac_prog in sed gsed; do
35fa52c0 3480 for ac_exec_ext in '' $ac_executable_extensions; do
9c60689e
DWT
3481 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3482 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3483# Check for GNU ac_path_SED and select it if it is found.
3484 # Check for GNU $ac_path_SED
3485case `"$ac_path_SED" --version 2>&1` in
3486*GNU*)
3487 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3488*)
3489 ac_count=0
3490 $as_echo_n 0123456789 >"conftest.in"
3491 while :
3492 do
3493 cat "conftest.in" "conftest.in" >"conftest.tmp"
3494 mv "conftest.tmp" "conftest.in"
3495 cp "conftest.in" "conftest.nl"
3496 $as_echo '' >> "conftest.nl"
3497 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3499 as_fn_arith $ac_count + 1 && ac_count=$as_val
3500 if test $ac_count -gt ${ac_path_SED_max-0}; then
3501 # Best one so far, save it but keep looking for a better one
3502 ac_cv_path_SED="$ac_path_SED"
3503 ac_path_SED_max=$ac_count
3504 fi
3505 # 10*(2^10) chars as input seems more than enough
3506 test $ac_count -gt 10 && break
35fa52c0 3507 done
9c60689e
DWT
3508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3509esac
35fa52c0 3510
9c60689e
DWT
3511 $ac_path_SED_found && break 3
3512 done
3513 done
3514 done
3515IFS=$as_save_IFS
3516 if test -z "$ac_cv_path_SED"; then
3517 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3518 fi
35fa52c0 3519else
9c60689e 3520 ac_cv_path_SED=$SED
35fa52c0
DWT
3521fi
3522
9c60689e
DWT
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3525$as_echo "$ac_cv_path_SED" >&6; }
3526 SED="$ac_cv_path_SED"
3527 rm -f conftest.sed
35fa52c0 3528
9c60689e
DWT
3529test -z "$SED" && SED=sed
3530Xsed="$SED -e 1s/^X//"
35fa52c0 3531
35fa52c0 3532
35fa52c0 3533
35fa52c0 3534
35fa52c0 3535
35fa52c0
DWT
3536
3537
35fa52c0 3538
35fa52c0 3539
35fa52c0 3540
35fa52c0 3541
9c60689e
DWT
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3543$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3544if test "${ac_cv_path_GREP+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546else
3547 if test -z "$GREP"; then
3548 ac_path_GREP_found=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_prog in grep ggrep; do
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3558 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3559# Check for GNU ac_path_GREP and select it if it is found.
3560 # Check for GNU $ac_path_GREP
3561case `"$ac_path_GREP" --version 2>&1` in
3562*GNU*)
3563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3564*)
3565 ac_count=0
3566 $as_echo_n 0123456789 >"conftest.in"
3567 while :
3568 do
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'GREP' >> "conftest.nl"
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 as_fn_arith $ac_count + 1 && ac_count=$as_val
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP="$ac_path_GREP"
3579 ac_path_GREP_max=$ac_count
3580 fi
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585esac
6b66678a 3586
9c60689e
DWT
3587 $ac_path_GREP_found && break 3
3588 done
3589 done
3590 done
3591IFS=$as_save_IFS
3592 if test -z "$ac_cv_path_GREP"; then
3593 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3594 fi
3595else
3596 ac_cv_path_GREP=$GREP
3597fi
6b66678a 3598
9c60689e
DWT
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3601$as_echo "$ac_cv_path_GREP" >&6; }
3602 GREP="$ac_cv_path_GREP"
6b66678a
DWT
3603
3604
9c60689e
DWT
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3606$as_echo_n "checking for egrep... " >&6; }
3607if test "${ac_cv_path_EGREP+set}" = set; then :
6b66678a
DWT
3608 $as_echo_n "(cached) " >&6
3609else
9c60689e
DWT
3610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3611 then ac_cv_path_EGREP="$GREP -E"
3612 else
3613 if test -z "$EGREP"; then
3614 ac_path_EGREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in egrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3625# Check for GNU ac_path_EGREP and select it if it is found.
3626 # Check for GNU $ac_path_EGREP
3627case `"$ac_path_EGREP" --version 2>&1` in
3628*GNU*)
3629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3630*)
3631 ac_count=0
3632 $as_echo_n 0123456789 >"conftest.in"
3633 while :
3634 do
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'EGREP' >> "conftest.nl"
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 as_fn_arith $ac_count + 1 && ac_count=$as_val
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP="$ac_path_EGREP"
3645 ac_path_EGREP_max=$ac_count
3646 fi
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651esac
3652
3653 $ac_path_EGREP_found && break 3
3654 done
3655 done
3656 done
3657IFS=$as_save_IFS
3658 if test -z "$ac_cv_path_EGREP"; then
3659 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3660 fi
3661else
3662 ac_cv_path_EGREP=$EGREP
3663fi
6b66678a 3664
9c60689e
DWT
3665 fi
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3668$as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP="$ac_cv_path_EGREP"
6b66678a 3670
6b66678a 3671
9c60689e
DWT
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3673$as_echo_n "checking for fgrep... " >&6; }
3674if test "${ac_cv_path_FGREP+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
6b66678a 3676else
9c60689e
DWT
3677 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3678 then ac_cv_path_FGREP="$GREP -F"
3679 else
3680 if test -z "$FGREP"; then
3681 ac_path_FGREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in fgrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3692# Check for GNU ac_path_FGREP and select it if it is found.
3693 # Check for GNU $ac_path_FGREP
3694case `"$ac_path_FGREP" --version 2>&1` in
3695*GNU*)
3696 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3697*)
3698 ac_count=0
3699 $as_echo_n 0123456789 >"conftest.in"
3700 while :
3701 do
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 $as_echo 'FGREP' >> "conftest.nl"
3706 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 as_fn_arith $ac_count + 1 && ac_count=$as_val
3709 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_FGREP="$ac_path_FGREP"
3712 ac_path_FGREP_max=$ac_count
3713 fi
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3716 done
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718esac
6b66678a 3719
9c60689e
DWT
3720 $ac_path_FGREP_found && break 3
3721 done
3722 done
3723 done
3724IFS=$as_save_IFS
3725 if test -z "$ac_cv_path_FGREP"; then
3726 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3727 fi
3728else
3729 ac_cv_path_FGREP=$FGREP
6b66678a
DWT
3730fi
3731
9c60689e 3732 fi
6b66678a 3733fi
9c60689e
DWT
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3735$as_echo "$ac_cv_path_FGREP" >&6; }
3736 FGREP="$ac_cv_path_FGREP"
6b66678a 3737
35fa52c0 3738
9c60689e 3739test -z "$GREP" && GREP=grep
35fa52c0 3740
309b0535 3741
35fa52c0 3742
6b66678a 3743
6b66678a
DWT
3744
3745
6b66678a 3746
6b66678a 3747
35fa52c0 3748
35fa52c0 3749
309b0535 3750
309b0535 3751
309b0535 3752
309b0535 3753
309b0535 3754
309b0535 3755
309b0535 3756
309b0535 3757
309b0535 3758
9c60689e
DWT
3759# Check whether --with-gnu-ld was given.
3760if test "${with_gnu_ld+set}" = set; then :
3761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
309b0535 3762else
9c60689e
DWT
3763 with_gnu_ld=no
3764fi
309b0535 3765
9c60689e
DWT
3766ac_prog=ld
3767if test "$GCC" = yes; then
3768 # Check if gcc -print-prog-name=ld gives a path.
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3770$as_echo_n "checking for ld used by $CC... " >&6; }
3771 case $host in
3772 *-*-mingw*)
3773 # gcc leaves a trailing carriage return which upsets mingw
3774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3775 *)
3776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3777 esac
3778 case $ac_prog in
3779 # Accept absolute paths.
3780 [\\/]* | ?:[\\/]*)
3781 re_direlt='/[^/][^/]*/\.\./'
3782 # Canonicalize the pathname of ld
3783 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3784 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3785 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
309b0535 3786 done
9c60689e
DWT
3787 test -z "$LD" && LD="$ac_prog"
3788 ;;
3789 "")
3790 # If it fails, then pretend we aren't using GCC.
3791 ac_prog=ld
3792 ;;
3793 *)
3794 # If it is relative, then search for the first ld in PATH.
3795 with_gnu_ld=unknown
3796 ;;
3797 esac
3798elif test "$with_gnu_ld" = yes; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3800$as_echo_n "checking for GNU ld... " >&6; }
3801else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3803$as_echo_n "checking for non-GNU ld... " >&6; }
3804fi
3805if test "${lt_cv_path_LD+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807else
3808 if test -z "$LD"; then
3809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3810 for ac_dir in $PATH; do
3811 IFS="$lt_save_ifs"
3812 test -z "$ac_dir" && ac_dir=.
3813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3814 lt_cv_path_LD="$ac_dir/$ac_prog"
3815 # Check to see if the program is GNU ld. I'd rather use --version,
3816 # but apparently some variants of GNU ld only accept -v.
3817 # Break only if it was the GNU/non-GNU ld that we prefer.
3818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3819 *GNU* | *'with BFD'*)
3820 test "$with_gnu_ld" != no && break
3821 ;;
3822 *)
3823 test "$with_gnu_ld" != yes && break
3824 ;;
309b0535 3825 esac
309b0535 3826 fi
9c60689e
DWT
3827 done
3828 IFS="$lt_save_ifs"
3829else
3830 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3831fi
3832fi
309b0535 3833
9c60689e
DWT
3834LD="$lt_cv_path_LD"
3835if test -n "$LD"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3837$as_echo "$LD" >&6; }
3838else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
3841fi
3842test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3844$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3845if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847else
3848 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3849case `$LD -v 2>&1 </dev/null` in
3850*GNU* | *'with BFD'*)
3851 lt_cv_prog_gnu_ld=yes
3852 ;;
3853*)
3854 lt_cv_prog_gnu_ld=no
3855 ;;
3856esac
309b0535 3857fi
9c60689e
DWT
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3859$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3860with_gnu_ld=$lt_cv_prog_gnu_ld
309b0535
DWT
3861
3862
309b0535 3863
309b0535
DWT
3864
3865
309b0535 3866
309b0535 3867
9c60689e
DWT
3868
3869
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3871$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3872if test "${lt_cv_path_NM+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874else
3875 if test -n "$NM"; then
3876 # Let the user override the test.
3877 lt_cv_path_NM="$NM"
3878else
3879 lt_nm_to_check="${ac_tool_prefix}nm"
3880 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3881 lt_nm_to_check="$lt_nm_to_check nm"
3882 fi
3883 for lt_tmp_nm in $lt_nm_to_check; do
3884 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3885 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3886 IFS="$lt_save_ifs"
3887 test -z "$ac_dir" && ac_dir=.
3888 tmp_nm="$ac_dir/$lt_tmp_nm"
3889 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3890 # Check to see if the nm accepts a BSD-compat flag.
3891 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3892 # nm: unknown option "B" ignored
3893 # Tru64's nm complains that /dev/null is an invalid object file
3894 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3895 */dev/null* | *'Invalid file or object type'*)
3896 lt_cv_path_NM="$tmp_nm -B"
3897 break
3898 ;;
3899 *)
3900 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3901 */dev/null*)
3902 lt_cv_path_NM="$tmp_nm -p"
3903 break
3904 ;;
3905 *)
3906 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3907 continue # so that we can try to find one that supports BSD flags
3908 ;;
3909 esac
3910 ;;
3911 esac
309b0535
DWT
3912 fi
3913 done
9c60689e 3914 IFS="$lt_save_ifs"
309b0535 3915 done
9c60689e
DWT
3916 : ${lt_cv_path_NM=no}
3917fi
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3920$as_echo "$lt_cv_path_NM" >&6; }
3921if test "$lt_cv_path_NM" != "no"; then
3922 NM="$lt_cv_path_NM"
3923else
3924 # Didn't find any BSD compatible name lister, look for dumpbin.
3925 if test -n "$ac_tool_prefix"; then
3926 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3927 do
3928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3929set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3932if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3933 $as_echo_n "(cached) " >&6
3934else
9c60689e
DWT
3935 if test -n "$DUMPBIN"; then
3936 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3945 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35fa52c0
DWT
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950 done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
9c60689e
DWT
3955DUMPBIN=$ac_cv_prog_DUMPBIN
3956if test -n "$DUMPBIN"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3958$as_echo "$DUMPBIN" >&6; }
35fa52c0
DWT
3959else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
9c60689e 3965 test -n "$DUMPBIN" && break
35fa52c0
DWT
3966 done
3967fi
9c60689e
DWT
3968if test -z "$DUMPBIN"; then
3969 ac_ct_DUMPBIN=$DUMPBIN
3970 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3971do
3972 # Extract the first word of "$ac_prog", so it can be a program name with args.
3973set dummy $ac_prog; ac_word=$2
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3976if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3977 $as_echo_n "(cached) " >&6
3978else
9c60689e
DWT
3979 if test -n "$ac_ct_DUMPBIN"; then
3980 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3981else
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3989 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35fa52c0
DWT
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993done
3994 done
3995IFS=$as_save_IFS
3996
3997fi
3998fi
9c60689e
DWT
3999ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4000if test -n "$ac_ct_DUMPBIN"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4002$as_echo "$ac_ct_DUMPBIN" >&6; }
35fa52c0
DWT
4003else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
4006fi
4007
4008
9c60689e 4009 test -n "$ac_ct_DUMPBIN" && break
35fa52c0
DWT
4010done
4011
9c60689e
DWT
4012 if test "x$ac_ct_DUMPBIN" = x; then
4013 DUMPBIN=":"
35fa52c0
DWT
4014 else
4015 case $cross_compiling:$ac_tool_warned in
4016yes:)
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019ac_tool_warned=yes ;;
4020esac
9c60689e 4021 DUMPBIN=$ac_ct_DUMPBIN
35fa52c0
DWT
4022 fi
4023fi
4024
9c60689e
DWT
4025
4026 if test "$DUMPBIN" != ":"; then
4027 NM="$DUMPBIN"
35fa52c0
DWT
4028 fi
4029fi
9c60689e 4030test -z "$NM" && NM=nm
35fa52c0 4031
35fa52c0 4032
35fa52c0 4033
35fa52c0 4034
9c60689e
DWT
4035
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4038$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4039if test "${lt_cv_nm_interface+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 lt_cv_nm_interface="BSD nm"
4043 echo "int some_variable = 0;" > conftest.$ac_ext
b65019fe 4044 (eval echo "\"\$as_me:4044: $ac_compile\"" >&5)
9c60689e
DWT
4045 (eval "$ac_compile" 2>conftest.err)
4046 cat conftest.err >&5
b65019fe 4047 (eval echo "\"\$as_me:4047: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9c60689e
DWT
4048 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4049 cat conftest.err >&5
b65019fe 4050 (eval echo "\"\$as_me:4050: output\"" >&5)
9c60689e
DWT
4051 cat conftest.out >&5
4052 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4053 lt_cv_nm_interface="MS dumpbin"
4054 fi
4055 rm -f conftest*
35fa52c0 4056fi
9c60689e
DWT
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4058$as_echo "$lt_cv_nm_interface" >&6; }
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4061$as_echo_n "checking whether ln -s works... " >&6; }
4062LN_S=$as_ln_s
4063if test "$LN_S" = "ln -s"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4065$as_echo "yes" >&6; }
35fa52c0 4066else
9c60689e
DWT
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4068$as_echo "no, using $LN_S" >&6; }
35fa52c0 4069fi
9c60689e
DWT
4070
4071# find the maximum length of command line arguments
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4073$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4074if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
35fa52c0
DWT
4075 $as_echo_n "(cached) " >&6
4076else
9c60689e
DWT
4077 i=0
4078 teststring="ABCD"
4079
4080 case $build_os in
4081 msdosdjgpp*)
4082 # On DJGPP, this test can blow up pretty badly due to problems in libc
4083 # (any single argument exceeding 2000 bytes causes a buffer overrun
4084 # during glob expansion). Even if it were fixed, the result of this
4085 # check would be larger than it should be.
4086 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4087 ;;
35fa52c0 4088
9c60689e
DWT
4089 gnu*)
4090 # Under GNU Hurd, this test is not required because there is
4091 # no limit to the length of command line arguments.
4092 # Libtool will interpret -1 as no limit whatsoever
4093 lt_cv_sys_max_cmd_len=-1;
4094 ;;
35fa52c0 4095
9c60689e
DWT
4096 cygwin* | mingw* | cegcc*)
4097 # On Win9x/ME, this test blows up -- it succeeds, but takes
4098 # about 5 minutes as the teststring grows exponentially.
4099 # Worse, since 9x/ME are not pre-emptively multitasking,
4100 # you end up with a "frozen" computer, even though with patience
4101 # the test eventually succeeds (with a max line length of 256k).
4102 # Instead, let's just punt: use the minimum linelength reported by
4103 # all of the supported platforms: 8192 (on NT/2K/XP).
4104 lt_cv_sys_max_cmd_len=8192;
4105 ;;
35fa52c0 4106
9c60689e
DWT
4107 amigaos*)
4108 # On AmigaOS with pdksh, this test takes hours, literally.
4109 # So we just punt and use a minimum line length of 8192.
4110 lt_cv_sys_max_cmd_len=8192;
4111 ;;
35fa52c0 4112
9c60689e
DWT
4113 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4114 # This has been around since 386BSD, at least. Likely further.
4115 if test -x /sbin/sysctl; then
4116 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4117 elif test -x /usr/sbin/sysctl; then
4118 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4119 else
4120 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4121 fi
4122 # And add a safety zone
4123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4125 ;;
35fa52c0 4126
9c60689e
DWT
4127 interix*)
4128 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4129 lt_cv_sys_max_cmd_len=196608
4130 ;;
35fa52c0 4131
9c60689e
DWT
4132 osf*)
4133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4135 # nice to cause kernel panics so lets avoid the loop below.
4136 # First set a reasonable default.
4137 lt_cv_sys_max_cmd_len=16384
4138 #
4139 if test -x /sbin/sysconfig; then
4140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4142 esac
4143 fi
4144 ;;
4145 sco3.2v5*)
4146 lt_cv_sys_max_cmd_len=102400
4147 ;;
4148 sysv5* | sco5v6* | sysv4.2uw2*)
4149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4150 if test -n "$kargmax"; then
4151 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4152 else
4153 lt_cv_sys_max_cmd_len=32768
4154 fi
4155 ;;
4156 *)
4157 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4158 if test -n "$lt_cv_sys_max_cmd_len"; then
4159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4161 else
4162 # Make teststring a little bigger before we do anything with it.
4163 # a 1K string should be a reasonable start.
4164 for i in 1 2 3 4 5 6 7 8 ; do
4165 teststring=$teststring$teststring
4166 done
4167 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4168 # If test is not a shell built-in, we'll probably end up computing a
4169 # maximum length that is only half of the actual maximum length, but
4170 # we can't tell.
4171 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4172 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4173 test $i != 17 # 1/2 MB should be enough
4174 do
4175 i=`expr $i + 1`
4176 teststring=$teststring$teststring
4177 done
4178 # Only check the string length outside the loop.
4179 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4180 teststring=
4181 # Add a significant safety factor because C++ compilers can tack on
4182 # massive amounts of additional arguments before passing them to the
4183 # linker. It appears as though 1/2 is a usable value.
4184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4185 fi
4186 ;;
4187 esac
35fa52c0 4188
35fa52c0 4189fi
9c60689e
DWT
4190
4191if test -n $lt_cv_sys_max_cmd_len ; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4193$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35fa52c0 4194else
9c60689e
DWT
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4196$as_echo "none" >&6; }
35fa52c0 4197fi
9c60689e 4198max_cmd_len=$lt_cv_sys_max_cmd_len
35fa52c0 4199
9c60689e
DWT
4200
4201
4202
4203
4204
4205: ${CP="cp -f"}
4206: ${MV="mv -f"}
4207: ${RM="rm -f"}
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4210$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4211# Try some XSI features
4212xsi_shell=no
4213( _lt_dummy="a/b/c"
4214 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4215 = c,a/b,, \
4216 && eval 'test $(( 1 + 1 )) -eq 2 \
4217 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4218 && xsi_shell=yes
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4220$as_echo "$xsi_shell" >&6; }
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4224$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4225lt_shell_append=no
4226( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4227 >/dev/null 2>&1 \
4228 && lt_shell_append=yes
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4230$as_echo "$lt_shell_append" >&6; }
4231
4232
4233if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4234 lt_unset=unset
35fa52c0 4235else
9c60689e
DWT
4236 lt_unset=false
4237fi
4238
4239
4240
4241
4242
4243# test EBCDIC or ASCII
4244case `echo X|tr X '\101'` in
4245 A) # ASCII based system
4246 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4247 lt_SP2NL='tr \040 \012'
4248 lt_NL2SP='tr \015\012 \040\040'
4249 ;;
4250 *) # EBCDIC based system
4251 lt_SP2NL='tr \100 \n'
4252 lt_NL2SP='tr \r\n \100\100'
4253 ;;
35fa52c0
DWT
4254esac
4255
35fa52c0 4256
35fa52c0 4257
35fa52c0 4258
35fa52c0 4259
35fa52c0 4260
35fa52c0 4261
35fa52c0 4262
9c60689e
DWT
4263
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4265$as_echo_n "checking for $LD option to reload object files... " >&6; }
4266if test "${lt_cv_ld_reload_flag+set}" = set; then :
35fa52c0
DWT
4267 $as_echo_n "(cached) " >&6
4268else
9c60689e 4269 lt_cv_ld_reload_flag='-r'
35fa52c0 4270fi
9c60689e
DWT
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4272$as_echo "$lt_cv_ld_reload_flag" >&6; }
4273reload_flag=$lt_cv_ld_reload_flag
4274case $reload_flag in
4275"" | " "*) ;;
4276*) reload_flag=" $reload_flag" ;;
4277esac
4278reload_cmds='$LD$reload_flag -o $output$reload_objs'
4279case $host_os in
4280 darwin*)
4281 if test "$GCC" = yes; then
4282 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4283 else
4284 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4285 fi
4286 ;;
35fa52c0 4287esac
35fa52c0
DWT
4288
4289
9c60689e
DWT
4290
4291
4292
4293
4294
4295
4296
4297if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4299set dummy ${ac_tool_prefix}objdump; ac_word=$2
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301$as_echo_n "checking for $ac_word... " >&6; }
4302if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4303 $as_echo_n "(cached) " >&6
4304else
9c60689e
DWT
4305 if test -n "$OBJDUMP"; then
4306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35fa52c0 4307else
9c60689e
DWT
4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
35fa52c0 4318 fi
9c60689e
DWT
4319done
4320 done
4321IFS=$as_save_IFS
35fa52c0 4322
35fa52c0 4323fi
35fa52c0 4324fi
9c60689e
DWT
4325OBJDUMP=$ac_cv_prog_OBJDUMP
4326if test -n "$OBJDUMP"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4328$as_echo "$OBJDUMP" >&6; }
35fa52c0 4329else
9c60689e
DWT
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
35fa52c0 4332fi
9c60689e
DWT
4333
4334
4335fi
4336if test -z "$ac_cv_prog_OBJDUMP"; then
4337 ac_ct_OBJDUMP=$OBJDUMP
4338 # Extract the first word of "objdump", so it can be a program name with args.
4339set dummy objdump; ac_word=$2
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4343 $as_echo_n "(cached) " >&6
4344else
9c60689e
DWT
4345 if test -n "$ac_ct_OBJDUMP"; then
4346 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
35fa52c0 4347else
9c60689e
DWT
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360 done
4361IFS=$as_save_IFS
4362
35fa52c0
DWT
4363fi
4364fi
9c60689e
DWT
4365ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4366if test -n "$ac_ct_OBJDUMP"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4368$as_echo "$ac_ct_OBJDUMP" >&6; }
35fa52c0
DWT
4369else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371$as_echo "no" >&6; }
4372fi
9c60689e
DWT
4373
4374 if test "x$ac_ct_OBJDUMP" = x; then
4375 OBJDUMP="false"
4376 else
4377 case $cross_compiling:$ac_tool_warned in
4378yes:)
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381ac_tool_warned=yes ;;
35fa52c0 4382esac
9c60689e
DWT
4383 OBJDUMP=$ac_ct_OBJDUMP
4384 fi
4385else
4386 OBJDUMP="$ac_cv_prog_OBJDUMP"
35fa52c0 4387fi
35fa52c0 4388
9c60689e 4389test -z "$OBJDUMP" && OBJDUMP=objdump
35fa52c0
DWT
4390
4391
35fa52c0 4392
35fa52c0 4393
35fa52c0
DWT
4394
4395
4396
35fa52c0
DWT
4397
4398
9c60689e
DWT
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4400$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4401if test "${lt_cv_deplibs_check_method+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403else
4404 lt_cv_file_magic_cmd='$MAGIC_CMD'
4405lt_cv_file_magic_test_file=
4406lt_cv_deplibs_check_method='unknown'
4407# Need to set the preceding variable on all platforms that support
4408# interlibrary dependencies.
4409# 'none' -- dependencies not supported.
4410# `unknown' -- same as none, but documents that we really don't know.
4411# 'pass_all' -- all dependencies passed with no checks.
4412# 'test_compile' -- check by making test program.
4413# 'file_magic [[regex]]' -- check by looking for files in library path
4414# which responds to the $file_magic_cmd with a given extended regex.
4415# If you have `file' or equivalent on your system and you're not sure
4416# whether `pass_all' will *always* work, you probably want this one.
4417
4418case $host_os in
4419aix[4-9]*)
4420 lt_cv_deplibs_check_method=pass_all
4421 ;;
35fa52c0 4422
9c60689e
DWT
4423beos*)
4424 lt_cv_deplibs_check_method=pass_all
4425 ;;
35fa52c0 4426
9c60689e
DWT
4427bsdi[45]*)
4428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4429 lt_cv_file_magic_cmd='/usr/bin/file -L'
4430 lt_cv_file_magic_test_file=/shlib/libc.so
4431 ;;
35fa52c0 4432
9c60689e
DWT
4433cygwin*)
4434 # func_win32_libid is a shell function defined in ltmain.sh
4435 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4436 lt_cv_file_magic_cmd='func_win32_libid'
4437 ;;
35fa52c0 4438
9c60689e
DWT
4439mingw* | pw32*)
4440 # Base MSYS/MinGW do not provide the 'file' command needed by
4441 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4442 # unless we find 'file', for example because we are cross-compiling.
4443 if ( file / ) >/dev/null 2>&1; then
4444 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4445 lt_cv_file_magic_cmd='func_win32_libid'
4446 else
4447 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4448 lt_cv_file_magic_cmd='$OBJDUMP -f'
4449 fi
4450 ;;
35fa52c0 4451
9c60689e
DWT
4452cegcc)
4453 # use the weaker test based on 'objdump'. See mingw*.
4454 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4455 lt_cv_file_magic_cmd='$OBJDUMP -f'
4456 ;;
35fa52c0 4457
9c60689e
DWT
4458darwin* | rhapsody*)
4459 lt_cv_deplibs_check_method=pass_all
4460 ;;
35fa52c0 4461
9c60689e
DWT
4462freebsd* | dragonfly*)
4463 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4464 case $host_cpu in
4465 i*86 )
4466 # Not sure whether the presence of OpenBSD here was a mistake.
4467 # Let's accept both of them until this is cleared up.
4468 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4469 lt_cv_file_magic_cmd=/usr/bin/file
4470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4471 ;;
4472 esac
4473 else
4474 lt_cv_deplibs_check_method=pass_all
4475 fi
4476 ;;
35fa52c0 4477
9c60689e
DWT
4478gnu*)
4479 lt_cv_deplibs_check_method=pass_all
4480 ;;
35fa52c0 4481
9c60689e
DWT
4482hpux10.20* | hpux11*)
4483 lt_cv_file_magic_cmd=/usr/bin/file
4484 case $host_cpu in
4485 ia64*)
4486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4487 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4488 ;;
4489 hppa*64*)
4490 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]'
4491 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4492 ;;
4493 *)
4494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4495 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4496 ;;
4497 esac
4498 ;;
35fa52c0 4499
9c60689e
DWT
4500interix[3-9]*)
4501 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4503 ;;
35fa52c0 4504
9c60689e
DWT
4505irix5* | irix6* | nonstopux*)
4506 case $LD in
4507 *-32|*"-32 ") libmagic=32-bit;;
4508 *-n32|*"-n32 ") libmagic=N32;;
4509 *-64|*"-64 ") libmagic=64-bit;;
4510 *) libmagic=never-match;;
4511 esac
4512 lt_cv_deplibs_check_method=pass_all
4513 ;;
35fa52c0 4514
9c60689e
DWT
4515# This must be Linux ELF.
4516linux* | k*bsd*-gnu | kopensolaris*-gnu)
4517 lt_cv_deplibs_check_method=pass_all
4518 ;;
35fa52c0 4519
9c60689e
DWT
4520netbsd* | netbsdelf*-gnu)
4521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4523 else
4524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4525 fi
4526 ;;
35fa52c0 4527
9c60689e
DWT
4528newos6*)
4529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4530 lt_cv_file_magic_cmd=/usr/bin/file
4531 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4532 ;;
35fa52c0 4533
9c60689e
DWT
4534*nto* | *qnx*)
4535 lt_cv_deplibs_check_method=pass_all
4536 ;;
35fa52c0 4537
9c60689e
DWT
4538openbsd*)
4539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4541 else
4542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4543 fi
4544 ;;
4545
4546osf3* | osf4* | osf5*)
4547 lt_cv_deplibs_check_method=pass_all
4548 ;;
4549
4550rdos*)
4551 lt_cv_deplibs_check_method=pass_all
4552 ;;
4553
4554solaris*)
4555 lt_cv_deplibs_check_method=pass_all
4556 ;;
4557
4558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4559 lt_cv_deplibs_check_method=pass_all
4560 ;;
4561
4562sysv4 | sysv4.3*)
4563 case $host_vendor in
4564 motorola)
4565 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]'
4566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4567 ;;
4568 ncr)
4569 lt_cv_deplibs_check_method=pass_all
4570 ;;
4571 sequent)
4572 lt_cv_file_magic_cmd='/bin/file'
4573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4574 ;;
4575 sni)
4576 lt_cv_file_magic_cmd='/bin/file'
4577 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4578 lt_cv_file_magic_test_file=/lib/libc.so
4579 ;;
4580 siemens)
4581 lt_cv_deplibs_check_method=pass_all
4582 ;;
4583 pc)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586 esac
4587 ;;
4588
4589tpf*)
4590 lt_cv_deplibs_check_method=pass_all
4591 ;;
4592esac
35fa52c0
DWT
4593
4594fi
9c60689e
DWT
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4596$as_echo "$lt_cv_deplibs_check_method" >&6; }
4597file_magic_cmd=$lt_cv_file_magic_cmd
4598deplibs_check_method=$lt_cv_deplibs_check_method
4599test -z "$deplibs_check_method" && deplibs_check_method=unknown
dbadc56a 4600
35fa52c0 4601
35fa52c0 4602
35fa52c0 4603
35fa52c0 4604
35fa52c0 4605
35fa52c0 4606
35fa52c0 4607
35fa52c0 4608
35fa52c0 4609
35fa52c0 4610
9c60689e
DWT
4611
4612if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4614set dummy ${ac_tool_prefix}ar; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if test "${ac_cv_prog_AR+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619else
4620 if test -n "$AR"; then
4621 ac_cv_prog_AR="$AR" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_AR="${ac_tool_prefix}ar"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634done
35fa52c0 4635 done
9c60689e
DWT
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640AR=$ac_cv_prog_AR
4641if test -n "$AR"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4643$as_echo "$AR" >&6; }
4644else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650fi
4651if test -z "$ac_cv_prog_AR"; then
4652 ac_ct_AR=$AR
4653 # Extract the first word of "ar", so it can be a program name with args.
4654set dummy ar; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659else
4660 if test -n "$ac_ct_AR"; then
4661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_ac_ct_AR="ar"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
35fa52c0 4673 fi
9c60689e
DWT
4674done
4675 done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680ac_ct_AR=$ac_cv_prog_ac_ct_AR
4681if test -n "$ac_ct_AR"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4683$as_echo "$ac_ct_AR" >&6; }
4684else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688
4689 if test "x$ac_ct_AR" = x; then
4690 AR="false"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698 AR=$ac_ct_AR
4699 fi
4700else
4701 AR="$ac_cv_prog_AR"
4702fi
4703
4704test -z "$AR" && AR=ar
4705test -z "$AR_FLAGS" && AR_FLAGS=cru
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4719set dummy ${ac_tool_prefix}strip; ac_word=$2
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721$as_echo_n "checking for $ac_word... " >&6; }
4722if test "${ac_cv_prog_STRIP+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 if test -n "$STRIP"; then
4726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4727else
4728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
35fa52c0 4738 fi
9c60689e
DWT
4739done
4740 done
4741IFS=$as_save_IFS
4742
4743fi
4744fi
4745STRIP=$ac_cv_prog_STRIP
4746if test -n "$STRIP"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4748$as_echo "$STRIP" >&6; }
4749else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751$as_echo "no" >&6; }
4752fi
4753
4754
4755fi
4756if test -z "$ac_cv_prog_STRIP"; then
4757 ac_ct_STRIP=$STRIP
4758 # Extract the first word of "strip", so it can be a program name with args.
4759set dummy strip; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764else
4765 if test -n "$ac_ct_STRIP"; then
4766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_ac_ct_STRIP="strip"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779done
4780 done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4786if test -n "$ac_ct_STRIP"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4788$as_echo "$ac_ct_STRIP" >&6; }
4789else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794 if test "x$ac_ct_STRIP" = x; then
4795 STRIP=":"
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798yes:)
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801ac_tool_warned=yes ;;
4802esac
4803 STRIP=$ac_ct_STRIP
4804 fi
4805else
4806 STRIP="$ac_cv_prog_STRIP"
4807fi
4808
4809test -z "$STRIP" && STRIP=:
4810
4811
4812
4813
4814
4815
4816if test -n "$ac_tool_prefix"; then
4817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820$as_echo_n "checking for $ac_word... " >&6; }
4821if test "${ac_cv_prog_RANLIB+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823else
4824 if test -n "$RANLIB"; then
4825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838done
4839 done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844RANLIB=$ac_cv_prog_RANLIB
4845if test -n "$RANLIB"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4847$as_echo "$RANLIB" >&6; }
4848else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850$as_echo "no" >&6; }
4851fi
4852
4853
4854fi
4855if test -z "$ac_cv_prog_RANLIB"; then
4856 ac_ct_RANLIB=$RANLIB
4857 # Extract the first word of "ranlib", so it can be a program name with args.
4858set dummy ranlib; ac_word=$2
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860$as_echo_n "checking for $ac_word... " >&6; }
4861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863else
4864 if test -n "$ac_ct_RANLIB"; then
4865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_ac_ct_RANLIB="ranlib"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878done
4879 done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4885if test -n "$ac_ct_RANLIB"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4887$as_echo "$ac_ct_RANLIB" >&6; }
4888else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891fi
4892
4893 if test "x$ac_ct_RANLIB" = x; then
4894 RANLIB=":"
4895 else
4896 case $cross_compiling:$ac_tool_warned in
4897yes:)
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900ac_tool_warned=yes ;;
4901esac
4902 RANLIB=$ac_ct_RANLIB
4903 fi
4904else
4905 RANLIB="$ac_cv_prog_RANLIB"
4906fi
4907
4908test -z "$RANLIB" && RANLIB=:
4909
4910
4911
4912
4913
4914
4915# Determine commands to create old-style static archives.
4916old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4917old_postinstall_cmds='chmod 644 $oldlib'
4918old_postuninstall_cmds=
4919
4920if test -n "$RANLIB"; then
4921 case $host_os in
4922 openbsd*)
4923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4924 ;;
4925 *)
4926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4927 ;;
4928 esac
4929 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4930fi
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
4964
4965# If no C compiler was specified, use CC.
4966LTCC=${LTCC-"$CC"}
4967
4968# If no C compiler flags were specified, use CFLAGS.
4969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4970
4971# Allow CC to be a program name with arguments.
4972compiler=$CC
4973
4974
4975# Check for command to grab the raw symbol name followed by C symbol from nm.
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4977$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4978if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4980else
4981
4982# These are sane defaults that work on at least a few old systems.
4983# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4984
4985# Character class describing NM global symbol codes.
4986symcode='[BCDEGRST]'
4987
4988# Regexp to match symbols that can be accessed directly from C.
4989sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4990
4991# Define system-specific variables.
4992case $host_os in
4993aix*)
4994 symcode='[BCDT]'
4995 ;;
4996cygwin* | mingw* | pw32* | cegcc*)
4997 symcode='[ABCDGISTW]'
4998 ;;
4999hpux*)
5000 if test "$host_cpu" = ia64; then
5001 symcode='[ABCDEGRST]'
5002 fi
5003 ;;
5004irix* | nonstopux*)
5005 symcode='[BCDEGRST]'
5006 ;;
5007osf*)
5008 symcode='[BCDEGQRST]'
5009 ;;
5010solaris*)
5011 symcode='[BDRT]'
5012 ;;
5013sco3.2v5*)
5014 symcode='[DT]'
5015 ;;
5016sysv4.2uw2*)
5017 symcode='[DT]'
5018 ;;
5019sysv5* | sco5v6* | unixware* | OpenUNIX*)
5020 symcode='[ABDT]'
5021 ;;
5022sysv4)
5023 symcode='[DFNSTU]'
5024 ;;
5025esac
5026
5027# If we're using GNU nm, then use its standard symbol codes.
5028case `$NM -V 2>&1` in
5029*GNU* | *'with BFD'*)
5030 symcode='[ABCDGIRSTW]' ;;
5031esac
5032
5033# Transform an extracted symbol line into a proper C declaration.
5034# Some systems (esp. on ia64) link data and code symbols differently,
5035# so use this general approach.
5036lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5037
5038# Transform an extracted symbol line into symbol name and symbol address
5039lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5040lt_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'"
5041
5042# Handle CRLF in mingw tool chain
5043opt_cr=
5044case $build_os in
5045mingw*)
5046 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5047 ;;
5048esac
5049
5050# Try without a prefix underscore, then with it.
5051for ac_symprfx in "" "_"; do
5052
5053 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5054 symxfrm="\\1 $ac_symprfx\\2 \\2"
5055
5056 # Write the raw and C identifiers.
5057 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5058 # Fake it for dumpbin and say T for any non-static function
5059 # and D for any global variable.
5060 # Also find C++ and __fastcall symbols from MSVC++,
5061 # which start with @ or ?.
5062 lt_cv_sys_global_symbol_pipe="$AWK '"\
5063" {last_section=section; section=\$ 3};"\
5064" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5065" \$ 0!~/External *\|/{next};"\
5066" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5067" {if(hide[section]) next};"\
5068" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5069" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5070" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5071" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5072" ' prfx=^$ac_symprfx"
5073 else
5074 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5075 fi
5076
5077 # Check to see that the pipe works correctly.
5078 pipe_works=no
5079
5080 rm -f conftest*
5081 cat > conftest.$ac_ext <<_LT_EOF
5082#ifdef __cplusplus
5083extern "C" {
5084#endif
5085char nm_test_var;
5086void nm_test_func(void);
5087void nm_test_func(void){}
5088#ifdef __cplusplus
5089}
5090#endif
5091int main(){nm_test_var='a';nm_test_func();return(0);}
5092_LT_EOF
5093
5094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5095 (eval $ac_compile) 2>&5
5096 ac_status=$?
5097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5098 test $ac_status = 0; }; then
5099 # Now try to grab the symbols.
5100 nlist=conftest.nm
5101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5102 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; } && test -s "$nlist"; then
5106 # Try sorting and uniquifying the output.
5107 if sort "$nlist" | uniq > "$nlist"T; then
5108 mv -f "$nlist"T "$nlist"
5109 else
5110 rm -f "$nlist"T
5111 fi
5112
5113 # Make sure that we snagged all the symbols we need.
5114 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5115 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5116 cat <<_LT_EOF > conftest.$ac_ext
5117#ifdef __cplusplus
5118extern "C" {
5119#endif
5120
5121_LT_EOF
5122 # Now generate the symbol file.
5123 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5124
5125 cat <<_LT_EOF >> conftest.$ac_ext
5126
5127/* The mapping between symbol names and symbols. */
5128const struct {
5129 const char *name;
5130 void *address;
5131}
5132lt__PROGRAM__LTX_preloaded_symbols[] =
5133{
5134 { "@PROGRAM@", (void *) 0 },
5135_LT_EOF
5136 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5137 cat <<\_LT_EOF >> conftest.$ac_ext
5138 {0, (void *) 0}
5139};
5140
5141/* This works around a problem in FreeBSD linker */
5142#ifdef FREEBSD_WORKAROUND
5143static const void *lt_preloaded_setup() {
5144 return lt__PROGRAM__LTX_preloaded_symbols;
5145}
5146#endif
5147
5148#ifdef __cplusplus
5149}
5150#endif
5151_LT_EOF
5152 # Now try linking the two files.
5153 mv conftest.$ac_objext conftstm.$ac_objext
5154 lt_save_LIBS="$LIBS"
5155 lt_save_CFLAGS="$CFLAGS"
5156 LIBS="conftstm.$ac_objext"
5157 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5159 (eval $ac_link) 2>&5
5160 ac_status=$?
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5163 pipe_works=yes
5164 fi
5165 LIBS="$lt_save_LIBS"
5166 CFLAGS="$lt_save_CFLAGS"
5167 else
5168 echo "cannot find nm_test_func in $nlist" >&5
5169 fi
5170 else
5171 echo "cannot find nm_test_var in $nlist" >&5
5172 fi
5173 else
5174 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5175 fi
5176 else
5177 echo "$progname: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 fi
5180 rm -rf conftest* conftst*
5181
5182 # Do not use the global_symbol_pipe unless it works.
5183 if test "$pipe_works" = yes; then
5184 break
5185 else
5186 lt_cv_sys_global_symbol_pipe=
5187 fi
5188done
5189
5190fi
5191
5192if test -z "$lt_cv_sys_global_symbol_pipe"; then
5193 lt_cv_sys_global_symbol_to_cdecl=
5194fi
5195if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5197$as_echo "failed" >&6; }
5198else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5200$as_echo "ok" >&6; }
5201fi
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225# Check whether --enable-libtool-lock was given.
5226if test "${enable_libtool_lock+set}" = set; then :
5227 enableval=$enable_libtool_lock;
5228fi
5229
5230test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5231
5232# Some flags need to be propagated to the compiler or linker for good
5233# libtool support.
5234case $host in
5235ia64-*-hpux*)
5236 # Find out which ABI we are using.
5237 echo 'int i;' > conftest.$ac_ext
5238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5239 (eval $ac_compile) 2>&5
5240 ac_status=$?
5241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5242 test $ac_status = 0; }; then
5243 case `/usr/bin/file conftest.$ac_objext` in
5244 *ELF-32*)
5245 HPUX_IA64_MODE="32"
5246 ;;
5247 *ELF-64*)
5248 HPUX_IA64_MODE="64"
5249 ;;
5250 esac
5251 fi
5252 rm -rf conftest*
5253 ;;
5254*-*-irix6*)
5255 # Find out which ABI we are using.
b65019fe 5256 echo '#line 5256 "configure"' > conftest.$ac_ext
9c60689e
DWT
5257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5258 (eval $ac_compile) 2>&5
5259 ac_status=$?
5260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5261 test $ac_status = 0; }; then
5262 if test "$lt_cv_prog_gnu_ld" = yes; then
5263 case `/usr/bin/file conftest.$ac_objext` in
5264 *32-bit*)
5265 LD="${LD-ld} -melf32bsmip"
5266 ;;
5267 *N32*)
5268 LD="${LD-ld} -melf32bmipn32"
5269 ;;
5270 *64-bit*)
5271 LD="${LD-ld} -melf64bmip"
5272 ;;
5273 esac
5274 else
5275 case `/usr/bin/file conftest.$ac_objext` in
5276 *32-bit*)
5277 LD="${LD-ld} -32"
5278 ;;
5279 *N32*)
5280 LD="${LD-ld} -n32"
5281 ;;
5282 *64-bit*)
5283 LD="${LD-ld} -64"
5284 ;;
5285 esac
5286 fi
5287 fi
5288 rm -rf conftest*
5289 ;;
5290
5291x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5292s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5293 # Find out which ABI we are using.
5294 echo 'int i;' > conftest.$ac_ext
5295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5296 (eval $ac_compile) 2>&5
5297 ac_status=$?
5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299 test $ac_status = 0; }; then
5300 case `/usr/bin/file conftest.o` in
5301 *32-bit*)
5302 case $host in
5303 x86_64-*kfreebsd*-gnu)
5304 LD="${LD-ld} -m elf_i386_fbsd"
5305 ;;
5306 x86_64-*linux*)
5307 LD="${LD-ld} -m elf_i386"
5308 ;;
5309 ppc64-*linux*|powerpc64-*linux*)
5310 LD="${LD-ld} -m elf32ppclinux"
5311 ;;
5312 s390x-*linux*)
5313 LD="${LD-ld} -m elf_s390"
5314 ;;
5315 sparc64-*linux*)
5316 LD="${LD-ld} -m elf32_sparc"
5317 ;;
5318 esac
5319 ;;
5320 *64-bit*)
5321 case $host in
5322 x86_64-*kfreebsd*-gnu)
5323 LD="${LD-ld} -m elf_x86_64_fbsd"
5324 ;;
5325 x86_64-*linux*)
5326 LD="${LD-ld} -m elf_x86_64"
5327 ;;
5328 ppc*-*linux*|powerpc*-*linux*)
5329 LD="${LD-ld} -m elf64ppc"
5330 ;;
5331 s390*-*linux*|s390*-*tpf*)
5332 LD="${LD-ld} -m elf64_s390"
5333 ;;
5334 sparc*-*linux*)
5335 LD="${LD-ld} -m elf64_sparc"
5336 ;;
5337 esac
5338 ;;
5339 esac
5340 fi
5341 rm -rf conftest*
5342 ;;
5343
5344*-*-sco3.2v5*)
5345 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5346 SAVE_CFLAGS="$CFLAGS"
5347 CFLAGS="$CFLAGS -belf"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5349$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5350if test "${lt_cv_cc_needs_belf+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361
5362int
5363main ()
5364{
5365
5366 ;
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_link "$LINENO"; then :
5371 lt_cv_cc_needs_belf=yes
5372else
5373 lt_cv_cc_needs_belf=no
5374fi
5375rm -f core conftest.err conftest.$ac_objext \
5376 conftest$ac_exeext conftest.$ac_ext
5377 ac_ext=c
5378ac_cpp='$CPP $CPPFLAGS'
5379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5385$as_echo "$lt_cv_cc_needs_belf" >&6; }
5386 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5388 CFLAGS="$SAVE_CFLAGS"
5389 fi
5390 ;;
5391sparc*-*solaris*)
5392 # Find out which ABI we are using.
5393 echo 'int i;' > conftest.$ac_ext
5394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5395 (eval $ac_compile) 2>&5
5396 ac_status=$?
5397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5398 test $ac_status = 0; }; then
5399 case `/usr/bin/file conftest.o` in
5400 *64-bit*)
5401 case $lt_cv_prog_gnu_ld in
5402 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5403 *)
5404 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5405 LD="${LD-ld} -64"
5406 fi
5407 ;;
5408 esac
5409 ;;
5410 esac
5411 fi
5412 rm -rf conftest*
5413 ;;
5414esac
5415
5416need_locks="$enable_libtool_lock"
5417
5418
5419 case $host_os in
5420 rhapsody* | darwin*)
5421 if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5423set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 if test -n "$DSYMUTIL"; then
5430 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443done
5444 done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449DSYMUTIL=$ac_cv_prog_DSYMUTIL
5450if test -n "$DSYMUTIL"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5452$as_echo "$DSYMUTIL" >&6; }
5453else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458
5459fi
5460if test -z "$ac_cv_prog_DSYMUTIL"; then
5461 ac_ct_DSYMUTIL=$DSYMUTIL
5462 # Extract the first word of "dsymutil", so it can be a program name with args.
5463set dummy dsymutil; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468else
5469 if test -n "$ac_ct_DSYMUTIL"; then
5470 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483done
5484 done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5490if test -n "$ac_ct_DSYMUTIL"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5492$as_echo "$ac_ct_DSYMUTIL" >&6; }
5493else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498 if test "x$ac_ct_DSYMUTIL" = x; then
5499 DSYMUTIL=":"
5500 else
5501 case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507 DSYMUTIL=$ac_ct_DSYMUTIL
5508 fi
5509else
5510 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5511fi
5512
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
5518if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 if test -n "$NMEDIT"; then
5522 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535done
5536 done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541NMEDIT=$ac_cv_prog_NMEDIT
5542if test -n "$NMEDIT"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5544$as_echo "$NMEDIT" >&6; }
5545else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5548fi
5549
5550
5551fi
5552if test -z "$ac_cv_prog_NMEDIT"; then
5553 ac_ct_NMEDIT=$NMEDIT
5554 # Extract the first word of "nmedit", so it can be a program name with args.
5555set dummy nmedit; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560else
5561 if test -n "$ac_ct_NMEDIT"; then
5562 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575done
5576 done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5582if test -n "$ac_ct_NMEDIT"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5584$as_echo "$ac_ct_NMEDIT" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590 if test "x$ac_ct_NMEDIT" = x; then
5591 NMEDIT=":"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594yes:)
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597ac_tool_warned=yes ;;
5598esac
5599 NMEDIT=$ac_ct_NMEDIT
5600 fi
5601else
5602 NMEDIT="$ac_cv_prog_NMEDIT"
5603fi
5604
5605 if test -n "$ac_tool_prefix"; then
5606 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5607set dummy ${ac_tool_prefix}lipo; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if test "${ac_cv_prog_LIPO+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 if test -n "$LIPO"; then
5614 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627done
5628 done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633LIPO=$ac_cv_prog_LIPO
5634if test -n "$LIPO"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5636$as_echo "$LIPO" >&6; }
5637else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642
5643fi
5644if test -z "$ac_cv_prog_LIPO"; then
5645 ac_ct_LIPO=$LIPO
5646 # Extract the first word of "lipo", so it can be a program name with args.
5647set dummy lipo; ac_word=$2
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649$as_echo_n "checking for $ac_word... " >&6; }
5650if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
5652else
5653 if test -n "$ac_ct_LIPO"; then
5654 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5655else
5656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657for as_dir in $PATH
5658do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_ac_ct_LIPO="lipo"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667done
5668 done
5669IFS=$as_save_IFS
5670
5671fi
5672fi
5673ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5674if test -n "$ac_ct_LIPO"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5676$as_echo "$ac_ct_LIPO" >&6; }
5677else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }
5680fi
5681
5682 if test "x$ac_ct_LIPO" = x; then
5683 LIPO=":"
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686yes:)
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689ac_tool_warned=yes ;;
5690esac
5691 LIPO=$ac_ct_LIPO
5692 fi
5693else
5694 LIPO="$ac_cv_prog_LIPO"
5695fi
5696
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5699set dummy ${ac_tool_prefix}otool; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
5702if test "${ac_cv_prog_OTOOL+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5704else
5705 if test -n "$OTOOL"; then
5706 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719done
5720 done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725OTOOL=$ac_cv_prog_OTOOL
5726if test -n "$OTOOL"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5728$as_echo "$OTOOL" >&6; }
5729else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734
5735fi
5736if test -z "$ac_cv_prog_OTOOL"; then
5737 ac_ct_OTOOL=$OTOOL
5738 # Extract the first word of "otool", so it can be a program name with args.
5739set dummy otool; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744else
5745 if test -n "$ac_ct_OTOOL"; then
5746 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_ac_ct_OTOOL="otool"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760 done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5766if test -n "$ac_ct_OTOOL"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5768$as_echo "$ac_ct_OTOOL" >&6; }
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774 if test "x$ac_ct_OTOOL" = x; then
5775 OTOOL=":"
5776 else
5777 case $cross_compiling:$ac_tool_warned in
5778yes:)
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5781ac_tool_warned=yes ;;
5782esac
5783 OTOOL=$ac_ct_OTOOL
5784 fi
5785else
5786 OTOOL="$ac_cv_prog_OTOOL"
5787fi
5788
5789 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5791set dummy ${ac_tool_prefix}otool64; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796else
5797 if test -n "$OTOOL64"; then
5798 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811done
5812 done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817OTOOL64=$ac_cv_prog_OTOOL64
5818if test -n "$OTOOL64"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5820$as_echo "$OTOOL64" >&6; }
5821else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
5827fi
5828if test -z "$ac_cv_prog_OTOOL64"; then
5829 ac_ct_OTOOL64=$OTOOL64
5830 # Extract the first word of "otool64", so it can be a program name with args.
5831set dummy otool64; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
5834if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5836else
5837 if test -n "$ac_ct_OTOOL64"; then
5838 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_ac_ct_OTOOL64="otool64"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852 done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5858if test -n "$ac_ct_OTOOL64"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5860$as_echo "$ac_ct_OTOOL64" >&6; }
5861else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866 if test "x$ac_ct_OTOOL64" = x; then
5867 OTOOL64=":"
5868 else
5869 case $cross_compiling:$ac_tool_warned in
5870yes:)
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873ac_tool_warned=yes ;;
5874esac
5875 OTOOL64=$ac_ct_OTOOL64
5876 fi
5877else
5878 OTOOL64="$ac_cv_prog_OTOOL64"
5879fi
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
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5908$as_echo_n "checking for -single_module linker flag... " >&6; }
5909if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911else
5912 lt_cv_apple_cc_single_mod=no
5913 if test -z "${LT_MULTI_MODULE}"; then
5914 # By default we will add the -single_module flag. You can override
5915 # by either setting the environment variable LT_MULTI_MODULE
5916 # non-empty at configure time, or by adding -multi_module to the
5917 # link flags.
5918 rm -rf libconftest.dylib*
5919 echo "int foo(void){return 1;}" > conftest.c
5920 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5921-dynamiclib -Wl,-single_module conftest.c" >&5
5922 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5923 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5924 _lt_result=$?
5925 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5926 lt_cv_apple_cc_single_mod=yes
5927 else
5928 cat conftest.err >&5
5929 fi
5930 rm -rf libconftest.dylib*
5931 rm -f conftest.*
5932 fi
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5935$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5937$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5938if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940else
5941 lt_cv_ld_exported_symbols_list=no
5942 save_LDFLAGS=$LDFLAGS
5943 echo "_main" > conftest.sym
5944 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946/* end confdefs.h. */
5947
5948int
5949main ()
5950{
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_link "$LINENO"; then :
5957 lt_cv_ld_exported_symbols_list=yes
5958else
5959 lt_cv_ld_exported_symbols_list=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext \
5962 conftest$ac_exeext conftest.$ac_ext
5963 LDFLAGS="$save_LDFLAGS"
5964
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5967$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5968 case $host_os in
5969 rhapsody* | darwin1.[012])
5970 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5971 darwin1.*)
5972 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5973 darwin*) # darwin 5.x on
5974 # if running on 10.5 or later, the deployment target defaults
5975 # to the OS version, if on x86, and 10.4, the deployment
5976 # target defaults to 10.4. Don't you love it?
5977 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5978 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5979 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5980 10.[012]*)
5981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5982 10.*)
5983 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5984 esac
5985 ;;
5986 esac
5987 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5988 _lt_dar_single_mod='$single_module'
5989 fi
5990 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5991 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5992 else
5993 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5994 fi
5995 if test "$DSYMUTIL" != ":"; then
5996 _lt_dsymutil='~$DSYMUTIL $lib || :'
5997 else
5998 _lt_dsymutil=
5999 fi
6000 ;;
6001 esac
6002
6003ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6009$as_echo_n "checking how to run the C preprocessor... " >&6; }
6010# On Suns, sometimes $CPP names a directory.
6011if test -n "$CPP" && test -d "$CPP"; then
6012 CPP=
6013fi
6014if test -z "$CPP"; then
6015 if test "${ac_cv_prog_CPP+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017else
6018 # Double quotes because CPP needs to be expanded
6019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6020 do
6021 ac_preproc_ok=false
6022for ac_c_preproc_warn_flag in '' yes
6023do
6024 # Use a header file that comes with gcc, so configuring glibc
6025 # with a fresh cross-compiler works.
6026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027 # <limits.h> exists even on freestanding compilers.
6028 # On the NeXT, cc -E runs the code through the compiler's parser,
6029 # not just through cpp. "Syntax error" is here to catch this case.
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h. */
6032#ifdef __STDC__
6033# include <limits.h>
6034#else
6035# include <assert.h>
6036#endif
6037 Syntax error
6038_ACEOF
6039if ac_fn_c_try_cpp "$LINENO"; then :
6040
6041else
6042 # Broken: fails on valid input.
6043continue
6044fi
6045rm -f conftest.err conftest.$ac_ext
6046
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h. */
6051#include <ac_nonexistent.h>
6052_ACEOF
6053if ac_fn_c_try_cpp "$LINENO"; then :
6054 # Broken: success on invalid input.
6055continue
6056else
6057 # Passes both tests.
6058ac_preproc_ok=:
6059break
6060fi
6061rm -f conftest.err conftest.$ac_ext
6062
6063done
6064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065rm -f conftest.err conftest.$ac_ext
6066if $ac_preproc_ok; then :
6067 break
6068fi
6069
6070 done
6071 ac_cv_prog_CPP=$CPP
6072
6073fi
6074 CPP=$ac_cv_prog_CPP
6075else
6076 ac_cv_prog_CPP=$CPP
6077fi
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6079$as_echo "$CPP" >&6; }
6080ac_preproc_ok=false
6081for ac_c_preproc_warn_flag in '' yes
6082do
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 # <limits.h> exists even on freestanding compilers.
6087 # On the NeXT, cc -E runs the code through the compiler's parser,
6088 # not just through cpp. "Syntax error" is here to catch this case.
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h. */
6091#ifdef __STDC__
6092# include <limits.h>
6093#else
6094# include <assert.h>
6095#endif
6096 Syntax error
6097_ACEOF
6098if ac_fn_c_try_cpp "$LINENO"; then :
6099
6100else
6101 # Broken: fails on valid input.
6102continue
6103fi
6104rm -f conftest.err conftest.$ac_ext
6105
6106 # OK, works on sane cases. Now check whether nonexistent headers
6107 # can be detected and how.
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h. */
6110#include <ac_nonexistent.h>
6111_ACEOF
6112if ac_fn_c_try_cpp "$LINENO"; then :
6113 # Broken: success on invalid input.
6114continue
6115else
6116 # Passes both tests.
6117ac_preproc_ok=:
6118break
6119fi
6120rm -f conftest.err conftest.$ac_ext
6121
6122done
6123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124rm -f conftest.err conftest.$ac_ext
6125if $ac_preproc_ok; then :
6126
6127else
6128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6130as_fn_error "C preprocessor \"$CPP\" fails sanity check
6131See \`config.log' for more details." "$LINENO" 5; }
6132fi
6133
6134ac_ext=c
6135ac_cpp='$CPP $CPPFLAGS'
6136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6142$as_echo_n "checking for ANSI C header files... " >&6; }
6143if test "${ac_cv_header_stdc+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145else
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147/* end confdefs.h. */
6148#include <stdlib.h>
6149#include <stdarg.h>
6150#include <string.h>
6151#include <float.h>
6152
6153int
6154main ()
6155{
6156
6157 ;
6158 return 0;
6159}
6160_ACEOF
6161if ac_fn_c_try_compile "$LINENO"; then :
6162 ac_cv_header_stdc=yes
6163else
6164 ac_cv_header_stdc=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167
6168if test $ac_cv_header_stdc = yes; then
6169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h. */
6172#include <string.h>
6173
6174_ACEOF
6175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176 $EGREP "memchr" >/dev/null 2>&1; then :
6177
6178else
6179 ac_cv_header_stdc=no
6180fi
6181rm -f conftest*
6182
6183fi
6184
6185if test $ac_cv_header_stdc = yes; then
6186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h. */
6189#include <stdlib.h>
6190
6191_ACEOF
6192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6193 $EGREP "free" >/dev/null 2>&1; then :
6194
6195else
6196 ac_cv_header_stdc=no
6197fi
6198rm -f conftest*
6199
6200fi
6201
6202if test $ac_cv_header_stdc = yes; then
6203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6204 if test "$cross_compiling" = yes; then :
6205 :
6206else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h. */
6209#include <ctype.h>
6210#include <stdlib.h>
6211#if ((' ' & 0x0FF) == 0x020)
6212# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6213# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6214#else
6215# define ISLOWER(c) \
6216 (('a' <= (c) && (c) <= 'i') \
6217 || ('j' <= (c) && (c) <= 'r') \
6218 || ('s' <= (c) && (c) <= 'z'))
6219# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6220#endif
6221
6222#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6223int
6224main ()
6225{
6226 int i;
6227 for (i = 0; i < 256; i++)
6228 if (XOR (islower (i), ISLOWER (i))
6229 || toupper (i) != TOUPPER (i))
6230 return 2;
6231 return 0;
6232}
6233_ACEOF
6234if ac_fn_c_try_run "$LINENO"; then :
6235
6236else
6237 ac_cv_header_stdc=no
6238fi
6239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6240 conftest.$ac_objext conftest.beam conftest.$ac_ext
6241fi
6242
6243fi
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6246$as_echo "$ac_cv_header_stdc" >&6; }
6247if test $ac_cv_header_stdc = yes; then
6248
6249$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6250
6251fi
6252
6253# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6254for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6255 inttypes.h stdint.h unistd.h
6256do :
6257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6258ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6259"
6260eval as_val=\$$as_ac_Header
6261 if test "x$as_val" = x""yes; then :
6262 cat >>confdefs.h <<_ACEOF
6263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264_ACEOF
6265
6266fi
6267
6268done
6269
6270
6271for ac_header in dlfcn.h
6272do :
6273 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6274"
6275if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6276 cat >>confdefs.h <<_ACEOF
6277#define HAVE_DLFCN_H 1
6278_ACEOF
6279
6280fi
6281
6282done
6283
6284
6285
6286# Set options
549f29b5
DWT
6287# Check whether --enable-static was given.
6288if test "${enable_static+set}" = set; then :
6289 enableval=$enable_static; p=${PACKAGE-default}
9c60689e 6290 case $enableval in
549f29b5
DWT
6291 yes) enable_static=yes ;;
6292 no) enable_static=no ;;
9c60689e 6293 *)
549f29b5 6294 enable_static=no
9c60689e
DWT
6295 # Look at the argument we got. We use all the common list separators.
6296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6297 for pkg in $enableval; do
6298 IFS="$lt_save_ifs"
6299 if test "X$pkg" = "X$p"; then
549f29b5 6300 enable_static=yes
9c60689e
DWT
6301 fi
6302 done
6303 IFS="$lt_save_ifs"
6304 ;;
6305 esac
6306else
549f29b5 6307 enable_static=no
9c60689e
DWT
6308fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
549f29b5
DWT
6318
6319 enable_dlopen=no
6320
6321
6322 enable_win32_dll=no
6323
6324
6325 # Check whether --enable-shared was given.
6326if test "${enable_shared+set}" = set; then :
6327 enableval=$enable_shared; p=${PACKAGE-default}
9c60689e 6328 case $enableval in
549f29b5
DWT
6329 yes) enable_shared=yes ;;
6330 no) enable_shared=no ;;
9c60689e 6331 *)
549f29b5 6332 enable_shared=no
9c60689e
DWT
6333 # Look at the argument we got. We use all the common list separators.
6334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6335 for pkg in $enableval; do
6336 IFS="$lt_save_ifs"
6337 if test "X$pkg" = "X$p"; then
549f29b5 6338 enable_shared=yes
9c60689e
DWT
6339 fi
6340 done
6341 IFS="$lt_save_ifs"
6342 ;;
6343 esac
6344else
549f29b5 6345 enable_shared=yes
9c60689e
DWT
6346fi
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
549f29b5 6357
9c60689e
DWT
6358# Check whether --with-pic was given.
6359if test "${with_pic+set}" = set; then :
6360 withval=$with_pic; pic_mode="$withval"
6361else
6362 pic_mode=default
6363fi
6364
6365
6366test -z "$pic_mode" && pic_mode=default
6367
6368
6369
6370
6371
6372
6373
6374 # Check whether --enable-fast-install was given.
6375if test "${enable_fast_install+set}" = set; then :
6376 enableval=$enable_fast_install; p=${PACKAGE-default}
6377 case $enableval in
6378 yes) enable_fast_install=yes ;;
6379 no) enable_fast_install=no ;;
6380 *)
6381 enable_fast_install=no
6382 # Look at the argument we got. We use all the common list separators.
6383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6384 for pkg in $enableval; do
6385 IFS="$lt_save_ifs"
6386 if test "X$pkg" = "X$p"; then
6387 enable_fast_install=yes
6388 fi
6389 done
6390 IFS="$lt_save_ifs"
6391 ;;
6392 esac
6393else
6394 enable_fast_install=yes
6395fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407# This can be used to rebuild libtool when needed
6408LIBTOOL_DEPS="$ltmain"
6409
6410# Always use our own libtool.
6411LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437test -z "$LN_S" && LN_S="ln -s"
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452if test -n "${ZSH_VERSION+set}" ; then
6453 setopt NO_GLOB_SUBST
6454fi
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6457$as_echo_n "checking for objdir... " >&6; }
6458if test "${lt_cv_objdir+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460else
6461 rm -f .libs 2>/dev/null
6462mkdir .libs 2>/dev/null
6463if test -d .libs; then
6464 lt_cv_objdir=.libs
6465else
6466 # MS-DOS does not allow filenames that begin with a dot.
6467 lt_cv_objdir=_libs
6468fi
6469rmdir .libs 2>/dev/null
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6472$as_echo "$lt_cv_objdir" >&6; }
6473objdir=$lt_cv_objdir
6474
6475
6476
6477
6478
6479cat >>confdefs.h <<_ACEOF
6480#define LT_OBJDIR "$lt_cv_objdir/"
6481_ACEOF
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499case $host_os in
6500aix3*)
6501 # AIX sometimes has problems with the GCC collect2 program. For some
6502 # reason, if we set the COLLECT_NAMES environment variable, the problems
6503 # vanish in a puff of smoke.
6504 if test "X${COLLECT_NAMES+set}" != Xset; then
6505 COLLECT_NAMES=
6506 export COLLECT_NAMES
6507 fi
6508 ;;
6509esac
6510
6511# Sed substitution that helps us do robust quoting. It backslashifies
6512# metacharacters that are still active within double-quoted strings.
6513sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6514
6515# Same as above, but do not quote variable references.
6516double_quote_subst='s/\(["`\\]\)/\\\1/g'
6517
6518# Sed substitution to delay expansion of an escaped shell variable in a
6519# double_quote_subst'ed string.
6520delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6521
6522# Sed substitution to delay expansion of an escaped single quote.
6523delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6524
6525# Sed substitution to avoid accidental globbing in evaled expressions
6526no_glob_subst='s/\*/\\\*/g'
6527
6528# Global variables:
6529ofile=libtool
6530can_build_shared=yes
6531
6532# All known linkers require a `.a' archive for static linking (except MSVC,
6533# which needs '.lib').
6534libext=a
6535
6536with_gnu_ld="$lt_cv_prog_gnu_ld"
6537
6538old_CC="$CC"
6539old_CFLAGS="$CFLAGS"
6540
6541# Set sane defaults for various variables
6542test -z "$CC" && CC=cc
6543test -z "$LTCC" && LTCC=$CC
6544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6545test -z "$LD" && LD=ld
6546test -z "$ac_objext" && ac_objext=o
6547
6548for cc_temp in $compiler""; do
6549 case $cc_temp in
6550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6552 \-*) ;;
6553 *) break;;
6554 esac
6555done
6556cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6557
6558
6559# Only perform the check for file, if the check method requires it
6560test -z "$MAGIC_CMD" && MAGIC_CMD=file
6561case $deplibs_check_method in
6562file_magic*)
6563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6566if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568else
6569 case $MAGIC_CMD in
6570[\\/*] | ?:[\\/]*)
6571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6572 ;;
6573*)
6574 lt_save_MAGIC_CMD="$MAGIC_CMD"
6575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6577 for ac_dir in $ac_dummy; do
6578 IFS="$lt_save_ifs"
6579 test -z "$ac_dir" && ac_dir=.
6580 if test -f $ac_dir/${ac_tool_prefix}file; then
6581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6582 if test -n "$file_magic_test_file"; then
6583 case $deplibs_check_method in
6584 "file_magic "*)
6585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6588 $EGREP "$file_magic_regex" > /dev/null; then
6589 :
6590 else
6591 cat <<_LT_EOF 1>&2
6592
6593*** Warning: the command libtool uses to detect shared libraries,
6594*** $file_magic_cmd, produces output that libtool cannot recognize.
6595*** The result is that libtool may fail to recognize shared libraries
6596*** as such. This will affect the creation of libtool libraries that
6597*** depend on shared libraries, but programs linked with such libtool
6598*** libraries will work regardless of this problem. Nevertheless, you
6599*** may want to report the problem to your system manager and/or to
6600*** bug-libtool@gnu.org
6601
6602_LT_EOF
6603 fi ;;
6604 esac
6605 fi
6606 break
6607 fi
6608 done
6609 IFS="$lt_save_ifs"
6610 MAGIC_CMD="$lt_save_MAGIC_CMD"
6611 ;;
6612esac
6613fi
6614
6615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6616if test -n "$MAGIC_CMD"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6618$as_echo "$MAGIC_CMD" >&6; }
6619else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624
6625
6626
6627
6628if test -z "$lt_cv_path_MAGIC_CMD"; then
6629 if test -n "$ac_tool_prefix"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6631$as_echo_n "checking for file... " >&6; }
6632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634else
6635 case $MAGIC_CMD in
6636[\\/*] | ?:[\\/]*)
6637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6638 ;;
6639*)
6640 lt_save_MAGIC_CMD="$MAGIC_CMD"
6641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6643 for ac_dir in $ac_dummy; do
6644 IFS="$lt_save_ifs"
6645 test -z "$ac_dir" && ac_dir=.
6646 if test -f $ac_dir/file; then
6647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6648 if test -n "$file_magic_test_file"; then
6649 case $deplibs_check_method in
6650 "file_magic "*)
6651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6654 $EGREP "$file_magic_regex" > /dev/null; then
6655 :
6656 else
6657 cat <<_LT_EOF 1>&2
6658
6659*** Warning: the command libtool uses to detect shared libraries,
6660*** $file_magic_cmd, produces output that libtool cannot recognize.
6661*** The result is that libtool may fail to recognize shared libraries
6662*** as such. This will affect the creation of libtool libraries that
6663*** depend on shared libraries, but programs linked with such libtool
6664*** libraries will work regardless of this problem. Nevertheless, you
6665*** may want to report the problem to your system manager and/or to
6666*** bug-libtool@gnu.org
6667
6668_LT_EOF
6669 fi ;;
6670 esac
6671 fi
6672 break
6673 fi
6674 done
6675 IFS="$lt_save_ifs"
6676 MAGIC_CMD="$lt_save_MAGIC_CMD"
6677 ;;
6678esac
6679fi
6680
6681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6682if test -n "$MAGIC_CMD"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6684$as_echo "$MAGIC_CMD" >&6; }
6685else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
6688fi
6689
6690
6691 else
6692 MAGIC_CMD=:
6693 fi
6694fi
6695
6696 fi
6697 ;;
6698esac
6699
6700# Use C for the default configuration in the libtool script
6701
6702lt_save_CC="$CC"
6703ac_ext=c
6704ac_cpp='$CPP $CPPFLAGS'
6705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
6709
6710# Source file extension for C test sources.
6711ac_ext=c
6712
6713# Object file extension for compiled C test sources.
6714objext=o
6715objext=$objext
6716
6717# Code to be used in simple compile tests
6718lt_simple_compile_test_code="int some_variable = 0;"
6719
6720# Code to be used in simple link tests
6721lt_simple_link_test_code='int main(){return(0);}'
6722
6723
6724
6725
6726
6727
6728
6729# If no C compiler was specified, use CC.
6730LTCC=${LTCC-"$CC"}
6731
6732# If no C compiler flags were specified, use CFLAGS.
6733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6734
6735# Allow CC to be a program name with arguments.
6736compiler=$CC
6737
6738# Save the default compiler, since it gets overwritten when the other
6739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6740compiler_DEFAULT=$CC
6741
6742# save warnings/boilerplate of simple test code
6743ac_outfile=conftest.$ac_objext
6744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6746_lt_compiler_boilerplate=`cat conftest.err`
6747$RM conftest*
6748
6749ac_outfile=conftest.$ac_objext
6750echo "$lt_simple_link_test_code" >conftest.$ac_ext
6751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6752_lt_linker_boilerplate=`cat conftest.err`
6753$RM -r conftest*
6754
6755
6756if test -n "$compiler"; then
6757
6758lt_prog_compiler_no_builtin_flag=
6759
6760if test "$GCC" = yes; then
6761 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6764$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6765if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6767else
6768 lt_cv_prog_compiler_rtti_exceptions=no
6769 ac_outfile=conftest.$ac_objext
6770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6771 lt_compiler_flag="-fno-rtti -fno-exceptions"
6772 # Insert the option either (1) after the last *FLAGS variable, or
6773 # (2) before a word containing "conftest.", or (3) at the end.
6774 # Note that $ac_compile itself does not contain backslashes and begins
6775 # with a dollar sign (not a hyphen), so the echo should work correctly.
6776 # The option is referenced via a variable to avoid confusing sed.
6777 lt_compile=`echo "$ac_compile" | $SED \
6778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6780 -e 's:$: $lt_compiler_flag:'`
b65019fe 6781 (eval echo "\"\$as_me:6781: $lt_compile\"" >&5)
9c60689e
DWT
6782 (eval "$lt_compile" 2>conftest.err)
6783 ac_status=$?
6784 cat conftest.err >&5
b65019fe 6785 echo "$as_me:6785: \$? = $ac_status" >&5
9c60689e
DWT
6786 if (exit $ac_status) && test -s "$ac_outfile"; then
6787 # The compiler can only warn and ignore the option if not recognized
6788 # So say no if there are warnings other than the usual output.
6789 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6792 lt_cv_prog_compiler_rtti_exceptions=yes
6793 fi
6794 fi
6795 $RM conftest*
6796
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6799$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6800
6801if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6802 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6803else
6804 :
6805fi
6806
6807fi
6808
6809
6810
6811
6812
6813
6814 lt_prog_compiler_wl=
6815lt_prog_compiler_pic=
6816lt_prog_compiler_static=
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6819$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6820
6821 if test "$GCC" = yes; then
6822 lt_prog_compiler_wl='-Wl,'
6823 lt_prog_compiler_static='-static'
6824
6825 case $host_os in
6826 aix*)
6827 # All AIX code is PIC.
6828 if test "$host_cpu" = ia64; then
6829 # AIX 5 now supports IA64 processor
6830 lt_prog_compiler_static='-Bstatic'
6831 fi
6832 ;;
6833
6834 amigaos*)
6835 case $host_cpu in
6836 powerpc)
6837 # see comment about AmigaOS4 .so support
6838 lt_prog_compiler_pic='-fPIC'
6839 ;;
6840 m68k)
6841 # FIXME: we need at least 68020 code to build shared libraries, but
6842 # adding the `-m68020' flag to GCC prevents building anything better,
6843 # like `-m68040'.
6844 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6845 ;;
6846 esac
6847 ;;
6848
6849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6850 # PIC is the default for these OSes.
6851 ;;
6852
6853 mingw* | cygwin* | pw32* | os2* | cegcc*)
6854 # This hack is so that the source file can tell whether it is being
6855 # built for inclusion in a dll (and should export symbols for example).
6856 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6857 # (--disable-auto-import) libraries
6858 lt_prog_compiler_pic='-DDLL_EXPORT'
6859 ;;
6860
6861 darwin* | rhapsody*)
6862 # PIC is the default on this platform
6863 # Common symbols not allowed in MH_DYLIB files
6864 lt_prog_compiler_pic='-fno-common'
6865 ;;
6866
6867 hpux*)
6868 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6869 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6870 # sets the default TLS model and affects inlining.
6871 case $host_cpu in
6872 hppa*64*)
6873 # +Z the default
6874 ;;
6875 *)
6876 lt_prog_compiler_pic='-fPIC'
6877 ;;
6878 esac
6879 ;;
6880
6881 interix[3-9]*)
6882 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6883 # Instead, we relocate shared libraries at runtime.
6884 ;;
6885
6886 msdosdjgpp*)
6887 # Just because we use GCC doesn't mean we suddenly get shared libraries
6888 # on systems that don't support them.
6889 lt_prog_compiler_can_build_shared=no
6890 enable_shared=no
6891 ;;
6892
6893 *nto* | *qnx*)
6894 # QNX uses GNU C++, but need to define -shared option too, otherwise
6895 # it will coredump.
6896 lt_prog_compiler_pic='-fPIC -shared'
6897 ;;
6898
6899 sysv4*MP*)
6900 if test -d /usr/nec; then
6901 lt_prog_compiler_pic=-Kconform_pic
6902 fi
6903 ;;
6904
6905 *)
6906 lt_prog_compiler_pic='-fPIC'
6907 ;;
6908 esac
6909 else
6910 # PORTME Check for flag to pass linker flags through the system compiler.
6911 case $host_os in
6912 aix*)
6913 lt_prog_compiler_wl='-Wl,'
6914 if test "$host_cpu" = ia64; then
6915 # AIX 5 now supports IA64 processor
6916 lt_prog_compiler_static='-Bstatic'
6917 else
6918 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6919 fi
6920 ;;
6921
6922 mingw* | cygwin* | pw32* | os2* | cegcc*)
6923 # This hack is so that the source file can tell whether it is being
6924 # built for inclusion in a dll (and should export symbols for example).
6925 lt_prog_compiler_pic='-DDLL_EXPORT'
6926 ;;
6927
6928 hpux9* | hpux10* | hpux11*)
6929 lt_prog_compiler_wl='-Wl,'
6930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6931 # not for PA HP-UX.
6932 case $host_cpu in
6933 hppa*64*|ia64*)
6934 # +Z the default
6935 ;;
6936 *)
6937 lt_prog_compiler_pic='+Z'
6938 ;;
6939 esac
6940 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6941 lt_prog_compiler_static='${wl}-a ${wl}archive'
6942 ;;
6943
6944 irix5* | irix6* | nonstopux*)
6945 lt_prog_compiler_wl='-Wl,'
6946 # PIC (with -KPIC) is the default.
6947 lt_prog_compiler_static='-non_shared'
6948 ;;
6949
6950 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6951 case $cc_basename in
6952 # old Intel for x86_64 which still supported -KPIC.
6953 ecc*)
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_pic='-KPIC'
6956 lt_prog_compiler_static='-static'
6957 ;;
6958 # icc used to be incompatible with GCC.
6959 # ICC 10 doesn't accept -KPIC any more.
6960 icc* | ifort*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-fPIC'
6963 lt_prog_compiler_static='-static'
6964 ;;
6965 # Lahey Fortran 8.1.
6966 lf95*)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_pic='--shared'
6969 lt_prog_compiler_static='--static'
6970 ;;
6971 pgcc* | pgf77* | pgf90* | pgf95*)
6972 # Portland Group compilers (*not* the Pentium gcc compiler,
6973 # which looks to be a dead project)
6974 lt_prog_compiler_wl='-Wl,'
6975 lt_prog_compiler_pic='-fpic'
6976 lt_prog_compiler_static='-Bstatic'
6977 ;;
6978 ccc*)
6979 lt_prog_compiler_wl='-Wl,'
6980 # All Alpha code is PIC.
6981 lt_prog_compiler_static='-non_shared'
6982 ;;
6983 xl*)
6984 # IBM XL C 8.0/Fortran 10.1 on PPC
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-qpic'
6987 lt_prog_compiler_static='-qstaticlink'
6988 ;;
6989 *)
6990 case `$CC -V 2>&1 | sed 5q` in
6991 *Sun\ C*)
6992 # Sun C 5.9
6993 lt_prog_compiler_pic='-KPIC'
6994 lt_prog_compiler_static='-Bstatic'
6995 lt_prog_compiler_wl='-Wl,'
6996 ;;
6997 *Sun\ F*)
6998 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6999 lt_prog_compiler_pic='-KPIC'
7000 lt_prog_compiler_static='-Bstatic'
7001 lt_prog_compiler_wl=''
7002 ;;
7003 esac
7004 ;;
7005 esac
7006 ;;
7007
7008 newsos6)
7009 lt_prog_compiler_pic='-KPIC'
7010 lt_prog_compiler_static='-Bstatic'
7011 ;;
7012
7013 *nto* | *qnx*)
7014 # QNX uses GNU C++, but need to define -shared option too, otherwise
7015 # it will coredump.
7016 lt_prog_compiler_pic='-fPIC -shared'
7017 ;;
7018
7019 osf3* | osf4* | osf5*)
7020 lt_prog_compiler_wl='-Wl,'
7021 # All OSF/1 code is PIC.
7022 lt_prog_compiler_static='-non_shared'
7023 ;;
7024
7025 rdos*)
7026 lt_prog_compiler_static='-non_shared'
7027 ;;
7028
7029 solaris*)
7030 lt_prog_compiler_pic='-KPIC'
7031 lt_prog_compiler_static='-Bstatic'
7032 case $cc_basename in
7033 f77* | f90* | f95*)
7034 lt_prog_compiler_wl='-Qoption ld ';;
7035 *)
7036 lt_prog_compiler_wl='-Wl,';;
7037 esac
7038 ;;
7039
7040 sunos4*)
7041 lt_prog_compiler_wl='-Qoption ld '
7042 lt_prog_compiler_pic='-PIC'
7043 lt_prog_compiler_static='-Bstatic'
7044 ;;
7045
7046 sysv4 | sysv4.2uw2* | sysv4.3*)
7047 lt_prog_compiler_wl='-Wl,'
7048 lt_prog_compiler_pic='-KPIC'
7049 lt_prog_compiler_static='-Bstatic'
7050 ;;
7051
7052 sysv4*MP*)
7053 if test -d /usr/nec ;then
7054 lt_prog_compiler_pic='-Kconform_pic'
7055 lt_prog_compiler_static='-Bstatic'
7056 fi
7057 ;;
7058
7059 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7060 lt_prog_compiler_wl='-Wl,'
7061 lt_prog_compiler_pic='-KPIC'
7062 lt_prog_compiler_static='-Bstatic'
7063 ;;
7064
7065 unicos*)
7066 lt_prog_compiler_wl='-Wl,'
7067 lt_prog_compiler_can_build_shared=no
7068 ;;
7069
7070 uts4*)
7071 lt_prog_compiler_pic='-pic'
7072 lt_prog_compiler_static='-Bstatic'
7073 ;;
7074
7075 *)
7076 lt_prog_compiler_can_build_shared=no
7077 ;;
7078 esac
7079 fi
7080
7081case $host_os in
7082 # For platforms which do not support PIC, -DPIC is meaningless:
7083 *djgpp*)
7084 lt_prog_compiler_pic=
7085 ;;
7086 *)
7087 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7088 ;;
7089esac
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7091$as_echo "$lt_prog_compiler_pic" >&6; }
7092
7093
7094
7095
7096
7097
7098#
7099# Check to make sure the PIC flag actually works.
7100#
7101if test -n "$lt_prog_compiler_pic"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7103$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7104if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106else
7107 lt_cv_prog_compiler_pic_works=no
7108 ac_outfile=conftest.$ac_objext
7109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7110 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7111 # Insert the option either (1) after the last *FLAGS variable, or
7112 # (2) before a word containing "conftest.", or (3) at the end.
7113 # Note that $ac_compile itself does not contain backslashes and begins
7114 # with a dollar sign (not a hyphen), so the echo should work correctly.
7115 # The option is referenced via a variable to avoid confusing sed.
7116 lt_compile=`echo "$ac_compile" | $SED \
7117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7119 -e 's:$: $lt_compiler_flag:'`
b65019fe 7120 (eval echo "\"\$as_me:7120: $lt_compile\"" >&5)
9c60689e
DWT
7121 (eval "$lt_compile" 2>conftest.err)
7122 ac_status=$?
7123 cat conftest.err >&5
b65019fe 7124 echo "$as_me:7124: \$? = $ac_status" >&5
9c60689e
DWT
7125 if (exit $ac_status) && test -s "$ac_outfile"; then
7126 # The compiler can only warn and ignore the option if not recognized
7127 # So say no if there are warnings other than the usual output.
7128 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7131 lt_cv_prog_compiler_pic_works=yes
7132 fi
7133 fi
7134 $RM conftest*
7135
7136fi
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7138$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7139
7140if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7141 case $lt_prog_compiler_pic in
7142 "" | " "*) ;;
7143 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7144 esac
7145else
7146 lt_prog_compiler_pic=
7147 lt_prog_compiler_can_build_shared=no
7148fi
7149
7150fi
7151
7152
7153
7154
7155
7156
7157#
7158# Check to make sure the static flag actually works.
7159#
7160wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7162$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7163if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165else
7166 lt_cv_prog_compiler_static_works=no
7167 save_LDFLAGS="$LDFLAGS"
7168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7171 # The linker can only warn and ignore the option if not recognized
7172 # So say no if there are warnings
7173 if test -s conftest.err; then
7174 # Append any errors to the config.log.
7175 cat conftest.err 1>&5
7176 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7178 if diff conftest.exp conftest.er2 >/dev/null; then
7179 lt_cv_prog_compiler_static_works=yes
7180 fi
7181 else
7182 lt_cv_prog_compiler_static_works=yes
7183 fi
7184 fi
7185 $RM -r conftest*
7186 LDFLAGS="$save_LDFLAGS"
7187
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7190$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7191
7192if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7193 :
7194else
7195 lt_prog_compiler_static=
7196fi
7197
7198
7199
7200
7201
7202
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7205$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7206if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208else
7209 lt_cv_prog_compiler_c_o=no
7210 $RM -r conftest 2>/dev/null
7211 mkdir conftest
7212 cd conftest
7213 mkdir out
7214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7215
7216 lt_compiler_flag="-o out/conftest2.$ac_objext"
7217 # Insert the option either (1) after the last *FLAGS variable, or
7218 # (2) before a word containing "conftest.", or (3) at the end.
7219 # Note that $ac_compile itself does not contain backslashes and begins
7220 # with a dollar sign (not a hyphen), so the echo should work correctly.
7221 lt_compile=`echo "$ac_compile" | $SED \
7222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7224 -e 's:$: $lt_compiler_flag:'`
b65019fe 7225 (eval echo "\"\$as_me:7225: $lt_compile\"" >&5)
9c60689e
DWT
7226 (eval "$lt_compile" 2>out/conftest.err)
7227 ac_status=$?
7228 cat out/conftest.err >&5
b65019fe 7229 echo "$as_me:7229: \$? = $ac_status" >&5
9c60689e
DWT
7230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7231 then
7232 # The compiler can only warn and ignore the option if not recognized
7233 # So say no if there are warnings
7234 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7237 lt_cv_prog_compiler_c_o=yes
7238 fi
7239 fi
7240 chmod u+w . 2>&5
7241 $RM conftest*
7242 # SGI C++ compiler will create directory out/ii_files/ for
7243 # template instantiation
7244 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7245 $RM out/* && rmdir out
7246 cd ..
7247 $RM -r conftest
7248 $RM conftest*
7249
7250fi
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7252$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7253
7254
7255
7256
7257
7258
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7260$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7261if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7263else
7264 lt_cv_prog_compiler_c_o=no
7265 $RM -r conftest 2>/dev/null
7266 mkdir conftest
7267 cd conftest
7268 mkdir out
7269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7270
7271 lt_compiler_flag="-o out/conftest2.$ac_objext"
7272 # Insert the option either (1) after the last *FLAGS variable, or
7273 # (2) before a word containing "conftest.", or (3) at the end.
7274 # Note that $ac_compile itself does not contain backslashes and begins
7275 # with a dollar sign (not a hyphen), so the echo should work correctly.
7276 lt_compile=`echo "$ac_compile" | $SED \
7277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7279 -e 's:$: $lt_compiler_flag:'`
b65019fe 7280 (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
9c60689e
DWT
7281 (eval "$lt_compile" 2>out/conftest.err)
7282 ac_status=$?
7283 cat out/conftest.err >&5
b65019fe 7284 echo "$as_me:7284: \$? = $ac_status" >&5
9c60689e
DWT
7285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7286 then
7287 # The compiler can only warn and ignore the option if not recognized
7288 # So say no if there are warnings
7289 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7292 lt_cv_prog_compiler_c_o=yes
7293 fi
7294 fi
7295 chmod u+w . 2>&5
7296 $RM conftest*
7297 # SGI C++ compiler will create directory out/ii_files/ for
7298 # template instantiation
7299 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7300 $RM out/* && rmdir out
7301 cd ..
7302 $RM -r conftest
7303 $RM conftest*
7304
7305fi
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7307$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7308
7309
7310
7311
7312hard_links="nottested"
7313if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7314 # do not overwrite the value of need_locks provided by the user
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7316$as_echo_n "checking if we can lock with hard links... " >&6; }
7317 hard_links=yes
7318 $RM conftest*
7319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7320 touch conftest.a
7321 ln conftest.a conftest.b 2>&5 || hard_links=no
7322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7324$as_echo "$hard_links" >&6; }
7325 if test "$hard_links" = no; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7327$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7328 need_locks=warn
7329 fi
7330else
7331 need_locks=no
7332fi
7333
7334
7335
7336
7337
7338
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7340$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7341
7342 runpath_var=
7343 allow_undefined_flag=
7344 always_export_symbols=no
7345 archive_cmds=
7346 archive_expsym_cmds=
7347 compiler_needs_object=no
7348 enable_shared_with_static_runtimes=no
7349 export_dynamic_flag_spec=
7350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7351 hardcode_automatic=no
7352 hardcode_direct=no
7353 hardcode_direct_absolute=no
7354 hardcode_libdir_flag_spec=
7355 hardcode_libdir_flag_spec_ld=
7356 hardcode_libdir_separator=
7357 hardcode_minus_L=no
7358 hardcode_shlibpath_var=unsupported
7359 inherit_rpath=no
7360 link_all_deplibs=unknown
7361 module_cmds=
7362 module_expsym_cmds=
7363 old_archive_from_new_cmds=
7364 old_archive_from_expsyms_cmds=
7365 thread_safe_flag_spec=
7366 whole_archive_flag_spec=
7367 # include_expsyms should be a list of space-separated symbols to be *always*
7368 # included in the symbol list
7369 include_expsyms=
7370 # exclude_expsyms can be an extended regexp of symbols to exclude
7371 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7373 # as well as any symbol that contains `d'.
7374 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7376 # platforms (ab)use it in PIC code, but their linkers get confused if
7377 # the symbol is explicitly referenced. Since portable code cannot
7378 # rely on this symbol name, it's probably fine to never include it in
7379 # preloaded symbol tables.
7380 # Exclude shared library initialization/finalization symbols.
7381 extract_expsyms_cmds=
7382
7383 case $host_os in
7384 cygwin* | mingw* | pw32* | cegcc*)
7385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7386 # When not using gcc, we currently assume that we are using
7387 # Microsoft Visual C++.
7388 if test "$GCC" != yes; then
7389 with_gnu_ld=no
7390 fi
7391 ;;
7392 interix*)
7393 # we just hope/assume this is gcc and not c89 (= MSVC++)
7394 with_gnu_ld=yes
7395 ;;
7396 openbsd*)
7397 with_gnu_ld=no
7398 ;;
7399 linux* | k*bsd*-gnu)
7400 link_all_deplibs=no
7401 ;;
7402 esac
7403
7404 ld_shlibs=yes
7405 if test "$with_gnu_ld" = yes; then
7406 # If archive_cmds runs LD, not CC, wlarc should be empty
7407 wlarc='${wl}'
7408
7409 # Set some defaults for GNU ld with shared library support. These
7410 # are reset later if shared libraries are not supported. Putting them
7411 # here allows them to be overridden if necessary.
7412 runpath_var=LD_RUN_PATH
7413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7414 export_dynamic_flag_spec='${wl}--export-dynamic'
7415 # ancient GNU ld didn't support --whole-archive et. al.
7416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7418 else
7419 whole_archive_flag_spec=
7420 fi
7421 supports_anon_versioning=no
7422 case `$LD -v 2>&1` in
7423 *GNU\ gold*) supports_anon_versioning=yes ;;
7424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7427 *\ 2.11.*) ;; # other 2.11 versions
7428 *) supports_anon_versioning=yes ;;
7429 esac
7430
7431 # See if GNU ld supports shared libraries.
7432 case $host_os in
7433 aix[3-9]*)
7434 # On AIX/PPC, the GNU linker is very broken
7435 if test "$host_cpu" != ia64; then
7436 ld_shlibs=no
7437 cat <<_LT_EOF 1>&2
7438
7439*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7440*** to be unable to reliably create shared libraries on AIX.
7441*** Therefore, libtool is disabling shared libraries support. If you
7442*** really care for shared libraries, you may want to modify your PATH
7443*** so that a non-GNU linker is found, and then restart.
7444
7445_LT_EOF
7446 fi
7447 ;;
7448
7449 amigaos*)
7450 case $host_cpu in
7451 powerpc)
7452 # see comment about AmigaOS4 .so support
7453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7454 archive_expsym_cmds=''
7455 ;;
7456 m68k)
7457 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)'
7458 hardcode_libdir_flag_spec='-L$libdir'
7459 hardcode_minus_L=yes
7460 ;;
7461 esac
7462 ;;
7463
7464 beos*)
7465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7466 allow_undefined_flag=unsupported
7467 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7468 # support --undefined. This deserves some investigation. FIXME
7469 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7470 else
7471 ld_shlibs=no
7472 fi
7473 ;;
7474
7475 cygwin* | mingw* | pw32* | cegcc*)
7476 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7477 # as there is no search path for DLLs.
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 allow_undefined_flag=unsupported
7480 always_export_symbols=no
7481 enable_shared_with_static_runtimes=yes
7482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7483
7484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7486 # If the export-symbols file already is a .def file (1st line
7487 # is EXPORTS), use it as is; otherwise, prepend...
7488 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7489 cp $export_symbols $output_objdir/$soname.def;
7490 else
7491 echo EXPORTS > $output_objdir/$soname.def;
7492 cat $export_symbols >> $output_objdir/$soname.def;
7493 fi~
7494 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7495 else
7496 ld_shlibs=no
7497 fi
7498 ;;
7499
7500 interix[3-9]*)
7501 hardcode_direct=no
7502 hardcode_shlibpath_var=no
7503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7504 export_dynamic_flag_spec='${wl}-E'
7505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7506 # Instead, shared libraries are loaded at an image base (0x10000000 by
7507 # default) and relocated if they conflict, which is a slow very memory
7508 # consuming and fragmenting process. To avoid this, we pick a random,
7509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7512 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'
7513 ;;
7514
7515 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7516 tmp_diet=no
7517 if test "$host_os" = linux-dietlibc; then
7518 case $cc_basename in
7519 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7520 esac
7521 fi
7522 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7523 && test "$tmp_diet" = no
7524 then
7525 tmp_addflag=
7526 tmp_sharedflag='-shared'
7527 case $cc_basename,$host_cpu in
7528 pgcc*) # Portland Group C compiler
7529 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'
7530 tmp_addflag=' $pic_flag'
7531 ;;
7532 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7533 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'
7534 tmp_addflag=' $pic_flag -Mnomain' ;;
7535 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7536 tmp_addflag=' -i_dynamic' ;;
7537 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7538 tmp_addflag=' -i_dynamic -nofor_main' ;;
7539 ifc* | ifort*) # Intel Fortran compiler
7540 tmp_addflag=' -nofor_main' ;;
7541 lf95*) # Lahey Fortran 8.1
7542 whole_archive_flag_spec=
7543 tmp_sharedflag='--shared' ;;
7544 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7545 tmp_sharedflag='-qmkshrobj'
7546 tmp_addflag= ;;
7547 esac
7548 case `$CC -V 2>&1 | sed 5q` in
7549 *Sun\ C*) # Sun C 5.9
7550 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'
7551 compiler_needs_object=yes
7552 tmp_sharedflag='-G' ;;
7553 *Sun\ F*) # Sun Fortran 8.3
7554 tmp_sharedflag='-G' ;;
7555 esac
7556 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7557
7558 if test "x$supports_anon_versioning" = xyes; then
7559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7561 echo "local: *; };" >> $output_objdir/$libname.ver~
7562 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7563 fi
7564
7565 case $cc_basename in
7566 xlf*)
7567 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7568 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7569 hardcode_libdir_flag_spec=
7570 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7571 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7572 if test "x$supports_anon_versioning" = xyes; then
7573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7575 echo "local: *; };" >> $output_objdir/$libname.ver~
7576 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7577 fi
7578 ;;
7579 esac
7580 else
7581 ld_shlibs=no
7582 fi
7583 ;;
7584
7585 netbsd* | netbsdelf*-gnu)
7586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7588 wlarc=
7589 else
7590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7592 fi
7593 ;;
7594
7595 solaris*)
7596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7597 ld_shlibs=no
7598 cat <<_LT_EOF 1>&2
7599
7600*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7601*** create shared libraries on Solaris systems. Therefore, libtool
7602*** is disabling shared libraries support. We urge you to upgrade GNU
7603*** binutils to release 2.9.1 or newer. Another option is to modify
7604*** your PATH or compiler configuration so that the native linker is
7605*** used, and then restart.
7606
7607_LT_EOF
7608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7611 else
7612 ld_shlibs=no
7613 fi
7614 ;;
7615
7616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7617 case `$LD -v 2>&1` in
7618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7619 ld_shlibs=no
7620 cat <<_LT_EOF 1>&2
7621
7622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7623*** reliably create shared libraries on SCO systems. Therefore, libtool
7624*** is disabling shared libraries support. We urge you to upgrade GNU
7625*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7626*** your PATH or compiler configuration so that the native linker is
7627*** used, and then restart.
7628
7629_LT_EOF
7630 ;;
7631 *)
7632 # For security reasons, it is highly recommended that you always
7633 # use absolute paths for naming shared libraries, and exclude the
7634 # DT_RUNPATH tag from executables and libraries. But doing so
7635 # requires that you compile everything twice, which is a pain.
7636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7640 else
7641 ld_shlibs=no
7642 fi
7643 ;;
7644 esac
7645 ;;
7646
7647 sunos4*)
7648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7649 wlarc=
7650 hardcode_direct=yes
7651 hardcode_shlibpath_var=no
7652 ;;
7653
7654 *)
7655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7658 else
7659 ld_shlibs=no
7660 fi
7661 ;;
7662 esac
7663
7664 if test "$ld_shlibs" = no; then
7665 runpath_var=
7666 hardcode_libdir_flag_spec=
7667 export_dynamic_flag_spec=
7668 whole_archive_flag_spec=
7669 fi
7670 else
7671 # PORTME fill in a description of your system's linker (not GNU ld)
7672 case $host_os in
7673 aix3*)
7674 allow_undefined_flag=unsupported
7675 always_export_symbols=yes
7676 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'
7677 # Note: this linker hardcodes the directories in LIBPATH if there
7678 # are no directories specified by -L.
7679 hardcode_minus_L=yes
7680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7681 # Neither direct hardcoding nor static linking is supported with a
7682 # broken collect2.
7683 hardcode_direct=unsupported
7684 fi
7685 ;;
7686
7687 aix[4-9]*)
7688 if test "$host_cpu" = ia64; then
7689 # On IA64, the linker does run time linking by default, so we don't
7690 # have to do anything special.
7691 aix_use_runtimelinking=no
7692 exp_sym_flag='-Bexport'
7693 no_entry_flag=""
7694 else
7695 # If we're using GNU nm, then we don't want the "-C" option.
7696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7697 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7698 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'
7699 else
7700 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'
7701 fi
7702 aix_use_runtimelinking=no
7703
7704 # Test if we are trying to use run time linking or normal
7705 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7706 # need to do runtime linking.
7707 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7708 for ld_flag in $LDFLAGS; do
7709 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7710 aix_use_runtimelinking=yes
7711 break
7712 fi
7713 done
7714 ;;
7715 esac
7716
7717 exp_sym_flag='-bexport'
7718 no_entry_flag='-bnoentry'
7719 fi
7720
7721 # When large executables or shared objects are built, AIX ld can
7722 # have problems creating the table of contents. If linking a library
7723 # or program results in "error TOC overflow" add -mminimal-toc to
7724 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7725 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7726
7727 archive_cmds=''
7728 hardcode_direct=yes
7729 hardcode_direct_absolute=yes
7730 hardcode_libdir_separator=':'
7731 link_all_deplibs=yes
7732 file_list_spec='${wl}-f,'
7733
7734 if test "$GCC" = yes; then
7735 case $host_os in aix4.[012]|aix4.[012].*)
7736 # We only want to do this on AIX 4.2 and lower, the check
7737 # below for broken collect2 doesn't work under 4.3+
7738 collect2name=`${CC} -print-prog-name=collect2`
7739 if test -f "$collect2name" &&
7740 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7741 then
7742 # We have reworked collect2
7743 :
7744 else
7745 # We have old collect2
7746 hardcode_direct=unsupported
7747 # It fails to find uninstalled libraries when the uninstalled
7748 # path is not listed in the libpath. Setting hardcode_minus_L
7749 # to unsupported forces relinking
7750 hardcode_minus_L=yes
7751 hardcode_libdir_flag_spec='-L$libdir'
7752 hardcode_libdir_separator=
7753 fi
7754 ;;
7755 esac
7756 shared_flag='-shared'
7757 if test "$aix_use_runtimelinking" = yes; then
7758 shared_flag="$shared_flag "'${wl}-G'
7759 fi
7760 link_all_deplibs=no
7761 else
7762 # not using gcc
7763 if test "$host_cpu" = ia64; then
7764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7765 # chokes on -Wl,-G. The following line is correct:
7766 shared_flag='-G'
7767 else
7768 if test "$aix_use_runtimelinking" = yes; then
7769 shared_flag='${wl}-G'
7770 else
7771 shared_flag='${wl}-bM:SRE'
7772 fi
7773 fi
7774 fi
7775
7776 export_dynamic_flag_spec='${wl}-bexpall'
7777 # It seems that -bexpall does not export symbols beginning with
7778 # underscore (_), so it is better to generate a list of symbols to export.
7779 always_export_symbols=yes
7780 if test "$aix_use_runtimelinking" = yes; then
7781 # Warning - without using the other runtime loading flags (-brtl),
7782 # -berok will link without error, but may produce a broken library.
7783 allow_undefined_flag='-berok'
7784 # Determine the default libpath from the value encoded in an
7785 # empty executable.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h. */
7788
7789int
7790main ()
7791{
7792
7793 ;
7794 return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_link "$LINENO"; then :
7798
7799lt_aix_libpath_sed='
7800 /Import File Strings/,/^$/ {
7801 /^0/ {
7802 s/^0 *\(.*\)$/\1/
7803 p
7804 }
7805 }'
7806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7807# Check for a 64-bit object if we didn't find anything.
7808if test -z "$aix_libpath"; then
7809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7810fi
7811fi
7812rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7815
7816 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7817 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"
7818 else
7819 if test "$host_cpu" = ia64; then
7820 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7821 allow_undefined_flag="-z nodefs"
7822 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"
7823 else
7824 # Determine the default libpath from the value encoded in an
7825 # empty executable.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h. */
7828
7829int
7830main ()
7831{
7832
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_link "$LINENO"; then :
7838
7839lt_aix_libpath_sed='
7840 /Import File Strings/,/^$/ {
7841 /^0/ {
7842 s/^0 *\(.*\)$/\1/
7843 p
7844 }
7845 }'
7846aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7847# Check for a 64-bit object if we didn't find anything.
7848if test -z "$aix_libpath"; then
7849 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7850fi
7851fi
7852rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7855
7856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7857 # Warning - without using the other run time loading flags,
7858 # -berok will link without error, but may produce a broken library.
7859 no_undefined_flag=' ${wl}-bernotok'
7860 allow_undefined_flag=' ${wl}-berok'
7861 # Exported symbols can be pulled into shared objects from archives
7862 whole_archive_flag_spec='$convenience'
7863 archive_cmds_need_lc=yes
7864 # This is similar to how AIX traditionally builds its shared libraries.
7865 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'
7866 fi
7867 fi
7868 ;;
7869
7870 amigaos*)
7871 case $host_cpu in
7872 powerpc)
7873 # see comment about AmigaOS4 .so support
7874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7875 archive_expsym_cmds=''
7876 ;;
7877 m68k)
7878 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)'
7879 hardcode_libdir_flag_spec='-L$libdir'
7880 hardcode_minus_L=yes
7881 ;;
7882 esac
7883 ;;
7884
7885 bsdi[45]*)
7886 export_dynamic_flag_spec=-rdynamic
7887 ;;
7888
7889 cygwin* | mingw* | pw32* | cegcc*)
7890 # When not using gcc, we currently assume that we are using
7891 # Microsoft Visual C++.
7892 # hardcode_libdir_flag_spec is actually meaningless, as there is
7893 # no search path for DLLs.
7894 hardcode_libdir_flag_spec=' '
7895 allow_undefined_flag=unsupported
7896 # Tell ltmain to make .lib files, not .a files.
7897 libext=lib
7898 # Tell ltmain to make .dll files, not .so files.
7899 shrext_cmds=".dll"
7900 # FIXME: Setting linknames here is a bad hack.
7901 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7902 # The linker will automatically build a .lib file if we build a DLL.
7903 old_archive_from_new_cmds='true'
7904 # FIXME: Should let the user specify the lib program.
7905 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7906 fix_srcfile_path='`cygpath -w "$srcfile"`'
7907 enable_shared_with_static_runtimes=yes
7908 ;;
7909
7910 darwin* | rhapsody*)
7911
7912
7913 archive_cmds_need_lc=no
7914 hardcode_direct=no
7915 hardcode_automatic=yes
7916 hardcode_shlibpath_var=unsupported
7917 whole_archive_flag_spec=''
7918 link_all_deplibs=yes
7919 allow_undefined_flag="$_lt_dar_allow_undefined"
7920 case $cc_basename in
7921 ifort*) _lt_dar_can_shared=yes ;;
7922 *) _lt_dar_can_shared=$GCC ;;
7923 esac
7924 if test "$_lt_dar_can_shared" = "yes"; then
7925 output_verbose_link_cmd=echo
7926 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7927 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7928 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}"
7929 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}"
7930
7931 else
7932 ld_shlibs=no
7933 fi
7934
7935 ;;
7936
7937 dgux*)
7938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939 hardcode_libdir_flag_spec='-L$libdir'
7940 hardcode_shlibpath_var=no
7941 ;;
7942
7943 freebsd1*)
7944 ld_shlibs=no
7945 ;;
7946
7947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7948 # support. Future versions do this automatically, but an explicit c++rt0.o
7949 # does not break anything, and helps significantly (at the cost of a little
7950 # extra space).
7951 freebsd2.2*)
7952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7953 hardcode_libdir_flag_spec='-R$libdir'
7954 hardcode_direct=yes
7955 hardcode_shlibpath_var=no
7956 ;;
7957
7958 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7959 freebsd2*)
7960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7961 hardcode_direct=yes
7962 hardcode_minus_L=yes
7963 hardcode_shlibpath_var=no
7964 ;;
7965
7966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7967 freebsd* | dragonfly*)
7968 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7969 hardcode_libdir_flag_spec='-R$libdir'
7970 hardcode_direct=yes
7971 hardcode_shlibpath_var=no
7972 ;;
7973
7974 hpux9*)
7975 if test "$GCC" = yes; then
7976 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'
7977 else
7978 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'
7979 fi
7980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7981 hardcode_libdir_separator=:
7982 hardcode_direct=yes
7983
7984 # hardcode_minus_L: Not really in the search PATH,
7985 # but as the default location of the library.
7986 hardcode_minus_L=yes
7987 export_dynamic_flag_spec='${wl}-E'
7988 ;;
7989
7990 hpux10*)
7991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7992 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7993 else
7994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7995 fi
7996 if test "$with_gnu_ld" = no; then
7997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7998 hardcode_libdir_flag_spec_ld='+b $libdir'
7999 hardcode_libdir_separator=:
8000 hardcode_direct=yes
8001 hardcode_direct_absolute=yes
8002 export_dynamic_flag_spec='${wl}-E'
8003 # hardcode_minus_L: Not really in the search PATH,
8004 # but as the default location of the library.
8005 hardcode_minus_L=yes
8006 fi
8007 ;;
8008
8009 hpux11*)
8010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8011 case $host_cpu in
8012 hppa*64*)
8013 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 ;;
8015 ia64*)
8016 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8017 ;;
8018 *)
8019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8020 ;;
8021 esac
8022 else
8023 case $host_cpu in
8024 hppa*64*)
8025 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8026 ;;
8027 ia64*)
8028 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8029 ;;
8030 *)
8031 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8032 ;;
8033 esac
8034 fi
8035 if test "$with_gnu_ld" = no; then
8036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8037 hardcode_libdir_separator=:
8038
8039 case $host_cpu in
8040 hppa*64*|ia64*)
8041 hardcode_direct=no
8042 hardcode_shlibpath_var=no
8043 ;;
8044 *)
8045 hardcode_direct=yes
8046 hardcode_direct_absolute=yes
8047 export_dynamic_flag_spec='${wl}-E'
8048
8049 # hardcode_minus_L: Not really in the search PATH,
8050 # but as the default location of the library.
8051 hardcode_minus_L=yes
8052 ;;
8053 esac
8054 fi
8055 ;;
8056
8057 irix5* | irix6* | nonstopux*)
8058 if test "$GCC" = yes; then
8059 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'
8060 # Try to use the -exported_symbol ld option, if it does not
8061 # work, assume that -exports_file does not work either and
8062 # implicitly export all symbols.
8063 save_LDFLAGS="$LDFLAGS"
8064 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h. */
8067int foo(void) {}
8068_ACEOF
8069if ac_fn_c_try_link "$LINENO"; then :
8070 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'
8071
8072fi
8073rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 LDFLAGS="$save_LDFLAGS"
8076 else
8077 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'
8078 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'
8079 fi
8080 archive_cmds_need_lc='no'
8081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8082 hardcode_libdir_separator=:
8083 inherit_rpath=yes
8084 link_all_deplibs=yes
8085 ;;
8086
8087 netbsd* | netbsdelf*-gnu)
8088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8090 else
8091 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8092 fi
8093 hardcode_libdir_flag_spec='-R$libdir'
8094 hardcode_direct=yes
8095 hardcode_shlibpath_var=no
8096 ;;
8097
8098 newsos6)
8099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8100 hardcode_direct=yes
8101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8102 hardcode_libdir_separator=:
8103 hardcode_shlibpath_var=no
8104 ;;
8105
8106 *nto* | *qnx*)
8107 ;;
8108
8109 openbsd*)
8110 if test -f /usr/libexec/ld.so; then
8111 hardcode_direct=yes
8112 hardcode_shlibpath_var=no
8113 hardcode_direct_absolute=yes
8114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8116 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8117 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8118 export_dynamic_flag_spec='${wl}-E'
8119 else
8120 case $host_os in
8121 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_libdir_flag_spec='-R$libdir'
8124 ;;
8125 *)
8126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8128 ;;
8129 esac
8130 fi
8131 else
8132 ld_shlibs=no
8133 fi
8134 ;;
8135
8136 os2*)
8137 hardcode_libdir_flag_spec='-L$libdir'
8138 hardcode_minus_L=yes
8139 allow_undefined_flag=unsupported
8140 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'
8141 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8142 ;;
8143
8144 osf3*)
8145 if test "$GCC" = yes; then
8146 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8147 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'
8148 else
8149 allow_undefined_flag=' -expect_unresolved \*'
8150 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'
8151 fi
8152 archive_cmds_need_lc='no'
8153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8154 hardcode_libdir_separator=:
8155 ;;
8156
8157 osf4* | osf5*) # as osf3* with the addition of -msym flag
8158 if test "$GCC" = yes; then
8159 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8160 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'
8161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8162 else
8163 allow_undefined_flag=' -expect_unresolved \*'
8164 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'
8165 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~
8166 $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'
8167
8168 # Both c and cxx compiler support -rpath directly
8169 hardcode_libdir_flag_spec='-rpath $libdir'
8170 fi
8171 archive_cmds_need_lc='no'
8172 hardcode_libdir_separator=:
8173 ;;
8174
8175 solaris*)
8176 no_undefined_flag=' -z defs'
8177 if test "$GCC" = yes; then
8178 wlarc='${wl}'
8179 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8181 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8182 else
8183 case `$CC -V 2>&1` in
8184 *"Compilers 5.0"*)
8185 wlarc=''
8186 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8187 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8188 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8189 ;;
8190 *)
8191 wlarc='${wl}'
8192 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8193 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8194 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8195 ;;
8196 esac
8197 fi
8198 hardcode_libdir_flag_spec='-R$libdir'
8199 hardcode_shlibpath_var=no
8200 case $host_os in
8201 solaris2.[0-5] | solaris2.[0-5].*) ;;
8202 *)
8203 # The compiler driver will combine and reorder linker options,
8204 # but understands `-z linker_flag'. GCC discards it without `$wl',
8205 # but is careful enough not to reorder.
8206 # Supported since Solaris 2.6 (maybe 2.5.1?)
8207 if test "$GCC" = yes; then
8208 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8209 else
8210 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8211 fi
8212 ;;
8213 esac
8214 link_all_deplibs=yes
8215 ;;
8216
8217 sunos4*)
8218 if test "x$host_vendor" = xsequent; then
8219 # Use $CC to link under sequent, because it throws in some extra .o
8220 # files that make .init and .fini sections work.
8221 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8222 else
8223 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8224 fi
8225 hardcode_libdir_flag_spec='-L$libdir'
8226 hardcode_direct=yes
8227 hardcode_minus_L=yes
8228 hardcode_shlibpath_var=no
8229 ;;
8230
8231 sysv4)
8232 case $host_vendor in
8233 sni)
8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235 hardcode_direct=yes # is this really true???
8236 ;;
8237 siemens)
8238 ## LD is ld it makes a PLAMLIB
8239 ## CC just makes a GrossModule.
8240 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8241 reload_cmds='$CC -r -o $output$reload_objs'
8242 hardcode_direct=no
8243 ;;
8244 motorola)
8245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8246 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8247 ;;
8248 esac
8249 runpath_var='LD_RUN_PATH'
8250 hardcode_shlibpath_var=no
8251 ;;
8252
8253 sysv4.3*)
8254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8255 hardcode_shlibpath_var=no
8256 export_dynamic_flag_spec='-Bexport'
8257 ;;
8258
8259 sysv4*MP*)
8260 if test -d /usr/nec; then
8261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262 hardcode_shlibpath_var=no
8263 runpath_var=LD_RUN_PATH
8264 hardcode_runpath_var=yes
8265 ld_shlibs=yes
8266 fi
8267 ;;
8268
8269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8270 no_undefined_flag='${wl}-z,text'
8271 archive_cmds_need_lc=no
8272 hardcode_shlibpath_var=no
8273 runpath_var='LD_RUN_PATH'
8274
8275 if test "$GCC" = yes; then
8276 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8278 else
8279 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 fi
8282 ;;
8283
8284 sysv5* | sco3.2v5* | sco5v6*)
8285 # Note: We can NOT use -z defs as we might desire, because we do not
8286 # link with -lc, and that would cause any symbols used from libc to
8287 # always be unresolved, which means just about no library would
8288 # ever link correctly. If we're not using GNU ld we use -z text
8289 # though, which does catch some bad symbols but isn't as heavy-handed
8290 # as -z defs.
8291 no_undefined_flag='${wl}-z,text'
8292 allow_undefined_flag='${wl}-z,nodefs'
8293 archive_cmds_need_lc=no
8294 hardcode_shlibpath_var=no
8295 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8296 hardcode_libdir_separator=':'
8297 link_all_deplibs=yes
8298 export_dynamic_flag_spec='${wl}-Bexport'
8299 runpath_var='LD_RUN_PATH'
8300
8301 if test "$GCC" = yes; then
8302 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8303 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8304 else
8305 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8307 fi
8308 ;;
8309
8310 uts4*)
8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_libdir_flag_spec='-L$libdir'
8313 hardcode_shlibpath_var=no
8314 ;;
8315
8316 *)
8317 ld_shlibs=no
8318 ;;
8319 esac
8320
8321 if test x$host_vendor = xsni; then
8322 case $host in
8323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8324 export_dynamic_flag_spec='${wl}-Blargedynsym'
8325 ;;
8326 esac
8327 fi
8328 fi
8329
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8331$as_echo "$ld_shlibs" >&6; }
8332test "$ld_shlibs" = no && can_build_shared=no
8333
8334with_gnu_ld=$with_gnu_ld
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350#
8351# Do we need to explicitly link libc?
8352#
8353case "x$archive_cmds_need_lc" in
8354x|xyes)
8355 # Assume -lc should be added
8356 archive_cmds_need_lc=yes
8357
8358 if test "$enable_shared" = yes && test "$GCC" = yes; then
8359 case $archive_cmds in
8360 *'~'*)
8361 # FIXME: we may have to deal with multi-command sequences.
8362 ;;
8363 '$CC '*)
8364 # Test whether the compiler implicitly links with -lc since on some
8365 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8366 # to ld, don't add -lc before -lgcc.
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8368$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8369 $RM conftest*
8370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8371
8372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8373 (eval $ac_compile) 2>&5
8374 ac_status=$?
8375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8376 test $ac_status = 0; } 2>conftest.err; then
8377 soname=conftest
8378 lib=conftest
8379 libobjs=conftest.$ac_objext
8380 deplibs=
8381 wl=$lt_prog_compiler_wl
8382 pic_flag=$lt_prog_compiler_pic
8383 compiler_flags=-v
8384 linker_flags=-v
8385 verstring=
8386 output_objdir=.
8387 libname=conftest
8388 lt_save_allow_undefined_flag=$allow_undefined_flag
8389 allow_undefined_flag=
8390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8391 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8392 ac_status=$?
8393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8394 test $ac_status = 0; }
8395 then
8396 archive_cmds_need_lc=no
8397 else
8398 archive_cmds_need_lc=yes
8399 fi
8400 allow_undefined_flag=$lt_save_allow_undefined_flag
8401 else
8402 cat conftest.err 1>&5
8403 fi
8404 $RM conftest*
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8406$as_echo "$archive_cmds_need_lc" >&6; }
8407 ;;
8408 esac
8409 fi
8410 ;;
8411esac
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
8568
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8570$as_echo_n "checking dynamic linker characteristics... " >&6; }
8571
8572if test "$GCC" = yes; then
8573 case $host_os in
8574 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8575 *) lt_awk_arg="/^libraries:/" ;;
8576 esac
8577 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8579 # if the path contains ";" then we assume it to be the separator
8580 # otherwise default to the standard path separator (i.e. ":") - it is
8581 # assumed that no part of a normal pathname contains ";" but that should
8582 # okay in the real world where ";" in dirpaths is itself problematic.
8583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8584 else
8585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8586 fi
8587 # Ok, now we have the path, separated by spaces, we can step through it
8588 # and add multilib dir if necessary.
8589 lt_tmp_lt_search_path_spec=
8590 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8591 for lt_sys_path in $lt_search_path_spec; do
8592 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8594 else
8595 test -d "$lt_sys_path" && \
8596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8597 fi
8598 done
8599 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8600BEGIN {RS=" "; FS="/|\n";} {
8601 lt_foo="";
8602 lt_count=0;
8603 for (lt_i = NF; lt_i > 0; lt_i--) {
8604 if ($lt_i != "" && $lt_i != ".") {
8605 if ($lt_i == "..") {
8606 lt_count++;
8607 } else {
8608 if (lt_count == 0) {
8609 lt_foo="/" $lt_i lt_foo;
8610 } else {
8611 lt_count--;
8612 }
8613 }
8614 }
8615 }
8616 if (lt_foo != "") { lt_freq[lt_foo]++; }
8617 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8618}'`
8619 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8620else
8621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8622fi
8623library_names_spec=
8624libname_spec='lib$name'
8625soname_spec=
8626shrext_cmds=".so"
8627postinstall_cmds=
8628postuninstall_cmds=
8629finish_cmds=
8630finish_eval=
8631shlibpath_var=
8632shlibpath_overrides_runpath=unknown
8633version_type=none
8634dynamic_linker="$host_os ld.so"
8635sys_lib_dlsearch_path_spec="/lib /usr/lib"
8636need_lib_prefix=unknown
8637hardcode_into_libs=no
8638
8639# when you set need_version to no, make sure it does not cause -set_version
8640# flags to be left without arguments
8641need_version=unknown
8642
8643case $host_os in
8644aix3*)
8645 version_type=linux
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8647 shlibpath_var=LIBPATH
8648
8649 # AIX 3 has no versioning support, so we append a major version to the name.
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 ;;
8652
8653aix[4-9]*)
8654 version_type=linux
8655 need_lib_prefix=no
8656 need_version=no
8657 hardcode_into_libs=yes
8658 if test "$host_cpu" = ia64; then
8659 # AIX 5 supports IA64
8660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8661 shlibpath_var=LD_LIBRARY_PATH
8662 else
8663 # With GCC up to 2.95.x, collect2 would create an import file
8664 # for dependence libraries. The import file would start with
8665 # the line `#! .'. This would cause the generated library to
8666 # depend on `.', always an invalid library. This was fixed in
8667 # development snapshots of GCC prior to 3.0.
8668 case $host_os in
8669 aix4 | aix4.[01] | aix4.[01].*)
8670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8671 echo ' yes '
8672 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8673 :
8674 else
8675 can_build_shared=no
8676 fi
8677 ;;
8678 esac
8679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8680 # soname into executable. Probably we can add versioning support to
8681 # collect2, so additional links can be useful in future.
8682 if test "$aix_use_runtimelinking" = yes; then
8683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8684 # instead of lib<name>.a to let people know that these are not
8685 # typical AIX shared libraries.
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 else
8688 # We preserve .a as extension for shared libraries through AIX4.2
8689 # and later when we are not doing run time linking.
8690 library_names_spec='${libname}${release}.a $libname.a'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 fi
8693 shlibpath_var=LIBPATH
8694 fi
8695 ;;
8696
8697amigaos*)
8698 case $host_cpu in
8699 powerpc)
8700 # Since July 2007 AmigaOS4 officially supports .so libraries.
8701 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 ;;
8704 m68k)
8705 library_names_spec='$libname.ixlibrary $libname.a'
8706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8707 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'
8708 ;;
8709 esac
8710 ;;
8711
8712beos*)
8713 library_names_spec='${libname}${shared_ext}'
8714 dynamic_linker="$host_os ld.so"
8715 shlibpath_var=LIBRARY_PATH
8716 ;;
8717
8718bsdi[45]*)
8719 version_type=linux
8720 need_version=no
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8722 soname_spec='${libname}${release}${shared_ext}$major'
8723 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8724 shlibpath_var=LD_LIBRARY_PATH
8725 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8726 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8727 # the default ld.so.conf also contains /usr/contrib/lib and
8728 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8729 # libtool to hard-code these into programs
8730 ;;
8731
8732cygwin* | mingw* | pw32* | cegcc*)
8733 version_type=windows
8734 shrext_cmds=".dll"
8735 need_version=no
8736 need_lib_prefix=no
8737
8738 case $GCC,$host_os in
8739 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8740 library_names_spec='$libname.dll.a'
8741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8742 postinstall_cmds='base_file=`basename \${file}`~
8743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8744 dldir=$destdir/`dirname \$dlpath`~
8745 test -d \$dldir || mkdir -p \$dldir~
8746 $install_prog $dir/$dlname \$dldir/$dlname~
8747 chmod a+x \$dldir/$dlname~
8748 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8749 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8750 fi'
8751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8752 dlpath=$dir/\$dldll~
8753 $RM \$dlpath'
8754 shlibpath_overrides_runpath=yes
8755
8756 case $host_os in
8757 cygwin*)
8758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8761 ;;
8762 mingw* | cegcc*)
8763 # MinGW DLLs use traditional 'lib' prefix
8764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8767 # It is most probably a Windows format PATH printed by
8768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8769 # path with ; separators, and with drive letters. We can handle the
8770 # drive letters (cygwin fileutils understands them), so leave them,
8771 # especially as we might pass files found there to a mingw objdump,
8772 # which wouldn't understand a cygwinified path. Ahh.
8773 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8774 else
8775 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8776 fi
8777 ;;
8778 pw32*)
8779 # pw32 DLLs use 'pw' prefix rather than 'lib'
8780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8781 ;;
8782 esac
8783 ;;
8784
8785 *)
8786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8787 ;;
8788 esac
8789 dynamic_linker='Win32 ld.exe'
8790 # FIXME: first we should search . and the directory the executable is in
8791 shlibpath_var=PATH
8792 ;;
8793
8794darwin* | rhapsody*)
8795 dynamic_linker="$host_os dyld"
8796 version_type=darwin
8797 need_lib_prefix=no
8798 need_version=no
8799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8800 soname_spec='${libname}${release}${major}$shared_ext'
8801 shlibpath_overrides_runpath=yes
8802 shlibpath_var=DYLD_LIBRARY_PATH
8803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8804
8805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8806 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8807 ;;
8808
8809dgux*)
8810 version_type=linux
8811 need_lib_prefix=no
8812 need_version=no
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 shlibpath_var=LD_LIBRARY_PATH
8816 ;;
8817
8818freebsd1*)
8819 dynamic_linker=no
8820 ;;
8821
8822freebsd* | dragonfly*)
8823 # DragonFly does not have aout. When/if they implement a new
8824 # versioning mechanism, adjust this.
8825 if test -x /usr/bin/objformat; then
8826 objformat=`/usr/bin/objformat`
8827 else
8828 case $host_os in
8829 freebsd[123]*) objformat=aout ;;
8830 *) objformat=elf ;;
8831 esac
8832 fi
8833 version_type=freebsd-$objformat
8834 case $version_type in
8835 freebsd-elf*)
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837 need_version=no
8838 need_lib_prefix=no
8839 ;;
8840 freebsd-*)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8842 need_version=yes
8843 ;;
8844 esac
8845 shlibpath_var=LD_LIBRARY_PATH
8846 case $host_os in
8847 freebsd2*)
8848 shlibpath_overrides_runpath=yes
8849 ;;
8850 freebsd3.[01]* | freebsdelf3.[01]*)
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8853 ;;
8854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8858 ;;
8859 *) # from 4.6 on, and DragonFly
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8862 ;;
8863 esac
8864 ;;
8865
8866gnu*)
8867 version_type=linux
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8874 ;;
8875
8876hpux9* | hpux10* | hpux11*)
8877 # Give a soname corresponding to the major version so that dld.sl refuses to
8878 # link against other versions.
8879 version_type=sunos
8880 need_lib_prefix=no
8881 need_version=no
8882 case $host_cpu in
8883 ia64*)
8884 shrext_cmds='.so'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.so"
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 if test "X$HPUX_IA64_MODE" = X32; then
8892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893 else
8894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895 fi
8896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897 ;;
8898 hppa*64*)
8899 shrext_cmds='.sl'
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 ;;
8909 *)
8910 shrext_cmds='.sl'
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=SHLIB_PATH
8913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 ;;
8917 esac
8918 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919 postinstall_cmds='chmod 555 $lib'
8920 ;;
8921
8922interix[3-9]*)
8923 version_type=linux
8924 need_lib_prefix=no
8925 need_version=no
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8932 ;;
8933
8934irix5* | irix6* | nonstopux*)
8935 case $host_os in
8936 nonstopux*) version_type=nonstopux ;;
8937 *)
8938 if test "$lt_cv_prog_gnu_ld" = yes; then
8939 version_type=linux
8940 else
8941 version_type=irix
8942 fi ;;
8943 esac
8944 need_lib_prefix=no
8945 need_version=no
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948 case $host_os in
8949 irix5* | nonstopux*)
8950 libsuff= shlibsuff=
8951 ;;
8952 *)
8953 case $LD in # libtool.m4 will add one of these switches to LD
8954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955 libsuff= shlibsuff= libmagic=32-bit;;
8956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957 libsuff=32 shlibsuff=N32 libmagic=N32;;
8958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960 *) libsuff= shlibsuff= libmagic=never-match;;
8961 esac
8962 ;;
8963 esac
8964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968 hardcode_into_libs=yes
8969 ;;
8970
8971# No shared lib support for Linux oldld, aout, or coff.
8972linux*oldld* | linux*aout* | linux*coff*)
8973 dynamic_linker=no
8974 ;;
8975
8976# This must be Linux ELF.
8977linux* | k*bsd*-gnu | kopensolaris*-gnu)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 # Some binutils ld are patched to set DT_RUNPATH
8987 save_LDFLAGS=$LDFLAGS
8988 save_libdir=$libdir
8989 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8990 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h. */
8993
8994int
8995main ()
8996{
8997
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002if ac_fn_c_try_link "$LINENO"; then :
9003 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9004 shlibpath_overrides_runpath=yes
9005fi
9006fi
9007rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 LDFLAGS=$save_LDFLAGS
9010 libdir=$save_libdir
9011
9012 # This implies no fast_install, which is unacceptable.
9013 # Some rework will be needed to allow for fast_install
9014 # before this can be enabled.
9015 hardcode_into_libs=yes
9016
9017 # Append ld.so.conf contents to the search path
9018 if test -f /etc/ld.so.conf; then
9019 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' ' '`
9020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9021 fi
9022
9023 # We used to test for /lib/ld.so.1 and disable shared libraries on
9024 # powerpc, because MkLinux only supported shared libraries with the
9025 # GNU dynamic linker. Since this was broken with cross compilers,
9026 # most powerpc-linux boxes support dynamic linking these days and
9027 # people can always --disable-shared, the test was removed, and we
9028 # assume the GNU/Linux dynamic linker is in use.
9029 dynamic_linker='GNU/Linux ld.so'
9030 ;;
9031
9032netbsdelf*-gnu)
9033 version_type=linux
9034 need_lib_prefix=no
9035 need_version=no
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=no
9040 hardcode_into_libs=yes
9041 dynamic_linker='NetBSD ld.elf_so'
9042 ;;
9043
9044netbsd*)
9045 version_type=sunos
9046 need_lib_prefix=no
9047 need_version=no
9048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9051 dynamic_linker='NetBSD (a.out) ld.so'
9052 else
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 dynamic_linker='NetBSD ld.elf_so'
9056 fi
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 hardcode_into_libs=yes
9060 ;;
9061
9062newsos6)
9063 version_type=linux
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 ;;
9068
9069*nto* | *qnx*)
9070 version_type=qnx
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=no
9077 hardcode_into_libs=yes
9078 dynamic_linker='ldqnx.so'
9079 ;;
9080
9081openbsd*)
9082 version_type=sunos
9083 sys_lib_dlsearch_path_spec="/usr/lib"
9084 need_lib_prefix=no
9085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9086 case $host_os in
9087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9088 *) need_version=no ;;
9089 esac
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9094 case $host_os in
9095 openbsd2.[89] | openbsd2.[89].*)
9096 shlibpath_overrides_runpath=no
9097 ;;
9098 *)
9099 shlibpath_overrides_runpath=yes
9100 ;;
9101 esac
9102 else
9103 shlibpath_overrides_runpath=yes
9104 fi
9105 ;;
9106
9107os2*)
9108 libname_spec='$name'
9109 shrext_cmds=".dll"
9110 need_lib_prefix=no
9111 library_names_spec='$libname${shared_ext} $libname.a'
9112 dynamic_linker='OS/2 ld.exe'
9113 shlibpath_var=LIBPATH
9114 ;;
9115
9116osf3* | osf4* | osf5*)
9117 version_type=osf
9118 need_lib_prefix=no
9119 need_version=no
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9125 ;;
9126
9127rdos*)
9128 dynamic_linker=no
9129 ;;
9130
9131solaris*)
9132 version_type=linux
9133 need_lib_prefix=no
9134 need_version=no
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 # ldd complains unless libraries are executable
9141 postinstall_cmds='chmod +x $lib'
9142 ;;
9143
9144sunos4*)
9145 version_type=sunos
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=yes
9150 if test "$with_gnu_ld" = yes; then
9151 need_lib_prefix=no
9152 fi
9153 need_version=yes
9154 ;;
9155
9156sysv4 | sysv4.3*)
9157 version_type=linux
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 case $host_vendor in
9162 sni)
9163 shlibpath_overrides_runpath=no
9164 need_lib_prefix=no
9165 runpath_var=LD_RUN_PATH
9166 ;;
9167 siemens)
9168 need_lib_prefix=no
9169 ;;
9170 motorola)
9171 need_lib_prefix=no
9172 need_version=no
9173 shlibpath_overrides_runpath=no
9174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9175 ;;
9176 esac
9177 ;;
9178
9179sysv4*MP*)
9180 if test -d /usr/nec ;then
9181 version_type=linux
9182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9183 soname_spec='$libname${shared_ext}.$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 fi
9186 ;;
9187
9188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9189 version_type=freebsd-elf
9190 need_lib_prefix=no
9191 need_version=no
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 shlibpath_overrides_runpath=yes
9196 hardcode_into_libs=yes
9197 if test "$with_gnu_ld" = yes; then
9198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9199 else
9200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9201 case $host_os in
9202 sco3.2v5*)
9203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9204 ;;
9205 esac
9206 fi
9207 sys_lib_dlsearch_path_spec='/usr/lib'
9208 ;;
9209
9210tpf*)
9211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=no
9218 hardcode_into_libs=yes
9219 ;;
9220
9221uts4*)
9222 version_type=linux
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 ;;
9227
9228*)
9229 dynamic_linker=no
9230 ;;
9231esac
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9233$as_echo "$dynamic_linker" >&6; }
9234test "$dynamic_linker" = no && can_build_shared=no
9235
9236variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9237if test "$GCC" = yes; then
9238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9239fi
9240
9241if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9242 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9243fi
9244if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9245 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9246fi
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
9333
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9335$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9336hardcode_action=
9337if test -n "$hardcode_libdir_flag_spec" ||
9338 test -n "$runpath_var" ||
9339 test "X$hardcode_automatic" = "Xyes" ; then
9340
9341 # We can hardcode non-existent directories.
9342 if test "$hardcode_direct" != no &&
9343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9344 # have to relink, otherwise we might link with an installed library
9345 # when we should be linking with a yet-to-be-installed one
9346 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9347 test "$hardcode_minus_L" != no; then
9348 # Linking always hardcodes the temporary library directory.
9349 hardcode_action=relink
9350 else
9351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9352 hardcode_action=immediate
9353 fi
9354else
9355 # We cannot hardcode anything, or else we can only hardcode existing
9356 # directories.
9357 hardcode_action=unsupported
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9360$as_echo "$hardcode_action" >&6; }
9361
9362if test "$hardcode_action" = relink ||
9363 test "$inherit_rpath" = yes; then
9364 # Fast installation is not supported
9365 enable_fast_install=no
9366elif test "$shlibpath_overrides_runpath" = yes ||
9367 test "$enable_shared" = no; then
9368 # Fast installation is not necessary
9369 enable_fast_install=needless
9370fi
9371
9372
9373
9374
9375
9376
9377 if test "x$enable_dlopen" != xyes; then
9378 enable_dlopen=unknown
9379 enable_dlopen_self=unknown
9380 enable_dlopen_self_static=unknown
9381else
9382 lt_cv_dlopen=no
9383 lt_cv_dlopen_libs=
9384
9385 case $host_os in
9386 beos*)
9387 lt_cv_dlopen="load_add_on"
9388 lt_cv_dlopen_libs=
9389 lt_cv_dlopen_self=yes
9390 ;;
9391
9392 mingw* | pw32* | cegcc*)
9393 lt_cv_dlopen="LoadLibrary"
9394 lt_cv_dlopen_libs=
9395 ;;
9396
9397 cygwin*)
9398 lt_cv_dlopen="dlopen"
9399 lt_cv_dlopen_libs=
9400 ;;
9401
9402 darwin*)
9403 # if libdl is installed we need to link against it
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9405$as_echo_n "checking for dlopen in -ldl... " >&6; }
9406if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408else
9409 ac_check_lib_save_LIBS=$LIBS
9410LIBS="-ldl $LIBS"
9411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h. */
9413
9414/* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9417#ifdef __cplusplus
9418extern "C"
9419#endif
9420char dlopen ();
9421int
9422main ()
9423{
9424return dlopen ();
9425 ;
9426 return 0;
9427}
9428_ACEOF
9429if ac_fn_c_try_link "$LINENO"; then :
9430 ac_cv_lib_dl_dlopen=yes
9431else
9432 ac_cv_lib_dl_dlopen=no
9433fi
9434rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436LIBS=$ac_check_lib_save_LIBS
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9439$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9440if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9442else
9443
9444 lt_cv_dlopen="dyld"
9445 lt_cv_dlopen_libs=
9446 lt_cv_dlopen_self=yes
9447
9448fi
9449
9450 ;;
9451
9452 *)
9453 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9454if test "x$ac_cv_func_shl_load" = x""yes; then :
9455 lt_cv_dlopen="shl_load"
9456else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9458$as_echo_n "checking for shl_load in -ldld... " >&6; }
9459if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9461else
9462 ac_check_lib_save_LIBS=$LIBS
9463LIBS="-ldld $LIBS"
9464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h. */
9466
9467/* Override any GCC internal prototype to avoid an error.
9468 Use char because int might match the return type of a GCC
9469 builtin and then its argument prototype would still apply. */
9470#ifdef __cplusplus
9471extern "C"
9472#endif
9473char shl_load ();
9474int
9475main ()
9476{
9477return shl_load ();
9478 ;
9479 return 0;
9480}
9481_ACEOF
9482if ac_fn_c_try_link "$LINENO"; then :
9483 ac_cv_lib_dld_shl_load=yes
9484else
9485 ac_cv_lib_dld_shl_load=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489LIBS=$ac_check_lib_save_LIBS
9490fi
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9492$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9493if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9494 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9495else
9496 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9497if test "x$ac_cv_func_dlopen" = x""yes; then :
9498 lt_cv_dlopen="dlopen"
9499else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9501$as_echo_n "checking for dlopen in -ldl... " >&6; }
9502if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504else
9505 ac_check_lib_save_LIBS=$LIBS
9506LIBS="-ldl $LIBS"
9507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h. */
9509
9510/* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516char dlopen ();
9517int
9518main ()
9519{
9520return dlopen ();
9521 ;
9522 return 0;
9523}
9524_ACEOF
9525if ac_fn_c_try_link "$LINENO"; then :
9526 ac_cv_lib_dl_dlopen=yes
9527else
9528 ac_cv_lib_dl_dlopen=no
9529fi
9530rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532LIBS=$ac_check_lib_save_LIBS
9533fi
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9535$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9536if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9538else
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9540$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9541if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9543else
9544 ac_check_lib_save_LIBS=$LIBS
9545LIBS="-lsvld $LIBS"
9546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547/* end confdefs.h. */
9548
9549/* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
9552#ifdef __cplusplus
9553extern "C"
9554#endif
9555char dlopen ();
9556int
9557main ()
9558{
9559return dlopen ();
9560 ;
9561 return 0;
9562}
9563_ACEOF
9564if ac_fn_c_try_link "$LINENO"; then :
9565 ac_cv_lib_svld_dlopen=yes
9566else
9567 ac_cv_lib_svld_dlopen=no
9568fi
9569rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571LIBS=$ac_check_lib_save_LIBS
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9574$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9575if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9577else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9579$as_echo_n "checking for dld_link in -ldld... " >&6; }
9580if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582else
9583 ac_check_lib_save_LIBS=$LIBS
9584LIBS="-ldld $LIBS"
9585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587
9588/* Override any GCC internal prototype to avoid an error.
9589 Use char because int might match the return type of a GCC
9590 builtin and then its argument prototype would still apply. */
9591#ifdef __cplusplus
9592extern "C"
9593#endif
9594char dld_link ();
9595int
9596main ()
9597{
9598return dld_link ();
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604 ac_cv_lib_dld_dld_link=yes
9605else
9606 ac_cv_lib_dld_dld_link=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610LIBS=$ac_check_lib_save_LIBS
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9613$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9614if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9616fi
9617
9618
9619fi
9620
9621
9622fi
9623
9624
9625fi
9626
9627
9628fi
9629
9630
9631fi
9632
9633 ;;
9634 esac
9635
9636 if test "x$lt_cv_dlopen" != xno; then
9637 enable_dlopen=yes
9638 else
9639 enable_dlopen=no
9640 fi
9641
9642 case $lt_cv_dlopen in
9643 dlopen)
9644 save_CPPFLAGS="$CPPFLAGS"
9645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9646
9647 save_LDFLAGS="$LDFLAGS"
9648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9649
9650 save_LIBS="$LIBS"
9651 LIBS="$lt_cv_dlopen_libs $LIBS"
9652
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9654$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9655if test "${lt_cv_dlopen_self+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9657else
9658 if test "$cross_compiling" = yes; then :
9659 lt_cv_dlopen_self=cross
9660else
9661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662 lt_status=$lt_dlunknown
9663 cat > conftest.$ac_ext <<_LT_EOF
b65019fe 9664#line 9664 "configure"
9c60689e
DWT
9665#include "confdefs.h"
9666
9667#if HAVE_DLFCN_H
9668#include <dlfcn.h>
9669#endif
9670
9671#include <stdio.h>
9672
9673#ifdef RTLD_GLOBAL
9674# define LT_DLGLOBAL RTLD_GLOBAL
9675#else
9676# ifdef DL_GLOBAL
9677# define LT_DLGLOBAL DL_GLOBAL
9678# else
9679# define LT_DLGLOBAL 0
9680# endif
9681#endif
9682
9683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684 find out it does not work in some platform. */
9685#ifndef LT_DLLAZY_OR_NOW
9686# ifdef RTLD_LAZY
9687# define LT_DLLAZY_OR_NOW RTLD_LAZY
9688# else
9689# ifdef DL_LAZY
9690# define LT_DLLAZY_OR_NOW DL_LAZY
9691# else
9692# ifdef RTLD_NOW
9693# define LT_DLLAZY_OR_NOW RTLD_NOW
9694# else
9695# ifdef DL_NOW
9696# define LT_DLLAZY_OR_NOW DL_NOW
9697# else
9698# define LT_DLLAZY_OR_NOW 0
9699# endif
9700# endif
9701# endif
9702# endif
9703#endif
9704
9705void fnord() { int i=42;}
9706int main ()
9707{
9708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9709 int status = $lt_dlunknown;
9710
9711 if (self)
9712 {
9713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9715 /* dlclose (self); */
9716 }
9717 else
9718 puts (dlerror ());
9719
9720 return status;
9721}
9722_LT_EOF
9723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9724 (eval $ac_link) 2>&5
9725 ac_status=$?
9726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9727 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9728 (./conftest; exit; ) >&5 2>/dev/null
9729 lt_status=$?
9730 case x$lt_status in
9731 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9732 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9733 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9734 esac
9735 else :
9736 # compilation failed
9737 lt_cv_dlopen_self=no
9738 fi
9739fi
9740rm -fr conftest*
9741
9742
9743fi
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9745$as_echo "$lt_cv_dlopen_self" >&6; }
9746
9747 if test "x$lt_cv_dlopen_self" = xyes; then
9748 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9750$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9751if test "${lt_cv_dlopen_self_static+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753else
9754 if test "$cross_compiling" = yes; then :
9755 lt_cv_dlopen_self_static=cross
9756else
9757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9758 lt_status=$lt_dlunknown
9759 cat > conftest.$ac_ext <<_LT_EOF
b65019fe 9760#line 9760 "configure"
9c60689e
DWT
9761#include "confdefs.h"
9762
9763#if HAVE_DLFCN_H
9764#include <dlfcn.h>
9765#endif
9766
9767#include <stdio.h>
9768
9769#ifdef RTLD_GLOBAL
9770# define LT_DLGLOBAL RTLD_GLOBAL
9771#else
9772# ifdef DL_GLOBAL
9773# define LT_DLGLOBAL DL_GLOBAL
9774# else
9775# define LT_DLGLOBAL 0
9776# endif
9777#endif
9778
9779/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9780 find out it does not work in some platform. */
9781#ifndef LT_DLLAZY_OR_NOW
9782# ifdef RTLD_LAZY
9783# define LT_DLLAZY_OR_NOW RTLD_LAZY
9784# else
9785# ifdef DL_LAZY
9786# define LT_DLLAZY_OR_NOW DL_LAZY
9787# else
9788# ifdef RTLD_NOW
9789# define LT_DLLAZY_OR_NOW RTLD_NOW
9790# else
9791# ifdef DL_NOW
9792# define LT_DLLAZY_OR_NOW DL_NOW
9793# else
9794# define LT_DLLAZY_OR_NOW 0
9795# endif
9796# endif
9797# endif
9798# endif
9799#endif
9800
9801void fnord() { int i=42;}
9802int main ()
9803{
9804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9805 int status = $lt_dlunknown;
9806
9807 if (self)
9808 {
9809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9811 /* dlclose (self); */
9812 }
9813 else
9814 puts (dlerror ());
9815
9816 return status;
9817}
9818_LT_EOF
9819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9820 (eval $ac_link) 2>&5
9821 ac_status=$?
9822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9824 (./conftest; exit; ) >&5 2>/dev/null
9825 lt_status=$?
9826 case x$lt_status in
9827 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9828 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9829 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9830 esac
9831 else :
9832 # compilation failed
9833 lt_cv_dlopen_self_static=no
9834 fi
9835fi
9836rm -fr conftest*
9837
9838
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9841$as_echo "$lt_cv_dlopen_self_static" >&6; }
9842 fi
9843
9844 CPPFLAGS="$save_CPPFLAGS"
9845 LDFLAGS="$save_LDFLAGS"
9846 LIBS="$save_LIBS"
9847 ;;
9848 esac
9849
9850 case $lt_cv_dlopen_self in
9851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9852 *) enable_dlopen_self=unknown ;;
9853 esac
9854
9855 case $lt_cv_dlopen_self_static in
9856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9857 *) enable_dlopen_self_static=unknown ;;
9858 esac
9859fi
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877striplib=
9878old_striplib=
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9880$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9881if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9882 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9883 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9885$as_echo "yes" >&6; }
9886else
9887# FIXME - insert some real tests, host_os isn't really good enough
9888 case $host_os in
9889 darwin*)
9890 if test -n "$STRIP" ; then
9891 striplib="$STRIP -x"
9892 old_striplib="$STRIP -S"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9894$as_echo "yes" >&6; }
9895 else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898 fi
9899 ;;
9900 *)
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
9903 ;;
9904 esac
9905fi
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918 # Report which library types will actually be built
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9920$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9922$as_echo "$can_build_shared" >&6; }
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9925$as_echo_n "checking whether to build shared libraries... " >&6; }
9926 test "$can_build_shared" = "no" && enable_shared=no
9927
9928 # On AIX, shared libraries and static libraries use the same namespace, and
9929 # are all built from PIC.
9930 case $host_os in
9931 aix3*)
9932 test "$enable_shared" = yes && enable_static=no
9933 if test -n "$RANLIB"; then
9934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9935 postinstall_cmds='$RANLIB $lib'
9936 fi
9937 ;;
9938
9939 aix[4-9]*)
9940 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9941 test "$enable_shared" = yes && enable_static=no
9942 fi
9943 ;;
9944 esac
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9946$as_echo "$enable_shared" >&6; }
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9949$as_echo_n "checking whether to build static libraries... " >&6; }
9950 # Make sure either enable_shared or enable_static is yes.
9951 test "$enable_shared" = yes || enable_static=yes
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9953$as_echo "$enable_static" >&6; }
9954
9955
9956
9957
9958fi
9959ac_ext=c
9960ac_cpp='$CPP $CPPFLAGS'
9961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963ac_compiler_gnu=$ac_cv_c_compiler_gnu
9964
9965CC="$lt_save_CC"
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979 ac_config_commands="$ac_config_commands libtool"
9980
9981
9982
9983
9984# Only expand once:
9985
9986
3fd51f51
DWT
9987
9988
9989if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9990 if test -n "$ac_tool_prefix"; then
9991 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9992set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994$as_echo_n "checking for $ac_word... " >&6; }
9995if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9997else
9998 case $PKG_CONFIG in
9999 [\\/]* | ?:[\\/]*)
10000 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10001 ;;
10002 *)
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015 done
10016IFS=$as_save_IFS
10017
10018 ;;
10019esac
10020fi
10021PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10022if test -n "$PKG_CONFIG"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10024$as_echo "$PKG_CONFIG" >&6; }
10025else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027$as_echo "no" >&6; }
10028fi
10029
10030
10031fi
10032if test -z "$ac_cv_path_PKG_CONFIG"; then
10033 ac_pt_PKG_CONFIG=$PKG_CONFIG
10034 # Extract the first word of "pkg-config", so it can be a program name with args.
10035set dummy pkg-config; ac_word=$2
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037$as_echo_n "checking for $ac_word... " >&6; }
10038if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040else
10041 case $ac_pt_PKG_CONFIG in
10042 [\\/]* | ?:[\\/]*)
10043 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10044 ;;
10045 *)
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $PATH
10048do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057done
10058 done
10059IFS=$as_save_IFS
10060
10061 ;;
10062esac
10063fi
10064ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10065if test -n "$ac_pt_PKG_CONFIG"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10067$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10068else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070$as_echo "no" >&6; }
10071fi
10072
10073 if test "x$ac_pt_PKG_CONFIG" = x; then
10074 PKG_CONFIG=""
10075 else
10076 case $cross_compiling:$ac_tool_warned in
10077yes:)
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10080ac_tool_warned=yes ;;
10081esac
10082 PKG_CONFIG=$ac_pt_PKG_CONFIG
10083 fi
10084else
10085 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10086fi
10087
10088fi
10089if test -n "$PKG_CONFIG"; then
10090 _pkg_min_version=0.22
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10092$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10093 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10095$as_echo "yes" >&6; }
10096 else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098$as_echo "no" >&6; }
10099 PKG_CONFIG=""
10100 fi
10101
632b71ea
DWT
10102fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10104$as_echo_n "checking for GNU make... " >&6; }
10105if test "${_cv_gnu_make_command+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10107else
10108 _cv_gnu_make_command='' ;
10109 for a in "$MAKE" make gmake gnumake ; do
10110 if test -z "$a" ; then continue ; fi ;
10111 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10112 _cv_gnu_make_command=$a ;
10113 break;
10114 fi
10115 done ;
10116
10117fi
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10119$as_echo "$_cv_gnu_make_command" >&6; } ;
10120 if test "x$_cv_gnu_make_command" != "x" ; then
10121 ifGNUmake='' ;
10122 else
10123 ifGNUmake='#' ;
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10125$as_echo "\"Not found\"" >&6; };
10126 fi
10127
10128
790e5246
DWT
10129GMAKE=$_cv_gnu_make_command
10130
10131if test "x$GMAKE" = x; then :
632b71ea 10132 as_fn_error "You need GNU make" "$LINENO" 5
3fd51f51 10133fi
e9c9a47c
DWT
10134for ac_prog in bash
10135do
10136 # Extract the first word of "$ac_prog", so it can be a program name with args.
10137set dummy $ac_prog; ac_word=$2
9c60689e
DWT
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 10140if test "${ac_cv_path__BASH+set}" = set; then :
9c60689e
DWT
10141 $as_echo_n "(cached) " >&6
10142else
e9c9a47c
DWT
10143 case $_BASH in
10144 [\\/]* | ?:[\\/]*)
10145 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10146 ;;
10147 *)
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10149for as_dir in $PATH
10150do
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10155 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 break 2
10158 fi
10159done
10160 done
10161IFS=$as_save_IFS
10162
e9c9a47c
DWT
10163 ;;
10164esac
9c60689e 10165fi
e9c9a47c
DWT
10166_BASH=$ac_cv_path__BASH
10167if test -n "$_BASH"; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10169$as_echo "$_BASH" >&6; }
9c60689e
DWT
10170else
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172$as_echo "no" >&6; }
10173fi
10174
10175
e9c9a47c
DWT
10176 test -n "$_BASH" && break
10177done
10178
10179if test "x$_BASH" = x; then :
10180 as_fn_error "You need GNU bash" "$LINENO" 5
9c60689e 10181fi
e9c9a47c 10182for ac_prog in time
9c60689e
DWT
10183do
10184 # Extract the first word of "$ac_prog", so it can be a program name with args.
10185set dummy $ac_prog; ac_word=$2
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 10188if test "${ac_cv_path_TIME+set}" = set; then :
9c60689e
DWT
10189 $as_echo_n "(cached) " >&6
10190else
e9c9a47c
DWT
10191 case $TIME in
10192 [\\/]* | ?:[\\/]*)
10193 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10194 ;;
10195 *)
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 10203 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
9c60689e
DWT
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208 done
10209IFS=$as_save_IFS
10210
e9c9a47c
DWT
10211 ;;
10212esac
9c60689e 10213fi
e9c9a47c
DWT
10214TIME=$ac_cv_path_TIME
10215if test -n "$TIME"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10217$as_echo "$TIME" >&6; }
9c60689e
DWT
10218else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
10221fi
10222
10223
e9c9a47c 10224 test -n "$TIME" && break
9c60689e
DWT
10225done
10226
e9c9a47c
DWT
10227
10228
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
10231$as_echo_n "checking for bison >= 2.3... " >&6; }
10232 if test -z "$BISON"; then
10233 ac_path_BISON_found=false
10234 # Loop through the user's path and test for each of PROGNAME-LIST
10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_prog in bison; do
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
10243 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
10244as_awk_strverscmp='
10245 # Use only awk features that work with 7th edition Unix awk (1978).
10246 # My, what an old awk you have, Mr. Solaris!
10247 END {
10248 while (length(v1) && length(v2)) {
10249 # Set d1 to be the next thing to compare from v1, and likewise for d2.
10250 # Normally this is a single character, but if v1 and v2 contain digits,
10251 # compare them as integers and fractions as strverscmp does.
10252 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
10253 # Split v1 and v2 into their leading digit string components d1 and d2,
10254 # and advance v1 and v2 past the leading digit strings.
10255 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
10256 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
10257 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
10258 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
10259 if (d1 ~ /^0/) {
10260 if (d2 ~ /^0/) {
10261 # Compare two fractions.
10262 while (d1 ~ /^0/ && d2 ~ /^0/) {
10263 d1 = substr(d1, 2); len1--
10264 d2 = substr(d2, 2); len2--
10265 }
10266 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
10267 # The two components differ in length, and the common prefix
10268 # contains only leading zeros. Consider the longer to be less.
10269 d1 = -len1
10270 d2 = -len2
10271 } else {
10272 # Otherwise, compare as strings.
10273 d1 = "x" d1
10274 d2 = "x" d2
10275 }
10276 } else {
10277 # A fraction is less than an integer.
10278 exit 1
10279 }
10280 } else {
10281 if (d2 ~ /^0/) {
10282 # An integer is greater than a fraction.
10283 exit 2
10284 } else {
10285 # Compare two integers.
10286 d1 += 0
10287 d2 += 0
10288 }
10289 }
10290 } else {
10291 # The normal case, without worrying about digits.
10292 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
10293 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
10294 }
10295 if (d1 < d2) exit 1
10296 if (d1 > d2) exit 2
10297 }
10298 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
10299 # which mishandles some comparisons of empty strings to integers.
10300 if (length(v2)) exit 1
10301 if (length(v1)) exit 2
10302 }
10303'
10304as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10305as_arg_v2=2.3
10306awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10307case $? in #(
10308 1) :
10309 ;; #(
10310 0) :
10311 ac_cv_path_BISON=$ac_path_BISON
10312 ;; #(
10313 2) :
10314 ac_cv_path_BISON=$ac_path_BISON
10315 ;; #(
10316 *) :
10317 ;;
9c60689e 10318esac
e9c9a47c
DWT
10319
10320 $ac_path_BISON_found && break 3
10321 done
10322 done
10323 done
10324IFS=$as_save_IFS
10325 if test -z "$ac_cv_path_BISON"; then
b5bd4353
DWT
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327$as_echo "no" >&6; }
e9c9a47c 10328 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
9c60689e 10329
9c60689e 10330 fi
e9c9a47c
DWT
10331else
10332 ac_cv_path_BISON=$BISON
9c60689e 10333fi
9c60689e 10334
e9c9a47c 10335 BISON=$ac_cv_path_BISON
9c60689e 10336
e9c9a47c
DWT
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10338$as_echo "$BISON" >&6; }
9c60689e 10339
9c60689e 10340
9c60689e 10341
e9c9a47c
DWT
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
10343$as_echo_n "checking for flex >= 2.5.33... " >&6; }
10344 if test -z "$FLEX"; then
10345 ac_path_FLEX_found=false
10346 # Loop through the user's path and test for each of PROGNAME-LIST
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10348for as_dir in $PATH
10349do
10350 IFS=$as_save_IFS
10351 test -z "$as_dir" && as_dir=.
e9c9a47c 10352 for ac_prog in flex; do
9c60689e 10353 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
10354 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
10355 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
10356as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10357as_arg_v2=2.5.33
10358awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10359case $? in #(
10360 1) :
10361 ;; #(
10362 0) :
10363 ac_cv_path_FLEX=$ac_path_FLEX
10364 ;; #(
10365 2) :
10366 ac_cv_path_FLEX=$ac_path_FLEX
10367 ;; #(
10368 *) :
10369 ;;
10370esac
10371
10372 $ac_path_FLEX_found && break 3
10373 done
10374 done
9c60689e
DWT
10375 done
10376IFS=$as_save_IFS
e9c9a47c 10377 if test -z "$ac_cv_path_FLEX"; then
b5bd4353
DWT
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379$as_echo "no" >&6; }
e9c9a47c 10380 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
9c60689e 10381
e9c9a47c 10382 fi
9c60689e 10383else
e9c9a47c 10384 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
10385fi
10386
e9c9a47c 10387 FLEX=$ac_cv_path_FLEX
9c60689e 10388
e9c9a47c
DWT
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10390$as_echo "$FLEX" >&6; }
10391
10392
10393
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
10395$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
10396 if test -z "$GPERF"; then
10397 ac_path_GPERF_found=false
10398 # Loop through the user's path and test for each of PROGNAME-LIST
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
10400for as_dir in $PATH
10401do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
e9c9a47c 10404 for ac_prog in gperf; do
9c60689e 10405 for ac_exec_ext in '' $ac_executable_extensions; do
e9c9a47c
DWT
10406 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
10407 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
10408as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10409as_arg_v2=3.0.3
10410awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10411case $? in #(
10412 1) :
10413 ;; #(
10414 0) :
10415 ac_cv_path_GPERF=$ac_path_GPERF
10416 ;; #(
10417 2) :
10418 ac_cv_path_GPERF=$ac_path_GPERF
10419 ;; #(
10420 *) :
10421 ;;
10422esac
10423
10424 $ac_path_GPERF_found && break 3
10425 done
10426 done
9c60689e
DWT
10427 done
10428IFS=$as_save_IFS
e9c9a47c 10429 if test -z "$ac_cv_path_GPERF"; then
b5bd4353
DWT
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
e9c9a47c 10432 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
9c60689e 10433
e9c9a47c 10434 fi
9c60689e 10435else
e9c9a47c 10436 ac_cv_path_GPERF=$GPERF
9c60689e
DWT
10437fi
10438
e9c9a47c 10439 GPERF=$ac_cv_path_GPERF
9c60689e 10440
e9c9a47c
DWT
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10442$as_echo "$GPERF" >&6; }
3fd51f51 10443
e9c9a47c
DWT
10444# Find a good install program. We prefer a C program (faster),
10445# so one script is as good as another. But avoid the broken or
10446# incompatible versions:
10447# SysV /etc/install, /usr/sbin/install
10448# SunOS /usr/etc/install
10449# IRIX /sbin/install
10450# AIX /bin/install
10451# AmigaOS /C/install, which installs bootblocks on floppy discs
10452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10455# OS/2's system install, which has a completely different semantic
10456# ./install, which can be erroneously created by make from ./install.sh.
10457# Reject install programs that cannot install multiple files.
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10459$as_echo_n "checking for a BSD-compatible install... " >&6; }
10460if test -z "$INSTALL"; then
10461if test "${ac_cv_path_install+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463else
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 # Account for people who put trailing slashes in PATH elements.
10470case $as_dir/ in #((
10471 ./ | .// | /[cC]/* | \
10472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10474 /usr/ucb/* ) ;;
10475 *)
10476 # OSF1 and SCO ODT 3.0 have their own names for install.
10477 # Don't use installbsd from OSF since it installs stuff as root
10478 # by default.
10479 for ac_prog in ginstall scoinst install; do
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10482 if test $ac_prog = install &&
10483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10484 # AIX install. It has an incompatible calling convention.
10485 :
10486 elif test $ac_prog = install &&
10487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10488 # program-specific install script used by HP pwplus--don't use.
10489 :
10490 else
10491 rm -rf conftest.one conftest.two conftest.dir
10492 echo one > conftest.one
10493 echo two > conftest.two
10494 mkdir conftest.dir
10495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10496 test -s conftest.one && test -s conftest.two &&
10497 test -s conftest.dir/conftest.one &&
10498 test -s conftest.dir/conftest.two
10499 then
10500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10501 break 3
10502 fi
10503 fi
10504 fi
10505 done
10506 done
10507 ;;
10508esac
10509
10510 done
10511IFS=$as_save_IFS
10512
10513rm -rf conftest.one conftest.two conftest.dir
10514
10515fi
10516 if test "${ac_cv_path_install+set}" = set; then
10517 INSTALL=$ac_cv_path_install
10518 else
10519 # As a last resort, use the slow shell script. Don't cache a
10520 # value for INSTALL within a source directory, because that will
10521 # break other packages using the cache if that directory is
10522 # removed, or if the value is a relative name.
10523 INSTALL=$ac_install_sh
10524 fi
10525fi
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10527$as_echo "$INSTALL" >&6; }
10528
10529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10530# It thinks the first close brace ends the variable substitution.
10531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10532
10533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10534
10535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10536
b5bd4353
DWT
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
10538$as_echo_n "checking for GNU tar >=1.19... " >&6; }
e9c9a47c
DWT
10539if test -z "$GNUTAR"; then
10540 ac_path_GNUTAR_found=false
10541 # Loop through the user's path and test for each of PROGNAME-LIST
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543for as_dir in $PATH
10544do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_prog in tar gtar gnutar; do
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
10550 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
10551
10552 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
10553
b5bd4353
DWT
10554 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
10555as_arg_v2=1.19
10556awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10557case $? in #(
10558 1) :
10559 ;; #(
10560 0) :
10561
10562 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10563 ;; #(
10564 2) :
10565
10566 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10567 ;; #(
10568 *) :
10569 ;;
10570esac
e9c9a47c
DWT
10571
10572fi
10573
10574 $ac_path_GNUTAR_found && break 3
10575 done
10576 done
10577 done
10578IFS=$as_save_IFS
10579 if test -z "$ac_cv_path_GNUTAR"; then
10580 :
10581 fi
10582else
10583 ac_cv_path_GNUTAR=$GNUTAR
10584fi
10585
10586if test "x$ac_cv_path_GNUTAR" != x; then :
10587
10588 GNUTAR=$ac_cv_path_GNUTAR
10589
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
10591$as_echo "$GNUTAR" >&6; }
10592
10593else
10594
10595 GNUTAR=:
10596
b5bd4353
DWT
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598$as_echo "no" >&6; }
e9c9a47c
DWT
10599
10600fi
b65019fe
DWT
10601for ac_prog in svn
10602do
10603 # Extract the first word of "$ac_prog", so it can be a program name with args.
10604set dummy $ac_prog; ac_word=$2
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606$as_echo_n "checking for $ac_word... " >&6; }
10607if test "${ac_cv_prog_SVN+set}" = set; then :
10608 $as_echo_n "(cached) " >&6
10609else
10610 if test -n "$SVN"; then
10611 ac_cv_prog_SVN="$SVN" # Let the user override the test.
10612else
10613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614for as_dir in $PATH
10615do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_prog_SVN="$ac_prog"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10623 fi
10624done
10625 done
10626IFS=$as_save_IFS
10627
10628fi
10629fi
10630SVN=$ac_cv_prog_SVN
10631if test -n "$SVN"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
10633$as_echo "$SVN" >&6; }
10634else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636$as_echo "no" >&6; }
10637fi
10638
10639
10640 test -n "$SVN" && break
10641done
10642
10643for ac_prog in svnversion
10644do
10645 # Extract the first word of "$ac_prog", so it can be a program name with args.
10646set dummy $ac_prog; ac_word=$2
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648$as_echo_n "checking for $ac_word... " >&6; }
10649if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10651else
10652 if test -n "$SVNVERSION"; then
10653 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
10654else
10655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656for as_dir in $PATH
10657do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10662 ac_cv_prog_SVNVERSION="$ac_prog"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10665 fi
10666done
10667 done
10668IFS=$as_save_IFS
10669
10670fi
10671fi
10672SVNVERSION=$ac_cv_prog_SVNVERSION
10673if test -n "$SVNVERSION"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
10675$as_echo "$SVNVERSION" >&6; }
10676else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678$as_echo "no" >&6; }
10679fi
10680
10681
10682 test -n "$SVNVERSION" && break
10683done
10684
e9c9a47c
DWT
10685ac_ext=cpp
10686ac_cpp='$CXXCPP $CPPFLAGS'
10687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10690if test -z "$CXX"; then
10691 if test -n "$CCC"; then
10692 CXX=$CCC
10693 else
10694 if test -n "$ac_tool_prefix"; then
10695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10696 do
10697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if test "${ac_cv_prog_CXX+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10703else
10704 if test -n "$CXX"; then
10705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719 done
10720IFS=$as_save_IFS
10721
10722fi
10723fi
10724CXX=$ac_cv_prog_CXX
10725if test -n "$CXX"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10727$as_echo "$CXX" >&6; }
10728else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
10731fi
10732
10733
10734 test -n "$CXX" && break
10735 done
10736fi
10737if test -z "$CXX"; then
10738 ac_ct_CXX=$CXX
10739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10740do
10741 # Extract the first word of "$ac_prog", so it can be a program name with args.
10742set dummy $ac_prog; ac_word=$2
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
10745if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10747else
10748 if test -n "$ac_ct_CXX"; then
10749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10750else
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_prog_ac_ct_CXX="$ac_prog"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763 done
10764IFS=$as_save_IFS
10765
10766fi
10767fi
10768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10769if test -n "$ac_ct_CXX"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10771$as_echo "$ac_ct_CXX" >&6; }
10772else
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774$as_echo "no" >&6; }
10775fi
10776
10777
10778 test -n "$ac_ct_CXX" && break
10779done
10780
10781 if test "x$ac_ct_CXX" = x; then
10782 CXX="g++"
10783 else
10784 case $cross_compiling:$ac_tool_warned in
10785yes:)
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10788ac_tool_warned=yes ;;
10789esac
10790 CXX=$ac_ct_CXX
10791 fi
10792fi
10793
10794 fi
10795fi
10796# Provide some information about the compiler.
10797$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10798set X $ac_compile
10799ac_compiler=$2
10800for ac_option in --version -v -V -qversion; do
10801 { { ac_try="$ac_compiler $ac_option >&5"
10802case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805esac
47aaa820
DWT
10806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10807$as_echo "$ac_try_echo"; } >&5
10808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10809 ac_status=$?
10810 if test -s conftest.err; then
10811 sed '10a\
10812... rest of stderr output deleted ...
10813 10q' conftest.err >conftest.er1
10814 cat conftest.er1 >&5
3530897b 10815 fi
47aaa820
DWT
10816 rm -f conftest.er1 conftest.err
10817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10818 test $ac_status = 0; }
3530897b 10819done
3530897b 10820
47aaa820
DWT
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10822$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10823if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825else
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
10828
10829int
10830main ()
10831{
10832#ifndef __GNUC__
10833 choke me
10834#endif
10835
10836 ;
10837 return 0;
10838}
10839_ACEOF
10840if ac_fn_cxx_try_compile "$LINENO"; then :
10841 ac_compiler_gnu=yes
10842else
10843 ac_compiler_gnu=no
3530897b 10844fi
47aaa820
DWT
10845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10847
3530897b 10848fi
47aaa820
DWT
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10850$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10851if test $ac_compiler_gnu = yes; then
10852 GXX=yes
3530897b 10853else
47aaa820 10854 GXX=
3530897b 10855fi
47aaa820
DWT
10856ac_test_CXXFLAGS=${CXXFLAGS+set}
10857ac_save_CXXFLAGS=$CXXFLAGS
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10859$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10860if test "${ac_cv_prog_cxx_g+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10864 ac_cxx_werror_flag=yes
10865 ac_cv_prog_cxx_g=no
10866 CXXFLAGS="-g"
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868/* end confdefs.h. */
3530897b 10869
47aaa820
DWT
10870int
10871main ()
10872{
3530897b 10873
47aaa820
DWT
10874 ;
10875 return 0;
10876}
10877_ACEOF
10878if ac_fn_cxx_try_compile "$LINENO"; then :
10879 ac_cv_prog_cxx_g=yes
10880else
10881 CXXFLAGS=""
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883/* end confdefs.h. */
9c60689e 10884
47aaa820
DWT
10885int
10886main ()
10887{
9c60689e 10888
47aaa820
DWT
10889 ;
10890 return 0;
10891}
10892_ACEOF
10893if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e 10894
47aaa820
DWT
10895else
10896 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10897 CXXFLAGS="-g"
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h. */
9c60689e 10900
47aaa820
DWT
10901int
10902main ()
10903{
9c60689e 10904
47aaa820
DWT
10905 ;
10906 return 0;
10907}
10908_ACEOF
10909if ac_fn_cxx_try_compile "$LINENO"; then :
10910 ac_cv_prog_cxx_g=yes
10911fi
10912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913fi
10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915fi
10916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10918fi
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10920$as_echo "$ac_cv_prog_cxx_g" >&6; }
10921if test "$ac_test_CXXFLAGS" = set; then
10922 CXXFLAGS=$ac_save_CXXFLAGS
10923elif test $ac_cv_prog_cxx_g = yes; then
10924 if test "$GXX" = yes; then
10925 CXXFLAGS="-g -O2"
10926 else
10927 CXXFLAGS="-g"
10928 fi
10929else
10930 if test "$GXX" = yes; then
10931 CXXFLAGS="-O2"
10932 else
10933 CXXFLAGS=
10934 fi
10935fi
10936ac_ext=c
10937ac_cpp='$CPP $CPPFLAGS'
10938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10941
e9c9a47c
DWT
10942
10943ac_ext=cpp
47aaa820
DWT
10944ac_cpp='$CXXCPP $CPPFLAGS'
10945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
e9c9a47c
DWT
10948if test -z "$CXX"; then
10949 if test -n "$CCC"; then
10950 CXX=$CCC
10951 else
10952 if test -n "$ac_tool_prefix"; then
10953 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10954 do
10955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958$as_echo_n "checking for $ac_word... " >&6; }
10959if test "${ac_cv_prog_CXX+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961else
10962 if test -n "$CXX"; then
10963 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10964else
10965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966for as_dir in $PATH
47aaa820 10967do
e9c9a47c
DWT
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10975 fi
10976done
10977 done
10978IFS=$as_save_IFS
9c60689e 10979
9c60689e 10980fi
47aaa820 10981fi
e9c9a47c
DWT
10982CXX=$ac_cv_prog_CXX
10983if test -n "$CXX"; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10985$as_echo "$CXX" >&6; }
10986else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988$as_echo "no" >&6; }
47aaa820 10989fi
9c60689e 10990
9c60689e 10991
e9c9a47c
DWT
10992 test -n "$CXX" && break
10993 done
47aaa820 10994fi
e9c9a47c
DWT
10995if test -z "$CXX"; then
10996 ac_ct_CXX=$CXX
10997 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10998do
10999 # Extract the first word of "$ac_prog", so it can be a program name with args.
11000set dummy $ac_prog; ac_word=$2
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002$as_echo_n "checking for $ac_word... " >&6; }
11003if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
9c60689e 11005else
e9c9a47c
DWT
11006 if test -n "$ac_ct_CXX"; then
11007 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11008else
11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
47aaa820 11011do
e9c9a47c
DWT
11012 IFS=$as_save_IFS
11013 test -z "$as_dir" && as_dir=.
11014 for ac_exec_ext in '' $ac_executable_extensions; do
11015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11016 ac_cv_prog_ac_ct_CXX="$ac_prog"
11017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 break 2
11019 fi
11020done
11021 done
11022IFS=$as_save_IFS
9c60689e 11023
e9c9a47c
DWT
11024fi
11025fi
11026ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11027if test -n "$ac_ct_CXX"; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11029$as_echo "$ac_ct_CXX" >&6; }
47aaa820 11030else
e9c9a47c
DWT
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
9c60689e 11033fi
9c60689e 11034
e9c9a47c
DWT
11035
11036 test -n "$ac_ct_CXX" && break
11037done
11038
11039 if test "x$ac_ct_CXX" = x; then
11040 CXX="g++"
11041 else
11042 case $cross_compiling:$ac_tool_warned in
11043yes:)
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11046ac_tool_warned=yes ;;
11047esac
11048 CXX=$ac_ct_CXX
11049 fi
9c60689e
DWT
11050fi
11051
e9c9a47c
DWT
11052 fi
11053fi
11054# Provide some information about the compiler.
11055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11056set X $ac_compile
11057ac_compiler=$2
11058for ac_option in --version -v -V -qversion; do
11059 { { ac_try="$ac_compiler $ac_option >&5"
11060case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063esac
11064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11065$as_echo "$ac_try_echo"; } >&5
11066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11067 ac_status=$?
11068 if test -s conftest.err; then
11069 sed '10a\
11070... rest of stderr output deleted ...
11071 10q' conftest.err >conftest.er1
11072 cat conftest.er1 >&5
11073 fi
11074 rm -f conftest.er1 conftest.err
11075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11076 test $ac_status = 0; }
9c60689e
DWT
11077done
11078
e9c9a47c
DWT
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11080$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11081if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
9c60689e 11083else
e9c9a47c
DWT
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h. */
9c60689e 11086
e9c9a47c
DWT
11087int
11088main ()
11089{
11090#ifndef __GNUC__
11091 choke me
11092#endif
9c60689e 11093
e9c9a47c
DWT
11094 ;
11095 return 0;
11096}
11097_ACEOF
11098if ac_fn_cxx_try_compile "$LINENO"; then :
11099 ac_compiler_gnu=yes
47aaa820 11100else
e9c9a47c 11101 ac_compiler_gnu=no
47aaa820 11102fi
e9c9a47c
DWT
11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11105
11106fi
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11108$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11109if test $ac_compiler_gnu = yes; then
11110 GXX=yes
11111else
11112 GXX=
11113fi
11114ac_test_CXXFLAGS=${CXXFLAGS+set}
11115ac_save_CXXFLAGS=$CXXFLAGS
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11117$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11118if test "${ac_cv_prog_cxx_g+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11120else
11121 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11122 ac_cxx_werror_flag=yes
11123 ac_cv_prog_cxx_g=no
11124 CXXFLAGS="-g"
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126/* end confdefs.h. */
11127
11128int
11129main ()
11130{
11131
11132 ;
11133 return 0;
11134}
11135_ACEOF
11136if ac_fn_cxx_try_compile "$LINENO"; then :
11137 ac_cv_prog_cxx_g=yes
11138else
11139 CXXFLAGS=""
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141/* end confdefs.h. */
11142
11143int
11144main ()
11145{
11146
11147 ;
11148 return 0;
11149}
11150_ACEOF
11151if ac_fn_cxx_try_compile "$LINENO"; then :
11152
11153else
11154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11155 CXXFLAGS="-g"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h. */
11158
11159int
11160main ()
11161{
11162
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167if ac_fn_cxx_try_compile "$LINENO"; then :
11168 ac_cv_prog_cxx_g=yes
11169fi
11170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171fi
11172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173fi
11174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11178$as_echo "$ac_cv_prog_cxx_g" >&6; }
11179if test "$ac_test_CXXFLAGS" = set; then
11180 CXXFLAGS=$ac_save_CXXFLAGS
11181elif test $ac_cv_prog_cxx_g = yes; then
11182 if test "$GXX" = yes; then
11183 CXXFLAGS="-g -O2"
11184 else
11185 CXXFLAGS="-g"
11186 fi
11187else
11188 if test "$GXX" = yes; then
11189 CXXFLAGS="-O2"
11190 else
11191 CXXFLAGS=
11192 fi
11193fi
11194ac_ext=c
11195ac_cpp='$CPP $CPPFLAGS'
11196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11198ac_compiler_gnu=$ac_cv_c_compiler_gnu
11199
11200if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11201 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11202 (test "X$CXX" != "Xg++"))) ; then
11203 ac_ext=cpp
11204ac_cpp='$CXXCPP $CPPFLAGS'
11205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11209$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11210if test -z "$CXXCPP"; then
11211 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213else
11214 # Double quotes because CXXCPP needs to be expanded
11215 for CXXCPP in "$CXX -E" "/lib/cpp"
11216 do
11217 ac_preproc_ok=false
11218for ac_cxx_preproc_warn_flag in '' yes
11219do
11220 # Use a header file that comes with gcc, so configuring glibc
11221 # with a fresh cross-compiler works.
11222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 # <limits.h> exists even on freestanding compilers.
11224 # On the NeXT, cc -E runs the code through the compiler's parser,
11225 # not just through cpp. "Syntax error" is here to catch this case.
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227/* end confdefs.h. */
11228#ifdef __STDC__
11229# include <limits.h>
11230#else
11231# include <assert.h>
11232#endif
11233 Syntax error
11234_ACEOF
11235if ac_fn_cxx_try_cpp "$LINENO"; then :
11236
11237else
11238 # Broken: fails on valid input.
11239continue
11240fi
11241rm -f conftest.err conftest.$ac_ext
11242
11243 # OK, works on sane cases. Now check whether nonexistent headers
11244 # can be detected and how.
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246/* end confdefs.h. */
11247#include <ac_nonexistent.h>
11248_ACEOF
11249if ac_fn_cxx_try_cpp "$LINENO"; then :
11250 # Broken: success on invalid input.
11251continue
11252else
11253 # Passes both tests.
11254ac_preproc_ok=:
11255break
11256fi
11257rm -f conftest.err conftest.$ac_ext
11258
11259done
11260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11261rm -f conftest.err conftest.$ac_ext
11262if $ac_preproc_ok; then :
11263 break
11264fi
11265
11266 done
11267 ac_cv_prog_CXXCPP=$CXXCPP
11268
11269fi
11270 CXXCPP=$ac_cv_prog_CXXCPP
11271else
11272 ac_cv_prog_CXXCPP=$CXXCPP
11273fi
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11275$as_echo "$CXXCPP" >&6; }
11276ac_preproc_ok=false
11277for ac_cxx_preproc_warn_flag in '' yes
11278do
11279 # Use a header file that comes with gcc, so configuring glibc
11280 # with a fresh cross-compiler works.
11281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11282 # <limits.h> exists even on freestanding compilers.
11283 # On the NeXT, cc -E runs the code through the compiler's parser,
11284 # not just through cpp. "Syntax error" is here to catch this case.
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h. */
11287#ifdef __STDC__
11288# include <limits.h>
11289#else
11290# include <assert.h>
11291#endif
11292 Syntax error
11293_ACEOF
11294if ac_fn_cxx_try_cpp "$LINENO"; then :
11295
11296else
11297 # Broken: fails on valid input.
11298continue
11299fi
11300rm -f conftest.err conftest.$ac_ext
11301
11302 # OK, works on sane cases. Now check whether nonexistent headers
11303 # can be detected and how.
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305/* end confdefs.h. */
11306#include <ac_nonexistent.h>
11307_ACEOF
11308if ac_fn_cxx_try_cpp "$LINENO"; then :
11309 # Broken: success on invalid input.
11310continue
11311else
11312 # Passes both tests.
11313ac_preproc_ok=:
11314break
11315fi
11316rm -f conftest.err conftest.$ac_ext
11317
11318done
11319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11320rm -f conftest.err conftest.$ac_ext
11321if $ac_preproc_ok; then :
11322
11323else
11324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11326_lt_caught_CXX_error=yes; }
11327fi
11328
11329ac_ext=c
11330ac_cpp='$CPP $CPPFLAGS'
11331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11333ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334
11335else
11336 _lt_caught_CXX_error=yes
11337fi
11338
9c60689e 11339
9c60689e 11340
9c60689e 11341
9c60689e
DWT
11342ac_ext=cpp
11343ac_cpp='$CXXCPP $CPPFLAGS'
11344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 11347
47aaa820
DWT
11348archive_cmds_need_lc_CXX=no
11349allow_undefined_flag_CXX=
11350always_export_symbols_CXX=no
11351archive_expsym_cmds_CXX=
11352compiler_needs_object_CXX=no
11353export_dynamic_flag_spec_CXX=
11354hardcode_direct_CXX=no
11355hardcode_direct_absolute_CXX=no
11356hardcode_libdir_flag_spec_CXX=
11357hardcode_libdir_flag_spec_ld_CXX=
11358hardcode_libdir_separator_CXX=
11359hardcode_minus_L_CXX=no
11360hardcode_shlibpath_var_CXX=unsupported
11361hardcode_automatic_CXX=no
11362inherit_rpath_CXX=no
11363module_cmds_CXX=
11364module_expsym_cmds_CXX=
11365link_all_deplibs_CXX=unknown
11366old_archive_cmds_CXX=$old_archive_cmds
11367no_undefined_flag_CXX=
11368whole_archive_flag_spec_CXX=
11369enable_shared_with_static_runtimes_CXX=no
9c60689e 11370
47aaa820
DWT
11371# Source file extension for C++ test sources.
11372ac_ext=cpp
9c60689e 11373
47aaa820
DWT
11374# Object file extension for compiled C++ test sources.
11375objext=o
11376objext_CXX=$objext
9c60689e 11377
47aaa820
DWT
11378# No sense in running all these tests if we already determined that
11379# the CXX compiler isn't working. Some variables (like enable_shared)
11380# are currently assumed to apply to all compilers on this platform,
11381# and will be corrupted by setting them based on a non-working compiler.
11382if test "$_lt_caught_CXX_error" != yes; then
11383 # Code to be used in simple compile tests
11384 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11385
47aaa820
DWT
11386 # Code to be used in simple link tests
11387 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 11388
47aaa820 11389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 11390
9c60689e 11391
9c60689e 11392
9c60689e 11393
9c60689e 11394
9c60689e 11395
47aaa820
DWT
11396# If no C compiler was specified, use CC.
11397LTCC=${LTCC-"$CC"}
9c60689e 11398
47aaa820
DWT
11399# If no C compiler flags were specified, use CFLAGS.
11400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11401
47aaa820
DWT
11402# Allow CC to be a program name with arguments.
11403compiler=$CC
9c60689e 11404
9c60689e 11405
47aaa820
DWT
11406 # save warnings/boilerplate of simple test code
11407 ac_outfile=conftest.$ac_objext
11408echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11409eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11410_lt_compiler_boilerplate=`cat conftest.err`
11411$RM conftest*
9c60689e 11412
47aaa820
DWT
11413 ac_outfile=conftest.$ac_objext
11414echo "$lt_simple_link_test_code" >conftest.$ac_ext
11415eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11416_lt_linker_boilerplate=`cat conftest.err`
11417$RM -r conftest*
9c60689e 11418
9c60689e 11419
47aaa820
DWT
11420 # Allow CC to be a program name with arguments.
11421 lt_save_CC=$CC
11422 lt_save_LD=$LD
11423 lt_save_GCC=$GCC
11424 GCC=$GXX
11425 lt_save_with_gnu_ld=$with_gnu_ld
11426 lt_save_path_LD=$lt_cv_path_LD
11427 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11428 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 11429 else
47aaa820 11430 $as_unset lt_cv_prog_gnu_ld
9c60689e 11431 fi
47aaa820
DWT
11432 if test -n "${lt_cv_path_LDCXX+set}"; then
11433 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 11434 else
47aaa820 11435 $as_unset lt_cv_path_LD
9c60689e 11436 fi
47aaa820
DWT
11437 test -z "${LDCXX+set}" || LD=$LDCXX
11438 CC=${CXX-"c++"}
11439 compiler=$CC
11440 compiler_CXX=$CC
11441 for cc_temp in $compiler""; do
11442 case $cc_temp in
11443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11445 \-*) ;;
11446 *) break;;
11447 esac
11448done
11449cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9c60689e
DWT
11450
11451
47aaa820
DWT
11452 if test -n "$compiler"; then
11453 # We don't want -fno-exception when compiling C++ code, so set the
11454 # no_builtin_flag separately
11455 if test "$GXX" = yes; then
11456 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11457 else
11458 lt_prog_compiler_no_builtin_flag_CXX=
11459 fi
9c60689e 11460
47aaa820
DWT
11461 if test "$GXX" = yes; then
11462 # Set up default GNU C++ configuration
11463
11464
11465
11466# Check whether --with-gnu-ld was given.
11467if test "${with_gnu_ld+set}" = set; then :
11468 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 11469else
47aaa820 11470 with_gnu_ld=no
9c60689e
DWT
11471fi
11472
47aaa820
DWT
11473ac_prog=ld
11474if test "$GCC" = yes; then
11475 # Check if gcc -print-prog-name=ld gives a path.
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11477$as_echo_n "checking for ld used by $CC... " >&6; }
11478 case $host in
11479 *-*-mingw*)
11480 # gcc leaves a trailing carriage return which upsets mingw
11481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11482 *)
11483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11484 esac
11485 case $ac_prog in
11486 # Accept absolute paths.
11487 [\\/]* | ?:[\\/]*)
11488 re_direlt='/[^/][^/]*/\.\./'
11489 # Canonicalize the pathname of ld
11490 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11491 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11492 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11493 done
11494 test -z "$LD" && LD="$ac_prog"
11495 ;;
11496 "")
11497 # If it fails, then pretend we aren't using GCC.
11498 ac_prog=ld
11499 ;;
11500 *)
11501 # If it is relative, then search for the first ld in PATH.
11502 with_gnu_ld=unknown
11503 ;;
11504 esac
11505elif test "$with_gnu_ld" = yes; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11507$as_echo_n "checking for GNU ld... " >&6; }
11508else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11510$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 11511fi
47aaa820 11512if test "${lt_cv_path_LD+set}" = set; then :
9c60689e
DWT
11513 $as_echo_n "(cached) " >&6
11514else
47aaa820
DWT
11515 if test -z "$LD"; then
11516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11517 for ac_dir in $PATH; do
11518 IFS="$lt_save_ifs"
11519 test -z "$ac_dir" && ac_dir=.
11520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11521 lt_cv_path_LD="$ac_dir/$ac_prog"
11522 # Check to see if the program is GNU ld. I'd rather use --version,
11523 # but apparently some variants of GNU ld only accept -v.
11524 # Break only if it was the GNU/non-GNU ld that we prefer.
11525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11526 *GNU* | *'with BFD'*)
11527 test "$with_gnu_ld" != no && break
11528 ;;
11529 *)
11530 test "$with_gnu_ld" != yes && break
11531 ;;
11532 esac
11533 fi
9c60689e 11534 done
47aaa820
DWT
11535 IFS="$lt_save_ifs"
11536else
11537 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
11538fi
11539fi
47aaa820
DWT
11540
11541LD="$lt_cv_path_LD"
11542if test -n "$LD"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11544$as_echo "$LD" >&6; }
9c60689e
DWT
11545else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547$as_echo "no" >&6; }
11548fi
47aaa820
DWT
11549test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11551$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11552if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11554else
11555 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11556case `$LD -v 2>&1 </dev/null` in
11557*GNU* | *'with BFD'*)
11558 lt_cv_prog_gnu_ld=yes
11559 ;;
11560*)
11561 lt_cv_prog_gnu_ld=no
11562 ;;
11563esac
11564fi
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11566$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11567with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
11568
11569
9c60689e 11570
9c60689e 11571
9c60689e 11572
9c60689e 11573
9c60689e 11574
47aaa820
DWT
11575 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11576 # archiving commands below assume that GNU ld is being used.
11577 if test "$with_gnu_ld" = yes; then
11578 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11579 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 11580
47aaa820
DWT
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11583
47aaa820
DWT
11584 # If archive_cmds runs LD, not CC, wlarc should be empty
11585 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11586 # investigate it a little bit more. (MM)
11587 wlarc='${wl}'
9c60689e 11588
47aaa820
DWT
11589 # ancient GNU ld didn't support --whole-archive et. al.
11590 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11591 $GREP 'no-whole-archive' > /dev/null; then
11592 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11593 else
11594 whole_archive_flag_spec_CXX=
11595 fi
11596 else
11597 with_gnu_ld=no
11598 wlarc=
11599
11600 # A generic and very simple default shared library creation
11601 # command for GNU C++ for the case where it uses the native
11602 # linker, instead of GNU ld. If possible, this setting should
11603 # overridden to take advantage of the native linker features on
11604 # the platform it is being used on.
11605 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11606 fi
11607
11608 # Commands to make compiler produce verbose output that lists
11609 # what "hidden" libraries, object files and flags are used when
11610 # linking a shared library.
11611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11612
11613 else
11614 GXX=no
11615 with_gnu_ld=no
11616 wlarc=
11617 fi
11618
11619 # PORTME: fill in a description of your system's C++ link characteristics
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11621$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11622 ld_shlibs_CXX=yes
11623 case $host_os in
11624 aix3*)
11625 # FIXME: insert proper C++ library support
11626 ld_shlibs_CXX=no
11627 ;;
11628 aix[4-9]*)
11629 if test "$host_cpu" = ia64; then
11630 # On IA64, the linker does run time linking by default, so we don't
11631 # have to do anything special.
11632 aix_use_runtimelinking=no
11633 exp_sym_flag='-Bexport'
11634 no_entry_flag=""
11635 else
11636 aix_use_runtimelinking=no
11637
11638 # Test if we are trying to use run time linking or normal
11639 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11640 # need to do runtime linking.
11641 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11642 for ld_flag in $LDFLAGS; do
11643 case $ld_flag in
11644 *-brtl*)
11645 aix_use_runtimelinking=yes
11646 break
11647 ;;
11648 esac
11649 done
11650 ;;
11651 esac
11652
11653 exp_sym_flag='-bexport'
11654 no_entry_flag='-bnoentry'
11655 fi
11656
11657 # When large executables or shared objects are built, AIX ld can
11658 # have problems creating the table of contents. If linking a library
11659 # or program results in "error TOC overflow" add -mminimal-toc to
11660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11662
11663 archive_cmds_CXX=''
11664 hardcode_direct_CXX=yes
11665 hardcode_direct_absolute_CXX=yes
11666 hardcode_libdir_separator_CXX=':'
11667 link_all_deplibs_CXX=yes
11668 file_list_spec_CXX='${wl}-f,'
11669
11670 if test "$GXX" = yes; then
11671 case $host_os in aix4.[012]|aix4.[012].*)
11672 # We only want to do this on AIX 4.2 and lower, the check
11673 # below for broken collect2 doesn't work under 4.3+
11674 collect2name=`${CC} -print-prog-name=collect2`
11675 if test -f "$collect2name" &&
11676 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11677 then
11678 # We have reworked collect2
11679 :
11680 else
11681 # We have old collect2
11682 hardcode_direct_CXX=unsupported
11683 # It fails to find uninstalled libraries when the uninstalled
11684 # path is not listed in the libpath. Setting hardcode_minus_L
11685 # to unsupported forces relinking
11686 hardcode_minus_L_CXX=yes
11687 hardcode_libdir_flag_spec_CXX='-L$libdir'
11688 hardcode_libdir_separator_CXX=
11689 fi
11690 esac
11691 shared_flag='-shared'
11692 if test "$aix_use_runtimelinking" = yes; then
11693 shared_flag="$shared_flag "'${wl}-G'
11694 fi
11695 else
11696 # not using gcc
11697 if test "$host_cpu" = ia64; then
11698 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11699 # chokes on -Wl,-G. The following line is correct:
11700 shared_flag='-G'
11701 else
11702 if test "$aix_use_runtimelinking" = yes; then
11703 shared_flag='${wl}-G'
11704 else
11705 shared_flag='${wl}-bM:SRE'
11706 fi
11707 fi
11708 fi
11709
11710 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11711 # It seems that -bexpall does not export symbols beginning with
11712 # underscore (_), so it is better to generate a list of symbols to
11713 # export.
11714 always_export_symbols_CXX=yes
11715 if test "$aix_use_runtimelinking" = yes; then
11716 # Warning - without using the other runtime loading flags (-brtl),
11717 # -berok will link without error, but may produce a broken library.
11718 allow_undefined_flag_CXX='-berok'
11719 # Determine the default libpath from the value encoded in an empty
11720 # executable.
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11722/* end confdefs.h. */
11723
11724int
11725main ()
11726{
11727
11728 ;
11729 return 0;
11730}
11731_ACEOF
47aaa820 11732if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11733
47aaa820
DWT
11734lt_aix_libpath_sed='
11735 /Import File Strings/,/^$/ {
11736 /^0/ {
11737 s/^0 *\(.*\)$/\1/
11738 p
11739 }
11740 }'
11741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742# Check for a 64-bit object if we didn't find anything.
11743if test -z "$aix_libpath"; then
11744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11745fi
11746fi
11747rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11750
11751 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11752
11753 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"
11754 else
11755 if test "$host_cpu" = ia64; then
11756 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11757 allow_undefined_flag_CXX="-z nodefs"
11758 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"
11759 else
11760 # Determine the default libpath from the value encoded in an
11761 # empty executable.
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11763/* end confdefs.h. */
11764
11765int
11766main ()
11767{
11768
11769 ;
11770 return 0;
11771}
11772_ACEOF
47aaa820 11773if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11774
47aaa820
DWT
11775lt_aix_libpath_sed='
11776 /Import File Strings/,/^$/ {
11777 /^0/ {
11778 s/^0 *\(.*\)$/\1/
11779 p
11780 }
11781 }'
11782aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11783# Check for a 64-bit object if we didn't find anything.
11784if test -z "$aix_libpath"; then
11785 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9c60689e 11786fi
9c60689e 11787fi
47aaa820
DWT
11788rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9c60689e 11791
47aaa820
DWT
11792 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11793 # Warning - without using the other run time loading flags,
11794 # -berok will link without error, but may produce a broken library.
11795 no_undefined_flag_CXX=' ${wl}-bernotok'
11796 allow_undefined_flag_CXX=' ${wl}-berok'
11797 # Exported symbols can be pulled into shared objects from archives
11798 whole_archive_flag_spec_CXX='$convenience'
11799 archive_cmds_need_lc_CXX=yes
11800 # This is similar to how AIX traditionally builds its shared
11801 # libraries.
11802 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'
11803 fi
11804 fi
11805 ;;
9c60689e 11806
47aaa820
DWT
11807 beos*)
11808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11809 allow_undefined_flag_CXX=unsupported
11810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11811 # support --undefined. This deserves some investigation. FIXME
11812 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11813 else
11814 ld_shlibs_CXX=no
11815 fi
11816 ;;
9c60689e 11817
47aaa820
DWT
11818 chorus*)
11819 case $cc_basename in
11820 *)
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11823 ;;
11824 esac
11825 ;;
9c60689e 11826
47aaa820
DWT
11827 cygwin* | mingw* | pw32* | cegcc*)
11828 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11829 # as there is no search path for DLLs.
11830 hardcode_libdir_flag_spec_CXX='-L$libdir'
11831 allow_undefined_flag_CXX=unsupported
11832 always_export_symbols_CXX=no
11833 enable_shared_with_static_runtimes_CXX=yes
9c60689e 11834
47aaa820
DWT
11835 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11836 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'
11837 # If the export-symbols file already is a .def file (1st line
11838 # is EXPORTS), use it as is; otherwise, prepend...
11839 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11840 cp $export_symbols $output_objdir/$soname.def;
11841 else
11842 echo EXPORTS > $output_objdir/$soname.def;
11843 cat $export_symbols >> $output_objdir/$soname.def;
11844 fi~
11845 $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'
11846 else
11847 ld_shlibs_CXX=no
11848 fi
11849 ;;
11850 darwin* | rhapsody*)
9c60689e 11851
9c60689e 11852
47aaa820
DWT
11853 archive_cmds_need_lc_CXX=no
11854 hardcode_direct_CXX=no
11855 hardcode_automatic_CXX=yes
11856 hardcode_shlibpath_var_CXX=unsupported
11857 whole_archive_flag_spec_CXX=''
11858 link_all_deplibs_CXX=yes
11859 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11860 case $cc_basename in
11861 ifort*) _lt_dar_can_shared=yes ;;
11862 *) _lt_dar_can_shared=$GCC ;;
11863 esac
11864 if test "$_lt_dar_can_shared" = "yes"; then
11865 output_verbose_link_cmd=echo
11866 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}"
11867 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11868 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}"
11869 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}"
11870 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11871 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}"
11872 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}"
11873 fi
9c60689e 11874
47aaa820
DWT
11875 else
11876 ld_shlibs_CXX=no
11877 fi
9c60689e 11878
47aaa820 11879 ;;
9c60689e 11880
47aaa820
DWT
11881 dgux*)
11882 case $cc_basename in
11883 ec++*)
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11886 ;;
11887 ghcx*)
11888 # Green Hills C++ Compiler
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892 *)
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 esac
11897 ;;
9c60689e 11898
47aaa820
DWT
11899 freebsd[12]*)
11900 # C++ shared libraries reported to be fairly broken before
11901 # switch to ELF
11902 ld_shlibs_CXX=no
11903 ;;
9c60689e 11904
47aaa820
DWT
11905 freebsd-elf*)
11906 archive_cmds_need_lc_CXX=no
11907 ;;
9c60689e 11908
47aaa820
DWT
11909 freebsd* | dragonfly*)
11910 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11911 # conventions
11912 ld_shlibs_CXX=yes
11913 ;;
9c60689e 11914
47aaa820
DWT
11915 gnu*)
11916 ;;
9c60689e 11917
47aaa820
DWT
11918 hpux9*)
11919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11920 hardcode_libdir_separator_CXX=:
11921 export_dynamic_flag_spec_CXX='${wl}-E'
11922 hardcode_direct_CXX=yes
11923 hardcode_minus_L_CXX=yes # Not in the search PATH,
11924 # but as the default
11925 # location of the library.
9c60689e 11926
47aaa820
DWT
11927 case $cc_basename in
11928 CC*)
11929 # FIXME: insert proper C++ library support
11930 ld_shlibs_CXX=no
11931 ;;
11932 aCC*)
11933 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'
11934 # Commands to make compiler produce verbose output that lists
11935 # what "hidden" libraries, object files and flags are used when
11936 # linking a shared library.
11937 #
11938 # There doesn't appear to be a way to prevent this compiler from
11939 # explicitly linking system object files so we need to strip them
11940 # from the output so that they don't get included in the library
11941 # dependencies.
11942 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'
11943 ;;
11944 *)
11945 if test "$GXX" = yes; then
11946 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'
11947 else
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11950 fi
11951 ;;
11952 esac
11953 ;;
9c60689e 11954
47aaa820
DWT
11955 hpux10*|hpux11*)
11956 if test $with_gnu_ld = no; then
11957 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11958 hardcode_libdir_separator_CXX=:
9c60689e 11959
47aaa820
DWT
11960 case $host_cpu in
11961 hppa*64*|ia64*)
11962 ;;
11963 *)
11964 export_dynamic_flag_spec_CXX='${wl}-E'
11965 ;;
11966 esac
11967 fi
11968 case $host_cpu in
11969 hppa*64*|ia64*)
11970 hardcode_direct_CXX=no
11971 hardcode_shlibpath_var_CXX=no
11972 ;;
11973 *)
11974 hardcode_direct_CXX=yes
11975 hardcode_direct_absolute_CXX=yes
11976 hardcode_minus_L_CXX=yes # Not in the search PATH,
11977 # but as the default
11978 # location of the library.
11979 ;;
11980 esac
9c60689e 11981
47aaa820
DWT
11982 case $cc_basename in
11983 CC*)
11984 # FIXME: insert proper C++ library support
11985 ld_shlibs_CXX=no
11986 ;;
11987 aCC*)
11988 case $host_cpu in
11989 hppa*64*)
11990 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11991 ;;
11992 ia64*)
11993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11994 ;;
11995 *)
11996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11997 ;;
11998 esac
11999 # Commands to make compiler produce verbose output that lists
12000 # what "hidden" libraries, object files and flags are used when
12001 # linking a shared library.
12002 #
12003 # There doesn't appear to be a way to prevent this compiler from
12004 # explicitly linking system object files so we need to strip them
12005 # from the output so that they don't get included in the library
12006 # dependencies.
12007 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'
12008 ;;
12009 *)
12010 if test "$GXX" = yes; then
12011 if test $with_gnu_ld = no; then
12012 case $host_cpu in
12013 hppa*64*)
12014 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12015 ;;
12016 ia64*)
12017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12018 ;;
12019 *)
12020 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'
12021 ;;
12022 esac
12023 fi
12024 else
12025 # FIXME: insert proper C++ library support
12026 ld_shlibs_CXX=no
12027 fi
12028 ;;
12029 esac
12030 ;;
9c60689e 12031
47aaa820
DWT
12032 interix[3-9]*)
12033 hardcode_direct_CXX=no
12034 hardcode_shlibpath_var_CXX=no
12035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12036 export_dynamic_flag_spec_CXX='${wl}-E'
12037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12038 # Instead, shared libraries are loaded at an image base (0x10000000 by
12039 # default) and relocated if they conflict, which is a slow very memory
12040 # consuming and fragmenting process. To avoid this, we pick a random,
12041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12043 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'
12044 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'
12045 ;;
12046 irix5* | irix6*)
12047 case $cc_basename in
12048 CC*)
12049 # SGI C++
12050 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 12051
47aaa820
DWT
12052 # Archives containing C++ object files must be created using
12053 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12054 # necessary to make sure instantiated templates are included
12055 # in the archive.
12056 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12057 ;;
12058 *)
12059 if test "$GXX" = yes; then
12060 if test "$with_gnu_ld" = no; then
12061 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'
12062 else
12063 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'
12064 fi
12065 fi
12066 link_all_deplibs_CXX=yes
12067 ;;
12068 esac
12069 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12070 hardcode_libdir_separator_CXX=:
12071 inherit_rpath_CXX=yes
12072 ;;
9c60689e 12073
47aaa820
DWT
12074 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12075 case $cc_basename in
12076 KCC*)
12077 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12078
47aaa820
DWT
12079 # KCC will only create a shared library if the output file
12080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12081 # to its proper name (with version) after linking.
12082 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'
12083 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'
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12087 #
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12091 # dependencies.
12092 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 12093
47aaa820
DWT
12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12096
47aaa820
DWT
12097 # Archives containing C++ object files must be created using
12098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12100 ;;
12101 icpc* | ecpc* )
12102 # Intel C++
12103 with_gnu_ld=yes
12104 # version 8.0 and above of icpc choke on multiply defined symbols
12105 # if we add $predep_objects and $postdep_objects, however 7.1 and
12106 # earlier do not add the objects themselves.
12107 case `$CC -V 2>&1` in
12108 *"Version 7."*)
12109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12110 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'
12111 ;;
12112 *) # Version 8.0 or newer
12113 tmp_idyn=
12114 case $host_cpu in
12115 ia64*) tmp_idyn=' -i_dynamic';;
12116 esac
12117 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12118 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'
12119 ;;
12120 esac
12121 archive_cmds_need_lc_CXX=no
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12124 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12125 ;;
12126 pgCC* | pgcpp*)
12127 # Portland Group C++ compiler
12128 case `$CC -V` in
12129 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12130 prelink_cmds_CXX='tpldir=Template.dir~
12131 rm -rf $tpldir~
12132 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12133 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12134 old_archive_cmds_CXX='tpldir=Template.dir~
12135 rm -rf $tpldir~
12136 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12137 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12138 $RANLIB $oldlib'
12139 archive_cmds_CXX='tpldir=Template.dir~
12140 rm -rf $tpldir~
12141 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12142 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12143 archive_expsym_cmds_CXX='tpldir=Template.dir~
12144 rm -rf $tpldir~
12145 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12146 $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'
12147 ;;
12148 *) # Version 6 will use weak symbols
12149 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12150 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'
12151 ;;
12152 esac
9c60689e 12153
47aaa820
DWT
12154 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12156 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'
12157 ;;
12158 cxx*)
12159 # Compaq C++
12160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 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 12162
47aaa820
DWT
12163 runpath_var=LD_RUN_PATH
12164 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12165 hardcode_libdir_separator_CXX=:
9c60689e 12166
47aaa820
DWT
12167 # Commands to make compiler produce verbose output that lists
12168 # what "hidden" libraries, object files and flags are used when
12169 # linking a shared library.
12170 #
12171 # There doesn't appear to be a way to prevent this compiler from
12172 # explicitly linking system object files so we need to strip them
12173 # from the output so that they don't get included in the library
12174 # dependencies.
12175 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'
12176 ;;
12177 xl*)
12178 # IBM XL 8.0 on PPC, with GNU ld
12179 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12181 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12182 if test "x$supports_anon_versioning" = xyes; then
12183 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12185 echo "local: *; };" >> $output_objdir/$libname.ver~
12186 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12187 fi
12188 ;;
12189 *)
12190 case `$CC -V 2>&1 | sed 5q` in
12191 *Sun\ C*)
12192 # Sun C++ 5.9
12193 no_undefined_flag_CXX=' -zdefs'
12194 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12195 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'
12196 hardcode_libdir_flag_spec_CXX='-R$libdir'
12197 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'
12198 compiler_needs_object_CXX=yes
9c60689e 12199
47aaa820
DWT
12200 # Not sure whether something based on
12201 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12202 # would be better.
12203 output_verbose_link_cmd='echo'
9c60689e 12204
47aaa820
DWT
12205 # Archives containing C++ object files must be created using
12206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12207 # necessary to make sure instantiated templates are included
12208 # in the archive.
12209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12210 ;;
12211 esac
12212 ;;
12213 esac
12214 ;;
9c60689e 12215
47aaa820
DWT
12216 lynxos*)
12217 # FIXME: insert proper C++ library support
12218 ld_shlibs_CXX=no
12219 ;;
9c60689e 12220
47aaa820
DWT
12221 m88k*)
12222 # FIXME: insert proper C++ library support
12223 ld_shlibs_CXX=no
12224 ;;
9c60689e 12225
47aaa820
DWT
12226 mvs*)
12227 case $cc_basename in
12228 cxx*)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12231 ;;
12232 *)
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12235 ;;
12236 esac
12237 ;;
9c60689e 12238
47aaa820
DWT
12239 netbsd*)
12240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12241 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12242 wlarc=
12243 hardcode_libdir_flag_spec_CXX='-R$libdir'
12244 hardcode_direct_CXX=yes
12245 hardcode_shlibpath_var_CXX=no
12246 fi
12247 # Workaround some broken pre-1.5 toolchains
12248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 12249 ;;
47aaa820
DWT
12250
12251 *nto* | *qnx*)
12252 ld_shlibs_CXX=yes
9c60689e 12253 ;;
9c60689e 12254
47aaa820
DWT
12255 openbsd2*)
12256 # C++ shared libraries are fairly broken
12257 ld_shlibs_CXX=no
12258 ;;
9c60689e 12259
47aaa820
DWT
12260 openbsd*)
12261 if test -f /usr/libexec/ld.so; then
12262 hardcode_direct_CXX=yes
12263 hardcode_shlibpath_var_CXX=no
12264 hardcode_direct_absolute_CXX=yes
12265 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12268 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12269 export_dynamic_flag_spec_CXX='${wl}-E'
12270 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12271 fi
12272 output_verbose_link_cmd=echo
12273 else
12274 ld_shlibs_CXX=no
12275 fi
12276 ;;
9c60689e 12277
47aaa820
DWT
12278 osf3* | osf4* | osf5*)
12279 case $cc_basename in
12280 KCC*)
12281 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 12282
47aaa820
DWT
12283 # KCC will only create a shared library if the output file
12284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12285 # to its proper name (with version) after linking.
12286 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 12287
47aaa820
DWT
12288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12289 hardcode_libdir_separator_CXX=:
9c60689e 12290
47aaa820
DWT
12291 # Archives containing C++ object files must be created using
12292 # the KAI C++ compiler.
12293 case $host in
12294 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12295 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12296 esac
12297 ;;
12298 RCC*)
12299 # Rational C++ 2.4.1
12300 # FIXME: insert proper C++ library support
12301 ld_shlibs_CXX=no
12302 ;;
12303 cxx*)
12304 case $host in
12305 osf3*)
12306 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12307 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'
12308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12309 ;;
12310 *)
12311 allow_undefined_flag_CXX=' -expect_unresolved \*'
12312 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'
12313 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12314 echo "-hidden">> $lib.exp~
12315 $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~
12316 $RM $lib.exp'
12317 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12318 ;;
12319 esac
9c60689e 12320
47aaa820 12321 hardcode_libdir_separator_CXX=:
9c60689e 12322
47aaa820
DWT
12323 # Commands to make compiler produce verbose output that lists
12324 # what "hidden" libraries, object files and flags are used when
12325 # linking a shared library.
12326 #
12327 # There doesn't appear to be a way to prevent this compiler from
12328 # explicitly linking system object files so we need to strip them
12329 # from the output so that they don't get included in the library
12330 # dependencies.
12331 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'
12332 ;;
12333 *)
12334 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12335 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12336 case $host in
12337 osf3*)
12338 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'
12339 ;;
12340 *)
12341 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'
12342 ;;
12343 esac
9c60689e 12344
47aaa820
DWT
12345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12346 hardcode_libdir_separator_CXX=:
9c60689e 12347
47aaa820
DWT
12348 # Commands to make compiler produce verbose output that lists
12349 # what "hidden" libraries, object files and flags are used when
12350 # linking a shared library.
12351 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9c60689e 12352
47aaa820
DWT
12353 else
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12356 fi
12357 ;;
12358 esac
12359 ;;
9c60689e 12360
47aaa820 12361 psos*)
9c60689e
DWT
12362 # FIXME: insert proper C++ library support
12363 ld_shlibs_CXX=no
12364 ;;
9c60689e 12365
47aaa820
DWT
12366 sunos4*)
12367 case $cc_basename in
12368 CC*)
12369 # Sun C++ 4.x
12370 # FIXME: insert proper C++ library support
12371 ld_shlibs_CXX=no
9c60689e 12372 ;;
47aaa820
DWT
12373 lcc*)
12374 # Lucid
12375 # FIXME: insert proper C++ library support
12376 ld_shlibs_CXX=no
12377 ;;
12378 *)
12379 # FIXME: insert proper C++ library support
12380 ld_shlibs_CXX=no
12381 ;;
12382 esac
12383 ;;
9c60689e 12384
47aaa820
DWT
12385 solaris*)
12386 case $cc_basename in
12387 CC*)
12388 # Sun C++ 4.2, 5.x and Centerline C++
12389 archive_cmds_need_lc_CXX=yes
12390 no_undefined_flag_CXX=' -zdefs'
12391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12392 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12393 $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 12394
47aaa820
DWT
12395 hardcode_libdir_flag_spec_CXX='-R$libdir'
12396 hardcode_shlibpath_var_CXX=no
12397 case $host_os in
12398 solaris2.[0-5] | solaris2.[0-5].*) ;;
12399 *)
12400 # The compiler driver will combine and reorder linker options,
12401 # but understands `-z linker_flag'.
12402 # Supported since Solaris 2.6 (maybe 2.5.1?)
12403 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12404 ;;
12405 esac
12406 link_all_deplibs_CXX=yes
9c60689e 12407
47aaa820 12408 output_verbose_link_cmd='echo'
9c60689e 12409
47aaa820
DWT
12410 # Archives containing C++ object files must be created using
12411 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12412 # necessary to make sure instantiated templates are included
12413 # in the archive.
12414 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12415 ;;
12416 gcx*)
12417 # Green Hills C++ Compiler
12418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 12419
47aaa820
DWT
12420 # The C++ compiler must be used to create the archive.
12421 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12422 ;;
12423 *)
12424 # GNU C++ compiler with Solaris linker
12425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12426 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12427 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12428 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12429 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12430 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 12431
47aaa820
DWT
12432 # Commands to make compiler produce verbose output that lists
12433 # what "hidden" libraries, object files and flags are used when
12434 # linking a shared library.
12435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12436 else
12437 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12438 # platform.
12439 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12440 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12441 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 12442
47aaa820
DWT
12443 # Commands to make compiler produce verbose output that lists
12444 # what "hidden" libraries, object files and flags are used when
12445 # linking a shared library.
12446 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12447 fi
9c60689e 12448
47aaa820
DWT
12449 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12450 case $host_os in
12451 solaris2.[0-5] | solaris2.[0-5].*) ;;
12452 *)
12453 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12454 ;;
12455 esac
12456 fi
12457 ;;
12458 esac
12459 ;;
9c60689e 12460
47aaa820
DWT
12461 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12462 no_undefined_flag_CXX='${wl}-z,text'
12463 archive_cmds_need_lc_CXX=no
12464 hardcode_shlibpath_var_CXX=no
12465 runpath_var='LD_RUN_PATH'
9c60689e 12466
47aaa820
DWT
12467 case $cc_basename in
12468 CC*)
12469 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12470 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12471 ;;
12472 *)
12473 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12474 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12475 ;;
12476 esac
12477 ;;
9c60689e 12478
47aaa820
DWT
12479 sysv5* | sco3.2v5* | sco5v6*)
12480 # Note: We can NOT use -z defs as we might desire, because we do not
12481 # link with -lc, and that would cause any symbols used from libc to
12482 # always be unresolved, which means just about no library would
12483 # ever link correctly. If we're not using GNU ld we use -z text
12484 # though, which does catch some bad symbols but isn't as heavy-handed
12485 # as -z defs.
12486 no_undefined_flag_CXX='${wl}-z,text'
12487 allow_undefined_flag_CXX='${wl}-z,nodefs'
12488 archive_cmds_need_lc_CXX=no
12489 hardcode_shlibpath_var_CXX=no
12490 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12491 hardcode_libdir_separator_CXX=':'
12492 link_all_deplibs_CXX=yes
12493 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12494 runpath_var='LD_RUN_PATH'
9c60689e 12495
47aaa820
DWT
12496 case $cc_basename in
12497 CC*)
12498 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12500 ;;
12501 *)
12502 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12504 ;;
12505 esac
12506 ;;
9c60689e 12507
47aaa820 12508 tandem*)
9c60689e 12509 case $cc_basename in
47aaa820
DWT
12510 NCC*)
12511 # NonStop-UX NCC 3.20
12512 # FIXME: insert proper C++ library support
12513 ld_shlibs_CXX=no
12514 ;;
9c60689e 12515 *)
47aaa820
DWT
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12518 ;;
9c60689e
DWT
12519 esac
12520 ;;
12521
47aaa820
DWT
12522 vxworks*)
12523 # FIXME: insert proper C++ library support
12524 ld_shlibs_CXX=no
12525 ;;
9c60689e 12526
47aaa820
DWT
12527 *)
12528 # FIXME: insert proper C++ library support
12529 ld_shlibs_CXX=no
9c60689e 12530 ;;
47aaa820 12531 esac
9c60689e 12532
47aaa820
DWT
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12534$as_echo "$ld_shlibs_CXX" >&6; }
12535 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 12536
47aaa820
DWT
12537 GCC_CXX="$GXX"
12538 LD_CXX="$LD"
9c60689e 12539
47aaa820
DWT
12540 ## CAVEAT EMPTOR:
12541 ## There is no encapsulation within the following macros, do not change
12542 ## the running order or otherwise move them around unless you know exactly
12543 ## what you are doing...
12544 # Dependencies to place before and after the object being linked:
12545predep_objects_CXX=
12546postdep_objects_CXX=
12547predeps_CXX=
12548postdeps_CXX=
12549compiler_lib_search_path_CXX=
9c60689e 12550
47aaa820
DWT
12551cat > conftest.$ac_ext <<_LT_EOF
12552class Foo
12553{
12554public:
12555 Foo (void) { a = 0; }
12556private:
12557 int a;
12558};
12559_LT_EOF
9c60689e 12560
47aaa820
DWT
12561if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12562 (eval $ac_compile) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; }; then
12566 # Parse the compiler output and extract the necessary
12567 # objects, libraries and library flags.
9c60689e 12568
47aaa820
DWT
12569 # Sentinel used to keep track of whether or not we are before
12570 # the conftest object file.
12571 pre_test_object_deps_done=no
9c60689e 12572
47aaa820
DWT
12573 for p in `eval "$output_verbose_link_cmd"`; do
12574 case $p in
9c60689e 12575
47aaa820
DWT
12576 -L* | -R* | -l*)
12577 # Some compilers place space between "-{L,R}" and the path.
12578 # Remove the space.
12579 if test $p = "-L" ||
12580 test $p = "-R"; then
12581 prev=$p
12582 continue
12583 else
12584 prev=
12585 fi
9c60689e 12586
47aaa820
DWT
12587 if test "$pre_test_object_deps_done" = no; then
12588 case $p in
12589 -L* | -R*)
12590 # Internal compiler library paths should come after those
12591 # provided the user. The postdeps already come after the
12592 # user supplied libs so there is no need to process them.
12593 if test -z "$compiler_lib_search_path_CXX"; then
12594 compiler_lib_search_path_CXX="${prev}${p}"
12595 else
12596 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12597 fi
12598 ;;
12599 # The "-l" case would never come before the object being
12600 # linked, so don't bother handling this case.
12601 esac
12602 else
12603 if test -z "$postdeps_CXX"; then
12604 postdeps_CXX="${prev}${p}"
12605 else
12606 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12607 fi
12608 fi
12609 ;;
9c60689e 12610
47aaa820
DWT
12611 *.$objext)
12612 # This assumes that the test object file only shows up
12613 # once in the compiler output.
12614 if test "$p" = "conftest.$objext"; then
12615 pre_test_object_deps_done=yes
12616 continue
12617 fi
9c60689e 12618
47aaa820
DWT
12619 if test "$pre_test_object_deps_done" = no; then
12620 if test -z "$predep_objects_CXX"; then
12621 predep_objects_CXX="$p"
12622 else
12623 predep_objects_CXX="$predep_objects_CXX $p"
12624 fi
12625 else
12626 if test -z "$postdep_objects_CXX"; then
12627 postdep_objects_CXX="$p"
12628 else
12629 postdep_objects_CXX="$postdep_objects_CXX $p"
12630 fi
12631 fi
12632 ;;
9c60689e 12633
47aaa820 12634 *) ;; # Ignore the rest.
9c60689e 12635
47aaa820
DWT
12636 esac
12637 done
9c60689e 12638
47aaa820
DWT
12639 # Clean up.
12640 rm -f a.out a.exe
12641else
12642 echo "libtool.m4: error: problem compiling CXX test program"
12643fi
9c60689e 12644
47aaa820 12645$RM -f confest.$objext
9c60689e 12646
47aaa820
DWT
12647# PORTME: override above test on systems where it is broken
12648case $host_os in
12649interix[3-9]*)
12650 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12651 # hack all around it, let's just trust "g++" to DTRT.
12652 predep_objects_CXX=
12653 postdep_objects_CXX=
12654 postdeps_CXX=
12655 ;;
9c60689e 12656
47aaa820
DWT
12657linux*)
12658 case `$CC -V 2>&1 | sed 5q` in
12659 *Sun\ C*)
12660 # Sun C++ 5.9
9c60689e 12661
47aaa820
DWT
12662 # The more standards-conforming stlport4 library is
12663 # incompatible with the Cstd library. Avoid specifying
12664 # it if it's in CXXFLAGS. Ignore libCrun as
12665 # -library=stlport4 depends on it.
12666 case " $CXX $CXXFLAGS " in
12667 *" -library=stlport4 "*)
12668 solaris_use_stlport4=yes
12669 ;;
12670 esac
9c60689e 12671
47aaa820
DWT
12672 if test "$solaris_use_stlport4" != yes; then
12673 postdeps_CXX='-library=Cstd -library=Crun'
12674 fi
12675 ;;
12676 esac
12677 ;;
9c60689e 12678
47aaa820
DWT
12679solaris*)
12680 case $cc_basename in
12681 CC*)
12682 # The more standards-conforming stlport4 library is
12683 # incompatible with the Cstd library. Avoid specifying
12684 # it if it's in CXXFLAGS. Ignore libCrun as
12685 # -library=stlport4 depends on it.
12686 case " $CXX $CXXFLAGS " in
12687 *" -library=stlport4 "*)
12688 solaris_use_stlport4=yes
12689 ;;
12690 esac
9c60689e 12691
47aaa820
DWT
12692 # Adding this requires a known-good setup of shared libraries for
12693 # Sun compiler versions before 5.6, else PIC objects from an old
12694 # archive will be linked into the output, leading to subtle bugs.
12695 if test "$solaris_use_stlport4" != yes; then
12696 postdeps_CXX='-library=Cstd -library=Crun'
12697 fi
12698 ;;
12699 esac
12700 ;;
12701esac
9c60689e 12702
9c60689e 12703
47aaa820
DWT
12704case " $postdeps_CXX " in
12705*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12706esac
12707 compiler_lib_search_dirs_CXX=
12708if test -n "${compiler_lib_search_path_CXX}"; then
12709 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12710fi
9c60689e 12711
9c60689e 12712
9c60689e 12713
9c60689e 12714
9c60689e 12715
9c60689e 12716
9c60689e 12717
9c60689e 12718
9c60689e 12719
9c60689e 12720
9c60689e 12721
9c60689e 12722
9c60689e 12723
9c60689e 12724
9c60689e 12725
9c60689e 12726
9c60689e 12727
9c60689e 12728
9c60689e 12729
9c60689e 12730
9c60689e 12731
9c60689e 12732
9c60689e 12733
9c60689e 12734
9c60689e 12735
9c60689e 12736
9c60689e 12737
9c60689e 12738
9c60689e 12739
9c60689e 12740
9c60689e 12741
47aaa820
DWT
12742 lt_prog_compiler_wl_CXX=
12743lt_prog_compiler_pic_CXX=
12744lt_prog_compiler_static_CXX=
9c60689e
DWT
12745
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12747$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12748
12749 # C++ specific cases for pic, static, wl, etc.
12750 if test "$GXX" = yes; then
12751 lt_prog_compiler_wl_CXX='-Wl,'
12752 lt_prog_compiler_static_CXX='-static'
12753
12754 case $host_os in
12755 aix*)
12756 # All AIX code is PIC.
12757 if test "$host_cpu" = ia64; then
12758 # AIX 5 now supports IA64 processor
12759 lt_prog_compiler_static_CXX='-Bstatic'
12760 fi
12761 ;;
12762
12763 amigaos*)
12764 case $host_cpu in
12765 powerpc)
12766 # see comment about AmigaOS4 .so support
12767 lt_prog_compiler_pic_CXX='-fPIC'
12768 ;;
12769 m68k)
12770 # FIXME: we need at least 68020 code to build shared libraries, but
12771 # adding the `-m68020' flag to GCC prevents building anything better,
12772 # like `-m68040'.
12773 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12774 ;;
12775 esac
12776 ;;
12777
12778 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12779 # PIC is the default for these OSes.
12780 ;;
12781 mingw* | cygwin* | os2* | pw32* | cegcc*)
12782 # This hack is so that the source file can tell whether it is being
12783 # built for inclusion in a dll (and should export symbols for example).
12784 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12785 # (--disable-auto-import) libraries
12786 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12787 ;;
12788 darwin* | rhapsody*)
12789 # PIC is the default on this platform
12790 # Common symbols not allowed in MH_DYLIB files
12791 lt_prog_compiler_pic_CXX='-fno-common'
12792 ;;
12793 *djgpp*)
12794 # DJGPP does not support shared libraries at all
12795 lt_prog_compiler_pic_CXX=
12796 ;;
12797 interix[3-9]*)
12798 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12799 # Instead, we relocate shared libraries at runtime.
12800 ;;
12801 sysv4*MP*)
12802 if test -d /usr/nec; then
12803 lt_prog_compiler_pic_CXX=-Kconform_pic
12804 fi
12805 ;;
12806 hpux*)
12807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12809 # sets the default TLS model and affects inlining.
12810 case $host_cpu in
12811 hppa*64*)
12812 ;;
12813 *)
12814 lt_prog_compiler_pic_CXX='-fPIC'
12815 ;;
12816 esac
12817 ;;
12818 *qnx* | *nto*)
12819 # QNX uses GNU C++, but need to define -shared option too, otherwise
12820 # it will coredump.
12821 lt_prog_compiler_pic_CXX='-fPIC -shared'
12822 ;;
12823 *)
12824 lt_prog_compiler_pic_CXX='-fPIC'
12825 ;;
12826 esac
12827 else
12828 case $host_os in
12829 aix[4-9]*)
12830 # All AIX code is PIC.
12831 if test "$host_cpu" = ia64; then
12832 # AIX 5 now supports IA64 processor
12833 lt_prog_compiler_static_CXX='-Bstatic'
12834 else
12835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12836 fi
12837 ;;
12838 chorus*)
12839 case $cc_basename in
12840 cxch68*)
12841 # Green Hills C++ Compiler
12842 # _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"
12843 ;;
12844 esac
12845 ;;
12846 dgux*)
12847 case $cc_basename in
12848 ec++*)
12849 lt_prog_compiler_pic_CXX='-KPIC'
12850 ;;
12851 ghcx*)
12852 # Green Hills C++ Compiler
12853 lt_prog_compiler_pic_CXX='-pic'
12854 ;;
12855 *)
12856 ;;
12857 esac
12858 ;;
12859 freebsd* | dragonfly*)
12860 # FreeBSD uses GNU C++
12861 ;;
12862 hpux9* | hpux10* | hpux11*)
12863 case $cc_basename in
12864 CC*)
12865 lt_prog_compiler_wl_CXX='-Wl,'
12866 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12867 if test "$host_cpu" != ia64; then
12868 lt_prog_compiler_pic_CXX='+Z'
12869 fi
12870 ;;
12871 aCC*)
12872 lt_prog_compiler_wl_CXX='-Wl,'
12873 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12874 case $host_cpu in
12875 hppa*64*|ia64*)
12876 # +Z the default
12877 ;;
12878 *)
12879 lt_prog_compiler_pic_CXX='+Z'
12880 ;;
12881 esac
12882 ;;
12883 *)
12884 ;;
12885 esac
12886 ;;
12887 interix*)
12888 # This is c89, which is MS Visual C++ (no shared libs)
12889 # Anyone wants to do a port?
12890 ;;
12891 irix5* | irix6* | nonstopux*)
12892 case $cc_basename in
12893 CC*)
12894 lt_prog_compiler_wl_CXX='-Wl,'
12895 lt_prog_compiler_static_CXX='-non_shared'
12896 # CC pic flag -KPIC is the default.
12897 ;;
12898 *)
12899 ;;
12900 esac
12901 ;;
12902 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12903 case $cc_basename in
12904 KCC*)
12905 # KAI C++ Compiler
12906 lt_prog_compiler_wl_CXX='--backend -Wl,'
12907 lt_prog_compiler_pic_CXX='-fPIC'
12908 ;;
12909 ecpc* )
12910 # old Intel C++ for x86_64 which still supported -KPIC.
12911 lt_prog_compiler_wl_CXX='-Wl,'
12912 lt_prog_compiler_pic_CXX='-KPIC'
12913 lt_prog_compiler_static_CXX='-static'
12914 ;;
12915 icpc* )
12916 # Intel C++, used to be incompatible with GCC.
12917 # ICC 10 doesn't accept -KPIC any more.
12918 lt_prog_compiler_wl_CXX='-Wl,'
12919 lt_prog_compiler_pic_CXX='-fPIC'
12920 lt_prog_compiler_static_CXX='-static'
12921 ;;
12922 pgCC* | pgcpp*)
12923 # Portland Group C++ compiler
12924 lt_prog_compiler_wl_CXX='-Wl,'
12925 lt_prog_compiler_pic_CXX='-fpic'
12926 lt_prog_compiler_static_CXX='-Bstatic'
12927 ;;
12928 cxx*)
12929 # Compaq C++
12930 # Make sure the PIC flag is empty. It appears that all Alpha
12931 # Linux and Compaq Tru64 Unix objects are PIC.
12932 lt_prog_compiler_pic_CXX=
12933 lt_prog_compiler_static_CXX='-non_shared'
12934 ;;
12935 xlc* | xlC*)
12936 # IBM XL 8.0 on PPC
12937 lt_prog_compiler_wl_CXX='-Wl,'
12938 lt_prog_compiler_pic_CXX='-qpic'
12939 lt_prog_compiler_static_CXX='-qstaticlink'
12940 ;;
12941 *)
12942 case `$CC -V 2>&1 | sed 5q` in
12943 *Sun\ C*)
12944 # Sun C++ 5.9
12945 lt_prog_compiler_pic_CXX='-KPIC'
12946 lt_prog_compiler_static_CXX='-Bstatic'
12947 lt_prog_compiler_wl_CXX='-Qoption ld '
12948 ;;
12949 esac
12950 ;;
12951 esac
12952 ;;
12953 lynxos*)
12954 ;;
12955 m88k*)
12956 ;;
12957 mvs*)
12958 case $cc_basename in
12959 cxx*)
12960 lt_prog_compiler_pic_CXX='-W c,exportall'
12961 ;;
12962 *)
12963 ;;
12964 esac
12965 ;;
12966 netbsd* | netbsdelf*-gnu)
12967 ;;
12968 *qnx* | *nto*)
12969 # QNX uses GNU C++, but need to define -shared option too, otherwise
12970 # it will coredump.
12971 lt_prog_compiler_pic_CXX='-fPIC -shared'
12972 ;;
12973 osf3* | osf4* | osf5*)
12974 case $cc_basename in
12975 KCC*)
12976 lt_prog_compiler_wl_CXX='--backend -Wl,'
12977 ;;
12978 RCC*)
12979 # Rational C++ 2.4.1
12980 lt_prog_compiler_pic_CXX='-pic'
12981 ;;
12982 cxx*)
12983 # Digital/Compaq C++
12984 lt_prog_compiler_wl_CXX='-Wl,'
12985 # Make sure the PIC flag is empty. It appears that all Alpha
12986 # Linux and Compaq Tru64 Unix objects are PIC.
12987 lt_prog_compiler_pic_CXX=
12988 lt_prog_compiler_static_CXX='-non_shared'
12989 ;;
12990 *)
12991 ;;
12992 esac
12993 ;;
12994 psos*)
12995 ;;
12996 solaris*)
12997 case $cc_basename in
12998 CC*)
12999 # Sun C++ 4.2, 5.x and Centerline C++
13000 lt_prog_compiler_pic_CXX='-KPIC'
13001 lt_prog_compiler_static_CXX='-Bstatic'
13002 lt_prog_compiler_wl_CXX='-Qoption ld '
13003 ;;
13004 gcx*)
13005 # Green Hills C++ Compiler
13006 lt_prog_compiler_pic_CXX='-PIC'
13007 ;;
13008 *)
13009 ;;
13010 esac
13011 ;;
13012 sunos4*)
13013 case $cc_basename in
13014 CC*)
13015 # Sun C++ 4.x
13016 lt_prog_compiler_pic_CXX='-pic'
13017 lt_prog_compiler_static_CXX='-Bstatic'
13018 ;;
13019 lcc*)
13020 # Lucid
13021 lt_prog_compiler_pic_CXX='-pic'
13022 ;;
13023 *)
13024 ;;
13025 esac
13026 ;;
13027 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13028 case $cc_basename in
13029 CC*)
13030 lt_prog_compiler_wl_CXX='-Wl,'
13031 lt_prog_compiler_pic_CXX='-KPIC'
13032 lt_prog_compiler_static_CXX='-Bstatic'
13033 ;;
13034 esac
13035 ;;
13036 tandem*)
13037 case $cc_basename in
13038 NCC*)
13039 # NonStop-UX NCC 3.20
13040 lt_prog_compiler_pic_CXX='-KPIC'
13041 ;;
13042 *)
13043 ;;
13044 esac
13045 ;;
13046 vxworks*)
13047 ;;
13048 *)
13049 lt_prog_compiler_can_build_shared_CXX=no
13050 ;;
13051 esac
13052 fi
13053
13054case $host_os in
13055 # For platforms which do not support PIC, -DPIC is meaningless:
13056 *djgpp*)
13057 lt_prog_compiler_pic_CXX=
13058 ;;
13059 *)
13060 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13061 ;;
13062esac
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13064$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13065
13066
13067
13068#
13069# Check to make sure the PIC flag actually works.
13070#
13071if test -n "$lt_prog_compiler_pic_CXX"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13073$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13074if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13075 $as_echo_n "(cached) " >&6
13076else
13077 lt_cv_prog_compiler_pic_works_CXX=no
13078 ac_outfile=conftest.$ac_objext
13079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13080 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13081 # Insert the option either (1) after the last *FLAGS variable, or
13082 # (2) before a word containing "conftest.", or (3) at the end.
13083 # Note that $ac_compile itself does not contain backslashes and begins
13084 # with a dollar sign (not a hyphen), so the echo should work correctly.
13085 # The option is referenced via a variable to avoid confusing sed.
13086 lt_compile=`echo "$ac_compile" | $SED \
13087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13089 -e 's:$: $lt_compiler_flag:'`
b5bd4353 13090 (eval echo "\"\$as_me:13090: $lt_compile\"" >&5)
9c60689e
DWT
13091 (eval "$lt_compile" 2>conftest.err)
13092 ac_status=$?
13093 cat conftest.err >&5
b5bd4353 13094 echo "$as_me:13094: \$? = $ac_status" >&5
9c60689e
DWT
13095 if (exit $ac_status) && test -s "$ac_outfile"; then
13096 # The compiler can only warn and ignore the option if not recognized
13097 # So say no if there are warnings other than the usual output.
13098 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13101 lt_cv_prog_compiler_pic_works_CXX=yes
13102 fi
13103 fi
13104 $RM conftest*
13105
13106fi
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13108$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13109
13110if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13111 case $lt_prog_compiler_pic_CXX in
13112 "" | " "*) ;;
13113 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13114 esac
13115else
13116 lt_prog_compiler_pic_CXX=
13117 lt_prog_compiler_can_build_shared_CXX=no
13118fi
13119
13120fi
13121
13122
13123
47aaa820
DWT
13124#
13125# Check to make sure the static flag actually works.
13126#
13127wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13129$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13130if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13131 $as_echo_n "(cached) " >&6
13132else
13133 lt_cv_prog_compiler_static_works_CXX=no
13134 save_LDFLAGS="$LDFLAGS"
13135 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13138 # The linker can only warn and ignore the option if not recognized
13139 # So say no if there are warnings
13140 if test -s conftest.err; then
13141 # Append any errors to the config.log.
13142 cat conftest.err 1>&5
13143 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13145 if diff conftest.exp conftest.er2 >/dev/null; then
13146 lt_cv_prog_compiler_static_works_CXX=yes
13147 fi
13148 else
13149 lt_cv_prog_compiler_static_works_CXX=yes
13150 fi
13151 fi
13152 $RM -r conftest*
13153 LDFLAGS="$save_LDFLAGS"
13154
13155fi
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13157$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13158
13159if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13160 :
13161else
13162 lt_prog_compiler_static_CXX=
13163fi
13164
13165
13166
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13170if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172else
13173 lt_cv_prog_compiler_c_o_CXX=no
13174 $RM -r conftest 2>/dev/null
13175 mkdir conftest
13176 cd conftest
13177 mkdir out
13178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13179
13180 lt_compiler_flag="-o out/conftest2.$ac_objext"
13181 # Insert the option either (1) after the last *FLAGS variable, or
13182 # (2) before a word containing "conftest.", or (3) at the end.
13183 # Note that $ac_compile itself does not contain backslashes and begins
13184 # with a dollar sign (not a hyphen), so the echo should work correctly.
13185 lt_compile=`echo "$ac_compile" | $SED \
13186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13188 -e 's:$: $lt_compiler_flag:'`
b5bd4353 13189 (eval echo "\"\$as_me:13189: $lt_compile\"" >&5)
47aaa820
DWT
13190 (eval "$lt_compile" 2>out/conftest.err)
13191 ac_status=$?
13192 cat out/conftest.err >&5
b5bd4353 13193 echo "$as_me:13193: \$? = $ac_status" >&5
47aaa820
DWT
13194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13195 then
13196 # The compiler can only warn and ignore the option if not recognized
13197 # So say no if there are warnings
13198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13201 lt_cv_prog_compiler_c_o_CXX=yes
13202 fi
13203 fi
13204 chmod u+w . 2>&5
13205 $RM conftest*
13206 # SGI C++ compiler will create directory out/ii_files/ for
13207 # template instantiation
13208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13209 $RM out/* && rmdir out
13210 cd ..
13211 $RM -r conftest
13212 $RM conftest*
13213
13214fi
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13216$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13217
13218
13219
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13222if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224else
13225 lt_cv_prog_compiler_c_o_CXX=no
13226 $RM -r conftest 2>/dev/null
13227 mkdir conftest
13228 cd conftest
13229 mkdir out
13230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13231
13232 lt_compiler_flag="-o out/conftest2.$ac_objext"
13233 # Insert the option either (1) after the last *FLAGS variable, or
13234 # (2) before a word containing "conftest.", or (3) at the end.
13235 # Note that $ac_compile itself does not contain backslashes and begins
13236 # with a dollar sign (not a hyphen), so the echo should work correctly.
13237 lt_compile=`echo "$ac_compile" | $SED \
13238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13240 -e 's:$: $lt_compiler_flag:'`
b5bd4353 13241 (eval echo "\"\$as_me:13241: $lt_compile\"" >&5)
47aaa820
DWT
13242 (eval "$lt_compile" 2>out/conftest.err)
13243 ac_status=$?
13244 cat out/conftest.err >&5
b5bd4353 13245 echo "$as_me:13245: \$? = $ac_status" >&5
47aaa820
DWT
13246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13247 then
13248 # The compiler can only warn and ignore the option if not recognized
13249 # So say no if there are warnings
13250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13253 lt_cv_prog_compiler_c_o_CXX=yes
13254 fi
13255 fi
13256 chmod u+w . 2>&5
13257 $RM conftest*
13258 # SGI C++ compiler will create directory out/ii_files/ for
13259 # template instantiation
13260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13261 $RM out/* && rmdir out
13262 cd ..
13263 $RM -r conftest
13264 $RM conftest*
13265
13266fi
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13268$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13269
13270
13271
13272
13273hard_links="nottested"
13274if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13275 # do not overwrite the value of need_locks provided by the user
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13277$as_echo_n "checking if we can lock with hard links... " >&6; }
13278 hard_links=yes
13279 $RM conftest*
13280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13281 touch conftest.a
13282 ln conftest.a conftest.b 2>&5 || hard_links=no
13283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13285$as_echo "$hard_links" >&6; }
13286 if test "$hard_links" = no; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13288$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13289 need_locks=warn
13290 fi
13291else
13292 need_locks=no
13293fi
13294
13295
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13298$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13299
13300 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13301 case $host_os in
13302 aix[4-9]*)
13303 # If we're using GNU nm, then we don't want the "-C" option.
13304 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13305 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13306 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'
13307 else
13308 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'
13309 fi
13310 ;;
13311 pw32*)
13312 export_symbols_cmds_CXX="$ltdll_cmds"
13313 ;;
13314 cygwin* | mingw* | cegcc*)
13315 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'
13316 ;;
13317 linux* | k*bsd*-gnu)
13318 link_all_deplibs_CXX=no
13319 ;;
13320 *)
13321 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13322 ;;
13323 esac
13324 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13325
13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13327$as_echo "$ld_shlibs_CXX" >&6; }
13328test "$ld_shlibs_CXX" = no && can_build_shared=no
13329
13330with_gnu_ld_CXX=$with_gnu_ld
13331
13332
13333
13334
13335
13336
13337#
13338# Do we need to explicitly link libc?
13339#
13340case "x$archive_cmds_need_lc_CXX" in
13341x|xyes)
13342 # Assume -lc should be added
13343 archive_cmds_need_lc_CXX=yes
13344
13345 if test "$enable_shared" = yes && test "$GCC" = yes; then
13346 case $archive_cmds_CXX in
13347 *'~'*)
13348 # FIXME: we may have to deal with multi-command sequences.
13349 ;;
13350 '$CC '*)
13351 # Test whether the compiler implicitly links with -lc since on some
13352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13353 # to ld, don't add -lc before -lgcc.
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13355$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13356 $RM conftest*
13357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13358
13359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13360 (eval $ac_compile) 2>&5
13361 ac_status=$?
13362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363 test $ac_status = 0; } 2>conftest.err; then
13364 soname=conftest
13365 lib=conftest
13366 libobjs=conftest.$ac_objext
13367 deplibs=
13368 wl=$lt_prog_compiler_wl_CXX
13369 pic_flag=$lt_prog_compiler_pic_CXX
13370 compiler_flags=-v
13371 linker_flags=-v
13372 verstring=
13373 output_objdir=.
13374 libname=conftest
13375 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13376 allow_undefined_flag_CXX=
13377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13378 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }
13382 then
13383 archive_cmds_need_lc_CXX=no
13384 else
13385 archive_cmds_need_lc_CXX=yes
13386 fi
13387 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13388 else
13389 cat conftest.err 1>&5
13390 fi
13391 $RM conftest*
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13393$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13394 ;;
13395 esac
13396 fi
13397 ;;
13398esac
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13464$as_echo_n "checking dynamic linker characteristics... " >&6; }
13465
13466library_names_spec=
13467libname_spec='lib$name'
13468soname_spec=
13469shrext_cmds=".so"
13470postinstall_cmds=
13471postuninstall_cmds=
13472finish_cmds=
13473finish_eval=
13474shlibpath_var=
13475shlibpath_overrides_runpath=unknown
13476version_type=none
13477dynamic_linker="$host_os ld.so"
13478sys_lib_dlsearch_path_spec="/lib /usr/lib"
13479need_lib_prefix=unknown
13480hardcode_into_libs=no
13481
13482# when you set need_version to no, make sure it does not cause -set_version
13483# flags to be left without arguments
13484need_version=unknown
13485
13486case $host_os in
13487aix3*)
13488 version_type=linux
13489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13490 shlibpath_var=LIBPATH
13491
13492 # AIX 3 has no versioning support, so we append a major version to the name.
13493 soname_spec='${libname}${release}${shared_ext}$major'
13494 ;;
13495
13496aix[4-9]*)
13497 version_type=linux
13498 need_lib_prefix=no
13499 need_version=no
13500 hardcode_into_libs=yes
13501 if test "$host_cpu" = ia64; then
13502 # AIX 5 supports IA64
13503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13504 shlibpath_var=LD_LIBRARY_PATH
13505 else
13506 # With GCC up to 2.95.x, collect2 would create an import file
13507 # for dependence libraries. The import file would start with
13508 # the line `#! .'. This would cause the generated library to
13509 # depend on `.', always an invalid library. This was fixed in
13510 # development snapshots of GCC prior to 3.0.
13511 case $host_os in
13512 aix4 | aix4.[01] | aix4.[01].*)
13513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13514 echo ' yes '
13515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13516 :
13517 else
13518 can_build_shared=no
13519 fi
13520 ;;
13521 esac
13522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13523 # soname into executable. Probably we can add versioning support to
13524 # collect2, so additional links can be useful in future.
13525 if test "$aix_use_runtimelinking" = yes; then
13526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13527 # instead of lib<name>.a to let people know that these are not
13528 # typical AIX shared libraries.
13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 else
13531 # We preserve .a as extension for shared libraries through AIX4.2
13532 # and later when we are not doing run time linking.
13533 library_names_spec='${libname}${release}.a $libname.a'
13534 soname_spec='${libname}${release}${shared_ext}$major'
13535 fi
13536 shlibpath_var=LIBPATH
13537 fi
13538 ;;
13539
13540amigaos*)
13541 case $host_cpu in
13542 powerpc)
13543 # Since July 2007 AmigaOS4 officially supports .so libraries.
13544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546 ;;
13547 m68k)
13548 library_names_spec='$libname.ixlibrary $libname.a'
13549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13550 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'
13551 ;;
13552 esac
13553 ;;
13554
13555beos*)
13556 library_names_spec='${libname}${shared_ext}'
13557 dynamic_linker="$host_os ld.so"
13558 shlibpath_var=LIBRARY_PATH
13559 ;;
13560
13561bsdi[45]*)
13562 version_type=linux
13563 need_version=no
13564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13565 soname_spec='${libname}${release}${shared_ext}$major'
13566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13570 # the default ld.so.conf also contains /usr/contrib/lib and
13571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13572 # libtool to hard-code these into programs
13573 ;;
9c60689e 13574
47aaa820
DWT
13575cygwin* | mingw* | pw32* | cegcc*)
13576 version_type=windows
13577 shrext_cmds=".dll"
13578 need_version=no
13579 need_lib_prefix=no
9c60689e 13580
47aaa820
DWT
13581 case $GCC,$host_os in
13582 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13583 library_names_spec='$libname.dll.a'
13584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13585 postinstall_cmds='base_file=`basename \${file}`~
13586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13587 dldir=$destdir/`dirname \$dlpath`~
13588 test -d \$dldir || mkdir -p \$dldir~
13589 $install_prog $dir/$dlname \$dldir/$dlname~
13590 chmod a+x \$dldir/$dlname~
13591 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13592 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13593 fi'
13594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13595 dlpath=$dir/\$dldll~
13596 $RM \$dlpath'
13597 shlibpath_overrides_runpath=yes
9c60689e 13598
47aaa820
DWT
13599 case $host_os in
13600 cygwin*)
13601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13604 ;;
13605 mingw* | cegcc*)
13606 # MinGW DLLs use traditional 'lib' prefix
13607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13608 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13609 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13610 # It is most probably a Windows format PATH printed by
13611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13612 # path with ; separators, and with drive letters. We can handle the
13613 # drive letters (cygwin fileutils understands them), so leave them,
13614 # especially as we might pass files found there to a mingw objdump,
13615 # which wouldn't understand a cygwinified path. Ahh.
13616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13617 else
13618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13619 fi
13620 ;;
13621 pw32*)
13622 # pw32 DLLs use 'pw' prefix rather than 'lib'
13623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13624 ;;
13625 esac
13626 ;;
9c60689e 13627
47aaa820
DWT
13628 *)
13629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13630 ;;
13631 esac
13632 dynamic_linker='Win32 ld.exe'
13633 # FIXME: first we should search . and the directory the executable is in
13634 shlibpath_var=PATH
13635 ;;
9c60689e 13636
47aaa820
DWT
13637darwin* | rhapsody*)
13638 dynamic_linker="$host_os dyld"
13639 version_type=darwin
13640 need_lib_prefix=no
13641 need_version=no
13642 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13643 soname_spec='${libname}${release}${major}$shared_ext'
13644 shlibpath_overrides_runpath=yes
13645 shlibpath_var=DYLD_LIBRARY_PATH
13646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13647
47aaa820
DWT
13648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13649 ;;
9c60689e 13650
47aaa820
DWT
13651dgux*)
13652 version_type=linux
13653 need_lib_prefix=no
13654 need_version=no
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 ;;
9c60689e 13659
47aaa820
DWT
13660freebsd1*)
13661 dynamic_linker=no
13662 ;;
9c60689e 13663
47aaa820
DWT
13664freebsd* | dragonfly*)
13665 # DragonFly does not have aout. When/if they implement a new
13666 # versioning mechanism, adjust this.
13667 if test -x /usr/bin/objformat; then
13668 objformat=`/usr/bin/objformat`
13669 else
13670 case $host_os in
13671 freebsd[123]*) objformat=aout ;;
13672 *) objformat=elf ;;
13673 esac
13674 fi
13675 version_type=freebsd-$objformat
13676 case $version_type in
13677 freebsd-elf*)
13678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13679 need_version=no
13680 need_lib_prefix=no
13681 ;;
13682 freebsd-*)
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13684 need_version=yes
13685 ;;
13686 esac
13687 shlibpath_var=LD_LIBRARY_PATH
13688 case $host_os in
13689 freebsd2*)
13690 shlibpath_overrides_runpath=yes
13691 ;;
13692 freebsd3.[01]* | freebsdelf3.[01]*)
13693 shlibpath_overrides_runpath=yes
13694 hardcode_into_libs=yes
13695 ;;
13696 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13697 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13698 shlibpath_overrides_runpath=no
13699 hardcode_into_libs=yes
13700 ;;
13701 *) # from 4.6 on, and DragonFly
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13704 ;;
13705 esac
13706 ;;
9c60689e 13707
47aaa820
DWT
13708gnu*)
13709 version_type=linux
13710 need_lib_prefix=no
13711 need_version=no
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13713 soname_spec='${libname}${release}${shared_ext}$major'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 hardcode_into_libs=yes
13716 ;;
9c60689e 13717
47aaa820
DWT
13718hpux9* | hpux10* | hpux11*)
13719 # Give a soname corresponding to the major version so that dld.sl refuses to
13720 # link against other versions.
13721 version_type=sunos
13722 need_lib_prefix=no
13723 need_version=no
13724 case $host_cpu in
13725 ia64*)
13726 shrext_cmds='.so'
13727 hardcode_into_libs=yes
13728 dynamic_linker="$host_os dld.so"
13729 shlibpath_var=LD_LIBRARY_PATH
13730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13733 if test "X$HPUX_IA64_MODE" = X32; then
13734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13735 else
13736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13737 fi
13738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13739 ;;
13740 hppa*64*)
13741 shrext_cmds='.sl'
13742 hardcode_into_libs=yes
13743 dynamic_linker="$host_os dld.sl"
13744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13750 ;;
13751 *)
13752 shrext_cmds='.sl'
13753 dynamic_linker="$host_os dld.sl"
13754 shlibpath_var=SHLIB_PATH
13755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757 soname_spec='${libname}${release}${shared_ext}$major'
13758 ;;
13759 esac
13760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13761 postinstall_cmds='chmod 555 $lib'
13762 ;;
9c60689e 13763
47aaa820
DWT
13764interix[3-9]*)
13765 version_type=linux
13766 need_lib_prefix=no
13767 need_version=no
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13771 shlibpath_var=LD_LIBRARY_PATH
13772 shlibpath_overrides_runpath=no
13773 hardcode_into_libs=yes
13774 ;;
9c60689e 13775
47aaa820
DWT
13776irix5* | irix6* | nonstopux*)
13777 case $host_os in
13778 nonstopux*) version_type=nonstopux ;;
13779 *)
13780 if test "$lt_cv_prog_gnu_ld" = yes; then
13781 version_type=linux
13782 else
13783 version_type=irix
13784 fi ;;
13785 esac
13786 need_lib_prefix=no
13787 need_version=no
13788 soname_spec='${libname}${release}${shared_ext}$major'
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13790 case $host_os in
13791 irix5* | nonstopux*)
13792 libsuff= shlibsuff=
13793 ;;
13794 *)
13795 case $LD in # libtool.m4 will add one of these switches to LD
13796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13797 libsuff= shlibsuff= libmagic=32-bit;;
13798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13799 libsuff=32 shlibsuff=N32 libmagic=N32;;
13800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13802 *) libsuff= shlibsuff= libmagic=never-match;;
13803 esac
13804 ;;
13805 esac
13806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13807 shlibpath_overrides_runpath=no
13808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13810 hardcode_into_libs=yes
13811 ;;
9c60689e 13812
47aaa820
DWT
13813# No shared lib support for Linux oldld, aout, or coff.
13814linux*oldld* | linux*aout* | linux*coff*)
13815 dynamic_linker=no
13816 ;;
9c60689e 13817
47aaa820
DWT
13818# This must be Linux ELF.
13819linux* | k*bsd*-gnu | kopensolaris*-gnu)
13820 version_type=linux
13821 need_lib_prefix=no
13822 need_version=no
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 shlibpath_overrides_runpath=no
13828 # Some binutils ld are patched to set DT_RUNPATH
13829 save_LDFLAGS=$LDFLAGS
13830 save_libdir=$libdir
13831 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13832 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834/* end confdefs.h. */
9c60689e 13835
47aaa820
DWT
13836int
13837main ()
13838{
9c60689e 13839
47aaa820
DWT
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844if ac_fn_cxx_try_link "$LINENO"; then :
13845 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13846 shlibpath_overrides_runpath=yes
9c60689e 13847fi
47aaa820
DWT
13848fi
13849rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LDFLAGS=$save_LDFLAGS
13852 libdir=$save_libdir
9c60689e 13853
47aaa820
DWT
13854 # This implies no fast_install, which is unacceptable.
13855 # Some rework will be needed to allow for fast_install
13856 # before this can be enabled.
13857 hardcode_into_libs=yes
9c60689e 13858
47aaa820
DWT
13859 # Append ld.so.conf contents to the search path
13860 if test -f /etc/ld.so.conf; then
13861 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' ' '`
13862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13863 fi
9c60689e 13864
47aaa820
DWT
13865 # We used to test for /lib/ld.so.1 and disable shared libraries on
13866 # powerpc, because MkLinux only supported shared libraries with the
13867 # GNU dynamic linker. Since this was broken with cross compilers,
13868 # most powerpc-linux boxes support dynamic linking these days and
13869 # people can always --disable-shared, the test was removed, and we
13870 # assume the GNU/Linux dynamic linker is in use.
13871 dynamic_linker='GNU/Linux ld.so'
9c60689e 13872 ;;
47aaa820
DWT
13873
13874netbsdelf*-gnu)
13875 version_type=linux
13876 need_lib_prefix=no
13877 need_version=no
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=no
13882 hardcode_into_libs=yes
13883 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13884 ;;
47aaa820
DWT
13885
13886netbsd*)
13887 version_type=sunos
13888 need_lib_prefix=no
13889 need_version=no
13890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13893 dynamic_linker='NetBSD (a.out) ld.so'
13894 else
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13896 soname_spec='${libname}${release}${shared_ext}$major'
13897 dynamic_linker='NetBSD ld.elf_so'
13898 fi
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=yes
13901 hardcode_into_libs=yes
9c60689e 13902 ;;
9c60689e 13903
47aaa820
DWT
13904newsos6)
13905 version_type=linux
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=yes
13909 ;;
9c60689e 13910
47aaa820
DWT
13911*nto* | *qnx*)
13912 version_type=qnx
13913 need_lib_prefix=no
13914 need_version=no
13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 shlibpath_overrides_runpath=no
13919 hardcode_into_libs=yes
13920 dynamic_linker='ldqnx.so'
13921 ;;
9c60689e 13922
47aaa820
DWT
13923openbsd*)
13924 version_type=sunos
13925 sys_lib_dlsearch_path_spec="/usr/lib"
13926 need_lib_prefix=no
13927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13928 case $host_os in
13929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13930 *) need_version=no ;;
13931 esac
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13936 case $host_os in
13937 openbsd2.[89] | openbsd2.[89].*)
13938 shlibpath_overrides_runpath=no
13939 ;;
13940 *)
13941 shlibpath_overrides_runpath=yes
13942 ;;
13943 esac
13944 else
13945 shlibpath_overrides_runpath=yes
13946 fi
13947 ;;
9c60689e 13948
47aaa820
DWT
13949os2*)
13950 libname_spec='$name'
13951 shrext_cmds=".dll"
13952 need_lib_prefix=no
13953 library_names_spec='$libname${shared_ext} $libname.a'
13954 dynamic_linker='OS/2 ld.exe'
13955 shlibpath_var=LIBPATH
13956 ;;
9c60689e 13957
47aaa820
DWT
13958osf3* | osf4* | osf5*)
13959 version_type=osf
13960 need_lib_prefix=no
13961 need_version=no
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13967 ;;
9c60689e 13968
47aaa820
DWT
13969rdos*)
13970 dynamic_linker=no
13971 ;;
9c60689e 13972
47aaa820
DWT
13973solaris*)
13974 version_type=linux
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 hardcode_into_libs=yes
13982 # ldd complains unless libraries are executable
13983 postinstall_cmds='chmod +x $lib'
13984 ;;
9c60689e 13985
47aaa820
DWT
13986sunos4*)
13987 version_type=sunos
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes
13992 if test "$with_gnu_ld" = yes; then
13993 need_lib_prefix=no
13994 fi
13995 need_version=yes
13996 ;;
9c60689e 13997
47aaa820
DWT
13998sysv4 | sysv4.3*)
13999 version_type=linux
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 case $host_vendor in
14004 sni)
14005 shlibpath_overrides_runpath=no
14006 need_lib_prefix=no
14007 runpath_var=LD_RUN_PATH
9c60689e 14008 ;;
47aaa820
DWT
14009 siemens)
14010 need_lib_prefix=no
9c60689e 14011 ;;
47aaa820
DWT
14012 motorola)
14013 need_lib_prefix=no
14014 need_version=no
14015 shlibpath_overrides_runpath=no
14016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14017 ;;
14018 esac
9c60689e 14019 ;;
9c60689e 14020
47aaa820
DWT
14021sysv4*MP*)
14022 if test -d /usr/nec ;then
14023 version_type=linux
14024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14025 soname_spec='$libname${shared_ext}.$major'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 fi
14028 ;;
9c60689e 14029
47aaa820
DWT
14030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14031 version_type=freebsd-elf
14032 need_lib_prefix=no
14033 need_version=no
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=yes
14038 hardcode_into_libs=yes
14039 if test "$with_gnu_ld" = yes; then
14040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14041 else
14042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14043 case $host_os in
14044 sco3.2v5*)
14045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14046 ;;
14047 esac
14048 fi
14049 sys_lib_dlsearch_path_spec='/usr/lib'
14050 ;;
9c60689e 14051
47aaa820
DWT
14052tpf*)
14053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14054 version_type=linux
14055 need_lib_prefix=no
14056 need_version=no
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 shlibpath_overrides_runpath=no
14060 hardcode_into_libs=yes
14061 ;;
9c60689e 14062
47aaa820
DWT
14063uts4*)
14064 version_type=linux
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 ;;
9c60689e 14069
47aaa820
DWT
14070*)
14071 dynamic_linker=no
e9c9a47c
DWT
14072 ;;
14073esac
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14075$as_echo "$dynamic_linker" >&6; }
14076test "$dynamic_linker" = no && can_build_shared=no
14077
14078variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14079if test "$GCC" = yes; then
14080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 14081fi
9c60689e 14082
e9c9a47c
DWT
14083if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14084 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 14085fi
e9c9a47c
DWT
14086if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14087 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 14088fi
9c60689e 14089
9c60689e 14090
9c60689e 14091
9c60689e 14092
47aaa820 14093
47aaa820 14094
47aaa820 14095
9c60689e 14096
9c60689e 14097
47aaa820 14098
47aaa820 14099
47aaa820 14100
47aaa820 14101
47aaa820 14102
47aaa820 14103
47aaa820 14104
47aaa820 14105
9c60689e 14106
9c60689e 14107
9c60689e 14108
9c60689e 14109
9c60689e 14110
e9c9a47c
DWT
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14126$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14127hardcode_action_CXX=
14128if test -n "$hardcode_libdir_flag_spec_CXX" ||
14129 test -n "$runpath_var_CXX" ||
14130 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14131
14132 # We can hardcode non-existent directories.
14133 if test "$hardcode_direct_CXX" != no &&
14134 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14135 # have to relink, otherwise we might link with an installed library
14136 # when we should be linking with a yet-to-be-installed one
14137 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14138 test "$hardcode_minus_L_CXX" != no; then
14139 # Linking always hardcodes the temporary library directory.
14140 hardcode_action_CXX=relink
14141 else
14142 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14143 hardcode_action_CXX=immediate
14144 fi
14145else
14146 # We cannot hardcode anything, or else we can only hardcode existing
14147 # directories.
14148 hardcode_action_CXX=unsupported
14149fi
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14151$as_echo "$hardcode_action_CXX" >&6; }
14152
14153if test "$hardcode_action_CXX" = relink ||
14154 test "$inherit_rpath_CXX" = yes; then
14155 # Fast installation is not supported
14156 enable_fast_install=no
14157elif test "$shlibpath_overrides_runpath" = yes ||
14158 test "$enable_shared" = no; then
14159 # Fast installation is not necessary
14160 enable_fast_install=needless
47aaa820 14161fi
9c60689e 14162
47aaa820 14163
47aaa820 14164
e9c9a47c
DWT
14165
14166
14167
14168
14169 fi # test -n "$compiler"
14170
14171 CC=$lt_save_CC
14172 LDCXX=$LD
14173 LD=$lt_save_LD
14174 GCC=$lt_save_GCC
14175 with_gnu_ld=$lt_save_with_gnu_ld
14176 lt_cv_path_LDCXX=$lt_cv_path_LD
14177 lt_cv_path_LD=$lt_save_path_LD
14178 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14179 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14180fi # test "$_lt_caught_CXX_error" != yes
14181
14182ac_ext=c
14183ac_cpp='$CPP $CPPFLAGS'
14184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186ac_compiler_gnu=$ac_cv_c_compiler_gnu
14187
14188
14189ac_ext=mm
14190ac_cpp='$OBJCXXCPP $CPPFLAGS'
14191ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14192ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14193ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14194if test -n "$ac_tool_prefix"; then
14195 for ac_prog in g++ objc++ objcxx c++ CXX
14196 do
14197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
632b71ea
DWT
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 14201if test "${ac_cv_prog_OBJCXX+set}" = set; then :
632b71ea
DWT
14202 $as_echo_n "(cached) " >&6
14203else
e9c9a47c
DWT
14204 if test -n "$OBJCXX"; then
14205 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
632b71ea
DWT
14206else
14207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208for as_dir in $PATH
14209do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14214 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
632b71ea
DWT
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218done
14219 done
14220IFS=$as_save_IFS
14221
14222fi
14223fi
e9c9a47c
DWT
14224OBJCXX=$ac_cv_prog_OBJCXX
14225if test -n "$OBJCXX"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14227$as_echo "$OBJCXX" >&6; }
632b71ea
DWT
14228else
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230$as_echo "no" >&6; }
14231fi
14232
14233
e9c9a47c
DWT
14234 test -n "$OBJCXX" && break
14235 done
632b71ea 14236fi
e9c9a47c
DWT
14237if test -z "$OBJCXX"; then
14238 ac_ct_OBJCXX=$OBJCXX
14239 for ac_prog in g++ objc++ objcxx c++ CXX
47aaa820
DWT
14240do
14241 # Extract the first word of "$ac_prog", so it can be a program name with args.
14242set dummy $ac_prog; ac_word=$2
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14244$as_echo_n "checking for $ac_word... " >&6; }
e9c9a47c 14245if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
47aaa820
DWT
14246 $as_echo_n "(cached) " >&6
14247else
e9c9a47c
DWT
14248 if test -n "$ac_ct_OBJCXX"; then
14249 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
47aaa820
DWT
14250else
14251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252for as_dir in $PATH
14253do
14254 IFS=$as_save_IFS
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e9c9a47c 14258 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
47aaa820
DWT
14259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14260 break 2
14261 fi
14262done
14263 done
14264IFS=$as_save_IFS
9c60689e 14265
9c60689e 14266fi
9c60689e 14267fi
e9c9a47c
DWT
14268ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
14269if test -n "$ac_ct_OBJCXX"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
14271$as_echo "$ac_ct_OBJCXX" >&6; }
47aaa820
DWT
14272else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274$as_echo "no" >&6; }
9c60689e
DWT
14275fi
14276
14277
e9c9a47c 14278 test -n "$ac_ct_OBJCXX" && break
47aaa820 14279done
e9c9a47c
DWT
14280
14281 if test "x$ac_ct_OBJCXX" = x; then
14282 OBJCXX="g++"
14283 else
14284 case $cross_compiling:$ac_tool_warned in
14285yes:)
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14288ac_tool_warned=yes ;;
14289esac
14290 OBJCXX=$ac_ct_OBJCXX
14291 fi
14292fi
14293
14294# Provide some information about the compiler.
14295$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
14296set X $ac_compile
14297ac_compiler=$2
14298for ac_option in --version -v -V -qversion; do
14299 { { ac_try="$ac_compiler $ac_option >&5"
632b71ea
DWT
14300case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14305$as_echo "$ac_try_echo"; } >&5
e9c9a47c 14306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
632b71ea 14307 ac_status=$?
e9c9a47c
DWT
14308 if test -s conftest.err; then
14309 sed '10a\
14310... rest of stderr output deleted ...
14311 10q' conftest.err >conftest.er1
14312 cat conftest.er1 >&5
14313 fi
14314 rm -f conftest.er1 conftest.err
632b71ea
DWT
14315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14316 test $ac_status = 0; }
e9c9a47c 14317done
9c60689e 14318
e9c9a47c
DWT
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
14320$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
14321if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
632b71ea
DWT
14322 $as_echo_n "(cached) " >&6
14323else
e9c9a47c 14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 14325/* end confdefs.h. */
e9c9a47c
DWT
14326
14327int
14328main ()
14329{
14330#ifndef __GNUC__
14331 choke me
14332#endif
14333
14334 ;
14335 return 0;
14336}
632b71ea 14337_ACEOF
e9c9a47c
DWT
14338if ac_fn_objcxx_try_compile "$LINENO"; then :
14339 ac_compiler_gnu=yes
14340else
14341 ac_compiler_gnu=no
632b71ea 14342fi
e9c9a47c
DWT
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 14345
632b71ea 14346fi
e9c9a47c
DWT
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
14348$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
14349if test $ac_compiler_gnu = yes; then
14350 GOBJCXX=yes
14351else
14352 GOBJCXX=
632b71ea 14353fi
e9c9a47c
DWT
14354ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
14355ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
14357$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
14358if test "${ac_cv_prog_objcxx_g+set}" = set; then :
632b71ea 14359 $as_echo_n "(cached) " >&6
47aaa820 14360else
e9c9a47c
DWT
14361 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
14362 ac_objcxx_werror_flag=yes
14363 ac_cv_prog_objcxx_g=no
14364 OBJCXXFLAGS="-g"
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 14366/* end confdefs.h. */
9c60689e 14367
e9c9a47c
DWT
14368int
14369main ()
14370{
9c60689e 14371
e9c9a47c
DWT
14372 ;
14373 return 0;
14374}
14375_ACEOF
14376if ac_fn_objcxx_try_compile "$LINENO"; then :
14377 ac_cv_prog_objcxx_g=yes
632b71ea 14378else
e9c9a47c
DWT
14379 OBJCXXFLAGS=""
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h. */
9c60689e 14382
e9c9a47c
DWT
14383int
14384main ()
14385{
9c60689e 14386
e9c9a47c
DWT
14387 ;
14388 return 0;
14389}
14390_ACEOF
14391if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 14392
47aaa820 14393else
e9c9a47c
DWT
14394 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
14395 OBJCXXFLAGS="-g"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397/* end confdefs.h. */
9c60689e 14398
e9c9a47c
DWT
14399int
14400main ()
14401{
9c60689e 14402
e9c9a47c
DWT
14403 ;
14404 return 0;
14405}
14406_ACEOF
14407if ac_fn_objcxx_try_compile "$LINENO"; then :
14408 ac_cv_prog_objcxx_g=yes
47aaa820 14409fi
e9c9a47c 14410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 14411fi
e9c9a47c 14412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47aaa820 14413fi
e9c9a47c
DWT
14414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
790e5246 14416fi
e9c9a47c
DWT
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
14418$as_echo "$ac_cv_prog_objcxx_g" >&6; }
14419if test "$ac_test_OBJCXXFLAGS" = set; then
14420 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
14421elif test $ac_cv_prog_objcxx_g = yes; then
14422 if test "$GOBJCXX" = yes; then
14423 OBJCXXFLAGS="-g -O2"
14424 else
14425 OBJCXXFLAGS="-g"
632b71ea 14426 fi
632b71ea 14427else
e9c9a47c
DWT
14428 if test "$GOBJCXX" = yes; then
14429 OBJCXXFLAGS="-O2"
14430 else
14431 OBJCXXFLAGS=
14432 fi
632b71ea 14433fi
e9c9a47c
DWT
14434ac_ext=c
14435ac_cpp='$CPP $CPPFLAGS'
14436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 14439
9c60689e 14440
e9c9a47c
DWT
14441# Check whether --with-frameworks was given.
14442if test "${with_frameworks+set}" = set; then :
14443 withval=$with_frameworks;
14444 for framework in $withval; do
9c60689e 14445
e9c9a47c
DWT
14446 for element in -F$framework; do
14447 haveit=
14448 for x in $CFLAGS; do
9c60689e 14449
e9c9a47c
DWT
14450 acl_save_prefix="$prefix"
14451 prefix="$acl_final_prefix"
14452 acl_save_exec_prefix="$exec_prefix"
14453 exec_prefix="$acl_final_exec_prefix"
14454 eval x=\"$x\"
14455 exec_prefix="$acl_save_exec_prefix"
14456 prefix="$acl_save_prefix"
14457
14458 if test "X$x" = "X$element"; then
14459 haveit=yes
14460 break
14461 fi
14462 done
14463 if test -z "$haveit"; then
14464 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14465 fi
9c60689e 14466 done
9c60689e 14467
94690cff 14468
e9c9a47c
DWT
14469 for element in -F$framework; do
14470 haveit=
14471 for x in $CXXFLAGS; do
9c60689e 14472
e9c9a47c
DWT
14473 acl_save_prefix="$prefix"
14474 prefix="$acl_final_prefix"
14475 acl_save_exec_prefix="$exec_prefix"
14476 exec_prefix="$acl_final_exec_prefix"
14477 eval x=\"$x\"
14478 exec_prefix="$acl_save_exec_prefix"
14479 prefix="$acl_save_prefix"
9c60689e 14480
e9c9a47c
DWT
14481 if test "X$x" = "X$element"; then
14482 haveit=yes
14483 break
14484 fi
14485 done
14486 if test -z "$haveit"; then
14487 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14488 fi
14489 done
9c60689e 14490
e9c9a47c
DWT
14491
14492 for element in -F$framework; do
14493 haveit=
14494 for x in $OBJCCXXFLAGS; do
14495
14496 acl_save_prefix="$prefix"
14497 prefix="$acl_final_prefix"
14498 acl_save_exec_prefix="$exec_prefix"
14499 exec_prefix="$acl_final_exec_prefix"
14500 eval x=\"$x\"
14501 exec_prefix="$acl_save_exec_prefix"
14502 prefix="$acl_save_prefix"
14503
14504 if test "X$x" = "X$element"; then
14505 haveit=yes
14506 break
14507 fi
14508 done
14509 if test -z "$haveit"; then
14510 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14511 fi
9c60689e 14512 done
632b71ea 14513
e9c9a47c 14514 done
9c60689e 14515
e9c9a47c 14516fi
9c60689e 14517
e9c9a47c
DWT
14518ac_ext=cpp
14519ac_cpp='$CXXCPP $CPPFLAGS'
14520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e
DWT
14523
14524
632b71ea 14525 apr_found="no"
9c60689e 14526
632b71ea
DWT
14527 if test "$target_os" = "os2-emx"; then
14528 # Scripts don't pass test -x on OS/2
14529 TEST_X="test -f"
14530 else
14531 TEST_X="test -x"
14532 fi
9c60689e 14533
632b71ea 14534 acceptable_majors="1"
9c60689e 14535
632b71ea
DWT
14536 apr_temp_acceptable_apr_config=""
14537 for apr_temp_major in $acceptable_majors
14538 do
14539 case $apr_temp_major in
14540 0)
14541 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14542 ;;
14543 *)
14544 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14545 ;;
14546 esac
14547 done
9c60689e 14548
632b71ea
DWT
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14550$as_echo_n "checking for APR... " >&6; }
9c60689e 14551
632b71ea
DWT
14552# Check whether --with-apr was given.
14553if test "${with_apr+set}" = set; then :
14554 withval=$with_apr;
14555 if test "$withval" = "no" || test "$withval" = "yes"; then
14556 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14557 fi
9c60689e 14558
632b71ea
DWT
14559 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14560 do
14561 for lookdir in "$withval/bin" "$withval"
14562 do
14563 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14564 apr_config="$lookdir/$apr_temp_apr_config_file"
9c60689e 14565
632b71ea
DWT
14566 apr_found="yes"
14567 break 2
14568 fi
14569 done
14570 done
9c60689e 14571
632b71ea
DWT
14572 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14573 apr_config="$withval"
14574 apr_found="yes"
14575 fi
9c60689e 14576
632b71ea
DWT
14577 if test "$apr_found" != "yes"; then
14578 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
14579 fi
9c60689e 14580
632b71ea 14581else
9c60689e 14582
632b71ea
DWT
14583 if test -n "1" && test "1" = "1"; then
14584 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14585 do
14586 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14587 apr_config="$apr_temp_apr_config_file"
9c60689e 14588
632b71ea
DWT
14589 apr_found="yes"
14590 break
14591 else
14592 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14593 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14594 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
9c60689e 14595
632b71ea
DWT
14596 apr_found="yes"
14597 break 2
14598 fi
14599 done
14600 fi
14601 done
14602 fi
14603 if test "$apr_found" = "no" && test -d ""; then
14604 apr_temp_abs_srcdir="`cd && pwd`"
14605 apr_found="reconfig"
14606 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14607 case $apr_bundled_major in
14608 "")
14609 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14610 ;;
14611 0)
14612 apr_temp_apr_config_file="apr-config"
14613 ;;
14614 *)
14615 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14616 ;;
14617 esac
14618 if test -n ""; then
14619 apr_config="/$apr_temp_apr_config_file"
14620 else
14621 apr_config="/$apr_temp_apr_config_file"
14622 fi
14623 fi
9c60689e 14624
632b71ea 14625fi
9c60689e 14626
9c60689e 14627
632b71ea
DWT
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14629$as_echo "$apr_found" >&6; }
9c60689e 14630
632b71ea
DWT
14631case $apr_found in #(
14632 yes) :
9c60689e
DWT
14633
14634
632b71ea
DWT
14635 for element in `$apr_config --includes`; do
14636 haveit=
14637 for x in $CPPFLAGS; do
9c60689e
DWT
14638
14639 acl_save_prefix="$prefix"
14640 prefix="$acl_final_prefix"
14641 acl_save_exec_prefix="$exec_prefix"
14642 exec_prefix="$acl_final_exec_prefix"
632b71ea 14643 eval x=\"$x\"
9c60689e
DWT
14644 exec_prefix="$acl_save_exec_prefix"
14645 prefix="$acl_save_prefix"
14646
632b71ea
DWT
14647 if test "X$x" = "X$element"; then
14648 haveit=yes
14649 break
9c60689e 14650 fi
632b71ea
DWT
14651 done
14652 if test -z "$haveit"; then
14653 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9c60689e 14654 fi
632b71ea 14655 done
9c60689e 14656
632b71ea 14657 LTLIBAPR=`$apr_config --link-libtool`
9c60689e 14658
632b71ea
DWT
14659 ;; #(
14660 *) :
14661 as_fn_error "You need apr" "$LINENO" 5 ;;
14662esac
14663
14664
5053a6d1
DWT
14665# Check whether --enable-javascript was given.
14666if test "${enable_javascript+set}" = set; then :
14667 enableval=$enable_javascript;
14668 case $enableval in #(
14669 yes) :
9c60689e
DWT
14670
14671
9c60689e 14672
5053a6d1
DWT
14673pkg_failed=no
14674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
14675$as_echo_n "checking for WEBKIT... " >&6; }
14676
14677if test -n "$PKG_CONFIG"; then
14678 if test -n "$WEBKIT_CFLAGS"; then
14679 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
14680 else
14681 if test -n "$PKG_CONFIG" && \
14682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
14683 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
14684 ac_status=$?
14685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686 test $ac_status = 0; }; then
14687 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
9c60689e 14688else
5053a6d1 14689 pkg_failed=yes
9c60689e
DWT
14690fi
14691 fi
14692else
5053a6d1 14693 pkg_failed=untried
632b71ea 14694fi
5053a6d1
DWT
14695if test -n "$PKG_CONFIG"; then
14696 if test -n "$WEBKIT_LIBS"; then
14697 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
14698 else
14699 if test -n "$PKG_CONFIG" && \
14700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
14701 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
14702 ac_status=$?
14703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704 test $ac_status = 0; }; then
14705 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
9c60689e 14706else
5053a6d1 14707 pkg_failed=yes
9c60689e 14708fi
5053a6d1 14709 fi
9c60689e 14710else
5053a6d1 14711 pkg_failed=untried
9c60689e
DWT
14712fi
14713
14714
14715
5053a6d1 14716if test $pkg_failed = yes; then
9c60689e 14717
5053a6d1
DWT
14718if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14719 _pkg_short_errors_supported=yes
9c60689e 14720else
5053a6d1
DWT
14721 _pkg_short_errors_supported=no
14722fi
14723 if test $_pkg_short_errors_supported = yes; then
14724 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
14725 else
14726 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
14727 fi
14728 # Put the nasty error message in config.log where it belongs
14729 echo "$WEBKIT_PKG_ERRORS" >&5
632b71ea 14730
5053a6d1
DWT
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732$as_echo "no" >&6; }
14733
14734
14735pkg_failed=no
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
14737$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 14738
5053a6d1
DWT
14739if test -n "$PKG_CONFIG"; then
14740 if test -n "$WEBKIT_CFLAGS"; then
14741 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
14742 else
14743 if test -n "$PKG_CONFIG" && \
14744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
14745 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
14746 ac_status=$?
14747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14748 test $ac_status = 0; }; then
14749 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
14750else
14751 pkg_failed=yes
9c60689e 14752fi
5053a6d1 14753 fi
632b71ea 14754else
5053a6d1
DWT
14755 pkg_failed=untried
14756fi
14757if test -n "$PKG_CONFIG"; then
14758 if test -n "$WEBKIT_LIBS"; then
14759 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
14760 else
14761 if test -n "$PKG_CONFIG" && \
14762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
14763 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
14764 ac_status=$?
14765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14766 test $ac_status = 0; }; then
14767 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
14768else
14769 pkg_failed=yes
14770fi
14771 fi
14772else
14773 pkg_failed=untried
632b71ea
DWT
14774fi
14775
14776
14777
5053a6d1
DWT
14778if test $pkg_failed = yes; then
14779
14780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14781 _pkg_short_errors_supported=yes
14782else
14783 _pkg_short_errors_supported=no
14784fi
14785 if test $_pkg_short_errors_supported = yes; then
14786 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
14787 else
14788 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
14789 fi
14790 # Put the nasty error message in config.log where it belongs
14791 echo "$WEBKIT_PKG_ERRORS" >&5
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794$as_echo "no" >&6; }
14795
632b71ea 14796
5053a6d1
DWT
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
14798$as_echo_n "checking for framework JavaScriptCore... " >&6; }
14799if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
14800 $as_echo_n "(cached) " >&6
14801else
632b71ea 14802
5053a6d1
DWT
14803 ac_check_framework_save_LIBS=$LIBS
14804 LIBS="-framework JavaScriptCore $LIBS"
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806/* end confdefs.h. */
632b71ea 14807
5053a6d1 14808 #include <JavaScriptCore/JSBase.h>
632b71ea 14809
5053a6d1
DWT
14810int
14811main ()
14812{
14813JSEvaluateScript(0, 0, 0, 0, 0, 0);
14814 ;
14815 return 0;
14816}
14817_ACEOF
14818if ac_fn_cxx_try_link "$LINENO"; then :
632b71ea 14819
5053a6d1 14820 ac_cv_framework_JavaScriptCore=yes
632b71ea 14821
5053a6d1
DWT
14822else
14823 ac_cv_framework_JavaScriptCore=no
14824fi
14825rm -f core conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827 LIBS=$ac_check_framework_save_LIBS
632b71ea 14828
5053a6d1
DWT
14829fi
14830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
14831$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
14832 if test $ac_cv_framework_JavaScriptCore = yes; then :
632b71ea
DWT
14833
14834
5053a6d1
DWT
14835 for element in "-framework JavaScriptCore $LIBS"; do
14836 haveit=
14837 for x in $LIBS; do
632b71ea
DWT
14838
14839 acl_save_prefix="$prefix"
14840 prefix="$acl_final_prefix"
14841 acl_save_exec_prefix="$exec_prefix"
14842 exec_prefix="$acl_final_exec_prefix"
5053a6d1 14843 eval x=\"$x\"
632b71ea
DWT
14844 exec_prefix="$acl_save_exec_prefix"
14845 prefix="$acl_save_prefix"
14846
5053a6d1
DWT
14847 if test "X$x" = "X$element"; then
14848 haveit=yes
14849 break
14850 fi
14851 done
14852 if test -z "$haveit"; then
14853 LIBS="${LIBS}${LIBS:+ }$element"
14854 fi
14855 done
14856
14857 CY_EXECUTE=1
632b71ea 14858
5053a6d1
DWT
14859fi
14860
14861elif test $pkg_failed = untried; then
14862
14863
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
14865$as_echo_n "checking for framework JavaScriptCore... " >&6; }
14866if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14868else
14869
14870 ac_check_framework_save_LIBS=$LIBS
14871 LIBS="-framework JavaScriptCore $LIBS"
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873/* end confdefs.h. */
14874
14875 #include <JavaScriptCore/JSBase.h>
14876
14877int
14878main ()
14879{
14880JSEvaluateScript(0, 0, 0, 0, 0, 0);
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885if ac_fn_cxx_try_link "$LINENO"; then :
14886
14887 ac_cv_framework_JavaScriptCore=yes
14888
14889else
14890 ac_cv_framework_JavaScriptCore=no
14891fi
14892rm -f core conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_check_framework_save_LIBS
14895
14896fi
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
14898$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
14899 if test $ac_cv_framework_JavaScriptCore = yes; then :
14900
14901
14902 for element in "-framework JavaScriptCore $LIBS"; do
14903 haveit=
14904 for x in $LIBS; do
632b71ea
DWT
14905
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
14910 eval x=\"$x\"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
632b71ea 14913
5053a6d1
DWT
14914 if test "X$x" = "X$element"; then
14915 haveit=yes
14916 break
14917 fi
14918 done
14919 if test -z "$haveit"; then
14920 LIBS="${LIBS}${LIBS:+ }$element"
14921 fi
14922 done
14923
14924 CY_EXECUTE=1
14925
14926fi
14927
14928else
14929 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
14930 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14932$as_echo "yes" >&6; }
14933
14934 CY_EXECUTE=1
14935
14936 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
14937 haveit=
14938 for x in $CXXFLAGS; do
632b71ea 14939
5053a6d1
DWT
14940 acl_save_prefix="$prefix"
14941 prefix="$acl_final_prefix"
14942 acl_save_exec_prefix="$exec_prefix"
14943 exec_prefix="$acl_final_exec_prefix"
14944 eval x=\"$x\"
632b71ea
DWT
14945 exec_prefix="$acl_save_exec_prefix"
14946 prefix="$acl_save_prefix"
14947
5053a6d1
DWT
14948 if test "X$x" = "X$element"; then
14949 haveit=yes
14950 break
632b71ea 14951 fi
5053a6d1
DWT
14952 done
14953 if test -z "$haveit"; then
14954 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
632b71ea 14955 fi
5053a6d1 14956 done
632b71ea 14957
632b71ea 14958
5053a6d1
DWT
14959 for element in `$PKG_CONFIG --libs WebKitGtk`; do
14960 haveit=
14961 for x in $LIBS; do
632b71ea
DWT
14962
14963 acl_save_prefix="$prefix"
14964 prefix="$acl_final_prefix"
14965 acl_save_exec_prefix="$exec_prefix"
14966 exec_prefix="$acl_final_exec_prefix"
14967 eval x=\"$x\"
14968 exec_prefix="$acl_save_exec_prefix"
14969 prefix="$acl_save_prefix"
14970
5053a6d1
DWT
14971 if test "X$x" = "X$element"; then
14972 haveit=yes
14973 break
14974 fi
14975 done
14976 if test -z "$haveit"; then
14977 LIBS="${LIBS}${LIBS:+ }$element"
14978 fi
14979 done
632b71ea 14980
632b71ea 14981
5053a6d1 14982fi
632b71ea 14983
5053a6d1 14984elif test $pkg_failed = untried; then
632b71ea 14985
632b71ea 14986
5053a6d1
DWT
14987pkg_failed=no
14988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
14989$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 14990
5053a6d1
DWT
14991if test -n "$PKG_CONFIG"; then
14992 if test -n "$WEBKIT_CFLAGS"; then
14993 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
14994 else
14995 if test -n "$PKG_CONFIG" && \
14996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
14997 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
14998 ac_status=$?
14999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15000 test $ac_status = 0; }; then
15001 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15002else
15003 pkg_failed=yes
15004fi
15005 fi
15006else
15007 pkg_failed=untried
15008fi
15009if test -n "$PKG_CONFIG"; then
15010 if test -n "$WEBKIT_LIBS"; then
15011 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
632b71ea 15012 else
5053a6d1
DWT
15013 if test -n "$PKG_CONFIG" && \
15014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15015 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15016 ac_status=$?
15017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 test $ac_status = 0; }; then
15019 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15020else
15021 pkg_failed=yes
15022fi
632b71ea 15023 fi
5053a6d1
DWT
15024else
15025 pkg_failed=untried
15026fi
9c60689e 15027
9c60689e
DWT
15028
15029
5053a6d1
DWT
15030if test $pkg_failed = yes; then
15031
15032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15033 _pkg_short_errors_supported=yes
15034else
15035 _pkg_short_errors_supported=no
15036fi
15037 if test $_pkg_short_errors_supported = yes; then
15038 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15039 else
15040 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15041 fi
15042 # Put the nasty error message in config.log where it belongs
15043 echo "$WEBKIT_PKG_ERRORS" >&5
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046$as_echo "no" >&6; }
9c60689e 15047
9c60689e 15048
5053a6d1
DWT
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15050$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15051if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15053else
9c60689e 15054
5053a6d1
DWT
15055 ac_check_framework_save_LIBS=$LIBS
15056 LIBS="-framework JavaScriptCore $LIBS"
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058/* end confdefs.h. */
9c60689e 15059
5053a6d1 15060 #include <JavaScriptCore/JSBase.h>
9c60689e 15061
5053a6d1
DWT
15062int
15063main ()
15064{
15065JSEvaluateScript(0, 0, 0, 0, 0, 0);
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070if ac_fn_cxx_try_link "$LINENO"; then :
15071
15072 ac_cv_framework_JavaScriptCore=yes
15073
15074else
15075 ac_cv_framework_JavaScriptCore=no
15076fi
15077rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_framework_save_LIBS
15080
15081fi
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15083$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15084 if test $ac_cv_framework_JavaScriptCore = yes; then :
15085
15086
15087 for element in "-framework JavaScriptCore $LIBS"; do
632b71ea 15088 haveit=
5053a6d1 15089 for x in $LIBS; do
9c60689e 15090
632b71ea
DWT
15091 acl_save_prefix="$prefix"
15092 prefix="$acl_final_prefix"
15093 acl_save_exec_prefix="$exec_prefix"
15094 exec_prefix="$acl_final_exec_prefix"
15095 eval x=\"$x\"
15096 exec_prefix="$acl_save_exec_prefix"
15097 prefix="$acl_save_prefix"
15098
15099 if test "X$x" = "X$element"; then
15100 haveit=yes
15101 break
15102 fi
15103 done
15104 if test -z "$haveit"; then
5053a6d1 15105 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
15106 fi
15107 done
b128dfee 15108
5053a6d1
DWT
15109 CY_EXECUTE=1
15110
15111fi
c823f118 15112
5053a6d1
DWT
15113elif test $pkg_failed = untried; then
15114
15115
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15117$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15118if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
c823f118
DWT
15119 $as_echo_n "(cached) " >&6
15120else
15121
5053a6d1
DWT
15122 ac_check_framework_save_LIBS=$LIBS
15123 LIBS="-framework JavaScriptCore $LIBS"
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 15125/* end confdefs.h. */
5053a6d1
DWT
15126
15127 #include <JavaScriptCore/JSBase.h>
15128
632b71ea
DWT
15129int
15130main ()
15131{
5053a6d1 15132JSEvaluateScript(0, 0, 0, 0, 0, 0);
632b71ea
DWT
15133 ;
15134 return 0;
15135}
15136_ACEOF
5053a6d1
DWT
15137if ac_fn_cxx_try_link "$LINENO"; then :
15138
15139 ac_cv_framework_JavaScriptCore=yes
15140
15141else
15142 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
15143fi
15144rm -f core conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
5053a6d1 15146 LIBS=$ac_check_framework_save_LIBS
b128dfee 15147
c823f118 15148fi
5053a6d1
DWT
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15150$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15151 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
15152
15153
5053a6d1
DWT
15154 for element in "-framework JavaScriptCore $LIBS"; do
15155 haveit=
15156 for x in $LIBS; 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$element"; then
15167 haveit=yes
15168 break
15169 fi
15170 done
15171 if test -z "$haveit"; then
15172 LIBS="${LIBS}${LIBS:+ }$element"
15173 fi
15174 done
c823f118 15175
5053a6d1 15176 CY_EXECUTE=1
b128dfee 15177
632b71ea 15178fi
c823f118 15179
5053a6d1
DWT
15180else
15181 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15182 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15184$as_echo "yes" >&6; }
c823f118 15185
5053a6d1 15186 CY_EXECUTE=1
b128dfee 15187
5053a6d1
DWT
15188 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15189 haveit=
15190 for x in $CXXFLAGS; do
b128dfee 15191
5053a6d1
DWT
15192 acl_save_prefix="$prefix"
15193 prefix="$acl_final_prefix"
15194 acl_save_exec_prefix="$exec_prefix"
15195 exec_prefix="$acl_final_exec_prefix"
15196 eval x=\"$x\"
15197 exec_prefix="$acl_save_exec_prefix"
15198 prefix="$acl_save_prefix"
c823f118 15199
5053a6d1
DWT
15200 if test "X$x" = "X$element"; then
15201 haveit=yes
15202 break
15203 fi
15204 done
15205 if test -z "$haveit"; then
15206 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15207 fi
15208 done
c823f118 15209
c823f118 15210
5053a6d1
DWT
15211 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15212 haveit=
15213 for x in $LIBS; do
15214
15215 acl_save_prefix="$prefix"
15216 prefix="$acl_final_prefix"
15217 acl_save_exec_prefix="$exec_prefix"
15218 exec_prefix="$acl_final_exec_prefix"
15219 eval x=\"$x\"
15220 exec_prefix="$acl_save_exec_prefix"
15221 prefix="$acl_save_prefix"
15222
15223 if test "X$x" = "X$element"; then
15224 haveit=yes
15225 break
15226 fi
15227 done
15228 if test -z "$haveit"; then
15229 LIBS="${LIBS}${LIBS:+ }$element"
15230 fi
15231 done
c823f118 15232
632b71ea 15233
b128dfee
DWT
15234fi
15235
5053a6d1
DWT
15236else
15237 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15238 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15240$as_echo "yes" >&6; }
b128dfee 15241
5053a6d1 15242 CY_EXECUTE=1
c823f118 15243
5053a6d1
DWT
15244 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15245 haveit=
15246 for x in $CXXFLAGS; do
c823f118 15247
5053a6d1
DWT
15248 acl_save_prefix="$prefix"
15249 prefix="$acl_final_prefix"
15250 acl_save_exec_prefix="$exec_prefix"
15251 exec_prefix="$acl_final_exec_prefix"
15252 eval x=\"$x\"
15253 exec_prefix="$acl_save_exec_prefix"
15254 prefix="$acl_save_prefix"
c823f118 15255
5053a6d1
DWT
15256 if test "X$x" = "X$element"; then
15257 haveit=yes
15258 break
15259 fi
15260 done
15261 if test -z "$haveit"; then
15262 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15263 fi
15264 done
c823f118 15265
b66977f1 15266
5053a6d1
DWT
15267 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15268 haveit=
15269 for x in $LIBS; do
15270
15271 acl_save_prefix="$prefix"
15272 prefix="$acl_final_prefix"
15273 acl_save_exec_prefix="$exec_prefix"
15274 exec_prefix="$acl_final_exec_prefix"
15275 eval x=\"$x\"
15276 exec_prefix="$acl_save_exec_prefix"
15277 prefix="$acl_save_prefix"
15278
15279 if test "X$x" = "X$element"; then
15280 haveit=yes
15281 break
15282 fi
15283 done
15284 if test -z "$haveit"; then
15285 LIBS="${LIBS}${LIBS:+ }$element"
15286 fi
15287 done
15288
15289
15290fi
15291
15292 ;; #(
15293 no) :
15294
15295 CY_EXECUTE=0
15296
15297 ;; #(
15298 JavaScriptCore) :
b66977f1
DWT
15299
15300
15301
15302pkg_failed=no
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15304$as_echo_n "checking for WEBKIT... " >&6; }
15305
15306if test -n "$PKG_CONFIG"; then
15307 if test -n "$WEBKIT_CFLAGS"; then
15308 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15309 else
15310 if test -n "$PKG_CONFIG" && \
15311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15312 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15313 ac_status=$?
15314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315 test $ac_status = 0; }; then
15316 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15317else
15318 pkg_failed=yes
15319fi
15320 fi
15321else
15322 pkg_failed=untried
15323fi
15324if test -n "$PKG_CONFIG"; then
15325 if test -n "$WEBKIT_LIBS"; then
15326 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15327 else
15328 if test -n "$PKG_CONFIG" && \
15329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15330 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15331 ac_status=$?
15332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15333 test $ac_status = 0; }; then
15334 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15335else
15336 pkg_failed=yes
15337fi
15338 fi
15339else
15340 pkg_failed=untried
15341fi
15342
15343
15344
15345if test $pkg_failed = yes; then
15346
15347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15348 _pkg_short_errors_supported=yes
15349else
15350 _pkg_short_errors_supported=no
15351fi
15352 if test $_pkg_short_errors_supported = yes; then
15353 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15354 else
15355 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15356 fi
15357 # Put the nasty error message in config.log where it belongs
15358 echo "$WEBKIT_PKG_ERRORS" >&5
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361$as_echo "no" >&6; }
15362
15363
15364pkg_failed=no
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15366$as_echo_n "checking for WEBKIT... " >&6; }
15367
15368if test -n "$PKG_CONFIG"; then
15369 if test -n "$WEBKIT_CFLAGS"; then
15370 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15371 else
15372 if test -n "$PKG_CONFIG" && \
15373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15374 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15375 ac_status=$?
15376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15377 test $ac_status = 0; }; then
15378 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15379else
15380 pkg_failed=yes
15381fi
15382 fi
15383else
15384 pkg_failed=untried
15385fi
15386if test -n "$PKG_CONFIG"; then
15387 if test -n "$WEBKIT_LIBS"; then
15388 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15389 else
15390 if test -n "$PKG_CONFIG" && \
15391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15392 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15393 ac_status=$?
15394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15395 test $ac_status = 0; }; then
15396 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15397else
15398 pkg_failed=yes
15399fi
15400 fi
15401else
15402 pkg_failed=untried
15403fi
15404
15405
15406
15407if test $pkg_failed = yes; then
15408
15409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15410 _pkg_short_errors_supported=yes
15411else
15412 _pkg_short_errors_supported=no
15413fi
15414 if test $_pkg_short_errors_supported = yes; then
15415 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15416 else
15417 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15418 fi
15419 # Put the nasty error message in config.log where it belongs
15420 echo "$WEBKIT_PKG_ERRORS" >&5
15421
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423$as_echo "no" >&6; }
15424
15425
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15427$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15428if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15429 $as_echo_n "(cached) " >&6
15430else
15431
15432 ac_check_framework_save_LIBS=$LIBS
15433 LIBS="-framework JavaScriptCore $LIBS"
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435/* end confdefs.h. */
15436
15437 #include <JavaScriptCore/JSBase.h>
15438
15439int
15440main ()
15441{
15442JSEvaluateScript(0, 0, 0, 0, 0, 0);
15443 ;
15444 return 0;
15445}
15446_ACEOF
15447if ac_fn_cxx_try_link "$LINENO"; then :
15448
15449 ac_cv_framework_JavaScriptCore=yes
15450
15451else
15452 ac_cv_framework_JavaScriptCore=no
15453fi
15454rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_framework_save_LIBS
15457
15458fi
15459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15460$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15461 if test $ac_cv_framework_JavaScriptCore = yes; then :
15462
15463
15464 for element in "-framework JavaScriptCore $LIBS"; do
15465 haveit=
15466 for x in $LIBS; do
15467
15468 acl_save_prefix="$prefix"
15469 prefix="$acl_final_prefix"
15470 acl_save_exec_prefix="$exec_prefix"
15471 exec_prefix="$acl_final_exec_prefix"
15472 eval x=\"$x\"
15473 exec_prefix="$acl_save_exec_prefix"
15474 prefix="$acl_save_prefix"
15475
15476 if test "X$x" = "X$element"; then
15477 haveit=yes
15478 break
15479 fi
15480 done
15481 if test -z "$haveit"; then
15482 LIBS="${LIBS}${LIBS:+ }$element"
15483 fi
15484 done
15485
15486 CY_EXECUTE=1
15487
15488fi
15489
15490elif test $pkg_failed = untried; then
15491
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15494$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15495if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497else
15498
15499 ac_check_framework_save_LIBS=$LIBS
15500 LIBS="-framework JavaScriptCore $LIBS"
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502/* end confdefs.h. */
15503
15504 #include <JavaScriptCore/JSBase.h>
15505
15506int
15507main ()
15508{
15509JSEvaluateScript(0, 0, 0, 0, 0, 0);
15510 ;
15511 return 0;
15512}
15513_ACEOF
15514if ac_fn_cxx_try_link "$LINENO"; then :
15515
15516 ac_cv_framework_JavaScriptCore=yes
15517
15518else
15519 ac_cv_framework_JavaScriptCore=no
15520fi
15521rm -f core conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_framework_save_LIBS
15524
15525fi
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15527$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15528 if test $ac_cv_framework_JavaScriptCore = yes; then :
15529
15530
15531 for element in "-framework JavaScriptCore $LIBS"; do
15532 haveit=
15533 for x in $LIBS; do
15534
15535 acl_save_prefix="$prefix"
15536 prefix="$acl_final_prefix"
15537 acl_save_exec_prefix="$exec_prefix"
15538 exec_prefix="$acl_final_exec_prefix"
15539 eval x=\"$x\"
15540 exec_prefix="$acl_save_exec_prefix"
15541 prefix="$acl_save_prefix"
15542
15543 if test "X$x" = "X$element"; then
15544 haveit=yes
15545 break
15546 fi
15547 done
15548 if test -z "$haveit"; then
15549 LIBS="${LIBS}${LIBS:+ }$element"
15550 fi
15551 done
15552
15553 CY_EXECUTE=1
15554
15555fi
15556
15557else
15558 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15559 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15561$as_echo "yes" >&6; }
15562
15563 CY_EXECUTE=1
15564
15565 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15566 haveit=
15567 for x in $CXXFLAGS; do
15568
15569 acl_save_prefix="$prefix"
15570 prefix="$acl_final_prefix"
15571 acl_save_exec_prefix="$exec_prefix"
15572 exec_prefix="$acl_final_exec_prefix"
15573 eval x=\"$x\"
15574 exec_prefix="$acl_save_exec_prefix"
15575 prefix="$acl_save_prefix"
15576
15577 if test "X$x" = "X$element"; then
15578 haveit=yes
15579 break
15580 fi
15581 done
15582 if test -z "$haveit"; then
15583 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15584 fi
15585 done
15586
15587
15588 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15589 haveit=
15590 for x in $LIBS; do
15591
15592 acl_save_prefix="$prefix"
15593 prefix="$acl_final_prefix"
15594 acl_save_exec_prefix="$exec_prefix"
15595 exec_prefix="$acl_final_exec_prefix"
15596 eval x=\"$x\"
15597 exec_prefix="$acl_save_exec_prefix"
15598 prefix="$acl_save_prefix"
15599
15600 if test "X$x" = "X$element"; then
15601 haveit=yes
15602 break
15603 fi
15604 done
15605 if test -z "$haveit"; then
15606 LIBS="${LIBS}${LIBS:+ }$element"
15607 fi
15608 done
15609
15610
15611fi
15612
15613elif test $pkg_failed = untried; then
15614
15615
15616pkg_failed=no
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15618$as_echo_n "checking for WEBKIT... " >&6; }
15619
15620if test -n "$PKG_CONFIG"; then
15621 if test -n "$WEBKIT_CFLAGS"; then
15622 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15623 else
15624 if test -n "$PKG_CONFIG" && \
15625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15626 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15627 ac_status=$?
15628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629 test $ac_status = 0; }; then
15630 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15631else
15632 pkg_failed=yes
15633fi
15634 fi
15635else
15636 pkg_failed=untried
15637fi
15638if test -n "$PKG_CONFIG"; then
15639 if test -n "$WEBKIT_LIBS"; then
15640 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15641 else
15642 if test -n "$PKG_CONFIG" && \
15643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15644 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15645 ac_status=$?
15646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 test $ac_status = 0; }; then
15648 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15649else
15650 pkg_failed=yes
15651fi
15652 fi
15653else
15654 pkg_failed=untried
15655fi
15656
15657
15658
15659if test $pkg_failed = yes; then
15660
15661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15662 _pkg_short_errors_supported=yes
15663else
15664 _pkg_short_errors_supported=no
15665fi
15666 if test $_pkg_short_errors_supported = yes; then
15667 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15668 else
15669 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15670 fi
15671 # Put the nasty error message in config.log where it belongs
15672 echo "$WEBKIT_PKG_ERRORS" >&5
15673
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675$as_echo "no" >&6; }
15676
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15679$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15680if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15682else
15683
15684 ac_check_framework_save_LIBS=$LIBS
15685 LIBS="-framework JavaScriptCore $LIBS"
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687/* end confdefs.h. */
15688
15689 #include <JavaScriptCore/JSBase.h>
15690
15691int
15692main ()
15693{
15694JSEvaluateScript(0, 0, 0, 0, 0, 0);
15695 ;
15696 return 0;
15697}
15698_ACEOF
15699if ac_fn_cxx_try_link "$LINENO"; then :
15700
15701 ac_cv_framework_JavaScriptCore=yes
15702
15703else
15704 ac_cv_framework_JavaScriptCore=no
15705fi
15706rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_framework_save_LIBS
15709
15710fi
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15712$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15713 if test $ac_cv_framework_JavaScriptCore = yes; then :
15714
15715
15716 for element in "-framework JavaScriptCore $LIBS"; do
15717 haveit=
15718 for x in $LIBS; do
15719
15720 acl_save_prefix="$prefix"
15721 prefix="$acl_final_prefix"
15722 acl_save_exec_prefix="$exec_prefix"
15723 exec_prefix="$acl_final_exec_prefix"
15724 eval x=\"$x\"
15725 exec_prefix="$acl_save_exec_prefix"
15726 prefix="$acl_save_prefix"
15727
15728 if test "X$x" = "X$element"; then
15729 haveit=yes
15730 break
15731 fi
15732 done
15733 if test -z "$haveit"; then
15734 LIBS="${LIBS}${LIBS:+ }$element"
15735 fi
15736 done
15737
15738 CY_EXECUTE=1
15739
15740fi
15741
15742elif test $pkg_failed = untried; then
15743
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15746$as_echo_n "checking for framework JavaScriptCore... " >&6; }
15747if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15748 $as_echo_n "(cached) " >&6
15749else
15750
15751 ac_check_framework_save_LIBS=$LIBS
15752 LIBS="-framework JavaScriptCore $LIBS"
15753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15754/* end confdefs.h. */
15755
15756 #include <JavaScriptCore/JSBase.h>
15757
15758int
15759main ()
15760{
15761JSEvaluateScript(0, 0, 0, 0, 0, 0);
15762 ;
15763 return 0;
15764}
15765_ACEOF
15766if ac_fn_cxx_try_link "$LINENO"; then :
15767
15768 ac_cv_framework_JavaScriptCore=yes
15769
15770else
15771 ac_cv_framework_JavaScriptCore=no
15772fi
15773rm -f core conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_framework_save_LIBS
15776
15777fi
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15779$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15780 if test $ac_cv_framework_JavaScriptCore = yes; then :
15781
15782
15783 for element in "-framework JavaScriptCore $LIBS"; do
15784 haveit=
15785 for x in $LIBS; do
15786
15787 acl_save_prefix="$prefix"
15788 prefix="$acl_final_prefix"
15789 acl_save_exec_prefix="$exec_prefix"
15790 exec_prefix="$acl_final_exec_prefix"
15791 eval x=\"$x\"
15792 exec_prefix="$acl_save_exec_prefix"
15793 prefix="$acl_save_prefix"
15794
15795 if test "X$x" = "X$element"; then
15796 haveit=yes
15797 break
15798 fi
15799 done
15800 if test -z "$haveit"; then
15801 LIBS="${LIBS}${LIBS:+ }$element"
15802 fi
15803 done
15804
15805 CY_EXECUTE=1
15806
15807fi
15808
15809else
15810 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15811 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813$as_echo "yes" >&6; }
15814
15815 CY_EXECUTE=1
15816
15817 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15818 haveit=
15819 for x in $CXXFLAGS; do
15820
15821 acl_save_prefix="$prefix"
15822 prefix="$acl_final_prefix"
15823 acl_save_exec_prefix="$exec_prefix"
15824 exec_prefix="$acl_final_exec_prefix"
15825 eval x=\"$x\"
15826 exec_prefix="$acl_save_exec_prefix"
15827 prefix="$acl_save_prefix"
15828
15829 if test "X$x" = "X$element"; then
15830 haveit=yes
15831 break
15832 fi
15833 done
15834 if test -z "$haveit"; then
15835 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15836 fi
15837 done
15838
15839
15840 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15841 haveit=
15842 for x in $LIBS; do
15843
15844 acl_save_prefix="$prefix"
15845 prefix="$acl_final_prefix"
15846 acl_save_exec_prefix="$exec_prefix"
15847 exec_prefix="$acl_final_exec_prefix"
15848 eval x=\"$x\"
15849 exec_prefix="$acl_save_exec_prefix"
15850 prefix="$acl_save_prefix"
15851
15852 if test "X$x" = "X$element"; then
15853 haveit=yes
15854 break
15855 fi
15856 done
15857 if test -z "$haveit"; then
15858 LIBS="${LIBS}${LIBS:+ }$element"
15859 fi
15860 done
15861
15862
15863fi
15864
15865else
15866 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15867 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15869$as_echo "yes" >&6; }
15870
15871 CY_EXECUTE=1
15872
15873 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15874 haveit=
15875 for x in $CXXFLAGS; do
15876
15877 acl_save_prefix="$prefix"
15878 prefix="$acl_final_prefix"
15879 acl_save_exec_prefix="$exec_prefix"
15880 exec_prefix="$acl_final_exec_prefix"
15881 eval x=\"$x\"
15882 exec_prefix="$acl_save_exec_prefix"
15883 prefix="$acl_save_prefix"
15884
15885 if test "X$x" = "X$element"; then
15886 haveit=yes
15887 break
15888 fi
15889 done
15890 if test -z "$haveit"; then
15891 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15892 fi
15893 done
15894
15895
15896 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15897 haveit=
15898 for x in $LIBS; do
15899
15900 acl_save_prefix="$prefix"
15901 prefix="$acl_final_prefix"
15902 acl_save_exec_prefix="$exec_prefix"
15903 exec_prefix="$acl_final_exec_prefix"
15904 eval x=\"$x\"
15905 exec_prefix="$acl_save_exec_prefix"
15906 prefix="$acl_save_prefix"
15907
15908 if test "X$x" = "X$element"; then
15909 haveit=yes
15910 break
15911 fi
15912 done
15913 if test -z "$haveit"; then
15914 LIBS="${LIBS}${LIBS:+ }$element"
15915 fi
15916 done
15917
15918
15919fi
15920
b66977f1 15921 ;; #(
5053a6d1
DWT
15922 *) :
15923 as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
15924esac
15925
15926else
b66977f1
DWT
15927
15928
15929
15930pkg_failed=no
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15932$as_echo_n "checking for WEBKIT... " >&6; }
15933
15934if test -n "$PKG_CONFIG"; then
15935 if test -n "$WEBKIT_CFLAGS"; then
15936 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15937 else
15938 if test -n "$PKG_CONFIG" && \
15939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15940 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15941 ac_status=$?
15942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943 test $ac_status = 0; }; then
15944 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15945else
15946 pkg_failed=yes
15947fi
15948 fi
15949else
15950 pkg_failed=untried
15951fi
15952if test -n "$PKG_CONFIG"; then
15953 if test -n "$WEBKIT_LIBS"; then
15954 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15955 else
15956 if test -n "$PKG_CONFIG" && \
15957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15958 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15959 ac_status=$?
15960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15961 test $ac_status = 0; }; then
15962 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15963else
15964 pkg_failed=yes
15965fi
15966 fi
15967else
15968 pkg_failed=untried
15969fi
15970
15971
15972
15973if test $pkg_failed = yes; then
15974
15975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15976 _pkg_short_errors_supported=yes
15977else
15978 _pkg_short_errors_supported=no
15979fi
15980 if test $_pkg_short_errors_supported = yes; then
15981 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15982 else
15983 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15984 fi
15985 # Put the nasty error message in config.log where it belongs
15986 echo "$WEBKIT_PKG_ERRORS" >&5
15987
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15989$as_echo "no" >&6; }
15990
15991
15992pkg_failed=no
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15994$as_echo_n "checking for WEBKIT... " >&6; }
15995
15996if test -n "$PKG_CONFIG"; then
15997 if test -n "$WEBKIT_CFLAGS"; then
15998 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15999 else
16000 if test -n "$PKG_CONFIG" && \
16001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16002 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16003 ac_status=$?
16004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; }; then
16006 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16007else
16008 pkg_failed=yes
16009fi
16010 fi
16011else
16012 pkg_failed=untried
16013fi
16014if test -n "$PKG_CONFIG"; then
16015 if test -n "$WEBKIT_LIBS"; then
16016 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16017 else
16018 if test -n "$PKG_CONFIG" && \
16019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16020 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16021 ac_status=$?
16022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16023 test $ac_status = 0; }; then
16024 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16025else
16026 pkg_failed=yes
16027fi
16028 fi
16029else
16030 pkg_failed=untried
16031fi
16032
16033
16034
16035if test $pkg_failed = yes; then
16036
16037if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16038 _pkg_short_errors_supported=yes
16039else
16040 _pkg_short_errors_supported=no
16041fi
16042 if test $_pkg_short_errors_supported = yes; then
16043 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16044 else
16045 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16046 fi
16047 # Put the nasty error message in config.log where it belongs
16048 echo "$WEBKIT_PKG_ERRORS" >&5
16049
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051$as_echo "no" >&6; }
16052
16053
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16055$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16056if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16057 $as_echo_n "(cached) " >&6
16058else
16059
16060 ac_check_framework_save_LIBS=$LIBS
16061 LIBS="-framework JavaScriptCore $LIBS"
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063/* end confdefs.h. */
16064
16065 #include <JavaScriptCore/JSBase.h>
16066
16067int
16068main ()
16069{
16070JSEvaluateScript(0, 0, 0, 0, 0, 0);
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075if ac_fn_cxx_try_link "$LINENO"; then :
16076
16077 ac_cv_framework_JavaScriptCore=yes
16078
16079else
16080 ac_cv_framework_JavaScriptCore=no
16081fi
16082rm -f core conftest.err conftest.$ac_objext \
16083 conftest$ac_exeext conftest.$ac_ext
16084 LIBS=$ac_check_framework_save_LIBS
16085
16086fi
16087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16088$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16089 if test $ac_cv_framework_JavaScriptCore = yes; then :
16090
16091
16092 for element in "-framework JavaScriptCore $LIBS"; do
16093 haveit=
16094 for x in $LIBS; do
16095
16096 acl_save_prefix="$prefix"
16097 prefix="$acl_final_prefix"
16098 acl_save_exec_prefix="$exec_prefix"
16099 exec_prefix="$acl_final_exec_prefix"
16100 eval x=\"$x\"
16101 exec_prefix="$acl_save_exec_prefix"
16102 prefix="$acl_save_prefix"
16103
16104 if test "X$x" = "X$element"; then
16105 haveit=yes
16106 break
16107 fi
16108 done
16109 if test -z "$haveit"; then
16110 LIBS="${LIBS}${LIBS:+ }$element"
16111 fi
16112 done
16113
16114 CY_EXECUTE=1
16115
16116fi
16117
16118elif test $pkg_failed = untried; then
16119
16120
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16122$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16123if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16124 $as_echo_n "(cached) " >&6
16125else
16126
16127 ac_check_framework_save_LIBS=$LIBS
16128 LIBS="-framework JavaScriptCore $LIBS"
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130/* end confdefs.h. */
16131
16132 #include <JavaScriptCore/JSBase.h>
16133
16134int
16135main ()
16136{
16137JSEvaluateScript(0, 0, 0, 0, 0, 0);
16138 ;
16139 return 0;
16140}
16141_ACEOF
16142if ac_fn_cxx_try_link "$LINENO"; then :
16143
16144 ac_cv_framework_JavaScriptCore=yes
16145
16146else
16147 ac_cv_framework_JavaScriptCore=no
16148fi
16149rm -f core conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16151 LIBS=$ac_check_framework_save_LIBS
16152
16153fi
16154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16155$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16156 if test $ac_cv_framework_JavaScriptCore = yes; then :
16157
16158
16159 for element in "-framework JavaScriptCore $LIBS"; do
16160 haveit=
16161 for x in $LIBS; do
16162
16163 acl_save_prefix="$prefix"
16164 prefix="$acl_final_prefix"
16165 acl_save_exec_prefix="$exec_prefix"
16166 exec_prefix="$acl_final_exec_prefix"
16167 eval x=\"$x\"
16168 exec_prefix="$acl_save_exec_prefix"
16169 prefix="$acl_save_prefix"
16170
16171 if test "X$x" = "X$element"; then
16172 haveit=yes
16173 break
16174 fi
16175 done
16176 if test -z "$haveit"; then
16177 LIBS="${LIBS}${LIBS:+ }$element"
16178 fi
16179 done
16180
16181 CY_EXECUTE=1
16182
16183fi
16184
16185else
16186 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16187 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16189$as_echo "yes" >&6; }
16190
16191 CY_EXECUTE=1
16192
16193 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16194 haveit=
16195 for x in $CXXFLAGS; do
16196
16197 acl_save_prefix="$prefix"
16198 prefix="$acl_final_prefix"
16199 acl_save_exec_prefix="$exec_prefix"
16200 exec_prefix="$acl_final_exec_prefix"
16201 eval x=\"$x\"
16202 exec_prefix="$acl_save_exec_prefix"
16203 prefix="$acl_save_prefix"
16204
16205 if test "X$x" = "X$element"; then
16206 haveit=yes
16207 break
16208 fi
16209 done
16210 if test -z "$haveit"; then
16211 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16212 fi
16213 done
16214
16215
16216 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16217 haveit=
16218 for x in $LIBS; do
16219
16220 acl_save_prefix="$prefix"
16221 prefix="$acl_final_prefix"
16222 acl_save_exec_prefix="$exec_prefix"
16223 exec_prefix="$acl_final_exec_prefix"
16224 eval x=\"$x\"
16225 exec_prefix="$acl_save_exec_prefix"
16226 prefix="$acl_save_prefix"
16227
16228 if test "X$x" = "X$element"; then
16229 haveit=yes
16230 break
16231 fi
16232 done
16233 if test -z "$haveit"; then
16234 LIBS="${LIBS}${LIBS:+ }$element"
16235 fi
16236 done
16237
16238
16239fi
16240
16241elif test $pkg_failed = untried; then
16242
16243
16244pkg_failed=no
16245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16246$as_echo_n "checking for WEBKIT... " >&6; }
16247
16248if test -n "$PKG_CONFIG"; then
16249 if test -n "$WEBKIT_CFLAGS"; then
16250 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16251 else
16252 if test -n "$PKG_CONFIG" && \
16253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16254 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16255 ac_status=$?
16256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257 test $ac_status = 0; }; then
16258 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16259else
16260 pkg_failed=yes
16261fi
16262 fi
16263else
16264 pkg_failed=untried
16265fi
16266if test -n "$PKG_CONFIG"; then
16267 if test -n "$WEBKIT_LIBS"; then
16268 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16269 else
16270 if test -n "$PKG_CONFIG" && \
16271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16272 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16273 ac_status=$?
16274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16275 test $ac_status = 0; }; then
16276 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16277else
16278 pkg_failed=yes
16279fi
16280 fi
16281else
16282 pkg_failed=untried
16283fi
16284
16285
16286
16287if test $pkg_failed = yes; then
16288
16289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16290 _pkg_short_errors_supported=yes
16291else
16292 _pkg_short_errors_supported=no
16293fi
16294 if test $_pkg_short_errors_supported = yes; then
16295 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16296 else
16297 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16298 fi
16299 # Put the nasty error message in config.log where it belongs
16300 echo "$WEBKIT_PKG_ERRORS" >&5
16301
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16303$as_echo "no" >&6; }
16304
16305
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16307$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16308if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16309 $as_echo_n "(cached) " >&6
16310else
16311
16312 ac_check_framework_save_LIBS=$LIBS
16313 LIBS="-framework JavaScriptCore $LIBS"
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h. */
16316
16317 #include <JavaScriptCore/JSBase.h>
16318
16319int
16320main ()
16321{
16322JSEvaluateScript(0, 0, 0, 0, 0, 0);
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327if ac_fn_cxx_try_link "$LINENO"; then :
16328
16329 ac_cv_framework_JavaScriptCore=yes
16330
16331else
16332 ac_cv_framework_JavaScriptCore=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
16336 LIBS=$ac_check_framework_save_LIBS
16337
16338fi
16339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16340$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16341 if test $ac_cv_framework_JavaScriptCore = yes; then :
16342
16343
16344 for element in "-framework JavaScriptCore $LIBS"; do
16345 haveit=
16346 for x in $LIBS; do
16347
16348 acl_save_prefix="$prefix"
16349 prefix="$acl_final_prefix"
16350 acl_save_exec_prefix="$exec_prefix"
16351 exec_prefix="$acl_final_exec_prefix"
16352 eval x=\"$x\"
16353 exec_prefix="$acl_save_exec_prefix"
16354 prefix="$acl_save_prefix"
16355
16356 if test "X$x" = "X$element"; then
16357 haveit=yes
16358 break
16359 fi
16360 done
16361 if test -z "$haveit"; then
16362 LIBS="${LIBS}${LIBS:+ }$element"
16363 fi
16364 done
16365
16366 CY_EXECUTE=1
16367
16368fi
16369
16370elif test $pkg_failed = untried; then
16371
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16374$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16375if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16376 $as_echo_n "(cached) " >&6
16377else
16378
16379 ac_check_framework_save_LIBS=$LIBS
16380 LIBS="-framework JavaScriptCore $LIBS"
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h. */
16383
16384 #include <JavaScriptCore/JSBase.h>
16385
16386int
16387main ()
16388{
16389JSEvaluateScript(0, 0, 0, 0, 0, 0);
16390 ;
16391 return 0;
16392}
16393_ACEOF
16394if ac_fn_cxx_try_link "$LINENO"; then :
16395
16396 ac_cv_framework_JavaScriptCore=yes
16397
16398else
16399 ac_cv_framework_JavaScriptCore=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_framework_save_LIBS
16404
16405fi
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16407$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16408 if test $ac_cv_framework_JavaScriptCore = yes; then :
16409
16410
16411 for element in "-framework JavaScriptCore $LIBS"; do
16412 haveit=
16413 for x in $LIBS; do
16414
16415 acl_save_prefix="$prefix"
16416 prefix="$acl_final_prefix"
16417 acl_save_exec_prefix="$exec_prefix"
16418 exec_prefix="$acl_final_exec_prefix"
16419 eval x=\"$x\"
16420 exec_prefix="$acl_save_exec_prefix"
16421 prefix="$acl_save_prefix"
16422
16423 if test "X$x" = "X$element"; then
16424 haveit=yes
16425 break
16426 fi
16427 done
16428 if test -z "$haveit"; then
16429 LIBS="${LIBS}${LIBS:+ }$element"
16430 fi
16431 done
16432
16433 CY_EXECUTE=1
16434
16435fi
16436
16437else
16438 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16439 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16441$as_echo "yes" >&6; }
16442
16443 CY_EXECUTE=1
16444
16445 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16446 haveit=
16447 for x in $CXXFLAGS; do
16448
16449 acl_save_prefix="$prefix"
16450 prefix="$acl_final_prefix"
16451 acl_save_exec_prefix="$exec_prefix"
16452 exec_prefix="$acl_final_exec_prefix"
16453 eval x=\"$x\"
16454 exec_prefix="$acl_save_exec_prefix"
16455 prefix="$acl_save_prefix"
16456
16457 if test "X$x" = "X$element"; then
16458 haveit=yes
16459 break
16460 fi
16461 done
16462 if test -z "$haveit"; then
16463 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16464 fi
16465 done
16466
16467
16468 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16469 haveit=
16470 for x in $LIBS; do
16471
16472 acl_save_prefix="$prefix"
16473 prefix="$acl_final_prefix"
16474 acl_save_exec_prefix="$exec_prefix"
16475 exec_prefix="$acl_final_exec_prefix"
16476 eval x=\"$x\"
16477 exec_prefix="$acl_save_exec_prefix"
16478 prefix="$acl_save_prefix"
16479
16480 if test "X$x" = "X$element"; then
16481 haveit=yes
16482 break
16483 fi
16484 done
16485 if test -z "$haveit"; then
16486 LIBS="${LIBS}${LIBS:+ }$element"
16487 fi
16488 done
16489
16490
16491fi
16492
16493else
16494 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16495 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16497$as_echo "yes" >&6; }
16498
16499 CY_EXECUTE=1
16500
16501 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16502 haveit=
16503 for x in $CXXFLAGS; do
16504
16505 acl_save_prefix="$prefix"
16506 prefix="$acl_final_prefix"
16507 acl_save_exec_prefix="$exec_prefix"
16508 exec_prefix="$acl_final_exec_prefix"
16509 eval x=\"$x\"
16510 exec_prefix="$acl_save_exec_prefix"
16511 prefix="$acl_save_prefix"
16512
16513 if test "X$x" = "X$element"; then
16514 haveit=yes
16515 break
16516 fi
16517 done
16518 if test -z "$haveit"; then
16519 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16520 fi
16521 done
16522
16523
16524 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16525 haveit=
16526 for x in $LIBS; do
16527
16528 acl_save_prefix="$prefix"
16529 prefix="$acl_final_prefix"
16530 acl_save_exec_prefix="$exec_prefix"
16531 exec_prefix="$acl_final_exec_prefix"
16532 eval x=\"$x\"
16533 exec_prefix="$acl_save_exec_prefix"
16534 prefix="$acl_save_prefix"
16535
16536 if test "X$x" = "X$element"; then
16537 haveit=yes
16538 break
16539 fi
16540 done
16541 if test -z "$haveit"; then
16542 LIBS="${LIBS}${LIBS:+ }$element"
16543 fi
16544 done
16545
16546
16547fi
5053a6d1
DWT
16548
16549
9c60689e
DWT
16550fi
16551
5053a6d1 16552
058f1bc8 16553
5053a6d1
DWT
16554case $CY_EXECUTE in #(
16555 1) :
16556
9c60689e
DWT
16557
16558
16559pkg_failed=no
5053a6d1
DWT
16560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16561$as_echo_n "checking for LIBFFI... " >&6; }
9c60689e
DWT
16562
16563if test -n "$PKG_CONFIG"; then
5053a6d1
DWT
16564 if test -n "$LIBFFI_CFLAGS"; then
16565 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
9c60689e
DWT
16566 else
16567 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
16568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16569 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
16570 ac_status=$?
16571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16572 test $ac_status = 0; }; then
5053a6d1 16573 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
9c60689e
DWT
16574else
16575 pkg_failed=yes
16576fi
16577 fi
16578else
16579 pkg_failed=untried
16580fi
16581if test -n "$PKG_CONFIG"; then
5053a6d1
DWT
16582 if test -n "$LIBFFI_LIBS"; then
16583 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
9c60689e
DWT
16584 else
16585 if test -n "$PKG_CONFIG" && \
5053a6d1
DWT
16586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16587 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
9c60689e
DWT
16588 ac_status=$?
16589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16590 test $ac_status = 0; }; then
5053a6d1 16591 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
9c60689e
DWT
16592else
16593 pkg_failed=yes
16594fi
16595 fi
16596else
16597 pkg_failed=untried
16598fi
16599
16600
16601
16602if test $pkg_failed = yes; then
16603
16604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16605 _pkg_short_errors_supported=yes
16606else
16607 _pkg_short_errors_supported=no
16608fi
16609 if test $_pkg_short_errors_supported = yes; then
5053a6d1 16610 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
9c60689e 16611 else
5053a6d1 16612 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
9c60689e
DWT
16613 fi
16614 # Put the nasty error message in config.log where it belongs
5053a6d1 16615 echo "$LIBFFI_PKG_ERRORS" >&5
9c60689e
DWT
16616
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16618$as_echo "no" >&6; }
b128dfee 16619
5053a6d1
DWT
16620 for ac_header in ffi.h ffi/ffi.h
16621do :
16622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16623ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16624eval as_val=\$$as_ac_Header
16625 if test "x$as_val" = x""yes; then :
16626 cat >>confdefs.h <<_ACEOF
16627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628_ACEOF
16629 break
16630fi
16631
16632done
c823f118 16633
5053a6d1
DWT
16634 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16635
16636 as_fn_error "You need libffi" "$LINENO" 5
16637
16638fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16640$as_echo_n "checking for library containing ffi_call... " >&6; }
16641if test "${ac_cv_search_ffi_call+set}" = set; then :
c823f118
DWT
16642 $as_echo_n "(cached) " >&6
16643else
5053a6d1
DWT
16644 ac_func_search_save_LIBS=$LIBS
16645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
16646/* end confdefs.h. */
16647
5053a6d1
DWT
16648/* Override any GCC internal prototype to avoid an error.
16649 Use char because int might match the return type of a GCC
16650 builtin and then its argument prototype would still apply. */
16651#ifdef __cplusplus
16652extern "C"
16653#endif
16654char ffi_call ();
c823f118
DWT
16655int
16656main ()
16657{
5053a6d1 16658return ffi_call ();
c823f118
DWT
16659 ;
16660 return 0;
16661}
b128dfee 16662_ACEOF
5053a6d1
DWT
16663for ac_lib in '' ffi; do
16664 if test -z "$ac_lib"; then
16665 ac_res="none required"
16666 else
16667 ac_res=-l$ac_lib
16668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16669 fi
16670 if ac_fn_cxx_try_link "$LINENO"; then :
16671 ac_cv_search_ffi_call=$ac_res
c823f118
DWT
16672fi
16673rm -f core conftest.err conftest.$ac_objext \
5053a6d1
DWT
16674 conftest$ac_exeext
16675 if test "${ac_cv_search_ffi_call+set}" = set; then :
16676 break
b128dfee 16677fi
5053a6d1
DWT
16678done
16679if test "${ac_cv_search_ffi_call+set}" = set; then :
b128dfee 16680
5053a6d1
DWT
16681else
16682 ac_cv_search_ffi_call=no
16683fi
16684rm conftest.$ac_ext
16685LIBS=$ac_func_search_save_LIBS
16686fi
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16688$as_echo "$ac_cv_search_ffi_call" >&6; }
16689ac_res=$ac_cv_search_ffi_call
16690if test "$ac_res" != no; then :
16691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b128dfee 16692
5053a6d1 16693fi
c823f118 16694
5053a6d1
DWT
16695 case $ac_cv_search_ffi_call in #(
16696 no) :
c823f118 16697
5053a6d1
DWT
16698 as_fn_error "You need libffi" "$LINENO" 5
16699 ;; #(
16700 *) :
16701 ;;
16702esac
c823f118 16703
5053a6d1 16704elif test $pkg_failed = untried; then
c823f118 16705
5053a6d1
DWT
16706 for ac_header in ffi.h ffi/ffi.h
16707do :
16708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16710eval as_val=\$$as_ac_Header
16711 if test "x$as_val" = x""yes; then :
16712 cat >>confdefs.h <<_ACEOF
16713#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16714_ACEOF
16715 break
c823f118 16716fi
b128dfee 16717
5053a6d1 16718done
b128dfee 16719
5053a6d1 16720 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
c823f118 16721
5053a6d1
DWT
16722 as_fn_error "You need libffi" "$LINENO" 5
16723
16724fi
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16726$as_echo_n "checking for library containing ffi_call... " >&6; }
16727if test "${ac_cv_search_ffi_call+set}" = set; then :
c823f118
DWT
16728 $as_echo_n "(cached) " >&6
16729else
5053a6d1
DWT
16730 ac_func_search_save_LIBS=$LIBS
16731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c823f118
DWT
16732/* end confdefs.h. */
16733
5053a6d1
DWT
16734/* Override any GCC internal prototype to avoid an error.
16735 Use char because int might match the return type of a GCC
16736 builtin and then its argument prototype would still apply. */
16737#ifdef __cplusplus
16738extern "C"
16739#endif
16740char ffi_call ();
c823f118
DWT
16741int
16742main ()
16743{
5053a6d1 16744return ffi_call ();
c823f118
DWT
16745 ;
16746 return 0;
16747}
b128dfee 16748_ACEOF
5053a6d1
DWT
16749for ac_lib in '' ffi; do
16750 if test -z "$ac_lib"; then
16751 ac_res="none required"
16752 else
16753 ac_res=-l$ac_lib
16754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16755 fi
16756 if ac_fn_cxx_try_link "$LINENO"; then :
16757 ac_cv_search_ffi_call=$ac_res
632b71ea
DWT
16758fi
16759rm -f core conftest.err conftest.$ac_objext \
5053a6d1
DWT
16760 conftest$ac_exeext
16761 if test "${ac_cv_search_ffi_call+set}" = set; then :
16762 break
632b71ea 16763fi
5053a6d1
DWT
16764done
16765if test "${ac_cv_search_ffi_call+set}" = set; then :
3fd51f51 16766
5053a6d1
DWT
16767else
16768 ac_cv_search_ffi_call=no
16769fi
16770rm conftest.$ac_ext
16771LIBS=$ac_func_search_save_LIBS
16772fi
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16774$as_echo "$ac_cv_search_ffi_call" >&6; }
16775ac_res=$ac_cv_search_ffi_call
16776if test "$ac_res" != no; then :
16777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3fd51f51 16778
5053a6d1 16779fi
3fd51f51 16780
5053a6d1
DWT
16781 case $ac_cv_search_ffi_call in #(
16782 no) :
3fd51f51 16783
5053a6d1
DWT
16784 as_fn_error "You need libffi" "$LINENO" 5
16785 ;; #(
16786 *) :
16787 ;;
16788esac
9c60689e
DWT
16789
16790else
5053a6d1
DWT
16791 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16792 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
9c60689e
DWT
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16794$as_echo "yes" >&6; }
3fd51f51 16795
3fd51f51 16796
5053a6d1 16797 for element in `$PKG_CONFIG --cflags libffi`; do
3fd51f51
DWT
16798 haveit=
16799 for x in $CXXFLAGS; do
16800
16801 acl_save_prefix="$prefix"
16802 prefix="$acl_final_prefix"
16803 acl_save_exec_prefix="$exec_prefix"
16804 exec_prefix="$acl_final_exec_prefix"
16805 eval x=\"$x\"
16806 exec_prefix="$acl_save_exec_prefix"
16807 prefix="$acl_save_prefix"
16808
16809 if test "X$x" = "X$element"; then
16810 haveit=yes
16811 break
16812 fi
16813 done
16814 if test -z "$haveit"; then
16815 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16816 fi
16817 done
16818
16819
5053a6d1 16820 for element in `$PKG_CONFIG --libs libffi`; do
3fd51f51
DWT
16821 haveit=
16822 for x in $LIBS; do
16823
16824 acl_save_prefix="$prefix"
16825 prefix="$acl_final_prefix"
16826 acl_save_exec_prefix="$exec_prefix"
16827 exec_prefix="$acl_final_exec_prefix"
16828 eval x=\"$x\"
16829 exec_prefix="$acl_save_exec_prefix"
16830 prefix="$acl_save_prefix"
16831
16832 if test "X$x" = "X$element"; then
16833 haveit=yes
16834 break
16835 fi
16836 done
16837 if test -z "$haveit"; then
16838 LIBS="${LIBS}${LIBS:+ }$element"
16839 fi
16840 done
16841
16842
9c60689e 16843fi
5053a6d1
DWT
16844 ac_ext=mm
16845ac_cpp='$OBJCXXCPP $CPPFLAGS'
16846ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16847ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16848ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a667869d 16849
5053a6d1
DWT
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
16851$as_echo_n "checking if we really have Objective C++... " >&6; }
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h. */
9c60689e 16854
5053a6d1 16855 // This space intentionally left blank
a667869d 16856
5053a6d1
DWT
16857_ACEOF
16858if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 16859
5053a6d1
DWT
16860 CY_OBJECTIVEC=1
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16862$as_echo "yes" >&6; }
632b71ea 16863
632b71ea 16864else
5053a6d1 16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
632b71ea 16866$as_echo "no" >&6; }
5053a6d1
DWT
16867fi
16868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 if test "x$CY_OBJECTIVEC" = x1; then :
9c60689e 16870
632b71ea 16871
5053a6d1
DWT
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
16873$as_echo_n "checking for framework CoreFoundation... " >&6; }
16874if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
9c60689e
DWT
16875 $as_echo_n "(cached) " >&6
16876else
632b71ea
DWT
16877
16878 ac_check_framework_save_LIBS=$LIBS
5053a6d1 16879 LIBS="-framework CoreFoundation $LIBS"
632b71ea 16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
16881/* end confdefs.h. */
16882
5053a6d1 16883 #include <CoreFoundation/CFBase.h>
632b71ea 16884
9c60689e
DWT
16885int
16886main ()
16887{
5053a6d1 16888CFAllocatorGetDefault();
9c60689e
DWT
16889 ;
16890 return 0;
16891}
16892_ACEOF
5053a6d1 16893if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 16894
5053a6d1 16895 ac_cv_framework_CoreFoundation=yes
632b71ea 16896
9c60689e 16897else
5053a6d1 16898 ac_cv_framework_CoreFoundation=no
9c60689e 16899fi
632b71ea
DWT
16900rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 LIBS=$ac_check_framework_save_LIBS
9c60689e
DWT
16903
16904fi
5053a6d1
DWT
16905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
16906$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
16907 if test $ac_cv_framework_CoreFoundation = yes; then :
632b71ea
DWT
16908
16909
5053a6d1 16910 for element in "-framework CoreFoundation $LIBS"; do
632b71ea
DWT
16911 haveit=
16912 for x in $LIBS; do
16913
16914 acl_save_prefix="$prefix"
16915 prefix="$acl_final_prefix"
16916 acl_save_exec_prefix="$exec_prefix"
16917 exec_prefix="$acl_final_exec_prefix"
16918 eval x=\"$x\"
16919 exec_prefix="$acl_save_exec_prefix"
16920 prefix="$acl_save_prefix"
16921
16922 if test "X$x" = "X$element"; then
16923 haveit=yes
16924 break
16925 fi
16926 done
16927 if test -z "$haveit"; then
16928 LIBS="${LIBS}${LIBS:+ }$element"
16929 fi
16930 done
16931
632b71ea 16932
632b71ea 16933
632b71ea
DWT
16934
16935
5053a6d1
DWT
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
16937$as_echo_n "checking for framework Foundation... " >&6; }
16938if test "${ac_cv_framework_Foundation+set}" = set; then :
a667869d
DWT
16939 $as_echo_n "(cached) " >&6
16940else
632b71ea
DWT
16941
16942 ac_check_framework_save_LIBS=$LIBS
5053a6d1 16943 LIBS="-framework Foundation $LIBS"
632b71ea 16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a667869d
DWT
16945/* end confdefs.h. */
16946
5053a6d1 16947 #include <Foundation/NSObject.h>
632b71ea 16948
a667869d
DWT
16949int
16950main ()
16951{
5053a6d1 16952[[NSObject alloc] init];
a667869d
DWT
16953 ;
16954 return 0;
16955}
16956_ACEOF
5053a6d1 16957if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 16958
5053a6d1 16959 ac_cv_framework_Foundation=yes
632b71ea 16960
a667869d 16961else
5053a6d1 16962 ac_cv_framework_Foundation=no
632b71ea
DWT
16963fi
16964rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16966 LIBS=$ac_check_framework_save_LIBS
a667869d 16967
632b71ea 16968fi
5053a6d1
DWT
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
16970$as_echo "$ac_cv_framework_Foundation" >&6; }
16971 if test $ac_cv_framework_Foundation = yes; then :
a667869d 16972
a667869d 16973
5053a6d1 16974 for element in "-framework Foundation $LIBS"; do
632b71ea
DWT
16975 haveit=
16976 for x in $LIBS; do
a667869d 16977
632b71ea
DWT
16978 acl_save_prefix="$prefix"
16979 prefix="$acl_final_prefix"
16980 acl_save_exec_prefix="$exec_prefix"
16981 exec_prefix="$acl_final_exec_prefix"
16982 eval x=\"$x\"
16983 exec_prefix="$acl_save_exec_prefix"
16984 prefix="$acl_save_prefix"
16985
16986 if test "X$x" = "X$element"; then
16987 haveit=yes
16988 break
16989 fi
16990 done
16991 if test -z "$haveit"; then
16992 LIBS="${LIBS}${LIBS:+ }$element"
16993 fi
16994 done
16995
5053a6d1
DWT
16996 cat >>confdefs.h <<_ACEOF
16997#define HAVE_FRAMEWORK_FOUNDATION 1
16998_ACEOF
16999
a667869d 17000
a667869d 17001fi
632b71ea 17002
5053a6d1
DWT
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
17005$as_echo_n "checking for framework WebKit... " >&6; }
17006if test "${ac_cv_framework_WebKit+set}" = set; then :
17007 $as_echo_n "(cached) " >&6
a667869d 17008else
632b71ea 17009
5053a6d1
DWT
17010 ac_check_framework_save_LIBS=$LIBS
17011 LIBS="-framework WebKit $LIBS"
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013/* end confdefs.h. */
632b71ea 17014
5053a6d1 17015 #include <WebKit/WebScriptObject.h>
632b71ea 17016
5053a6d1
DWT
17017int
17018main ()
17019{
17020[[WebScriptObject alloc] init];
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025if ac_fn_objcxx_try_link "$LINENO"; then :
632b71ea 17026
5053a6d1 17027 ac_cv_framework_WebKit=yes
632b71ea 17028
5053a6d1
DWT
17029else
17030 ac_cv_framework_WebKit=no
17031fi
17032rm -f core conftest.err conftest.$ac_objext \
17033 conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_framework_save_LIBS
632b71ea 17035
5053a6d1
DWT
17036fi
17037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
17038$as_echo "$ac_cv_framework_WebKit" >&6; }
17039 if test $ac_cv_framework_WebKit = yes; then :
17040
17041
17042 for element in "-framework WebKit $LIBS"; do
632b71ea
DWT
17043 haveit=
17044 for x in $LIBS; do
17045
17046 acl_save_prefix="$prefix"
17047 prefix="$acl_final_prefix"
17048 acl_save_exec_prefix="$exec_prefix"
17049 exec_prefix="$acl_final_exec_prefix"
17050 eval x=\"$x\"
17051 exec_prefix="$acl_save_exec_prefix"
17052 prefix="$acl_save_prefix"
17053
17054 if test "X$x" = "X$element"; then
17055 haveit=yes
17056 break
17057 fi
17058 done
17059 if test -z "$haveit"; then
17060 LIBS="${LIBS}${LIBS:+ }$element"
17061 fi
17062 done
17063
5053a6d1
DWT
17064 cat >>confdefs.h <<_ACEOF
17065#define HAVE_FRAMEWORK_WEBKIT 1
17066_ACEOF
17067
17068
17069fi
17070
17071
17072else
17073
17074
17075 for ac_prog in gnustep-config
17076do
17077 # Extract the first word of "$ac_prog", so it can be a program name with args.
17078set dummy $ac_prog; ac_word=$2
17079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17080$as_echo_n "checking for $ac_word... " >&6; }
17081if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
17082 $as_echo_n "(cached) " >&6
17083else
17084 if test -n "$GNUSTEP_CONFIG"; then
17085 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
17086else
17087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088for as_dir in $PATH
17089do
17090 IFS=$as_save_IFS
17091 test -z "$as_dir" && as_dir=.
17092 for ac_exec_ext in '' $ac_executable_extensions; do
17093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17094 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
17095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17096 break 2
17097 fi
17098done
17099 done
17100IFS=$as_save_IFS
17101
17102fi
17103fi
17104GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
17105if test -n "$GNUSTEP_CONFIG"; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
17107$as_echo "$GNUSTEP_CONFIG" >&6; }
17108else
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110$as_echo "no" >&6; }
17111fi
17112
17113
17114 test -n "$GNUSTEP_CONFIG" && break
17115done
632b71ea 17116
5053a6d1 17117 if test "x$GNUSTEP_CONFIG" != x; then :
a667869d 17118
632b71ea 17119
632b71ea 17120
5053a6d1 17121 for element in `$GNUSTEP_CONFIG --objc-flags`; do
632b71ea 17122 haveit=
5053a6d1 17123 for x in $OBJCXXFLAGS; do
632b71ea
DWT
17124
17125 acl_save_prefix="$prefix"
17126 prefix="$acl_final_prefix"
17127 acl_save_exec_prefix="$exec_prefix"
17128 exec_prefix="$acl_final_exec_prefix"
17129 eval x=\"$x\"
17130 exec_prefix="$acl_save_exec_prefix"
17131 prefix="$acl_save_prefix"
17132
17133 if test "X$x" = "X$element"; then
17134 haveit=yes
17135 break
17136 fi
17137 done
17138 if test -z "$haveit"; then
5053a6d1 17139 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
632b71ea
DWT
17140 fi
17141 done
17142
17143
5053a6d1 17144 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea
DWT
17145 haveit=
17146 for x in $LIBS; do
17147
17148 acl_save_prefix="$prefix"
17149 prefix="$acl_final_prefix"
17150 acl_save_exec_prefix="$exec_prefix"
17151 exec_prefix="$acl_final_exec_prefix"
17152 eval x=\"$x\"
17153 exec_prefix="$acl_save_exec_prefix"
17154 prefix="$acl_save_prefix"
17155
17156 if test "X$x" = "X$element"; then
17157 haveit=yes
17158 break
17159 fi
17160 done
17161 if test -z "$haveit"; then
17162 LIBS="${LIBS}${LIBS:+ }$element"
17163 fi
17164 done
17165
17166
5053a6d1
DWT
17167else
17168 CY_OBJECTIVEC=0
a667869d 17169
5053a6d1 17170fi
b66977f1
DWT
17171
17172fi
17173
5053a6d1
DWT
17174fi
17175 ac_ext=cpp
17176ac_cpp='$CXXCPP $CPPFLAGS'
17177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
b66977f1 17180
5053a6d1
DWT
17181 ;; #(
17182 *) :
17183 ;;
17184esac
a667869d 17185
058f1bc8
DWT
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
17187$as_echo_n "checking for a readline compatible library... " >&6; }
17188if test "${vl_cv_lib_readline+set}" = set; then :
17189 $as_echo_n "(cached) " >&6
17190else
a667869d 17191
058f1bc8
DWT
17192 ORIG_LIBS="$LIBS"
17193 for readline_lib in readline edit editline; do
17194 for termcap_lib in "" termcap curses ncurses; do
17195 if test -z "$termcap_lib"; then
17196 TRY_LIB="-l$readline_lib"
17197 else
17198 TRY_LIB="-l$readline_lib -l$termcap_lib"
17199 fi
17200 LIBS="$ORIG_LIBS $TRY_LIB"
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h. */
a667869d 17203
058f1bc8
DWT
17204/* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17207#ifdef __cplusplus
17208extern "C"
17209#endif
17210char readline ();
17211int
17212main ()
17213{
17214return readline ();
17215 ;
17216 return 0;
17217}
17218_ACEOF
17219if ac_fn_cxx_try_link "$LINENO"; then :
17220 vl_cv_lib_readline="$TRY_LIB"
17221fi
17222rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 if test -n "$vl_cv_lib_readline"; then
17225 break
17226 fi
17227 done
17228 if test -n "$vl_cv_lib_readline"; then
17229 break
17230 fi
17231 done
17232 if test -z "$vl_cv_lib_readline"; then
17233 vl_cv_lib_readline="no"
17234 LIBS="$ORIG_LIBS"
17235 fi
a667869d 17236
a667869d 17237fi
058f1bc8
DWT
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
17239$as_echo "$vl_cv_lib_readline" >&6; }
17240
17241 if test "$vl_cv_lib_readline" != "no"; then
17242
17243$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17244
17245 for ac_header in readline.h readline/readline.h
17246do :
17247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17248ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17249eval as_val=\$$as_ac_Header
17250 if test "x$as_val" = x""yes; then :
17251 cat >>confdefs.h <<_ACEOF
17252#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17253_ACEOF
5053a6d1 17254
a667869d 17255fi
058f1bc8
DWT
17256
17257done
17258
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17260$as_echo_n "checking whether readline supports history... " >&6; }
17261if test "${vl_cv_lib_readline_history+set}" = set; then :
17262 $as_echo_n "(cached) " >&6
17263else
17264
17265 vl_cv_lib_readline_history="no"
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267/* end confdefs.h. */
17268
17269/* Override any GCC internal prototype to avoid an error.
17270 Use char because int might match the return type of a GCC
17271 builtin and then its argument prototype would still apply. */
17272#ifdef __cplusplus
17273extern "C"
17274#endif
17275char add_history ();
17276int
17277main ()
17278{
17279return add_history ();
17280 ;
17281 return 0;
17282}
17283_ACEOF
17284if ac_fn_cxx_try_link "$LINENO"; then :
17285 vl_cv_lib_readline_history="yes"
17286fi
17287rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17289
17290fi
17291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
17292$as_echo "$vl_cv_lib_readline_history" >&6; }
17293 if test "$vl_cv_lib_readline_history" = "yes"; then
17294
17295$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17296
17297 for ac_header in history.h readline/history.h
17298do :
17299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17300ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17301eval as_val=\$$as_ac_Header
17302 if test "x$as_val" = x""yes; then :
17303 cat >>confdefs.h <<_ACEOF
17304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17305_ACEOF
17306
17307fi
17308
17309done
17310
17311 fi
17312 fi
17313
17314case $vl_cv_lib_readline in #(
17315 no) :
17316 as_fn_error "You need readline" "$LINENO" 5 ;; #(
17317 *) :
17318 ;;
17319esac
17320ac_ext=c
17321ac_cpp='$CPP $CPPFLAGS'
17322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17324ac_compiler_gnu=$ac_cv_c_compiler_gnu
17325
17326
17327 if test "X$prefix" = "XNONE"; then
17328 acl_final_prefix="$ac_default_prefix"
17329 else
17330 acl_final_prefix="$prefix"
17331 fi
17332 if test "X$exec_prefix" = "XNONE"; then
17333 acl_final_exec_prefix='${prefix}'
17334 else
17335 acl_final_exec_prefix="$exec_prefix"
17336 fi
17337 acl_save_prefix="$prefix"
17338 prefix="$acl_final_prefix"
17339 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17340 prefix="$acl_save_prefix"
17341
17342
17343# Check whether --with-gnu-ld was given.
17344if test "${with_gnu_ld+set}" = set; then :
17345 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17346else
17347 with_gnu_ld=no
17348fi
17349
17350# Prepare PATH_SEPARATOR.
17351# The user is always right.
17352if test "${PATH_SEPARATOR+set}" != set; then
17353 echo "#! /bin/sh" >conf$$.sh
17354 echo "exit 0" >>conf$$.sh
17355 chmod +x conf$$.sh
17356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17357 PATH_SEPARATOR=';'
17358 else
17359 PATH_SEPARATOR=:
17360 fi
17361 rm -f conf$$.sh
17362fi
17363ac_prog=ld
17364if test "$GCC" = yes; then
17365 # Check if gcc -print-prog-name=ld gives a path.
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17367$as_echo_n "checking for ld used by GCC... " >&6; }
17368 case $host in
17369 *-*-mingw*)
17370 # gcc leaves a trailing carriage return which upsets mingw
17371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17372 *)
17373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17374 esac
17375 case $ac_prog in
17376 # Accept absolute paths.
17377 [\\/]* | [A-Za-z]:[\\/]*)
17378 re_direlt='/[^/][^/]*/\.\./'
17379 # Canonicalize the path of ld
17380 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17381 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5053a6d1
DWT
17382 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17383 done
17384 test -z "$LD" && LD="$ac_prog"
17385 ;;
17386 "")
17387 # If it fails, then pretend we aren't using GCC.
17388 ac_prog=ld
17389 ;;
17390 *)
17391 # If it is relative, then search for the first ld in PATH.
17392 with_gnu_ld=unknown
17393 ;;
17394 esac
17395elif test "$with_gnu_ld" = yes; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17397$as_echo_n "checking for GNU ld... " >&6; }
a667869d 17398else
5053a6d1
DWT
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17400$as_echo_n "checking for non-GNU ld... " >&6; }
a667869d 17401fi
5053a6d1
DWT
17402if test "${acl_cv_path_LD+set}" = set; then :
17403 $as_echo_n "(cached) " >&6
17404else
17405 if test -z "$LD"; then
17406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17407 for ac_dir in $PATH; do
17408 test -z "$ac_dir" && ac_dir=.
17409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17410 acl_cv_path_LD="$ac_dir/$ac_prog"
17411 # Check to see if the program is GNU ld. I'd rather use --version,
17412 # but apparently some GNU ld's only accept -v.
17413 # Break only if it was the GNU/non-GNU ld that we prefer.
17414 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17415 *GNU* | *'with BFD'*)
17416 test "$with_gnu_ld" != no && break ;;
17417 *)
17418 test "$with_gnu_ld" != yes && break ;;
17419 esac
a667869d 17420 fi
5053a6d1
DWT
17421 done
17422 IFS="$ac_save_ifs"
a667869d 17423else
5053a6d1 17424 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a667869d 17425fi
a667869d 17426fi
a667869d 17427
5053a6d1
DWT
17428LD="$acl_cv_path_LD"
17429if test -n "$LD"; then
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17431$as_echo "$LD" >&6; }
17432else
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a667869d 17434$as_echo "no" >&6; }
a667869d 17435fi
5053a6d1
DWT
17436test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17438$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17439if test "${acl_cv_prog_gnu_ld+set}" = set; then :
a667869d
DWT
17440 $as_echo_n "(cached) " >&6
17441else
5053a6d1
DWT
17442 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17443case `$LD -v 2>&1 </dev/null` in
17444*GNU* | *'with BFD'*)
17445 acl_cv_prog_gnu_ld=yes ;;
17446*)
17447 acl_cv_prog_gnu_ld=no ;;
17448esac
a667869d 17449fi
5053a6d1
DWT
17450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17451$as_echo "$acl_cv_prog_gnu_ld" >&6; }
17452with_gnu_ld=$acl_cv_prog_gnu_ld
17453
17454
17455
a667869d 17456
5053a6d1
DWT
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17458$as_echo_n "checking for shared library run path origin... " >&6; }
17459if test "${acl_cv_rpath+set}" = set; then :
17460 $as_echo_n "(cached) " >&6
a667869d 17461else
5053a6d1
DWT
17462
17463 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17464 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17465 . ./conftest.sh
17466 rm -f ./conftest.sh
17467 acl_cv_rpath=done
17468
a667869d 17469fi
5053a6d1
DWT
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17471$as_echo "$acl_cv_rpath" >&6; }
17472 wl="$acl_cv_wl"
17473 acl_libext="$acl_cv_libext"
17474 acl_shlibext="$acl_cv_shlibext"
17475 acl_libname_spec="$acl_cv_libname_spec"
17476 acl_library_names_spec="$acl_cv_library_names_spec"
17477 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17478 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17479 acl_hardcode_direct="$acl_cv_hardcode_direct"
17480 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17481 # Check whether --enable-rpath was given.
17482if test "${enable_rpath+set}" = set; then :
17483 enableval=$enable_rpath; :
17484else
17485 enable_rpath=yes
a667869d 17486fi
a667869d 17487
a667869d 17488
a667869d 17489
5053a6d1
DWT
17490 acl_libdirstem=lib
17491 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17492 if test -n "$searchpath"; then
17493 acl_save_IFS="${IFS= }"; IFS=":"
17494 for searchdir in $searchpath; do
17495 if test -d "$searchdir"; then
17496 case "$searchdir" in
17497 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17498 *) searchdir=`cd "$searchdir" && pwd`
17499 case "$searchdir" in
17500 */lib64 ) acl_libdirstem=lib64 ;;
17501 esac ;;
17502 esac
17503 fi
17504 done
17505 IFS="$acl_save_IFS"
17506 fi
9c60689e 17507
9c60689e 17508
9c60689e 17509
9c60689e 17510
9c60689e 17511
9c60689e 17512
9c60689e 17513
9c60689e 17514
9c60689e 17515
5053a6d1 17516 use_additional=yes
9c60689e 17517
5053a6d1
DWT
17518 acl_save_prefix="$prefix"
17519 prefix="$acl_final_prefix"
17520 acl_save_exec_prefix="$exec_prefix"
17521 exec_prefix="$acl_final_exec_prefix"
9c60689e 17522
5053a6d1
DWT
17523 eval additional_includedir=\"$includedir\"
17524 eval additional_libdir=\"$libdir\"
9c60689e 17525
5053a6d1
DWT
17526 exec_prefix="$acl_save_exec_prefix"
17527 prefix="$acl_save_prefix"
3fd51f51
DWT
17528
17529
5053a6d1
DWT
17530# Check whether --with-libiconv-prefix was given.
17531if test "${with_libiconv_prefix+set}" = set; then :
17532 withval=$with_libiconv_prefix;
17533 if test "X$withval" = "Xno"; then
17534 use_additional=no
17535 else
17536 if test "X$withval" = "X"; then
3fd51f51
DWT
17537
17538 acl_save_prefix="$prefix"
17539 prefix="$acl_final_prefix"
17540 acl_save_exec_prefix="$exec_prefix"
17541 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
17542
17543 eval additional_includedir=\"$includedir\"
17544 eval additional_libdir=\"$libdir\"
17545
3fd51f51
DWT
17546 exec_prefix="$acl_save_exec_prefix"
17547 prefix="$acl_save_prefix"
17548
5053a6d1
DWT
17549 else
17550 additional_includedir="$withval/include"
17551 additional_libdir="$withval/$acl_libdirstem"
3fd51f51 17552 fi
3fd51f51 17553 fi
3fd51f51 17554
5053a6d1 17555fi
3fd51f51 17556
5053a6d1
DWT
17557 LIBICONV=
17558 LTLIBICONV=
17559 INCICONV=
17560 LIBICONV_PREFIX=
17561 rpathdirs=
17562 ltrpathdirs=
17563 names_already_handled=
17564 names_next_round='iconv '
17565 while test -n "$names_next_round"; do
17566 names_this_round="$names_next_round"
17567 names_next_round=
17568 for name in $names_this_round; do
17569 already_handled=
17570 for n in $names_already_handled; do
17571 if test "$n" = "$name"; then
17572 already_handled=yes
17573 break
17574 fi
17575 done
17576 if test -z "$already_handled"; then
17577 names_already_handled="$names_already_handled $name"
17578 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17579 eval value=\"\$HAVE_LIB$uppername\"
17580 if test -n "$value"; then
17581 if test "$value" = yes; then
17582 eval value=\"\$LIB$uppername\"
17583 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17584 eval value=\"\$LTLIB$uppername\"
17585 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17586 else
17587 :
17588 fi
17589 else
17590 found_dir=
17591 found_la=
17592 found_so=
17593 found_a=
17594 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17595 if test -n "$acl_shlibext"; then
17596 shrext=".$acl_shlibext" # typically: shrext=.so
17597 else
17598 shrext=
17599 fi
17600 if test $use_additional = yes; then
17601 dir="$additional_libdir"
17602 if test -n "$acl_shlibext"; then
17603 if test -f "$dir/$libname$shrext"; then
17604 found_dir="$dir"
17605 found_so="$dir/$libname$shrext"
17606 else
17607 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17608 ver=`(cd "$dir" && \
17609 for f in "$libname$shrext".*; do echo "$f"; done \
17610 | sed -e "s,^$libname$shrext\\\\.,," \
17611 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17612 | sed 1q ) 2>/dev/null`
17613 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17614 found_dir="$dir"
17615 found_so="$dir/$libname$shrext.$ver"
17616 fi
17617 else
17618 eval library_names=\"$acl_library_names_spec\"
17619 for f in $library_names; do
17620 if test -f "$dir/$f"; then
17621 found_dir="$dir"
17622 found_so="$dir/$f"
17623 break
17624 fi
17625 done
17626 fi
17627 fi
17628 fi
17629 if test "X$found_dir" = "X"; then
17630 if test -f "$dir/$libname.$acl_libext"; then
17631 found_dir="$dir"
17632 found_a="$dir/$libname.$acl_libext"
17633 fi
17634 fi
17635 if test "X$found_dir" != "X"; then
17636 if test -f "$dir/$libname.la"; then
17637 found_la="$dir/$libname.la"
17638 fi
17639 fi
17640 fi
17641 if test "X$found_dir" = "X"; then
17642 for x in $LDFLAGS $LTLIBICONV; do
3fd51f51
DWT
17643
17644 acl_save_prefix="$prefix"
17645 prefix="$acl_final_prefix"
17646 acl_save_exec_prefix="$exec_prefix"
17647 exec_prefix="$acl_final_exec_prefix"
17648 eval x=\"$x\"
17649 exec_prefix="$acl_save_exec_prefix"
17650 prefix="$acl_save_prefix"
17651
5053a6d1
DWT
17652 case "$x" in
17653 -L*)
17654 dir=`echo "X$x" | sed -e 's/^X-L//'`
17655 if test -n "$acl_shlibext"; then
17656 if test -f "$dir/$libname$shrext"; then
17657 found_dir="$dir"
17658 found_so="$dir/$libname$shrext"
17659 else
17660 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17661 ver=`(cd "$dir" && \
17662 for f in "$libname$shrext".*; do echo "$f"; done \
17663 | sed -e "s,^$libname$shrext\\\\.,," \
17664 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17665 | sed 1q ) 2>/dev/null`
17666 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17667 found_dir="$dir"
17668 found_so="$dir/$libname$shrext.$ver"
17669 fi
17670 else
17671 eval library_names=\"$acl_library_names_spec\"
17672 for f in $library_names; do
17673 if test -f "$dir/$f"; then
17674 found_dir="$dir"
17675 found_so="$dir/$f"
17676 break
17677 fi
17678 done
17679 fi
17680 fi
17681 fi
17682 if test "X$found_dir" = "X"; then
17683 if test -f "$dir/$libname.$acl_libext"; then
17684 found_dir="$dir"
17685 found_a="$dir/$libname.$acl_libext"
17686 fi
17687 fi
17688 if test "X$found_dir" != "X"; then
17689 if test -f "$dir/$libname.la"; then
17690 found_la="$dir/$libname.la"
17691 fi
17692 fi
17693 ;;
17694 esac
17695 if test "X$found_dir" != "X"; then
17696 break
17697 fi
17698 done
17699 fi
17700 if test "X$found_dir" != "X"; then
17701 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17702 if test "X$found_so" != "X"; then
17703 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17704 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17705 else
17706 haveit=
17707 for x in $ltrpathdirs; do
17708 if test "X$x" = "X$found_dir"; then
17709 haveit=yes
17710 break
17711 fi
17712 done
17713 if test -z "$haveit"; then
17714 ltrpathdirs="$ltrpathdirs $found_dir"
17715 fi
17716 if test "$acl_hardcode_direct" = yes; then
17717 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17718 else
17719 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17721 haveit=
17722 for x in $rpathdirs; do
17723 if test "X$x" = "X$found_dir"; then
17724 haveit=yes
17725 break
17726 fi
17727 done
17728 if test -z "$haveit"; then
17729 rpathdirs="$rpathdirs $found_dir"
17730 fi
17731 else
17732 haveit=
17733 for x in $LDFLAGS $LIBICONV; do
c823f118
DWT
17734
17735 acl_save_prefix="$prefix"
17736 prefix="$acl_final_prefix"
17737 acl_save_exec_prefix="$exec_prefix"
17738 exec_prefix="$acl_final_exec_prefix"
17739 eval x=\"$x\"
17740 exec_prefix="$acl_save_exec_prefix"
17741 prefix="$acl_save_prefix"
17742
5053a6d1
DWT
17743 if test "X$x" = "X-L$found_dir"; then
17744 haveit=yes
17745 break
17746 fi
17747 done
17748 if test -z "$haveit"; then
17749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17750 fi
17751 if test "$acl_hardcode_minus_L" != no; then
17752 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17753 else
17754 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17755 fi
17756 fi
17757 fi
17758 fi
17759 else
17760 if test "X$found_a" != "X"; then
17761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17762 else
17763 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17764 fi
17765 fi
17766 additional_includedir=
17767 case "$found_dir" in
17768 */$acl_libdirstem | */$acl_libdirstem/)
17769 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17770 LIBICONV_PREFIX="$basedir"
17771 additional_includedir="$basedir/include"
17772 ;;
17773 esac
17774 if test "X$additional_includedir" != "X"; then
17775 if test "X$additional_includedir" != "X/usr/include"; then
17776 haveit=
17777 if test "X$additional_includedir" = "X/usr/local/include"; then
17778 if test -n "$GCC"; then
17779 case $host_os in
17780 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17781 esac
17782 fi
17783 fi
17784 if test -z "$haveit"; then
17785 for x in $CPPFLAGS $INCICONV; do
c823f118
DWT
17786
17787 acl_save_prefix="$prefix"
17788 prefix="$acl_final_prefix"
17789 acl_save_exec_prefix="$exec_prefix"
17790 exec_prefix="$acl_final_exec_prefix"
17791 eval x=\"$x\"
17792 exec_prefix="$acl_save_exec_prefix"
17793 prefix="$acl_save_prefix"
17794
5053a6d1
DWT
17795 if test "X$x" = "X-I$additional_includedir"; then
17796 haveit=yes
17797 break
17798 fi
17799 done
17800 if test -z "$haveit"; then
17801 if test -d "$additional_includedir"; then
17802 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17803 fi
17804 fi
17805 fi
17806 fi
17807 fi
17808 if test -n "$found_la"; then
17809 save_libdir="$libdir"
17810 case "$found_la" in
17811 */* | *\\*) . "$found_la" ;;
17812 *) . "./$found_la" ;;
17813 esac
17814 libdir="$save_libdir"
17815 for dep in $dependency_libs; do
17816 case "$dep" in
17817 -L*)
17818 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17819 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17820 haveit=
17821 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17822 if test -n "$GCC"; then
17823 case $host_os in
17824 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17825 esac
17826 fi
17827 fi
17828 if test -z "$haveit"; then
17829 haveit=
17830 for x in $LDFLAGS $LIBICONV; do
c823f118 17831
5053a6d1
DWT
17832 acl_save_prefix="$prefix"
17833 prefix="$acl_final_prefix"
17834 acl_save_exec_prefix="$exec_prefix"
17835 exec_prefix="$acl_final_exec_prefix"
17836 eval x=\"$x\"
17837 exec_prefix="$acl_save_exec_prefix"
17838 prefix="$acl_save_prefix"
c823f118 17839
5053a6d1
DWT
17840 if test "X$x" = "X-L$additional_libdir"; then
17841 haveit=yes
17842 break
17843 fi
17844 done
17845 if test -z "$haveit"; then
17846 if test -d "$additional_libdir"; then
17847 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17848 fi
17849 fi
17850 haveit=
17851 for x in $LDFLAGS $LTLIBICONV; do
c823f118
DWT
17852
17853 acl_save_prefix="$prefix"
17854 prefix="$acl_final_prefix"
17855 acl_save_exec_prefix="$exec_prefix"
17856 exec_prefix="$acl_final_exec_prefix"
17857 eval x=\"$x\"
17858 exec_prefix="$acl_save_exec_prefix"
17859 prefix="$acl_save_prefix"
17860
5053a6d1
DWT
17861 if test "X$x" = "X-L$additional_libdir"; then
17862 haveit=yes
17863 break
17864 fi
17865 done
17866 if test -z "$haveit"; then
17867 if test -d "$additional_libdir"; then
17868 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17869 fi
17870 fi
17871 fi
17872 fi
17873 ;;
17874 -R*)
17875 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17876 if test "$enable_rpath" != no; then
17877 haveit=
17878 for x in $rpathdirs; do
17879 if test "X$x" = "X$dir"; then
17880 haveit=yes
17881 break
17882 fi
17883 done
17884 if test -z "$haveit"; then
17885 rpathdirs="$rpathdirs $dir"
17886 fi
17887 haveit=
17888 for x in $ltrpathdirs; do
17889 if test "X$x" = "X$dir"; then
17890 haveit=yes
17891 break
17892 fi
17893 done
17894 if test -z "$haveit"; then
17895 ltrpathdirs="$ltrpathdirs $dir"
17896 fi
17897 fi
17898 ;;
17899 -l*)
17900 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17901 ;;
17902 *.la)
17903 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17904 ;;
17905 *)
17906 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17908 ;;
17909 esac
17910 done
17911 fi
17912 else
17913 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17915 fi
17916 fi
c823f118
DWT
17917 fi
17918 done
c823f118 17919 done
5053a6d1
DWT
17920 if test "X$rpathdirs" != "X"; then
17921 if test -n "$acl_hardcode_libdir_separator"; then
17922 alldirs=
17923 for found_dir in $rpathdirs; do
17924 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17925 done
17926 acl_save_libdir="$libdir"
17927 libdir="$alldirs"
17928 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17929 libdir="$acl_save_libdir"
17930 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17931 else
17932 for found_dir in $rpathdirs; do
17933 acl_save_libdir="$libdir"
17934 libdir="$found_dir"
17935 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17936 libdir="$acl_save_libdir"
17937 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17938 done
17939 fi
17940 fi
17941 if test "X$ltrpathdirs" != "X"; then
17942 for found_dir in $ltrpathdirs; do
17943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17944 done
47aaa820 17945 fi
47aaa820
DWT
17946
17947
47aaa820 17948
47aaa820
DWT
17949
17950
17951
5053a6d1
DWT
17952
17953 am_save_CPPFLAGS="$CPPFLAGS"
17954
17955 for element in $INCICONV; do
47aaa820 17956 haveit=
5053a6d1 17957 for x in $CPPFLAGS; do
47aaa820
DWT
17958
17959 acl_save_prefix="$prefix"
17960 prefix="$acl_final_prefix"
17961 acl_save_exec_prefix="$exec_prefix"
17962 exec_prefix="$acl_final_exec_prefix"
17963 eval x=\"$x\"
17964 exec_prefix="$acl_save_exec_prefix"
17965 prefix="$acl_save_prefix"
9c60689e 17966
47aaa820
DWT
17967 if test "X$x" = "X$element"; then
17968 haveit=yes
17969 break
17970 fi
17971 done
17972 if test -z "$haveit"; then
5053a6d1 17973 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
47aaa820
DWT
17974 fi
17975 done
17976
17977
5053a6d1
DWT
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17979$as_echo_n "checking for iconv... " >&6; }
17980if test "${am_cv_func_iconv+set}" = set; then :
17981 $as_echo_n "(cached) " >&6
17982else
47aaa820 17983
5053a6d1
DWT
17984 am_cv_func_iconv="no, consider installing GNU libiconv"
17985 am_cv_lib_iconv=no
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987/* end confdefs.h. */
17988#include <stdlib.h>
17989#include <iconv.h>
17990int
17991main ()
17992{
17993iconv_t cd = iconv_open("","");
17994 iconv(cd,NULL,NULL,NULL,NULL);
17995 iconv_close(cd);
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000if ac_fn_c_try_link "$LINENO"; then :
18001 am_cv_func_iconv=yes
18002fi
18003rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 if test "$am_cv_func_iconv" != yes; then
18006 am_save_LIBS="$LIBS"
18007 LIBS="$LIBS $LIBICONV"
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h. */
18010#include <stdlib.h>
18011#include <iconv.h>
18012int
18013main ()
18014{
18015iconv_t cd = iconv_open("","");
18016 iconv(cd,NULL,NULL,NULL,NULL);
18017 iconv_close(cd);
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022if ac_fn_c_try_link "$LINENO"; then :
18023 am_cv_lib_iconv=yes
18024 am_cv_func_iconv=yes
18025fi
18026rm -f core conftest.err conftest.$ac_objext \
18027 conftest$ac_exeext conftest.$ac_ext
18028 LIBS="$am_save_LIBS"
47aaa820 18029 fi
47aaa820 18030
5053a6d1
DWT
18031fi
18032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18033$as_echo "$am_cv_func_iconv" >&6; }
18034 if test "$am_cv_func_iconv" = yes; then
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18036$as_echo_n "checking for working iconv... " >&6; }
18037if test "${am_cv_func_iconv_works+set}" = set; then :
18038 $as_echo_n "(cached) " >&6
18039else
47aaa820 18040
5053a6d1
DWT
18041 am_save_LIBS="$LIBS"
18042 if test $am_cv_lib_iconv = yes; then
18043 LIBS="$LIBS $LIBICONV"
18044 fi
18045 if test "$cross_compiling" = yes; then :
18046 case "$host_os" in
18047 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18048 *) am_cv_func_iconv_works="guessing yes" ;;
18049 esac
c823f118 18050else
5053a6d1
DWT
18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h. */
c823f118 18053
5053a6d1
DWT
18054#include <iconv.h>
18055#include <string.h>
18056int main ()
18057{
18058 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18059 returns. */
18060 {
18061 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18062 if (cd_utf8_to_88591 != (iconv_t)(-1))
18063 {
18064 static const char input[] = "\342\202\254"; /* EURO SIGN */
18065 char buf[10];
18066 const char *inptr = input;
18067 size_t inbytesleft = strlen (input);
18068 char *outptr = buf;
18069 size_t outbytesleft = sizeof (buf);
18070 size_t res = iconv (cd_utf8_to_88591,
18071 (char **) &inptr, &inbytesleft,
18072 &outptr, &outbytesleft);
18073 if (res == 0)
18074 return 1;
18075 }
18076 }
18077#if 0 /* This bug could be worked around by the caller. */
18078 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18079 {
18080 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18081 if (cd_88591_to_utf8 != (iconv_t)(-1))
18082 {
18083 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18084 char buf[50];
18085 const char *inptr = input;
18086 size_t inbytesleft = strlen (input);
18087 char *outptr = buf;
18088 size_t outbytesleft = sizeof (buf);
18089 size_t res = iconv (cd_88591_to_utf8,
18090 (char **) &inptr, &inbytesleft,
18091 &outptr, &outbytesleft);
18092 if ((int)res > 0)
18093 return 1;
18094 }
18095 }
18096#endif
18097 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18098 provided. */
18099 if (/* Try standardized names. */
18100 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18101 /* Try IRIX, OSF/1 names. */
18102 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18103 /* Try AIX names. */
18104 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18105 /* Try HP-UX names. */
18106 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18107 return 1;
18108 return 0;
18109}
18110_ACEOF
18111if ac_fn_c_try_run "$LINENO"; then :
18112 am_cv_func_iconv_works=yes
18113else
18114 am_cv_func_iconv_works=no
18115fi
18116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18117 conftest.$ac_objext conftest.beam conftest.$ac_ext
c823f118
DWT
18118fi
18119
5053a6d1
DWT
18120 LIBS="$am_save_LIBS"
18121
47aaa820 18122fi
5053a6d1
DWT
18123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18124$as_echo "$am_cv_func_iconv_works" >&6; }
18125 case "$am_cv_func_iconv_works" in
18126 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18127 *) am_func_iconv=yes ;;
18128 esac
18129 else
18130 am_func_iconv=no am_cv_lib_iconv=no
18131 fi
18132 if test "$am_func_iconv" = yes; then
18133
18134$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18135
18136 fi
18137 if test "$am_cv_lib_iconv" = yes; then
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18139$as_echo_n "checking how to link with libiconv... " >&6; }
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18141$as_echo "$LIBICONV" >&6; }
18142 else
18143 CPPFLAGS="$am_save_CPPFLAGS"
18144 LIBICONV=
18145 LTLIBICONV=
18146 fi
18147
18148
18149
18150 if test "$am_cv_func_iconv" = yes; then
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18152$as_echo_n "checking for iconv declaration... " >&6; }
18153 if test "${am_cv_proto_iconv+set}" = set; then :
18154 $as_echo_n "(cached) " >&6
18155else
18156
18157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158/* end confdefs.h. */
18159
18160#include <stdlib.h>
18161#include <iconv.h>
18162extern
18163#ifdef __cplusplus
18164"C"
18165#endif
18166#if defined(__STDC__) || defined(__cplusplus)
18167size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18168#else
18169size_t iconv();
18170#endif
18171
18172int
18173main ()
18174{
47aaa820 18175
5053a6d1
DWT
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180if ac_fn_c_try_compile "$LINENO"; then :
18181 am_cv_proto_iconv_arg1=""
18182else
18183 am_cv_proto_iconv_arg1="const"
47aaa820 18184fi
5053a6d1
DWT
18185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18186 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);"
18187fi
18188
18189 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18191 }$am_cv_proto_iconv" >&5
18192$as_echo "${ac_t:-
18193 }$am_cv_proto_iconv" >&6; }
18194
18195cat >>confdefs.h <<_ACEOF
18196#define ICONV_CONST $am_cv_proto_iconv_arg1
18197_ACEOF
18198
18199 fi
18200
5053a6d1
DWT
18201case $am_cv_func_iconv in #(
18202 yes) :
18203 ;; #(
a667869d 18204 *) :
058f1bc8
DWT
18205
18206 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
18207 case $cy_iconv_prefix_arg in #(
18208 -I*) :
18209
18210
18211 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
18212 haveit=
18213 for x in $cy_iconv_prefixes; do
18214
18215 acl_save_prefix="$prefix"
18216 prefix="$acl_final_prefix"
18217 acl_save_exec_prefix="$exec_prefix"
18218 exec_prefix="$acl_final_exec_prefix"
18219 eval x=\"$x\"
18220 exec_prefix="$acl_save_exec_prefix"
18221 prefix="$acl_save_prefix"
18222
18223 if test "X$x" = "X$element"; then
18224 haveit=yes
18225 break
18226 fi
18227 done
18228 if test -z "$haveit"; then
18229 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18230 fi
18231 done
18232
18233 ;; #(
18234 -L*) :
18235
18236
18237 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
18238 haveit=
18239 for x in $cy_iconv_prefixes; do
18240
18241 acl_save_prefix="$prefix"
18242 prefix="$acl_final_prefix"
18243 acl_save_exec_prefix="$exec_prefix"
18244 exec_prefix="$acl_final_exec_prefix"
18245 eval x=\"$x\"
18246 exec_prefix="$acl_save_exec_prefix"
18247 prefix="$acl_save_prefix"
18248
18249 if test "X$x" = "X$element"; then
18250 haveit=yes
18251 break
18252 fi
18253 done
18254 if test -z "$haveit"; then
18255 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18256 fi
18257 done
18258
18259 ;; #(
18260 *) :
18261 ;;
a667869d 18262esac
058f1bc8
DWT
18263 done
18264 for with_libiconv_prefix in $cy_iconv_prefixes; do
18265 { am_cv_func_iconv=; unset am_cv_func_iconv;}
18266
18267
18268
18269
18270
18271
18272
18273
18274 use_additional=yes
18275
18276 acl_save_prefix="$prefix"
18277 prefix="$acl_final_prefix"
18278 acl_save_exec_prefix="$exec_prefix"
18279 exec_prefix="$acl_final_exec_prefix"
18280
18281 eval additional_includedir=\"$includedir\"
18282 eval additional_libdir=\"$libdir\"
18283
18284 exec_prefix="$acl_save_exec_prefix"
18285 prefix="$acl_save_prefix"
18286
18287
18288# Check whether --with-libiconv-prefix was given.
18289if test "${with_libiconv_prefix+set}" = set; then :
18290 withval=$with_libiconv_prefix;
18291 if test "X$withval" = "Xno"; then
18292 use_additional=no
18293 else
18294 if test "X$withval" = "X"; then
18295
18296 acl_save_prefix="$prefix"
18297 prefix="$acl_final_prefix"
18298 acl_save_exec_prefix="$exec_prefix"
18299 exec_prefix="$acl_final_exec_prefix"
18300
18301 eval additional_includedir=\"$includedir\"
18302 eval additional_libdir=\"$libdir\"
18303
18304 exec_prefix="$acl_save_exec_prefix"
18305 prefix="$acl_save_prefix"
18306
18307 else
18308 additional_includedir="$withval/include"
18309 additional_libdir="$withval/$acl_libdirstem"
18310 fi
18311 fi
18312
18313fi
18314
18315 LIBICONV=
18316 LTLIBICONV=
18317 INCICONV=
18318 LIBICONV_PREFIX=
18319 rpathdirs=
18320 ltrpathdirs=
18321 names_already_handled=
18322 names_next_round='iconv '
18323 while test -n "$names_next_round"; do
18324 names_this_round="$names_next_round"
18325 names_next_round=
18326 for name in $names_this_round; do
18327 already_handled=
18328 for n in $names_already_handled; do
18329 if test "$n" = "$name"; then
18330 already_handled=yes
18331 break
18332 fi
18333 done
18334 if test -z "$already_handled"; then
18335 names_already_handled="$names_already_handled $name"
18336 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18337 eval value=\"\$HAVE_LIB$uppername\"
18338 if test -n "$value"; then
18339 if test "$value" = yes; then
18340 eval value=\"\$LIB$uppername\"
18341 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18342 eval value=\"\$LTLIB$uppername\"
18343 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18344 else
18345 :
18346 fi
18347 else
18348 found_dir=
18349 found_la=
18350 found_so=
18351 found_a=
18352 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18353 if test -n "$acl_shlibext"; then
18354 shrext=".$acl_shlibext" # typically: shrext=.so
18355 else
18356 shrext=
18357 fi
18358 if test $use_additional = yes; then
18359 dir="$additional_libdir"
18360 if test -n "$acl_shlibext"; then
18361 if test -f "$dir/$libname$shrext"; then
18362 found_dir="$dir"
18363 found_so="$dir/$libname$shrext"
18364 else
18365 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18366 ver=`(cd "$dir" && \
18367 for f in "$libname$shrext".*; do echo "$f"; done \
18368 | sed -e "s,^$libname$shrext\\\\.,," \
18369 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18370 | sed 1q ) 2>/dev/null`
18371 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18372 found_dir="$dir"
18373 found_so="$dir/$libname$shrext.$ver"
18374 fi
18375 else
18376 eval library_names=\"$acl_library_names_spec\"
18377 for f in $library_names; do
18378 if test -f "$dir/$f"; then
18379 found_dir="$dir"
18380 found_so="$dir/$f"
18381 break
18382 fi
18383 done
18384 fi
18385 fi
18386 fi
18387 if test "X$found_dir" = "X"; then
18388 if test -f "$dir/$libname.$acl_libext"; then
18389 found_dir="$dir"
18390 found_a="$dir/$libname.$acl_libext"
18391 fi
18392 fi
18393 if test "X$found_dir" != "X"; then
18394 if test -f "$dir/$libname.la"; then
18395 found_la="$dir/$libname.la"
18396 fi
18397 fi
18398 fi
18399 if test "X$found_dir" = "X"; then
18400 for x in $LDFLAGS $LTLIBICONV; do
18401
18402 acl_save_prefix="$prefix"
18403 prefix="$acl_final_prefix"
18404 acl_save_exec_prefix="$exec_prefix"
18405 exec_prefix="$acl_final_exec_prefix"
18406 eval x=\"$x\"
18407 exec_prefix="$acl_save_exec_prefix"
18408 prefix="$acl_save_prefix"
18409
18410 case "$x" in
18411 -L*)
18412 dir=`echo "X$x" | sed -e 's/^X-L//'`
18413 if test -n "$acl_shlibext"; then
18414 if test -f "$dir/$libname$shrext"; then
18415 found_dir="$dir"
18416 found_so="$dir/$libname$shrext"
18417 else
18418 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18419 ver=`(cd "$dir" && \
18420 for f in "$libname$shrext".*; do echo "$f"; done \
18421 | sed -e "s,^$libname$shrext\\\\.,," \
18422 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18423 | sed 1q ) 2>/dev/null`
18424 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18425 found_dir="$dir"
18426 found_so="$dir/$libname$shrext.$ver"
18427 fi
18428 else
18429 eval library_names=\"$acl_library_names_spec\"
18430 for f in $library_names; do
18431 if test -f "$dir/$f"; then
18432 found_dir="$dir"
18433 found_so="$dir/$f"
18434 break
18435 fi
18436 done
18437 fi
18438 fi
18439 fi
18440 if test "X$found_dir" = "X"; then
18441 if test -f "$dir/$libname.$acl_libext"; then
18442 found_dir="$dir"
18443 found_a="$dir/$libname.$acl_libext"
18444 fi
18445 fi
18446 if test "X$found_dir" != "X"; then
18447 if test -f "$dir/$libname.la"; then
18448 found_la="$dir/$libname.la"
18449 fi
18450 fi
18451 ;;
18452 esac
18453 if test "X$found_dir" != "X"; then
18454 break
18455 fi
18456 done
18457 fi
18458 if test "X$found_dir" != "X"; then
18459 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18460 if test "X$found_so" != "X"; then
18461 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18463 else
18464 haveit=
18465 for x in $ltrpathdirs; do
18466 if test "X$x" = "X$found_dir"; then
18467 haveit=yes
18468 break
18469 fi
18470 done
18471 if test -z "$haveit"; then
18472 ltrpathdirs="$ltrpathdirs $found_dir"
18473 fi
18474 if test "$acl_hardcode_direct" = yes; then
18475 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18476 else
18477 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18478 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18479 haveit=
18480 for x in $rpathdirs; do
18481 if test "X$x" = "X$found_dir"; then
18482 haveit=yes
18483 break
18484 fi
18485 done
18486 if test -z "$haveit"; then
18487 rpathdirs="$rpathdirs $found_dir"
18488 fi
18489 else
18490 haveit=
18491 for x in $LDFLAGS $LIBICONV; do
18492
18493 acl_save_prefix="$prefix"
18494 prefix="$acl_final_prefix"
18495 acl_save_exec_prefix="$exec_prefix"
18496 exec_prefix="$acl_final_exec_prefix"
18497 eval x=\"$x\"
18498 exec_prefix="$acl_save_exec_prefix"
18499 prefix="$acl_save_prefix"
18500
18501 if test "X$x" = "X-L$found_dir"; then
18502 haveit=yes
18503 break
18504 fi
18505 done
18506 if test -z "$haveit"; then
18507 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18508 fi
18509 if test "$acl_hardcode_minus_L" != no; then
18510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18511 else
18512 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18513 fi
18514 fi
18515 fi
18516 fi
18517 else
18518 if test "X$found_a" != "X"; then
18519 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18520 else
18521 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18522 fi
18523 fi
18524 additional_includedir=
18525 case "$found_dir" in
18526 */$acl_libdirstem | */$acl_libdirstem/)
18527 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18528 LIBICONV_PREFIX="$basedir"
18529 additional_includedir="$basedir/include"
18530 ;;
18531 esac
18532 if test "X$additional_includedir" != "X"; then
18533 if test "X$additional_includedir" != "X/usr/include"; then
18534 haveit=
18535 if test "X$additional_includedir" = "X/usr/local/include"; then
18536 if test -n "$GCC"; then
18537 case $host_os in
18538 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18539 esac
18540 fi
18541 fi
18542 if test -z "$haveit"; then
18543 for x in $CPPFLAGS $INCICONV; do
18544
18545 acl_save_prefix="$prefix"
18546 prefix="$acl_final_prefix"
18547 acl_save_exec_prefix="$exec_prefix"
18548 exec_prefix="$acl_final_exec_prefix"
18549 eval x=\"$x\"
18550 exec_prefix="$acl_save_exec_prefix"
18551 prefix="$acl_save_prefix"
18552
18553 if test "X$x" = "X-I$additional_includedir"; then
18554 haveit=yes
18555 break
18556 fi
18557 done
18558 if test -z "$haveit"; then
18559 if test -d "$additional_includedir"; then
18560 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18561 fi
18562 fi
18563 fi
18564 fi
18565 fi
18566 if test -n "$found_la"; then
18567 save_libdir="$libdir"
18568 case "$found_la" in
18569 */* | *\\*) . "$found_la" ;;
18570 *) . "./$found_la" ;;
18571 esac
18572 libdir="$save_libdir"
18573 for dep in $dependency_libs; do
18574 case "$dep" in
18575 -L*)
18576 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18577 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18578 haveit=
18579 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18580 if test -n "$GCC"; then
18581 case $host_os in
18582 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18583 esac
18584 fi
18585 fi
18586 if test -z "$haveit"; then
18587 haveit=
18588 for x in $LDFLAGS $LIBICONV; do
18589
18590 acl_save_prefix="$prefix"
18591 prefix="$acl_final_prefix"
18592 acl_save_exec_prefix="$exec_prefix"
18593 exec_prefix="$acl_final_exec_prefix"
18594 eval x=\"$x\"
18595 exec_prefix="$acl_save_exec_prefix"
18596 prefix="$acl_save_prefix"
18597
18598 if test "X$x" = "X-L$additional_libdir"; then
18599 haveit=yes
18600 break
18601 fi
18602 done
18603 if test -z "$haveit"; then
18604 if test -d "$additional_libdir"; then
18605 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18606 fi
18607 fi
18608 haveit=
18609 for x in $LDFLAGS $LTLIBICONV; do
18610
18611 acl_save_prefix="$prefix"
18612 prefix="$acl_final_prefix"
18613 acl_save_exec_prefix="$exec_prefix"
18614 exec_prefix="$acl_final_exec_prefix"
18615 eval x=\"$x\"
18616 exec_prefix="$acl_save_exec_prefix"
18617 prefix="$acl_save_prefix"
18618
18619 if test "X$x" = "X-L$additional_libdir"; then
18620 haveit=yes
18621 break
18622 fi
18623 done
18624 if test -z "$haveit"; then
18625 if test -d "$additional_libdir"; then
18626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18627 fi
18628 fi
18629 fi
18630 fi
18631 ;;
18632 -R*)
18633 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18634 if test "$enable_rpath" != no; then
18635 haveit=
18636 for x in $rpathdirs; do
18637 if test "X$x" = "X$dir"; then
18638 haveit=yes
18639 break
18640 fi
18641 done
18642 if test -z "$haveit"; then
18643 rpathdirs="$rpathdirs $dir"
18644 fi
18645 haveit=
18646 for x in $ltrpathdirs; do
18647 if test "X$x" = "X$dir"; then
18648 haveit=yes
18649 break
18650 fi
18651 done
18652 if test -z "$haveit"; then
18653 ltrpathdirs="$ltrpathdirs $dir"
18654 fi
18655 fi
18656 ;;
18657 -l*)
18658 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18659 ;;
18660 *.la)
18661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18662 ;;
18663 *)
18664 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18666 ;;
18667 esac
18668 done
18669 fi
18670 else
18671 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18673 fi
18674 fi
18675 fi
18676 done
18677 done
18678 if test "X$rpathdirs" != "X"; then
18679 if test -n "$acl_hardcode_libdir_separator"; then
18680 alldirs=
18681 for found_dir in $rpathdirs; do
18682 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18683 done
18684 acl_save_libdir="$libdir"
18685 libdir="$alldirs"
18686 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18687 libdir="$acl_save_libdir"
18688 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18689 else
18690 for found_dir in $rpathdirs; do
18691 acl_save_libdir="$libdir"
18692 libdir="$found_dir"
18693 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18694 libdir="$acl_save_libdir"
18695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18696 done
18697 fi
18698 fi
18699 if test "X$ltrpathdirs" != "X"; then
18700 for found_dir in $ltrpathdirs; do
18701 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18702 done
18703 fi
18704
18705
18706
18707
18708
18709
18710
18711 am_save_CPPFLAGS="$CPPFLAGS"
18712
18713 for element in $INCICONV; do
18714 haveit=
18715 for x in $CPPFLAGS; do
18716
18717 acl_save_prefix="$prefix"
18718 prefix="$acl_final_prefix"
18719 acl_save_exec_prefix="$exec_prefix"
18720 exec_prefix="$acl_final_exec_prefix"
18721 eval x=\"$x\"
18722 exec_prefix="$acl_save_exec_prefix"
18723 prefix="$acl_save_prefix"
18724
18725 if test "X$x" = "X$element"; then
18726 haveit=yes
18727 break
18728 fi
18729 done
18730 if test -z "$haveit"; then
18731 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18732 fi
18733 done
18734
18735
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18737$as_echo_n "checking for iconv... " >&6; }
18738if test "${am_cv_func_iconv+set}" = set; then :
18739 $as_echo_n "(cached) " >&6
18740else
18741
18742 am_cv_func_iconv="no, consider installing GNU libiconv"
18743 am_cv_lib_iconv=no
18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745/* end confdefs.h. */
18746#include <stdlib.h>
18747#include <iconv.h>
18748int
18749main ()
18750{
18751iconv_t cd = iconv_open("","");
18752 iconv(cd,NULL,NULL,NULL,NULL);
18753 iconv_close(cd);
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758if ac_fn_c_try_link "$LINENO"; then :
18759 am_cv_func_iconv=yes
18760fi
18761rm -f core conftest.err conftest.$ac_objext \
18762 conftest$ac_exeext conftest.$ac_ext
18763 if test "$am_cv_func_iconv" != yes; then
18764 am_save_LIBS="$LIBS"
18765 LIBS="$LIBS $LIBICONV"
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767/* end confdefs.h. */
18768#include <stdlib.h>
18769#include <iconv.h>
18770int
18771main ()
18772{
18773iconv_t cd = iconv_open("","");
18774 iconv(cd,NULL,NULL,NULL,NULL);
18775 iconv_close(cd);
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780if ac_fn_c_try_link "$LINENO"; then :
18781 am_cv_lib_iconv=yes
18782 am_cv_func_iconv=yes
18783fi
18784rm -f core conftest.err conftest.$ac_objext \
18785 conftest$ac_exeext conftest.$ac_ext
18786 LIBS="$am_save_LIBS"
18787 fi
18788
18789fi
18790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18791$as_echo "$am_cv_func_iconv" >&6; }
18792 if test "$am_cv_func_iconv" = yes; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18794$as_echo_n "checking for working iconv... " >&6; }
18795if test "${am_cv_func_iconv_works+set}" = set; then :
18796 $as_echo_n "(cached) " >&6
18797else
18798
18799 am_save_LIBS="$LIBS"
18800 if test $am_cv_lib_iconv = yes; then
18801 LIBS="$LIBS $LIBICONV"
18802 fi
18803 if test "$cross_compiling" = yes; then :
18804 case "$host_os" in
18805 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18806 *) am_cv_func_iconv_works="guessing yes" ;;
18807 esac
18808else
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810/* end confdefs.h. */
18811
18812#include <iconv.h>
18813#include <string.h>
18814int main ()
18815{
18816 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18817 returns. */
18818 {
18819 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18820 if (cd_utf8_to_88591 != (iconv_t)(-1))
18821 {
18822 static const char input[] = "\342\202\254"; /* EURO SIGN */
18823 char buf[10];
18824 const char *inptr = input;
18825 size_t inbytesleft = strlen (input);
18826 char *outptr = buf;
18827 size_t outbytesleft = sizeof (buf);
18828 size_t res = iconv (cd_utf8_to_88591,
18829 (char **) &inptr, &inbytesleft,
18830 &outptr, &outbytesleft);
18831 if (res == 0)
18832 return 1;
18833 }
18834 }
18835#if 0 /* This bug could be worked around by the caller. */
18836 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18837 {
18838 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18839 if (cd_88591_to_utf8 != (iconv_t)(-1))
18840 {
18841 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18842 char buf[50];
18843 const char *inptr = input;
18844 size_t inbytesleft = strlen (input);
18845 char *outptr = buf;
18846 size_t outbytesleft = sizeof (buf);
18847 size_t res = iconv (cd_88591_to_utf8,
18848 (char **) &inptr, &inbytesleft,
18849 &outptr, &outbytesleft);
18850 if ((int)res > 0)
18851 return 1;
18852 }
18853 }
18854#endif
18855 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18856 provided. */
18857 if (/* Try standardized names. */
18858 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18859 /* Try IRIX, OSF/1 names. */
18860 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18861 /* Try AIX names. */
18862 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18863 /* Try HP-UX names. */
18864 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18865 return 1;
18866 return 0;
18867}
18868_ACEOF
18869if ac_fn_c_try_run "$LINENO"; then :
18870 am_cv_func_iconv_works=yes
18871else
18872 am_cv_func_iconv_works=no
18873fi
18874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18875 conftest.$ac_objext conftest.beam conftest.$ac_ext
18876fi
18877
18878 LIBS="$am_save_LIBS"
18879
18880fi
18881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18882$as_echo "$am_cv_func_iconv_works" >&6; }
18883 case "$am_cv_func_iconv_works" in
18884 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18885 *) am_func_iconv=yes ;;
18886 esac
18887 else
18888 am_func_iconv=no am_cv_lib_iconv=no
18889 fi
18890 if test "$am_func_iconv" = yes; then
18891
18892$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18893
18894 fi
18895 if test "$am_cv_lib_iconv" = yes; then
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18897$as_echo_n "checking how to link with libiconv... " >&6; }
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18899$as_echo "$LIBICONV" >&6; }
18900 else
18901 CPPFLAGS="$am_save_CPPFLAGS"
18902 LIBICONV=
18903 LTLIBICONV=
18904 fi
18905
18906
18907
18908 if test "$am_cv_func_iconv" = yes; then
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18910$as_echo_n "checking for iconv declaration... " >&6; }
18911 if test "${am_cv_proto_iconv+set}" = set; then :
18912 $as_echo_n "(cached) " >&6
18913else
18914
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916/* end confdefs.h. */
18917
18918#include <stdlib.h>
18919#include <iconv.h>
18920extern
18921#ifdef __cplusplus
18922"C"
18923#endif
18924#if defined(__STDC__) || defined(__cplusplus)
18925size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18926#else
18927size_t iconv();
18928#endif
18929
18930int
18931main ()
18932{
18933
18934 ;
18935 return 0;
18936}
18937_ACEOF
18938if ac_fn_c_try_compile "$LINENO"; then :
18939 am_cv_proto_iconv_arg1=""
18940else
18941 am_cv_proto_iconv_arg1="const"
18942fi
18943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 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);"
18945fi
18946
18947 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18949 }$am_cv_proto_iconv" >&5
18950$as_echo "${ac_t:-
18951 }$am_cv_proto_iconv" >&6; }
18952
18953cat >>confdefs.h <<_ACEOF
18954#define ICONV_CONST $am_cv_proto_iconv_arg1
18955_ACEOF
18956
18957 fi
18958
18959 done
18960 ;;
18961esac
18962case $am_cv_func_iconv in #(
18963 yes) :
18964 ;; #(
18965 *) :
18966 as_fn_error "You need iconv" "$LINENO" 5 ;;
18967esac
18968ac_ext=cpp
18969ac_cpp='$CXXCPP $CPPFLAGS'
18970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18973
e1cce270
DWT
18974if test "x$CY_OBJECTIVEC" = x1; then :
18975
18976 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18977if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18978
18979 case $OTOOL in #(
18980 :) :
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5
18982$as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #(
18983 *) :
18984 CY_OBJECTIVEC_MACH=1
18985 ;;
18986esac
18987
18988fi
18989
18990
18991
790e5246
DWT
18992fi
18993if test "x$GMAKE" != xmake; then :
18994
18995 ac_config_files="$ac_config_files Makefile"
18996
18997
47aaa820 18998fi
9c60689e
DWT
18999ac_config_files="$ac_config_files GNUmakefile"
19000
19001cat >confcache <<\_ACEOF
19002# This file is a shell script that caches the results of configure
19003# tests run on this system so they can be shared between configure
19004# scripts and configure runs, see configure's option --config-cache.
19005# It is not useful on other systems. If it contains results you don't
19006# want to keep, you may remove or edit it.
19007#
19008# config.status only pays attention to the cache file if you give it
19009# the --recheck option to rerun configure.
19010#
19011# `ac_cv_env_foo' variables (set or unset) will be overridden when
19012# loading this file, other *unset* `ac_cv_foo' will be assigned the
19013# following values.
19014
19015_ACEOF
19016
19017# The following way of writing the cache mishandles newlines in values,
19018# but we know of no workaround that is simple, portable, and efficient.
19019# So, we kill variables containing newlines.
19020# Ultrix sh set writes to stderr and can't be redirected directly,
19021# and sets the high bit in the cache file unless we assign to the vars.
19022(
19023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19024 eval ac_val=\$$ac_var
19025 case $ac_val in #(
19026 *${as_nl}*)
19027 case $ac_var in #(
19028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19029$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19030 esac
19031 case $ac_var in #(
19032 _ | IFS | as_nl) ;; #(
19033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19034 *) { eval $ac_var=; unset $ac_var;} ;;
19035 esac ;;
19036 esac
19037 done
19038
19039 (set) 2>&1 |
19040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19041 *${as_nl}ac_space=\ *)
19042 # `set' does not quote correctly, so add quotes: double-quote
19043 # substitution turns \\\\ into \\, and sed turns \\ into \.
19044 sed -n \
19045 "s/'/'\\\\''/g;
19046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19047 ;; #(
19048 *)
19049 # `set' quotes correctly as required by POSIX, so do not add quotes.
19050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19051 ;;
19052 esac |
19053 sort
19054) |
19055 sed '
19056 /^ac_cv_env_/b end
19057 t clear
19058 :clear
19059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19060 t end
19061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19062 :end' >>confcache
19063if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19064 if test -w "$cache_file"; then
19065 test "x$cache_file" != "x/dev/null" &&
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19067$as_echo "$as_me: updating cache $cache_file" >&6;}
19068 cat confcache >$cache_file
19069 else
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19071$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19072 fi
19073fi
19074rm -f confcache
19075
19076test "x$prefix" = xNONE && prefix=$ac_default_prefix
19077# Let make expand exec_prefix.
19078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19079
19080# Transform confdefs.h into DEFS.
19081# Protect against shell expansion while executing Makefile rules.
19082# Protect against Makefile macro expansion.
19083#
19084# If the first sed substitution is executed (which looks for macros that
19085# take arguments), then branch to the quote section. Otherwise,
19086# look for a macro that doesn't take arguments.
19087ac_script='
19088:mline
19089/\\$/{
19090 N
19091 s,\\\n,,
19092 b mline
19093}
19094t clear
19095:clear
19096s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19097t quote
19098s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19099t quote
19100b any
19101:quote
19102s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19103s/\[/\\&/g
19104s/\]/\\&/g
19105s/\$/$$/g
19106H
19107:any
19108${
19109 g
19110 s/^\n//
19111 s/\n/ /g
19112 p
19113}
19114'
19115DEFS=`sed -n "$ac_script" confdefs.h`
19116
19117
19118ac_libobjs=
19119ac_ltlibobjs=
19120for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19121 # 1. Remove the extension, and $U if already installed.
19122 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19123 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19124 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19125 # will be set to the directory where LIBOBJS objects are built.
19126 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19127 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19128done
19129LIBOBJS=$ac_libobjs
19130
19131LTLIBOBJS=$ac_ltlibobjs
19132
19133
19134
19135: ${CONFIG_STATUS=./config.status}
19136ac_write_fail=0
19137ac_clean_files_save=$ac_clean_files
19138ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19139{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19140$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19141as_write_fail=0
19142cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19143#! $SHELL
19144# Generated by $as_me.
19145# Run this file to recreate the current configuration.
19146# Compiler output produced by configure, useful for debugging
19147# configure, is in config.log if it exists.
19148
19149debug=false
19150ac_cs_recheck=false
19151ac_cs_silent=false
19152
19153SHELL=\${CONFIG_SHELL-$SHELL}
19154export SHELL
19155_ASEOF
19156cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19157## -------------------- ##
19158## M4sh Initialization. ##
19159## -------------------- ##
19160
19161# Be more Bourne compatible
19162DUALCASE=1; export DUALCASE # for MKS sh
19163if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19164 emulate sh
19165 NULLCMD=:
19166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19167 # is contrary to our usage. Disable this feature.
19168 alias -g '${1+"$@"}'='"$@"'
19169 setopt NO_GLOB_SUBST
19170else
19171 case `(set -o) 2>/dev/null` in #(
19172 *posix*) :
19173 set -o posix ;; #(
19174 *) :
19175 ;;
19176esac
19177fi
19178
19179
19180as_nl='
19181'
19182export as_nl
19183# Printing a long string crashes Solaris 7 /usr/bin/printf.
19184as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19185as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19187# Prefer a ksh shell builtin over an external printf program on Solaris,
19188# but without wasting forks for bash or zsh.
19189if test -z "$BASH_VERSION$ZSH_VERSION" \
19190 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19191 as_echo='print -r --'
19192 as_echo_n='print -rn --'
19193elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19194 as_echo='printf %s\n'
19195 as_echo_n='printf %s'
19196else
19197 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19198 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19199 as_echo_n='/usr/ucb/echo -n'
19200 else
19201 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19202 as_echo_n_body='eval
19203 arg=$1;
19204 case $arg in #(
19205 *"$as_nl"*)
19206 expr "X$arg" : "X\\(.*\\)$as_nl";
19207 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19208 esac;
19209 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19210 '
19211 export as_echo_n_body
19212 as_echo_n='sh -c $as_echo_n_body as_echo'
19213 fi
19214 export as_echo_body
19215 as_echo='sh -c $as_echo_body as_echo'
19216fi
19217
19218# The user is always right.
19219if test "${PATH_SEPARATOR+set}" != set; then
19220 PATH_SEPARATOR=:
19221 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19222 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19223 PATH_SEPARATOR=';'
19224 }
19225fi
19226
19227
19228# IFS
19229# We need space, tab and new line, in precisely that order. Quoting is
19230# there to prevent editors from complaining about space-tab.
19231# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19232# splitting by setting IFS to empty value.)
19233IFS=" "" $as_nl"
19234
19235# Find who we are. Look in the path if we contain no directory separator.
19236case $0 in #((
19237 *[\\/]* ) as_myself=$0 ;;
19238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19239for as_dir in $PATH
19240do
19241 IFS=$as_save_IFS
19242 test -z "$as_dir" && as_dir=.
19243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19244 done
19245IFS=$as_save_IFS
19246
19247 ;;
19248esac
19249# We did not find ourselves, most probably we were run as `sh COMMAND'
19250# in which case we are not to be found in the path.
19251if test "x$as_myself" = x; then
19252 as_myself=$0
19253fi
19254if test ! -f "$as_myself"; then
19255 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19256 exit 1
19257fi
19258
19259# Unset variables that we do not need and which cause bugs (e.g. in
19260# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19261# suppresses any "Segmentation fault" message there. '((' could
19262# trigger a bug in pdksh 5.2.14.
19263for as_var in BASH_ENV ENV MAIL MAILPATH
19264do eval test x\${$as_var+set} = xset \
19265 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19266done
19267PS1='$ '
19268PS2='> '
19269PS4='+ '
19270
19271# NLS nuisances.
19272LC_ALL=C
19273export LC_ALL
19274LANGUAGE=C
19275export LANGUAGE
19276
19277# CDPATH.
19278(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19279
19280
19281# as_fn_error ERROR [LINENO LOG_FD]
19282# ---------------------------------
19283# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19284# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19285# script with status $?, using 1 if that was 0.
19286as_fn_error ()
19287{
19288 as_status=$?; test $as_status -eq 0 && as_status=1
19289 if test "$3"; then
19290 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19291 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19292 fi
19293 $as_echo "$as_me: error: $1" >&2
19294 as_fn_exit $as_status
19295} # as_fn_error
19296
19297
19298# as_fn_set_status STATUS
19299# -----------------------
19300# Set $? to STATUS, without forking.
19301as_fn_set_status ()
19302{
19303 return $1
19304} # as_fn_set_status
19305
19306# as_fn_exit STATUS
19307# -----------------
19308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19309as_fn_exit ()
19310{
19311 set +e
19312 as_fn_set_status $1
19313 exit $1
19314} # as_fn_exit
19315
19316# as_fn_unset VAR
19317# ---------------
19318# Portably unset VAR.
19319as_fn_unset ()
19320{
19321 { eval $1=; unset $1;}
19322}
19323as_unset=as_fn_unset
19324# as_fn_append VAR VALUE
19325# ----------------------
19326# Append the text in VALUE to the end of the definition contained in VAR. Take
19327# advantage of any shell optimizations that allow amortized linear growth over
19328# repeated appends, instead of the typical quadratic growth present in naive
19329# implementations.
19330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19331 eval 'as_fn_append ()
19332 {
19333 eval $1+=\$2
19334 }'
19335else
19336 as_fn_append ()
19337 {
19338 eval $1=\$$1\$2
19339 }
19340fi # as_fn_append
19341
19342# as_fn_arith ARG...
19343# ------------------
19344# Perform arithmetic evaluation on the ARGs, and store the result in the
19345# global $as_val. Take advantage of shells that can avoid forks. The arguments
19346# must be portable across $(()) and expr.
19347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19348 eval 'as_fn_arith ()
19349 {
19350 as_val=$(( $* ))
19351 }'
19352else
19353 as_fn_arith ()
19354 {
19355 as_val=`expr "$@" || test $? -eq 1`
19356 }
19357fi # as_fn_arith
19358
19359
19360if expr a : '\(a\)' >/dev/null 2>&1 &&
19361 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19362 as_expr=expr
19363else
19364 as_expr=false
19365fi
19366
19367if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19368 as_basename=basename
19369else
19370 as_basename=false
19371fi
19372
19373if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19374 as_dirname=dirname
19375else
19376 as_dirname=false
19377fi
19378
19379as_me=`$as_basename -- "$0" ||
19380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19381 X"$0" : 'X\(//\)$' \| \
19382 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19383$as_echo X/"$0" |
19384 sed '/^.*\/\([^/][^/]*\)\/*$/{
19385 s//\1/
19386 q
19387 }
19388 /^X\/\(\/\/\)$/{
19389 s//\1/
19390 q
19391 }
19392 /^X\/\(\/\).*/{
19393 s//\1/
19394 q
19395 }
19396 s/.*/./; q'`
19397
19398# Avoid depending upon Character Ranges.
19399as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19400as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19401as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19402as_cr_digits='0123456789'
19403as_cr_alnum=$as_cr_Letters$as_cr_digits
19404
19405ECHO_C= ECHO_N= ECHO_T=
19406case `echo -n x` in #(((((
19407-n*)
19408 case `echo 'xy\c'` in
19409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19410 xy) ECHO_C='\c';;
19411 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19412 ECHO_T=' ';;
19413 esac;;
19414*)
19415 ECHO_N='-n';;
19416esac
19417
19418rm -f conf$$ conf$$.exe conf$$.file
19419if test -d conf$$.dir; then
19420 rm -f conf$$.dir/conf$$.file
19421else
19422 rm -f conf$$.dir
19423 mkdir conf$$.dir 2>/dev/null
19424fi
19425if (echo >conf$$.file) 2>/dev/null; then
19426 if ln -s conf$$.file conf$$ 2>/dev/null; then
19427 as_ln_s='ln -s'
19428 # ... but there are two gotchas:
19429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19431 # In both cases, we have to default to `cp -p'.
19432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19433 as_ln_s='cp -p'
19434 elif ln conf$$.file conf$$ 2>/dev/null; then
19435 as_ln_s=ln
19436 else
19437 as_ln_s='cp -p'
19438 fi
19439else
19440 as_ln_s='cp -p'
19441fi
19442rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19443rmdir conf$$.dir 2>/dev/null
19444
19445
19446# as_fn_mkdir_p
19447# -------------
19448# Create "$as_dir" as a directory, including parents if necessary.
19449as_fn_mkdir_p ()
19450{
19451
19452 case $as_dir in #(
19453 -*) as_dir=./$as_dir;;
19454 esac
19455 test -d "$as_dir" || eval $as_mkdir_p || {
19456 as_dirs=
19457 while :; do
19458 case $as_dir in #(
19459 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19460 *) as_qdir=$as_dir;;
19461 esac
19462 as_dirs="'$as_qdir' $as_dirs"
19463 as_dir=`$as_dirname -- "$as_dir" ||
19464$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19465 X"$as_dir" : 'X\(//\)[^/]' \| \
19466 X"$as_dir" : 'X\(//\)$' \| \
19467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19468$as_echo X"$as_dir" |
19469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19470 s//\1/
19471 q
19472 }
19473 /^X\(\/\/\)[^/].*/{
19474 s//\1/
19475 q
19476 }
19477 /^X\(\/\/\)$/{
19478 s//\1/
19479 q
19480 }
19481 /^X\(\/\).*/{
19482 s//\1/
19483 q
19484 }
19485 s/.*/./; q'`
19486 test -d "$as_dir" && break
19487 done
19488 test -z "$as_dirs" || eval "mkdir $as_dirs"
19489 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19490
19491
19492} # as_fn_mkdir_p
19493if mkdir -p . 2>/dev/null; then
19494 as_mkdir_p='mkdir -p "$as_dir"'
19495else
19496 test -d ./-p && rmdir ./-p
19497 as_mkdir_p=false
19498fi
19499
19500if test -x / >/dev/null 2>&1; then
19501 as_test_x='test -x'
19502else
19503 if ls -dL / >/dev/null 2>&1; then
19504 as_ls_L_option=L
19505 else
19506 as_ls_L_option=
19507 fi
19508 as_test_x='
19509 eval sh -c '\''
19510 if test -d "$1"; then
19511 test -d "$1/.";
19512 else
19513 case $1 in #(
19514 -*)set "./$1";;
19515 esac;
19516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19517 ???[sx]*):;;*)false;;esac;fi
19518 '\'' sh
19519 '
19520fi
19521as_executable_p=$as_test_x
19522
19523# Sed expression to map a string onto a valid CPP name.
19524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19525
19526# Sed expression to map a string onto a valid variable name.
19527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19528
19529
19530exec 6>&1
19531## ----------------------------------- ##
19532## Main body of $CONFIG_STATUS script. ##
19533## ----------------------------------- ##
19534_ASEOF
19535test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19536
19537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19538# Save the log message, to keep $0 and so on meaningful, and to
19539# report actual input values of CONFIG_FILES etc. instead of their
19540# values after options handling.
19541ac_log="
19542This file was extended by Cycript $as_me 0.9, which was
19543generated by GNU Autoconf 2.65. Invocation command line was
19544
19545 CONFIG_FILES = $CONFIG_FILES
19546 CONFIG_HEADERS = $CONFIG_HEADERS
19547 CONFIG_LINKS = $CONFIG_LINKS
19548 CONFIG_COMMANDS = $CONFIG_COMMANDS
19549 $ $0 $@
19550
19551on `(hostname || uname -n) 2>/dev/null | sed 1q`
19552"
19553
19554_ACEOF
19555
19556case $ac_config_files in *"
19557"*) set x $ac_config_files; shift; ac_config_files=$*;;
19558esac
19559
19560
19561
19562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19563# Files that config.status was made for.
19564config_files="$ac_config_files"
19565config_commands="$ac_config_commands"
19566
19567_ACEOF
19568
19569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19570ac_cs_usage="\
19571\`$as_me' instantiates files and other configuration actions
19572from templates according to the current configuration. Unless the files
19573and actions are specified as TAGs, all are instantiated by default.
19574
19575Usage: $0 [OPTION]... [TAG]...
19576
19577 -h, --help print this help, then exit
19578 -V, --version print version number and configuration settings, then exit
19579 --config print configuration, then exit
19580 -q, --quiet, --silent
19581 do not print progress messages
19582 -d, --debug don't remove temporary files
19583 --recheck update $as_me by reconfiguring in the same conditions
19584 --file=FILE[:TEMPLATE]
19585 instantiate the configuration file FILE
19586
19587Configuration files:
19588$config_files
19589
19590Configuration commands:
19591$config_commands
19592
19593Report bugs to <saurik@saurik.com>.
19594Cycript home page: <http://www.cycript.org/>."
19595
19596_ACEOF
19597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19598ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19599ac_cs_version="\\
19600Cycript config.status 0.9
19601configured by $0, generated by GNU Autoconf 2.65,
19602 with options \\"\$ac_cs_config\\"
19603
19604Copyright (C) 2009 Free Software Foundation, Inc.
19605This config.status script is free software; the Free Software Foundation
19606gives unlimited permission to copy, distribute and modify it."
19607
19608ac_pwd='$ac_pwd'
19609srcdir='$srcdir'
19610INSTALL='$INSTALL'
9c60689e
DWT
19611test -n "\$AWK" || AWK=awk
19612_ACEOF
19613
19614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19615# The default lists apply if the user does not specify any file.
19616ac_need_defaults=:
19617while test $# != 0
19618do
19619 case $1 in
19620 --*=*)
19621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19623 ac_shift=:
19624 ;;
19625 *)
19626 ac_option=$1
19627 ac_optarg=$2
19628 ac_shift=shift
19629 ;;
19630 esac
19631
19632 case $ac_option in
19633 # Handling of the options.
19634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19635 ac_cs_recheck=: ;;
19636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19637 $as_echo "$ac_cs_version"; exit ;;
19638 --config | --confi | --conf | --con | --co | --c )
19639 $as_echo "$ac_cs_config"; exit ;;
19640 --debug | --debu | --deb | --de | --d | -d )
19641 debug=: ;;
19642 --file | --fil | --fi | --f )
19643 $ac_shift
19644 case $ac_optarg in
19645 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19646 esac
19647 as_fn_append CONFIG_FILES " '$ac_optarg'"
19648 ac_need_defaults=false;;
19649 --he | --h | --help | --hel | -h )
19650 $as_echo "$ac_cs_usage"; exit ;;
19651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19653 ac_cs_silent=: ;;
19654
19655 # This is an error.
19656 -*) as_fn_error "unrecognized option: \`$1'
19657Try \`$0 --help' for more information." ;;
19658
19659 *) as_fn_append ac_config_targets " $1"
19660 ac_need_defaults=false ;;
19661
19662 esac
19663 shift
19664done
19665
19666ac_configure_extra_args=
19667
19668if $ac_cs_silent; then
19669 exec 6>/dev/null
19670 ac_configure_extra_args="$ac_configure_extra_args --silent"
19671fi
19672
19673_ACEOF
19674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19675if \$ac_cs_recheck; then
19676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19677 shift
19678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19679 CONFIG_SHELL='$SHELL'
19680 export CONFIG_SHELL
19681 exec "\$@"
19682fi
19683
19684_ACEOF
19685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19686exec 5>>config.log
19687{
19688 echo
19689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19690## Running $as_me. ##
19691_ASBOX
19692 $as_echo "$ac_log"
19693} >&5
19694
19695_ACEOF
19696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19697#
19698# INIT-COMMANDS
19699#
19700
19701
19702# The HP-UX ksh and POSIX shell print the target directory to stdout
19703# if CDPATH is set.
19704(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19705
19706sed_quote_subst='$sed_quote_subst'
19707double_quote_subst='$double_quote_subst'
19708delay_variable_subst='$delay_variable_subst'
19709macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19710macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e 19711enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
549f29b5 19712enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e
DWT
19713pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19714enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19715host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19716host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19717host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19718build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19719build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19720build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19721SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19722Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19723GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19724EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19725FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19726LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19727NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19728LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19729max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19730ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19731exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19732lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19733lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19734lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19735reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19736reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19737OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19738deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19739file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19740AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19741AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19742STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19743RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19744old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19745old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19746old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19747CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19748CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19749compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19750GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19751lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19752lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19753lt_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"`'
19754lt_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"`'
19755objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19756SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19757ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19758MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19759lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19760lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19761lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19762lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19763lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19764need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19765DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19766NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19767LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19768OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19769OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19770libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19771shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19772extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19773archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19774enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19775export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19776whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19777compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19778old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19779old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19780archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19781archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19782module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19783module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19784with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19785allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19786no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19787hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19788hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19789hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19790hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19791hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19792hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19793hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19794hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19795inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19796link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19797fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19798always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19799export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19800exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19801include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19802prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19803file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19804variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19805need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19806need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19807version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19808runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19809shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19810shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19811libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19812library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19813soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19814postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19815postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19816finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19817finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19818hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19819sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19820sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19821hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19822enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19823enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19824enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19825old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19826striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19827compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19828predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19829postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19830predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19831postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19832compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19833LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19834old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19835compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19836GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19837lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19838lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19839lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19840lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19841lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19842archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19843enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19844export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19845whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19846compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19847old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19848old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19849archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19850archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19851module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19852module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19853with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19854allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19855no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19856hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19857hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19858hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19859hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19860hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19861hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19862hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19863hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19864inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19865link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19866fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19867always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19868export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19869exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19870include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19871prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19872file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19873hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19874compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19875predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19876postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19877predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19878postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19879compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19880
19881LTCC='$LTCC'
19882LTCFLAGS='$LTCFLAGS'
19883compiler='$compiler_DEFAULT'
19884
19885# Quote evaled strings.
19886for var in SED \
19887GREP \
19888EGREP \
19889FGREP \
19890LD \
19891NM \
19892LN_S \
19893lt_SP2NL \
19894lt_NL2SP \
19895reload_flag \
19896OBJDUMP \
19897deplibs_check_method \
19898file_magic_cmd \
19899AR \
19900AR_FLAGS \
19901STRIP \
19902RANLIB \
19903CC \
19904CFLAGS \
19905compiler \
19906lt_cv_sys_global_symbol_pipe \
19907lt_cv_sys_global_symbol_to_cdecl \
19908lt_cv_sys_global_symbol_to_c_name_address \
19909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19910SHELL \
19911ECHO \
19912lt_prog_compiler_no_builtin_flag \
19913lt_prog_compiler_wl \
19914lt_prog_compiler_pic \
19915lt_prog_compiler_static \
19916lt_cv_prog_compiler_c_o \
19917need_locks \
19918DSYMUTIL \
19919NMEDIT \
19920LIPO \
19921OTOOL \
19922OTOOL64 \
19923shrext_cmds \
19924export_dynamic_flag_spec \
19925whole_archive_flag_spec \
19926compiler_needs_object \
19927with_gnu_ld \
19928allow_undefined_flag \
19929no_undefined_flag \
19930hardcode_libdir_flag_spec \
19931hardcode_libdir_flag_spec_ld \
19932hardcode_libdir_separator \
19933fix_srcfile_path \
19934exclude_expsyms \
19935include_expsyms \
19936file_list_spec \
19937variables_saved_for_relink \
19938libname_spec \
19939library_names_spec \
19940soname_spec \
19941finish_eval \
19942old_striplib \
19943striplib \
19944compiler_lib_search_dirs \
19945predep_objects \
19946postdep_objects \
19947predeps \
19948postdeps \
19949compiler_lib_search_path \
19950LD_CXX \
19951compiler_CXX \
19952lt_prog_compiler_no_builtin_flag_CXX \
19953lt_prog_compiler_wl_CXX \
19954lt_prog_compiler_pic_CXX \
19955lt_prog_compiler_static_CXX \
19956lt_cv_prog_compiler_c_o_CXX \
19957export_dynamic_flag_spec_CXX \
19958whole_archive_flag_spec_CXX \
19959compiler_needs_object_CXX \
19960with_gnu_ld_CXX \
19961allow_undefined_flag_CXX \
19962no_undefined_flag_CXX \
19963hardcode_libdir_flag_spec_CXX \
19964hardcode_libdir_flag_spec_ld_CXX \
19965hardcode_libdir_separator_CXX \
19966fix_srcfile_path_CXX \
19967exclude_expsyms_CXX \
19968include_expsyms_CXX \
19969file_list_spec_CXX \
19970compiler_lib_search_dirs_CXX \
19971predep_objects_CXX \
19972postdep_objects_CXX \
19973predeps_CXX \
19974postdeps_CXX \
19975compiler_lib_search_path_CXX; do
19976 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19977 *[\\\\\\\`\\"\\\$]*)
19978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19979 ;;
19980 *)
19981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19982 ;;
19983 esac
19984done
19985
19986# Double-quote double-evaled strings.
19987for var in reload_cmds \
19988old_postinstall_cmds \
19989old_postuninstall_cmds \
19990old_archive_cmds \
19991extract_expsyms_cmds \
19992old_archive_from_new_cmds \
19993old_archive_from_expsyms_cmds \
19994archive_cmds \
19995archive_expsym_cmds \
19996module_cmds \
19997module_expsym_cmds \
19998export_symbols_cmds \
19999prelink_cmds \
20000postinstall_cmds \
20001postuninstall_cmds \
20002finish_cmds \
20003sys_lib_search_path_spec \
20004sys_lib_dlsearch_path_spec \
20005old_archive_cmds_CXX \
20006old_archive_from_new_cmds_CXX \
20007old_archive_from_expsyms_cmds_CXX \
20008archive_cmds_CXX \
20009archive_expsym_cmds_CXX \
20010module_cmds_CXX \
20011module_expsym_cmds_CXX \
20012export_symbols_cmds_CXX \
20013prelink_cmds_CXX; do
20014 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20015 *[\\\\\\\`\\"\\\$]*)
20016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20017 ;;
20018 *)
20019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20020 ;;
20021 esac
20022done
20023
20024# Fix-up fallback echo if it was mangled by the above quoting rules.
20025case \$lt_ECHO in
20026*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20027 ;;
20028esac
20029
20030ac_aux_dir='$ac_aux_dir'
20031xsi_shell='$xsi_shell'
20032lt_shell_append='$lt_shell_append'
20033
20034# See if we are running on zsh, and set the options which allow our
20035# commands through without removal of \ escapes INIT.
20036if test -n "\${ZSH_VERSION+set}" ; then
20037 setopt NO_GLOB_SUBST
20038fi
20039
20040
20041 PACKAGE='$PACKAGE'
20042 VERSION='$VERSION'
20043 TIMESTAMP='$TIMESTAMP'
20044 RM='$RM'
20045 ofile='$ofile'
20046
20047
20048
20049
20050
20051
20052_ACEOF
20053
20054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20055
20056# Handling of arguments.
20057for ac_config_target in $ac_config_targets
20058do
20059 case $ac_config_target in
20060 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 20061 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e
DWT
20062 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
20063
20064 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20065 esac
20066done
20067
20068
20069# If the user did not use the arguments to specify the items to instantiate,
20070# then the envvar interface is used. Set only those that are not.
20071# We use the long form for the default assignment because of an extremely
20072# bizarre bug on SunOS 4.1.3.
20073if $ac_need_defaults; then
20074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20076fi
20077
20078# Have a temporary directory for convenience. Make it in the build tree
20079# simply because there is no reason against having it here, and in addition,
20080# creating and moving files from /tmp can sometimes cause problems.
20081# Hook for its removal unless debugging.
20082# Note that there is a small window in which the directory will not be cleaned:
20083# after its creation but before its name has been assigned to `$tmp'.
20084$debug ||
20085{
20086 tmp=
20087 trap 'exit_status=$?
20088 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20089' 0
20090 trap 'as_fn_exit 1' 1 2 13 15
20091}
20092# Create a (secure) tmp directory for tmp files.
20093
20094{
20095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20096 test -n "$tmp" && test -d "$tmp"
20097} ||
20098{
20099 tmp=./conf$$-$RANDOM
20100 (umask 077 && mkdir "$tmp")
20101} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20102
20103# Set up the scripts for CONFIG_FILES section.
20104# No need to generate them if there are no CONFIG_FILES.
20105# This happens for instance with `./config.status config.h'.
20106if test -n "$CONFIG_FILES"; then
20107
20108
20109ac_cr=`echo X | tr X '\015'`
20110# On cygwin, bash can eat \r inside `` if the user requested igncr.
20111# But we know of no other shell where ac_cr would be empty at this
20112# point, so we can use a bashism as a fallback.
20113if test "x$ac_cr" = x; then
20114 eval ac_cr=\$\'\\r\'
20115fi
20116ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20117if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20118 ac_cs_awk_cr='\r'
20119else
20120 ac_cs_awk_cr=$ac_cr
20121fi
20122
20123echo 'BEGIN {' >"$tmp/subs1.awk" &&
20124_ACEOF
20125
20126
20127{
20128 echo "cat >conf$$subs.awk <<_ACEOF" &&
20129 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20130 echo "_ACEOF"
20131} >conf$$subs.sh ||
20132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20133ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20134ac_delim='%!_!# '
20135for ac_last_try in false false false false false :; do
20136 . ./conf$$subs.sh ||
20137 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20138
20139 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20140 if test $ac_delim_n = $ac_delim_num; then
20141 break
20142 elif $ac_last_try; then
20143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20144 else
20145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20146 fi
20147done
20148rm -f conf$$subs.sh
20149
20150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20151cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20152_ACEOF
20153sed -n '
20154h
20155s/^/S["/; s/!.*/"]=/
20156p
20157g
20158s/^[^!]*!//
20159:repl
20160t repl
20161s/'"$ac_delim"'$//
20162t delim
20163:nl
20164h
20165s/\(.\{148\}\)..*/\1/
20166t more1
20167s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20168p
20169n
20170b repl
20171:more1
20172s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20173p
20174g
20175s/.\{148\}//
20176t nl
20177:delim
20178h
20179s/\(.\{148\}\)..*/\1/
20180t more2
20181s/["\\]/\\&/g; s/^/"/; s/$/"/
20182p
20183b
20184:more2
20185s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20186p
20187g
20188s/.\{148\}//
20189t delim
20190' <conf$$subs.awk | sed '
20191/^[^""]/{
20192 N
20193 s/\n//
20194}
20195' >>$CONFIG_STATUS || ac_write_fail=1
20196rm -f conf$$subs.awk
20197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20198_ACAWK
20199cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20200 for (key in S) S_is_set[key] = 1
20201 FS = "\a"
20202
20203}
20204{
20205 line = $ 0
20206 nfields = split(line, field, "@")
20207 substed = 0
20208 len = length(field[1])
20209 for (i = 2; i < nfields; i++) {
20210 key = field[i]
20211 keylen = length(key)
20212 if (S_is_set[key]) {
20213 value = S[key]
20214 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20215 len += length(value) + length(field[++i])
20216 substed = 1
20217 } else
20218 len += 1 + keylen
20219 }
20220
20221 print line
20222}
20223
20224_ACAWK
20225_ACEOF
20226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20227if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20228 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20229else
20230 cat
20231fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20232 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20233_ACEOF
20234
20235# VPATH may cause trouble with some makes, so we remove $(srcdir),
20236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20237# trailing colons and then remove the whole line if VPATH becomes empty
20238# (actually we leave an empty line to preserve line numbers).
20239if test "x$srcdir" = x.; then
20240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20241s/:*\$(srcdir):*/:/
20242s/:*\${srcdir}:*/:/
20243s/:*@srcdir@:*/:/
20244s/^\([^=]*=[ ]*\):*/\1/
20245s/:*$//
20246s/^[^=]*=[ ]*$//
20247}'
20248fi
20249
20250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20251fi # test -n "$CONFIG_FILES"
20252
20253
20254eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20255shift
20256for ac_tag
20257do
20258 case $ac_tag in
20259 :[FHLC]) ac_mode=$ac_tag; continue;;
20260 esac
20261 case $ac_mode$ac_tag in
20262 :[FHL]*:*);;
20263 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20264 :[FH]-) ac_tag=-:-;;
20265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20266 esac
20267 ac_save_IFS=$IFS
20268 IFS=:
20269 set x $ac_tag
20270 IFS=$ac_save_IFS
20271 shift
20272 ac_file=$1
20273 shift
20274
20275 case $ac_mode in
20276 :L) ac_source=$1;;
20277 :[FH])
20278 ac_file_inputs=
20279 for ac_f
20280 do
20281 case $ac_f in
20282 -) ac_f="$tmp/stdin";;
20283 *) # Look for the file first in the build tree, then in the source tree
20284 # (if the path is not absolute). The absolute path cannot be DOS-style,
20285 # because $ac_f cannot contain `:'.
20286 test -f "$ac_f" ||
20287 case $ac_f in
20288 [\\/$]*) false;;
20289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20290 esac ||
20291 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20292 esac
20293 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20294 as_fn_append ac_file_inputs " '$ac_f'"
20295 done
20296
20297 # Let's still pretend it is `configure' which instantiates (i.e., don't
20298 # use $as_me), people would be surprised to read:
20299 # /* config.h. Generated by config.status. */
20300 configure_input='Generated from '`
20301 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20302 `' by configure.'
20303 if test x"$ac_file" != x-; then
20304 configure_input="$ac_file. $configure_input"
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20306$as_echo "$as_me: creating $ac_file" >&6;}
20307 fi
20308 # Neutralize special characters interpreted by sed in replacement strings.
20309 case $configure_input in #(
20310 *\&* | *\|* | *\\* )
20311 ac_sed_conf_input=`$as_echo "$configure_input" |
20312 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20313 *) ac_sed_conf_input=$configure_input;;
20314 esac
20315
20316 case $ac_tag in
20317 *:-:* | *:-) cat >"$tmp/stdin" \
20318 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20319 esac
20320 ;;
20321 esac
20322
20323 ac_dir=`$as_dirname -- "$ac_file" ||
20324$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20325 X"$ac_file" : 'X\(//\)[^/]' \| \
20326 X"$ac_file" : 'X\(//\)$' \| \
20327 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20328$as_echo X"$ac_file" |
20329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20330 s//\1/
20331 q
20332 }
20333 /^X\(\/\/\)[^/].*/{
20334 s//\1/
20335 q
20336 }
20337 /^X\(\/\/\)$/{
20338 s//\1/
20339 q
20340 }
20341 /^X\(\/\).*/{
20342 s//\1/
20343 q
20344 }
20345 s/.*/./; q'`
20346 as_dir="$ac_dir"; as_fn_mkdir_p
20347 ac_builddir=.
20348
20349case "$ac_dir" in
20350.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20351*)
20352 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20353 # A ".." for each directory in $ac_dir_suffix.
20354 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20355 case $ac_top_builddir_sub in
20356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20358 esac ;;
20359esac
20360ac_abs_top_builddir=$ac_pwd
20361ac_abs_builddir=$ac_pwd$ac_dir_suffix
20362# for backward compatibility:
20363ac_top_builddir=$ac_top_build_prefix
35fa52c0 20364
9c60689e
DWT
20365case $srcdir in
20366 .) # We are building in place.
20367 ac_srcdir=.
20368 ac_top_srcdir=$ac_top_builddir_sub
20369 ac_abs_top_srcdir=$ac_pwd ;;
20370 [\\/]* | ?:[\\/]* ) # Absolute name.
20371 ac_srcdir=$srcdir$ac_dir_suffix;
20372 ac_top_srcdir=$srcdir
20373 ac_abs_top_srcdir=$srcdir ;;
20374 *) # Relative name.
20375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20376 ac_top_srcdir=$ac_top_build_prefix$srcdir
20377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20378esac
20379ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
20380
20381
9c60689e
DWT
20382 case $ac_mode in
20383 :F)
20384 #
20385 # CONFIG_FILE
20386 #
35fa52c0 20387
9c60689e
DWT
20388 case $INSTALL in
20389 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20390 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20391 esac
20392_ACEOF
35fa52c0 20393
9c60689e
DWT
20394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20395# If the template does not know about datarootdir, expand it.
20396# FIXME: This hack should be removed a few years after 2.60.
20397ac_datarootdir_hack=; ac_datarootdir_seen=
20398ac_sed_dataroot='
20399/datarootdir/ {
20400 p
20401 q
20402}
20403/@datadir@/p
20404/@docdir@/p
20405/@infodir@/p
20406/@localedir@/p
20407/@mandir@/p'
20408case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20409*datarootdir*) ac_datarootdir_seen=yes;;
20410*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20412$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20413_ACEOF
20414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20415 ac_datarootdir_hack='
20416 s&@datadir@&$datadir&g
20417 s&@docdir@&$docdir&g
20418 s&@infodir@&$infodir&g
20419 s&@localedir@&$localedir&g
20420 s&@mandir@&$mandir&g
20421 s&\\\${datarootdir}&$datarootdir&g' ;;
20422esac
20423_ACEOF
35fa52c0 20424
9c60689e
DWT
20425# Neutralize VPATH when `$srcdir' = `.'.
20426# Shell code in configure.ac might set extrasub.
20427# FIXME: do we really want to maintain this feature?
20428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20429ac_sed_extra="$ac_vpsub
20430$extrasub
20431_ACEOF
20432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20433:t
20434/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20435s|@configure_input@|$ac_sed_conf_input|;t t
20436s&@top_builddir@&$ac_top_builddir_sub&;t t
20437s&@top_build_prefix@&$ac_top_build_prefix&;t t
20438s&@srcdir@&$ac_srcdir&;t t
20439s&@abs_srcdir@&$ac_abs_srcdir&;t t
20440s&@top_srcdir@&$ac_top_srcdir&;t t
20441s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20442s&@builddir@&$ac_builddir&;t t
20443s&@abs_builddir@&$ac_abs_builddir&;t t
20444s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20445s&@INSTALL@&$ac_INSTALL&;t t
20446$ac_datarootdir_hack
20447"
20448eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20449 || as_fn_error "could not create $ac_file" "$LINENO" 5
20450
20451test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20452 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20453 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20455which seems to be undefined. Please make sure it is defined." >&5
20456$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20457which seems to be undefined. Please make sure it is defined." >&2;}
20458
20459 rm -f "$tmp/stdin"
20460 case $ac_file in
20461 -) cat "$tmp/out" && rm -f "$tmp/out";;
20462 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20463 esac \
20464 || as_fn_error "could not create $ac_file" "$LINENO" 5
20465 ;;
35fa52c0 20466
35fa52c0 20467
9c60689e
DWT
20468 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20469$as_echo "$as_me: executing $ac_file commands" >&6;}
20470 ;;
20471 esac
35fa52c0 20472
35fa52c0 20473
9c60689e
DWT
20474 case $ac_file$ac_mode in
20475 "libtool":C)
20476
20477 # See if we are running on zsh, and set the options which allow our
20478 # commands through without removal of \ escapes.
20479 if test -n "${ZSH_VERSION+set}" ; then
20480 setopt NO_GLOB_SUBST
35fa52c0 20481 fi
35fa52c0 20482
9c60689e
DWT
20483 cfgfile="${ofile}T"
20484 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20485 $RM "$cfgfile"
35fa52c0 20486
9c60689e
DWT
20487 cat <<_LT_EOF >> "$cfgfile"
20488#! $SHELL
35fa52c0 20489
9c60689e
DWT
20490# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20491# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20492# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20493# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20494#
20495# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20496# 2006, 2007, 2008 Free Software Foundation, Inc.
20497# Written by Gordon Matzigkeit, 1996
20498#
20499# This file is part of GNU Libtool.
20500#
20501# GNU Libtool is free software; you can redistribute it and/or
20502# modify it under the terms of the GNU General Public License as
20503# published by the Free Software Foundation; either version 2 of
20504# the License, or (at your option) any later version.
20505#
20506# As a special exception to the GNU General Public License,
20507# if you distribute this file as part of a program or library that
20508# is built using GNU Libtool, you may include this file under the
20509# same distribution terms that you use for the rest of that program.
20510#
20511# GNU Libtool is distributed in the hope that it will be useful,
20512# but WITHOUT ANY WARRANTY; without even the implied warranty of
20513# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20514# GNU General Public License for more details.
20515#
20516# You should have received a copy of the GNU General Public License
20517# along with GNU Libtool; see the file COPYING. If not, a copy
20518# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20519# obtained by writing to the Free Software Foundation, Inc.,
20520# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 20521
35fa52c0 20522
9c60689e
DWT
20523# The names of the tagged configurations supported by this script.
20524available_tags="CXX "
35fa52c0 20525
9c60689e 20526# ### BEGIN LIBTOOL CONFIG
35fa52c0 20527
9c60689e
DWT
20528# Which release of libtool.m4 was used?
20529macro_version=$macro_version
20530macro_revision=$macro_revision
35fa52c0 20531
9c60689e
DWT
20532# Whether or not to build static libraries.
20533build_old_libs=$enable_static
35fa52c0 20534
549f29b5
DWT
20535# Whether or not to build shared libraries.
20536build_libtool_libs=$enable_shared
20537
9c60689e
DWT
20538# What type of objects to build.
20539pic_mode=$pic_mode
35fa52c0 20540
9c60689e
DWT
20541# Whether or not to optimize for fast installation.
20542fast_install=$enable_fast_install
35fa52c0 20543
9c60689e
DWT
20544# The host system.
20545host_alias=$host_alias
20546host=$host
20547host_os=$host_os
35fa52c0 20548
9c60689e
DWT
20549# The build system.
20550build_alias=$build_alias
20551build=$build
20552build_os=$build_os
20553
20554# A sed program that does not truncate output.
20555SED=$lt_SED
20556
20557# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20558Xsed="\$SED -e 1s/^X//"
20559
20560# A grep program that handles long lines.
20561GREP=$lt_GREP
20562
20563# An ERE matcher.
20564EGREP=$lt_EGREP
20565
20566# A literal string matcher.
20567FGREP=$lt_FGREP
20568
20569# A BSD- or MS-compatible name lister.
20570NM=$lt_NM
20571
20572# Whether we need soft or hard links.
20573LN_S=$lt_LN_S
20574
20575# What is the maximum length of a command?
20576max_cmd_len=$max_cmd_len
20577
20578# Object file suffix (normally "o").
20579objext=$ac_objext
20580
20581# Executable file suffix (normally "").
20582exeext=$exeext
20583
20584# whether the shell understands "unset".
20585lt_unset=$lt_unset
20586
20587# turn spaces into newlines.
20588SP2NL=$lt_lt_SP2NL
20589
20590# turn newlines into spaces.
20591NL2SP=$lt_lt_NL2SP
20592
20593# How to create reloadable object files.
20594reload_flag=$lt_reload_flag
20595reload_cmds=$lt_reload_cmds
20596
20597# An object symbol dumper.
20598OBJDUMP=$lt_OBJDUMP
20599
20600# Method to check whether dependent libraries are shared objects.
20601deplibs_check_method=$lt_deplibs_check_method
20602
20603# Command to use when deplibs_check_method == "file_magic".
20604file_magic_cmd=$lt_file_magic_cmd
20605
20606# The archiver.
20607AR=$lt_AR
20608AR_FLAGS=$lt_AR_FLAGS
20609
20610# A symbol stripping program.
20611STRIP=$lt_STRIP
20612
20613# Commands used to install an old-style archive.
20614RANLIB=$lt_RANLIB
20615old_postinstall_cmds=$lt_old_postinstall_cmds
20616old_postuninstall_cmds=$lt_old_postuninstall_cmds
20617
20618# A C compiler.
20619LTCC=$lt_CC
20620
20621# LTCC compiler flags.
20622LTCFLAGS=$lt_CFLAGS
20623
20624# Take the output of nm and produce a listing of raw symbols and C names.
20625global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20626
20627# Transform the output of nm in a proper C declaration.
20628global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20629
20630# Transform the output of nm in a C name address pair.
20631global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20632
20633# Transform the output of nm in a C name address pair when lib prefix is needed.
20634global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20635
20636# The name of the directory that contains temporary libtool files.
20637objdir=$objdir
20638
20639# Shell to use when invoking shell scripts.
20640SHELL=$lt_SHELL
20641
20642# An echo program that does not interpret backslashes.
20643ECHO=$lt_ECHO
20644
20645# Used to examine libraries when file_magic_cmd begins with "file".
20646MAGIC_CMD=$MAGIC_CMD
20647
20648# Must we lock files when doing compilation?
20649need_locks=$lt_need_locks
20650
20651# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20652DSYMUTIL=$lt_DSYMUTIL
20653
20654# Tool to change global to local symbols on Mac OS X.
20655NMEDIT=$lt_NMEDIT
20656
20657# Tool to manipulate fat objects and archives on Mac OS X.
20658LIPO=$lt_LIPO
20659
20660# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20661OTOOL=$lt_OTOOL
20662
20663# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20664OTOOL64=$lt_OTOOL64
20665
20666# Old archive suffix (normally "a").
20667libext=$libext
20668
20669# Shared library suffix (normally ".so").
20670shrext_cmds=$lt_shrext_cmds
35fa52c0 20671
9c60689e
DWT
20672# The commands to extract the exported symbol list from a shared archive.
20673extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 20674
9c60689e
DWT
20675# Variables whose values should be saved in libtool wrapper scripts and
20676# restored at link time.
20677variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 20678
9c60689e
DWT
20679# Do we need the "lib" prefix for modules?
20680need_lib_prefix=$need_lib_prefix
35fa52c0 20681
9c60689e
DWT
20682# Do we need a version for libraries?
20683need_version=$need_version
35fa52c0 20684
9c60689e
DWT
20685# Library versioning type.
20686version_type=$version_type
35fa52c0 20687
9c60689e
DWT
20688# Shared library runtime path variable.
20689runpath_var=$runpath_var
35fa52c0 20690
9c60689e
DWT
20691# Shared library path variable.
20692shlibpath_var=$shlibpath_var
35fa52c0 20693
9c60689e
DWT
20694# Is shlibpath searched before the hard-coded library search path?
20695shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 20696
9c60689e
DWT
20697# Format of library name prefix.
20698libname_spec=$lt_libname_spec
35fa52c0 20699
9c60689e
DWT
20700# List of archive names. First name is the real one, the rest are links.
20701# The last name is the one that the linker finds with -lNAME
20702library_names_spec=$lt_library_names_spec
dbadc56a 20703
9c60689e
DWT
20704# The coded name of the library, if different from the real name.
20705soname_spec=$lt_soname_spec
dbadc56a 20706
9c60689e
DWT
20707# Command to use after installation of a shared archive.
20708postinstall_cmds=$lt_postinstall_cmds
35fa52c0 20709
9c60689e
DWT
20710# Command to use after uninstallation of a shared archive.
20711postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 20712
9c60689e
DWT
20713# Commands used to finish a libtool library installation in a directory.
20714finish_cmds=$lt_finish_cmds
35fa52c0 20715
9c60689e
DWT
20716# As "finish_cmds", except a single script fragment to be evaled but
20717# not shown.
20718finish_eval=$lt_finish_eval
35fa52c0 20719
9c60689e
DWT
20720# Whether we should hardcode library paths into libraries.
20721hardcode_into_libs=$hardcode_into_libs
dbadc56a 20722
9c60689e
DWT
20723# Compile-time system search path for libraries.
20724sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 20725
9c60689e
DWT
20726# Run-time system search path for libraries.
20727sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 20728
9c60689e
DWT
20729# Whether dlopen is supported.
20730dlopen_support=$enable_dlopen
dbadc56a 20731
9c60689e
DWT
20732# Whether dlopen of programs is supported.
20733dlopen_self=$enable_dlopen_self
35fa52c0 20734
9c60689e
DWT
20735# Whether dlopen of statically linked programs is supported.
20736dlopen_self_static=$enable_dlopen_self_static
35fa52c0 20737
9c60689e
DWT
20738# Commands to strip libraries.
20739old_striplib=$lt_old_striplib
20740striplib=$lt_striplib
35fa52c0 20741
35fa52c0 20742
9c60689e
DWT
20743# The linker used to build libraries.
20744LD=$lt_LD
dbadc56a 20745
9c60689e
DWT
20746# Commands used to build an old-style archive.
20747old_archive_cmds=$lt_old_archive_cmds
dbadc56a 20748
9c60689e
DWT
20749# A language specific compiler.
20750CC=$lt_compiler
35fa52c0 20751
9c60689e
DWT
20752# Is the compiler the GNU compiler?
20753with_gcc=$GCC
dbadc56a 20754
9c60689e
DWT
20755# Compiler flag to turn off builtin functions.
20756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 20757
9c60689e
DWT
20758# How to pass a linker flag through the compiler.
20759wl=$lt_lt_prog_compiler_wl
35fa52c0 20760
9c60689e
DWT
20761# Additional compiler flags for building library objects.
20762pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 20763
9c60689e
DWT
20764# Compiler flag to prevent dynamic linking.
20765link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 20766
9c60689e
DWT
20767# Does compiler simultaneously support -c and -o options?
20768compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 20769
9c60689e
DWT
20770# Whether or not to add -lc for building shared libraries.
20771build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 20772
9c60689e
DWT
20773# Whether or not to disallow shared libs when runtime libs are static.
20774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 20775
9c60689e
DWT
20776# Compiler flag to allow reflexive dlopens.
20777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 20778
9c60689e
DWT
20779# Compiler flag to generate shared objects directly from archives.
20780whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 20781
9c60689e
DWT
20782# Whether the compiler copes with passing no objects directly.
20783compiler_needs_object=$lt_compiler_needs_object
dbadc56a 20784
9c60689e
DWT
20785# Create an old-style archive from a shared archive.
20786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 20787
9c60689e
DWT
20788# Create a temporary old-style archive to link instead of a shared archive.
20789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 20790
9c60689e
DWT
20791# Commands used to build a shared archive.
20792archive_cmds=$lt_archive_cmds
20793archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 20794
9c60689e
DWT
20795# Commands used to build a loadable module if different from building
20796# a shared archive.
20797module_cmds=$lt_module_cmds
20798module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 20799
9c60689e
DWT
20800# Whether we are building with GNU ld or not.
20801with_gnu_ld=$lt_with_gnu_ld
6b66678a 20802
9c60689e
DWT
20803# Flag that allows shared libraries with undefined symbols to be built.
20804allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 20805
9c60689e
DWT
20806# Flag that enforces no undefined symbols.
20807no_undefined_flag=$lt_no_undefined_flag
6b66678a 20808
9c60689e
DWT
20809# Flag to hardcode \$libdir into a binary during linking.
20810# This must work even if \$libdir does not exist
20811hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 20812
9c60689e
DWT
20813# If ld is used when linking, flag to hardcode \$libdir into a binary
20814# during linking. This must work even if \$libdir does not exist.
20815hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
6b66678a 20816
9c60689e
DWT
20817# Whether we need a single "-rpath" flag with a separated argument.
20818hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 20819
9c60689e
DWT
20820# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20821# DIR into the resulting binary.
20822hardcode_direct=$hardcode_direct
6b66678a 20823
9c60689e
DWT
20824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20825# DIR into the resulting binary and the resulting library dependency is
20826# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20827# library is relocated.
20828hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 20829
9c60689e
DWT
20830# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20831# into the resulting binary.
20832hardcode_minus_L=$hardcode_minus_L
6b66678a 20833
9c60689e
DWT
20834# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20835# into the resulting binary.
20836hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 20837
9c60689e
DWT
20838# Set to "yes" if building a shared library automatically hardcodes DIR
20839# into the library and all subsequent libraries and executables linked
20840# against it.
20841hardcode_automatic=$hardcode_automatic
6b66678a 20842
9c60689e
DWT
20843# Set to yes if linker adds runtime paths of dependent libraries
20844# to runtime path list.
20845inherit_rpath=$inherit_rpath
6b66678a 20846
9c60689e
DWT
20847# Whether libtool must link a program against all its dependency libraries.
20848link_all_deplibs=$link_all_deplibs
20849
20850# Fix the shell variable \$srcfile for the compiler.
20851fix_srcfile_path=$lt_fix_srcfile_path
20852
20853# Set to "yes" if exported symbols are required.
20854always_export_symbols=$always_export_symbols
6b66678a 20855
9c60689e
DWT
20856# The commands to list exported symbols.
20857export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 20858
9c60689e
DWT
20859# Symbols that should not be listed in the preloaded symbols.
20860exclude_expsyms=$lt_exclude_expsyms
6b66678a 20861
9c60689e
DWT
20862# Symbols that must always be exported.
20863include_expsyms=$lt_include_expsyms
6b66678a 20864
9c60689e
DWT
20865# Commands necessary for linking programs (against libraries) with templates.
20866prelink_cmds=$lt_prelink_cmds
6b66678a 20867
9c60689e
DWT
20868# Specify filename containing input files.
20869file_list_spec=$lt_file_list_spec
6b66678a 20870
9c60689e
DWT
20871# How to hardcode a shared library path into an executable.
20872hardcode_action=$hardcode_action
20873
20874# The directories searched by this compiler when creating a shared library.
20875compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20876
20877# Dependencies to place before and after the objects being linked to
20878# create a shared library.
20879predep_objects=$lt_predep_objects
20880postdep_objects=$lt_postdep_objects
20881predeps=$lt_predeps
20882postdeps=$lt_postdeps
20883
20884# The library search path used internally by the compiler when linking
20885# a shared library.
20886compiler_lib_search_path=$lt_compiler_lib_search_path
20887
20888# ### END LIBTOOL CONFIG
20889
20890_LT_EOF
20891
20892 case $host_os in
20893 aix3*)
20894 cat <<\_LT_EOF >> "$cfgfile"
20895# AIX sometimes has problems with the GCC collect2 program. For some
20896# reason, if we set the COLLECT_NAMES environment variable, the problems
20897# vanish in a puff of smoke.
20898if test "X${COLLECT_NAMES+set}" != Xset; then
20899 COLLECT_NAMES=
20900 export COLLECT_NAMES
6b66678a 20901fi
9c60689e
DWT
20902_LT_EOF
20903 ;;
20904 esac
6b66678a
DWT
20905
20906
9c60689e 20907ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 20908
9c60689e
DWT
20909
20910 # We use sed instead of cat because bash on DJGPP gets confused if
20911 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20912 # text mode, it properly converts lines to CR/LF. This bash problem
20913 # is reportedly fixed, but why not run on old versions too?
20914 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20915 || (rm -f "$cfgfile"; exit 1)
20916
20917 case $xsi_shell in
20918 yes)
20919 cat << \_LT_EOF >> "$cfgfile"
20920
20921# func_dirname file append nondir_replacement
20922# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20923# otherwise set result to NONDIR_REPLACEMENT.
20924func_dirname ()
6b66678a 20925{
9c60689e
DWT
20926 case ${1} in
20927 */*) func_dirname_result="${1%/*}${2}" ;;
20928 * ) func_dirname_result="${3}" ;;
20929 esac
20930}
6b66678a 20931
9c60689e
DWT
20932# func_basename file
20933func_basename ()
20934{
20935 func_basename_result="${1##*/}"
6b66678a 20936}
6b66678a 20937
9c60689e
DWT
20938# func_dirname_and_basename file append nondir_replacement
20939# perform func_basename and func_dirname in a single function
20940# call:
20941# dirname: Compute the dirname of FILE. If nonempty,
20942# add APPEND to the result, otherwise set result
20943# to NONDIR_REPLACEMENT.
20944# value returned in "$func_dirname_result"
20945# basename: Compute filename of FILE.
20946# value retuned in "$func_basename_result"
20947# Implementation must be kept synchronized with func_dirname
20948# and func_basename. For efficiency, we do not delegate to
20949# those functions but instead duplicate the functionality here.
20950func_dirname_and_basename ()
20951{
20952 case ${1} in
20953 */*) func_dirname_result="${1%/*}${2}" ;;
20954 * ) func_dirname_result="${3}" ;;
20955 esac
20956 func_basename_result="${1##*/}"
20957}
6b66678a 20958
9c60689e
DWT
20959# func_stripname prefix suffix name
20960# strip PREFIX and SUFFIX off of NAME.
20961# PREFIX and SUFFIX must not contain globbing or regex special
20962# characters, hashes, percent signs, but SUFFIX may contain a leading
20963# dot (in which case that matches only a dot).
20964func_stripname ()
20965{
20966 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20967 # positional parameters, so assign one to ordinary parameter first.
20968 func_stripname_result=${3}
20969 func_stripname_result=${func_stripname_result#"${1}"}
20970 func_stripname_result=${func_stripname_result%"${2}"}
20971}
6b66678a 20972
9c60689e
DWT
20973# func_opt_split
20974func_opt_split ()
20975{
20976 func_opt_split_opt=${1%%=*}
20977 func_opt_split_arg=${1#*=}
20978}
6b66678a 20979
9c60689e
DWT
20980# func_lo2o object
20981func_lo2o ()
20982{
20983 case ${1} in
20984 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20985 *) func_lo2o_result=${1} ;;
20986 esac
20987}
6b66678a 20988
9c60689e
DWT
20989# func_xform libobj-or-source
20990func_xform ()
20991{
20992 func_xform_result=${1%.*}.lo
20993}
6b66678a 20994
9c60689e
DWT
20995# func_arith arithmetic-term...
20996func_arith ()
20997{
20998 func_arith_result=$(( $* ))
20999}
6b66678a 21000
9c60689e
DWT
21001# func_len string
21002# STRING may not start with a hyphen.
21003func_len ()
21004{
21005 func_len_result=${#1}
21006}
6b66678a 21007
9c60689e
DWT
21008_LT_EOF
21009 ;;
21010 *) # Bourne compatible functions.
21011 cat << \_LT_EOF >> "$cfgfile"
6b66678a 21012
9c60689e
DWT
21013# func_dirname file append nondir_replacement
21014# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21015# otherwise set result to NONDIR_REPLACEMENT.
21016func_dirname ()
21017{
21018 # Extract subdirectory from the argument.
21019 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21020 if test "X$func_dirname_result" = "X${1}"; then
21021 func_dirname_result="${3}"
21022 else
21023 func_dirname_result="$func_dirname_result${2}"
21024 fi
21025}
6b66678a 21026
9c60689e
DWT
21027# func_basename file
21028func_basename ()
6b66678a 21029{
9c60689e 21030 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6b66678a 21031}
6b66678a 21032
6b66678a 21033
9c60689e
DWT
21034# func_stripname prefix suffix name
21035# strip PREFIX and SUFFIX off of NAME.
21036# PREFIX and SUFFIX must not contain globbing or regex special
21037# characters, hashes, percent signs, but SUFFIX may contain a leading
21038# dot (in which case that matches only a dot).
21039# func_strip_suffix prefix name
21040func_stripname ()
21041{
21042 case ${2} in
21043 .*) func_stripname_result=`$ECHO "X${3}" \
21044 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21045 *) func_stripname_result=`$ECHO "X${3}" \
21046 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21047 esac
21048}
6b66678a 21049
9c60689e
DWT
21050# sed scripts:
21051my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21052my_sed_long_arg='1s/^-[^=]*=//'
6b66678a 21053
9c60689e
DWT
21054# func_opt_split
21055func_opt_split ()
21056{
21057 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21058 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21059}
6b66678a 21060
9c60689e
DWT
21061# func_lo2o object
21062func_lo2o ()
21063{
21064 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21065}
21066
21067# func_xform libobj-or-source
21068func_xform ()
21069{
21070 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21071}
21072
21073# func_arith arithmetic-term...
21074func_arith ()
21075{
21076 func_arith_result=`expr "$@"`
21077}
21078
21079# func_len string
21080# STRING may not start with a hyphen.
21081func_len ()
21082{
21083 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21084}
21085
21086_LT_EOF
21087esac
21088
21089case $lt_shell_append in
21090 yes)
21091 cat << \_LT_EOF >> "$cfgfile"
21092
21093# func_append var value
21094# Append VALUE to the end of shell variable VAR.
21095func_append ()
21096{
21097 eval "$1+=\$2"
21098}
21099_LT_EOF
21100 ;;
21101 *)
21102 cat << \_LT_EOF >> "$cfgfile"
21103
21104# func_append var value
21105# Append VALUE to the end of shell variable VAR.
21106func_append ()
21107{
21108 eval "$1=\$$1\$2"
21109}
21110
21111_LT_EOF
21112 ;;
21113 esac
21114
21115
21116 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21117 || (rm -f "$cfgfile"; exit 1)
21118
21119 mv -f "$cfgfile" "$ofile" ||
21120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21121 chmod +x "$ofile"
21122
21123
21124 cat <<_LT_EOF >> "$ofile"
21125
21126# ### BEGIN LIBTOOL TAG CONFIG: CXX
21127
21128# The linker used to build libraries.
21129LD=$lt_LD_CXX
21130
21131# Commands used to build an old-style archive.
21132old_archive_cmds=$lt_old_archive_cmds_CXX
21133
21134# A language specific compiler.
21135CC=$lt_compiler_CXX
21136
21137# Is the compiler the GNU compiler?
21138with_gcc=$GCC_CXX
21139
21140# Compiler flag to turn off builtin functions.
21141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 21142
9c60689e
DWT
21143# How to pass a linker flag through the compiler.
21144wl=$lt_lt_prog_compiler_wl_CXX
6b66678a 21145
9c60689e
DWT
21146# Additional compiler flags for building library objects.
21147pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 21148
9c60689e
DWT
21149# Compiler flag to prevent dynamic linking.
21150link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 21151
9c60689e
DWT
21152# Does compiler simultaneously support -c and -o options?
21153compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 21154
9c60689e
DWT
21155# Whether or not to add -lc for building shared libraries.
21156build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 21157
9c60689e
DWT
21158# Whether or not to disallow shared libs when runtime libs are static.
21159allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 21160
9c60689e
DWT
21161# Compiler flag to allow reflexive dlopens.
21162export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 21163
9c60689e
DWT
21164# Compiler flag to generate shared objects directly from archives.
21165whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 21166
9c60689e
DWT
21167# Whether the compiler copes with passing no objects directly.
21168compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 21169
9c60689e
DWT
21170# Create an old-style archive from a shared archive.
21171old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 21172
9c60689e
DWT
21173# Create a temporary old-style archive to link instead of a shared archive.
21174old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 21175
9c60689e
DWT
21176# Commands used to build a shared archive.
21177archive_cmds=$lt_archive_cmds_CXX
21178archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 21179
9c60689e
DWT
21180# Commands used to build a loadable module if different from building
21181# a shared archive.
21182module_cmds=$lt_module_cmds_CXX
21183module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 21184
9c60689e
DWT
21185# Whether we are building with GNU ld or not.
21186with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 21187
9c60689e
DWT
21188# Flag that allows shared libraries with undefined symbols to be built.
21189allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 21190
9c60689e
DWT
21191# Flag that enforces no undefined symbols.
21192no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 21193
9c60689e
DWT
21194# Flag to hardcode \$libdir into a binary during linking.
21195# This must work even if \$libdir does not exist
21196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 21197
9c60689e
DWT
21198# If ld is used when linking, flag to hardcode \$libdir into a binary
21199# during linking. This must work even if \$libdir does not exist.
21200hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
6b66678a 21201
9c60689e
DWT
21202# Whether we need a single "-rpath" flag with a separated argument.
21203hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 21204
9c60689e
DWT
21205# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21206# DIR into the resulting binary.
21207hardcode_direct=$hardcode_direct_CXX
6b66678a 21208
9c60689e
DWT
21209# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21210# DIR into the resulting binary and the resulting library dependency is
21211# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21212# library is relocated.
21213hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 21214
9c60689e
DWT
21215# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21216# into the resulting binary.
21217hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 21218
9c60689e
DWT
21219# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21220# into the resulting binary.
21221hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 21222
9c60689e
DWT
21223# Set to "yes" if building a shared library automatically hardcodes DIR
21224# into the library and all subsequent libraries and executables linked
21225# against it.
21226hardcode_automatic=$hardcode_automatic_CXX
6b66678a 21227
9c60689e
DWT
21228# Set to yes if linker adds runtime paths of dependent libraries
21229# to runtime path list.
21230inherit_rpath=$inherit_rpath_CXX
6b66678a 21231
9c60689e
DWT
21232# Whether libtool must link a program against all its dependency libraries.
21233link_all_deplibs=$link_all_deplibs_CXX
6b66678a 21234
9c60689e
DWT
21235# Fix the shell variable \$srcfile for the compiler.
21236fix_srcfile_path=$lt_fix_srcfile_path_CXX
6b66678a 21237
9c60689e
DWT
21238# Set to "yes" if exported symbols are required.
21239always_export_symbols=$always_export_symbols_CXX
6b66678a 21240
9c60689e
DWT
21241# The commands to list exported symbols.
21242export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 21243
9c60689e
DWT
21244# Symbols that should not be listed in the preloaded symbols.
21245exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 21246
9c60689e
DWT
21247# Symbols that must always be exported.
21248include_expsyms=$lt_include_expsyms_CXX
6b66678a 21249
9c60689e
DWT
21250# Commands necessary for linking programs (against libraries) with templates.
21251prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 21252
9c60689e
DWT
21253# Specify filename containing input files.
21254file_list_spec=$lt_file_list_spec_CXX
dbadc56a 21255
9c60689e
DWT
21256# How to hardcode a shared library path into an executable.
21257hardcode_action=$hardcode_action_CXX
309b0535 21258
9c60689e
DWT
21259# The directories searched by this compiler when creating a shared library.
21260compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 21261
9c60689e
DWT
21262# Dependencies to place before and after the objects being linked to
21263# create a shared library.
21264predep_objects=$lt_predep_objects_CXX
21265postdep_objects=$lt_postdep_objects_CXX
21266predeps=$lt_predeps_CXX
21267postdeps=$lt_postdeps_CXX
309b0535 21268
9c60689e
DWT
21269# The library search path used internally by the compiler when linking
21270# a shared library.
21271compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21272
21273# ### END LIBTOOL TAG CONFIG: CXX
21274_LT_EOF
21275
21276 ;;
21277
21278 esac
21279done # for ac_tag
21280
21281
21282as_fn_exit 0
21283_ACEOF
21284ac_clean_files=$ac_clean_files_save
21285
21286test $ac_write_fail = 0 ||
21287 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21288
21289
21290# configure is writing to config.log, and then calls config.status.
21291# config.status does its own redirection, appending to config.log.
21292# Unfortunately, on DOS this fails, as config.log is still kept open
21293# by configure, so config.status won't be able to write to it; its
21294# output is simply discarded. So we exec the FD to /dev/null,
21295# effectively closing config.log, so it can be properly (re)opened and
21296# appended to by config.status. When coming back to configure, we
21297# need to make the FD available again.
21298if test "$no_create" != yes; then
21299 ac_cs_success=:
21300 ac_config_status_args=
21301 test "$silent" = yes &&
21302 ac_config_status_args="$ac_config_status_args --quiet"
21303 exec 5>/dev/null
21304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21305 exec 5>>config.log
21306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21307 # would make configure fail if this is the last instruction.
21308 $ac_cs_success || as_fn_exit $?
309b0535 21309fi
9c60689e
DWT
21310if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21312$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21313fi
21314