]> git.saurik.com Git - cycript.git/blame_incremental - configure
Oops! That broke the Linux build with GNUstep.
[cycript.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for Cycript 0.9.
4#
5# Report bugs to <saurik@saurik.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
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'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
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
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
680as_awk_strverscmp='
681 # Use only awk features that work with 7th edition Unix awk (1978).
682 # My, what an old awk you have, Mr. Solaris!
683 END {
684 while (length(v1) && length(v2)) {
685 # Set d1 to be the next thing to compare from v1, and likewise for d2.
686 # Normally this is a single character, but if v1 and v2 contain digits,
687 # compare them as integers and fractions as strverscmp does.
688 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
689 # Split v1 and v2 into their leading digit string components d1 and d2,
690 # and advance v1 and v2 past the leading digit strings.
691 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
692 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
693 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
694 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
695 if (d1 ~ /^0/) {
696 if (d2 ~ /^0/) {
697 # Compare two fractions.
698 while (d1 ~ /^0/ && d2 ~ /^0/) {
699 d1 = substr(d1, 2); len1--
700 d2 = substr(d2, 2); len2--
701 }
702 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
703 # The two components differ in length, and the common prefix
704 # contains only leading zeros. Consider the longer to be less.
705 d1 = -len1
706 d2 = -len2
707 } else {
708 # Otherwise, compare as strings.
709 d1 = "x" d1
710 d2 = "x" d2
711 }
712 } else {
713 # A fraction is less than an integer.
714 exit 1
715 }
716 } else {
717 if (d2 ~ /^0/) {
718 # An integer is greater than a fraction.
719 exit 2
720 } else {
721 # Compare two integers.
722 d1 += 0
723 d2 += 0
724 }
725 }
726 } else {
727 # The normal case, without worrying about digits.
728 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
729 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
730 }
731 if (d1 < d2) exit 1
732 if (d1 > d2) exit 2
733 }
734 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
735 # which mishandles some comparisons of empty strings to integers.
736 if (length(v2)) exit 1
737 if (length(v1)) exit 2
738 }
739'
740
741test -n "$DJDIR" || exec 7<&0 </dev/null
742exec 6>&1
743
744# Name of the host.
745# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
746# so uname gets run too.
747ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
748
749#
750# Initializations.
751#
752ac_default_prefix=/usr/local
753ac_clean_files=
754ac_config_libobj_dir=.
755LIBOBJS=
756cross_compiling=no
757subdirs=
758MFLAGS=
759MAKEFLAGS=
760
761# Identity of this package.
762PACKAGE_NAME='Cycript'
763PACKAGE_TARNAME='cycript'
764PACKAGE_VERSION='0.9'
765PACKAGE_STRING='Cycript 0.9'
766PACKAGE_BUGREPORT='saurik@saurik.com'
767PACKAGE_URL='http://www.cycript.org/'
768
769ac_unique_file="Console.cpp"
770# Factoring default headers for most tests.
771ac_includes_default="\
772#include <stdio.h>
773#ifdef HAVE_SYS_TYPES_H
774# include <sys/types.h>
775#endif
776#ifdef HAVE_SYS_STAT_H
777# include <sys/stat.h>
778#endif
779#ifdef STDC_HEADERS
780# include <stdlib.h>
781# include <stddef.h>
782#else
783# ifdef HAVE_STDLIB_H
784# include <stdlib.h>
785# endif
786#endif
787#ifdef HAVE_STRING_H
788# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
789# include <memory.h>
790# endif
791# include <string.h>
792#endif
793#ifdef HAVE_STRINGS_H
794# include <strings.h>
795#endif
796#ifdef HAVE_INTTYPES_H
797# include <inttypes.h>
798#endif
799#ifdef HAVE_STDINT_H
800# include <stdint.h>
801#endif
802#ifdef HAVE_UNISTD_H
803# include <unistd.h>
804#endif"
805
806ac_subst_vars='LTLIBOBJS
807LIBOBJS
808CY_OBJECTIVEC_MACH
809GNUSTEP_CONFIG
810CY_OBJECTIVEC
811LIBFFI_LIBS
812LIBFFI_CFLAGS
813CY_EXECUTE
814WEBKIT_LIBS
815WEBKIT_CFLAGS
816LTLIBICONV
817LIBICONV
818INSTALL_DATA
819INSTALL_SCRIPT
820INSTALL_PROGRAM
821LTLIBAPR
822TIME
823GPERF
824_BASH
825FLEX
826LEXLIB
827LEX_OUTPUT_ROOT
828LEX
829BISON
830AWK
831YFLAGS
832YACC
833ac_ct_OBJCXX
834OBJCXXFLAGS
835OBJCXX
836CXXCPP
837ac_ct_CXX
838CXXFLAGS
839CXX
840ifGNUmake
841PKG_CONFIG
842CPP
843OTOOL64
844OTOOL
845LIPO
846NMEDIT
847DSYMUTIL
848lt_ECHO
849RANLIB
850STRIP
851AR
852OBJDUMP
853LN_S
854NM
855ac_ct_DUMPBIN
856DUMPBIN
857LD
858FGREP
859EGREP
860GREP
861SED
862OBJEXT
863EXEEXT
864ac_ct_CC
865CPPFLAGS
866LDFLAGS
867CFLAGS
868CC
869host_os
870host_vendor
871host_cpu
872host
873build_os
874build_vendor
875build_cpu
876build
877LIBTOOL
878target_alias
879host_alias
880build_alias
881LIBS
882ECHO_T
883ECHO_N
884ECHO_C
885DEFS
886mandir
887localedir
888libdir
889psdir
890pdfdir
891dvidir
892htmldir
893infodir
894docdir
895oldincludedir
896includedir
897localstatedir
898sharedstatedir
899sysconfdir
900datadir
901datarootdir
902libexecdir
903sbindir
904bindir
905program_transform_name
906prefix
907exec_prefix
908PACKAGE_URL
909PACKAGE_BUGREPORT
910PACKAGE_STRING
911PACKAGE_VERSION
912PACKAGE_TARNAME
913PACKAGE_NAME
914PATH_SEPARATOR
915SHELL'
916ac_subst_files=''
917ac_user_opts='
918enable_option_checking
919enable_static
920enable_shared
921with_pic
922enable_fast_install
923with_gnu_ld
924enable_libtool_lock
925with_frameworks
926with_apr
927enable_rpath
928with_libiconv_prefix
929enable_javascript
930'
931 ac_precious_vars='build_alias
932host_alias
933target_alias
934CC
935CFLAGS
936LDFLAGS
937LIBS
938CPPFLAGS
939CPP
940PKG_CONFIG
941CXX
942CXXFLAGS
943CCC
944CXXCPP
945OBJCXX
946OBJCXXFLAGS
947YACC
948YFLAGS
949GPERF
950WEBKIT_CFLAGS
951WEBKIT_LIBS
952LIBFFI_CFLAGS
953LIBFFI_LIBS'
954
955
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
959ac_unrecognized_opts=
960ac_unrecognized_sep=
961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
977
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
983# (The list follows the same order as the GNU Coding Standards.)
984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
992includedir='${prefix}/include'
993oldincludedir='/usr/include'
994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
1003
1004ac_prev=
1005ac_dashdash=
1006for ac_option
1007do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"enable_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1083
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093"enable_$ac_useropt"
1094"*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=\$ac_optarg ;;
1099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1228
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297"with_$ac_useropt"
1298"*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=\$ac_optarg ;;
1303
1304 -without-* | --without-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error "invalid package name: $ac_useropt"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1312 *"
1313"with_$ac_useropt"
1314"*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval with_$ac_useropt=no ;;
1319
1320 --x)
1321 # Obsolete; use --with-x.
1322 with_x=yes ;;
1323
1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325 | --x-incl | --x-inc | --x-in | --x-i)
1326 ac_prev=x_includes ;;
1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329 x_includes=$ac_optarg ;;
1330
1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333 ac_prev=x_libraries ;;
1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336 x_libraries=$ac_optarg ;;
1337
1338 -*) as_fn_error "unrecognized option: \`$ac_option'
1339Try \`$0 --help' for more information."
1340 ;;
1341
1342 *=*)
1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344 # Reject names that are not valid shell variable names.
1345 case $ac_envvar in #(
1346 '' | [0-9]* | *[!_$as_cr_alnum]* )
1347 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1348 esac
1349 eval $ac_envvar=\$ac_optarg
1350 export $ac_envvar ;;
1351
1352 *)
1353 # FIXME: should be removed in autoconf 3.0.
1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 ;;
1359
1360 esac
1361done
1362
1363if test -n "$ac_prev"; then
1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365 as_fn_error "missing argument to $ac_option"
1366fi
1367
1368if test -n "$ac_unrecognized_opts"; then
1369 case $enable_option_checking in
1370 no) ;;
1371 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 esac
1374fi
1375
1376# Check all directory arguments for consistency.
1377for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1381do
1382 eval ac_val=\$$ac_var
1383 # Remove trailing slashes.
1384 case $ac_val in
1385 */ )
1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\$ac_val;;
1388 esac
1389 # Be sure to have absolute directory names.
1390 case $ac_val in
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393 esac
1394 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1395done
1396
1397# There might be people who depend on the old broken behavior: `$host'
1398# used to hold the argument of --host etc.
1399# FIXME: To remove some day.
1400build=$build_alias
1401host=$host_alias
1402target=$target_alias
1403
1404# FIXME: To remove some day.
1405if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1409 If a cross compiler is detected then cross compile mode will be used." >&2
1410 elif test "x$build_alias" != "x$host_alias"; then
1411 cross_compiling=yes
1412 fi
1413fi
1414
1415ac_tool_prefix=
1416test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417
1418test "$silent" = yes && exec 6>/dev/null
1419
1420
1421ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422ac_ls_di=`ls -di .` &&
1423ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error "working directory cannot be determined"
1425test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error "pwd does not report name of working directory"
1427
1428
1429# Find the source files, if location was not specified.
1430if test -z "$srcdir"; then
1431 ac_srcdir_defaulted=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir=`$as_dirname -- "$as_myself" ||
1434$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438$as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\/\)[^/].*/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)$/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\).*/{
1452 s//\1/
1453 q
1454 }
1455 s/.*/./; q'`
1456 srcdir=$ac_confdir
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 srcdir=..
1459 fi
1460else
1461 ac_srcdir_defaulted=no
1462fi
1463if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1466fi
1467ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468ac_abs_confdir=`(
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1470 pwd)`
1471# When building in place, set srcdir=.
1472if test "$ac_abs_confdir" = "$ac_pwd"; then
1473 srcdir=.
1474fi
1475# Remove unnecessary trailing slashes from srcdir.
1476# Double slashes in file names in object file debugging info
1477# mess up M-x gdb in Emacs.
1478case $srcdir in
1479*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480esac
1481for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486done
1487
1488#
1489# Report the --help message.
1490#
1491if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1494 cat <<_ACEOF
1495\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1496
1497Usage: $0 [OPTION]... [VAR=VALUE]...
1498
1499To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500VAR=VALUE. See below for descriptions of some of the useful variables.
1501
1502Defaults for the options are specified in brackets.
1503
1504Configuration:
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514
1515Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1519 [PREFIX]
1520
1521By default, \`make install' will install all the files in
1522\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524for instance \`--prefix=\$HOME'.
1525
1526For better control, use the options below.
1527
1528Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548_ACEOF
1549
1550 cat <<\_ACEOF
1551
1552System types:
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555_ACEOF
1556fi
1557
1558if test -n "$ac_init_help"; then
1559 case $ac_init_help in
1560 short | recursive ) echo "Configuration of Cycript 0.9:";;
1561 esac
1562 cat <<\_ACEOF
1563
1564Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-static[=PKGS] build static libraries [default=no]
1569 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --disable-rpath do not hardcode runtime library paths
1574 --enable-javascript[=ENGINE]
1575 Enable the JavaScript runtime (currently the only
1576 available option for ENGINE is JavaScriptCore)
1577 [default=yes]
1578 --disable-javascript Disable the JavaScript runtime
1579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1587 path for frameworks with -F
1588 --with-apr=PATH prefix for installed APR or the full path to
1589 apr-config
1590 --with-gnu-ld assume the C compiler uses GNU ld default=no
1591 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1592 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1593
1594Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CPP C preprocessor
1603 PKG_CONFIG path to pkg-config utility
1604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
1606 CXXCPP C++ preprocessor
1607 OBJCXX Objective C++ compiler command
1608 OBJCXXFLAGS Objective C++ compiler flags
1609 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1610 the first program found out of: `bison -y', `byacc', `yacc'.
1611 YFLAGS The list of arguments that will be passed by default to $YACC.
1612 This script will default YFLAGS to the empty string to avoid a
1613 default value of `-d' given by some make applications.
1614 GPERF perfect hash function generator
1615 WEBKIT_CFLAGS
1616 C compiler flags for WEBKIT, overriding pkg-config
1617 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1618 LIBFFI_CFLAGS
1619 C compiler flags for LIBFFI, overriding pkg-config
1620 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
1625Report bugs to <saurik@saurik.com>.
1626Cycript home page: <http://www.cycript.org/>.
1627_ACEOF
1628ac_status=$?
1629fi
1630
1631if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
1637 ac_builddir=.
1638
1639case "$ac_dir" in
1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641*)
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649esac
1650ac_abs_top_builddir=$ac_pwd
1651ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652# for backward compatibility:
1653ac_top_builddir=$ac_top_build_prefix
1654
1655case $srcdir in
1656 .) # We are building in place.
1657 ac_srcdir=.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668esac
1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1679 else
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1683 done
1684fi
1685
1686test -n "$ac_init_help" && exit $ac_status
1687if $ac_init_version; then
1688 cat <<\_ACEOF
1689Cycript configure 0.9
1690generated by GNU Autoconf 2.65
1691
1692Copyright (C) 2009 Free Software Foundation, Inc.
1693This configure script is free software; the Free Software Foundation
1694gives unlimited permission to copy, distribute and modify it.
1695_ACEOF
1696 exit
1697fi
1698
1699## ------------------------ ##
1700## Autoconf initialization. ##
1701## ------------------------ ##
1702
1703# ac_fn_c_try_compile LINENO
1704# --------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_compile ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735fi
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_compile
1740
1741# ac_fn_c_try_link LINENO
1742# -----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_link ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 $as_test_x conftest$ac_exeext
1769 }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776fi
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_link
1786
1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788# -------------------------------------------------------
1789# Tests whether HEADER exists and can be compiled using the include files in
1790# INCLUDES, setting the cache variable VAR accordingly.
1791ac_fn_c_check_header_compile ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806else
1807 eval "$3=no"
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815
1816} # ac_fn_c_check_header_compile
1817
1818# ac_fn_c_try_cpp LINENO
1819# ----------------------
1820# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821ac_fn_c_try_cpp ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_cpp conftest.$ac_ext"
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } >/dev/null && {
1840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849fi
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 as_fn_set_status $ac_retval
1852
1853} # ac_fn_c_try_cpp
1854
1855# ac_fn_c_try_run LINENO
1856# ----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858# that executables *can* be run.
1859ac_fn_c_try_run ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 as_fn_set_status $ac_retval
1894
1895} # ac_fn_c_try_run
1896
1897# ac_fn_c_check_func LINENO FUNC VAR
1898# ----------------------------------
1899# Tests whether FUNC exists, setting the cache variable VAR accordingly
1900ac_fn_c_check_func ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 $as_echo_n "(cached) " >&6
1907else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1912#define $2 innocuous_$2
1913
1914/* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char $2 (); below.
1916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917 <limits.h> exists even on freestanding compilers. */
1918
1919#ifdef __STDC__
1920# include <limits.h>
1921#else
1922# include <assert.h>
1923#endif
1924
1925#undef $2
1926
1927/* Override any GCC internal prototype to avoid an error.
1928 Use char because int might match the return type of a GCC
1929 builtin and then its argument prototype would still apply. */
1930#ifdef __cplusplus
1931extern "C"
1932#endif
1933char $2 ();
1934/* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937#if defined __stub_$2 || defined __stub___$2
1938choke me
1939#endif
1940
1941int
1942main ()
1943{
1944return $2 ();
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951else
1952 eval "$3=no"
1953fi
1954rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962} # ac_fn_c_check_func
1963
1964# ac_fn_cxx_try_compile LINENO
1965# ----------------------------
1966# Try to compile conftest.$ac_ext, and return whether this succeeded.
1967ac_fn_cxx_try_compile ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext
1971 if { { ac_try="$ac_compile"
1972case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975esac
1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977$as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_compile") 2>conftest.err
1979 ac_status=$?
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1984 fi
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_cxx_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest.$ac_objext; then :
1990 ac_retval=0
1991else
1992 $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996fi
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1998 as_fn_set_status $ac_retval
1999
2000} # ac_fn_cxx_try_compile
2001
2002# ac_fn_cxx_try_cpp LINENO
2003# ------------------------
2004# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2005ac_fn_cxx_try_cpp ()
2006{
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if { { ac_try="$ac_cpp conftest.$ac_ext"
2009case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012esac
2013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014$as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2021 fi
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } >/dev/null && {
2024 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2026 }; then :
2027 ac_retval=0
2028else
2029 $as_echo "$as_me: failed program was:" >&5
2030sed 's/^/| /' conftest.$ac_ext >&5
2031
2032 ac_retval=1
2033fi
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 as_fn_set_status $ac_retval
2036
2037} # ac_fn_cxx_try_cpp
2038
2039# ac_fn_cxx_try_link LINENO
2040# -------------------------
2041# Try to link conftest.$ac_ext, and return whether this succeeded.
2042ac_fn_cxx_try_link ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 rm -f conftest.$ac_objext conftest$ac_exeext
2046 if { { ac_try="$ac_link"
2047case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050esac
2051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052$as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2059 fi
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest$ac_exeext && {
2065 test "$cross_compiling" = yes ||
2066 $as_test_x conftest$ac_exeext
2067 }; then :
2068 ac_retval=0
2069else
2070 $as_echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_retval=1
2074fi
2075 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2076 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2077 # interfere with the next link command; also delete a directory that is
2078 # left behind by Apple's compiler. We do this before executing the actions.
2079 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 as_fn_set_status $ac_retval
2082
2083} # ac_fn_cxx_try_link
2084
2085# ac_fn_objcxx_try_compile LINENO
2086# -------------------------------
2087# Try to compile conftest.$ac_ext, and return whether this succeeded.
2088ac_fn_objcxx_try_compile ()
2089{
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 rm -f conftest.$ac_objext
2092 if { { ac_try="$ac_compile"
2093case "(($ac_try" in
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2096esac
2097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2098$as_echo "$ac_try_echo"; } >&5
2099 (eval "$ac_compile") 2>conftest.err
2100 ac_status=$?
2101 if test -s conftest.err; then
2102 grep -v '^ *+' conftest.err >conftest.er1
2103 cat conftest.er1 >&5
2104 mv -f conftest.er1 conftest.err
2105 fi
2106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 test $ac_status = 0; } && {
2108 test -z "$ac_objcxx_werror_flag" ||
2109 test ! -s conftest.err
2110 } && test -s conftest.$ac_objext; then :
2111 ac_retval=0
2112else
2113 $as_echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_retval=1
2117fi
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 as_fn_set_status $ac_retval
2120
2121} # ac_fn_objcxx_try_compile
2122
2123# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2124# ---------------------------------------------------------
2125# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2126# the include files in INCLUDES and setting the cache variable VAR
2127# accordingly.
2128ac_fn_cxx_check_header_mongrel ()
2129{
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133$as_echo_n "checking for $2... " >&6; }
2134if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135 $as_echo_n "(cached) " >&6
2136fi
2137eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140else
2141 # Is the header compilable?
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2143$as_echo_n "checking $2 usability... " >&6; }
2144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146$4
2147#include <$2>
2148_ACEOF
2149if ac_fn_cxx_try_compile "$LINENO"; then :
2150 ac_header_compiler=yes
2151else
2152 ac_header_compiler=no
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2156$as_echo "$ac_header_compiler" >&6; }
2157
2158# Is the header present?
2159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2160$as_echo_n "checking $2 presence... " >&6; }
2161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h. */
2163#include <$2>
2164_ACEOF
2165if ac_fn_cxx_try_cpp "$LINENO"; then :
2166 ac_header_preproc=yes
2167else
2168 ac_header_preproc=no
2169fi
2170rm -f conftest.err conftest.$ac_ext
2171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172$as_echo "$ac_header_preproc" >&6; }
2173
2174# So? What about this header?
2175case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2176 yes:no: )
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2178$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 ;;
2182 no:yes:* )
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2184$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2186$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2188$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2190$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193( cat <<\_ASBOX
2194## -------------------------------- ##
2195## Report this to saurik@saurik.com ##
2196## -------------------------------- ##
2197_ASBOX
2198 ) | sed "s/^/$as_me: WARNING: /" >&2
2199 ;;
2200esac
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202$as_echo_n "checking for $2... " >&6; }
2203if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2204 $as_echo_n "(cached) " >&6
2205else
2206 eval "$3=\$ac_header_compiler"
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211fi
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213
2214} # ac_fn_cxx_check_header_mongrel
2215
2216# ac_fn_objcxx_try_link LINENO
2217# ----------------------------
2218# Try to link conftest.$ac_ext, and return whether this succeeded.
2219ac_fn_objcxx_try_link ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2224case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229$as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2236 fi
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_objcxx_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
2243 $as_test_x conftest$ac_exeext
2244 }; then :
2245 ac_retval=0
2246else
2247 $as_echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_retval=1
2251fi
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 as_fn_set_status $ac_retval
2259
2260} # ac_fn_objcxx_try_link
2261cat >config.log <<_ACEOF
2262This file contains any messages produced by compilers while
2263running configure, to aid debugging if configure makes a mistake.
2264
2265It was created by Cycript $as_me 0.9, which was
2266generated by GNU Autoconf 2.65. Invocation command line was
2267
2268 $ $0 $@
2269
2270_ACEOF
2271exec 5>>config.log
2272{
2273cat <<_ASUNAME
2274## --------- ##
2275## Platform. ##
2276## --------- ##
2277
2278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283
2284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286
2287/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2288/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2291/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2292/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2293/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2294
2295_ASUNAME
2296
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 $as_echo "PATH: $as_dir"
2303 done
2304IFS=$as_save_IFS
2305
2306} >&5
2307
2308cat >&5 <<_ACEOF
2309
2310
2311## ----------- ##
2312## Core tests. ##
2313## ----------- ##
2314
2315_ACEOF
2316
2317
2318# Keep a trace of the command line.
2319# Strip out --no-create and --no-recursion so they do not pile up.
2320# Strip out --silent because we don't want to record it for future runs.
2321# Also quote any args containing shell meta-characters.
2322# Make two passes to allow for proper duplicate-argument suppression.
2323ac_configure_args=
2324ac_configure_args0=
2325ac_configure_args1=
2326ac_must_keep_next=false
2327for ac_pass in 1 2
2328do
2329 for ac_arg
2330 do
2331 case $ac_arg in
2332 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2334 | -silent | --silent | --silen | --sile | --sil)
2335 continue ;;
2336 *\'*)
2337 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2338 esac
2339 case $ac_pass in
2340 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2341 2)
2342 as_fn_append ac_configure_args1 " '$ac_arg'"
2343 if test $ac_must_keep_next = true; then
2344 ac_must_keep_next=false # Got value, back to normal.
2345 else
2346 case $ac_arg in
2347 *=* | --config-cache | -C | -disable-* | --disable-* \
2348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2350 | -with-* | --with-* | -without-* | --without-* | --x)
2351 case "$ac_configure_args0 " in
2352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2353 esac
2354 ;;
2355 -* ) ac_must_keep_next=true ;;
2356 esac
2357 fi
2358 as_fn_append ac_configure_args " '$ac_arg'"
2359 ;;
2360 esac
2361 done
2362done
2363{ ac_configure_args0=; unset ac_configure_args0;}
2364{ ac_configure_args1=; unset ac_configure_args1;}
2365
2366# When interrupted or exit'd, cleanup temporary files, and complete
2367# config.log. We remove comments because anyway the quotes in there
2368# would cause problems or look ugly.
2369# WARNING: Use '\'' to represent an apostrophe within the trap.
2370# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2371trap 'exit_status=$?
2372 # Save into config.log some information that might help in debugging.
2373 {
2374 echo
2375
2376 cat <<\_ASBOX
2377## ---------------- ##
2378## Cache variables. ##
2379## ---------------- ##
2380_ASBOX
2381 echo
2382 # The following way of writing the cache mishandles newlines in values,
2383(
2384 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in #(
2387 *${as_nl}*)
2388 case $ac_var in #(
2389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 esac
2392 case $ac_var in #(
2393 _ | IFS | as_nl) ;; #(
2394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395 *) { eval $ac_var=; unset $ac_var;} ;;
2396 esac ;;
2397 esac
2398 done
2399 (set) 2>&1 |
2400 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401 *${as_nl}ac_space=\ *)
2402 sed -n \
2403 "s/'\''/'\''\\\\'\'''\''/g;
2404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 ;; #(
2406 *)
2407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 ;;
2409 esac |
2410 sort
2411)
2412 echo
2413
2414 cat <<\_ASBOX
2415## ----------------- ##
2416## Output variables. ##
2417## ----------------- ##
2418_ASBOX
2419 echo
2420 for ac_var in $ac_subst_vars
2421 do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2429
2430 if test -n "$ac_subst_files"; then
2431 cat <<\_ASBOX
2432## ------------------- ##
2433## File substitutions. ##
2434## ------------------- ##
2435_ASBOX
2436 echo
2437 for ac_var in $ac_subst_files
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446 fi
2447
2448 if test -s confdefs.h; then
2449 cat <<\_ASBOX
2450## ----------- ##
2451## confdefs.h. ##
2452## ----------- ##
2453_ASBOX
2454 echo
2455 cat confdefs.h
2456 echo
2457 fi
2458 test "$ac_signal" != 0 &&
2459 $as_echo "$as_me: caught signal $ac_signal"
2460 $as_echo "$as_me: exit $exit_status"
2461 } >&5
2462 rm -f core *.core core.conftest.* &&
2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2464 exit $exit_status
2465' 0
2466for ac_signal in 1 2 13 15; do
2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2468done
2469ac_signal=0
2470
2471# confdefs.h avoids OS command line length limits that DEFS can exceed.
2472rm -f -r conftest* confdefs.h
2473
2474$as_echo "/* confdefs.h */" > confdefs.h
2475
2476# Predefined preprocessor variables.
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_NAME "$PACKAGE_NAME"
2480_ACEOF
2481
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484_ACEOF
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_VERSION "$PACKAGE_VERSION"
2488_ACEOF
2489
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_STRING "$PACKAGE_STRING"
2492_ACEOF
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_URL "$PACKAGE_URL"
2500_ACEOF
2501
2502
2503# Let the site file select an alternate cache file if it wants to.
2504# Prefer an explicitly selected file to automatically selected ones.
2505ac_site_file1=NONE
2506ac_site_file2=NONE
2507if test -n "$CONFIG_SITE"; then
2508 ac_site_file1=$CONFIG_SITE
2509elif test "x$prefix" != xNONE; then
2510 ac_site_file1=$prefix/share/config.site
2511 ac_site_file2=$prefix/etc/config.site
2512else
2513 ac_site_file1=$ac_default_prefix/share/config.site
2514 ac_site_file2=$ac_default_prefix/etc/config.site
2515fi
2516for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2517do
2518 test "x$ac_site_file" = xNONE && continue
2519 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2521$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2522 sed 's/^/| /' "$ac_site_file" >&5
2523 . "$ac_site_file"
2524 fi
2525done
2526
2527if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special files
2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2530 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532$as_echo "$as_me: loading cache $cache_file" >&6;}
2533 case $cache_file in
2534 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535 *) . "./$cache_file";;
2536 esac
2537 fi
2538else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540$as_echo "$as_me: creating cache $cache_file" >&6;}
2541 >$cache_file
2542fi
2543
2544# Check that the precious variables saved in the cache have kept the same
2545# value.
2546ac_cache_corrupted=false
2547for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2562 *)
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2592 fi
2593done
2594if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2600fi
2601## -------------------- ##
2602## Main body of script. ##
2603## -------------------- ##
2604
2605ac_ext=c
2606ac_cpp='$CPP $CPPFLAGS'
2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611
2612
2613ac_aux_dir=
2614for ac_dir in . "$srcdir"/.; do
2615 for ac_t in install-sh install.sh shtool; do
2616 if test -f "$ac_dir/$ac_t"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/$ac_t -c"
2619 break 2
2620 fi
2621 done
2622done
2623if test -z "$ac_aux_dir"; then
2624 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2625fi
2626
2627# These three variables are undocumented and unsupported,
2628# and are intended to be withdrawn in a future Autoconf release.
2629# They can cause serious problems if a builder's source tree is in a directory
2630# whose full name contains unusual characters.
2631ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634
2635
2636case `pwd` in
2637 *\ * | *\ *)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2639$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2640esac
2641
2642
2643
2644macro_version='2.2.6b'
2645macro_revision='1.3017'
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659ltmain="$ac_aux_dir/ltmain.sh"
2660
2661# Make sure we can run config.sub.
2662$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2663 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2664
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2666$as_echo_n "checking build system type... " >&6; }
2667if test "${ac_cv_build+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 ac_build_alias=$build_alias
2671test "x$ac_build_alias" = x &&
2672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2673test "x$ac_build_alias" = x &&
2674 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2675ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2676 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2677
2678fi
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2680$as_echo "$ac_cv_build" >&6; }
2681case $ac_cv_build in
2682*-*-*) ;;
2683*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2684esac
2685build=$ac_cv_build
2686ac_save_IFS=$IFS; IFS='-'
2687set x $ac_cv_build
2688shift
2689build_cpu=$1
2690build_vendor=$2
2691shift; shift
2692# Remember, the first character of IFS is used to create $*,
2693# except with old shells:
2694build_os=$*
2695IFS=$ac_save_IFS
2696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2697
2698
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2700$as_echo_n "checking host system type... " >&6; }
2701if test "${ac_cv_host+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703else
2704 if test "x$host_alias" = x; then
2705 ac_cv_host=$ac_cv_build
2706else
2707 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2708 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2709fi
2710
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2713$as_echo "$ac_cv_host" >&6; }
2714case $ac_cv_host in
2715*-*-*) ;;
2716*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2717esac
2718host=$ac_cv_host
2719ac_save_IFS=$IFS; IFS='-'
2720set x $ac_cv_host
2721shift
2722host_cpu=$1
2723host_vendor=$2
2724shift; shift
2725# Remember, the first character of IFS is used to create $*,
2726# except with old shells:
2727host_os=$*
2728IFS=$ac_save_IFS
2729case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2730
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2739set dummy ${ac_tool_prefix}gcc; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if test "${ac_cv_prog_CC+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760 done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775fi
2776if test -z "$ac_cv_prog_CC"; then
2777 ac_ct_CC=$CC
2778 # Extract the first word of "gcc", so it can be a program name with args.
2779set dummy gcc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
2782if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_ac_ct_CC="gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800 done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808$as_echo "$ac_ct_CC" >&6; }
2809else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
2812fi
2813
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818yes:)
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823 CC=$ac_ct_CC
2824 fi
2825else
2826 CC="$ac_cv_prog_CC"
2827fi
2828
2829if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832set dummy ${ac_tool_prefix}cc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if test "${ac_cv_prog_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853 done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858CC=$ac_cv_prog_CC
2859if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861$as_echo "$CC" >&6; }
2862else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868 fi
2869fi
2870if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872set dummy cc; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
2881 ac_prog_rejected=no
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected=yes
2891 continue
2892 fi
2893 ac_cv_prog_CC="cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897done
2898 done
2899IFS=$as_save_IFS
2900
2901if test $ac_prog_rejected = yes; then
2902 # We found a bogon in the path, so make sure we never use it.
2903 set dummy $ac_cv_prog_CC
2904 shift
2905 if test $# != 0; then
2906 # We chose a different compiler from the bogus one.
2907 # However, it has the same basename, so the bogon will be chosen
2908 # first if we set CC to just the basename; use the full file name.
2909 shift
2910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2911 fi
2912fi
2913fi
2914fi
2915CC=$ac_cv_prog_CC
2916if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918$as_echo "$CC" >&6; }
2919else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925fi
2926if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in cl.exe
2929 do
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951done
2952 done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957CC=$ac_cv_prog_CC
2958if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960$as_echo "$CC" >&6; }
2961else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967 test -n "$CC" && break
2968 done
2969fi
2970if test -z "$CC"; then
2971 ac_ct_CC=$CC
2972 for ac_prog in cl.exe
2973do
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975set dummy $ac_prog; ac_word=$2
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977$as_echo_n "checking for $ac_word... " >&6; }
2978if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995done
2996 done
2997IFS=$as_save_IFS
2998
2999fi
3000fi
3001ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004$as_echo "$ac_ct_CC" >&6; }
3005else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008fi
3009
3010
3011 test -n "$ac_ct_CC" && break
3012done
3013
3014 if test "x$ac_ct_CC" = x; then
3015 CC=""
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018yes:)
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021ac_tool_warned=yes ;;
3022esac
3023 CC=$ac_ct_CC
3024 fi
3025fi
3026
3027fi
3028
3029
3030test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032as_fn_error "no acceptable C compiler found in \$PATH
3033See \`config.log' for more details." "$LINENO" 5; }
3034
3035# Provide some information about the compiler.
3036$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3037set X $ac_compile
3038ac_compiler=$2
3039for ac_option in --version -v -V -qversion; do
3040 { { ac_try="$ac_compiler $ac_option >&5"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 ac_status=$?
3049 if test -s conftest.err; then
3050 sed '10a\
3051... rest of stderr output deleted ...
3052 10q' conftest.err >conftest.er1
3053 cat conftest.er1 >&5
3054 fi
3055 rm -f conftest.er1 conftest.err
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058done
3059
3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062
3063int
3064main ()
3065{
3066
3067 ;
3068 return 0;
3069}
3070_ACEOF
3071ac_clean_files_save=$ac_clean_files
3072ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073# Try to create an executable without -o first, disregard a.out.
3074# It will help us diagnose broken compilers, and finding out an intuition
3075# of exeext.
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3077$as_echo_n "checking whether the C compiler works... " >&6; }
3078ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3079
3080# The possible output files:
3081ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3082
3083ac_rmfiles=
3084for ac_file in $ac_files
3085do
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089 esac
3090done
3091rm -f $ac_rmfiles
3092
3093if { { ac_try="$ac_link_default"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link_default") 2>&5
3101 ac_status=$?
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106# in a Makefile. We should not override ac_cv_exeext if it was cached,
3107# so that the user can short-circuit this test for compilers unknown to
3108# Autoconf.
3109for ac_file in $ac_files ''
3110do
3111 test -f "$ac_file" || continue
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3114 ;;
3115 [ab].out )
3116 # We found the default executable, but exeext='' is most
3117 # certainly right.
3118 break;;
3119 *.* )
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 then :; else
3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 fi
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3128 # actually working.
3129 break;;
3130 * )
3131 break;;
3132 esac
3133done
3134test "$ac_cv_exeext" = no && ac_cv_exeext=
3135
3136else
3137 ac_file=''
3138fi
3139if test -z "$ac_file"; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142$as_echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147{ as_fn_set_status 77
3148as_fn_error "C compiler cannot create executables
3149See \`config.log' for more details." "$LINENO" 5; }; }
3150else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152$as_echo "yes" >&6; }
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3155$as_echo_n "checking for C compiler default output file name... " >&6; }
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3157$as_echo "$ac_file" >&6; }
3158ac_exeext=$ac_cv_exeext
3159
3160rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3161ac_clean_files=$ac_clean_files_save
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3163$as_echo_n "checking for suffix of executables... " >&6; }
3164if { { ac_try="$ac_link"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177# work properly (i.e., refer to `conftest.exe'), while it won't with
3178# `rm'.
3179for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 break;;
3185 * ) break;;
3186 esac
3187done
3188else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191as_fn_error "cannot compute suffix of executables: cannot compile and link
3192See \`config.log' for more details." "$LINENO" 5; }
3193fi
3194rm -f conftest conftest$ac_cv_exeext
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3196$as_echo "$ac_cv_exeext" >&6; }
3197
3198rm -f conftest.$ac_ext
3199EXEEXT=$ac_cv_exeext
3200ac_exeext=$EXEEXT
3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h. */
3203#include <stdio.h>
3204int
3205main ()
3206{
3207FILE *f = fopen ("conftest.out", "w");
3208 return ferror (f) || fclose (f) != 0;
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214ac_clean_files="$ac_clean_files conftest.out"
3215# Check that the compiler produces executables we can run. If not, either
3216# the compiler is broken, or we cross compile.
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3218$as_echo_n "checking whether we are cross compiling... " >&6; }
3219if test "$cross_compiling" != yes; then
3220 { { ac_try="$ac_link"
3221case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_link") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 if { ac_try='./conftest$ac_cv_exeext'
3232 { { case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_try") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; }; then
3242 cross_compiling=no
3243 else
3244 if test "$cross_compiling" = maybe; then
3245 cross_compiling=yes
3246 else
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249as_fn_error "cannot run C compiled programs.
3250If you meant to cross compile, use \`--host'.
3251See \`config.log' for more details." "$LINENO" 5; }
3252 fi
3253 fi
3254fi
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3256$as_echo "$cross_compiling" >&6; }
3257
3258rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3259ac_clean_files=$ac_clean_files_save
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3261$as_echo_n "checking for suffix of object files... " >&6; }
3262if test "${ac_cv_objext+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264else
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h. */
3267
3268int
3269main ()
3270{
3271
3272 ;
3273 return 0;
3274}
3275_ACEOF
3276rm -f conftest.o conftest.obj
3277if { { ac_try="$ac_compile"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_compile") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 for ac_file in conftest.o conftest.obj conftest.*; do
3289 test -f "$ac_file" || continue;
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293 break;;
3294 esac
3295done
3296else
3297 $as_echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302as_fn_error "cannot compute suffix of object files: cannot compile
3303See \`config.log' for more details." "$LINENO" 5; }
3304fi
3305rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3308$as_echo "$ac_cv_objext" >&6; }
3309OBJEXT=$ac_cv_objext
3310ac_objext=$OBJEXT
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3313if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315else
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h. */
3318
3319int
3320main ()
3321{
3322#ifndef __GNUC__
3323 choke me
3324#endif
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_compiler_gnu=yes
3332else
3333 ac_compiler_gnu=no
3334fi
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336ac_cv_c_compiler_gnu=$ac_compiler_gnu
3337
3338fi
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3340$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3341if test $ac_compiler_gnu = yes; then
3342 GCC=yes
3343else
3344 GCC=
3345fi
3346ac_test_CFLAGS=${CFLAGS+set}
3347ac_save_CFLAGS=$CFLAGS
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3349$as_echo_n "checking whether $CC accepts -g... " >&6; }
3350if test "${ac_cv_prog_cc_g+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352else
3353 ac_save_c_werror_flag=$ac_c_werror_flag
3354 ac_c_werror_flag=yes
3355 ac_cv_prog_cc_g=no
3356 CFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359
3360int
3361main ()
3362{
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_g=yes
3370else
3371 CFLAGS=""
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h. */
3374
3375int
3376main ()
3377{
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383if ac_fn_c_try_compile "$LINENO"; then :
3384
3385else
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3387 CFLAGS="-g"
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h. */
3390
3391int
3392main ()
3393{
3394
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399if ac_fn_c_try_compile "$LINENO"; then :
3400 ac_cv_prog_cc_g=yes
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405fi
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_c_werror_flag=$ac_save_c_werror_flag
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3410$as_echo "$ac_cv_prog_cc_g" >&6; }
3411if test "$ac_test_CFLAGS" = set; then
3412 CFLAGS=$ac_save_CFLAGS
3413elif test $ac_cv_prog_cc_g = yes; then
3414 if test "$GCC" = yes; then
3415 CFLAGS="-g -O2"
3416 else
3417 CFLAGS="-g"
3418 fi
3419else
3420 if test "$GCC" = yes; then
3421 CFLAGS="-O2"
3422 else
3423 CFLAGS=
3424 fi
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3428if test "${ac_cv_prog_cc_c89+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3430else
3431 ac_cv_prog_cc_c89=no
3432ac_save_CC=$CC
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h. */
3435#include <stdarg.h>
3436#include <stdio.h>
3437#include <sys/types.h>
3438#include <sys/stat.h>
3439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440struct buf { int x; };
3441FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442static char *e (p, i)
3443 char **p;
3444 int i;
3445{
3446 return p[i];
3447}
3448static char *f (char * (*g) (char **, int), char **p, ...)
3449{
3450 char *s;
3451 va_list v;
3452 va_start (v,p);
3453 s = g (p, va_arg (v,int));
3454 va_end (v);
3455 return s;
3456}
3457
3458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std. */
3465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3466
3467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3468 inside strings and character constants. */
3469#define FOO(x) 'x'
3470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3471
3472int test (int i, double x);
3473struct s1 {int (*f) (int a);};
3474struct s2 {int (*f) (double a);};
3475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476int argc;
3477char **argv;
3478int
3479main ()
3480{
3481return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3482 ;
3483 return 0;
3484}
3485_ACEOF
3486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488do
3489 CC="$ac_save_CC $ac_arg"
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_cv_prog_cc_c89=$ac_arg
3492fi
3493rm -f core conftest.err conftest.$ac_objext
3494 test "x$ac_cv_prog_cc_c89" != "xno" && break
3495done
3496rm -f conftest.$ac_ext
3497CC=$ac_save_CC
3498
3499fi
3500# AC_CACHE_VAL
3501case "x$ac_cv_prog_cc_c89" in
3502 x)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3504$as_echo "none needed" >&6; } ;;
3505 xno)
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3507$as_echo "unsupported" >&6; } ;;
3508 *)
3509 CC="$CC $ac_cv_prog_cc_c89"
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3512esac
3513if test "x$ac_cv_prog_cc_c89" != xno; then :
3514
3515fi
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3524$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3525if test "${ac_cv_path_SED+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3527else
3528 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3529 for ac_i in 1 2 3 4 5 6 7; do
3530 ac_script="$ac_script$as_nl$ac_script"
3531 done
3532 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3533 { ac_script=; unset ac_script;}
3534 if test -z "$SED"; then
3535 ac_path_SED_found=false
3536 # Loop through the user's path and test for each of PROGNAME-LIST
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_prog in sed gsed; do
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3545 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3546# Check for GNU ac_path_SED and select it if it is found.
3547 # Check for GNU $ac_path_SED
3548case `"$ac_path_SED" --version 2>&1` in
3549*GNU*)
3550 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3551*)
3552 ac_count=0
3553 $as_echo_n 0123456789 >"conftest.in"
3554 while :
3555 do
3556 cat "conftest.in" "conftest.in" >"conftest.tmp"
3557 mv "conftest.tmp" "conftest.in"
3558 cp "conftest.in" "conftest.nl"
3559 $as_echo '' >> "conftest.nl"
3560 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3562 as_fn_arith $ac_count + 1 && ac_count=$as_val
3563 if test $ac_count -gt ${ac_path_SED_max-0}; then
3564 # Best one so far, save it but keep looking for a better one
3565 ac_cv_path_SED="$ac_path_SED"
3566 ac_path_SED_max=$ac_count
3567 fi
3568 # 10*(2^10) chars as input seems more than enough
3569 test $ac_count -gt 10 && break
3570 done
3571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3572esac
3573
3574 $ac_path_SED_found && break 3
3575 done
3576 done
3577 done
3578IFS=$as_save_IFS
3579 if test -z "$ac_cv_path_SED"; then
3580 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3581 fi
3582else
3583 ac_cv_path_SED=$SED
3584fi
3585
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3588$as_echo "$ac_cv_path_SED" >&6; }
3589 SED="$ac_cv_path_SED"
3590 rm -f conftest.sed
3591
3592test -z "$SED" && SED=sed
3593Xsed="$SED -e 1s/^X//"
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3606$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3607if test "${ac_cv_path_GREP+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609else
3610 if test -z "$GREP"; then
3611 ac_path_GREP_found=false
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3615do
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_prog in grep ggrep; do
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3621 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3622# Check for GNU ac_path_GREP and select it if it is found.
3623 # Check for GNU $ac_path_GREP
3624case `"$ac_path_GREP" --version 2>&1` in
3625*GNU*)
3626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3627*)
3628 ac_count=0
3629 $as_echo_n 0123456789 >"conftest.in"
3630 while :
3631 do
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
3635 $as_echo 'GREP' >> "conftest.nl"
3636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3638 as_fn_arith $ac_count + 1 && ac_count=$as_val
3639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_GREP="$ac_path_GREP"
3642 ac_path_GREP_max=$ac_count
3643 fi
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3646 done
3647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3648esac
3649
3650 $ac_path_GREP_found && break 3
3651 done
3652 done
3653 done
3654IFS=$as_save_IFS
3655 if test -z "$ac_cv_path_GREP"; then
3656 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3657 fi
3658else
3659 ac_cv_path_GREP=$GREP
3660fi
3661
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3664$as_echo "$ac_cv_path_GREP" >&6; }
3665 GREP="$ac_cv_path_GREP"
3666
3667
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3669$as_echo_n "checking for egrep... " >&6; }
3670if test "${ac_cv_path_EGREP+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672else
3673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3674 then ac_cv_path_EGREP="$GREP -E"
3675 else
3676 if test -z "$EGREP"; then
3677 ac_path_EGREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_prog in egrep; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3688# Check for GNU ac_path_EGREP and select it if it is found.
3689 # Check for GNU $ac_path_EGREP
3690case `"$ac_path_EGREP" --version 2>&1` in
3691*GNU*)
3692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3693*)
3694 ac_count=0
3695 $as_echo_n 0123456789 >"conftest.in"
3696 while :
3697 do
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 $as_echo 'EGREP' >> "conftest.nl"
3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 as_fn_arith $ac_count + 1 && ac_count=$as_val
3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_EGREP="$ac_path_EGREP"
3708 ac_path_EGREP_max=$ac_count
3709 fi
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3712 done
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714esac
3715
3716 $ac_path_EGREP_found && break 3
3717 done
3718 done
3719 done
3720IFS=$as_save_IFS
3721 if test -z "$ac_cv_path_EGREP"; then
3722 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3723 fi
3724else
3725 ac_cv_path_EGREP=$EGREP
3726fi
3727
3728 fi
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3731$as_echo "$ac_cv_path_EGREP" >&6; }
3732 EGREP="$ac_cv_path_EGREP"
3733
3734
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3736$as_echo_n "checking for fgrep... " >&6; }
3737if test "${ac_cv_path_FGREP+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3741 then ac_cv_path_FGREP="$GREP -F"
3742 else
3743 if test -z "$FGREP"; then
3744 ac_path_FGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in fgrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3755# Check for GNU ac_path_FGREP and select it if it is found.
3756 # Check for GNU $ac_path_FGREP
3757case `"$ac_path_FGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3760*)
3761 ac_count=0
3762 $as_echo_n 0123456789 >"conftest.in"
3763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 $as_echo 'FGREP' >> "conftest.nl"
3769 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 as_fn_arith $ac_count + 1 && ac_count=$as_val
3772 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_FGREP="$ac_path_FGREP"
3775 ac_path_FGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
3783 $ac_path_FGREP_found && break 3
3784 done
3785 done
3786 done
3787IFS=$as_save_IFS
3788 if test -z "$ac_cv_path_FGREP"; then
3789 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3790 fi
3791else
3792 ac_cv_path_FGREP=$FGREP
3793fi
3794
3795 fi
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3798$as_echo "$ac_cv_path_FGREP" >&6; }
3799 FGREP="$ac_cv_path_FGREP"
3800
3801
3802test -z "$GREP" && GREP=grep
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822# Check whether --with-gnu-ld was given.
3823if test "${with_gnu_ld+set}" = set; then :
3824 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3825else
3826 with_gnu_ld=no
3827fi
3828
3829ac_prog=ld
3830if test "$GCC" = yes; then
3831 # Check if gcc -print-prog-name=ld gives a path.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3833$as_echo_n "checking for ld used by $CC... " >&6; }
3834 case $host in
3835 *-*-mingw*)
3836 # gcc leaves a trailing carriage return which upsets mingw
3837 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3838 *)
3839 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3840 esac
3841 case $ac_prog in
3842 # Accept absolute paths.
3843 [\\/]* | ?:[\\/]*)
3844 re_direlt='/[^/][^/]*/\.\./'
3845 # Canonicalize the pathname of ld
3846 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3847 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3848 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3849 done
3850 test -z "$LD" && LD="$ac_prog"
3851 ;;
3852 "")
3853 # If it fails, then pretend we aren't using GCC.
3854 ac_prog=ld
3855 ;;
3856 *)
3857 # If it is relative, then search for the first ld in PATH.
3858 with_gnu_ld=unknown
3859 ;;
3860 esac
3861elif test "$with_gnu_ld" = yes; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3863$as_echo_n "checking for GNU ld... " >&6; }
3864else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3866$as_echo_n "checking for non-GNU ld... " >&6; }
3867fi
3868if test "${lt_cv_path_LD+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3870else
3871 if test -z "$LD"; then
3872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3873 for ac_dir in $PATH; do
3874 IFS="$lt_save_ifs"
3875 test -z "$ac_dir" && ac_dir=.
3876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3877 lt_cv_path_LD="$ac_dir/$ac_prog"
3878 # Check to see if the program is GNU ld. I'd rather use --version,
3879 # but apparently some variants of GNU ld only accept -v.
3880 # Break only if it was the GNU/non-GNU ld that we prefer.
3881 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3882 *GNU* | *'with BFD'*)
3883 test "$with_gnu_ld" != no && break
3884 ;;
3885 *)
3886 test "$with_gnu_ld" != yes && break
3887 ;;
3888 esac
3889 fi
3890 done
3891 IFS="$lt_save_ifs"
3892else
3893 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3894fi
3895fi
3896
3897LD="$lt_cv_path_LD"
3898if test -n "$LD"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3900$as_echo "$LD" >&6; }
3901else
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
3904fi
3905test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3907$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3908if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910else
3911 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3912case `$LD -v 2>&1 </dev/null` in
3913*GNU* | *'with BFD'*)
3914 lt_cv_prog_gnu_ld=yes
3915 ;;
3916*)
3917 lt_cv_prog_gnu_ld=no
3918 ;;
3919esac
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3922$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3923with_gnu_ld=$lt_cv_prog_gnu_ld
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3934$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3935if test "${lt_cv_path_NM+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$NM"; then
3939 # Let the user override the test.
3940 lt_cv_path_NM="$NM"
3941else
3942 lt_nm_to_check="${ac_tool_prefix}nm"
3943 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3944 lt_nm_to_check="$lt_nm_to_check nm"
3945 fi
3946 for lt_tmp_nm in $lt_nm_to_check; do
3947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3948 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3949 IFS="$lt_save_ifs"
3950 test -z "$ac_dir" && ac_dir=.
3951 tmp_nm="$ac_dir/$lt_tmp_nm"
3952 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3953 # Check to see if the nm accepts a BSD-compat flag.
3954 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3955 # nm: unknown option "B" ignored
3956 # Tru64's nm complains that /dev/null is an invalid object file
3957 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3958 */dev/null* | *'Invalid file or object type'*)
3959 lt_cv_path_NM="$tmp_nm -B"
3960 break
3961 ;;
3962 *)
3963 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3964 */dev/null*)
3965 lt_cv_path_NM="$tmp_nm -p"
3966 break
3967 ;;
3968 *)
3969 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3970 continue # so that we can try to find one that supports BSD flags
3971 ;;
3972 esac
3973 ;;
3974 esac
3975 fi
3976 done
3977 IFS="$lt_save_ifs"
3978 done
3979 : ${lt_cv_path_NM=no}
3980fi
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3983$as_echo "$lt_cv_path_NM" >&6; }
3984if test "$lt_cv_path_NM" != "no"; then
3985 NM="$lt_cv_path_NM"
3986else
3987 # Didn't find any BSD compatible name lister, look for dumpbin.
3988 if test -n "$ac_tool_prefix"; then
3989 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3990 do
3991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
3995if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997else
3998 if test -n "$DUMPBIN"; then
3999 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4000else
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012done
4013 done
4014IFS=$as_save_IFS
4015
4016fi
4017fi
4018DUMPBIN=$ac_cv_prog_DUMPBIN
4019if test -n "$DUMPBIN"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4021$as_echo "$DUMPBIN" >&6; }
4022else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
4025fi
4026
4027
4028 test -n "$DUMPBIN" && break
4029 done
4030fi
4031if test -z "$DUMPBIN"; then
4032 ac_ct_DUMPBIN=$DUMPBIN
4033 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4034do
4035 # Extract the first word of "$ac_prog", so it can be a program name with args.
4036set dummy $ac_prog; ac_word=$2
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 if test -n "$ac_ct_DUMPBIN"; then
4043 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057 done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4063if test -n "$ac_ct_DUMPBIN"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4065$as_echo "$ac_ct_DUMPBIN" >&6; }
4066else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071
4072 test -n "$ac_ct_DUMPBIN" && break
4073done
4074
4075 if test "x$ac_ct_DUMPBIN" = x; then
4076 DUMPBIN=":"
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079yes:)
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4082ac_tool_warned=yes ;;
4083esac
4084 DUMPBIN=$ac_ct_DUMPBIN
4085 fi
4086fi
4087
4088
4089 if test "$DUMPBIN" != ":"; then
4090 NM="$DUMPBIN"
4091 fi
4092fi
4093test -z "$NM" && NM=nm
4094
4095
4096
4097
4098
4099
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4101$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4102if test "${lt_cv_nm_interface+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104else
4105 lt_cv_nm_interface="BSD nm"
4106 echo "int some_variable = 0;" > conftest.$ac_ext
4107 (eval echo "\"\$as_me:4107: $ac_compile\"" >&5)
4108 (eval "$ac_compile" 2>conftest.err)
4109 cat conftest.err >&5
4110 (eval echo "\"\$as_me:4110: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4111 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4112 cat conftest.err >&5
4113 (eval echo "\"\$as_me:4113: output\"" >&5)
4114 cat conftest.out >&5
4115 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4116 lt_cv_nm_interface="MS dumpbin"
4117 fi
4118 rm -f conftest*
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4121$as_echo "$lt_cv_nm_interface" >&6; }
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4124$as_echo_n "checking whether ln -s works... " >&6; }
4125LN_S=$as_ln_s
4126if test "$LN_S" = "ln -s"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128$as_echo "yes" >&6; }
4129else
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4131$as_echo "no, using $LN_S" >&6; }
4132fi
4133
4134# find the maximum length of command line arguments
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4136$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4137if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4139else
4140 i=0
4141 teststring="ABCD"
4142
4143 case $build_os in
4144 msdosdjgpp*)
4145 # On DJGPP, this test can blow up pretty badly due to problems in libc
4146 # (any single argument exceeding 2000 bytes causes a buffer overrun
4147 # during glob expansion). Even if it were fixed, the result of this
4148 # check would be larger than it should be.
4149 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4150 ;;
4151
4152 gnu*)
4153 # Under GNU Hurd, this test is not required because there is
4154 # no limit to the length of command line arguments.
4155 # Libtool will interpret -1 as no limit whatsoever
4156 lt_cv_sys_max_cmd_len=-1;
4157 ;;
4158
4159 cygwin* | mingw* | cegcc*)
4160 # On Win9x/ME, this test blows up -- it succeeds, but takes
4161 # about 5 minutes as the teststring grows exponentially.
4162 # Worse, since 9x/ME are not pre-emptively multitasking,
4163 # you end up with a "frozen" computer, even though with patience
4164 # the test eventually succeeds (with a max line length of 256k).
4165 # Instead, let's just punt: use the minimum linelength reported by
4166 # all of the supported platforms: 8192 (on NT/2K/XP).
4167 lt_cv_sys_max_cmd_len=8192;
4168 ;;
4169
4170 amigaos*)
4171 # On AmigaOS with pdksh, this test takes hours, literally.
4172 # So we just punt and use a minimum line length of 8192.
4173 lt_cv_sys_max_cmd_len=8192;
4174 ;;
4175
4176 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4177 # This has been around since 386BSD, at least. Likely further.
4178 if test -x /sbin/sysctl; then
4179 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4180 elif test -x /usr/sbin/sysctl; then
4181 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4182 else
4183 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4184 fi
4185 # And add a safety zone
4186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4188 ;;
4189
4190 interix*)
4191 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4192 lt_cv_sys_max_cmd_len=196608
4193 ;;
4194
4195 osf*)
4196 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4197 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4198 # nice to cause kernel panics so lets avoid the loop below.
4199 # First set a reasonable default.
4200 lt_cv_sys_max_cmd_len=16384
4201 #
4202 if test -x /sbin/sysconfig; then
4203 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4204 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4205 esac
4206 fi
4207 ;;
4208 sco3.2v5*)
4209 lt_cv_sys_max_cmd_len=102400
4210 ;;
4211 sysv5* | sco5v6* | sysv4.2uw2*)
4212 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4213 if test -n "$kargmax"; then
4214 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4215 else
4216 lt_cv_sys_max_cmd_len=32768
4217 fi
4218 ;;
4219 *)
4220 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4221 if test -n "$lt_cv_sys_max_cmd_len"; then
4222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4224 else
4225 # Make teststring a little bigger before we do anything with it.
4226 # a 1K string should be a reasonable start.
4227 for i in 1 2 3 4 5 6 7 8 ; do
4228 teststring=$teststring$teststring
4229 done
4230 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4231 # If test is not a shell built-in, we'll probably end up computing a
4232 # maximum length that is only half of the actual maximum length, but
4233 # we can't tell.
4234 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4235 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4236 test $i != 17 # 1/2 MB should be enough
4237 do
4238 i=`expr $i + 1`
4239 teststring=$teststring$teststring
4240 done
4241 # Only check the string length outside the loop.
4242 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4243 teststring=
4244 # Add a significant safety factor because C++ compilers can tack on
4245 # massive amounts of additional arguments before passing them to the
4246 # linker. It appears as though 1/2 is a usable value.
4247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4248 fi
4249 ;;
4250 esac
4251
4252fi
4253
4254if test -n $lt_cv_sys_max_cmd_len ; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4256$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4257else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4259$as_echo "none" >&6; }
4260fi
4261max_cmd_len=$lt_cv_sys_max_cmd_len
4262
4263
4264
4265
4266
4267
4268: ${CP="cp -f"}
4269: ${MV="mv -f"}
4270: ${RM="rm -f"}
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4273$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4274# Try some XSI features
4275xsi_shell=no
4276( _lt_dummy="a/b/c"
4277 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4278 = c,a/b,, \
4279 && eval 'test $(( 1 + 1 )) -eq 2 \
4280 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4281 && xsi_shell=yes
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4283$as_echo "$xsi_shell" >&6; }
4284
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4287$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4288lt_shell_append=no
4289( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4290 >/dev/null 2>&1 \
4291 && lt_shell_append=yes
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4293$as_echo "$lt_shell_append" >&6; }
4294
4295
4296if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4297 lt_unset=unset
4298else
4299 lt_unset=false
4300fi
4301
4302
4303
4304
4305
4306# test EBCDIC or ASCII
4307case `echo X|tr X '\101'` in
4308 A) # ASCII based system
4309 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4310 lt_SP2NL='tr \040 \012'
4311 lt_NL2SP='tr \015\012 \040\040'
4312 ;;
4313 *) # EBCDIC based system
4314 lt_SP2NL='tr \100 \n'
4315 lt_NL2SP='tr \r\n \100\100'
4316 ;;
4317esac
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4328$as_echo_n "checking for $LD option to reload object files... " >&6; }
4329if test "${lt_cv_ld_reload_flag+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 lt_cv_ld_reload_flag='-r'
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4335$as_echo "$lt_cv_ld_reload_flag" >&6; }
4336reload_flag=$lt_cv_ld_reload_flag
4337case $reload_flag in
4338"" | " "*) ;;
4339*) reload_flag=" $reload_flag" ;;
4340esac
4341reload_cmds='$LD$reload_flag -o $output$reload_objs'
4342case $host_os in
4343 darwin*)
4344 if test "$GCC" = yes; then
4345 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4346 else
4347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4348 fi
4349 ;;
4350esac
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4362set dummy ${ac_tool_prefix}objdump; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 if test -n "$OBJDUMP"; then
4369 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382done
4383 done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388OBJDUMP=$ac_cv_prog_OBJDUMP
4389if test -n "$OBJDUMP"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4391$as_echo "$OBJDUMP" >&6; }
4392else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
4398fi
4399if test -z "$ac_cv_prog_OBJDUMP"; then
4400 ac_ct_OBJDUMP=$OBJDUMP
4401 # Extract the first word of "objdump", so it can be a program name with args.
4402set dummy objdump; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
4405if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407else
4408 if test -n "$ac_ct_OBJDUMP"; then
4409 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423 done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4429if test -n "$ac_ct_OBJDUMP"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4431$as_echo "$ac_ct_OBJDUMP" >&6; }
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436
4437 if test "x$ac_ct_OBJDUMP" = x; then
4438 OBJDUMP="false"
4439 else
4440 case $cross_compiling:$ac_tool_warned in
4441yes:)
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444ac_tool_warned=yes ;;
4445esac
4446 OBJDUMP=$ac_ct_OBJDUMP
4447 fi
4448else
4449 OBJDUMP="$ac_cv_prog_OBJDUMP"
4450fi
4451
4452test -z "$OBJDUMP" && OBJDUMP=objdump
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4463$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4464if test "${lt_cv_deplibs_check_method+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466else
4467 lt_cv_file_magic_cmd='$MAGIC_CMD'
4468lt_cv_file_magic_test_file=
4469lt_cv_deplibs_check_method='unknown'
4470# Need to set the preceding variable on all platforms that support
4471# interlibrary dependencies.
4472# 'none' -- dependencies not supported.
4473# `unknown' -- same as none, but documents that we really don't know.
4474# 'pass_all' -- all dependencies passed with no checks.
4475# 'test_compile' -- check by making test program.
4476# 'file_magic [[regex]]' -- check by looking for files in library path
4477# which responds to the $file_magic_cmd with a given extended regex.
4478# If you have `file' or equivalent on your system and you're not sure
4479# whether `pass_all' will *always* work, you probably want this one.
4480
4481case $host_os in
4482aix[4-9]*)
4483 lt_cv_deplibs_check_method=pass_all
4484 ;;
4485
4486beos*)
4487 lt_cv_deplibs_check_method=pass_all
4488 ;;
4489
4490bsdi[45]*)
4491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4492 lt_cv_file_magic_cmd='/usr/bin/file -L'
4493 lt_cv_file_magic_test_file=/shlib/libc.so
4494 ;;
4495
4496cygwin*)
4497 # func_win32_libid is a shell function defined in ltmain.sh
4498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4499 lt_cv_file_magic_cmd='func_win32_libid'
4500 ;;
4501
4502mingw* | pw32*)
4503 # Base MSYS/MinGW do not provide the 'file' command needed by
4504 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4505 # unless we find 'file', for example because we are cross-compiling.
4506 if ( file / ) >/dev/null 2>&1; then
4507 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4508 lt_cv_file_magic_cmd='func_win32_libid'
4509 else
4510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4511 lt_cv_file_magic_cmd='$OBJDUMP -f'
4512 fi
4513 ;;
4514
4515cegcc)
4516 # use the weaker test based on 'objdump'. See mingw*.
4517 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4518 lt_cv_file_magic_cmd='$OBJDUMP -f'
4519 ;;
4520
4521darwin* | rhapsody*)
4522 lt_cv_deplibs_check_method=pass_all
4523 ;;
4524
4525freebsd* | dragonfly*)
4526 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4527 case $host_cpu in
4528 i*86 )
4529 # Not sure whether the presence of OpenBSD here was a mistake.
4530 # Let's accept both of them until this is cleared up.
4531 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4532 lt_cv_file_magic_cmd=/usr/bin/file
4533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4534 ;;
4535 esac
4536 else
4537 lt_cv_deplibs_check_method=pass_all
4538 fi
4539 ;;
4540
4541gnu*)
4542 lt_cv_deplibs_check_method=pass_all
4543 ;;
4544
4545hpux10.20* | hpux11*)
4546 lt_cv_file_magic_cmd=/usr/bin/file
4547 case $host_cpu in
4548 ia64*)
4549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4550 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4551 ;;
4552 hppa*64*)
4553 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]'
4554 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4555 ;;
4556 *)
4557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4558 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4559 ;;
4560 esac
4561 ;;
4562
4563interix[3-9]*)
4564 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4566 ;;
4567
4568irix5* | irix6* | nonstopux*)
4569 case $LD in
4570 *-32|*"-32 ") libmagic=32-bit;;
4571 *-n32|*"-n32 ") libmagic=N32;;
4572 *-64|*"-64 ") libmagic=64-bit;;
4573 *) libmagic=never-match;;
4574 esac
4575 lt_cv_deplibs_check_method=pass_all
4576 ;;
4577
4578# This must be Linux ELF.
4579linux* | k*bsd*-gnu | kopensolaris*-gnu)
4580 lt_cv_deplibs_check_method=pass_all
4581 ;;
4582
4583netbsd* | netbsdelf*-gnu)
4584 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4586 else
4587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4588 fi
4589 ;;
4590
4591newos6*)
4592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4593 lt_cv_file_magic_cmd=/usr/bin/file
4594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4595 ;;
4596
4597*nto* | *qnx*)
4598 lt_cv_deplibs_check_method=pass_all
4599 ;;
4600
4601openbsd*)
4602 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4604 else
4605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4606 fi
4607 ;;
4608
4609osf3* | osf4* | osf5*)
4610 lt_cv_deplibs_check_method=pass_all
4611 ;;
4612
4613rdos*)
4614 lt_cv_deplibs_check_method=pass_all
4615 ;;
4616
4617solaris*)
4618 lt_cv_deplibs_check_method=pass_all
4619 ;;
4620
4621sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4622 lt_cv_deplibs_check_method=pass_all
4623 ;;
4624
4625sysv4 | sysv4.3*)
4626 case $host_vendor in
4627 motorola)
4628 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]'
4629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4630 ;;
4631 ncr)
4632 lt_cv_deplibs_check_method=pass_all
4633 ;;
4634 sequent)
4635 lt_cv_file_magic_cmd='/bin/file'
4636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4637 ;;
4638 sni)
4639 lt_cv_file_magic_cmd='/bin/file'
4640 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4641 lt_cv_file_magic_test_file=/lib/libc.so
4642 ;;
4643 siemens)
4644 lt_cv_deplibs_check_method=pass_all
4645 ;;
4646 pc)
4647 lt_cv_deplibs_check_method=pass_all
4648 ;;
4649 esac
4650 ;;
4651
4652tpf*)
4653 lt_cv_deplibs_check_method=pass_all
4654 ;;
4655esac
4656
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4659$as_echo "$lt_cv_deplibs_check_method" >&6; }
4660file_magic_cmd=$lt_cv_file_magic_cmd
4661deplibs_check_method=$lt_cv_deplibs_check_method
4662test -z "$deplibs_check_method" && deplibs_check_method=unknown
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4677set dummy ${ac_tool_prefix}ar; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if test "${ac_cv_prog_AR+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682else
4683 if test -n "$AR"; then
4684 ac_cv_prog_AR="$AR" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_AR="${ac_tool_prefix}ar"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697done
4698 done
4699IFS=$as_save_IFS
4700
4701fi
4702fi
4703AR=$ac_cv_prog_AR
4704if test -n "$AR"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4706$as_echo "$AR" >&6; }
4707else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710fi
4711
4712
4713fi
4714if test -z "$ac_cv_prog_AR"; then
4715 ac_ct_AR=$AR
4716 # Extract the first word of "ar", so it can be a program name with args.
4717set dummy ar; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722else
4723 if test -n "$ac_ct_AR"; then
4724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_AR="ar"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738 done
4739IFS=$as_save_IFS
4740
4741fi
4742fi
4743ac_ct_AR=$ac_cv_prog_ac_ct_AR
4744if test -n "$ac_ct_AR"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4746$as_echo "$ac_ct_AR" >&6; }
4747else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
4751
4752 if test "x$ac_ct_AR" = x; then
4753 AR="false"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756yes:)
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759ac_tool_warned=yes ;;
4760esac
4761 AR=$ac_ct_AR
4762 fi
4763else
4764 AR="$ac_cv_prog_AR"
4765fi
4766
4767test -z "$AR" && AR=ar
4768test -z "$AR_FLAGS" && AR_FLAGS=cru
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780if test -n "$ac_tool_prefix"; then
4781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4782set dummy ${ac_tool_prefix}strip; ac_word=$2
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784$as_echo_n "checking for $ac_word... " >&6; }
4785if test "${ac_cv_prog_STRIP+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787else
4788 if test -n "$STRIP"; then
4789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802done
4803 done
4804IFS=$as_save_IFS
4805
4806fi
4807fi
4808STRIP=$ac_cv_prog_STRIP
4809if test -n "$STRIP"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4811$as_echo "$STRIP" >&6; }
4812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818fi
4819if test -z "$ac_cv_prog_STRIP"; then
4820 ac_ct_STRIP=$STRIP
4821 # Extract the first word of "strip", so it can be a program name with args.
4822set dummy strip; ac_word=$2
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
4825if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827else
4828 if test -n "$ac_ct_STRIP"; then
4829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_ac_ct_STRIP="strip"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842done
4843 done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4849if test -n "$ac_ct_STRIP"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4851$as_echo "$ac_ct_STRIP" >&6; }
4852else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857 if test "x$ac_ct_STRIP" = x; then
4858 STRIP=":"
4859 else
4860 case $cross_compiling:$ac_tool_warned in
4861yes:)
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4864ac_tool_warned=yes ;;
4865esac
4866 STRIP=$ac_ct_STRIP
4867 fi
4868else
4869 STRIP="$ac_cv_prog_STRIP"
4870fi
4871
4872test -z "$STRIP" && STRIP=:
4873
4874
4875
4876
4877
4878
4879if test -n "$ac_tool_prefix"; then
4880 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4881set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883$as_echo_n "checking for $ac_word... " >&6; }
4884if test "${ac_cv_prog_RANLIB+set}" = set; then :
4885 $as_echo_n "(cached) " >&6
4886else
4887 if test -n "$RANLIB"; then
4888 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901done
4902 done
4903IFS=$as_save_IFS
4904
4905fi
4906fi
4907RANLIB=$ac_cv_prog_RANLIB
4908if test -n "$RANLIB"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4910$as_echo "$RANLIB" >&6; }
4911else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
4915
4916
4917fi
4918if test -z "$ac_cv_prog_RANLIB"; then
4919 ac_ct_RANLIB=$RANLIB
4920 # Extract the first word of "ranlib", so it can be a program name with args.
4921set dummy ranlib; ac_word=$2
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923$as_echo_n "checking for $ac_word... " >&6; }
4924if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926else
4927 if test -n "$ac_ct_RANLIB"; then
4928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4929else
4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931for as_dir in $PATH
4932do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_RANLIB="ranlib"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941done
4942 done
4943IFS=$as_save_IFS
4944
4945fi
4946fi
4947ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4948if test -n "$ac_ct_RANLIB"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4950$as_echo "$ac_ct_RANLIB" >&6; }
4951else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
4954fi
4955
4956 if test "x$ac_ct_RANLIB" = x; then
4957 RANLIB=":"
4958 else
4959 case $cross_compiling:$ac_tool_warned in
4960yes:)
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4963ac_tool_warned=yes ;;
4964esac
4965 RANLIB=$ac_ct_RANLIB
4966 fi
4967else
4968 RANLIB="$ac_cv_prog_RANLIB"
4969fi
4970
4971test -z "$RANLIB" && RANLIB=:
4972
4973
4974
4975
4976
4977
4978# Determine commands to create old-style static archives.
4979old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4980old_postinstall_cmds='chmod 644 $oldlib'
4981old_postuninstall_cmds=
4982
4983if test -n "$RANLIB"; then
4984 case $host_os in
4985 openbsd*)
4986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4987 ;;
4988 *)
4989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4990 ;;
4991 esac
4992 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4993fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028# If no C compiler was specified, use CC.
5029LTCC=${LTCC-"$CC"}
5030
5031# If no C compiler flags were specified, use CFLAGS.
5032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5033
5034# Allow CC to be a program name with arguments.
5035compiler=$CC
5036
5037
5038# Check for command to grab the raw symbol name followed by C symbol from nm.
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5040$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5041if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5043else
5044
5045# These are sane defaults that work on at least a few old systems.
5046# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5047
5048# Character class describing NM global symbol codes.
5049symcode='[BCDEGRST]'
5050
5051# Regexp to match symbols that can be accessed directly from C.
5052sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5053
5054# Define system-specific variables.
5055case $host_os in
5056aix*)
5057 symcode='[BCDT]'
5058 ;;
5059cygwin* | mingw* | pw32* | cegcc*)
5060 symcode='[ABCDGISTW]'
5061 ;;
5062hpux*)
5063 if test "$host_cpu" = ia64; then
5064 symcode='[ABCDEGRST]'
5065 fi
5066 ;;
5067irix* | nonstopux*)
5068 symcode='[BCDEGRST]'
5069 ;;
5070osf*)
5071 symcode='[BCDEGQRST]'
5072 ;;
5073solaris*)
5074 symcode='[BDRT]'
5075 ;;
5076sco3.2v5*)
5077 symcode='[DT]'
5078 ;;
5079sysv4.2uw2*)
5080 symcode='[DT]'
5081 ;;
5082sysv5* | sco5v6* | unixware* | OpenUNIX*)
5083 symcode='[ABDT]'
5084 ;;
5085sysv4)
5086 symcode='[DFNSTU]'
5087 ;;
5088esac
5089
5090# If we're using GNU nm, then use its standard symbol codes.
5091case `$NM -V 2>&1` in
5092*GNU* | *'with BFD'*)
5093 symcode='[ABCDGIRSTW]' ;;
5094esac
5095
5096# Transform an extracted symbol line into a proper C declaration.
5097# Some systems (esp. on ia64) link data and code symbols differently,
5098# so use this general approach.
5099lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5100
5101# Transform an extracted symbol line into symbol name and symbol address
5102lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5103lt_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'"
5104
5105# Handle CRLF in mingw tool chain
5106opt_cr=
5107case $build_os in
5108mingw*)
5109 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5110 ;;
5111esac
5112
5113# Try without a prefix underscore, then with it.
5114for ac_symprfx in "" "_"; do
5115
5116 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5117 symxfrm="\\1 $ac_symprfx\\2 \\2"
5118
5119 # Write the raw and C identifiers.
5120 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5121 # Fake it for dumpbin and say T for any non-static function
5122 # and D for any global variable.
5123 # Also find C++ and __fastcall symbols from MSVC++,
5124 # which start with @ or ?.
5125 lt_cv_sys_global_symbol_pipe="$AWK '"\
5126" {last_section=section; section=\$ 3};"\
5127" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5128" \$ 0!~/External *\|/{next};"\
5129" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5130" {if(hide[section]) next};"\
5131" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5132" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5133" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5134" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5135" ' prfx=^$ac_symprfx"
5136 else
5137 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5138 fi
5139
5140 # Check to see that the pipe works correctly.
5141 pipe_works=no
5142
5143 rm -f conftest*
5144 cat > conftest.$ac_ext <<_LT_EOF
5145#ifdef __cplusplus
5146extern "C" {
5147#endif
5148char nm_test_var;
5149void nm_test_func(void);
5150void nm_test_func(void){}
5151#ifdef __cplusplus
5152}
5153#endif
5154int main(){nm_test_var='a';nm_test_func();return(0);}
5155_LT_EOF
5156
5157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5158 (eval $ac_compile) 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; then
5162 # Now try to grab the symbols.
5163 nlist=conftest.nm
5164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5165 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5166 ac_status=$?
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; } && test -s "$nlist"; then
5169 # Try sorting and uniquifying the output.
5170 if sort "$nlist" | uniq > "$nlist"T; then
5171 mv -f "$nlist"T "$nlist"
5172 else
5173 rm -f "$nlist"T
5174 fi
5175
5176 # Make sure that we snagged all the symbols we need.
5177 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5178 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5179 cat <<_LT_EOF > conftest.$ac_ext
5180#ifdef __cplusplus
5181extern "C" {
5182#endif
5183
5184_LT_EOF
5185 # Now generate the symbol file.
5186 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5187
5188 cat <<_LT_EOF >> conftest.$ac_ext
5189
5190/* The mapping between symbol names and symbols. */
5191const struct {
5192 const char *name;
5193 void *address;
5194}
5195lt__PROGRAM__LTX_preloaded_symbols[] =
5196{
5197 { "@PROGRAM@", (void *) 0 },
5198_LT_EOF
5199 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5200 cat <<\_LT_EOF >> conftest.$ac_ext
5201 {0, (void *) 0}
5202};
5203
5204/* This works around a problem in FreeBSD linker */
5205#ifdef FREEBSD_WORKAROUND
5206static const void *lt_preloaded_setup() {
5207 return lt__PROGRAM__LTX_preloaded_symbols;
5208}
5209#endif
5210
5211#ifdef __cplusplus
5212}
5213#endif
5214_LT_EOF
5215 # Now try linking the two files.
5216 mv conftest.$ac_objext conftstm.$ac_objext
5217 lt_save_LIBS="$LIBS"
5218 lt_save_CFLAGS="$CFLAGS"
5219 LIBS="conftstm.$ac_objext"
5220 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5222 (eval $ac_link) 2>&5
5223 ac_status=$?
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5226 pipe_works=yes
5227 fi
5228 LIBS="$lt_save_LIBS"
5229 CFLAGS="$lt_save_CFLAGS"
5230 else
5231 echo "cannot find nm_test_func in $nlist" >&5
5232 fi
5233 else
5234 echo "cannot find nm_test_var in $nlist" >&5
5235 fi
5236 else
5237 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5238 fi
5239 else
5240 echo "$progname: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5242 fi
5243 rm -rf conftest* conftst*
5244
5245 # Do not use the global_symbol_pipe unless it works.
5246 if test "$pipe_works" = yes; then
5247 break
5248 else
5249 lt_cv_sys_global_symbol_pipe=
5250 fi
5251done
5252
5253fi
5254
5255if test -z "$lt_cv_sys_global_symbol_pipe"; then
5256 lt_cv_sys_global_symbol_to_cdecl=
5257fi
5258if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5260$as_echo "failed" >&6; }
5261else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5263$as_echo "ok" >&6; }
5264fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288# Check whether --enable-libtool-lock was given.
5289if test "${enable_libtool_lock+set}" = set; then :
5290 enableval=$enable_libtool_lock;
5291fi
5292
5293test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5294
5295# Some flags need to be propagated to the compiler or linker for good
5296# libtool support.
5297case $host in
5298ia64-*-hpux*)
5299 # Find out which ABI we are using.
5300 echo 'int i;' > conftest.$ac_ext
5301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5302 (eval $ac_compile) 2>&5
5303 ac_status=$?
5304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5305 test $ac_status = 0; }; then
5306 case `/usr/bin/file conftest.$ac_objext` in
5307 *ELF-32*)
5308 HPUX_IA64_MODE="32"
5309 ;;
5310 *ELF-64*)
5311 HPUX_IA64_MODE="64"
5312 ;;
5313 esac
5314 fi
5315 rm -rf conftest*
5316 ;;
5317*-*-irix6*)
5318 # Find out which ABI we are using.
5319 echo '#line 5319 "configure"' > conftest.$ac_ext
5320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5321 (eval $ac_compile) 2>&5
5322 ac_status=$?
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }; then
5325 if test "$lt_cv_prog_gnu_ld" = yes; then
5326 case `/usr/bin/file conftest.$ac_objext` in
5327 *32-bit*)
5328 LD="${LD-ld} -melf32bsmip"
5329 ;;
5330 *N32*)
5331 LD="${LD-ld} -melf32bmipn32"
5332 ;;
5333 *64-bit*)
5334 LD="${LD-ld} -melf64bmip"
5335 ;;
5336 esac
5337 else
5338 case `/usr/bin/file conftest.$ac_objext` in
5339 *32-bit*)
5340 LD="${LD-ld} -32"
5341 ;;
5342 *N32*)
5343 LD="${LD-ld} -n32"
5344 ;;
5345 *64-bit*)
5346 LD="${LD-ld} -64"
5347 ;;
5348 esac
5349 fi
5350 fi
5351 rm -rf conftest*
5352 ;;
5353
5354x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5355s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5356 # Find out which ABI we are using.
5357 echo 'int i;' > conftest.$ac_ext
5358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5359 (eval $ac_compile) 2>&5
5360 ac_status=$?
5361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5362 test $ac_status = 0; }; then
5363 case `/usr/bin/file conftest.o` in
5364 *32-bit*)
5365 case $host in
5366 x86_64-*kfreebsd*-gnu)
5367 LD="${LD-ld} -m elf_i386_fbsd"
5368 ;;
5369 x86_64-*linux*)
5370 LD="${LD-ld} -m elf_i386"
5371 ;;
5372 ppc64-*linux*|powerpc64-*linux*)
5373 LD="${LD-ld} -m elf32ppclinux"
5374 ;;
5375 s390x-*linux*)
5376 LD="${LD-ld} -m elf_s390"
5377 ;;
5378 sparc64-*linux*)
5379 LD="${LD-ld} -m elf32_sparc"
5380 ;;
5381 esac
5382 ;;
5383 *64-bit*)
5384 case $host in
5385 x86_64-*kfreebsd*-gnu)
5386 LD="${LD-ld} -m elf_x86_64_fbsd"
5387 ;;
5388 x86_64-*linux*)
5389 LD="${LD-ld} -m elf_x86_64"
5390 ;;
5391 ppc*-*linux*|powerpc*-*linux*)
5392 LD="${LD-ld} -m elf64ppc"
5393 ;;
5394 s390*-*linux*|s390*-*tpf*)
5395 LD="${LD-ld} -m elf64_s390"
5396 ;;
5397 sparc*-*linux*)
5398 LD="${LD-ld} -m elf64_sparc"
5399 ;;
5400 esac
5401 ;;
5402 esac
5403 fi
5404 rm -rf conftest*
5405 ;;
5406
5407*-*-sco3.2v5*)
5408 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5409 SAVE_CFLAGS="$CFLAGS"
5410 CFLAGS="$CFLAGS -belf"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5412$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5413if test "${lt_cv_cc_needs_belf+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5415else
5416 ac_ext=c
5417ac_cpp='$CPP $CPPFLAGS'
5418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h. */
5424
5425int
5426main ()
5427{
5428
5429 ;
5430 return 0;
5431}
5432_ACEOF
5433if ac_fn_c_try_link "$LINENO"; then :
5434 lt_cv_cc_needs_belf=yes
5435else
5436 lt_cv_cc_needs_belf=no
5437fi
5438rm -f core conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5440 ac_ext=c
5441ac_cpp='$CPP $CPPFLAGS'
5442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444ac_compiler_gnu=$ac_cv_c_compiler_gnu
5445
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5448$as_echo "$lt_cv_cc_needs_belf" >&6; }
5449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5451 CFLAGS="$SAVE_CFLAGS"
5452 fi
5453 ;;
5454sparc*-*solaris*)
5455 # Find out which ABI we are using.
5456 echo 'int i;' > conftest.$ac_ext
5457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5458 (eval $ac_compile) 2>&5
5459 ac_status=$?
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; }; then
5462 case `/usr/bin/file conftest.o` in
5463 *64-bit*)
5464 case $lt_cv_prog_gnu_ld in
5465 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5466 *)
5467 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5468 LD="${LD-ld} -64"
5469 fi
5470 ;;
5471 esac
5472 ;;
5473 esac
5474 fi
5475 rm -rf conftest*
5476 ;;
5477esac
5478
5479need_locks="$enable_libtool_lock"
5480
5481
5482 case $host_os in
5483 rhapsody* | darwin*)
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5486set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 if test -n "$DSYMUTIL"; then
5493 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506done
5507 done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512DSYMUTIL=$ac_cv_prog_DSYMUTIL
5513if test -n "$DSYMUTIL"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5515$as_echo "$DSYMUTIL" >&6; }
5516else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521
5522fi
5523if test -z "$ac_cv_prog_DSYMUTIL"; then
5524 ac_ct_DSYMUTIL=$DSYMUTIL
5525 # Extract the first word of "dsymutil", so it can be a program name with args.
5526set dummy dsymutil; ac_word=$2
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528$as_echo_n "checking for $ac_word... " >&6; }
5529if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531else
5532 if test -n "$ac_ct_DSYMUTIL"; then
5533 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546done
5547 done
5548IFS=$as_save_IFS
5549
5550fi
5551fi
5552ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5553if test -n "$ac_ct_DSYMUTIL"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5555$as_echo "$ac_ct_DSYMUTIL" >&6; }
5556else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558$as_echo "no" >&6; }
5559fi
5560
5561 if test "x$ac_ct_DSYMUTIL" = x; then
5562 DSYMUTIL=":"
5563 else
5564 case $cross_compiling:$ac_tool_warned in
5565yes:)
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568ac_tool_warned=yes ;;
5569esac
5570 DSYMUTIL=$ac_ct_DSYMUTIL
5571 fi
5572else
5573 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5574fi
5575
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5578set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580$as_echo_n "checking for $ac_word... " >&6; }
5581if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5583else
5584 if test -n "$NMEDIT"; then
5585 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5594 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5597 fi
5598done
5599 done
5600IFS=$as_save_IFS
5601
5602fi
5603fi
5604NMEDIT=$ac_cv_prog_NMEDIT
5605if test -n "$NMEDIT"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5607$as_echo "$NMEDIT" >&6; }
5608else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611fi
5612
5613
5614fi
5615if test -z "$ac_cv_prog_NMEDIT"; then
5616 ac_ct_NMEDIT=$NMEDIT
5617 # Extract the first word of "nmedit", so it can be a program name with args.
5618set dummy nmedit; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 if test -n "$ac_ct_NMEDIT"; then
5625 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638done
5639 done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5645if test -n "$ac_ct_NMEDIT"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5647$as_echo "$ac_ct_NMEDIT" >&6; }
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653 if test "x$ac_ct_NMEDIT" = x; then
5654 NMEDIT=":"
5655 else
5656 case $cross_compiling:$ac_tool_warned in
5657yes:)
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660ac_tool_warned=yes ;;
5661esac
5662 NMEDIT=$ac_ct_NMEDIT
5663 fi
5664else
5665 NMEDIT="$ac_cv_prog_NMEDIT"
5666fi
5667
5668 if test -n "$ac_tool_prefix"; then
5669 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5670set dummy ${ac_tool_prefix}lipo; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if test "${ac_cv_prog_LIPO+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675else
5676 if test -n "$LIPO"; then
5677 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696LIPO=$ac_cv_prog_LIPO
5697if test -n "$LIPO"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5699$as_echo "$LIPO" >&6; }
5700else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705
5706fi
5707if test -z "$ac_cv_prog_LIPO"; then
5708 ac_ct_LIPO=$LIPO
5709 # Extract the first word of "lipo", so it can be a program name with args.
5710set dummy lipo; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5715else
5716 if test -n "$ac_ct_LIPO"; then
5717 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_prog_ac_ct_LIPO="lipo"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731 done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5737if test -n "$ac_ct_LIPO"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5739$as_echo "$ac_ct_LIPO" >&6; }
5740else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745 if test "x$ac_ct_LIPO" = x; then
5746 LIPO=":"
5747 else
5748 case $cross_compiling:$ac_tool_warned in
5749yes:)
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5752ac_tool_warned=yes ;;
5753esac
5754 LIPO=$ac_ct_LIPO
5755 fi
5756else
5757 LIPO="$ac_cv_prog_LIPO"
5758fi
5759
5760 if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5762set dummy ${ac_tool_prefix}otool; ac_word=$2
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764$as_echo_n "checking for $ac_word... " >&6; }
5765if test "${ac_cv_prog_OTOOL+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767else
5768 if test -n "$OTOOL"; then
5769 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782done
5783 done
5784IFS=$as_save_IFS
5785
5786fi
5787fi
5788OTOOL=$ac_cv_prog_OTOOL
5789if test -n "$OTOOL"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5791$as_echo "$OTOOL" >&6; }
5792else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795fi
5796
5797
5798fi
5799if test -z "$ac_cv_prog_OTOOL"; then
5800 ac_ct_OTOOL=$OTOOL
5801 # Extract the first word of "otool", so it can be a program name with args.
5802set dummy otool; ac_word=$2
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804$as_echo_n "checking for $ac_word... " >&6; }
5805if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 if test -n "$ac_ct_OTOOL"; then
5809 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_ac_ct_OTOOL="otool"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822done
5823 done
5824IFS=$as_save_IFS
5825
5826fi
5827fi
5828ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5829if test -n "$ac_ct_OTOOL"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5831$as_echo "$ac_ct_OTOOL" >&6; }
5832else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834$as_echo "no" >&6; }
5835fi
5836
5837 if test "x$ac_ct_OTOOL" = x; then
5838 OTOOL=":"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841yes:)
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844ac_tool_warned=yes ;;
5845esac
5846 OTOOL=$ac_ct_OTOOL
5847 fi
5848else
5849 OTOOL="$ac_cv_prog_OTOOL"
5850fi
5851
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5854set dummy ${ac_tool_prefix}otool64; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
5857if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859else
5860 if test -n "$OTOOL64"; then
5861 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875 done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880OTOOL64=$ac_cv_prog_OTOOL64
5881if test -n "$OTOOL64"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5883$as_echo "$OTOOL64" >&6; }
5884else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889
5890fi
5891if test -z "$ac_cv_prog_OTOOL64"; then
5892 ac_ct_OTOOL64=$OTOOL64
5893 # Extract the first word of "otool64", so it can be a program name with args.
5894set dummy otool64; ac_word=$2
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896$as_echo_n "checking for $ac_word... " >&6; }
5897if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899else
5900 if test -n "$ac_ct_OTOOL64"; then
5901 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_OTOOL64="otool64"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914done
5915 done
5916IFS=$as_save_IFS
5917
5918fi
5919fi
5920ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5921if test -n "$ac_ct_OTOOL64"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5923$as_echo "$ac_ct_OTOOL64" >&6; }
5924else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }
5927fi
5928
5929 if test "x$ac_ct_OTOOL64" = x; then
5930 OTOOL64=":"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933yes:)
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936ac_tool_warned=yes ;;
5937esac
5938 OTOOL64=$ac_ct_OTOOL64
5939 fi
5940else
5941 OTOOL64="$ac_cv_prog_OTOOL64"
5942fi
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5971$as_echo_n "checking for -single_module linker flag... " >&6; }
5972if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974else
5975 lt_cv_apple_cc_single_mod=no
5976 if test -z "${LT_MULTI_MODULE}"; then
5977 # By default we will add the -single_module flag. You can override
5978 # by either setting the environment variable LT_MULTI_MODULE
5979 # non-empty at configure time, or by adding -multi_module to the
5980 # link flags.
5981 rm -rf libconftest.dylib*
5982 echo "int foo(void){return 1;}" > conftest.c
5983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5984-dynamiclib -Wl,-single_module conftest.c" >&5
5985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5987 _lt_result=$?
5988 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5989 lt_cv_apple_cc_single_mod=yes
5990 else
5991 cat conftest.err >&5
5992 fi
5993 rm -rf libconftest.dylib*
5994 rm -f conftest.*
5995 fi
5996fi
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5998$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6000$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6001if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003else
6004 lt_cv_ld_exported_symbols_list=no
6005 save_LDFLAGS=$LDFLAGS
6006 echo "_main" > conftest.sym
6007 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h. */
6010
6011int
6012main ()
6013{
6014
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_link "$LINENO"; then :
6020 lt_cv_ld_exported_symbols_list=yes
6021else
6022 lt_cv_ld_exported_symbols_list=no
6023fi
6024rm -f core conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6026 LDFLAGS="$save_LDFLAGS"
6027
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6030$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6031 case $host_os in
6032 rhapsody* | darwin1.[012])
6033 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6034 darwin1.*)
6035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6036 darwin*) # darwin 5.x on
6037 # if running on 10.5 or later, the deployment target defaults
6038 # to the OS version, if on x86, and 10.4, the deployment
6039 # target defaults to 10.4. Don't you love it?
6040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6043 10.[012]*)
6044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6045 10.*)
6046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6047 esac
6048 ;;
6049 esac
6050 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6051 _lt_dar_single_mod='$single_module'
6052 fi
6053 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6054 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6055 else
6056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6057 fi
6058 if test "$DSYMUTIL" != ":"; then
6059 _lt_dsymutil='~$DSYMUTIL $lib || :'
6060 else
6061 _lt_dsymutil=
6062 fi
6063 ;;
6064 esac
6065
6066ac_ext=c
6067ac_cpp='$CPP $CPPFLAGS'
6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6072$as_echo_n "checking how to run the C preprocessor... " >&6; }
6073# On Suns, sometimes $CPP names a directory.
6074if test -n "$CPP" && test -d "$CPP"; then
6075 CPP=
6076fi
6077if test -z "$CPP"; then
6078 if test "${ac_cv_prog_CPP+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6080else
6081 # Double quotes because CPP needs to be expanded
6082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6083 do
6084 ac_preproc_ok=false
6085for ac_c_preproc_warn_flag in '' yes
6086do
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h. */
6095#ifdef __STDC__
6096# include <limits.h>
6097#else
6098# include <assert.h>
6099#endif
6100 Syntax error
6101_ACEOF
6102if ac_fn_c_try_cpp "$LINENO"; then :
6103
6104else
6105 # Broken: fails on valid input.
6106continue
6107fi
6108rm -f conftest.err conftest.$ac_ext
6109
6110 # OK, works on sane cases. Now check whether nonexistent headers
6111 # can be detected and how.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h. */
6114#include <ac_nonexistent.h>
6115_ACEOF
6116if ac_fn_c_try_cpp "$LINENO"; then :
6117 # Broken: success on invalid input.
6118continue
6119else
6120 # Passes both tests.
6121ac_preproc_ok=:
6122break
6123fi
6124rm -f conftest.err conftest.$ac_ext
6125
6126done
6127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6128rm -f conftest.err conftest.$ac_ext
6129if $ac_preproc_ok; then :
6130 break
6131fi
6132
6133 done
6134 ac_cv_prog_CPP=$CPP
6135
6136fi
6137 CPP=$ac_cv_prog_CPP
6138else
6139 ac_cv_prog_CPP=$CPP
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6142$as_echo "$CPP" >&6; }
6143ac_preproc_ok=false
6144for ac_c_preproc_warn_flag in '' yes
6145do
6146 # Use a header file that comes with gcc, so configuring glibc
6147 # with a fresh cross-compiler works.
6148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149 # <limits.h> exists even on freestanding compilers.
6150 # On the NeXT, cc -E runs the code through the compiler's parser,
6151 # not just through cpp. "Syntax error" is here to catch this case.
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h. */
6154#ifdef __STDC__
6155# include <limits.h>
6156#else
6157# include <assert.h>
6158#endif
6159 Syntax error
6160_ACEOF
6161if ac_fn_c_try_cpp "$LINENO"; then :
6162
6163else
6164 # Broken: fails on valid input.
6165continue
6166fi
6167rm -f conftest.err conftest.$ac_ext
6168
6169 # OK, works on sane cases. Now check whether nonexistent headers
6170 # can be detected and how.
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h. */
6173#include <ac_nonexistent.h>
6174_ACEOF
6175if ac_fn_c_try_cpp "$LINENO"; then :
6176 # Broken: success on invalid input.
6177continue
6178else
6179 # Passes both tests.
6180ac_preproc_ok=:
6181break
6182fi
6183rm -f conftest.err conftest.$ac_ext
6184
6185done
6186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6187rm -f conftest.err conftest.$ac_ext
6188if $ac_preproc_ok; then :
6189
6190else
6191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6193as_fn_error "C preprocessor \"$CPP\" fails sanity check
6194See \`config.log' for more details." "$LINENO" 5; }
6195fi
6196
6197ac_ext=c
6198ac_cpp='$CPP $CPPFLAGS'
6199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202
6203
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6205$as_echo_n "checking for ANSI C header files... " >&6; }
6206if test "${ac_cv_header_stdc+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h. */
6211#include <stdlib.h>
6212#include <stdarg.h>
6213#include <string.h>
6214#include <float.h>
6215
6216int
6217main ()
6218{
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225 ac_cv_header_stdc=yes
6226else
6227 ac_cv_header_stdc=no
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230
6231if test $ac_cv_header_stdc = yes; then
6232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h. */
6235#include <string.h>
6236
6237_ACEOF
6238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 $EGREP "memchr" >/dev/null 2>&1; then :
6240
6241else
6242 ac_cv_header_stdc=no
6243fi
6244rm -f conftest*
6245
6246fi
6247
6248if test $ac_cv_header_stdc = yes; then
6249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h. */
6252#include <stdlib.h>
6253
6254_ACEOF
6255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 $EGREP "free" >/dev/null 2>&1; then :
6257
6258else
6259 ac_cv_header_stdc=no
6260fi
6261rm -f conftest*
6262
6263fi
6264
6265if test $ac_cv_header_stdc = yes; then
6266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6267 if test "$cross_compiling" = yes; then :
6268 :
6269else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h. */
6272#include <ctype.h>
6273#include <stdlib.h>
6274#if ((' ' & 0x0FF) == 0x020)
6275# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6276# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6277#else
6278# define ISLOWER(c) \
6279 (('a' <= (c) && (c) <= 'i') \
6280 || ('j' <= (c) && (c) <= 'r') \
6281 || ('s' <= (c) && (c) <= 'z'))
6282# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6283#endif
6284
6285#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6286int
6287main ()
6288{
6289 int i;
6290 for (i = 0; i < 256; i++)
6291 if (XOR (islower (i), ISLOWER (i))
6292 || toupper (i) != TOUPPER (i))
6293 return 2;
6294 return 0;
6295}
6296_ACEOF
6297if ac_fn_c_try_run "$LINENO"; then :
6298
6299else
6300 ac_cv_header_stdc=no
6301fi
6302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6303 conftest.$ac_objext conftest.beam conftest.$ac_ext
6304fi
6305
6306fi
6307fi
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6309$as_echo "$ac_cv_header_stdc" >&6; }
6310if test $ac_cv_header_stdc = yes; then
6311
6312$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6313
6314fi
6315
6316# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6318 inttypes.h stdint.h unistd.h
6319do :
6320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6322"
6323eval as_val=\$$as_ac_Header
6324 if test "x$as_val" = x""yes; then :
6325 cat >>confdefs.h <<_ACEOF
6326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6327_ACEOF
6328
6329fi
6330
6331done
6332
6333
6334for ac_header in dlfcn.h
6335do :
6336 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6337"
6338if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6339 cat >>confdefs.h <<_ACEOF
6340#define HAVE_DLFCN_H 1
6341_ACEOF
6342
6343fi
6344
6345done
6346
6347
6348
6349# Set options
6350# Check whether --enable-static was given.
6351if test "${enable_static+set}" = set; then :
6352 enableval=$enable_static; p=${PACKAGE-default}
6353 case $enableval in
6354 yes) enable_static=yes ;;
6355 no) enable_static=no ;;
6356 *)
6357 enable_static=no
6358 # Look at the argument we got. We use all the common list separators.
6359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6360 for pkg in $enableval; do
6361 IFS="$lt_save_ifs"
6362 if test "X$pkg" = "X$p"; then
6363 enable_static=yes
6364 fi
6365 done
6366 IFS="$lt_save_ifs"
6367 ;;
6368 esac
6369else
6370 enable_static=no
6371fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 enable_dlopen=no
6383
6384
6385 enable_win32_dll=no
6386
6387
6388 # Check whether --enable-shared was given.
6389if test "${enable_shared+set}" = set; then :
6390 enableval=$enable_shared; p=${PACKAGE-default}
6391 case $enableval in
6392 yes) enable_shared=yes ;;
6393 no) enable_shared=no ;;
6394 *)
6395 enable_shared=no
6396 # Look at the argument we got. We use all the common list separators.
6397 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6398 for pkg in $enableval; do
6399 IFS="$lt_save_ifs"
6400 if test "X$pkg" = "X$p"; then
6401 enable_shared=yes
6402 fi
6403 done
6404 IFS="$lt_save_ifs"
6405 ;;
6406 esac
6407else
6408 enable_shared=yes
6409fi
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421# Check whether --with-pic was given.
6422if test "${with_pic+set}" = set; then :
6423 withval=$with_pic; pic_mode="$withval"
6424else
6425 pic_mode=default
6426fi
6427
6428
6429test -z "$pic_mode" && pic_mode=default
6430
6431
6432
6433
6434
6435
6436
6437 # Check whether --enable-fast-install was given.
6438if test "${enable_fast_install+set}" = set; then :
6439 enableval=$enable_fast_install; p=${PACKAGE-default}
6440 case $enableval in
6441 yes) enable_fast_install=yes ;;
6442 no) enable_fast_install=no ;;
6443 *)
6444 enable_fast_install=no
6445 # Look at the argument we got. We use all the common list separators.
6446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6447 for pkg in $enableval; do
6448 IFS="$lt_save_ifs"
6449 if test "X$pkg" = "X$p"; then
6450 enable_fast_install=yes
6451 fi
6452 done
6453 IFS="$lt_save_ifs"
6454 ;;
6455 esac
6456else
6457 enable_fast_install=yes
6458fi
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470# This can be used to rebuild libtool when needed
6471LIBTOOL_DEPS="$ltmain"
6472
6473# Always use our own libtool.
6474LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500test -z "$LN_S" && LN_S="ln -s"
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515if test -n "${ZSH_VERSION+set}" ; then
6516 setopt NO_GLOB_SUBST
6517fi
6518
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6520$as_echo_n "checking for objdir... " >&6; }
6521if test "${lt_cv_objdir+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6523else
6524 rm -f .libs 2>/dev/null
6525mkdir .libs 2>/dev/null
6526if test -d .libs; then
6527 lt_cv_objdir=.libs
6528else
6529 # MS-DOS does not allow filenames that begin with a dot.
6530 lt_cv_objdir=_libs
6531fi
6532rmdir .libs 2>/dev/null
6533fi
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6535$as_echo "$lt_cv_objdir" >&6; }
6536objdir=$lt_cv_objdir
6537
6538
6539
6540
6541
6542cat >>confdefs.h <<_ACEOF
6543#define LT_OBJDIR "$lt_cv_objdir/"
6544_ACEOF
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562case $host_os in
6563aix3*)
6564 # AIX sometimes has problems with the GCC collect2 program. For some
6565 # reason, if we set the COLLECT_NAMES environment variable, the problems
6566 # vanish in a puff of smoke.
6567 if test "X${COLLECT_NAMES+set}" != Xset; then
6568 COLLECT_NAMES=
6569 export COLLECT_NAMES
6570 fi
6571 ;;
6572esac
6573
6574# Sed substitution that helps us do robust quoting. It backslashifies
6575# metacharacters that are still active within double-quoted strings.
6576sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6577
6578# Same as above, but do not quote variable references.
6579double_quote_subst='s/\(["`\\]\)/\\\1/g'
6580
6581# Sed substitution to delay expansion of an escaped shell variable in a
6582# double_quote_subst'ed string.
6583delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6584
6585# Sed substitution to delay expansion of an escaped single quote.
6586delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6587
6588# Sed substitution to avoid accidental globbing in evaled expressions
6589no_glob_subst='s/\*/\\\*/g'
6590
6591# Global variables:
6592ofile=libtool
6593can_build_shared=yes
6594
6595# All known linkers require a `.a' archive for static linking (except MSVC,
6596# which needs '.lib').
6597libext=a
6598
6599with_gnu_ld="$lt_cv_prog_gnu_ld"
6600
6601old_CC="$CC"
6602old_CFLAGS="$CFLAGS"
6603
6604# Set sane defaults for various variables
6605test -z "$CC" && CC=cc
6606test -z "$LTCC" && LTCC=$CC
6607test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6608test -z "$LD" && LD=ld
6609test -z "$ac_objext" && ac_objext=o
6610
6611for cc_temp in $compiler""; do
6612 case $cc_temp in
6613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6615 \-*) ;;
6616 *) break;;
6617 esac
6618done
6619cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6620
6621
6622# Only perform the check for file, if the check method requires it
6623test -z "$MAGIC_CMD" && MAGIC_CMD=file
6624case $deplibs_check_method in
6625file_magic*)
6626 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6628$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6629if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631else
6632 case $MAGIC_CMD in
6633[\\/*] | ?:[\\/]*)
6634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6635 ;;
6636*)
6637 lt_save_MAGIC_CMD="$MAGIC_CMD"
6638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6640 for ac_dir in $ac_dummy; do
6641 IFS="$lt_save_ifs"
6642 test -z "$ac_dir" && ac_dir=.
6643 if test -f $ac_dir/${ac_tool_prefix}file; then
6644 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6645 if test -n "$file_magic_test_file"; then
6646 case $deplibs_check_method in
6647 "file_magic "*)
6648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6651 $EGREP "$file_magic_regex" > /dev/null; then
6652 :
6653 else
6654 cat <<_LT_EOF 1>&2
6655
6656*** Warning: the command libtool uses to detect shared libraries,
6657*** $file_magic_cmd, produces output that libtool cannot recognize.
6658*** The result is that libtool may fail to recognize shared libraries
6659*** as such. This will affect the creation of libtool libraries that
6660*** depend on shared libraries, but programs linked with such libtool
6661*** libraries will work regardless of this problem. Nevertheless, you
6662*** may want to report the problem to your system manager and/or to
6663*** bug-libtool@gnu.org
6664
6665_LT_EOF
6666 fi ;;
6667 esac
6668 fi
6669 break
6670 fi
6671 done
6672 IFS="$lt_save_ifs"
6673 MAGIC_CMD="$lt_save_MAGIC_CMD"
6674 ;;
6675esac
6676fi
6677
6678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6679if test -n "$MAGIC_CMD"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6681$as_echo "$MAGIC_CMD" >&6; }
6682else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688
6689
6690
6691if test -z "$lt_cv_path_MAGIC_CMD"; then
6692 if test -n "$ac_tool_prefix"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6694$as_echo_n "checking for file... " >&6; }
6695if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697else
6698 case $MAGIC_CMD in
6699[\\/*] | ?:[\\/]*)
6700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6701 ;;
6702*)
6703 lt_save_MAGIC_CMD="$MAGIC_CMD"
6704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6706 for ac_dir in $ac_dummy; do
6707 IFS="$lt_save_ifs"
6708 test -z "$ac_dir" && ac_dir=.
6709 if test -f $ac_dir/file; then
6710 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6711 if test -n "$file_magic_test_file"; then
6712 case $deplibs_check_method in
6713 "file_magic "*)
6714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6717 $EGREP "$file_magic_regex" > /dev/null; then
6718 :
6719 else
6720 cat <<_LT_EOF 1>&2
6721
6722*** Warning: the command libtool uses to detect shared libraries,
6723*** $file_magic_cmd, produces output that libtool cannot recognize.
6724*** The result is that libtool may fail to recognize shared libraries
6725*** as such. This will affect the creation of libtool libraries that
6726*** depend on shared libraries, but programs linked with such libtool
6727*** libraries will work regardless of this problem. Nevertheless, you
6728*** may want to report the problem to your system manager and/or to
6729*** bug-libtool@gnu.org
6730
6731_LT_EOF
6732 fi ;;
6733 esac
6734 fi
6735 break
6736 fi
6737 done
6738 IFS="$lt_save_ifs"
6739 MAGIC_CMD="$lt_save_MAGIC_CMD"
6740 ;;
6741esac
6742fi
6743
6744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6745if test -n "$MAGIC_CMD"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6747$as_echo "$MAGIC_CMD" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754 else
6755 MAGIC_CMD=:
6756 fi
6757fi
6758
6759 fi
6760 ;;
6761esac
6762
6763# Use C for the default configuration in the libtool script
6764
6765lt_save_CC="$CC"
6766ac_ext=c
6767ac_cpp='$CPP $CPPFLAGS'
6768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771
6772
6773# Source file extension for C test sources.
6774ac_ext=c
6775
6776# Object file extension for compiled C test sources.
6777objext=o
6778objext=$objext
6779
6780# Code to be used in simple compile tests
6781lt_simple_compile_test_code="int some_variable = 0;"
6782
6783# Code to be used in simple link tests
6784lt_simple_link_test_code='int main(){return(0);}'
6785
6786
6787
6788
6789
6790
6791
6792# If no C compiler was specified, use CC.
6793LTCC=${LTCC-"$CC"}
6794
6795# If no C compiler flags were specified, use CFLAGS.
6796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6797
6798# Allow CC to be a program name with arguments.
6799compiler=$CC
6800
6801# Save the default compiler, since it gets overwritten when the other
6802# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6803compiler_DEFAULT=$CC
6804
6805# save warnings/boilerplate of simple test code
6806ac_outfile=conftest.$ac_objext
6807echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6808eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6809_lt_compiler_boilerplate=`cat conftest.err`
6810$RM conftest*
6811
6812ac_outfile=conftest.$ac_objext
6813echo "$lt_simple_link_test_code" >conftest.$ac_ext
6814eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6815_lt_linker_boilerplate=`cat conftest.err`
6816$RM -r conftest*
6817
6818
6819if test -n "$compiler"; then
6820
6821lt_prog_compiler_no_builtin_flag=
6822
6823if test "$GCC" = yes; then
6824 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6827$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6828if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831 lt_cv_prog_compiler_rtti_exceptions=no
6832 ac_outfile=conftest.$ac_objext
6833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6834 lt_compiler_flag="-fno-rtti -fno-exceptions"
6835 # Insert the option either (1) after the last *FLAGS variable, or
6836 # (2) before a word containing "conftest.", or (3) at the end.
6837 # Note that $ac_compile itself does not contain backslashes and begins
6838 # with a dollar sign (not a hyphen), so the echo should work correctly.
6839 # The option is referenced via a variable to avoid confusing sed.
6840 lt_compile=`echo "$ac_compile" | $SED \
6841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6843 -e 's:$: $lt_compiler_flag:'`
6844 (eval echo "\"\$as_me:6844: $lt_compile\"" >&5)
6845 (eval "$lt_compile" 2>conftest.err)
6846 ac_status=$?
6847 cat conftest.err >&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 if (exit $ac_status) && test -s "$ac_outfile"; then
6850 # The compiler can only warn and ignore the option if not recognized
6851 # So say no if there are warnings other than the usual output.
6852 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6855 lt_cv_prog_compiler_rtti_exceptions=yes
6856 fi
6857 fi
6858 $RM conftest*
6859
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6862$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6863
6864if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6865 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6866else
6867 :
6868fi
6869
6870fi
6871
6872
6873
6874
6875
6876
6877 lt_prog_compiler_wl=
6878lt_prog_compiler_pic=
6879lt_prog_compiler_static=
6880
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6882$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6883
6884 if test "$GCC" = yes; then
6885 lt_prog_compiler_wl='-Wl,'
6886 lt_prog_compiler_static='-static'
6887
6888 case $host_os in
6889 aix*)
6890 # All AIX code is PIC.
6891 if test "$host_cpu" = ia64; then
6892 # AIX 5 now supports IA64 processor
6893 lt_prog_compiler_static='-Bstatic'
6894 fi
6895 ;;
6896
6897 amigaos*)
6898 case $host_cpu in
6899 powerpc)
6900 # see comment about AmigaOS4 .so support
6901 lt_prog_compiler_pic='-fPIC'
6902 ;;
6903 m68k)
6904 # FIXME: we need at least 68020 code to build shared libraries, but
6905 # adding the `-m68020' flag to GCC prevents building anything better,
6906 # like `-m68040'.
6907 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6908 ;;
6909 esac
6910 ;;
6911
6912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6913 # PIC is the default for these OSes.
6914 ;;
6915
6916 mingw* | cygwin* | pw32* | os2* | cegcc*)
6917 # This hack is so that the source file can tell whether it is being
6918 # built for inclusion in a dll (and should export symbols for example).
6919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6920 # (--disable-auto-import) libraries
6921 lt_prog_compiler_pic='-DDLL_EXPORT'
6922 ;;
6923
6924 darwin* | rhapsody*)
6925 # PIC is the default on this platform
6926 # Common symbols not allowed in MH_DYLIB files
6927 lt_prog_compiler_pic='-fno-common'
6928 ;;
6929
6930 hpux*)
6931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6933 # sets the default TLS model and affects inlining.
6934 case $host_cpu in
6935 hppa*64*)
6936 # +Z the default
6937 ;;
6938 *)
6939 lt_prog_compiler_pic='-fPIC'
6940 ;;
6941 esac
6942 ;;
6943
6944 interix[3-9]*)
6945 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6946 # Instead, we relocate shared libraries at runtime.
6947 ;;
6948
6949 msdosdjgpp*)
6950 # Just because we use GCC doesn't mean we suddenly get shared libraries
6951 # on systems that don't support them.
6952 lt_prog_compiler_can_build_shared=no
6953 enable_shared=no
6954 ;;
6955
6956 *nto* | *qnx*)
6957 # QNX uses GNU C++, but need to define -shared option too, otherwise
6958 # it will coredump.
6959 lt_prog_compiler_pic='-fPIC -shared'
6960 ;;
6961
6962 sysv4*MP*)
6963 if test -d /usr/nec; then
6964 lt_prog_compiler_pic=-Kconform_pic
6965 fi
6966 ;;
6967
6968 *)
6969 lt_prog_compiler_pic='-fPIC'
6970 ;;
6971 esac
6972 else
6973 # PORTME Check for flag to pass linker flags through the system compiler.
6974 case $host_os in
6975 aix*)
6976 lt_prog_compiler_wl='-Wl,'
6977 if test "$host_cpu" = ia64; then
6978 # AIX 5 now supports IA64 processor
6979 lt_prog_compiler_static='-Bstatic'
6980 else
6981 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6982 fi
6983 ;;
6984
6985 mingw* | cygwin* | pw32* | os2* | cegcc*)
6986 # This hack is so that the source file can tell whether it is being
6987 # built for inclusion in a dll (and should export symbols for example).
6988 lt_prog_compiler_pic='-DDLL_EXPORT'
6989 ;;
6990
6991 hpux9* | hpux10* | hpux11*)
6992 lt_prog_compiler_wl='-Wl,'
6993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6994 # not for PA HP-UX.
6995 case $host_cpu in
6996 hppa*64*|ia64*)
6997 # +Z the default
6998 ;;
6999 *)
7000 lt_prog_compiler_pic='+Z'
7001 ;;
7002 esac
7003 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7004 lt_prog_compiler_static='${wl}-a ${wl}archive'
7005 ;;
7006
7007 irix5* | irix6* | nonstopux*)
7008 lt_prog_compiler_wl='-Wl,'
7009 # PIC (with -KPIC) is the default.
7010 lt_prog_compiler_static='-non_shared'
7011 ;;
7012
7013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7014 case $cc_basename in
7015 # old Intel for x86_64 which still supported -KPIC.
7016 ecc*)
7017 lt_prog_compiler_wl='-Wl,'
7018 lt_prog_compiler_pic='-KPIC'
7019 lt_prog_compiler_static='-static'
7020 ;;
7021 # icc used to be incompatible with GCC.
7022 # ICC 10 doesn't accept -KPIC any more.
7023 icc* | ifort*)
7024 lt_prog_compiler_wl='-Wl,'
7025 lt_prog_compiler_pic='-fPIC'
7026 lt_prog_compiler_static='-static'
7027 ;;
7028 # Lahey Fortran 8.1.
7029 lf95*)
7030 lt_prog_compiler_wl='-Wl,'
7031 lt_prog_compiler_pic='--shared'
7032 lt_prog_compiler_static='--static'
7033 ;;
7034 pgcc* | pgf77* | pgf90* | pgf95*)
7035 # Portland Group compilers (*not* the Pentium gcc compiler,
7036 # which looks to be a dead project)
7037 lt_prog_compiler_wl='-Wl,'
7038 lt_prog_compiler_pic='-fpic'
7039 lt_prog_compiler_static='-Bstatic'
7040 ;;
7041 ccc*)
7042 lt_prog_compiler_wl='-Wl,'
7043 # All Alpha code is PIC.
7044 lt_prog_compiler_static='-non_shared'
7045 ;;
7046 xl*)
7047 # IBM XL C 8.0/Fortran 10.1 on PPC
7048 lt_prog_compiler_wl='-Wl,'
7049 lt_prog_compiler_pic='-qpic'
7050 lt_prog_compiler_static='-qstaticlink'
7051 ;;
7052 *)
7053 case `$CC -V 2>&1 | sed 5q` in
7054 *Sun\ C*)
7055 # Sun C 5.9
7056 lt_prog_compiler_pic='-KPIC'
7057 lt_prog_compiler_static='-Bstatic'
7058 lt_prog_compiler_wl='-Wl,'
7059 ;;
7060 *Sun\ F*)
7061 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 lt_prog_compiler_wl=''
7065 ;;
7066 esac
7067 ;;
7068 esac
7069 ;;
7070
7071 newsos6)
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7074 ;;
7075
7076 *nto* | *qnx*)
7077 # QNX uses GNU C++, but need to define -shared option too, otherwise
7078 # it will coredump.
7079 lt_prog_compiler_pic='-fPIC -shared'
7080 ;;
7081
7082 osf3* | osf4* | osf5*)
7083 lt_prog_compiler_wl='-Wl,'
7084 # All OSF/1 code is PIC.
7085 lt_prog_compiler_static='-non_shared'
7086 ;;
7087
7088 rdos*)
7089 lt_prog_compiler_static='-non_shared'
7090 ;;
7091
7092 solaris*)
7093 lt_prog_compiler_pic='-KPIC'
7094 lt_prog_compiler_static='-Bstatic'
7095 case $cc_basename in
7096 f77* | f90* | f95*)
7097 lt_prog_compiler_wl='-Qoption ld ';;
7098 *)
7099 lt_prog_compiler_wl='-Wl,';;
7100 esac
7101 ;;
7102
7103 sunos4*)
7104 lt_prog_compiler_wl='-Qoption ld '
7105 lt_prog_compiler_pic='-PIC'
7106 lt_prog_compiler_static='-Bstatic'
7107 ;;
7108
7109 sysv4 | sysv4.2uw2* | sysv4.3*)
7110 lt_prog_compiler_wl='-Wl,'
7111 lt_prog_compiler_pic='-KPIC'
7112 lt_prog_compiler_static='-Bstatic'
7113 ;;
7114
7115 sysv4*MP*)
7116 if test -d /usr/nec ;then
7117 lt_prog_compiler_pic='-Kconform_pic'
7118 lt_prog_compiler_static='-Bstatic'
7119 fi
7120 ;;
7121
7122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-KPIC'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127
7128 unicos*)
7129 lt_prog_compiler_wl='-Wl,'
7130 lt_prog_compiler_can_build_shared=no
7131 ;;
7132
7133 uts4*)
7134 lt_prog_compiler_pic='-pic'
7135 lt_prog_compiler_static='-Bstatic'
7136 ;;
7137
7138 *)
7139 lt_prog_compiler_can_build_shared=no
7140 ;;
7141 esac
7142 fi
7143
7144case $host_os in
7145 # For platforms which do not support PIC, -DPIC is meaningless:
7146 *djgpp*)
7147 lt_prog_compiler_pic=
7148 ;;
7149 *)
7150 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7151 ;;
7152esac
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7154$as_echo "$lt_prog_compiler_pic" >&6; }
7155
7156
7157
7158
7159
7160
7161#
7162# Check to make sure the PIC flag actually works.
7163#
7164if test -n "$lt_prog_compiler_pic"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7166$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7167if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169else
7170 lt_cv_prog_compiler_pic_works=no
7171 ac_outfile=conftest.$ac_objext
7172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7173 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7174 # Insert the option either (1) after the last *FLAGS variable, or
7175 # (2) before a word containing "conftest.", or (3) at the end.
7176 # Note that $ac_compile itself does not contain backslashes and begins
7177 # with a dollar sign (not a hyphen), so the echo should work correctly.
7178 # The option is referenced via a variable to avoid confusing sed.
7179 lt_compile=`echo "$ac_compile" | $SED \
7180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7182 -e 's:$: $lt_compiler_flag:'`
7183 (eval echo "\"\$as_me:7183: $lt_compile\"" >&5)
7184 (eval "$lt_compile" 2>conftest.err)
7185 ac_status=$?
7186 cat conftest.err >&5
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 if (exit $ac_status) && test -s "$ac_outfile"; then
7189 # The compiler can only warn and ignore the option if not recognized
7190 # So say no if there are warnings other than the usual output.
7191 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7194 lt_cv_prog_compiler_pic_works=yes
7195 fi
7196 fi
7197 $RM conftest*
7198
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7201$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7202
7203if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7204 case $lt_prog_compiler_pic in
7205 "" | " "*) ;;
7206 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7207 esac
7208else
7209 lt_prog_compiler_pic=
7210 lt_prog_compiler_can_build_shared=no
7211fi
7212
7213fi
7214
7215
7216
7217
7218
7219
7220#
7221# Check to make sure the static flag actually works.
7222#
7223wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7225$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7226if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228else
7229 lt_cv_prog_compiler_static_works=no
7230 save_LDFLAGS="$LDFLAGS"
7231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7234 # The linker can only warn and ignore the option if not recognized
7235 # So say no if there are warnings
7236 if test -s conftest.err; then
7237 # Append any errors to the config.log.
7238 cat conftest.err 1>&5
7239 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241 if diff conftest.exp conftest.er2 >/dev/null; then
7242 lt_cv_prog_compiler_static_works=yes
7243 fi
7244 else
7245 lt_cv_prog_compiler_static_works=yes
7246 fi
7247 fi
7248 $RM -r conftest*
7249 LDFLAGS="$save_LDFLAGS"
7250
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7253$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7254
7255if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7256 :
7257else
7258 lt_prog_compiler_static=
7259fi
7260
7261
7262
7263
7264
7265
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7268$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7269if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7271else
7272 lt_cv_prog_compiler_c_o=no
7273 $RM -r conftest 2>/dev/null
7274 mkdir conftest
7275 cd conftest
7276 mkdir out
7277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7278
7279 lt_compiler_flag="-o out/conftest2.$ac_objext"
7280 # Insert the option either (1) after the last *FLAGS variable, or
7281 # (2) before a word containing "conftest.", or (3) at the end.
7282 # Note that $ac_compile itself does not contain backslashes and begins
7283 # with a dollar sign (not a hyphen), so the echo should work correctly.
7284 lt_compile=`echo "$ac_compile" | $SED \
7285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7287 -e 's:$: $lt_compiler_flag:'`
7288 (eval echo "\"\$as_me:7288: $lt_compile\"" >&5)
7289 (eval "$lt_compile" 2>out/conftest.err)
7290 ac_status=$?
7291 cat out/conftest.err >&5
7292 echo "$as_me:7292: \$? = $ac_status" >&5
7293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7294 then
7295 # The compiler can only warn and ignore the option if not recognized
7296 # So say no if there are warnings
7297 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7300 lt_cv_prog_compiler_c_o=yes
7301 fi
7302 fi
7303 chmod u+w . 2>&5
7304 $RM conftest*
7305 # SGI C++ compiler will create directory out/ii_files/ for
7306 # template instantiation
7307 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7308 $RM out/* && rmdir out
7309 cd ..
7310 $RM -r conftest
7311 $RM conftest*
7312
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7315$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7316
7317
7318
7319
7320
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7323$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7324if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 lt_cv_prog_compiler_c_o=no
7328 $RM -r conftest 2>/dev/null
7329 mkdir conftest
7330 cd conftest
7331 mkdir out
7332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7333
7334 lt_compiler_flag="-o out/conftest2.$ac_objext"
7335 # Insert the option either (1) after the last *FLAGS variable, or
7336 # (2) before a word containing "conftest.", or (3) at the end.
7337 # Note that $ac_compile itself does not contain backslashes and begins
7338 # with a dollar sign (not a hyphen), so the echo should work correctly.
7339 lt_compile=`echo "$ac_compile" | $SED \
7340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7342 -e 's:$: $lt_compiler_flag:'`
7343 (eval echo "\"\$as_me:7343: $lt_compile\"" >&5)
7344 (eval "$lt_compile" 2>out/conftest.err)
7345 ac_status=$?
7346 cat out/conftest.err >&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7349 then
7350 # The compiler can only warn and ignore the option if not recognized
7351 # So say no if there are warnings
7352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7355 lt_cv_prog_compiler_c_o=yes
7356 fi
7357 fi
7358 chmod u+w . 2>&5
7359 $RM conftest*
7360 # SGI C++ compiler will create directory out/ii_files/ for
7361 # template instantiation
7362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7363 $RM out/* && rmdir out
7364 cd ..
7365 $RM -r conftest
7366 $RM conftest*
7367
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7370$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7371
7372
7373
7374
7375hard_links="nottested"
7376if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7377 # do not overwrite the value of need_locks provided by the user
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7379$as_echo_n "checking if we can lock with hard links... " >&6; }
7380 hard_links=yes
7381 $RM conftest*
7382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7383 touch conftest.a
7384 ln conftest.a conftest.b 2>&5 || hard_links=no
7385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7387$as_echo "$hard_links" >&6; }
7388 if test "$hard_links" = no; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7390$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7391 need_locks=warn
7392 fi
7393else
7394 need_locks=no
7395fi
7396
7397
7398
7399
7400
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7403$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7404
7405 runpath_var=
7406 allow_undefined_flag=
7407 always_export_symbols=no
7408 archive_cmds=
7409 archive_expsym_cmds=
7410 compiler_needs_object=no
7411 enable_shared_with_static_runtimes=no
7412 export_dynamic_flag_spec=
7413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7414 hardcode_automatic=no
7415 hardcode_direct=no
7416 hardcode_direct_absolute=no
7417 hardcode_libdir_flag_spec=
7418 hardcode_libdir_flag_spec_ld=
7419 hardcode_libdir_separator=
7420 hardcode_minus_L=no
7421 hardcode_shlibpath_var=unsupported
7422 inherit_rpath=no
7423 link_all_deplibs=unknown
7424 module_cmds=
7425 module_expsym_cmds=
7426 old_archive_from_new_cmds=
7427 old_archive_from_expsyms_cmds=
7428 thread_safe_flag_spec=
7429 whole_archive_flag_spec=
7430 # include_expsyms should be a list of space-separated symbols to be *always*
7431 # included in the symbol list
7432 include_expsyms=
7433 # exclude_expsyms can be an extended regexp of symbols to exclude
7434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7436 # as well as any symbol that contains `d'.
7437 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7439 # platforms (ab)use it in PIC code, but their linkers get confused if
7440 # the symbol is explicitly referenced. Since portable code cannot
7441 # rely on this symbol name, it's probably fine to never include it in
7442 # preloaded symbol tables.
7443 # Exclude shared library initialization/finalization symbols.
7444 extract_expsyms_cmds=
7445
7446 case $host_os in
7447 cygwin* | mingw* | pw32* | cegcc*)
7448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7449 # When not using gcc, we currently assume that we are using
7450 # Microsoft Visual C++.
7451 if test "$GCC" != yes; then
7452 with_gnu_ld=no
7453 fi
7454 ;;
7455 interix*)
7456 # we just hope/assume this is gcc and not c89 (= MSVC++)
7457 with_gnu_ld=yes
7458 ;;
7459 openbsd*)
7460 with_gnu_ld=no
7461 ;;
7462 linux* | k*bsd*-gnu)
7463 link_all_deplibs=no
7464 ;;
7465 esac
7466
7467 ld_shlibs=yes
7468 if test "$with_gnu_ld" = yes; then
7469 # If archive_cmds runs LD, not CC, wlarc should be empty
7470 wlarc='${wl}'
7471
7472 # Set some defaults for GNU ld with shared library support. These
7473 # are reset later if shared libraries are not supported. Putting them
7474 # here allows them to be overridden if necessary.
7475 runpath_var=LD_RUN_PATH
7476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7477 export_dynamic_flag_spec='${wl}--export-dynamic'
7478 # ancient GNU ld didn't support --whole-archive et. al.
7479 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7480 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7481 else
7482 whole_archive_flag_spec=
7483 fi
7484 supports_anon_versioning=no
7485 case `$LD -v 2>&1` in
7486 *GNU\ gold*) supports_anon_versioning=yes ;;
7487 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7490 *\ 2.11.*) ;; # other 2.11 versions
7491 *) supports_anon_versioning=yes ;;
7492 esac
7493
7494 # See if GNU ld supports shared libraries.
7495 case $host_os in
7496 aix[3-9]*)
7497 # On AIX/PPC, the GNU linker is very broken
7498 if test "$host_cpu" != ia64; then
7499 ld_shlibs=no
7500 cat <<_LT_EOF 1>&2
7501
7502*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7503*** to be unable to reliably create shared libraries on AIX.
7504*** Therefore, libtool is disabling shared libraries support. If you
7505*** really care for shared libraries, you may want to modify your PATH
7506*** so that a non-GNU linker is found, and then restart.
7507
7508_LT_EOF
7509 fi
7510 ;;
7511
7512 amigaos*)
7513 case $host_cpu in
7514 powerpc)
7515 # see comment about AmigaOS4 .so support
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds=''
7518 ;;
7519 m68k)
7520 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)'
7521 hardcode_libdir_flag_spec='-L$libdir'
7522 hardcode_minus_L=yes
7523 ;;
7524 esac
7525 ;;
7526
7527 beos*)
7528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7529 allow_undefined_flag=unsupported
7530 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7531 # support --undefined. This deserves some investigation. FIXME
7532 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7533 else
7534 ld_shlibs=no
7535 fi
7536 ;;
7537
7538 cygwin* | mingw* | pw32* | cegcc*)
7539 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7540 # as there is no search path for DLLs.
7541 hardcode_libdir_flag_spec='-L$libdir'
7542 allow_undefined_flag=unsupported
7543 always_export_symbols=no
7544 enable_shared_with_static_runtimes=yes
7545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7546
7547 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7549 # If the export-symbols file already is a .def file (1st line
7550 # is EXPORTS), use it as is; otherwise, prepend...
7551 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7552 cp $export_symbols $output_objdir/$soname.def;
7553 else
7554 echo EXPORTS > $output_objdir/$soname.def;
7555 cat $export_symbols >> $output_objdir/$soname.def;
7556 fi~
7557 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7558 else
7559 ld_shlibs=no
7560 fi
7561 ;;
7562
7563 interix[3-9]*)
7564 hardcode_direct=no
7565 hardcode_shlibpath_var=no
7566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7567 export_dynamic_flag_spec='${wl}-E'
7568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7569 # Instead, shared libraries are loaded at an image base (0x10000000 by
7570 # default) and relocated if they conflict, which is a slow very memory
7571 # consuming and fragmenting process. To avoid this, we pick a random,
7572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7575 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'
7576 ;;
7577
7578 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7579 tmp_diet=no
7580 if test "$host_os" = linux-dietlibc; then
7581 case $cc_basename in
7582 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7583 esac
7584 fi
7585 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7586 && test "$tmp_diet" = no
7587 then
7588 tmp_addflag=
7589 tmp_sharedflag='-shared'
7590 case $cc_basename,$host_cpu in
7591 pgcc*) # Portland Group C compiler
7592 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'
7593 tmp_addflag=' $pic_flag'
7594 ;;
7595 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7596 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'
7597 tmp_addflag=' $pic_flag -Mnomain' ;;
7598 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7599 tmp_addflag=' -i_dynamic' ;;
7600 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7601 tmp_addflag=' -i_dynamic -nofor_main' ;;
7602 ifc* | ifort*) # Intel Fortran compiler
7603 tmp_addflag=' -nofor_main' ;;
7604 lf95*) # Lahey Fortran 8.1
7605 whole_archive_flag_spec=
7606 tmp_sharedflag='--shared' ;;
7607 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7608 tmp_sharedflag='-qmkshrobj'
7609 tmp_addflag= ;;
7610 esac
7611 case `$CC -V 2>&1 | sed 5q` in
7612 *Sun\ C*) # Sun C 5.9
7613 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'
7614 compiler_needs_object=yes
7615 tmp_sharedflag='-G' ;;
7616 *Sun\ F*) # Sun Fortran 8.3
7617 tmp_sharedflag='-G' ;;
7618 esac
7619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7620
7621 if test "x$supports_anon_versioning" = xyes; then
7622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7624 echo "local: *; };" >> $output_objdir/$libname.ver~
7625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7626 fi
7627
7628 case $cc_basename in
7629 xlf*)
7630 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7631 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7632 hardcode_libdir_flag_spec=
7633 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7634 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7635 if test "x$supports_anon_versioning" = xyes; then
7636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7638 echo "local: *; };" >> $output_objdir/$libname.ver~
7639 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7640 fi
7641 ;;
7642 esac
7643 else
7644 ld_shlibs=no
7645 fi
7646 ;;
7647
7648 netbsd* | netbsdelf*-gnu)
7649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7650 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7651 wlarc=
7652 else
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7655 fi
7656 ;;
7657
7658 solaris*)
7659 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7660 ld_shlibs=no
7661 cat <<_LT_EOF 1>&2
7662
7663*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7664*** create shared libraries on Solaris systems. Therefore, libtool
7665*** is disabling shared libraries support. We urge you to upgrade GNU
7666*** binutils to release 2.9.1 or newer. Another option is to modify
7667*** your PATH or compiler configuration so that the native linker is
7668*** used, and then restart.
7669
7670_LT_EOF
7671 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7673 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7674 else
7675 ld_shlibs=no
7676 fi
7677 ;;
7678
7679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7680 case `$LD -v 2>&1` in
7681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7682 ld_shlibs=no
7683 cat <<_LT_EOF 1>&2
7684
7685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7686*** reliably create shared libraries on SCO systems. Therefore, libtool
7687*** is disabling shared libraries support. We urge you to upgrade GNU
7688*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7689*** your PATH or compiler configuration so that the native linker is
7690*** used, and then restart.
7691
7692_LT_EOF
7693 ;;
7694 *)
7695 # For security reasons, it is highly recommended that you always
7696 # use absolute paths for naming shared libraries, and exclude the
7697 # DT_RUNPATH tag from executables and libraries. But doing so
7698 # requires that you compile everything twice, which is a pain.
7699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7703 else
7704 ld_shlibs=no
7705 fi
7706 ;;
7707 esac
7708 ;;
7709
7710 sunos4*)
7711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7712 wlarc=
7713 hardcode_direct=yes
7714 hardcode_shlibpath_var=no
7715 ;;
7716
7717 *)
7718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7721 else
7722 ld_shlibs=no
7723 fi
7724 ;;
7725 esac
7726
7727 if test "$ld_shlibs" = no; then
7728 runpath_var=
7729 hardcode_libdir_flag_spec=
7730 export_dynamic_flag_spec=
7731 whole_archive_flag_spec=
7732 fi
7733 else
7734 # PORTME fill in a description of your system's linker (not GNU ld)
7735 case $host_os in
7736 aix3*)
7737 allow_undefined_flag=unsupported
7738 always_export_symbols=yes
7739 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'
7740 # Note: this linker hardcodes the directories in LIBPATH if there
7741 # are no directories specified by -L.
7742 hardcode_minus_L=yes
7743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7744 # Neither direct hardcoding nor static linking is supported with a
7745 # broken collect2.
7746 hardcode_direct=unsupported
7747 fi
7748 ;;
7749
7750 aix[4-9]*)
7751 if test "$host_cpu" = ia64; then
7752 # On IA64, the linker does run time linking by default, so we don't
7753 # have to do anything special.
7754 aix_use_runtimelinking=no
7755 exp_sym_flag='-Bexport'
7756 no_entry_flag=""
7757 else
7758 # If we're using GNU nm, then we don't want the "-C" option.
7759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7760 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7761 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'
7762 else
7763 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'
7764 fi
7765 aix_use_runtimelinking=no
7766
7767 # Test if we are trying to use run time linking or normal
7768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7769 # need to do runtime linking.
7770 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7771 for ld_flag in $LDFLAGS; do
7772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7773 aix_use_runtimelinking=yes
7774 break
7775 fi
7776 done
7777 ;;
7778 esac
7779
7780 exp_sym_flag='-bexport'
7781 no_entry_flag='-bnoentry'
7782 fi
7783
7784 # When large executables or shared objects are built, AIX ld can
7785 # have problems creating the table of contents. If linking a library
7786 # or program results in "error TOC overflow" add -mminimal-toc to
7787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7789
7790 archive_cmds=''
7791 hardcode_direct=yes
7792 hardcode_direct_absolute=yes
7793 hardcode_libdir_separator=':'
7794 link_all_deplibs=yes
7795 file_list_spec='${wl}-f,'
7796
7797 if test "$GCC" = yes; then
7798 case $host_os in aix4.[012]|aix4.[012].*)
7799 # We only want to do this on AIX 4.2 and lower, the check
7800 # below for broken collect2 doesn't work under 4.3+
7801 collect2name=`${CC} -print-prog-name=collect2`
7802 if test -f "$collect2name" &&
7803 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7804 then
7805 # We have reworked collect2
7806 :
7807 else
7808 # We have old collect2
7809 hardcode_direct=unsupported
7810 # It fails to find uninstalled libraries when the uninstalled
7811 # path is not listed in the libpath. Setting hardcode_minus_L
7812 # to unsupported forces relinking
7813 hardcode_minus_L=yes
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_libdir_separator=
7816 fi
7817 ;;
7818 esac
7819 shared_flag='-shared'
7820 if test "$aix_use_runtimelinking" = yes; then
7821 shared_flag="$shared_flag "'${wl}-G'
7822 fi
7823 link_all_deplibs=no
7824 else
7825 # not using gcc
7826 if test "$host_cpu" = ia64; then
7827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7828 # chokes on -Wl,-G. The following line is correct:
7829 shared_flag='-G'
7830 else
7831 if test "$aix_use_runtimelinking" = yes; then
7832 shared_flag='${wl}-G'
7833 else
7834 shared_flag='${wl}-bM:SRE'
7835 fi
7836 fi
7837 fi
7838
7839 export_dynamic_flag_spec='${wl}-bexpall'
7840 # It seems that -bexpall does not export symbols beginning with
7841 # underscore (_), so it is better to generate a list of symbols to export.
7842 always_export_symbols=yes
7843 if test "$aix_use_runtimelinking" = yes; then
7844 # Warning - without using the other runtime loading flags (-brtl),
7845 # -berok will link without error, but may produce a broken library.
7846 allow_undefined_flag='-berok'
7847 # Determine the default libpath from the value encoded in an
7848 # empty executable.
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h. */
7851
7852int
7853main ()
7854{
7855
7856 ;
7857 return 0;
7858}
7859_ACEOF
7860if ac_fn_c_try_link "$LINENO"; then :
7861
7862lt_aix_libpath_sed='
7863 /Import File Strings/,/^$/ {
7864 /^0/ {
7865 s/^0 *\(.*\)$/\1/
7866 p
7867 }
7868 }'
7869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7870# Check for a 64-bit object if we didn't find anything.
7871if test -z "$aix_libpath"; then
7872 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7873fi
7874fi
7875rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7878
7879 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7880 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"
7881 else
7882 if test "$host_cpu" = ia64; then
7883 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7884 allow_undefined_flag="-z nodefs"
7885 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"
7886 else
7887 # Determine the default libpath from the value encoded in an
7888 # empty executable.
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h. */
7891
7892int
7893main ()
7894{
7895
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_link "$LINENO"; then :
7901
7902lt_aix_libpath_sed='
7903 /Import File Strings/,/^$/ {
7904 /^0/ {
7905 s/^0 *\(.*\)$/\1/
7906 p
7907 }
7908 }'
7909aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7910# Check for a 64-bit object if we didn't find anything.
7911if test -z "$aix_libpath"; then
7912 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7913fi
7914fi
7915rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7918
7919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7920 # Warning - without using the other run time loading flags,
7921 # -berok will link without error, but may produce a broken library.
7922 no_undefined_flag=' ${wl}-bernotok'
7923 allow_undefined_flag=' ${wl}-berok'
7924 # Exported symbols can be pulled into shared objects from archives
7925 whole_archive_flag_spec='$convenience'
7926 archive_cmds_need_lc=yes
7927 # This is similar to how AIX traditionally builds its shared libraries.
7928 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'
7929 fi
7930 fi
7931 ;;
7932
7933 amigaos*)
7934 case $host_cpu in
7935 powerpc)
7936 # see comment about AmigaOS4 .so support
7937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7938 archive_expsym_cmds=''
7939 ;;
7940 m68k)
7941 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)'
7942 hardcode_libdir_flag_spec='-L$libdir'
7943 hardcode_minus_L=yes
7944 ;;
7945 esac
7946 ;;
7947
7948 bsdi[45]*)
7949 export_dynamic_flag_spec=-rdynamic
7950 ;;
7951
7952 cygwin* | mingw* | pw32* | cegcc*)
7953 # When not using gcc, we currently assume that we are using
7954 # Microsoft Visual C++.
7955 # hardcode_libdir_flag_spec is actually meaningless, as there is
7956 # no search path for DLLs.
7957 hardcode_libdir_flag_spec=' '
7958 allow_undefined_flag=unsupported
7959 # Tell ltmain to make .lib files, not .a files.
7960 libext=lib
7961 # Tell ltmain to make .dll files, not .so files.
7962 shrext_cmds=".dll"
7963 # FIXME: Setting linknames here is a bad hack.
7964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7965 # The linker will automatically build a .lib file if we build a DLL.
7966 old_archive_from_new_cmds='true'
7967 # FIXME: Should let the user specify the lib program.
7968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7969 fix_srcfile_path='`cygpath -w "$srcfile"`'
7970 enable_shared_with_static_runtimes=yes
7971 ;;
7972
7973 darwin* | rhapsody*)
7974
7975
7976 archive_cmds_need_lc=no
7977 hardcode_direct=no
7978 hardcode_automatic=yes
7979 hardcode_shlibpath_var=unsupported
7980 whole_archive_flag_spec=''
7981 link_all_deplibs=yes
7982 allow_undefined_flag="$_lt_dar_allow_undefined"
7983 case $cc_basename in
7984 ifort*) _lt_dar_can_shared=yes ;;
7985 *) _lt_dar_can_shared=$GCC ;;
7986 esac
7987 if test "$_lt_dar_can_shared" = "yes"; then
7988 output_verbose_link_cmd=echo
7989 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7990 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7991 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}"
7992 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}"
7993
7994 else
7995 ld_shlibs=no
7996 fi
7997
7998 ;;
7999
8000 dgux*)
8001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8002 hardcode_libdir_flag_spec='-L$libdir'
8003 hardcode_shlibpath_var=no
8004 ;;
8005
8006 freebsd1*)
8007 ld_shlibs=no
8008 ;;
8009
8010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8011 # support. Future versions do this automatically, but an explicit c++rt0.o
8012 # does not break anything, and helps significantly (at the cost of a little
8013 # extra space).
8014 freebsd2.2*)
8015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8016 hardcode_libdir_flag_spec='-R$libdir'
8017 hardcode_direct=yes
8018 hardcode_shlibpath_var=no
8019 ;;
8020
8021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8022 freebsd2*)
8023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8024 hardcode_direct=yes
8025 hardcode_minus_L=yes
8026 hardcode_shlibpath_var=no
8027 ;;
8028
8029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8030 freebsd* | dragonfly*)
8031 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8032 hardcode_libdir_flag_spec='-R$libdir'
8033 hardcode_direct=yes
8034 hardcode_shlibpath_var=no
8035 ;;
8036
8037 hpux9*)
8038 if test "$GCC" = yes; then
8039 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'
8040 else
8041 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'
8042 fi
8043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8044 hardcode_libdir_separator=:
8045 hardcode_direct=yes
8046
8047 # hardcode_minus_L: Not really in the search PATH,
8048 # but as the default location of the library.
8049 hardcode_minus_L=yes
8050 export_dynamic_flag_spec='${wl}-E'
8051 ;;
8052
8053 hpux10*)
8054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8055 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8056 else
8057 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8058 fi
8059 if test "$with_gnu_ld" = no; then
8060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8061 hardcode_libdir_flag_spec_ld='+b $libdir'
8062 hardcode_libdir_separator=:
8063 hardcode_direct=yes
8064 hardcode_direct_absolute=yes
8065 export_dynamic_flag_spec='${wl}-E'
8066 # hardcode_minus_L: Not really in the search PATH,
8067 # but as the default location of the library.
8068 hardcode_minus_L=yes
8069 fi
8070 ;;
8071
8072 hpux11*)
8073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8074 case $host_cpu in
8075 hppa*64*)
8076 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8077 ;;
8078 ia64*)
8079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8080 ;;
8081 *)
8082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8083 ;;
8084 esac
8085 else
8086 case $host_cpu in
8087 hppa*64*)
8088 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8089 ;;
8090 ia64*)
8091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8092 ;;
8093 *)
8094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8095 ;;
8096 esac
8097 fi
8098 if test "$with_gnu_ld" = no; then
8099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8100 hardcode_libdir_separator=:
8101
8102 case $host_cpu in
8103 hppa*64*|ia64*)
8104 hardcode_direct=no
8105 hardcode_shlibpath_var=no
8106 ;;
8107 *)
8108 hardcode_direct=yes
8109 hardcode_direct_absolute=yes
8110 export_dynamic_flag_spec='${wl}-E'
8111
8112 # hardcode_minus_L: Not really in the search PATH,
8113 # but as the default location of the library.
8114 hardcode_minus_L=yes
8115 ;;
8116 esac
8117 fi
8118 ;;
8119
8120 irix5* | irix6* | nonstopux*)
8121 if test "$GCC" = yes; then
8122 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'
8123 # Try to use the -exported_symbol ld option, if it does not
8124 # work, assume that -exports_file does not work either and
8125 # implicitly export all symbols.
8126 save_LDFLAGS="$LDFLAGS"
8127 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h. */
8130int foo(void) {}
8131_ACEOF
8132if ac_fn_c_try_link "$LINENO"; then :
8133 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'
8134
8135fi
8136rm -f core conftest.err conftest.$ac_objext \
8137 conftest$ac_exeext conftest.$ac_ext
8138 LDFLAGS="$save_LDFLAGS"
8139 else
8140 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'
8141 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'
8142 fi
8143 archive_cmds_need_lc='no'
8144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8145 hardcode_libdir_separator=:
8146 inherit_rpath=yes
8147 link_all_deplibs=yes
8148 ;;
8149
8150 netbsd* | netbsdelf*-gnu)
8151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8153 else
8154 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8155 fi
8156 hardcode_libdir_flag_spec='-R$libdir'
8157 hardcode_direct=yes
8158 hardcode_shlibpath_var=no
8159 ;;
8160
8161 newsos6)
8162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8163 hardcode_direct=yes
8164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8165 hardcode_libdir_separator=:
8166 hardcode_shlibpath_var=no
8167 ;;
8168
8169 *nto* | *qnx*)
8170 ;;
8171
8172 openbsd*)
8173 if test -f /usr/libexec/ld.so; then
8174 hardcode_direct=yes
8175 hardcode_shlibpath_var=no
8176 hardcode_direct_absolute=yes
8177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8179 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8180 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8181 export_dynamic_flag_spec='${wl}-E'
8182 else
8183 case $host_os in
8184 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8186 hardcode_libdir_flag_spec='-R$libdir'
8187 ;;
8188 *)
8189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8191 ;;
8192 esac
8193 fi
8194 else
8195 ld_shlibs=no
8196 fi
8197 ;;
8198
8199 os2*)
8200 hardcode_libdir_flag_spec='-L$libdir'
8201 hardcode_minus_L=yes
8202 allow_undefined_flag=unsupported
8203 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'
8204 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8205 ;;
8206
8207 osf3*)
8208 if test "$GCC" = yes; then
8209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8210 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'
8211 else
8212 allow_undefined_flag=' -expect_unresolved \*'
8213 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'
8214 fi
8215 archive_cmds_need_lc='no'
8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8217 hardcode_libdir_separator=:
8218 ;;
8219
8220 osf4* | osf5*) # as osf3* with the addition of -msym flag
8221 if test "$GCC" = yes; then
8222 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8223 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'
8224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8225 else
8226 allow_undefined_flag=' -expect_unresolved \*'
8227 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'
8228 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~
8229 $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'
8230
8231 # Both c and cxx compiler support -rpath directly
8232 hardcode_libdir_flag_spec='-rpath $libdir'
8233 fi
8234 archive_cmds_need_lc='no'
8235 hardcode_libdir_separator=:
8236 ;;
8237
8238 solaris*)
8239 no_undefined_flag=' -z defs'
8240 if test "$GCC" = yes; then
8241 wlarc='${wl}'
8242 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8244 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8245 else
8246 case `$CC -V 2>&1` in
8247 *"Compilers 5.0"*)
8248 wlarc=''
8249 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8250 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8251 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8252 ;;
8253 *)
8254 wlarc='${wl}'
8255 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8257 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8258 ;;
8259 esac
8260 fi
8261 hardcode_libdir_flag_spec='-R$libdir'
8262 hardcode_shlibpath_var=no
8263 case $host_os in
8264 solaris2.[0-5] | solaris2.[0-5].*) ;;
8265 *)
8266 # The compiler driver will combine and reorder linker options,
8267 # but understands `-z linker_flag'. GCC discards it without `$wl',
8268 # but is careful enough not to reorder.
8269 # Supported since Solaris 2.6 (maybe 2.5.1?)
8270 if test "$GCC" = yes; then
8271 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8272 else
8273 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8274 fi
8275 ;;
8276 esac
8277 link_all_deplibs=yes
8278 ;;
8279
8280 sunos4*)
8281 if test "x$host_vendor" = xsequent; then
8282 # Use $CC to link under sequent, because it throws in some extra .o
8283 # files that make .init and .fini sections work.
8284 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8285 else
8286 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8287 fi
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 hardcode_direct=yes
8290 hardcode_minus_L=yes
8291 hardcode_shlibpath_var=no
8292 ;;
8293
8294 sysv4)
8295 case $host_vendor in
8296 sni)
8297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8298 hardcode_direct=yes # is this really true???
8299 ;;
8300 siemens)
8301 ## LD is ld it makes a PLAMLIB
8302 ## CC just makes a GrossModule.
8303 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8304 reload_cmds='$CC -r -o $output$reload_objs'
8305 hardcode_direct=no
8306 ;;
8307 motorola)
8308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8310 ;;
8311 esac
8312 runpath_var='LD_RUN_PATH'
8313 hardcode_shlibpath_var=no
8314 ;;
8315
8316 sysv4.3*)
8317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318 hardcode_shlibpath_var=no
8319 export_dynamic_flag_spec='-Bexport'
8320 ;;
8321
8322 sysv4*MP*)
8323 if test -d /usr/nec; then
8324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8325 hardcode_shlibpath_var=no
8326 runpath_var=LD_RUN_PATH
8327 hardcode_runpath_var=yes
8328 ld_shlibs=yes
8329 fi
8330 ;;
8331
8332 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8333 no_undefined_flag='${wl}-z,text'
8334 archive_cmds_need_lc=no
8335 hardcode_shlibpath_var=no
8336 runpath_var='LD_RUN_PATH'
8337
8338 if test "$GCC" = yes; then
8339 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8340 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8341 else
8342 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 fi
8345 ;;
8346
8347 sysv5* | sco3.2v5* | sco5v6*)
8348 # Note: We can NOT use -z defs as we might desire, because we do not
8349 # link with -lc, and that would cause any symbols used from libc to
8350 # always be unresolved, which means just about no library would
8351 # ever link correctly. If we're not using GNU ld we use -z text
8352 # though, which does catch some bad symbols but isn't as heavy-handed
8353 # as -z defs.
8354 no_undefined_flag='${wl}-z,text'
8355 allow_undefined_flag='${wl}-z,nodefs'
8356 archive_cmds_need_lc=no
8357 hardcode_shlibpath_var=no
8358 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8359 hardcode_libdir_separator=':'
8360 link_all_deplibs=yes
8361 export_dynamic_flag_spec='${wl}-Bexport'
8362 runpath_var='LD_RUN_PATH'
8363
8364 if test "$GCC" = yes; then
8365 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8367 else
8368 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8369 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8370 fi
8371 ;;
8372
8373 uts4*)
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_libdir_flag_spec='-L$libdir'
8376 hardcode_shlibpath_var=no
8377 ;;
8378
8379 *)
8380 ld_shlibs=no
8381 ;;
8382 esac
8383
8384 if test x$host_vendor = xsni; then
8385 case $host in
8386 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8387 export_dynamic_flag_spec='${wl}-Blargedynsym'
8388 ;;
8389 esac
8390 fi
8391 fi
8392
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8394$as_echo "$ld_shlibs" >&6; }
8395test "$ld_shlibs" = no && can_build_shared=no
8396
8397with_gnu_ld=$with_gnu_ld
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413#
8414# Do we need to explicitly link libc?
8415#
8416case "x$archive_cmds_need_lc" in
8417x|xyes)
8418 # Assume -lc should be added
8419 archive_cmds_need_lc=yes
8420
8421 if test "$enable_shared" = yes && test "$GCC" = yes; then
8422 case $archive_cmds in
8423 *'~'*)
8424 # FIXME: we may have to deal with multi-command sequences.
8425 ;;
8426 '$CC '*)
8427 # Test whether the compiler implicitly links with -lc since on some
8428 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8429 # to ld, don't add -lc before -lgcc.
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8431$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8432 $RM conftest*
8433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8434
8435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8436 (eval $ac_compile) 2>&5
8437 ac_status=$?
8438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8439 test $ac_status = 0; } 2>conftest.err; then
8440 soname=conftest
8441 lib=conftest
8442 libobjs=conftest.$ac_objext
8443 deplibs=
8444 wl=$lt_prog_compiler_wl
8445 pic_flag=$lt_prog_compiler_pic
8446 compiler_flags=-v
8447 linker_flags=-v
8448 verstring=
8449 output_objdir=.
8450 libname=conftest
8451 lt_save_allow_undefined_flag=$allow_undefined_flag
8452 allow_undefined_flag=
8453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8454 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8455 ac_status=$?
8456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8457 test $ac_status = 0; }
8458 then
8459 archive_cmds_need_lc=no
8460 else
8461 archive_cmds_need_lc=yes
8462 fi
8463 allow_undefined_flag=$lt_save_allow_undefined_flag
8464 else
8465 cat conftest.err 1>&5
8466 fi
8467 $RM conftest*
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8469$as_echo "$archive_cmds_need_lc" >&6; }
8470 ;;
8471 esac
8472 fi
8473 ;;
8474esac
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8633$as_echo_n "checking dynamic linker characteristics... " >&6; }
8634
8635if test "$GCC" = yes; then
8636 case $host_os in
8637 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8638 *) lt_awk_arg="/^libraries:/" ;;
8639 esac
8640 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8641 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8642 # if the path contains ";" then we assume it to be the separator
8643 # otherwise default to the standard path separator (i.e. ":") - it is
8644 # assumed that no part of a normal pathname contains ";" but that should
8645 # okay in the real world where ";" in dirpaths is itself problematic.
8646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8647 else
8648 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8649 fi
8650 # Ok, now we have the path, separated by spaces, we can step through it
8651 # and add multilib dir if necessary.
8652 lt_tmp_lt_search_path_spec=
8653 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8654 for lt_sys_path in $lt_search_path_spec; do
8655 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8657 else
8658 test -d "$lt_sys_path" && \
8659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8660 fi
8661 done
8662 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8663BEGIN {RS=" "; FS="/|\n";} {
8664 lt_foo="";
8665 lt_count=0;
8666 for (lt_i = NF; lt_i > 0; lt_i--) {
8667 if ($lt_i != "" && $lt_i != ".") {
8668 if ($lt_i == "..") {
8669 lt_count++;
8670 } else {
8671 if (lt_count == 0) {
8672 lt_foo="/" $lt_i lt_foo;
8673 } else {
8674 lt_count--;
8675 }
8676 }
8677 }
8678 }
8679 if (lt_foo != "") { lt_freq[lt_foo]++; }
8680 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8681}'`
8682 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8683else
8684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8685fi
8686library_names_spec=
8687libname_spec='lib$name'
8688soname_spec=
8689shrext_cmds=".so"
8690postinstall_cmds=
8691postuninstall_cmds=
8692finish_cmds=
8693finish_eval=
8694shlibpath_var=
8695shlibpath_overrides_runpath=unknown
8696version_type=none
8697dynamic_linker="$host_os ld.so"
8698sys_lib_dlsearch_path_spec="/lib /usr/lib"
8699need_lib_prefix=unknown
8700hardcode_into_libs=no
8701
8702# when you set need_version to no, make sure it does not cause -set_version
8703# flags to be left without arguments
8704need_version=unknown
8705
8706case $host_os in
8707aix3*)
8708 version_type=linux
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8710 shlibpath_var=LIBPATH
8711
8712 # AIX 3 has no versioning support, so we append a major version to the name.
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 ;;
8715
8716aix[4-9]*)
8717 version_type=linux
8718 need_lib_prefix=no
8719 need_version=no
8720 hardcode_into_libs=yes
8721 if test "$host_cpu" = ia64; then
8722 # AIX 5 supports IA64
8723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8724 shlibpath_var=LD_LIBRARY_PATH
8725 else
8726 # With GCC up to 2.95.x, collect2 would create an import file
8727 # for dependence libraries. The import file would start with
8728 # the line `#! .'. This would cause the generated library to
8729 # depend on `.', always an invalid library. This was fixed in
8730 # development snapshots of GCC prior to 3.0.
8731 case $host_os in
8732 aix4 | aix4.[01] | aix4.[01].*)
8733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8734 echo ' yes '
8735 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8736 :
8737 else
8738 can_build_shared=no
8739 fi
8740 ;;
8741 esac
8742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8743 # soname into executable. Probably we can add versioning support to
8744 # collect2, so additional links can be useful in future.
8745 if test "$aix_use_runtimelinking" = yes; then
8746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8747 # instead of lib<name>.a to let people know that these are not
8748 # typical AIX shared libraries.
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750 else
8751 # We preserve .a as extension for shared libraries through AIX4.2
8752 # and later when we are not doing run time linking.
8753 library_names_spec='${libname}${release}.a $libname.a'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 fi
8756 shlibpath_var=LIBPATH
8757 fi
8758 ;;
8759
8760amigaos*)
8761 case $host_cpu in
8762 powerpc)
8763 # Since July 2007 AmigaOS4 officially supports .so libraries.
8764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 ;;
8767 m68k)
8768 library_names_spec='$libname.ixlibrary $libname.a'
8769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8770 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'
8771 ;;
8772 esac
8773 ;;
8774
8775beos*)
8776 library_names_spec='${libname}${shared_ext}'
8777 dynamic_linker="$host_os ld.so"
8778 shlibpath_var=LIBRARY_PATH
8779 ;;
8780
8781bsdi[45]*)
8782 version_type=linux
8783 need_version=no
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8790 # the default ld.so.conf also contains /usr/contrib/lib and
8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8792 # libtool to hard-code these into programs
8793 ;;
8794
8795cygwin* | mingw* | pw32* | cegcc*)
8796 version_type=windows
8797 shrext_cmds=".dll"
8798 need_version=no
8799 need_lib_prefix=no
8800
8801 case $GCC,$host_os in
8802 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8803 library_names_spec='$libname.dll.a'
8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805 postinstall_cmds='base_file=`basename \${file}`~
8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8807 dldir=$destdir/`dirname \$dlpath`~
8808 test -d \$dldir || mkdir -p \$dldir~
8809 $install_prog $dir/$dlname \$dldir/$dlname~
8810 chmod a+x \$dldir/$dlname~
8811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8813 fi'
8814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8815 dlpath=$dir/\$dldll~
8816 $RM \$dlpath'
8817 shlibpath_overrides_runpath=yes
8818
8819 case $host_os in
8820 cygwin*)
8821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8823 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8824 ;;
8825 mingw* | cegcc*)
8826 # MinGW DLLs use traditional 'lib' prefix
8827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8828 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8829 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8830 # It is most probably a Windows format PATH printed by
8831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8832 # path with ; separators, and with drive letters. We can handle the
8833 # drive letters (cygwin fileutils understands them), so leave them,
8834 # especially as we might pass files found there to a mingw objdump,
8835 # which wouldn't understand a cygwinified path. Ahh.
8836 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8837 else
8838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8839 fi
8840 ;;
8841 pw32*)
8842 # pw32 DLLs use 'pw' prefix rather than 'lib'
8843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8844 ;;
8845 esac
8846 ;;
8847
8848 *)
8849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8850 ;;
8851 esac
8852 dynamic_linker='Win32 ld.exe'
8853 # FIXME: first we should search . and the directory the executable is in
8854 shlibpath_var=PATH
8855 ;;
8856
8857darwin* | rhapsody*)
8858 dynamic_linker="$host_os dyld"
8859 version_type=darwin
8860 need_lib_prefix=no
8861 need_version=no
8862 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8863 soname_spec='${libname}${release}${major}$shared_ext'
8864 shlibpath_overrides_runpath=yes
8865 shlibpath_var=DYLD_LIBRARY_PATH
8866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8867
8868 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8870 ;;
8871
8872dgux*)
8873 version_type=linux
8874 need_lib_prefix=no
8875 need_version=no
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 ;;
8880
8881freebsd1*)
8882 dynamic_linker=no
8883 ;;
8884
8885freebsd* | dragonfly*)
8886 # DragonFly does not have aout. When/if they implement a new
8887 # versioning mechanism, adjust this.
8888 if test -x /usr/bin/objformat; then
8889 objformat=`/usr/bin/objformat`
8890 else
8891 case $host_os in
8892 freebsd[123]*) objformat=aout ;;
8893 *) objformat=elf ;;
8894 esac
8895 fi
8896 version_type=freebsd-$objformat
8897 case $version_type in
8898 freebsd-elf*)
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8900 need_version=no
8901 need_lib_prefix=no
8902 ;;
8903 freebsd-*)
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8905 need_version=yes
8906 ;;
8907 esac
8908 shlibpath_var=LD_LIBRARY_PATH
8909 case $host_os in
8910 freebsd2*)
8911 shlibpath_overrides_runpath=yes
8912 ;;
8913 freebsd3.[01]* | freebsdelf3.[01]*)
8914 shlibpath_overrides_runpath=yes
8915 hardcode_into_libs=yes
8916 ;;
8917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8919 shlibpath_overrides_runpath=no
8920 hardcode_into_libs=yes
8921 ;;
8922 *) # from 4.6 on, and DragonFly
8923 shlibpath_overrides_runpath=yes
8924 hardcode_into_libs=yes
8925 ;;
8926 esac
8927 ;;
8928
8929gnu*)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 hardcode_into_libs=yes
8937 ;;
8938
8939hpux9* | hpux10* | hpux11*)
8940 # Give a soname corresponding to the major version so that dld.sl refuses to
8941 # link against other versions.
8942 version_type=sunos
8943 need_lib_prefix=no
8944 need_version=no
8945 case $host_cpu in
8946 ia64*)
8947 shrext_cmds='.so'
8948 hardcode_into_libs=yes
8949 dynamic_linker="$host_os dld.so"
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 if test "X$HPUX_IA64_MODE" = X32; then
8955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8956 else
8957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8958 fi
8959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8960 ;;
8961 hppa*64*)
8962 shrext_cmds='.sl'
8963 hardcode_into_libs=yes
8964 dynamic_linker="$host_os dld.sl"
8965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8971 ;;
8972 *)
8973 shrext_cmds='.sl'
8974 dynamic_linker="$host_os dld.sl"
8975 shlibpath_var=SHLIB_PATH
8976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 ;;
8980 esac
8981 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8982 postinstall_cmds='chmod 555 $lib'
8983 ;;
8984
8985interix[3-9]*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 hardcode_into_libs=yes
8995 ;;
8996
8997irix5* | irix6* | nonstopux*)
8998 case $host_os in
8999 nonstopux*) version_type=nonstopux ;;
9000 *)
9001 if test "$lt_cv_prog_gnu_ld" = yes; then
9002 version_type=linux
9003 else
9004 version_type=irix
9005 fi ;;
9006 esac
9007 need_lib_prefix=no
9008 need_version=no
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9011 case $host_os in
9012 irix5* | nonstopux*)
9013 libsuff= shlibsuff=
9014 ;;
9015 *)
9016 case $LD in # libtool.m4 will add one of these switches to LD
9017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9018 libsuff= shlibsuff= libmagic=32-bit;;
9019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9020 libsuff=32 shlibsuff=N32 libmagic=N32;;
9021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9023 *) libsuff= shlibsuff= libmagic=never-match;;
9024 esac
9025 ;;
9026 esac
9027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9028 shlibpath_overrides_runpath=no
9029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9031 hardcode_into_libs=yes
9032 ;;
9033
9034# No shared lib support for Linux oldld, aout, or coff.
9035linux*oldld* | linux*aout* | linux*coff*)
9036 dynamic_linker=no
9037 ;;
9038
9039# This must be Linux ELF.
9040linux* | k*bsd*-gnu | kopensolaris*-gnu)
9041 version_type=linux
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 # Some binutils ld are patched to set DT_RUNPATH
9050 save_LDFLAGS=$LDFLAGS
9051 save_libdir=$libdir
9052 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9053 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055/* end confdefs.h. */
9056
9057int
9058main ()
9059{
9060
9061 ;
9062 return 0;
9063}
9064_ACEOF
9065if ac_fn_c_try_link "$LINENO"; then :
9066 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9067 shlibpath_overrides_runpath=yes
9068fi
9069fi
9070rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 LDFLAGS=$save_LDFLAGS
9073 libdir=$save_libdir
9074
9075 # This implies no fast_install, which is unacceptable.
9076 # Some rework will be needed to allow for fast_install
9077 # before this can be enabled.
9078 hardcode_into_libs=yes
9079
9080 # Append ld.so.conf contents to the search path
9081 if test -f /etc/ld.so.conf; then
9082 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' ' '`
9083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9084 fi
9085
9086 # We used to test for /lib/ld.so.1 and disable shared libraries on
9087 # powerpc, because MkLinux only supported shared libraries with the
9088 # GNU dynamic linker. Since this was broken with cross compilers,
9089 # most powerpc-linux boxes support dynamic linking these days and
9090 # people can always --disable-shared, the test was removed, and we
9091 # assume the GNU/Linux dynamic linker is in use.
9092 dynamic_linker='GNU/Linux ld.so'
9093 ;;
9094
9095netbsdelf*-gnu)
9096 version_type=linux
9097 need_lib_prefix=no
9098 need_version=no
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=no
9103 hardcode_into_libs=yes
9104 dynamic_linker='NetBSD ld.elf_so'
9105 ;;
9106
9107netbsd*)
9108 version_type=sunos
9109 need_lib_prefix=no
9110 need_version=no
9111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9114 dynamic_linker='NetBSD (a.out) ld.so'
9115 else
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 dynamic_linker='NetBSD ld.elf_so'
9119 fi
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 ;;
9124
9125newsos6)
9126 version_type=linux
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=yes
9130 ;;
9131
9132*nto* | *qnx*)
9133 version_type=qnx
9134 need_lib_prefix=no
9135 need_version=no
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 shlibpath_overrides_runpath=no
9140 hardcode_into_libs=yes
9141 dynamic_linker='ldqnx.so'
9142 ;;
9143
9144openbsd*)
9145 version_type=sunos
9146 sys_lib_dlsearch_path_spec="/usr/lib"
9147 need_lib_prefix=no
9148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9149 case $host_os in
9150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9151 *) need_version=no ;;
9152 esac
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9157 case $host_os in
9158 openbsd2.[89] | openbsd2.[89].*)
9159 shlibpath_overrides_runpath=no
9160 ;;
9161 *)
9162 shlibpath_overrides_runpath=yes
9163 ;;
9164 esac
9165 else
9166 shlibpath_overrides_runpath=yes
9167 fi
9168 ;;
9169
9170os2*)
9171 libname_spec='$name'
9172 shrext_cmds=".dll"
9173 need_lib_prefix=no
9174 library_names_spec='$libname${shared_ext} $libname.a'
9175 dynamic_linker='OS/2 ld.exe'
9176 shlibpath_var=LIBPATH
9177 ;;
9178
9179osf3* | osf4* | osf5*)
9180 version_type=osf
9181 need_lib_prefix=no
9182 need_version=no
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9188 ;;
9189
9190rdos*)
9191 dynamic_linker=no
9192 ;;
9193
9194solaris*)
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes
9202 hardcode_into_libs=yes
9203 # ldd complains unless libraries are executable
9204 postinstall_cmds='chmod +x $lib'
9205 ;;
9206
9207sunos4*)
9208 version_type=sunos
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 if test "$with_gnu_ld" = yes; then
9214 need_lib_prefix=no
9215 fi
9216 need_version=yes
9217 ;;
9218
9219sysv4 | sysv4.3*)
9220 version_type=linux
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 case $host_vendor in
9225 sni)
9226 shlibpath_overrides_runpath=no
9227 need_lib_prefix=no
9228 runpath_var=LD_RUN_PATH
9229 ;;
9230 siemens)
9231 need_lib_prefix=no
9232 ;;
9233 motorola)
9234 need_lib_prefix=no
9235 need_version=no
9236 shlibpath_overrides_runpath=no
9237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9238 ;;
9239 esac
9240 ;;
9241
9242sysv4*MP*)
9243 if test -d /usr/nec ;then
9244 version_type=linux
9245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9246 soname_spec='$libname${shared_ext}.$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 fi
9249 ;;
9250
9251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9252 version_type=freebsd-elf
9253 need_lib_prefix=no
9254 need_version=no
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 hardcode_into_libs=yes
9260 if test "$with_gnu_ld" = yes; then
9261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9262 else
9263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9264 case $host_os in
9265 sco3.2v5*)
9266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9267 ;;
9268 esac
9269 fi
9270 sys_lib_dlsearch_path_spec='/usr/lib'
9271 ;;
9272
9273tpf*)
9274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9275 version_type=linux
9276 need_lib_prefix=no
9277 need_version=no
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 shlibpath_overrides_runpath=no
9281 hardcode_into_libs=yes
9282 ;;
9283
9284uts4*)
9285 version_type=linux
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 ;;
9290
9291*)
9292 dynamic_linker=no
9293 ;;
9294esac
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9296$as_echo "$dynamic_linker" >&6; }
9297test "$dynamic_linker" = no && can_build_shared=no
9298
9299variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9300if test "$GCC" = yes; then
9301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9302fi
9303
9304if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9305 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9306fi
9307if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9308 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9309fi
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9398$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9399hardcode_action=
9400if test -n "$hardcode_libdir_flag_spec" ||
9401 test -n "$runpath_var" ||
9402 test "X$hardcode_automatic" = "Xyes" ; then
9403
9404 # We can hardcode non-existent directories.
9405 if test "$hardcode_direct" != no &&
9406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9407 # have to relink, otherwise we might link with an installed library
9408 # when we should be linking with a yet-to-be-installed one
9409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9410 test "$hardcode_minus_L" != no; then
9411 # Linking always hardcodes the temporary library directory.
9412 hardcode_action=relink
9413 else
9414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9415 hardcode_action=immediate
9416 fi
9417else
9418 # We cannot hardcode anything, or else we can only hardcode existing
9419 # directories.
9420 hardcode_action=unsupported
9421fi
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9423$as_echo "$hardcode_action" >&6; }
9424
9425if test "$hardcode_action" = relink ||
9426 test "$inherit_rpath" = yes; then
9427 # Fast installation is not supported
9428 enable_fast_install=no
9429elif test "$shlibpath_overrides_runpath" = yes ||
9430 test "$enable_shared" = no; then
9431 # Fast installation is not necessary
9432 enable_fast_install=needless
9433fi
9434
9435
9436
9437
9438
9439
9440 if test "x$enable_dlopen" != xyes; then
9441 enable_dlopen=unknown
9442 enable_dlopen_self=unknown
9443 enable_dlopen_self_static=unknown
9444else
9445 lt_cv_dlopen=no
9446 lt_cv_dlopen_libs=
9447
9448 case $host_os in
9449 beos*)
9450 lt_cv_dlopen="load_add_on"
9451 lt_cv_dlopen_libs=
9452 lt_cv_dlopen_self=yes
9453 ;;
9454
9455 mingw* | pw32* | cegcc*)
9456 lt_cv_dlopen="LoadLibrary"
9457 lt_cv_dlopen_libs=
9458 ;;
9459
9460 cygwin*)
9461 lt_cv_dlopen="dlopen"
9462 lt_cv_dlopen_libs=
9463 ;;
9464
9465 darwin*)
9466 # if libdl is installed we need to link against it
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9468$as_echo_n "checking for dlopen in -ldl... " >&6; }
9469if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471else
9472 ac_check_lib_save_LIBS=$LIBS
9473LIBS="-ldl $LIBS"
9474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h. */
9476
9477/* Override any GCC internal prototype to avoid an error.
9478 Use char because int might match the return type of a GCC
9479 builtin and then its argument prototype would still apply. */
9480#ifdef __cplusplus
9481extern "C"
9482#endif
9483char dlopen ();
9484int
9485main ()
9486{
9487return dlopen ();
9488 ;
9489 return 0;
9490}
9491_ACEOF
9492if ac_fn_c_try_link "$LINENO"; then :
9493 ac_cv_lib_dl_dlopen=yes
9494else
9495 ac_cv_lib_dl_dlopen=no
9496fi
9497rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499LIBS=$ac_check_lib_save_LIBS
9500fi
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9502$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9503if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9505else
9506
9507 lt_cv_dlopen="dyld"
9508 lt_cv_dlopen_libs=
9509 lt_cv_dlopen_self=yes
9510
9511fi
9512
9513 ;;
9514
9515 *)
9516 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9517if test "x$ac_cv_func_shl_load" = x""yes; then :
9518 lt_cv_dlopen="shl_load"
9519else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9521$as_echo_n "checking for shl_load in -ldld... " >&6; }
9522if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9524else
9525 ac_check_lib_save_LIBS=$LIBS
9526LIBS="-ldld $LIBS"
9527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h. */
9529
9530/* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9533#ifdef __cplusplus
9534extern "C"
9535#endif
9536char shl_load ();
9537int
9538main ()
9539{
9540return shl_load ();
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545if ac_fn_c_try_link "$LINENO"; then :
9546 ac_cv_lib_dld_shl_load=yes
9547else
9548 ac_cv_lib_dld_shl_load=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552LIBS=$ac_check_lib_save_LIBS
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9555$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9556if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9557 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9558else
9559 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9560if test "x$ac_cv_func_dlopen" = x""yes; then :
9561 lt_cv_dlopen="dlopen"
9562else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9564$as_echo_n "checking for dlopen in -ldl... " >&6; }
9565if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567else
9568 ac_check_lib_save_LIBS=$LIBS
9569LIBS="-ldl $LIBS"
9570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h. */
9572
9573/* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576#ifdef __cplusplus
9577extern "C"
9578#endif
9579char dlopen ();
9580int
9581main ()
9582{
9583return dlopen ();
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589 ac_cv_lib_dl_dlopen=yes
9590else
9591 ac_cv_lib_dl_dlopen=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595LIBS=$ac_check_lib_save_LIBS
9596fi
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9598$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9599if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9601else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9603$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9604if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606else
9607 ac_check_lib_save_LIBS=$LIBS
9608LIBS="-lsvld $LIBS"
9609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h. */
9611
9612/* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615#ifdef __cplusplus
9616extern "C"
9617#endif
9618char dlopen ();
9619int
9620main ()
9621{
9622return dlopen ();
9623 ;
9624 return 0;
9625}
9626_ACEOF
9627if ac_fn_c_try_link "$LINENO"; then :
9628 ac_cv_lib_svld_dlopen=yes
9629else
9630 ac_cv_lib_svld_dlopen=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634LIBS=$ac_check_lib_save_LIBS
9635fi
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9637$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9638if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9640else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9642$as_echo_n "checking for dld_link in -ldld... " >&6; }
9643if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9644 $as_echo_n "(cached) " >&6
9645else
9646 ac_check_lib_save_LIBS=$LIBS
9647LIBS="-ldld $LIBS"
9648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h. */
9650
9651/* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654#ifdef __cplusplus
9655extern "C"
9656#endif
9657char dld_link ();
9658int
9659main ()
9660{
9661return dld_link ();
9662 ;
9663 return 0;
9664}
9665_ACEOF
9666if ac_fn_c_try_link "$LINENO"; then :
9667 ac_cv_lib_dld_dld_link=yes
9668else
9669 ac_cv_lib_dld_dld_link=no
9670fi
9671rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673LIBS=$ac_check_lib_save_LIBS
9674fi
9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9676$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9677if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9678 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9679fi
9680
9681
9682fi
9683
9684
9685fi
9686
9687
9688fi
9689
9690
9691fi
9692
9693
9694fi
9695
9696 ;;
9697 esac
9698
9699 if test "x$lt_cv_dlopen" != xno; then
9700 enable_dlopen=yes
9701 else
9702 enable_dlopen=no
9703 fi
9704
9705 case $lt_cv_dlopen in
9706 dlopen)
9707 save_CPPFLAGS="$CPPFLAGS"
9708 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9709
9710 save_LDFLAGS="$LDFLAGS"
9711 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9712
9713 save_LIBS="$LIBS"
9714 LIBS="$lt_cv_dlopen_libs $LIBS"
9715
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9717$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9718if test "${lt_cv_dlopen_self+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720else
9721 if test "$cross_compiling" = yes; then :
9722 lt_cv_dlopen_self=cross
9723else
9724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9725 lt_status=$lt_dlunknown
9726 cat > conftest.$ac_ext <<_LT_EOF
9727#line 9727 "configure"
9728#include "confdefs.h"
9729
9730#if HAVE_DLFCN_H
9731#include <dlfcn.h>
9732#endif
9733
9734#include <stdio.h>
9735
9736#ifdef RTLD_GLOBAL
9737# define LT_DLGLOBAL RTLD_GLOBAL
9738#else
9739# ifdef DL_GLOBAL
9740# define LT_DLGLOBAL DL_GLOBAL
9741# else
9742# define LT_DLGLOBAL 0
9743# endif
9744#endif
9745
9746/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9747 find out it does not work in some platform. */
9748#ifndef LT_DLLAZY_OR_NOW
9749# ifdef RTLD_LAZY
9750# define LT_DLLAZY_OR_NOW RTLD_LAZY
9751# else
9752# ifdef DL_LAZY
9753# define LT_DLLAZY_OR_NOW DL_LAZY
9754# else
9755# ifdef RTLD_NOW
9756# define LT_DLLAZY_OR_NOW RTLD_NOW
9757# else
9758# ifdef DL_NOW
9759# define LT_DLLAZY_OR_NOW DL_NOW
9760# else
9761# define LT_DLLAZY_OR_NOW 0
9762# endif
9763# endif
9764# endif
9765# endif
9766#endif
9767
9768void fnord() { int i=42;}
9769int main ()
9770{
9771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9772 int status = $lt_dlunknown;
9773
9774 if (self)
9775 {
9776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9778 /* dlclose (self); */
9779 }
9780 else
9781 puts (dlerror ());
9782
9783 return status;
9784}
9785_LT_EOF
9786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9787 (eval $ac_link) 2>&5
9788 ac_status=$?
9789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9791 (./conftest; exit; ) >&5 2>/dev/null
9792 lt_status=$?
9793 case x$lt_status in
9794 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9795 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9796 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9797 esac
9798 else :
9799 # compilation failed
9800 lt_cv_dlopen_self=no
9801 fi
9802fi
9803rm -fr conftest*
9804
9805
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9808$as_echo "$lt_cv_dlopen_self" >&6; }
9809
9810 if test "x$lt_cv_dlopen_self" = xyes; then
9811 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9813$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9814if test "${lt_cv_dlopen_self_static+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9816else
9817 if test "$cross_compiling" = yes; then :
9818 lt_cv_dlopen_self_static=cross
9819else
9820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9821 lt_status=$lt_dlunknown
9822 cat > conftest.$ac_ext <<_LT_EOF
9823#line 9823 "configure"
9824#include "confdefs.h"
9825
9826#if HAVE_DLFCN_H
9827#include <dlfcn.h>
9828#endif
9829
9830#include <stdio.h>
9831
9832#ifdef RTLD_GLOBAL
9833# define LT_DLGLOBAL RTLD_GLOBAL
9834#else
9835# ifdef DL_GLOBAL
9836# define LT_DLGLOBAL DL_GLOBAL
9837# else
9838# define LT_DLGLOBAL 0
9839# endif
9840#endif
9841
9842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9843 find out it does not work in some platform. */
9844#ifndef LT_DLLAZY_OR_NOW
9845# ifdef RTLD_LAZY
9846# define LT_DLLAZY_OR_NOW RTLD_LAZY
9847# else
9848# ifdef DL_LAZY
9849# define LT_DLLAZY_OR_NOW DL_LAZY
9850# else
9851# ifdef RTLD_NOW
9852# define LT_DLLAZY_OR_NOW RTLD_NOW
9853# else
9854# ifdef DL_NOW
9855# define LT_DLLAZY_OR_NOW DL_NOW
9856# else
9857# define LT_DLLAZY_OR_NOW 0
9858# endif
9859# endif
9860# endif
9861# endif
9862#endif
9863
9864void fnord() { int i=42;}
9865int main ()
9866{
9867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9868 int status = $lt_dlunknown;
9869
9870 if (self)
9871 {
9872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9873 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9874 /* dlclose (self); */
9875 }
9876 else
9877 puts (dlerror ());
9878
9879 return status;
9880}
9881_LT_EOF
9882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9883 (eval $ac_link) 2>&5
9884 ac_status=$?
9885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9886 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9887 (./conftest; exit; ) >&5 2>/dev/null
9888 lt_status=$?
9889 case x$lt_status in
9890 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9891 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9892 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9893 esac
9894 else :
9895 # compilation failed
9896 lt_cv_dlopen_self_static=no
9897 fi
9898fi
9899rm -fr conftest*
9900
9901
9902fi
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9904$as_echo "$lt_cv_dlopen_self_static" >&6; }
9905 fi
9906
9907 CPPFLAGS="$save_CPPFLAGS"
9908 LDFLAGS="$save_LDFLAGS"
9909 LIBS="$save_LIBS"
9910 ;;
9911 esac
9912
9913 case $lt_cv_dlopen_self in
9914 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9915 *) enable_dlopen_self=unknown ;;
9916 esac
9917
9918 case $lt_cv_dlopen_self_static in
9919 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9920 *) enable_dlopen_self_static=unknown ;;
9921 esac
9922fi
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940striplib=
9941old_striplib=
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9943$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9944if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9945 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9946 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948$as_echo "yes" >&6; }
9949else
9950# FIXME - insert some real tests, host_os isn't really good enough
9951 case $host_os in
9952 darwin*)
9953 if test -n "$STRIP" ; then
9954 striplib="$STRIP -x"
9955 old_striplib="$STRIP -S"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9957$as_echo "yes" >&6; }
9958 else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960$as_echo "no" >&6; }
9961 fi
9962 ;;
9963 *)
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965$as_echo "no" >&6; }
9966 ;;
9967 esac
9968fi
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981 # Report which library types will actually be built
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9983$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9985$as_echo "$can_build_shared" >&6; }
9986
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9988$as_echo_n "checking whether to build shared libraries... " >&6; }
9989 test "$can_build_shared" = "no" && enable_shared=no
9990
9991 # On AIX, shared libraries and static libraries use the same namespace, and
9992 # are all built from PIC.
9993 case $host_os in
9994 aix3*)
9995 test "$enable_shared" = yes && enable_static=no
9996 if test -n "$RANLIB"; then
9997 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9998 postinstall_cmds='$RANLIB $lib'
9999 fi
10000 ;;
10001
10002 aix[4-9]*)
10003 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10004 test "$enable_shared" = yes && enable_static=no
10005 fi
10006 ;;
10007 esac
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10009$as_echo "$enable_shared" >&6; }
10010
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10012$as_echo_n "checking whether to build static libraries... " >&6; }
10013 # Make sure either enable_shared or enable_static is yes.
10014 test "$enable_shared" = yes || enable_static=yes
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10016$as_echo "$enable_static" >&6; }
10017
10018
10019
10020
10021fi
10022ac_ext=c
10023ac_cpp='$CPP $CPPFLAGS'
10024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10026ac_compiler_gnu=$ac_cv_c_compiler_gnu
10027
10028CC="$lt_save_CC"
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042 ac_config_commands="$ac_config_commands libtool"
10043
10044
10045
10046
10047# Only expand once:
10048
10049
10050
10051
10052if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10053 if test -n "$ac_tool_prefix"; then
10054 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10055set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057$as_echo_n "checking for $ac_word... " >&6; }
10058if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060else
10061 case $PKG_CONFIG in
10062 [\\/]* | ?:[\\/]*)
10063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10064 ;;
10065 *)
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067for as_dir in $PATH
10068do
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10073 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10076 fi
10077done
10078 done
10079IFS=$as_save_IFS
10080
10081 ;;
10082esac
10083fi
10084PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10085if test -n "$PKG_CONFIG"; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10087$as_echo "$PKG_CONFIG" >&6; }
10088else
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090$as_echo "no" >&6; }
10091fi
10092
10093
10094fi
10095if test -z "$ac_cv_path_PKG_CONFIG"; then
10096 ac_pt_PKG_CONFIG=$PKG_CONFIG
10097 # Extract the first word of "pkg-config", so it can be a program name with args.
10098set dummy pkg-config; ac_word=$2
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100$as_echo_n "checking for $ac_word... " >&6; }
10101if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10103else
10104 case $ac_pt_PKG_CONFIG in
10105 [\\/]* | ?:[\\/]*)
10106 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10107 ;;
10108 *)
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110for as_dir in $PATH
10111do
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10116 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10119 fi
10120done
10121 done
10122IFS=$as_save_IFS
10123
10124 ;;
10125esac
10126fi
10127ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10128if test -n "$ac_pt_PKG_CONFIG"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10130$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10131else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133$as_echo "no" >&6; }
10134fi
10135
10136 if test "x$ac_pt_PKG_CONFIG" = x; then
10137 PKG_CONFIG=""
10138 else
10139 case $cross_compiling:$ac_tool_warned in
10140yes:)
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10143ac_tool_warned=yes ;;
10144esac
10145 PKG_CONFIG=$ac_pt_PKG_CONFIG
10146 fi
10147else
10148 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10149fi
10150
10151fi
10152if test -n "$PKG_CONFIG"; then
10153 _pkg_min_version=0.22
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10155$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10156 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158$as_echo "yes" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
10162 PKG_CONFIG=""
10163 fi
10164
10165fi
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10167$as_echo_n "checking for GNU make... " >&6; }
10168if test "${_cv_gnu_make_command+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170else
10171 _cv_gnu_make_command='' ;
10172 for a in "$MAKE" make gmake gnumake ; do
10173 if test -z "$a" ; then continue ; fi ;
10174 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10175 _cv_gnu_make_command=$a ;
10176 break;
10177 fi
10178 done ;
10179
10180fi
10181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10182$as_echo "$_cv_gnu_make_command" >&6; } ;
10183 if test "x$_cv_gnu_make_command" != "x" ; then
10184 ifGNUmake='' ;
10185 else
10186 ifGNUmake='#' ;
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10188$as_echo "\"Not found\"" >&6; };
10189 fi
10190
10191
10192if test "x$_cv_gnu_make_command" = x; then :
10193 as_fn_error "You need GNU make" "$LINENO" 5
10194fi
10195ac_ext=cpp
10196ac_cpp='$CXXCPP $CPPFLAGS'
10197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10200if test -z "$CXX"; then
10201 if test -n "$CCC"; then
10202 CXX=$CCC
10203 else
10204 if test -n "$ac_tool_prefix"; then
10205 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10206 do
10207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210$as_echo_n "checking for $ac_word... " >&6; }
10211if test "${ac_cv_prog_CXX+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213else
10214 if test -n "$CXX"; then
10215 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228done
10229 done
10230IFS=$as_save_IFS
10231
10232fi
10233fi
10234CXX=$ac_cv_prog_CXX
10235if test -n "$CXX"; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10237$as_echo "$CXX" >&6; }
10238else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
10241fi
10242
10243
10244 test -n "$CXX" && break
10245 done
10246fi
10247if test -z "$CXX"; then
10248 ac_ct_CXX=$CXX
10249 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10250do
10251 # Extract the first word of "$ac_prog", so it can be a program name with args.
10252set dummy $ac_prog; ac_word=$2
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254$as_echo_n "checking for $ac_word... " >&6; }
10255if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10257else
10258 if test -n "$ac_ct_CXX"; then
10259 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10260else
10261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $PATH
10263do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_prog_ac_ct_CXX="$ac_prog"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10271 fi
10272done
10273 done
10274IFS=$as_save_IFS
10275
10276fi
10277fi
10278ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10279if test -n "$ac_ct_CXX"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10281$as_echo "$ac_ct_CXX" >&6; }
10282else
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284$as_echo "no" >&6; }
10285fi
10286
10287
10288 test -n "$ac_ct_CXX" && break
10289done
10290
10291 if test "x$ac_ct_CXX" = x; then
10292 CXX="g++"
10293 else
10294 case $cross_compiling:$ac_tool_warned in
10295yes:)
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10298ac_tool_warned=yes ;;
10299esac
10300 CXX=$ac_ct_CXX
10301 fi
10302fi
10303
10304 fi
10305fi
10306# Provide some information about the compiler.
10307$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10308set X $ac_compile
10309ac_compiler=$2
10310for ac_option in --version -v -V -qversion; do
10311 { { ac_try="$ac_compiler $ac_option >&5"
10312case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10317$as_echo "$ac_try_echo"; } >&5
10318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10319 ac_status=$?
10320 if test -s conftest.err; then
10321 sed '10a\
10322... rest of stderr output deleted ...
10323 10q' conftest.err >conftest.er1
10324 cat conftest.er1 >&5
10325 fi
10326 rm -f conftest.er1 conftest.err
10327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10328 test $ac_status = 0; }
10329done
10330
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10332$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10333if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
10335else
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h. */
10338
10339int
10340main ()
10341{
10342#ifndef __GNUC__
10343 choke me
10344#endif
10345
10346 ;
10347 return 0;
10348}
10349_ACEOF
10350if ac_fn_cxx_try_compile "$LINENO"; then :
10351 ac_compiler_gnu=yes
10352else
10353 ac_compiler_gnu=no
10354fi
10355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10357
10358fi
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10360$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10361if test $ac_compiler_gnu = yes; then
10362 GXX=yes
10363else
10364 GXX=
10365fi
10366ac_test_CXXFLAGS=${CXXFLAGS+set}
10367ac_save_CXXFLAGS=$CXXFLAGS
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10369$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10370if test "${ac_cv_prog_cxx_g+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10372else
10373 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10374 ac_cxx_werror_flag=yes
10375 ac_cv_prog_cxx_g=no
10376 CXXFLAGS="-g"
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h. */
10379
10380int
10381main ()
10382{
10383
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388if ac_fn_cxx_try_compile "$LINENO"; then :
10389 ac_cv_prog_cxx_g=yes
10390else
10391 CXXFLAGS=""
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h. */
10394
10395int
10396main ()
10397{
10398
10399 ;
10400 return 0;
10401}
10402_ACEOF
10403if ac_fn_cxx_try_compile "$LINENO"; then :
10404
10405else
10406 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10407 CXXFLAGS="-g"
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h. */
10410
10411int
10412main ()
10413{
10414
10415 ;
10416 return 0;
10417}
10418_ACEOF
10419if ac_fn_cxx_try_compile "$LINENO"; then :
10420 ac_cv_prog_cxx_g=yes
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423fi
10424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10425fi
10426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10430$as_echo "$ac_cv_prog_cxx_g" >&6; }
10431if test "$ac_test_CXXFLAGS" = set; then
10432 CXXFLAGS=$ac_save_CXXFLAGS
10433elif test $ac_cv_prog_cxx_g = yes; then
10434 if test "$GXX" = yes; then
10435 CXXFLAGS="-g -O2"
10436 else
10437 CXXFLAGS="-g"
10438 fi
10439else
10440 if test "$GXX" = yes; then
10441 CXXFLAGS="-O2"
10442 else
10443 CXXFLAGS=
10444 fi
10445fi
10446ac_ext=c
10447ac_cpp='$CPP $CPPFLAGS'
10448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10450ac_compiler_gnu=$ac_cv_c_compiler_gnu
10451
10452
10453ac_ext=cpp
10454ac_cpp='$CXXCPP $CPPFLAGS'
10455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10458if test -z "$CXX"; then
10459 if test -n "$CCC"; then
10460 CXX=$CCC
10461 else
10462 if test -n "$ac_tool_prefix"; then
10463 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10464 do
10465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468$as_echo_n "checking for $ac_word... " >&6; }
10469if test "${ac_cv_prog_CXX+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
10471else
10472 if test -n "$CXX"; then
10473 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10474else
10475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $PATH
10477do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10482 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486done
10487 done
10488IFS=$as_save_IFS
10489
10490fi
10491fi
10492CXX=$ac_cv_prog_CXX
10493if test -n "$CXX"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10495$as_echo "$CXX" >&6; }
10496else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498$as_echo "no" >&6; }
10499fi
10500
10501
10502 test -n "$CXX" && break
10503 done
10504fi
10505if test -z "$CXX"; then
10506 ac_ct_CXX=$CXX
10507 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10508do
10509 # Extract the first word of "$ac_prog", so it can be a program name with args.
10510set dummy $ac_prog; ac_word=$2
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
10513if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 if test -n "$ac_ct_CXX"; then
10517 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_prog_ac_ct_CXX="$ac_prog"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531 done
10532IFS=$as_save_IFS
10533
10534fi
10535fi
10536ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10537if test -n "$ac_ct_CXX"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10539$as_echo "$ac_ct_CXX" >&6; }
10540else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
10543fi
10544
10545
10546 test -n "$ac_ct_CXX" && break
10547done
10548
10549 if test "x$ac_ct_CXX" = x; then
10550 CXX="g++"
10551 else
10552 case $cross_compiling:$ac_tool_warned in
10553yes:)
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10556ac_tool_warned=yes ;;
10557esac
10558 CXX=$ac_ct_CXX
10559 fi
10560fi
10561
10562 fi
10563fi
10564# Provide some information about the compiler.
10565$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10566set X $ac_compile
10567ac_compiler=$2
10568for ac_option in --version -v -V -qversion; do
10569 { { ac_try="$ac_compiler $ac_option >&5"
10570case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573esac
10574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10575$as_echo "$ac_try_echo"; } >&5
10576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10577 ac_status=$?
10578 if test -s conftest.err; then
10579 sed '10a\
10580... rest of stderr output deleted ...
10581 10q' conftest.err >conftest.er1
10582 cat conftest.er1 >&5
10583 fi
10584 rm -f conftest.er1 conftest.err
10585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10586 test $ac_status = 0; }
10587done
10588
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10590$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10591if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593else
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h. */
10596
10597int
10598main ()
10599{
10600#ifndef __GNUC__
10601 choke me
10602#endif
10603
10604 ;
10605 return 0;
10606}
10607_ACEOF
10608if ac_fn_cxx_try_compile "$LINENO"; then :
10609 ac_compiler_gnu=yes
10610else
10611 ac_compiler_gnu=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10615
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10618$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10619if test $ac_compiler_gnu = yes; then
10620 GXX=yes
10621else
10622 GXX=
10623fi
10624ac_test_CXXFLAGS=${CXXFLAGS+set}
10625ac_save_CXXFLAGS=$CXXFLAGS
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10627$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10628if test "${ac_cv_prog_cxx_g+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630else
10631 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10632 ac_cxx_werror_flag=yes
10633 ac_cv_prog_cxx_g=no
10634 CXXFLAGS="-g"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636/* end confdefs.h. */
10637
10638int
10639main ()
10640{
10641
10642 ;
10643 return 0;
10644}
10645_ACEOF
10646if ac_fn_cxx_try_compile "$LINENO"; then :
10647 ac_cv_prog_cxx_g=yes
10648else
10649 CXXFLAGS=""
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651/* end confdefs.h. */
10652
10653int
10654main ()
10655{
10656
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661if ac_fn_cxx_try_compile "$LINENO"; then :
10662
10663else
10664 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10665 CXXFLAGS="-g"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667/* end confdefs.h. */
10668
10669int
10670main ()
10671{
10672
10673 ;
10674 return 0;
10675}
10676_ACEOF
10677if ac_fn_cxx_try_compile "$LINENO"; then :
10678 ac_cv_prog_cxx_g=yes
10679fi
10680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681fi
10682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683fi
10684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10686fi
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10688$as_echo "$ac_cv_prog_cxx_g" >&6; }
10689if test "$ac_test_CXXFLAGS" = set; then
10690 CXXFLAGS=$ac_save_CXXFLAGS
10691elif test $ac_cv_prog_cxx_g = yes; then
10692 if test "$GXX" = yes; then
10693 CXXFLAGS="-g -O2"
10694 else
10695 CXXFLAGS="-g"
10696 fi
10697else
10698 if test "$GXX" = yes; then
10699 CXXFLAGS="-O2"
10700 else
10701 CXXFLAGS=
10702 fi
10703fi
10704ac_ext=c
10705ac_cpp='$CPP $CPPFLAGS'
10706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10708ac_compiler_gnu=$ac_cv_c_compiler_gnu
10709
10710if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10712 (test "X$CXX" != "Xg++"))) ; then
10713 ac_ext=cpp
10714ac_cpp='$CXXCPP $CPPFLAGS'
10715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10719$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10720if test -z "$CXXCPP"; then
10721 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10723else
10724 # Double quotes because CXXCPP needs to be expanded
10725 for CXXCPP in "$CXX -E" "/lib/cpp"
10726 do
10727 ac_preproc_ok=false
10728for ac_cxx_preproc_warn_flag in '' yes
10729do
10730 # Use a header file that comes with gcc, so configuring glibc
10731 # with a fresh cross-compiler works.
10732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 # <limits.h> exists even on freestanding compilers.
10734 # On the NeXT, cc -E runs the code through the compiler's parser,
10735 # not just through cpp. "Syntax error" is here to catch this case.
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h. */
10738#ifdef __STDC__
10739# include <limits.h>
10740#else
10741# include <assert.h>
10742#endif
10743 Syntax error
10744_ACEOF
10745if ac_fn_cxx_try_cpp "$LINENO"; then :
10746
10747else
10748 # Broken: fails on valid input.
10749continue
10750fi
10751rm -f conftest.err conftest.$ac_ext
10752
10753 # OK, works on sane cases. Now check whether nonexistent headers
10754 # can be detected and how.
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756/* end confdefs.h. */
10757#include <ac_nonexistent.h>
10758_ACEOF
10759if ac_fn_cxx_try_cpp "$LINENO"; then :
10760 # Broken: success on invalid input.
10761continue
10762else
10763 # Passes both tests.
10764ac_preproc_ok=:
10765break
10766fi
10767rm -f conftest.err conftest.$ac_ext
10768
10769done
10770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10771rm -f conftest.err conftest.$ac_ext
10772if $ac_preproc_ok; then :
10773 break
10774fi
10775
10776 done
10777 ac_cv_prog_CXXCPP=$CXXCPP
10778
10779fi
10780 CXXCPP=$ac_cv_prog_CXXCPP
10781else
10782 ac_cv_prog_CXXCPP=$CXXCPP
10783fi
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10785$as_echo "$CXXCPP" >&6; }
10786ac_preproc_ok=false
10787for ac_cxx_preproc_warn_flag in '' yes
10788do
10789 # Use a header file that comes with gcc, so configuring glibc
10790 # with a fresh cross-compiler works.
10791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 # <limits.h> exists even on freestanding compilers.
10793 # On the NeXT, cc -E runs the code through the compiler's parser,
10794 # not just through cpp. "Syntax error" is here to catch this case.
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796/* end confdefs.h. */
10797#ifdef __STDC__
10798# include <limits.h>
10799#else
10800# include <assert.h>
10801#endif
10802 Syntax error
10803_ACEOF
10804if ac_fn_cxx_try_cpp "$LINENO"; then :
10805
10806else
10807 # Broken: fails on valid input.
10808continue
10809fi
10810rm -f conftest.err conftest.$ac_ext
10811
10812 # OK, works on sane cases. Now check whether nonexistent headers
10813 # can be detected and how.
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815/* end confdefs.h. */
10816#include <ac_nonexistent.h>
10817_ACEOF
10818if ac_fn_cxx_try_cpp "$LINENO"; then :
10819 # Broken: success on invalid input.
10820continue
10821else
10822 # Passes both tests.
10823ac_preproc_ok=:
10824break
10825fi
10826rm -f conftest.err conftest.$ac_ext
10827
10828done
10829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10830rm -f conftest.err conftest.$ac_ext
10831if $ac_preproc_ok; then :
10832
10833else
10834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10836_lt_caught_CXX_error=yes; }
10837fi
10838
10839ac_ext=c
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845else
10846 _lt_caught_CXX_error=yes
10847fi
10848
10849
10850
10851
10852ac_ext=cpp
10853ac_cpp='$CXXCPP $CPPFLAGS'
10854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10857
10858archive_cmds_need_lc_CXX=no
10859allow_undefined_flag_CXX=
10860always_export_symbols_CXX=no
10861archive_expsym_cmds_CXX=
10862compiler_needs_object_CXX=no
10863export_dynamic_flag_spec_CXX=
10864hardcode_direct_CXX=no
10865hardcode_direct_absolute_CXX=no
10866hardcode_libdir_flag_spec_CXX=
10867hardcode_libdir_flag_spec_ld_CXX=
10868hardcode_libdir_separator_CXX=
10869hardcode_minus_L_CXX=no
10870hardcode_shlibpath_var_CXX=unsupported
10871hardcode_automatic_CXX=no
10872inherit_rpath_CXX=no
10873module_cmds_CXX=
10874module_expsym_cmds_CXX=
10875link_all_deplibs_CXX=unknown
10876old_archive_cmds_CXX=$old_archive_cmds
10877no_undefined_flag_CXX=
10878whole_archive_flag_spec_CXX=
10879enable_shared_with_static_runtimes_CXX=no
10880
10881# Source file extension for C++ test sources.
10882ac_ext=cpp
10883
10884# Object file extension for compiled C++ test sources.
10885objext=o
10886objext_CXX=$objext
10887
10888# No sense in running all these tests if we already determined that
10889# the CXX compiler isn't working. Some variables (like enable_shared)
10890# are currently assumed to apply to all compilers on this platform,
10891# and will be corrupted by setting them based on a non-working compiler.
10892if test "$_lt_caught_CXX_error" != yes; then
10893 # Code to be used in simple compile tests
10894 lt_simple_compile_test_code="int some_variable = 0;"
10895
10896 # Code to be used in simple link tests
10897 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10898
10899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10900
10901
10902
10903
10904
10905
10906# If no C compiler was specified, use CC.
10907LTCC=${LTCC-"$CC"}
10908
10909# If no C compiler flags were specified, use CFLAGS.
10910LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10911
10912# Allow CC to be a program name with arguments.
10913compiler=$CC
10914
10915
10916 # save warnings/boilerplate of simple test code
10917 ac_outfile=conftest.$ac_objext
10918echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10919eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10920_lt_compiler_boilerplate=`cat conftest.err`
10921$RM conftest*
10922
10923 ac_outfile=conftest.$ac_objext
10924echo "$lt_simple_link_test_code" >conftest.$ac_ext
10925eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10926_lt_linker_boilerplate=`cat conftest.err`
10927$RM -r conftest*
10928
10929
10930 # Allow CC to be a program name with arguments.
10931 lt_save_CC=$CC
10932 lt_save_LD=$LD
10933 lt_save_GCC=$GCC
10934 GCC=$GXX
10935 lt_save_with_gnu_ld=$with_gnu_ld
10936 lt_save_path_LD=$lt_cv_path_LD
10937 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10938 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10939 else
10940 $as_unset lt_cv_prog_gnu_ld
10941 fi
10942 if test -n "${lt_cv_path_LDCXX+set}"; then
10943 lt_cv_path_LD=$lt_cv_path_LDCXX
10944 else
10945 $as_unset lt_cv_path_LD
10946 fi
10947 test -z "${LDCXX+set}" || LD=$LDCXX
10948 CC=${CXX-"c++"}
10949 compiler=$CC
10950 compiler_CXX=$CC
10951 for cc_temp in $compiler""; do
10952 case $cc_temp in
10953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10955 \-*) ;;
10956 *) break;;
10957 esac
10958done
10959cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10960
10961
10962 if test -n "$compiler"; then
10963 # We don't want -fno-exception when compiling C++ code, so set the
10964 # no_builtin_flag separately
10965 if test "$GXX" = yes; then
10966 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10967 else
10968 lt_prog_compiler_no_builtin_flag_CXX=
10969 fi
10970
10971 if test "$GXX" = yes; then
10972 # Set up default GNU C++ configuration
10973
10974
10975
10976# Check whether --with-gnu-ld was given.
10977if test "${with_gnu_ld+set}" = set; then :
10978 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10979else
10980 with_gnu_ld=no
10981fi
10982
10983ac_prog=ld
10984if test "$GCC" = yes; then
10985 # Check if gcc -print-prog-name=ld gives a path.
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10987$as_echo_n "checking for ld used by $CC... " >&6; }
10988 case $host in
10989 *-*-mingw*)
10990 # gcc leaves a trailing carriage return which upsets mingw
10991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10992 *)
10993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10994 esac
10995 case $ac_prog in
10996 # Accept absolute paths.
10997 [\\/]* | ?:[\\/]*)
10998 re_direlt='/[^/][^/]*/\.\./'
10999 # Canonicalize the pathname of ld
11000 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11001 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11002 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11003 done
11004 test -z "$LD" && LD="$ac_prog"
11005 ;;
11006 "")
11007 # If it fails, then pretend we aren't using GCC.
11008 ac_prog=ld
11009 ;;
11010 *)
11011 # If it is relative, then search for the first ld in PATH.
11012 with_gnu_ld=unknown
11013 ;;
11014 esac
11015elif test "$with_gnu_ld" = yes; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11017$as_echo_n "checking for GNU ld... " >&6; }
11018else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11020$as_echo_n "checking for non-GNU ld... " >&6; }
11021fi
11022if test "${lt_cv_path_LD+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
11024else
11025 if test -z "$LD"; then
11026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11027 for ac_dir in $PATH; do
11028 IFS="$lt_save_ifs"
11029 test -z "$ac_dir" && ac_dir=.
11030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11031 lt_cv_path_LD="$ac_dir/$ac_prog"
11032 # Check to see if the program is GNU ld. I'd rather use --version,
11033 # but apparently some variants of GNU ld only accept -v.
11034 # Break only if it was the GNU/non-GNU ld that we prefer.
11035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11036 *GNU* | *'with BFD'*)
11037 test "$with_gnu_ld" != no && break
11038 ;;
11039 *)
11040 test "$with_gnu_ld" != yes && break
11041 ;;
11042 esac
11043 fi
11044 done
11045 IFS="$lt_save_ifs"
11046else
11047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11048fi
11049fi
11050
11051LD="$lt_cv_path_LD"
11052if test -n "$LD"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11054$as_echo "$LD" >&6; }
11055else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057$as_echo "no" >&6; }
11058fi
11059test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11061$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11062if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
11064else
11065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11066case `$LD -v 2>&1 </dev/null` in
11067*GNU* | *'with BFD'*)
11068 lt_cv_prog_gnu_ld=yes
11069 ;;
11070*)
11071 lt_cv_prog_gnu_ld=no
11072 ;;
11073esac
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11076$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11077with_gnu_ld=$lt_cv_prog_gnu_ld
11078
11079
11080
11081
11082
11083
11084
11085 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11086 # archiving commands below assume that GNU ld is being used.
11087 if test "$with_gnu_ld" = yes; then
11088 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089 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'
11090
11091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11093
11094 # If archive_cmds runs LD, not CC, wlarc should be empty
11095 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11096 # investigate it a little bit more. (MM)
11097 wlarc='${wl}'
11098
11099 # ancient GNU ld didn't support --whole-archive et. al.
11100 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11101 $GREP 'no-whole-archive' > /dev/null; then
11102 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11103 else
11104 whole_archive_flag_spec_CXX=
11105 fi
11106 else
11107 with_gnu_ld=no
11108 wlarc=
11109
11110 # A generic and very simple default shared library creation
11111 # command for GNU C++ for the case where it uses the native
11112 # linker, instead of GNU ld. If possible, this setting should
11113 # overridden to take advantage of the native linker features on
11114 # the platform it is being used on.
11115 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11116 fi
11117
11118 # Commands to make compiler produce verbose output that lists
11119 # what "hidden" libraries, object files and flags are used when
11120 # linking a shared library.
11121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11122
11123 else
11124 GXX=no
11125 with_gnu_ld=no
11126 wlarc=
11127 fi
11128
11129 # PORTME: fill in a description of your system's C++ link characteristics
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11131$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11132 ld_shlibs_CXX=yes
11133 case $host_os in
11134 aix3*)
11135 # FIXME: insert proper C++ library support
11136 ld_shlibs_CXX=no
11137 ;;
11138 aix[4-9]*)
11139 if test "$host_cpu" = ia64; then
11140 # On IA64, the linker does run time linking by default, so we don't
11141 # have to do anything special.
11142 aix_use_runtimelinking=no
11143 exp_sym_flag='-Bexport'
11144 no_entry_flag=""
11145 else
11146 aix_use_runtimelinking=no
11147
11148 # Test if we are trying to use run time linking or normal
11149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11150 # need to do runtime linking.
11151 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11152 for ld_flag in $LDFLAGS; do
11153 case $ld_flag in
11154 *-brtl*)
11155 aix_use_runtimelinking=yes
11156 break
11157 ;;
11158 esac
11159 done
11160 ;;
11161 esac
11162
11163 exp_sym_flag='-bexport'
11164 no_entry_flag='-bnoentry'
11165 fi
11166
11167 # When large executables or shared objects are built, AIX ld can
11168 # have problems creating the table of contents. If linking a library
11169 # or program results in "error TOC overflow" add -mminimal-toc to
11170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11172
11173 archive_cmds_CXX=''
11174 hardcode_direct_CXX=yes
11175 hardcode_direct_absolute_CXX=yes
11176 hardcode_libdir_separator_CXX=':'
11177 link_all_deplibs_CXX=yes
11178 file_list_spec_CXX='${wl}-f,'
11179
11180 if test "$GXX" = yes; then
11181 case $host_os in aix4.[012]|aix4.[012].*)
11182 # We only want to do this on AIX 4.2 and lower, the check
11183 # below for broken collect2 doesn't work under 4.3+
11184 collect2name=`${CC} -print-prog-name=collect2`
11185 if test -f "$collect2name" &&
11186 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11187 then
11188 # We have reworked collect2
11189 :
11190 else
11191 # We have old collect2
11192 hardcode_direct_CXX=unsupported
11193 # It fails to find uninstalled libraries when the uninstalled
11194 # path is not listed in the libpath. Setting hardcode_minus_L
11195 # to unsupported forces relinking
11196 hardcode_minus_L_CXX=yes
11197 hardcode_libdir_flag_spec_CXX='-L$libdir'
11198 hardcode_libdir_separator_CXX=
11199 fi
11200 esac
11201 shared_flag='-shared'
11202 if test "$aix_use_runtimelinking" = yes; then
11203 shared_flag="$shared_flag "'${wl}-G'
11204 fi
11205 else
11206 # not using gcc
11207 if test "$host_cpu" = ia64; then
11208 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11209 # chokes on -Wl,-G. The following line is correct:
11210 shared_flag='-G'
11211 else
11212 if test "$aix_use_runtimelinking" = yes; then
11213 shared_flag='${wl}-G'
11214 else
11215 shared_flag='${wl}-bM:SRE'
11216 fi
11217 fi
11218 fi
11219
11220 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11221 # It seems that -bexpall does not export symbols beginning with
11222 # underscore (_), so it is better to generate a list of symbols to
11223 # export.
11224 always_export_symbols_CXX=yes
11225 if test "$aix_use_runtimelinking" = yes; then
11226 # Warning - without using the other runtime loading flags (-brtl),
11227 # -berok will link without error, but may produce a broken library.
11228 allow_undefined_flag_CXX='-berok'
11229 # Determine the default libpath from the value encoded in an empty
11230 # executable.
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232/* end confdefs.h. */
11233
11234int
11235main ()
11236{
11237
11238 ;
11239 return 0;
11240}
11241_ACEOF
11242if ac_fn_cxx_try_link "$LINENO"; then :
11243
11244lt_aix_libpath_sed='
11245 /Import File Strings/,/^$/ {
11246 /^0/ {
11247 s/^0 *\(.*\)$/\1/
11248 p
11249 }
11250 }'
11251aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11252# Check for a 64-bit object if we didn't find anything.
11253if test -z "$aix_libpath"; then
11254 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11255fi
11256fi
11257rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11260
11261 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11262
11263 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"
11264 else
11265 if test "$host_cpu" = ia64; then
11266 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11267 allow_undefined_flag_CXX="-z nodefs"
11268 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"
11269 else
11270 # Determine the default libpath from the value encoded in an
11271 # empty executable.
11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h. */
11274
11275int
11276main ()
11277{
11278
11279 ;
11280 return 0;
11281}
11282_ACEOF
11283if ac_fn_cxx_try_link "$LINENO"; then :
11284
11285lt_aix_libpath_sed='
11286 /Import File Strings/,/^$/ {
11287 /^0/ {
11288 s/^0 *\(.*\)$/\1/
11289 p
11290 }
11291 }'
11292aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11293# Check for a 64-bit object if we didn't find anything.
11294if test -z "$aix_libpath"; then
11295 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11296fi
11297fi
11298rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11301
11302 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11303 # Warning - without using the other run time loading flags,
11304 # -berok will link without error, but may produce a broken library.
11305 no_undefined_flag_CXX=' ${wl}-bernotok'
11306 allow_undefined_flag_CXX=' ${wl}-berok'
11307 # Exported symbols can be pulled into shared objects from archives
11308 whole_archive_flag_spec_CXX='$convenience'
11309 archive_cmds_need_lc_CXX=yes
11310 # This is similar to how AIX traditionally builds its shared
11311 # libraries.
11312 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'
11313 fi
11314 fi
11315 ;;
11316
11317 beos*)
11318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11319 allow_undefined_flag_CXX=unsupported
11320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11321 # support --undefined. This deserves some investigation. FIXME
11322 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11323 else
11324 ld_shlibs_CXX=no
11325 fi
11326 ;;
11327
11328 chorus*)
11329 case $cc_basename in
11330 *)
11331 # FIXME: insert proper C++ library support
11332 ld_shlibs_CXX=no
11333 ;;
11334 esac
11335 ;;
11336
11337 cygwin* | mingw* | pw32* | cegcc*)
11338 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11339 # as there is no search path for DLLs.
11340 hardcode_libdir_flag_spec_CXX='-L$libdir'
11341 allow_undefined_flag_CXX=unsupported
11342 always_export_symbols_CXX=no
11343 enable_shared_with_static_runtimes_CXX=yes
11344
11345 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11346 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'
11347 # If the export-symbols file already is a .def file (1st line
11348 # is EXPORTS), use it as is; otherwise, prepend...
11349 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11350 cp $export_symbols $output_objdir/$soname.def;
11351 else
11352 echo EXPORTS > $output_objdir/$soname.def;
11353 cat $export_symbols >> $output_objdir/$soname.def;
11354 fi~
11355 $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'
11356 else
11357 ld_shlibs_CXX=no
11358 fi
11359 ;;
11360 darwin* | rhapsody*)
11361
11362
11363 archive_cmds_need_lc_CXX=no
11364 hardcode_direct_CXX=no
11365 hardcode_automatic_CXX=yes
11366 hardcode_shlibpath_var_CXX=unsupported
11367 whole_archive_flag_spec_CXX=''
11368 link_all_deplibs_CXX=yes
11369 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11370 case $cc_basename in
11371 ifort*) _lt_dar_can_shared=yes ;;
11372 *) _lt_dar_can_shared=$GCC ;;
11373 esac
11374 if test "$_lt_dar_can_shared" = "yes"; then
11375 output_verbose_link_cmd=echo
11376 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}"
11377 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11378 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}"
11379 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}"
11380 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11381 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}"
11382 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}"
11383 fi
11384
11385 else
11386 ld_shlibs_CXX=no
11387 fi
11388
11389 ;;
11390
11391 dgux*)
11392 case $cc_basename in
11393 ec++*)
11394 # FIXME: insert proper C++ library support
11395 ld_shlibs_CXX=no
11396 ;;
11397 ghcx*)
11398 # Green Hills C++ Compiler
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11401 ;;
11402 *)
11403 # FIXME: insert proper C++ library support
11404 ld_shlibs_CXX=no
11405 ;;
11406 esac
11407 ;;
11408
11409 freebsd[12]*)
11410 # C++ shared libraries reported to be fairly broken before
11411 # switch to ELF
11412 ld_shlibs_CXX=no
11413 ;;
11414
11415 freebsd-elf*)
11416 archive_cmds_need_lc_CXX=no
11417 ;;
11418
11419 freebsd* | dragonfly*)
11420 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11421 # conventions
11422 ld_shlibs_CXX=yes
11423 ;;
11424
11425 gnu*)
11426 ;;
11427
11428 hpux9*)
11429 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11430 hardcode_libdir_separator_CXX=:
11431 export_dynamic_flag_spec_CXX='${wl}-E'
11432 hardcode_direct_CXX=yes
11433 hardcode_minus_L_CXX=yes # Not in the search PATH,
11434 # but as the default
11435 # location of the library.
11436
11437 case $cc_basename in
11438 CC*)
11439 # FIXME: insert proper C++ library support
11440 ld_shlibs_CXX=no
11441 ;;
11442 aCC*)
11443 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'
11444 # Commands to make compiler produce verbose output that lists
11445 # what "hidden" libraries, object files and flags are used when
11446 # linking a shared library.
11447 #
11448 # There doesn't appear to be a way to prevent this compiler from
11449 # explicitly linking system object files so we need to strip them
11450 # from the output so that they don't get included in the library
11451 # dependencies.
11452 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'
11453 ;;
11454 *)
11455 if test "$GXX" = yes; then
11456 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'
11457 else
11458 # FIXME: insert proper C++ library support
11459 ld_shlibs_CXX=no
11460 fi
11461 ;;
11462 esac
11463 ;;
11464
11465 hpux10*|hpux11*)
11466 if test $with_gnu_ld = no; then
11467 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11468 hardcode_libdir_separator_CXX=:
11469
11470 case $host_cpu in
11471 hppa*64*|ia64*)
11472 ;;
11473 *)
11474 export_dynamic_flag_spec_CXX='${wl}-E'
11475 ;;
11476 esac
11477 fi
11478 case $host_cpu in
11479 hppa*64*|ia64*)
11480 hardcode_direct_CXX=no
11481 hardcode_shlibpath_var_CXX=no
11482 ;;
11483 *)
11484 hardcode_direct_CXX=yes
11485 hardcode_direct_absolute_CXX=yes
11486 hardcode_minus_L_CXX=yes # Not in the search PATH,
11487 # but as the default
11488 # location of the library.
11489 ;;
11490 esac
11491
11492 case $cc_basename in
11493 CC*)
11494 # FIXME: insert proper C++ library support
11495 ld_shlibs_CXX=no
11496 ;;
11497 aCC*)
11498 case $host_cpu in
11499 hppa*64*)
11500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11501 ;;
11502 ia64*)
11503 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11504 ;;
11505 *)
11506 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11507 ;;
11508 esac
11509 # Commands to make compiler produce verbose output that lists
11510 # what "hidden" libraries, object files and flags are used when
11511 # linking a shared library.
11512 #
11513 # There doesn't appear to be a way to prevent this compiler from
11514 # explicitly linking system object files so we need to strip them
11515 # from the output so that they don't get included in the library
11516 # dependencies.
11517 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'
11518 ;;
11519 *)
11520 if test "$GXX" = yes; then
11521 if test $with_gnu_ld = no; then
11522 case $host_cpu in
11523 hppa*64*)
11524 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525 ;;
11526 ia64*)
11527 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11528 ;;
11529 *)
11530 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'
11531 ;;
11532 esac
11533 fi
11534 else
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 fi
11538 ;;
11539 esac
11540 ;;
11541
11542 interix[3-9]*)
11543 hardcode_direct_CXX=no
11544 hardcode_shlibpath_var_CXX=no
11545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11546 export_dynamic_flag_spec_CXX='${wl}-E'
11547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11548 # Instead, shared libraries are loaded at an image base (0x10000000 by
11549 # default) and relocated if they conflict, which is a slow very memory
11550 # consuming and fragmenting process. To avoid this, we pick a random,
11551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11553 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'
11554 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'
11555 ;;
11556 irix5* | irix6*)
11557 case $cc_basename in
11558 CC*)
11559 # SGI C++
11560 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'
11561
11562 # Archives containing C++ object files must be created using
11563 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11564 # necessary to make sure instantiated templates are included
11565 # in the archive.
11566 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11567 ;;
11568 *)
11569 if test "$GXX" = yes; then
11570 if test "$with_gnu_ld" = no; then
11571 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'
11572 else
11573 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'
11574 fi
11575 fi
11576 link_all_deplibs_CXX=yes
11577 ;;
11578 esac
11579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11580 hardcode_libdir_separator_CXX=:
11581 inherit_rpath_CXX=yes
11582 ;;
11583
11584 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11585 case $cc_basename in
11586 KCC*)
11587 # Kuck and Associates, Inc. (KAI) C++ Compiler
11588
11589 # KCC will only create a shared library if the output file
11590 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11591 # to its proper name (with version) after linking.
11592 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'
11593 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'
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11597 #
11598 # There doesn't appear to be a way to prevent this compiler from
11599 # explicitly linking system object files so we need to strip them
11600 # from the output so that they don't get included in the library
11601 # dependencies.
11602 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'
11603
11604 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11605 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11606
11607 # Archives containing C++ object files must be created using
11608 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11609 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11610 ;;
11611 icpc* | ecpc* )
11612 # Intel C++
11613 with_gnu_ld=yes
11614 # version 8.0 and above of icpc choke on multiply defined symbols
11615 # if we add $predep_objects and $postdep_objects, however 7.1 and
11616 # earlier do not add the objects themselves.
11617 case `$CC -V 2>&1` in
11618 *"Version 7."*)
11619 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620 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'
11621 ;;
11622 *) # Version 8.0 or newer
11623 tmp_idyn=
11624 case $host_cpu in
11625 ia64*) tmp_idyn=' -i_dynamic';;
11626 esac
11627 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11628 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'
11629 ;;
11630 esac
11631 archive_cmds_need_lc_CXX=no
11632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11634 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11635 ;;
11636 pgCC* | pgcpp*)
11637 # Portland Group C++ compiler
11638 case `$CC -V` in
11639 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11640 prelink_cmds_CXX='tpldir=Template.dir~
11641 rm -rf $tpldir~
11642 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11643 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11644 old_archive_cmds_CXX='tpldir=Template.dir~
11645 rm -rf $tpldir~
11646 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11647 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11648 $RANLIB $oldlib'
11649 archive_cmds_CXX='tpldir=Template.dir~
11650 rm -rf $tpldir~
11651 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11652 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11653 archive_expsym_cmds_CXX='tpldir=Template.dir~
11654 rm -rf $tpldir~
11655 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11656 $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'
11657 ;;
11658 *) # Version 6 will use weak symbols
11659 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11660 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'
11661 ;;
11662 esac
11663
11664 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11666 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'
11667 ;;
11668 cxx*)
11669 # Compaq C++
11670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11671 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'
11672
11673 runpath_var=LD_RUN_PATH
11674 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11675 hardcode_libdir_separator_CXX=:
11676
11677 # Commands to make compiler produce verbose output that lists
11678 # what "hidden" libraries, object files and flags are used when
11679 # linking a shared library.
11680 #
11681 # There doesn't appear to be a way to prevent this compiler from
11682 # explicitly linking system object files so we need to strip them
11683 # from the output so that they don't get included in the library
11684 # dependencies.
11685 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'
11686 ;;
11687 xl*)
11688 # IBM XL 8.0 on PPC, with GNU ld
11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11691 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11692 if test "x$supports_anon_versioning" = xyes; then
11693 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11694 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11695 echo "local: *; };" >> $output_objdir/$libname.ver~
11696 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11697 fi
11698 ;;
11699 *)
11700 case `$CC -V 2>&1 | sed 5q` in
11701 *Sun\ C*)
11702 # Sun C++ 5.9
11703 no_undefined_flag_CXX=' -zdefs'
11704 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11705 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'
11706 hardcode_libdir_flag_spec_CXX='-R$libdir'
11707 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'
11708 compiler_needs_object_CXX=yes
11709
11710 # Not sure whether something based on
11711 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11712 # would be better.
11713 output_verbose_link_cmd='echo'
11714
11715 # Archives containing C++ object files must be created using
11716 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11717 # necessary to make sure instantiated templates are included
11718 # in the archive.
11719 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11720 ;;
11721 esac
11722 ;;
11723 esac
11724 ;;
11725
11726 lynxos*)
11727 # FIXME: insert proper C++ library support
11728 ld_shlibs_CXX=no
11729 ;;
11730
11731 m88k*)
11732 # FIXME: insert proper C++ library support
11733 ld_shlibs_CXX=no
11734 ;;
11735
11736 mvs*)
11737 case $cc_basename in
11738 cxx*)
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11741 ;;
11742 *)
11743 # FIXME: insert proper C++ library support
11744 ld_shlibs_CXX=no
11745 ;;
11746 esac
11747 ;;
11748
11749 netbsd*)
11750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11751 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11752 wlarc=
11753 hardcode_libdir_flag_spec_CXX='-R$libdir'
11754 hardcode_direct_CXX=yes
11755 hardcode_shlibpath_var_CXX=no
11756 fi
11757 # Workaround some broken pre-1.5 toolchains
11758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11759 ;;
11760
11761 *nto* | *qnx*)
11762 ld_shlibs_CXX=yes
11763 ;;
11764
11765 openbsd2*)
11766 # C++ shared libraries are fairly broken
11767 ld_shlibs_CXX=no
11768 ;;
11769
11770 openbsd*)
11771 if test -f /usr/libexec/ld.so; then
11772 hardcode_direct_CXX=yes
11773 hardcode_shlibpath_var_CXX=no
11774 hardcode_direct_absolute_CXX=yes
11775 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11778 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11779 export_dynamic_flag_spec_CXX='${wl}-E'
11780 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11781 fi
11782 output_verbose_link_cmd=echo
11783 else
11784 ld_shlibs_CXX=no
11785 fi
11786 ;;
11787
11788 osf3* | osf4* | osf5*)
11789 case $cc_basename in
11790 KCC*)
11791 # Kuck and Associates, Inc. (KAI) C++ Compiler
11792
11793 # KCC will only create a shared library if the output file
11794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11795 # to its proper name (with version) after linking.
11796 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'
11797
11798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11799 hardcode_libdir_separator_CXX=:
11800
11801 # Archives containing C++ object files must be created using
11802 # the KAI C++ compiler.
11803 case $host in
11804 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11805 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11806 esac
11807 ;;
11808 RCC*)
11809 # Rational C++ 2.4.1
11810 # FIXME: insert proper C++ library support
11811 ld_shlibs_CXX=no
11812 ;;
11813 cxx*)
11814 case $host in
11815 osf3*)
11816 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11817 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'
11818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11819 ;;
11820 *)
11821 allow_undefined_flag_CXX=' -expect_unresolved \*'
11822 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'
11823 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11824 echo "-hidden">> $lib.exp~
11825 $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~
11826 $RM $lib.exp'
11827 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11828 ;;
11829 esac
11830
11831 hardcode_libdir_separator_CXX=:
11832
11833 # Commands to make compiler produce verbose output that lists
11834 # what "hidden" libraries, object files and flags are used when
11835 # linking a shared library.
11836 #
11837 # There doesn't appear to be a way to prevent this compiler from
11838 # explicitly linking system object files so we need to strip them
11839 # from the output so that they don't get included in the library
11840 # dependencies.
11841 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'
11842 ;;
11843 *)
11844 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11846 case $host in
11847 osf3*)
11848 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'
11849 ;;
11850 *)
11851 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'
11852 ;;
11853 esac
11854
11855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11856 hardcode_libdir_separator_CXX=:
11857
11858 # Commands to make compiler produce verbose output that lists
11859 # what "hidden" libraries, object files and flags are used when
11860 # linking a shared library.
11861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11862
11863 else
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11866 fi
11867 ;;
11868 esac
11869 ;;
11870
11871 psos*)
11872 # FIXME: insert proper C++ library support
11873 ld_shlibs_CXX=no
11874 ;;
11875
11876 sunos4*)
11877 case $cc_basename in
11878 CC*)
11879 # Sun C++ 4.x
11880 # FIXME: insert proper C++ library support
11881 ld_shlibs_CXX=no
11882 ;;
11883 lcc*)
11884 # Lucid
11885 # FIXME: insert proper C++ library support
11886 ld_shlibs_CXX=no
11887 ;;
11888 *)
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892 esac
11893 ;;
11894
11895 solaris*)
11896 case $cc_basename in
11897 CC*)
11898 # Sun C++ 4.2, 5.x and Centerline C++
11899 archive_cmds_need_lc_CXX=yes
11900 no_undefined_flag_CXX=' -zdefs'
11901 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11902 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11903 $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'
11904
11905 hardcode_libdir_flag_spec_CXX='-R$libdir'
11906 hardcode_shlibpath_var_CXX=no
11907 case $host_os in
11908 solaris2.[0-5] | solaris2.[0-5].*) ;;
11909 *)
11910 # The compiler driver will combine and reorder linker options,
11911 # but understands `-z linker_flag'.
11912 # Supported since Solaris 2.6 (maybe 2.5.1?)
11913 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11914 ;;
11915 esac
11916 link_all_deplibs_CXX=yes
11917
11918 output_verbose_link_cmd='echo'
11919
11920 # Archives containing C++ object files must be created using
11921 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11922 # necessary to make sure instantiated templates are included
11923 # in the archive.
11924 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11925 ;;
11926 gcx*)
11927 # Green Hills C++ Compiler
11928 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11929
11930 # The C++ compiler must be used to create the archive.
11931 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11932 ;;
11933 *)
11934 # GNU C++ compiler with Solaris linker
11935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11936 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11937 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11938 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11939 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11940 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11941
11942 # Commands to make compiler produce verbose output that lists
11943 # what "hidden" libraries, object files and flags are used when
11944 # linking a shared library.
11945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11946 else
11947 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11948 # platform.
11949 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11950 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11951 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11952
11953 # Commands to make compiler produce verbose output that lists
11954 # what "hidden" libraries, object files and flags are used when
11955 # linking a shared library.
11956 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11957 fi
11958
11959 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11960 case $host_os in
11961 solaris2.[0-5] | solaris2.[0-5].*) ;;
11962 *)
11963 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11964 ;;
11965 esac
11966 fi
11967 ;;
11968 esac
11969 ;;
11970
11971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11972 no_undefined_flag_CXX='${wl}-z,text'
11973 archive_cmds_need_lc_CXX=no
11974 hardcode_shlibpath_var_CXX=no
11975 runpath_var='LD_RUN_PATH'
11976
11977 case $cc_basename in
11978 CC*)
11979 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11981 ;;
11982 *)
11983 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11985 ;;
11986 esac
11987 ;;
11988
11989 sysv5* | sco3.2v5* | sco5v6*)
11990 # Note: We can NOT use -z defs as we might desire, because we do not
11991 # link with -lc, and that would cause any symbols used from libc to
11992 # always be unresolved, which means just about no library would
11993 # ever link correctly. If we're not using GNU ld we use -z text
11994 # though, which does catch some bad symbols but isn't as heavy-handed
11995 # as -z defs.
11996 no_undefined_flag_CXX='${wl}-z,text'
11997 allow_undefined_flag_CXX='${wl}-z,nodefs'
11998 archive_cmds_need_lc_CXX=no
11999 hardcode_shlibpath_var_CXX=no
12000 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12001 hardcode_libdir_separator_CXX=':'
12002 link_all_deplibs_CXX=yes
12003 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12004 runpath_var='LD_RUN_PATH'
12005
12006 case $cc_basename in
12007 CC*)
12008 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12009 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12010 ;;
12011 *)
12012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12014 ;;
12015 esac
12016 ;;
12017
12018 tandem*)
12019 case $cc_basename in
12020 NCC*)
12021 # NonStop-UX NCC 3.20
12022 # FIXME: insert proper C++ library support
12023 ld_shlibs_CXX=no
12024 ;;
12025 *)
12026 # FIXME: insert proper C++ library support
12027 ld_shlibs_CXX=no
12028 ;;
12029 esac
12030 ;;
12031
12032 vxworks*)
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12035 ;;
12036
12037 *)
12038 # FIXME: insert proper C++ library support
12039 ld_shlibs_CXX=no
12040 ;;
12041 esac
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12044$as_echo "$ld_shlibs_CXX" >&6; }
12045 test "$ld_shlibs_CXX" = no && can_build_shared=no
12046
12047 GCC_CXX="$GXX"
12048 LD_CXX="$LD"
12049
12050 ## CAVEAT EMPTOR:
12051 ## There is no encapsulation within the following macros, do not change
12052 ## the running order or otherwise move them around unless you know exactly
12053 ## what you are doing...
12054 # Dependencies to place before and after the object being linked:
12055predep_objects_CXX=
12056postdep_objects_CXX=
12057predeps_CXX=
12058postdeps_CXX=
12059compiler_lib_search_path_CXX=
12060
12061cat > conftest.$ac_ext <<_LT_EOF
12062class Foo
12063{
12064public:
12065 Foo (void) { a = 0; }
12066private:
12067 int a;
12068};
12069_LT_EOF
12070
12071if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12072 (eval $ac_compile) 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12075 test $ac_status = 0; }; then
12076 # Parse the compiler output and extract the necessary
12077 # objects, libraries and library flags.
12078
12079 # Sentinel used to keep track of whether or not we are before
12080 # the conftest object file.
12081 pre_test_object_deps_done=no
12082
12083 for p in `eval "$output_verbose_link_cmd"`; do
12084 case $p in
12085
12086 -L* | -R* | -l*)
12087 # Some compilers place space between "-{L,R}" and the path.
12088 # Remove the space.
12089 if test $p = "-L" ||
12090 test $p = "-R"; then
12091 prev=$p
12092 continue
12093 else
12094 prev=
12095 fi
12096
12097 if test "$pre_test_object_deps_done" = no; then
12098 case $p in
12099 -L* | -R*)
12100 # Internal compiler library paths should come after those
12101 # provided the user. The postdeps already come after the
12102 # user supplied libs so there is no need to process them.
12103 if test -z "$compiler_lib_search_path_CXX"; then
12104 compiler_lib_search_path_CXX="${prev}${p}"
12105 else
12106 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12107 fi
12108 ;;
12109 # The "-l" case would never come before the object being
12110 # linked, so don't bother handling this case.
12111 esac
12112 else
12113 if test -z "$postdeps_CXX"; then
12114 postdeps_CXX="${prev}${p}"
12115 else
12116 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12117 fi
12118 fi
12119 ;;
12120
12121 *.$objext)
12122 # This assumes that the test object file only shows up
12123 # once in the compiler output.
12124 if test "$p" = "conftest.$objext"; then
12125 pre_test_object_deps_done=yes
12126 continue
12127 fi
12128
12129 if test "$pre_test_object_deps_done" = no; then
12130 if test -z "$predep_objects_CXX"; then
12131 predep_objects_CXX="$p"
12132 else
12133 predep_objects_CXX="$predep_objects_CXX $p"
12134 fi
12135 else
12136 if test -z "$postdep_objects_CXX"; then
12137 postdep_objects_CXX="$p"
12138 else
12139 postdep_objects_CXX="$postdep_objects_CXX $p"
12140 fi
12141 fi
12142 ;;
12143
12144 *) ;; # Ignore the rest.
12145
12146 esac
12147 done
12148
12149 # Clean up.
12150 rm -f a.out a.exe
12151else
12152 echo "libtool.m4: error: problem compiling CXX test program"
12153fi
12154
12155$RM -f confest.$objext
12156
12157# PORTME: override above test on systems where it is broken
12158case $host_os in
12159interix[3-9]*)
12160 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12161 # hack all around it, let's just trust "g++" to DTRT.
12162 predep_objects_CXX=
12163 postdep_objects_CXX=
12164 postdeps_CXX=
12165 ;;
12166
12167linux*)
12168 case `$CC -V 2>&1 | sed 5q` in
12169 *Sun\ C*)
12170 # Sun C++ 5.9
12171
12172 # The more standards-conforming stlport4 library is
12173 # incompatible with the Cstd library. Avoid specifying
12174 # it if it's in CXXFLAGS. Ignore libCrun as
12175 # -library=stlport4 depends on it.
12176 case " $CXX $CXXFLAGS " in
12177 *" -library=stlport4 "*)
12178 solaris_use_stlport4=yes
12179 ;;
12180 esac
12181
12182 if test "$solaris_use_stlport4" != yes; then
12183 postdeps_CXX='-library=Cstd -library=Crun'
12184 fi
12185 ;;
12186 esac
12187 ;;
12188
12189solaris*)
12190 case $cc_basename in
12191 CC*)
12192 # The more standards-conforming stlport4 library is
12193 # incompatible with the Cstd library. Avoid specifying
12194 # it if it's in CXXFLAGS. Ignore libCrun as
12195 # -library=stlport4 depends on it.
12196 case " $CXX $CXXFLAGS " in
12197 *" -library=stlport4 "*)
12198 solaris_use_stlport4=yes
12199 ;;
12200 esac
12201
12202 # Adding this requires a known-good setup of shared libraries for
12203 # Sun compiler versions before 5.6, else PIC objects from an old
12204 # archive will be linked into the output, leading to subtle bugs.
12205 if test "$solaris_use_stlport4" != yes; then
12206 postdeps_CXX='-library=Cstd -library=Crun'
12207 fi
12208 ;;
12209 esac
12210 ;;
12211esac
12212
12213
12214case " $postdeps_CXX " in
12215*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12216esac
12217 compiler_lib_search_dirs_CXX=
12218if test -n "${compiler_lib_search_path_CXX}"; then
12219 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12220fi
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252 lt_prog_compiler_wl_CXX=
12253lt_prog_compiler_pic_CXX=
12254lt_prog_compiler_static_CXX=
12255
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12257$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12258
12259 # C++ specific cases for pic, static, wl, etc.
12260 if test "$GXX" = yes; then
12261 lt_prog_compiler_wl_CXX='-Wl,'
12262 lt_prog_compiler_static_CXX='-static'
12263
12264 case $host_os in
12265 aix*)
12266 # All AIX code is PIC.
12267 if test "$host_cpu" = ia64; then
12268 # AIX 5 now supports IA64 processor
12269 lt_prog_compiler_static_CXX='-Bstatic'
12270 fi
12271 ;;
12272
12273 amigaos*)
12274 case $host_cpu in
12275 powerpc)
12276 # see comment about AmigaOS4 .so support
12277 lt_prog_compiler_pic_CXX='-fPIC'
12278 ;;
12279 m68k)
12280 # FIXME: we need at least 68020 code to build shared libraries, but
12281 # adding the `-m68020' flag to GCC prevents building anything better,
12282 # like `-m68040'.
12283 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12284 ;;
12285 esac
12286 ;;
12287
12288 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12289 # PIC is the default for these OSes.
12290 ;;
12291 mingw* | cygwin* | os2* | pw32* | cegcc*)
12292 # This hack is so that the source file can tell whether it is being
12293 # built for inclusion in a dll (and should export symbols for example).
12294 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12295 # (--disable-auto-import) libraries
12296 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12297 ;;
12298 darwin* | rhapsody*)
12299 # PIC is the default on this platform
12300 # Common symbols not allowed in MH_DYLIB files
12301 lt_prog_compiler_pic_CXX='-fno-common'
12302 ;;
12303 *djgpp*)
12304 # DJGPP does not support shared libraries at all
12305 lt_prog_compiler_pic_CXX=
12306 ;;
12307 interix[3-9]*)
12308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12309 # Instead, we relocate shared libraries at runtime.
12310 ;;
12311 sysv4*MP*)
12312 if test -d /usr/nec; then
12313 lt_prog_compiler_pic_CXX=-Kconform_pic
12314 fi
12315 ;;
12316 hpux*)
12317 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12318 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12319 # sets the default TLS model and affects inlining.
12320 case $host_cpu in
12321 hppa*64*)
12322 ;;
12323 *)
12324 lt_prog_compiler_pic_CXX='-fPIC'
12325 ;;
12326 esac
12327 ;;
12328 *qnx* | *nto*)
12329 # QNX uses GNU C++, but need to define -shared option too, otherwise
12330 # it will coredump.
12331 lt_prog_compiler_pic_CXX='-fPIC -shared'
12332 ;;
12333 *)
12334 lt_prog_compiler_pic_CXX='-fPIC'
12335 ;;
12336 esac
12337 else
12338 case $host_os in
12339 aix[4-9]*)
12340 # All AIX code is PIC.
12341 if test "$host_cpu" = ia64; then
12342 # AIX 5 now supports IA64 processor
12343 lt_prog_compiler_static_CXX='-Bstatic'
12344 else
12345 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12346 fi
12347 ;;
12348 chorus*)
12349 case $cc_basename in
12350 cxch68*)
12351 # Green Hills C++ Compiler
12352 # _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"
12353 ;;
12354 esac
12355 ;;
12356 dgux*)
12357 case $cc_basename in
12358 ec++*)
12359 lt_prog_compiler_pic_CXX='-KPIC'
12360 ;;
12361 ghcx*)
12362 # Green Hills C++ Compiler
12363 lt_prog_compiler_pic_CXX='-pic'
12364 ;;
12365 *)
12366 ;;
12367 esac
12368 ;;
12369 freebsd* | dragonfly*)
12370 # FreeBSD uses GNU C++
12371 ;;
12372 hpux9* | hpux10* | hpux11*)
12373 case $cc_basename in
12374 CC*)
12375 lt_prog_compiler_wl_CXX='-Wl,'
12376 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12377 if test "$host_cpu" != ia64; then
12378 lt_prog_compiler_pic_CXX='+Z'
12379 fi
12380 ;;
12381 aCC*)
12382 lt_prog_compiler_wl_CXX='-Wl,'
12383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12384 case $host_cpu in
12385 hppa*64*|ia64*)
12386 # +Z the default
12387 ;;
12388 *)
12389 lt_prog_compiler_pic_CXX='+Z'
12390 ;;
12391 esac
12392 ;;
12393 *)
12394 ;;
12395 esac
12396 ;;
12397 interix*)
12398 # This is c89, which is MS Visual C++ (no shared libs)
12399 # Anyone wants to do a port?
12400 ;;
12401 irix5* | irix6* | nonstopux*)
12402 case $cc_basename in
12403 CC*)
12404 lt_prog_compiler_wl_CXX='-Wl,'
12405 lt_prog_compiler_static_CXX='-non_shared'
12406 # CC pic flag -KPIC is the default.
12407 ;;
12408 *)
12409 ;;
12410 esac
12411 ;;
12412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12413 case $cc_basename in
12414 KCC*)
12415 # KAI C++ Compiler
12416 lt_prog_compiler_wl_CXX='--backend -Wl,'
12417 lt_prog_compiler_pic_CXX='-fPIC'
12418 ;;
12419 ecpc* )
12420 # old Intel C++ for x86_64 which still supported -KPIC.
12421 lt_prog_compiler_wl_CXX='-Wl,'
12422 lt_prog_compiler_pic_CXX='-KPIC'
12423 lt_prog_compiler_static_CXX='-static'
12424 ;;
12425 icpc* )
12426 # Intel C++, used to be incompatible with GCC.
12427 # ICC 10 doesn't accept -KPIC any more.
12428 lt_prog_compiler_wl_CXX='-Wl,'
12429 lt_prog_compiler_pic_CXX='-fPIC'
12430 lt_prog_compiler_static_CXX='-static'
12431 ;;
12432 pgCC* | pgcpp*)
12433 # Portland Group C++ compiler
12434 lt_prog_compiler_wl_CXX='-Wl,'
12435 lt_prog_compiler_pic_CXX='-fpic'
12436 lt_prog_compiler_static_CXX='-Bstatic'
12437 ;;
12438 cxx*)
12439 # Compaq C++
12440 # Make sure the PIC flag is empty. It appears that all Alpha
12441 # Linux and Compaq Tru64 Unix objects are PIC.
12442 lt_prog_compiler_pic_CXX=
12443 lt_prog_compiler_static_CXX='-non_shared'
12444 ;;
12445 xlc* | xlC*)
12446 # IBM XL 8.0 on PPC
12447 lt_prog_compiler_wl_CXX='-Wl,'
12448 lt_prog_compiler_pic_CXX='-qpic'
12449 lt_prog_compiler_static_CXX='-qstaticlink'
12450 ;;
12451 *)
12452 case `$CC -V 2>&1 | sed 5q` in
12453 *Sun\ C*)
12454 # Sun C++ 5.9
12455 lt_prog_compiler_pic_CXX='-KPIC'
12456 lt_prog_compiler_static_CXX='-Bstatic'
12457 lt_prog_compiler_wl_CXX='-Qoption ld '
12458 ;;
12459 esac
12460 ;;
12461 esac
12462 ;;
12463 lynxos*)
12464 ;;
12465 m88k*)
12466 ;;
12467 mvs*)
12468 case $cc_basename in
12469 cxx*)
12470 lt_prog_compiler_pic_CXX='-W c,exportall'
12471 ;;
12472 *)
12473 ;;
12474 esac
12475 ;;
12476 netbsd* | netbsdelf*-gnu)
12477 ;;
12478 *qnx* | *nto*)
12479 # QNX uses GNU C++, but need to define -shared option too, otherwise
12480 # it will coredump.
12481 lt_prog_compiler_pic_CXX='-fPIC -shared'
12482 ;;
12483 osf3* | osf4* | osf5*)
12484 case $cc_basename in
12485 KCC*)
12486 lt_prog_compiler_wl_CXX='--backend -Wl,'
12487 ;;
12488 RCC*)
12489 # Rational C++ 2.4.1
12490 lt_prog_compiler_pic_CXX='-pic'
12491 ;;
12492 cxx*)
12493 # Digital/Compaq C++
12494 lt_prog_compiler_wl_CXX='-Wl,'
12495 # Make sure the PIC flag is empty. It appears that all Alpha
12496 # Linux and Compaq Tru64 Unix objects are PIC.
12497 lt_prog_compiler_pic_CXX=
12498 lt_prog_compiler_static_CXX='-non_shared'
12499 ;;
12500 *)
12501 ;;
12502 esac
12503 ;;
12504 psos*)
12505 ;;
12506 solaris*)
12507 case $cc_basename in
12508 CC*)
12509 # Sun C++ 4.2, 5.x and Centerline C++
12510 lt_prog_compiler_pic_CXX='-KPIC'
12511 lt_prog_compiler_static_CXX='-Bstatic'
12512 lt_prog_compiler_wl_CXX='-Qoption ld '
12513 ;;
12514 gcx*)
12515 # Green Hills C++ Compiler
12516 lt_prog_compiler_pic_CXX='-PIC'
12517 ;;
12518 *)
12519 ;;
12520 esac
12521 ;;
12522 sunos4*)
12523 case $cc_basename in
12524 CC*)
12525 # Sun C++ 4.x
12526 lt_prog_compiler_pic_CXX='-pic'
12527 lt_prog_compiler_static_CXX='-Bstatic'
12528 ;;
12529 lcc*)
12530 # Lucid
12531 lt_prog_compiler_pic_CXX='-pic'
12532 ;;
12533 *)
12534 ;;
12535 esac
12536 ;;
12537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12538 case $cc_basename in
12539 CC*)
12540 lt_prog_compiler_wl_CXX='-Wl,'
12541 lt_prog_compiler_pic_CXX='-KPIC'
12542 lt_prog_compiler_static_CXX='-Bstatic'
12543 ;;
12544 esac
12545 ;;
12546 tandem*)
12547 case $cc_basename in
12548 NCC*)
12549 # NonStop-UX NCC 3.20
12550 lt_prog_compiler_pic_CXX='-KPIC'
12551 ;;
12552 *)
12553 ;;
12554 esac
12555 ;;
12556 vxworks*)
12557 ;;
12558 *)
12559 lt_prog_compiler_can_build_shared_CXX=no
12560 ;;
12561 esac
12562 fi
12563
12564case $host_os in
12565 # For platforms which do not support PIC, -DPIC is meaningless:
12566 *djgpp*)
12567 lt_prog_compiler_pic_CXX=
12568 ;;
12569 *)
12570 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12571 ;;
12572esac
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12574$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12575
12576
12577
12578#
12579# Check to make sure the PIC flag actually works.
12580#
12581if test -n "$lt_prog_compiler_pic_CXX"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12583$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12584if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586else
12587 lt_cv_prog_compiler_pic_works_CXX=no
12588 ac_outfile=conftest.$ac_objext
12589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12591 # Insert the option either (1) after the last *FLAGS variable, or
12592 # (2) before a word containing "conftest.", or (3) at the end.
12593 # Note that $ac_compile itself does not contain backslashes and begins
12594 # with a dollar sign (not a hyphen), so the echo should work correctly.
12595 # The option is referenced via a variable to avoid confusing sed.
12596 lt_compile=`echo "$ac_compile" | $SED \
12597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599 -e 's:$: $lt_compiler_flag:'`
12600 (eval echo "\"\$as_me:12600: $lt_compile\"" >&5)
12601 (eval "$lt_compile" 2>conftest.err)
12602 ac_status=$?
12603 cat conftest.err >&5
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 if (exit $ac_status) && test -s "$ac_outfile"; then
12606 # The compiler can only warn and ignore the option if not recognized
12607 # So say no if there are warnings other than the usual output.
12608 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12611 lt_cv_prog_compiler_pic_works_CXX=yes
12612 fi
12613 fi
12614 $RM conftest*
12615
12616fi
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12618$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12619
12620if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12621 case $lt_prog_compiler_pic_CXX in
12622 "" | " "*) ;;
12623 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12624 esac
12625else
12626 lt_prog_compiler_pic_CXX=
12627 lt_prog_compiler_can_build_shared_CXX=no
12628fi
12629
12630fi
12631
12632
12633
12634#
12635# Check to make sure the static flag actually works.
12636#
12637wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12639$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12640if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12641 $as_echo_n "(cached) " >&6
12642else
12643 lt_cv_prog_compiler_static_works_CXX=no
12644 save_LDFLAGS="$LDFLAGS"
12645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12648 # The linker can only warn and ignore the option if not recognized
12649 # So say no if there are warnings
12650 if test -s conftest.err; then
12651 # Append any errors to the config.log.
12652 cat conftest.err 1>&5
12653 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12655 if diff conftest.exp conftest.er2 >/dev/null; then
12656 lt_cv_prog_compiler_static_works_CXX=yes
12657 fi
12658 else
12659 lt_cv_prog_compiler_static_works_CXX=yes
12660 fi
12661 fi
12662 $RM -r conftest*
12663 LDFLAGS="$save_LDFLAGS"
12664
12665fi
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12667$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12668
12669if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12670 :
12671else
12672 lt_prog_compiler_static_CXX=
12673fi
12674
12675
12676
12677
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12680if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
12682else
12683 lt_cv_prog_compiler_c_o_CXX=no
12684 $RM -r conftest 2>/dev/null
12685 mkdir conftest
12686 cd conftest
12687 mkdir out
12688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12689
12690 lt_compiler_flag="-o out/conftest2.$ac_objext"
12691 # Insert the option either (1) after the last *FLAGS variable, or
12692 # (2) before a word containing "conftest.", or (3) at the end.
12693 # Note that $ac_compile itself does not contain backslashes and begins
12694 # with a dollar sign (not a hyphen), so the echo should work correctly.
12695 lt_compile=`echo "$ac_compile" | $SED \
12696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12698 -e 's:$: $lt_compiler_flag:'`
12699 (eval echo "\"\$as_me:12699: $lt_compile\"" >&5)
12700 (eval "$lt_compile" 2>out/conftest.err)
12701 ac_status=$?
12702 cat out/conftest.err >&5
12703 echo "$as_me:12703: \$? = $ac_status" >&5
12704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12705 then
12706 # The compiler can only warn and ignore the option if not recognized
12707 # So say no if there are warnings
12708 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12711 lt_cv_prog_compiler_c_o_CXX=yes
12712 fi
12713 fi
12714 chmod u+w . 2>&5
12715 $RM conftest*
12716 # SGI C++ compiler will create directory out/ii_files/ for
12717 # template instantiation
12718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12719 $RM out/* && rmdir out
12720 cd ..
12721 $RM -r conftest
12722 $RM conftest*
12723
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12726$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12727
12728
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12731$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12732if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734else
12735 lt_cv_prog_compiler_c_o_CXX=no
12736 $RM -r conftest 2>/dev/null
12737 mkdir conftest
12738 cd conftest
12739 mkdir out
12740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12741
12742 lt_compiler_flag="-o out/conftest2.$ac_objext"
12743 # Insert the option either (1) after the last *FLAGS variable, or
12744 # (2) before a word containing "conftest.", or (3) at the end.
12745 # Note that $ac_compile itself does not contain backslashes and begins
12746 # with a dollar sign (not a hyphen), so the echo should work correctly.
12747 lt_compile=`echo "$ac_compile" | $SED \
12748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12750 -e 's:$: $lt_compiler_flag:'`
12751 (eval echo "\"\$as_me:12751: $lt_compile\"" >&5)
12752 (eval "$lt_compile" 2>out/conftest.err)
12753 ac_status=$?
12754 cat out/conftest.err >&5
12755 echo "$as_me:12755: \$? = $ac_status" >&5
12756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12757 then
12758 # The compiler can only warn and ignore the option if not recognized
12759 # So say no if there are warnings
12760 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12763 lt_cv_prog_compiler_c_o_CXX=yes
12764 fi
12765 fi
12766 chmod u+w . 2>&5
12767 $RM conftest*
12768 # SGI C++ compiler will create directory out/ii_files/ for
12769 # template instantiation
12770 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12771 $RM out/* && rmdir out
12772 cd ..
12773 $RM -r conftest
12774 $RM conftest*
12775
12776fi
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12778$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12779
12780
12781
12782
12783hard_links="nottested"
12784if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12785 # do not overwrite the value of need_locks provided by the user
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12787$as_echo_n "checking if we can lock with hard links... " >&6; }
12788 hard_links=yes
12789 $RM conftest*
12790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12791 touch conftest.a
12792 ln conftest.a conftest.b 2>&5 || hard_links=no
12793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12795$as_echo "$hard_links" >&6; }
12796 if test "$hard_links" = no; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12798$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12799 need_locks=warn
12800 fi
12801else
12802 need_locks=no
12803fi
12804
12805
12806
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12808$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12809
12810 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12811 case $host_os in
12812 aix[4-9]*)
12813 # If we're using GNU nm, then we don't want the "-C" option.
12814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12816 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'
12817 else
12818 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'
12819 fi
12820 ;;
12821 pw32*)
12822 export_symbols_cmds_CXX="$ltdll_cmds"
12823 ;;
12824 cygwin* | mingw* | cegcc*)
12825 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'
12826 ;;
12827 linux* | k*bsd*-gnu)
12828 link_all_deplibs_CXX=no
12829 ;;
12830 *)
12831 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12832 ;;
12833 esac
12834 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12835
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12837$as_echo "$ld_shlibs_CXX" >&6; }
12838test "$ld_shlibs_CXX" = no && can_build_shared=no
12839
12840with_gnu_ld_CXX=$with_gnu_ld
12841
12842
12843
12844
12845
12846
12847#
12848# Do we need to explicitly link libc?
12849#
12850case "x$archive_cmds_need_lc_CXX" in
12851x|xyes)
12852 # Assume -lc should be added
12853 archive_cmds_need_lc_CXX=yes
12854
12855 if test "$enable_shared" = yes && test "$GCC" = yes; then
12856 case $archive_cmds_CXX in
12857 *'~'*)
12858 # FIXME: we may have to deal with multi-command sequences.
12859 ;;
12860 '$CC '*)
12861 # Test whether the compiler implicitly links with -lc since on some
12862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12863 # to ld, don't add -lc before -lgcc.
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12865$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12866 $RM conftest*
12867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12868
12869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870 (eval $ac_compile) 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; } 2>conftest.err; then
12874 soname=conftest
12875 lib=conftest
12876 libobjs=conftest.$ac_objext
12877 deplibs=
12878 wl=$lt_prog_compiler_wl_CXX
12879 pic_flag=$lt_prog_compiler_pic_CXX
12880 compiler_flags=-v
12881 linker_flags=-v
12882 verstring=
12883 output_objdir=.
12884 libname=conftest
12885 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12886 allow_undefined_flag_CXX=
12887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12888 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12889 ac_status=$?
12890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891 test $ac_status = 0; }
12892 then
12893 archive_cmds_need_lc_CXX=no
12894 else
12895 archive_cmds_need_lc_CXX=yes
12896 fi
12897 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12898 else
12899 cat conftest.err 1>&5
12900 fi
12901 $RM conftest*
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12903$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12904 ;;
12905 esac
12906 fi
12907 ;;
12908esac
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12974$as_echo_n "checking dynamic linker characteristics... " >&6; }
12975
12976library_names_spec=
12977libname_spec='lib$name'
12978soname_spec=
12979shrext_cmds=".so"
12980postinstall_cmds=
12981postuninstall_cmds=
12982finish_cmds=
12983finish_eval=
12984shlibpath_var=
12985shlibpath_overrides_runpath=unknown
12986version_type=none
12987dynamic_linker="$host_os ld.so"
12988sys_lib_dlsearch_path_spec="/lib /usr/lib"
12989need_lib_prefix=unknown
12990hardcode_into_libs=no
12991
12992# when you set need_version to no, make sure it does not cause -set_version
12993# flags to be left without arguments
12994need_version=unknown
12995
12996case $host_os in
12997aix3*)
12998 version_type=linux
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13000 shlibpath_var=LIBPATH
13001
13002 # AIX 3 has no versioning support, so we append a major version to the name.
13003 soname_spec='${libname}${release}${shared_ext}$major'
13004 ;;
13005
13006aix[4-9]*)
13007 version_type=linux
13008 need_lib_prefix=no
13009 need_version=no
13010 hardcode_into_libs=yes
13011 if test "$host_cpu" = ia64; then
13012 # AIX 5 supports IA64
13013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 else
13016 # With GCC up to 2.95.x, collect2 would create an import file
13017 # for dependence libraries. The import file would start with
13018 # the line `#! .'. This would cause the generated library to
13019 # depend on `.', always an invalid library. This was fixed in
13020 # development snapshots of GCC prior to 3.0.
13021 case $host_os in
13022 aix4 | aix4.[01] | aix4.[01].*)
13023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13024 echo ' yes '
13025 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13026 :
13027 else
13028 can_build_shared=no
13029 fi
13030 ;;
13031 esac
13032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13033 # soname into executable. Probably we can add versioning support to
13034 # collect2, so additional links can be useful in future.
13035 if test "$aix_use_runtimelinking" = yes; then
13036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13037 # instead of lib<name>.a to let people know that these are not
13038 # typical AIX shared libraries.
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 else
13041 # We preserve .a as extension for shared libraries through AIX4.2
13042 # and later when we are not doing run time linking.
13043 library_names_spec='${libname}${release}.a $libname.a'
13044 soname_spec='${libname}${release}${shared_ext}$major'
13045 fi
13046 shlibpath_var=LIBPATH
13047 fi
13048 ;;
13049
13050amigaos*)
13051 case $host_cpu in
13052 powerpc)
13053 # Since July 2007 AmigaOS4 officially supports .so libraries.
13054 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 ;;
13057 m68k)
13058 library_names_spec='$libname.ixlibrary $libname.a'
13059 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13060 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'
13061 ;;
13062 esac
13063 ;;
13064
13065beos*)
13066 library_names_spec='${libname}${shared_ext}'
13067 dynamic_linker="$host_os ld.so"
13068 shlibpath_var=LIBRARY_PATH
13069 ;;
13070
13071bsdi[45]*)
13072 version_type=linux
13073 need_version=no
13074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075 soname_spec='${libname}${release}${shared_ext}$major'
13076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13080 # the default ld.so.conf also contains /usr/contrib/lib and
13081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13082 # libtool to hard-code these into programs
13083 ;;
13084
13085cygwin* | mingw* | pw32* | cegcc*)
13086 version_type=windows
13087 shrext_cmds=".dll"
13088 need_version=no
13089 need_lib_prefix=no
13090
13091 case $GCC,$host_os in
13092 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13093 library_names_spec='$libname.dll.a'
13094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13095 postinstall_cmds='base_file=`basename \${file}`~
13096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13097 dldir=$destdir/`dirname \$dlpath`~
13098 test -d \$dldir || mkdir -p \$dldir~
13099 $install_prog $dir/$dlname \$dldir/$dlname~
13100 chmod a+x \$dldir/$dlname~
13101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13103 fi'
13104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13105 dlpath=$dir/\$dldll~
13106 $RM \$dlpath'
13107 shlibpath_overrides_runpath=yes
13108
13109 case $host_os in
13110 cygwin*)
13111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13114 ;;
13115 mingw* | cegcc*)
13116 # MinGW DLLs use traditional 'lib' prefix
13117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13118 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13120 # It is most probably a Windows format PATH printed by
13121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13122 # path with ; separators, and with drive letters. We can handle the
13123 # drive letters (cygwin fileutils understands them), so leave them,
13124 # especially as we might pass files found there to a mingw objdump,
13125 # which wouldn't understand a cygwinified path. Ahh.
13126 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13127 else
13128 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13129 fi
13130 ;;
13131 pw32*)
13132 # pw32 DLLs use 'pw' prefix rather than 'lib'
13133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13134 ;;
13135 esac
13136 ;;
13137
13138 *)
13139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13140 ;;
13141 esac
13142 dynamic_linker='Win32 ld.exe'
13143 # FIXME: first we should search . and the directory the executable is in
13144 shlibpath_var=PATH
13145 ;;
13146
13147darwin* | rhapsody*)
13148 dynamic_linker="$host_os dyld"
13149 version_type=darwin
13150 need_lib_prefix=no
13151 need_version=no
13152 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13153 soname_spec='${libname}${release}${major}$shared_ext'
13154 shlibpath_overrides_runpath=yes
13155 shlibpath_var=DYLD_LIBRARY_PATH
13156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13157
13158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13159 ;;
13160
13161dgux*)
13162 version_type=linux
13163 need_lib_prefix=no
13164 need_version=no
13165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13166 soname_spec='${libname}${release}${shared_ext}$major'
13167 shlibpath_var=LD_LIBRARY_PATH
13168 ;;
13169
13170freebsd1*)
13171 dynamic_linker=no
13172 ;;
13173
13174freebsd* | dragonfly*)
13175 # DragonFly does not have aout. When/if they implement a new
13176 # versioning mechanism, adjust this.
13177 if test -x /usr/bin/objformat; then
13178 objformat=`/usr/bin/objformat`
13179 else
13180 case $host_os in
13181 freebsd[123]*) objformat=aout ;;
13182 *) objformat=elf ;;
13183 esac
13184 fi
13185 version_type=freebsd-$objformat
13186 case $version_type in
13187 freebsd-elf*)
13188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13189 need_version=no
13190 need_lib_prefix=no
13191 ;;
13192 freebsd-*)
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13194 need_version=yes
13195 ;;
13196 esac
13197 shlibpath_var=LD_LIBRARY_PATH
13198 case $host_os in
13199 freebsd2*)
13200 shlibpath_overrides_runpath=yes
13201 ;;
13202 freebsd3.[01]* | freebsdelf3.[01]*)
13203 shlibpath_overrides_runpath=yes
13204 hardcode_into_libs=yes
13205 ;;
13206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13208 shlibpath_overrides_runpath=no
13209 hardcode_into_libs=yes
13210 ;;
13211 *) # from 4.6 on, and DragonFly
13212 shlibpath_overrides_runpath=yes
13213 hardcode_into_libs=yes
13214 ;;
13215 esac
13216 ;;
13217
13218gnu*)
13219 version_type=linux
13220 need_lib_prefix=no
13221 need_version=no
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 hardcode_into_libs=yes
13226 ;;
13227
13228hpux9* | hpux10* | hpux11*)
13229 # Give a soname corresponding to the major version so that dld.sl refuses to
13230 # link against other versions.
13231 version_type=sunos
13232 need_lib_prefix=no
13233 need_version=no
13234 case $host_cpu in
13235 ia64*)
13236 shrext_cmds='.so'
13237 hardcode_into_libs=yes
13238 dynamic_linker="$host_os dld.so"
13239 shlibpath_var=LD_LIBRARY_PATH
13240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 if test "X$HPUX_IA64_MODE" = X32; then
13244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13245 else
13246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13247 fi
13248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13249 ;;
13250 hppa*64*)
13251 shrext_cmds='.sl'
13252 hardcode_into_libs=yes
13253 dynamic_linker="$host_os dld.sl"
13254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13260 ;;
13261 *)
13262 shrext_cmds='.sl'
13263 dynamic_linker="$host_os dld.sl"
13264 shlibpath_var=SHLIB_PATH
13265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 ;;
13269 esac
13270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13271 postinstall_cmds='chmod 555 $lib'
13272 ;;
13273
13274interix[3-9]*)
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13281 shlibpath_var=LD_LIBRARY_PATH
13282 shlibpath_overrides_runpath=no
13283 hardcode_into_libs=yes
13284 ;;
13285
13286irix5* | irix6* | nonstopux*)
13287 case $host_os in
13288 nonstopux*) version_type=nonstopux ;;
13289 *)
13290 if test "$lt_cv_prog_gnu_ld" = yes; then
13291 version_type=linux
13292 else
13293 version_type=irix
13294 fi ;;
13295 esac
13296 need_lib_prefix=no
13297 need_version=no
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13300 case $host_os in
13301 irix5* | nonstopux*)
13302 libsuff= shlibsuff=
13303 ;;
13304 *)
13305 case $LD in # libtool.m4 will add one of these switches to LD
13306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13307 libsuff= shlibsuff= libmagic=32-bit;;
13308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13309 libsuff=32 shlibsuff=N32 libmagic=N32;;
13310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13311 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13312 *) libsuff= shlibsuff= libmagic=never-match;;
13313 esac
13314 ;;
13315 esac
13316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13317 shlibpath_overrides_runpath=no
13318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13320 hardcode_into_libs=yes
13321 ;;
13322
13323# No shared lib support for Linux oldld, aout, or coff.
13324linux*oldld* | linux*aout* | linux*coff*)
13325 dynamic_linker=no
13326 ;;
13327
13328# This must be Linux ELF.
13329linux* | k*bsd*-gnu | kopensolaris*-gnu)
13330 version_type=linux
13331 need_lib_prefix=no
13332 need_version=no
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334 soname_spec='${libname}${release}${shared_ext}$major'
13335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=no
13338 # Some binutils ld are patched to set DT_RUNPATH
13339 save_LDFLAGS=$LDFLAGS
13340 save_libdir=$libdir
13341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344/* end confdefs.h. */
13345
13346int
13347main ()
13348{
13349
13350 ;
13351 return 0;
13352}
13353_ACEOF
13354if ac_fn_cxx_try_link "$LINENO"; then :
13355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13356 shlibpath_overrides_runpath=yes
13357fi
13358fi
13359rm -f core conftest.err conftest.$ac_objext \
13360 conftest$ac_exeext conftest.$ac_ext
13361 LDFLAGS=$save_LDFLAGS
13362 libdir=$save_libdir
13363
13364 # This implies no fast_install, which is unacceptable.
13365 # Some rework will be needed to allow for fast_install
13366 # before this can be enabled.
13367 hardcode_into_libs=yes
13368
13369 # Append ld.so.conf contents to the search path
13370 if test -f /etc/ld.so.conf; then
13371 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' ' '`
13372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13373 fi
13374
13375 # We used to test for /lib/ld.so.1 and disable shared libraries on
13376 # powerpc, because MkLinux only supported shared libraries with the
13377 # GNU dynamic linker. Since this was broken with cross compilers,
13378 # most powerpc-linux boxes support dynamic linking these days and
13379 # people can always --disable-shared, the test was removed, and we
13380 # assume the GNU/Linux dynamic linker is in use.
13381 dynamic_linker='GNU/Linux ld.so'
13382 ;;
13383
13384netbsdelf*-gnu)
13385 version_type=linux
13386 need_lib_prefix=no
13387 need_version=no
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13389 soname_spec='${libname}${release}${shared_ext}$major'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 shlibpath_overrides_runpath=no
13392 hardcode_into_libs=yes
13393 dynamic_linker='NetBSD ld.elf_so'
13394 ;;
13395
13396netbsd*)
13397 version_type=sunos
13398 need_lib_prefix=no
13399 need_version=no
13400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13403 dynamic_linker='NetBSD (a.out) ld.so'
13404 else
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 dynamic_linker='NetBSD ld.elf_so'
13408 fi
13409 shlibpath_var=LD_LIBRARY_PATH
13410 shlibpath_overrides_runpath=yes
13411 hardcode_into_libs=yes
13412 ;;
13413
13414newsos6)
13415 version_type=linux
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=yes
13419 ;;
13420
13421*nto* | *qnx*)
13422 version_type=qnx
13423 need_lib_prefix=no
13424 need_version=no
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13426 soname_spec='${libname}${release}${shared_ext}$major'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13430 dynamic_linker='ldqnx.so'
13431 ;;
13432
13433openbsd*)
13434 version_type=sunos
13435 sys_lib_dlsearch_path_spec="/usr/lib"
13436 need_lib_prefix=no
13437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13438 case $host_os in
13439 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13440 *) need_version=no ;;
13441 esac
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13446 case $host_os in
13447 openbsd2.[89] | openbsd2.[89].*)
13448 shlibpath_overrides_runpath=no
13449 ;;
13450 *)
13451 shlibpath_overrides_runpath=yes
13452 ;;
13453 esac
13454 else
13455 shlibpath_overrides_runpath=yes
13456 fi
13457 ;;
13458
13459os2*)
13460 libname_spec='$name'
13461 shrext_cmds=".dll"
13462 need_lib_prefix=no
13463 library_names_spec='$libname${shared_ext} $libname.a'
13464 dynamic_linker='OS/2 ld.exe'
13465 shlibpath_var=LIBPATH
13466 ;;
13467
13468osf3* | osf4* | osf5*)
13469 version_type=osf
13470 need_lib_prefix=no
13471 need_version=no
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13477 ;;
13478
13479rdos*)
13480 dynamic_linker=no
13481 ;;
13482
13483solaris*)
13484 version_type=linux
13485 need_lib_prefix=no
13486 need_version=no
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 shlibpath_overrides_runpath=yes
13491 hardcode_into_libs=yes
13492 # ldd complains unless libraries are executable
13493 postinstall_cmds='chmod +x $lib'
13494 ;;
13495
13496sunos4*)
13497 version_type=sunos
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=yes
13502 if test "$with_gnu_ld" = yes; then
13503 need_lib_prefix=no
13504 fi
13505 need_version=yes
13506 ;;
13507
13508sysv4 | sysv4.3*)
13509 version_type=linux
13510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511 soname_spec='${libname}${release}${shared_ext}$major'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 case $host_vendor in
13514 sni)
13515 shlibpath_overrides_runpath=no
13516 need_lib_prefix=no
13517 runpath_var=LD_RUN_PATH
13518 ;;
13519 siemens)
13520 need_lib_prefix=no
13521 ;;
13522 motorola)
13523 need_lib_prefix=no
13524 need_version=no
13525 shlibpath_overrides_runpath=no
13526 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13527 ;;
13528 esac
13529 ;;
13530
13531sysv4*MP*)
13532 if test -d /usr/nec ;then
13533 version_type=linux
13534 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13535 soname_spec='$libname${shared_ext}.$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 fi
13538 ;;
13539
13540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13541 version_type=freebsd-elf
13542 need_lib_prefix=no
13543 need_version=no
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 shlibpath_var=LD_LIBRARY_PATH
13547 shlibpath_overrides_runpath=yes
13548 hardcode_into_libs=yes
13549 if test "$with_gnu_ld" = yes; then
13550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13551 else
13552 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13553 case $host_os in
13554 sco3.2v5*)
13555 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13556 ;;
13557 esac
13558 fi
13559 sys_lib_dlsearch_path_spec='/usr/lib'
13560 ;;
13561
13562tpf*)
13563 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13564 version_type=linux
13565 need_lib_prefix=no
13566 need_version=no
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=no
13570 hardcode_into_libs=yes
13571 ;;
13572
13573uts4*)
13574 version_type=linux
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 ;;
13579
13580*)
13581 dynamic_linker=no
13582 ;;
13583esac
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13585$as_echo "$dynamic_linker" >&6; }
13586test "$dynamic_linker" = no && can_build_shared=no
13587
13588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13589if test "$GCC" = yes; then
13590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13591fi
13592
13593if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13594 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13595fi
13596if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13597 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13598fi
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13636$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13637hardcode_action_CXX=
13638if test -n "$hardcode_libdir_flag_spec_CXX" ||
13639 test -n "$runpath_var_CXX" ||
13640 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13641
13642 # We can hardcode non-existent directories.
13643 if test "$hardcode_direct_CXX" != no &&
13644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13645 # have to relink, otherwise we might link with an installed library
13646 # when we should be linking with a yet-to-be-installed one
13647 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13648 test "$hardcode_minus_L_CXX" != no; then
13649 # Linking always hardcodes the temporary library directory.
13650 hardcode_action_CXX=relink
13651 else
13652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13653 hardcode_action_CXX=immediate
13654 fi
13655else
13656 # We cannot hardcode anything, or else we can only hardcode existing
13657 # directories.
13658 hardcode_action_CXX=unsupported
13659fi
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13661$as_echo "$hardcode_action_CXX" >&6; }
13662
13663if test "$hardcode_action_CXX" = relink ||
13664 test "$inherit_rpath_CXX" = yes; then
13665 # Fast installation is not supported
13666 enable_fast_install=no
13667elif test "$shlibpath_overrides_runpath" = yes ||
13668 test "$enable_shared" = no; then
13669 # Fast installation is not necessary
13670 enable_fast_install=needless
13671fi
13672
13673
13674
13675
13676
13677
13678
13679 fi # test -n "$compiler"
13680
13681 CC=$lt_save_CC
13682 LDCXX=$LD
13683 LD=$lt_save_LD
13684 GCC=$lt_save_GCC
13685 with_gnu_ld=$lt_save_with_gnu_ld
13686 lt_cv_path_LDCXX=$lt_cv_path_LD
13687 lt_cv_path_LD=$lt_save_path_LD
13688 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13689 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13690fi # test "$_lt_caught_CXX_error" != yes
13691
13692ac_ext=c
13693ac_cpp='$CPP $CPPFLAGS'
13694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696ac_compiler_gnu=$ac_cv_c_compiler_gnu
13697
13698
13699ac_ext=mm
13700ac_cpp='$OBJCXXCPP $CPPFLAGS'
13701ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
13704if test -n "$ac_tool_prefix"; then
13705 for ac_prog in g++ objc++ objcxx c++ CXX
13706 do
13707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13710$as_echo_n "checking for $ac_word... " >&6; }
13711if test "${ac_cv_prog_OBJCXX+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13713else
13714 if test -n "$OBJCXX"; then
13715 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
13716else
13717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718for as_dir in $PATH
13719do
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
13723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13724 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13727 fi
13728done
13729 done
13730IFS=$as_save_IFS
13731
13732fi
13733fi
13734OBJCXX=$ac_cv_prog_OBJCXX
13735if test -n "$OBJCXX"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
13737$as_echo "$OBJCXX" >&6; }
13738else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740$as_echo "no" >&6; }
13741fi
13742
13743
13744 test -n "$OBJCXX" && break
13745 done
13746fi
13747if test -z "$OBJCXX"; then
13748 ac_ct_OBJCXX=$OBJCXX
13749 for ac_prog in g++ objc++ objcxx c++ CXX
13750do
13751 # Extract the first word of "$ac_prog", so it can be a program name with args.
13752set dummy $ac_prog; ac_word=$2
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754$as_echo_n "checking for $ac_word... " >&6; }
13755if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
13756 $as_echo_n "(cached) " >&6
13757else
13758 if test -n "$ac_ct_OBJCXX"; then
13759 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
13760else
13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13768 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772done
13773 done
13774IFS=$as_save_IFS
13775
13776fi
13777fi
13778ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
13779if test -n "$ac_ct_OBJCXX"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
13781$as_echo "$ac_ct_OBJCXX" >&6; }
13782else
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784$as_echo "no" >&6; }
13785fi
13786
13787
13788 test -n "$ac_ct_OBJCXX" && break
13789done
13790
13791 if test "x$ac_ct_OBJCXX" = x; then
13792 OBJCXX="g++"
13793 else
13794 case $cross_compiling:$ac_tool_warned in
13795yes:)
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798ac_tool_warned=yes ;;
13799esac
13800 OBJCXX=$ac_ct_OBJCXX
13801 fi
13802fi
13803
13804# Provide some information about the compiler.
13805$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
13806set X $ac_compile
13807ac_compiler=$2
13808for ac_option in --version -v -V -qversion; do
13809 { { ac_try="$ac_compiler $ac_option >&5"
13810case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813esac
13814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13815$as_echo "$ac_try_echo"; } >&5
13816 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13817 ac_status=$?
13818 if test -s conftest.err; then
13819 sed '10a\
13820... rest of stderr output deleted ...
13821 10q' conftest.err >conftest.er1
13822 cat conftest.er1 >&5
13823 fi
13824 rm -f conftest.er1 conftest.err
13825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; }
13827done
13828
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
13830$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
13831if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13833else
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h. */
13836
13837int
13838main ()
13839{
13840#ifndef __GNUC__
13841 choke me
13842#endif
13843
13844 ;
13845 return 0;
13846}
13847_ACEOF
13848if ac_fn_objcxx_try_compile "$LINENO"; then :
13849 ac_compiler_gnu=yes
13850else
13851 ac_compiler_gnu=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
13855
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
13858$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
13859if test $ac_compiler_gnu = yes; then
13860 GOBJCXX=yes
13861else
13862 GOBJCXX=
13863fi
13864ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
13865ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
13867$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
13868if test "${ac_cv_prog_objcxx_g+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13870else
13871 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
13872 ac_objcxx_werror_flag=yes
13873 ac_cv_prog_objcxx_g=no
13874 OBJCXXFLAGS="-g"
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876/* end confdefs.h. */
13877
13878int
13879main ()
13880{
13881
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886if ac_fn_objcxx_try_compile "$LINENO"; then :
13887 ac_cv_prog_objcxx_g=yes
13888else
13889 OBJCXXFLAGS=""
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h. */
13892
13893int
13894main ()
13895{
13896
13897 ;
13898 return 0;
13899}
13900_ACEOF
13901if ac_fn_objcxx_try_compile "$LINENO"; then :
13902
13903else
13904 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
13905 OBJCXXFLAGS="-g"
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907/* end confdefs.h. */
13908
13909int
13910main ()
13911{
13912
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917if ac_fn_objcxx_try_compile "$LINENO"; then :
13918 ac_cv_prog_objcxx_g=yes
13919fi
13920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13921fi
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923fi
13924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
13926fi
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
13928$as_echo "$ac_cv_prog_objcxx_g" >&6; }
13929if test "$ac_test_OBJCXXFLAGS" = set; then
13930 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
13931elif test $ac_cv_prog_objcxx_g = yes; then
13932 if test "$GOBJCXX" = yes; then
13933 OBJCXXFLAGS="-g -O2"
13934 else
13935 OBJCXXFLAGS="-g"
13936 fi
13937else
13938 if test "$GOBJCXX" = yes; then
13939 OBJCXXFLAGS="-O2"
13940 else
13941 OBJCXXFLAGS=
13942 fi
13943fi
13944ac_ext=c
13945ac_cpp='$CPP $CPPFLAGS'
13946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948ac_compiler_gnu=$ac_cv_c_compiler_gnu
13949
13950
13951# Check whether --with-frameworks was given.
13952if test "${with_frameworks+set}" = set; then :
13953 withval=$with_frameworks;
13954 for framework in $withval; do
13955
13956 for element in -F$framework; do
13957 haveit=
13958 for x in $CFLAGS; do
13959
13960 acl_save_prefix="$prefix"
13961 prefix="$acl_final_prefix"
13962 acl_save_exec_prefix="$exec_prefix"
13963 exec_prefix="$acl_final_exec_prefix"
13964 eval x=\"$x\"
13965 exec_prefix="$acl_save_exec_prefix"
13966 prefix="$acl_save_prefix"
13967
13968 if test "X$x" = "X$element"; then
13969 haveit=yes
13970 break
13971 fi
13972 done
13973 if test -z "$haveit"; then
13974 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
13975 fi
13976 done
13977
13978
13979 for element in -F$framework; do
13980 haveit=
13981 for x in $CXXFLAGS; do
13982
13983 acl_save_prefix="$prefix"
13984 prefix="$acl_final_prefix"
13985 acl_save_exec_prefix="$exec_prefix"
13986 exec_prefix="$acl_final_exec_prefix"
13987 eval x=\"$x\"
13988 exec_prefix="$acl_save_exec_prefix"
13989 prefix="$acl_save_prefix"
13990
13991 if test "X$x" = "X$element"; then
13992 haveit=yes
13993 break
13994 fi
13995 done
13996 if test -z "$haveit"; then
13997 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
13998 fi
13999 done
14000
14001
14002 for element in -F$framework; do
14003 haveit=
14004 for x in $OBJCCXXFLAGS; do
14005
14006 acl_save_prefix="$prefix"
14007 prefix="$acl_final_prefix"
14008 acl_save_exec_prefix="$exec_prefix"
14009 exec_prefix="$acl_final_exec_prefix"
14010 eval x=\"$x\"
14011 exec_prefix="$acl_save_exec_prefix"
14012 prefix="$acl_save_prefix"
14013
14014 if test "X$x" = "X$element"; then
14015 haveit=yes
14016 break
14017 fi
14018 done
14019 if test -z "$haveit"; then
14020 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14021 fi
14022 done
14023
14024 done
14025
14026fi
14027
14028ac_ext=cpp
14029ac_cpp='$CXXCPP $CPPFLAGS'
14030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14033
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14035$as_echo_n "checking for a sed that does not truncate output... " >&6; }
14036if test "${ac_cv_path_SED+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038else
14039 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14040 for ac_i in 1 2 3 4 5 6 7; do
14041 ac_script="$ac_script$as_nl$ac_script"
14042 done
14043 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14044 { ac_script=; unset ac_script;}
14045 if test -z "$SED"; then
14046 ac_path_SED_found=false
14047 # Loop through the user's path and test for each of PROGNAME-LIST
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049for as_dir in $PATH
14050do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_prog in sed gsed; do
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14056 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
14057# Check for GNU ac_path_SED and select it if it is found.
14058 # Check for GNU $ac_path_SED
14059case `"$ac_path_SED" --version 2>&1` in
14060*GNU*)
14061 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14062*)
14063 ac_count=0
14064 $as_echo_n 0123456789 >"conftest.in"
14065 while :
14066 do
14067 cat "conftest.in" "conftest.in" >"conftest.tmp"
14068 mv "conftest.tmp" "conftest.in"
14069 cp "conftest.in" "conftest.nl"
14070 $as_echo '' >> "conftest.nl"
14071 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14073 as_fn_arith $ac_count + 1 && ac_count=$as_val
14074 if test $ac_count -gt ${ac_path_SED_max-0}; then
14075 # Best one so far, save it but keep looking for a better one
14076 ac_cv_path_SED="$ac_path_SED"
14077 ac_path_SED_max=$ac_count
14078 fi
14079 # 10*(2^10) chars as input seems more than enough
14080 test $ac_count -gt 10 && break
14081 done
14082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14083esac
14084
14085 $ac_path_SED_found && break 3
14086 done
14087 done
14088 done
14089IFS=$as_save_IFS
14090 if test -z "$ac_cv_path_SED"; then
14091 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
14092 fi
14093else
14094 ac_cv_path_SED=$SED
14095fi
14096
14097fi
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14099$as_echo "$ac_cv_path_SED" >&6; }
14100 SED="$ac_cv_path_SED"
14101 rm -f conftest.sed
14102
14103for ac_prog in 'bison -y' byacc
14104do
14105 # Extract the first word of "$ac_prog", so it can be a program name with args.
14106set dummy $ac_prog; ac_word=$2
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108$as_echo_n "checking for $ac_word... " >&6; }
14109if test "${ac_cv_prog_YACC+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111else
14112 if test -n "$YACC"; then
14113 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14114else
14115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116for as_dir in $PATH
14117do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122 ac_cv_prog_YACC="$ac_prog"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14125 fi
14126done
14127 done
14128IFS=$as_save_IFS
14129
14130fi
14131fi
14132YACC=$ac_cv_prog_YACC
14133if test -n "$YACC"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14135$as_echo "$YACC" >&6; }
14136else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138$as_echo "no" >&6; }
14139fi
14140
14141
14142 test -n "$YACC" && break
14143done
14144test -n "$YACC" || YACC="yacc"
14145
14146
14147
14148
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
14151$as_echo_n "checking if bison is the parser generator... " >&6; }
14152if test "${ax_cv_prog_bison+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14154else
14155
14156 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
14157
14158 ax_cv_prog_bison=yes
14159
14160else
14161
14162 ax_cv_prog_bison=no
14163
14164fi
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
14168$as_echo "$ax_cv_prog_bison" >&6; }
14169 if test "$ax_cv_prog_bison" = yes; then :
14170
14171 :
14172
14173 BISON=`echo $YACC | $SED -e 's/ -y//'`
14174 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
14175
14176
14177else
14178
14179 :
14180 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
14181
14182fi
14183
14184for ac_prog in gawk mawk nawk awk
14185do
14186 # Extract the first word of "$ac_prog", so it can be a program name with args.
14187set dummy $ac_prog; ac_word=$2
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189$as_echo_n "checking for $ac_word... " >&6; }
14190if test "${ac_cv_prog_AWK+set}" = set; then :
14191 $as_echo_n "(cached) " >&6
14192else
14193 if test -n "$AWK"; then
14194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14195else
14196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197for as_dir in $PATH
14198do
14199 IFS=$as_save_IFS
14200 test -z "$as_dir" && as_dir=.
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14203 ac_cv_prog_AWK="$ac_prog"
14204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14205 break 2
14206 fi
14207done
14208 done
14209IFS=$as_save_IFS
14210
14211fi
14212fi
14213AWK=$ac_cv_prog_AWK
14214if test -n "$AWK"; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14216$as_echo "$AWK" >&6; }
14217else
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219$as_echo "no" >&6; }
14220fi
14221
14222
14223 test -n "$AWK" && break
14224done
14225
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5
14227$as_echo_n "checking if bison is >= 2.3... " >&6; }
14228as_arg_v1=$BISON_VERSION
14229as_arg_v2=2.3
14230awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14231case $? in #(
14232 1) :
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235$as_echo "no" >&6; }
14236 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
14237 ;; #(
14238 0) :
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14240$as_echo "yes" >&6; } ;; #(
14241 2) :
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14243$as_echo "yes" >&6; } ;; #(
14244 *) :
14245 ;;
14246esac
14247
14248# expand $ac_aux_dir to an absolute path
14249am_aux_dir=`cd $ac_aux_dir && pwd`
14250
14251if test x"${MISSING+set}" != xset; then
14252 case $am_aux_dir in
14253 *\ * | *\ *)
14254 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14255 *)
14256 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14257 esac
14258fi
14259# Use eval to expand $SHELL
14260if eval "$MISSING --run true"; then
14261 am_missing_run="$MISSING --run "
14262else
14263 am_missing_run=
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14265$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14266fi
14267
14268for ac_prog in flex lex
14269do
14270 # Extract the first word of "$ac_prog", so it can be a program name with args.
14271set dummy $ac_prog; ac_word=$2
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14273$as_echo_n "checking for $ac_word... " >&6; }
14274if test "${ac_cv_prog_LEX+set}" = set; then :
14275 $as_echo_n "(cached) " >&6
14276else
14277 if test -n "$LEX"; then
14278 ac_cv_prog_LEX="$LEX" # Let the user override the test.
14279else
14280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281for as_dir in $PATH
14282do
14283 IFS=$as_save_IFS
14284 test -z "$as_dir" && as_dir=.
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14287 ac_cv_prog_LEX="$ac_prog"
14288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14289 break 2
14290 fi
14291done
14292 done
14293IFS=$as_save_IFS
14294
14295fi
14296fi
14297LEX=$ac_cv_prog_LEX
14298if test -n "$LEX"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14300$as_echo "$LEX" >&6; }
14301else
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303$as_echo "no" >&6; }
14304fi
14305
14306
14307 test -n "$LEX" && break
14308done
14309test -n "$LEX" || LEX=":"
14310
14311if test "x$LEX" != "x:"; then
14312 cat >conftest.l <<_ACEOF
14313%%
14314a { ECHO; }
14315b { REJECT; }
14316c { yymore (); }
14317d { yyless (1); }
14318e { yyless (input () != 0); }
14319f { unput (yytext[0]); }
14320. { BEGIN INITIAL; }
14321%%
14322#ifdef YYTEXT_POINTER
14323extern char *yytext;
14324#endif
14325int
14326main (void)
14327{
14328 return ! yylex () + ! yywrap ();
14329}
14330_ACEOF
14331{ { ac_try="$LEX conftest.l"
14332case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335esac
14336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14337$as_echo "$ac_try_echo"; } >&5
14338 (eval "$LEX conftest.l") 2>&5
14339 ac_status=$?
14340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14341 test $ac_status = 0; }
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14343$as_echo_n "checking lex output file root... " >&6; }
14344if test "${ac_cv_prog_lex_root+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346else
14347
14348if test -f lex.yy.c; then
14349 ac_cv_prog_lex_root=lex.yy
14350elif test -f lexyy.c; then
14351 ac_cv_prog_lex_root=lexyy
14352else
14353 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
14354fi
14355fi
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14357$as_echo "$ac_cv_prog_lex_root" >&6; }
14358LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14359
14360if test -z "${LEXLIB+set}"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14362$as_echo_n "checking lex library... " >&6; }
14363if test "${ac_cv_lib_lex+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14365else
14366
14367 ac_save_LIBS=$LIBS
14368 ac_cv_lib_lex='none needed'
14369 for ac_lib in '' -lfl -ll; do
14370 LIBS="$ac_lib $ac_save_LIBS"
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372/* end confdefs.h. */
14373`cat $LEX_OUTPUT_ROOT.c`
14374_ACEOF
14375if ac_fn_cxx_try_link "$LINENO"; then :
14376 ac_cv_lib_lex=$ac_lib
14377fi
14378rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14380 test "$ac_cv_lib_lex" != 'none needed' && break
14381 done
14382 LIBS=$ac_save_LIBS
14383
14384fi
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14386$as_echo "$ac_cv_lib_lex" >&6; }
14387 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14388fi
14389
14390
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14392$as_echo_n "checking whether yytext is a pointer... " >&6; }
14393if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395else
14396 # POSIX says lex can declare yytext either as a pointer or an array; the
14397# default is implementation-dependent. Figure out which it is, since
14398# not all implementations provide the %pointer and %array declarations.
14399ac_cv_prog_lex_yytext_pointer=no
14400ac_save_LIBS=$LIBS
14401LIBS="$LEXLIB $ac_save_LIBS"
14402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404#define YYTEXT_POINTER 1
14405`cat $LEX_OUTPUT_ROOT.c`
14406_ACEOF
14407if ac_fn_cxx_try_link "$LINENO"; then :
14408 ac_cv_prog_lex_yytext_pointer=yes
14409fi
14410rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412LIBS=$ac_save_LIBS
14413
14414fi
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14416$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14417if test $ac_cv_prog_lex_yytext_pointer = yes; then
14418
14419$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14420
14421fi
14422rm -f conftest.l $LEX_OUTPUT_ROOT.c
14423
14424fi
14425if test "$LEX" = :; then
14426 LEX=${am_missing_run}flex
14427fi
14428
14429
14430
14431
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
14433$as_echo_n "checking if flex is the lexer generator... " >&6; }
14434if test "${ax_cv_prog_flex+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14436else
14437
14438 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
14439
14440 ax_cv_prog_flex=yes
14441
14442else
14443
14444 ax_cv_prog_flex=no
14445
14446fi
14447
14448fi
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
14450$as_echo "$ax_cv_prog_flex" >&6; }
14451 if test "$ax_cv_prog_flex" = yes; then :
14452
14453 :
14454
14455 FLEX=$LEX
14456 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14457
14458
14459else
14460
14461 :
14462 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14463
14464fi
14465
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
14467$as_echo_n "checking if flex is >= 2.5.33... " >&6; }
14468as_arg_v1=$FLEX_VERSION
14469as_arg_v2=2.5.33
14470awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14471case $? in #(
14472 1) :
14473
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14475$as_echo "no" >&6; }
14476 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14477 ;; #(
14478 0) :
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14480$as_echo "yes" >&6; } ;; #(
14481 2) :
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14483$as_echo "yes" >&6; } ;; #(
14484 *) :
14485 ;;
14486esac
14487
14488for ac_prog in bash
14489do
14490 # Extract the first word of "$ac_prog", so it can be a program name with args.
14491set dummy $ac_prog; ac_word=$2
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493$as_echo_n "checking for $ac_word... " >&6; }
14494if test "${ac_cv_prog__BASH+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496else
14497 if test -n "$_BASH"; then
14498 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
14499else
14500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501for as_dir in $PATH
14502do
14503 IFS=$as_save_IFS
14504 test -z "$as_dir" && as_dir=.
14505 for ac_exec_ext in '' $ac_executable_extensions; do
14506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14507 ac_cv_prog__BASH="$ac_prog"
14508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14509 break 2
14510 fi
14511done
14512 done
14513IFS=$as_save_IFS
14514
14515fi
14516fi
14517_BASH=$ac_cv_prog__BASH
14518if test -n "$_BASH"; then
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
14520$as_echo "$_BASH" >&6; }
14521else
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523$as_echo "no" >&6; }
14524fi
14525
14526
14527 test -n "$_BASH" && break
14528done
14529
14530
14531for ac_prog in gperf
14532do
14533 # Extract the first word of "$ac_prog", so it can be a program name with args.
14534set dummy $ac_prog; ac_word=$2
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14536$as_echo_n "checking for $ac_word... " >&6; }
14537if test "${ac_cv_prog_GPERF+set}" = set; then :
14538 $as_echo_n "(cached) " >&6
14539else
14540 if test -n "$GPERF"; then
14541 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14542else
14543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544for as_dir in $PATH
14545do
14546 IFS=$as_save_IFS
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14550 ac_cv_prog_GPERF="$ac_prog"
14551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14552 break 2
14553 fi
14554done
14555 done
14556IFS=$as_save_IFS
14557
14558fi
14559fi
14560GPERF=$ac_cv_prog_GPERF
14561if test -n "$GPERF"; then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14563$as_echo "$GPERF" >&6; }
14564else
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566$as_echo "no" >&6; }
14567fi
14568
14569
14570 test -n "$GPERF" && break
14571done
14572
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14574$as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14575GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14576as_arg_v1=$GPERF_VERSION
14577as_arg_v2=3.0.3
14578awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14579case $? in #(
14580 1) :
14581
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583$as_echo "no" >&6; }
14584 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14585 ;; #(
14586 0) :
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14588$as_echo "yes" >&6; } ;; #(
14589 2) :
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14591$as_echo "yes" >&6; } ;; #(
14592 *) :
14593 ;;
14594esac
14595for ac_prog in time
14596do
14597 # Extract the first word of "$ac_prog", so it can be a program name with args.
14598set dummy $ac_prog; ac_word=$2
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600$as_echo_n "checking for $ac_word... " >&6; }
14601if test "${ac_cv_prog_TIME+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14603else
14604 if test -n "$TIME"; then
14605 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14606else
14607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608for as_dir in $PATH
14609do
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14614 ac_cv_prog_TIME="$ac_prog"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14617 fi
14618done
14619 done
14620IFS=$as_save_IFS
14621
14622fi
14623fi
14624TIME=$ac_cv_prog_TIME
14625if test -n "$TIME"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14627$as_echo "$TIME" >&6; }
14628else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630$as_echo "no" >&6; }
14631fi
14632
14633
14634 test -n "$TIME" && break
14635done
14636
14637
14638 apr_found="no"
14639
14640 if test "$target_os" = "os2-emx"; then
14641 # Scripts don't pass test -x on OS/2
14642 TEST_X="test -f"
14643 else
14644 TEST_X="test -x"
14645 fi
14646
14647 acceptable_majors="1"
14648
14649 apr_temp_acceptable_apr_config=""
14650 for apr_temp_major in $acceptable_majors
14651 do
14652 case $apr_temp_major in
14653 0)
14654 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14655 ;;
14656 *)
14657 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14658 ;;
14659 esac
14660 done
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14663$as_echo_n "checking for APR... " >&6; }
14664
14665# Check whether --with-apr was given.
14666if test "${with_apr+set}" = set; then :
14667 withval=$with_apr;
14668 if test "$withval" = "no" || test "$withval" = "yes"; then
14669 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14670 fi
14671
14672 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14673 do
14674 for lookdir in "$withval/bin" "$withval"
14675 do
14676 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14677 apr_config="$lookdir/$apr_temp_apr_config_file"
14678
14679 apr_found="yes"
14680 break 2
14681 fi
14682 done
14683 done
14684
14685 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14686 apr_config="$withval"
14687 apr_found="yes"
14688 fi
14689
14690 if test "$apr_found" != "yes"; then
14691 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
14692 fi
14693
14694else
14695
14696 if test -n "1" && test "1" = "1"; then
14697 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14698 do
14699 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14700 apr_config="$apr_temp_apr_config_file"
14701
14702 apr_found="yes"
14703 break
14704 else
14705 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14706 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14707 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14708
14709 apr_found="yes"
14710 break 2
14711 fi
14712 done
14713 fi
14714 done
14715 fi
14716 if test "$apr_found" = "no" && test -d ""; then
14717 apr_temp_abs_srcdir="`cd && pwd`"
14718 apr_found="reconfig"
14719 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14720 case $apr_bundled_major in
14721 "")
14722 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14723 ;;
14724 0)
14725 apr_temp_apr_config_file="apr-config"
14726 ;;
14727 *)
14728 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14729 ;;
14730 esac
14731 if test -n ""; then
14732 apr_config="/$apr_temp_apr_config_file"
14733 else
14734 apr_config="/$apr_temp_apr_config_file"
14735 fi
14736 fi
14737
14738fi
14739
14740
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14742$as_echo "$apr_found" >&6; }
14743
14744case $apr_found in #(
14745 yes) :
14746
14747
14748 for element in `$apr_config --includes`; do
14749 haveit=
14750 for x in $CPPFLAGS; do
14751
14752 acl_save_prefix="$prefix"
14753 prefix="$acl_final_prefix"
14754 acl_save_exec_prefix="$exec_prefix"
14755 exec_prefix="$acl_final_exec_prefix"
14756 eval x=\"$x\"
14757 exec_prefix="$acl_save_exec_prefix"
14758 prefix="$acl_save_prefix"
14759
14760 if test "X$x" = "X$element"; then
14761 haveit=yes
14762 break
14763 fi
14764 done
14765 if test -z "$haveit"; then
14766 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14767 fi
14768 done
14769
14770 LTLIBAPR=`$apr_config --link-libtool`
14771
14772 ;; #(
14773 *) :
14774 as_fn_error "You need apr" "$LINENO" 5 ;;
14775esac
14776
14777
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14779$as_echo_n "checking for a readline compatible library... " >&6; }
14780if test "${vl_cv_lib_readline+set}" = set; then :
14781 $as_echo_n "(cached) " >&6
14782else
14783
14784 ORIG_LIBS="$LIBS"
14785 for readline_lib in readline edit editline; do
14786 for termcap_lib in "" termcap curses ncurses; do
14787 if test -z "$termcap_lib"; then
14788 TRY_LIB="-l$readline_lib"
14789 else
14790 TRY_LIB="-l$readline_lib -l$termcap_lib"
14791 fi
14792 LIBS="$ORIG_LIBS $TRY_LIB"
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794/* end confdefs.h. */
14795
14796/* Override any GCC internal prototype to avoid an error.
14797 Use char because int might match the return type of a GCC
14798 builtin and then its argument prototype would still apply. */
14799#ifdef __cplusplus
14800extern "C"
14801#endif
14802char readline ();
14803int
14804main ()
14805{
14806return readline ();
14807 ;
14808 return 0;
14809}
14810_ACEOF
14811if ac_fn_cxx_try_link "$LINENO"; then :
14812 vl_cv_lib_readline="$TRY_LIB"
14813fi
14814rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 if test -n "$vl_cv_lib_readline"; then
14817 break
14818 fi
14819 done
14820 if test -n "$vl_cv_lib_readline"; then
14821 break
14822 fi
14823 done
14824 if test -z "$vl_cv_lib_readline"; then
14825 vl_cv_lib_readline="no"
14826 LIBS="$ORIG_LIBS"
14827 fi
14828
14829fi
14830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14831$as_echo "$vl_cv_lib_readline" >&6; }
14832
14833 if test "$vl_cv_lib_readline" != "no"; then
14834
14835$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14836
14837 for ac_header in readline.h readline/readline.h
14838do :
14839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14840ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14841eval as_val=\$$as_ac_Header
14842 if test "x$as_val" = x""yes; then :
14843 cat >>confdefs.h <<_ACEOF
14844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845_ACEOF
14846
14847fi
14848
14849done
14850
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14852$as_echo_n "checking whether readline supports history... " >&6; }
14853if test "${vl_cv_lib_readline_history+set}" = set; then :
14854 $as_echo_n "(cached) " >&6
14855else
14856
14857 vl_cv_lib_readline_history="no"
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h. */
14860
14861/* Override any GCC internal prototype to avoid an error.
14862 Use char because int might match the return type of a GCC
14863 builtin and then its argument prototype would still apply. */
14864#ifdef __cplusplus
14865extern "C"
14866#endif
14867char add_history ();
14868int
14869main ()
14870{
14871return add_history ();
14872 ;
14873 return 0;
14874}
14875_ACEOF
14876if ac_fn_cxx_try_link "$LINENO"; then :
14877 vl_cv_lib_readline_history="yes"
14878fi
14879rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14884$as_echo "$vl_cv_lib_readline_history" >&6; }
14885 if test "$vl_cv_lib_readline_history" = "yes"; then
14886
14887$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14888
14889 for ac_header in history.h readline/history.h
14890do :
14891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14893eval as_val=\$$as_ac_Header
14894 if test "x$as_val" = x""yes; then :
14895 cat >>confdefs.h <<_ACEOF
14896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14897_ACEOF
14898
14899fi
14900
14901done
14902
14903 fi
14904 fi
14905
14906# Find a good install program. We prefer a C program (faster),
14907# so one script is as good as another. But avoid the broken or
14908# incompatible versions:
14909# SysV /etc/install, /usr/sbin/install
14910# SunOS /usr/etc/install
14911# IRIX /sbin/install
14912# AIX /bin/install
14913# AmigaOS /C/install, which installs bootblocks on floppy discs
14914# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14915# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14916# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14917# OS/2's system install, which has a completely different semantic
14918# ./install, which can be erroneously created by make from ./install.sh.
14919# Reject install programs that cannot install multiple files.
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14921$as_echo_n "checking for a BSD-compatible install... " >&6; }
14922if test -z "$INSTALL"; then
14923if test "${ac_cv_path_install+set}" = set; then :
14924 $as_echo_n "(cached) " >&6
14925else
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927for as_dir in $PATH
14928do
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
14931 # Account for people who put trailing slashes in PATH elements.
14932case $as_dir/ in #((
14933 ./ | .// | /[cC]/* | \
14934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14935 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14936 /usr/ucb/* ) ;;
14937 *)
14938 # OSF1 and SCO ODT 3.0 have their own names for install.
14939 # Don't use installbsd from OSF since it installs stuff as root
14940 # by default.
14941 for ac_prog in ginstall scoinst install; do
14942 for ac_exec_ext in '' $ac_executable_extensions; do
14943 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14944 if test $ac_prog = install &&
14945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14946 # AIX install. It has an incompatible calling convention.
14947 :
14948 elif test $ac_prog = install &&
14949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14950 # program-specific install script used by HP pwplus--don't use.
14951 :
14952 else
14953 rm -rf conftest.one conftest.two conftest.dir
14954 echo one > conftest.one
14955 echo two > conftest.two
14956 mkdir conftest.dir
14957 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14958 test -s conftest.one && test -s conftest.two &&
14959 test -s conftest.dir/conftest.one &&
14960 test -s conftest.dir/conftest.two
14961 then
14962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14963 break 3
14964 fi
14965 fi
14966 fi
14967 done
14968 done
14969 ;;
14970esac
14971
14972 done
14973IFS=$as_save_IFS
14974
14975rm -rf conftest.one conftest.two conftest.dir
14976
14977fi
14978 if test "${ac_cv_path_install+set}" = set; then
14979 INSTALL=$ac_cv_path_install
14980 else
14981 # As a last resort, use the slow shell script. Don't cache a
14982 # value for INSTALL within a source directory, because that will
14983 # break other packages using the cache if that directory is
14984 # removed, or if the value is a relative name.
14985 INSTALL=$ac_install_sh
14986 fi
14987fi
14988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14989$as_echo "$INSTALL" >&6; }
14990
14991# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14992# It thinks the first close brace ends the variable substitution.
14993test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14994
14995test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14996
14997test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14998
14999ac_ext=c
15000ac_cpp='$CPP $CPPFLAGS'
15001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15003ac_compiler_gnu=$ac_cv_c_compiler_gnu
15004
15005
15006 if test "X$prefix" = "XNONE"; then
15007 acl_final_prefix="$ac_default_prefix"
15008 else
15009 acl_final_prefix="$prefix"
15010 fi
15011 if test "X$exec_prefix" = "XNONE"; then
15012 acl_final_exec_prefix='${prefix}'
15013 else
15014 acl_final_exec_prefix="$exec_prefix"
15015 fi
15016 acl_save_prefix="$prefix"
15017 prefix="$acl_final_prefix"
15018 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15019 prefix="$acl_save_prefix"
15020
15021
15022# Check whether --with-gnu-ld was given.
15023if test "${with_gnu_ld+set}" = set; then :
15024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15025else
15026 with_gnu_ld=no
15027fi
15028
15029# Prepare PATH_SEPARATOR.
15030# The user is always right.
15031if test "${PATH_SEPARATOR+set}" != set; then
15032 echo "#! /bin/sh" >conf$$.sh
15033 echo "exit 0" >>conf$$.sh
15034 chmod +x conf$$.sh
15035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15036 PATH_SEPARATOR=';'
15037 else
15038 PATH_SEPARATOR=:
15039 fi
15040 rm -f conf$$.sh
15041fi
15042ac_prog=ld
15043if test "$GCC" = yes; then
15044 # Check if gcc -print-prog-name=ld gives a path.
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15046$as_echo_n "checking for ld used by GCC... " >&6; }
15047 case $host in
15048 *-*-mingw*)
15049 # gcc leaves a trailing carriage return which upsets mingw
15050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15051 *)
15052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15053 esac
15054 case $ac_prog in
15055 # Accept absolute paths.
15056 [\\/]* | [A-Za-z]:[\\/]*)
15057 re_direlt='/[^/][^/]*/\.\./'
15058 # Canonicalize the path of ld
15059 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15061 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15062 done
15063 test -z "$LD" && LD="$ac_prog"
15064 ;;
15065 "")
15066 # If it fails, then pretend we aren't using GCC.
15067 ac_prog=ld
15068 ;;
15069 *)
15070 # If it is relative, then search for the first ld in PATH.
15071 with_gnu_ld=unknown
15072 ;;
15073 esac
15074elif test "$with_gnu_ld" = yes; then
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15076$as_echo_n "checking for GNU ld... " >&6; }
15077else
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15079$as_echo_n "checking for non-GNU ld... " >&6; }
15080fi
15081if test "${acl_cv_path_LD+set}" = set; then :
15082 $as_echo_n "(cached) " >&6
15083else
15084 if test -z "$LD"; then
15085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15086 for ac_dir in $PATH; do
15087 test -z "$ac_dir" && ac_dir=.
15088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15089 acl_cv_path_LD="$ac_dir/$ac_prog"
15090 # Check to see if the program is GNU ld. I'd rather use --version,
15091 # but apparently some GNU ld's only accept -v.
15092 # Break only if it was the GNU/non-GNU ld that we prefer.
15093 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15094 *GNU* | *'with BFD'*)
15095 test "$with_gnu_ld" != no && break ;;
15096 *)
15097 test "$with_gnu_ld" != yes && break ;;
15098 esac
15099 fi
15100 done
15101 IFS="$ac_save_ifs"
15102else
15103 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15104fi
15105fi
15106
15107LD="$acl_cv_path_LD"
15108if test -n "$LD"; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15110$as_echo "$LD" >&6; }
15111else
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113$as_echo "no" >&6; }
15114fi
15115test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15117$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15118if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15119 $as_echo_n "(cached) " >&6
15120else
15121 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15122case `$LD -v 2>&1 </dev/null` in
15123*GNU* | *'with BFD'*)
15124 acl_cv_prog_gnu_ld=yes ;;
15125*)
15126 acl_cv_prog_gnu_ld=no ;;
15127esac
15128fi
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15130$as_echo "$acl_cv_prog_gnu_ld" >&6; }
15131with_gnu_ld=$acl_cv_prog_gnu_ld
15132
15133
15134
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15137$as_echo_n "checking for shared library run path origin... " >&6; }
15138if test "${acl_cv_rpath+set}" = set; then :
15139 $as_echo_n "(cached) " >&6
15140else
15141
15142 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15143 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15144 . ./conftest.sh
15145 rm -f ./conftest.sh
15146 acl_cv_rpath=done
15147
15148fi
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15150$as_echo "$acl_cv_rpath" >&6; }
15151 wl="$acl_cv_wl"
15152 acl_libext="$acl_cv_libext"
15153 acl_shlibext="$acl_cv_shlibext"
15154 acl_libname_spec="$acl_cv_libname_spec"
15155 acl_library_names_spec="$acl_cv_library_names_spec"
15156 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15157 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15158 acl_hardcode_direct="$acl_cv_hardcode_direct"
15159 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15160 # Check whether --enable-rpath was given.
15161if test "${enable_rpath+set}" = set; then :
15162 enableval=$enable_rpath; :
15163else
15164 enable_rpath=yes
15165fi
15166
15167
15168
15169 acl_libdirstem=lib
15170 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15171 if test -n "$searchpath"; then
15172 acl_save_IFS="${IFS= }"; IFS=":"
15173 for searchdir in $searchpath; do
15174 if test -d "$searchdir"; then
15175 case "$searchdir" in
15176 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15177 *) searchdir=`cd "$searchdir" && pwd`
15178 case "$searchdir" in
15179 */lib64 ) acl_libdirstem=lib64 ;;
15180 esac ;;
15181 esac
15182 fi
15183 done
15184 IFS="$acl_save_IFS"
15185 fi
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195 use_additional=yes
15196
15197 acl_save_prefix="$prefix"
15198 prefix="$acl_final_prefix"
15199 acl_save_exec_prefix="$exec_prefix"
15200 exec_prefix="$acl_final_exec_prefix"
15201
15202 eval additional_includedir=\"$includedir\"
15203 eval additional_libdir=\"$libdir\"
15204
15205 exec_prefix="$acl_save_exec_prefix"
15206 prefix="$acl_save_prefix"
15207
15208
15209# Check whether --with-libiconv-prefix was given.
15210if test "${with_libiconv_prefix+set}" = set; then :
15211 withval=$with_libiconv_prefix;
15212 if test "X$withval" = "Xno"; then
15213 use_additional=no
15214 else
15215 if test "X$withval" = "X"; then
15216
15217 acl_save_prefix="$prefix"
15218 prefix="$acl_final_prefix"
15219 acl_save_exec_prefix="$exec_prefix"
15220 exec_prefix="$acl_final_exec_prefix"
15221
15222 eval additional_includedir=\"$includedir\"
15223 eval additional_libdir=\"$libdir\"
15224
15225 exec_prefix="$acl_save_exec_prefix"
15226 prefix="$acl_save_prefix"
15227
15228 else
15229 additional_includedir="$withval/include"
15230 additional_libdir="$withval/$acl_libdirstem"
15231 fi
15232 fi
15233
15234fi
15235
15236 LIBICONV=
15237 LTLIBICONV=
15238 INCICONV=
15239 LIBICONV_PREFIX=
15240 rpathdirs=
15241 ltrpathdirs=
15242 names_already_handled=
15243 names_next_round='iconv '
15244 while test -n "$names_next_round"; do
15245 names_this_round="$names_next_round"
15246 names_next_round=
15247 for name in $names_this_round; do
15248 already_handled=
15249 for n in $names_already_handled; do
15250 if test "$n" = "$name"; then
15251 already_handled=yes
15252 break
15253 fi
15254 done
15255 if test -z "$already_handled"; then
15256 names_already_handled="$names_already_handled $name"
15257 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15258 eval value=\"\$HAVE_LIB$uppername\"
15259 if test -n "$value"; then
15260 if test "$value" = yes; then
15261 eval value=\"\$LIB$uppername\"
15262 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15263 eval value=\"\$LTLIB$uppername\"
15264 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15265 else
15266 :
15267 fi
15268 else
15269 found_dir=
15270 found_la=
15271 found_so=
15272 found_a=
15273 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15274 if test -n "$acl_shlibext"; then
15275 shrext=".$acl_shlibext" # typically: shrext=.so
15276 else
15277 shrext=
15278 fi
15279 if test $use_additional = yes; then
15280 dir="$additional_libdir"
15281 if test -n "$acl_shlibext"; then
15282 if test -f "$dir/$libname$shrext"; then
15283 found_dir="$dir"
15284 found_so="$dir/$libname$shrext"
15285 else
15286 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15287 ver=`(cd "$dir" && \
15288 for f in "$libname$shrext".*; do echo "$f"; done \
15289 | sed -e "s,^$libname$shrext\\\\.,," \
15290 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15291 | sed 1q ) 2>/dev/null`
15292 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15293 found_dir="$dir"
15294 found_so="$dir/$libname$shrext.$ver"
15295 fi
15296 else
15297 eval library_names=\"$acl_library_names_spec\"
15298 for f in $library_names; do
15299 if test -f "$dir/$f"; then
15300 found_dir="$dir"
15301 found_so="$dir/$f"
15302 break
15303 fi
15304 done
15305 fi
15306 fi
15307 fi
15308 if test "X$found_dir" = "X"; then
15309 if test -f "$dir/$libname.$acl_libext"; then
15310 found_dir="$dir"
15311 found_a="$dir/$libname.$acl_libext"
15312 fi
15313 fi
15314 if test "X$found_dir" != "X"; then
15315 if test -f "$dir/$libname.la"; then
15316 found_la="$dir/$libname.la"
15317 fi
15318 fi
15319 fi
15320 if test "X$found_dir" = "X"; then
15321 for x in $LDFLAGS $LTLIBICONV; do
15322
15323 acl_save_prefix="$prefix"
15324 prefix="$acl_final_prefix"
15325 acl_save_exec_prefix="$exec_prefix"
15326 exec_prefix="$acl_final_exec_prefix"
15327 eval x=\"$x\"
15328 exec_prefix="$acl_save_exec_prefix"
15329 prefix="$acl_save_prefix"
15330
15331 case "$x" in
15332 -L*)
15333 dir=`echo "X$x" | sed -e 's/^X-L//'`
15334 if test -n "$acl_shlibext"; then
15335 if test -f "$dir/$libname$shrext"; then
15336 found_dir="$dir"
15337 found_so="$dir/$libname$shrext"
15338 else
15339 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15340 ver=`(cd "$dir" && \
15341 for f in "$libname$shrext".*; do echo "$f"; done \
15342 | sed -e "s,^$libname$shrext\\\\.,," \
15343 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15344 | sed 1q ) 2>/dev/null`
15345 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15346 found_dir="$dir"
15347 found_so="$dir/$libname$shrext.$ver"
15348 fi
15349 else
15350 eval library_names=\"$acl_library_names_spec\"
15351 for f in $library_names; do
15352 if test -f "$dir/$f"; then
15353 found_dir="$dir"
15354 found_so="$dir/$f"
15355 break
15356 fi
15357 done
15358 fi
15359 fi
15360 fi
15361 if test "X$found_dir" = "X"; then
15362 if test -f "$dir/$libname.$acl_libext"; then
15363 found_dir="$dir"
15364 found_a="$dir/$libname.$acl_libext"
15365 fi
15366 fi
15367 if test "X$found_dir" != "X"; then
15368 if test -f "$dir/$libname.la"; then
15369 found_la="$dir/$libname.la"
15370 fi
15371 fi
15372 ;;
15373 esac
15374 if test "X$found_dir" != "X"; then
15375 break
15376 fi
15377 done
15378 fi
15379 if test "X$found_dir" != "X"; then
15380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15381 if test "X$found_so" != "X"; then
15382 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15384 else
15385 haveit=
15386 for x in $ltrpathdirs; do
15387 if test "X$x" = "X$found_dir"; then
15388 haveit=yes
15389 break
15390 fi
15391 done
15392 if test -z "$haveit"; then
15393 ltrpathdirs="$ltrpathdirs $found_dir"
15394 fi
15395 if test "$acl_hardcode_direct" = yes; then
15396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15397 else
15398 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15400 haveit=
15401 for x in $rpathdirs; do
15402 if test "X$x" = "X$found_dir"; then
15403 haveit=yes
15404 break
15405 fi
15406 done
15407 if test -z "$haveit"; then
15408 rpathdirs="$rpathdirs $found_dir"
15409 fi
15410 else
15411 haveit=
15412 for x in $LDFLAGS $LIBICONV; do
15413
15414 acl_save_prefix="$prefix"
15415 prefix="$acl_final_prefix"
15416 acl_save_exec_prefix="$exec_prefix"
15417 exec_prefix="$acl_final_exec_prefix"
15418 eval x=\"$x\"
15419 exec_prefix="$acl_save_exec_prefix"
15420 prefix="$acl_save_prefix"
15421
15422 if test "X$x" = "X-L$found_dir"; then
15423 haveit=yes
15424 break
15425 fi
15426 done
15427 if test -z "$haveit"; then
15428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15429 fi
15430 if test "$acl_hardcode_minus_L" != no; then
15431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15432 else
15433 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15434 fi
15435 fi
15436 fi
15437 fi
15438 else
15439 if test "X$found_a" != "X"; then
15440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15441 else
15442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15443 fi
15444 fi
15445 additional_includedir=
15446 case "$found_dir" in
15447 */$acl_libdirstem | */$acl_libdirstem/)
15448 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15449 LIBICONV_PREFIX="$basedir"
15450 additional_includedir="$basedir/include"
15451 ;;
15452 esac
15453 if test "X$additional_includedir" != "X"; then
15454 if test "X$additional_includedir" != "X/usr/include"; then
15455 haveit=
15456 if test "X$additional_includedir" = "X/usr/local/include"; then
15457 if test -n "$GCC"; then
15458 case $host_os in
15459 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15460 esac
15461 fi
15462 fi
15463 if test -z "$haveit"; then
15464 for x in $CPPFLAGS $INCICONV; do
15465
15466 acl_save_prefix="$prefix"
15467 prefix="$acl_final_prefix"
15468 acl_save_exec_prefix="$exec_prefix"
15469 exec_prefix="$acl_final_exec_prefix"
15470 eval x=\"$x\"
15471 exec_prefix="$acl_save_exec_prefix"
15472 prefix="$acl_save_prefix"
15473
15474 if test "X$x" = "X-I$additional_includedir"; then
15475 haveit=yes
15476 break
15477 fi
15478 done
15479 if test -z "$haveit"; then
15480 if test -d "$additional_includedir"; then
15481 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15482 fi
15483 fi
15484 fi
15485 fi
15486 fi
15487 if test -n "$found_la"; then
15488 save_libdir="$libdir"
15489 case "$found_la" in
15490 */* | *\\*) . "$found_la" ;;
15491 *) . "./$found_la" ;;
15492 esac
15493 libdir="$save_libdir"
15494 for dep in $dependency_libs; do
15495 case "$dep" in
15496 -L*)
15497 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15498 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15499 haveit=
15500 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15501 if test -n "$GCC"; then
15502 case $host_os in
15503 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15504 esac
15505 fi
15506 fi
15507 if test -z "$haveit"; then
15508 haveit=
15509 for x in $LDFLAGS $LIBICONV; do
15510
15511 acl_save_prefix="$prefix"
15512 prefix="$acl_final_prefix"
15513 acl_save_exec_prefix="$exec_prefix"
15514 exec_prefix="$acl_final_exec_prefix"
15515 eval x=\"$x\"
15516 exec_prefix="$acl_save_exec_prefix"
15517 prefix="$acl_save_prefix"
15518
15519 if test "X$x" = "X-L$additional_libdir"; then
15520 haveit=yes
15521 break
15522 fi
15523 done
15524 if test -z "$haveit"; then
15525 if test -d "$additional_libdir"; then
15526 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15527 fi
15528 fi
15529 haveit=
15530 for x in $LDFLAGS $LTLIBICONV; do
15531
15532 acl_save_prefix="$prefix"
15533 prefix="$acl_final_prefix"
15534 acl_save_exec_prefix="$exec_prefix"
15535 exec_prefix="$acl_final_exec_prefix"
15536 eval x=\"$x\"
15537 exec_prefix="$acl_save_exec_prefix"
15538 prefix="$acl_save_prefix"
15539
15540 if test "X$x" = "X-L$additional_libdir"; then
15541 haveit=yes
15542 break
15543 fi
15544 done
15545 if test -z "$haveit"; then
15546 if test -d "$additional_libdir"; then
15547 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15548 fi
15549 fi
15550 fi
15551 fi
15552 ;;
15553 -R*)
15554 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15555 if test "$enable_rpath" != no; then
15556 haveit=
15557 for x in $rpathdirs; do
15558 if test "X$x" = "X$dir"; then
15559 haveit=yes
15560 break
15561 fi
15562 done
15563 if test -z "$haveit"; then
15564 rpathdirs="$rpathdirs $dir"
15565 fi
15566 haveit=
15567 for x in $ltrpathdirs; do
15568 if test "X$x" = "X$dir"; then
15569 haveit=yes
15570 break
15571 fi
15572 done
15573 if test -z "$haveit"; then
15574 ltrpathdirs="$ltrpathdirs $dir"
15575 fi
15576 fi
15577 ;;
15578 -l*)
15579 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15580 ;;
15581 *.la)
15582 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15583 ;;
15584 *)
15585 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15587 ;;
15588 esac
15589 done
15590 fi
15591 else
15592 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15594 fi
15595 fi
15596 fi
15597 done
15598 done
15599 if test "X$rpathdirs" != "X"; then
15600 if test -n "$acl_hardcode_libdir_separator"; then
15601 alldirs=
15602 for found_dir in $rpathdirs; do
15603 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15604 done
15605 acl_save_libdir="$libdir"
15606 libdir="$alldirs"
15607 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15608 libdir="$acl_save_libdir"
15609 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15610 else
15611 for found_dir in $rpathdirs; do
15612 acl_save_libdir="$libdir"
15613 libdir="$found_dir"
15614 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15615 libdir="$acl_save_libdir"
15616 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15617 done
15618 fi
15619 fi
15620 if test "X$ltrpathdirs" != "X"; then
15621 for found_dir in $ltrpathdirs; do
15622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15623 done
15624 fi
15625
15626
15627
15628
15629
15630
15631
15632 am_save_CPPFLAGS="$CPPFLAGS"
15633
15634 for element in $INCICONV; do
15635 haveit=
15636 for x in $CPPFLAGS; do
15637
15638 acl_save_prefix="$prefix"
15639 prefix="$acl_final_prefix"
15640 acl_save_exec_prefix="$exec_prefix"
15641 exec_prefix="$acl_final_exec_prefix"
15642 eval x=\"$x\"
15643 exec_prefix="$acl_save_exec_prefix"
15644 prefix="$acl_save_prefix"
15645
15646 if test "X$x" = "X$element"; then
15647 haveit=yes
15648 break
15649 fi
15650 done
15651 if test -z "$haveit"; then
15652 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15653 fi
15654 done
15655
15656
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15658$as_echo_n "checking for iconv... " >&6; }
15659if test "${am_cv_func_iconv+set}" = set; then :
15660 $as_echo_n "(cached) " >&6
15661else
15662
15663 am_cv_func_iconv="no, consider installing GNU libiconv"
15664 am_cv_lib_iconv=no
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h. */
15667#include <stdlib.h>
15668#include <iconv.h>
15669int
15670main ()
15671{
15672iconv_t cd = iconv_open("","");
15673 iconv(cd,NULL,NULL,NULL,NULL);
15674 iconv_close(cd);
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679if ac_fn_c_try_link "$LINENO"; then :
15680 am_cv_func_iconv=yes
15681fi
15682rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 if test "$am_cv_func_iconv" != yes; then
15685 am_save_LIBS="$LIBS"
15686 LIBS="$LIBS $LIBICONV"
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688/* end confdefs.h. */
15689#include <stdlib.h>
15690#include <iconv.h>
15691int
15692main ()
15693{
15694iconv_t cd = iconv_open("","");
15695 iconv(cd,NULL,NULL,NULL,NULL);
15696 iconv_close(cd);
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701if ac_fn_c_try_link "$LINENO"; then :
15702 am_cv_lib_iconv=yes
15703 am_cv_func_iconv=yes
15704fi
15705rm -f core conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
15707 LIBS="$am_save_LIBS"
15708 fi
15709
15710fi
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15712$as_echo "$am_cv_func_iconv" >&6; }
15713 if test "$am_cv_func_iconv" = yes; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15715$as_echo_n "checking for working iconv... " >&6; }
15716if test "${am_cv_func_iconv_works+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15718else
15719
15720 am_save_LIBS="$LIBS"
15721 if test $am_cv_lib_iconv = yes; then
15722 LIBS="$LIBS $LIBICONV"
15723 fi
15724 if test "$cross_compiling" = yes; then :
15725 case "$host_os" in
15726 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15727 *) am_cv_func_iconv_works="guessing yes" ;;
15728 esac
15729else
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h. */
15732
15733#include <iconv.h>
15734#include <string.h>
15735int main ()
15736{
15737 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15738 returns. */
15739 {
15740 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15741 if (cd_utf8_to_88591 != (iconv_t)(-1))
15742 {
15743 static const char input[] = "\342\202\254"; /* EURO SIGN */
15744 char buf[10];
15745 const char *inptr = input;
15746 size_t inbytesleft = strlen (input);
15747 char *outptr = buf;
15748 size_t outbytesleft = sizeof (buf);
15749 size_t res = iconv (cd_utf8_to_88591,
15750 (char **) &inptr, &inbytesleft,
15751 &outptr, &outbytesleft);
15752 if (res == 0)
15753 return 1;
15754 }
15755 }
15756#if 0 /* This bug could be worked around by the caller. */
15757 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15758 {
15759 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15760 if (cd_88591_to_utf8 != (iconv_t)(-1))
15761 {
15762 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15763 char buf[50];
15764 const char *inptr = input;
15765 size_t inbytesleft = strlen (input);
15766 char *outptr = buf;
15767 size_t outbytesleft = sizeof (buf);
15768 size_t res = iconv (cd_88591_to_utf8,
15769 (char **) &inptr, &inbytesleft,
15770 &outptr, &outbytesleft);
15771 if ((int)res > 0)
15772 return 1;
15773 }
15774 }
15775#endif
15776 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15777 provided. */
15778 if (/* Try standardized names. */
15779 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15780 /* Try IRIX, OSF/1 names. */
15781 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15782 /* Try AIX names. */
15783 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15784 /* Try HP-UX names. */
15785 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15786 return 1;
15787 return 0;
15788}
15789_ACEOF
15790if ac_fn_c_try_run "$LINENO"; then :
15791 am_cv_func_iconv_works=yes
15792else
15793 am_cv_func_iconv_works=no
15794fi
15795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15796 conftest.$ac_objext conftest.beam conftest.$ac_ext
15797fi
15798
15799 LIBS="$am_save_LIBS"
15800
15801fi
15802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15803$as_echo "$am_cv_func_iconv_works" >&6; }
15804 case "$am_cv_func_iconv_works" in
15805 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15806 *) am_func_iconv=yes ;;
15807 esac
15808 else
15809 am_func_iconv=no am_cv_lib_iconv=no
15810 fi
15811 if test "$am_func_iconv" = yes; then
15812
15813$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15814
15815 fi
15816 if test "$am_cv_lib_iconv" = yes; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15818$as_echo_n "checking how to link with libiconv... " >&6; }
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15820$as_echo "$LIBICONV" >&6; }
15821 else
15822 CPPFLAGS="$am_save_CPPFLAGS"
15823 LIBICONV=
15824 LTLIBICONV=
15825 fi
15826
15827
15828
15829 if test "$am_cv_func_iconv" = yes; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15831$as_echo_n "checking for iconv declaration... " >&6; }
15832 if test "${am_cv_proto_iconv+set}" = set; then :
15833 $as_echo_n "(cached) " >&6
15834else
15835
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837/* end confdefs.h. */
15838
15839#include <stdlib.h>
15840#include <iconv.h>
15841extern
15842#ifdef __cplusplus
15843"C"
15844#endif
15845#if defined(__STDC__) || defined(__cplusplus)
15846size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15847#else
15848size_t iconv();
15849#endif
15850
15851int
15852main ()
15853{
15854
15855 ;
15856 return 0;
15857}
15858_ACEOF
15859if ac_fn_c_try_compile "$LINENO"; then :
15860 am_cv_proto_iconv_arg1=""
15861else
15862 am_cv_proto_iconv_arg1="const"
15863fi
15864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15865 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);"
15866fi
15867
15868 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15870 }$am_cv_proto_iconv" >&5
15871$as_echo "${ac_t:-
15872 }$am_cv_proto_iconv" >&6; }
15873
15874cat >>confdefs.h <<_ACEOF
15875#define ICONV_CONST $am_cv_proto_iconv_arg1
15876_ACEOF
15877
15878 fi
15879
15880ac_ext=cpp
15881ac_cpp='$CXXCPP $CPPFLAGS'
15882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15885
15886case $am_cv_func_iconv in #(
15887 yes) :
15888 ;; #(
15889 *) :
15890 as_fn_error "You need iconv" "$LINENO" 5 ;;
15891esac
15892
15893
15894# Check whether --enable-javascript was given.
15895if test "${enable_javascript+set}" = set; then :
15896 enableval=$enable_javascript;
15897 case $enableval in #(
15898 yes) :
15899
15900
15901
15902pkg_failed=no
15903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15904$as_echo_n "checking for WEBKIT... " >&6; }
15905
15906if test -n "$PKG_CONFIG"; then
15907 if test -n "$WEBKIT_CFLAGS"; then
15908 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15909 else
15910 if test -n "$PKG_CONFIG" && \
15911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15912 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15913 ac_status=$?
15914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15915 test $ac_status = 0; }; then
15916 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15917else
15918 pkg_failed=yes
15919fi
15920 fi
15921else
15922 pkg_failed=untried
15923fi
15924if test -n "$PKG_CONFIG"; then
15925 if test -n "$WEBKIT_LIBS"; then
15926 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15927 else
15928 if test -n "$PKG_CONFIG" && \
15929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15930 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15931 ac_status=$?
15932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15933 test $ac_status = 0; }; then
15934 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15935else
15936 pkg_failed=yes
15937fi
15938 fi
15939else
15940 pkg_failed=untried
15941fi
15942
15943
15944
15945if test $pkg_failed = yes; then
15946
15947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15948 _pkg_short_errors_supported=yes
15949else
15950 _pkg_short_errors_supported=no
15951fi
15952 if test $_pkg_short_errors_supported = yes; then
15953 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15954 else
15955 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15956 fi
15957 # Put the nasty error message in config.log where it belongs
15958 echo "$WEBKIT_PKG_ERRORS" >&5
15959
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961$as_echo "no" >&6; }
15962
15963
15964pkg_failed=no
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15966$as_echo_n "checking for WEBKIT... " >&6; }
15967
15968if test -n "$PKG_CONFIG"; then
15969 if test -n "$WEBKIT_CFLAGS"; then
15970 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15971 else
15972 if test -n "$PKG_CONFIG" && \
15973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15974 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15975 ac_status=$?
15976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977 test $ac_status = 0; }; then
15978 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15979else
15980 pkg_failed=yes
15981fi
15982 fi
15983else
15984 pkg_failed=untried
15985fi
15986if test -n "$PKG_CONFIG"; then
15987 if test -n "$WEBKIT_LIBS"; then
15988 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15989 else
15990 if test -n "$PKG_CONFIG" && \
15991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15992 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15993 ac_status=$?
15994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15995 test $ac_status = 0; }; then
15996 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15997else
15998 pkg_failed=yes
15999fi
16000 fi
16001else
16002 pkg_failed=untried
16003fi
16004
16005
16006
16007if test $pkg_failed = yes; then
16008
16009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16010 _pkg_short_errors_supported=yes
16011else
16012 _pkg_short_errors_supported=no
16013fi
16014 if test $_pkg_short_errors_supported = yes; then
16015 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16016 else
16017 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16018 fi
16019 # Put the nasty error message in config.log where it belongs
16020 echo "$WEBKIT_PKG_ERRORS" >&5
16021
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16023$as_echo "no" >&6; }
16024
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16027$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16028if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16029 $as_echo_n "(cached) " >&6
16030else
16031
16032 ac_check_framework_save_LIBS=$LIBS
16033 LIBS="-framework JavaScriptCore $LIBS"
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h. */
16036
16037 #include <JavaScriptCore/JSBase.h>
16038
16039int
16040main ()
16041{
16042JSEvaluateScript(0, 0, 0, 0, 0, 0);
16043 ;
16044 return 0;
16045}
16046_ACEOF
16047if ac_fn_cxx_try_link "$LINENO"; then :
16048
16049 ac_cv_framework_JavaScriptCore=yes
16050
16051else
16052 ac_cv_framework_JavaScriptCore=no
16053fi
16054rm -f core conftest.err conftest.$ac_objext \
16055 conftest$ac_exeext conftest.$ac_ext
16056 LIBS=$ac_check_framework_save_LIBS
16057
16058fi
16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16060$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16061 if test $ac_cv_framework_JavaScriptCore = yes; then :
16062
16063
16064 for element in "-framework JavaScriptCore $LIBS"; do
16065 haveit=
16066 for x in $LIBS; do
16067
16068 acl_save_prefix="$prefix"
16069 prefix="$acl_final_prefix"
16070 acl_save_exec_prefix="$exec_prefix"
16071 exec_prefix="$acl_final_exec_prefix"
16072 eval x=\"$x\"
16073 exec_prefix="$acl_save_exec_prefix"
16074 prefix="$acl_save_prefix"
16075
16076 if test "X$x" = "X$element"; then
16077 haveit=yes
16078 break
16079 fi
16080 done
16081 if test -z "$haveit"; then
16082 LIBS="${LIBS}${LIBS:+ }$element"
16083 fi
16084 done
16085
16086 CY_EXECUTE=1
16087
16088fi
16089
16090elif test $pkg_failed = untried; then
16091
16092
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16094$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16095if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16096 $as_echo_n "(cached) " >&6
16097else
16098
16099 ac_check_framework_save_LIBS=$LIBS
16100 LIBS="-framework JavaScriptCore $LIBS"
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102/* end confdefs.h. */
16103
16104 #include <JavaScriptCore/JSBase.h>
16105
16106int
16107main ()
16108{
16109JSEvaluateScript(0, 0, 0, 0, 0, 0);
16110 ;
16111 return 0;
16112}
16113_ACEOF
16114if ac_fn_cxx_try_link "$LINENO"; then :
16115
16116 ac_cv_framework_JavaScriptCore=yes
16117
16118else
16119 ac_cv_framework_JavaScriptCore=no
16120fi
16121rm -f core conftest.err conftest.$ac_objext \
16122 conftest$ac_exeext conftest.$ac_ext
16123 LIBS=$ac_check_framework_save_LIBS
16124
16125fi
16126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16127$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16128 if test $ac_cv_framework_JavaScriptCore = yes; then :
16129
16130
16131 for element in "-framework JavaScriptCore $LIBS"; do
16132 haveit=
16133 for x in $LIBS; do
16134
16135 acl_save_prefix="$prefix"
16136 prefix="$acl_final_prefix"
16137 acl_save_exec_prefix="$exec_prefix"
16138 exec_prefix="$acl_final_exec_prefix"
16139 eval x=\"$x\"
16140 exec_prefix="$acl_save_exec_prefix"
16141 prefix="$acl_save_prefix"
16142
16143 if test "X$x" = "X$element"; then
16144 haveit=yes
16145 break
16146 fi
16147 done
16148 if test -z "$haveit"; then
16149 LIBS="${LIBS}${LIBS:+ }$element"
16150 fi
16151 done
16152
16153 CY_EXECUTE=1
16154
16155fi
16156
16157else
16158 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16159 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16161$as_echo "yes" >&6; }
16162
16163 CY_EXECUTE=1
16164
16165 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16166 haveit=
16167 for x in $CXXFLAGS; do
16168
16169 acl_save_prefix="$prefix"
16170 prefix="$acl_final_prefix"
16171 acl_save_exec_prefix="$exec_prefix"
16172 exec_prefix="$acl_final_exec_prefix"
16173 eval x=\"$x\"
16174 exec_prefix="$acl_save_exec_prefix"
16175 prefix="$acl_save_prefix"
16176
16177 if test "X$x" = "X$element"; then
16178 haveit=yes
16179 break
16180 fi
16181 done
16182 if test -z "$haveit"; then
16183 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16184 fi
16185 done
16186
16187
16188 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16189 haveit=
16190 for x in $LIBS; do
16191
16192 acl_save_prefix="$prefix"
16193 prefix="$acl_final_prefix"
16194 acl_save_exec_prefix="$exec_prefix"
16195 exec_prefix="$acl_final_exec_prefix"
16196 eval x=\"$x\"
16197 exec_prefix="$acl_save_exec_prefix"
16198 prefix="$acl_save_prefix"
16199
16200 if test "X$x" = "X$element"; then
16201 haveit=yes
16202 break
16203 fi
16204 done
16205 if test -z "$haveit"; then
16206 LIBS="${LIBS}${LIBS:+ }$element"
16207 fi
16208 done
16209
16210
16211fi
16212
16213elif test $pkg_failed = untried; then
16214
16215
16216pkg_failed=no
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16218$as_echo_n "checking for WEBKIT... " >&6; }
16219
16220if test -n "$PKG_CONFIG"; then
16221 if test -n "$WEBKIT_CFLAGS"; then
16222 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16223 else
16224 if test -n "$PKG_CONFIG" && \
16225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16226 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16227 ac_status=$?
16228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16229 test $ac_status = 0; }; then
16230 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16231else
16232 pkg_failed=yes
16233fi
16234 fi
16235else
16236 pkg_failed=untried
16237fi
16238if test -n "$PKG_CONFIG"; then
16239 if test -n "$WEBKIT_LIBS"; then
16240 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16241 else
16242 if test -n "$PKG_CONFIG" && \
16243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16244 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16245 ac_status=$?
16246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16247 test $ac_status = 0; }; then
16248 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16249else
16250 pkg_failed=yes
16251fi
16252 fi
16253else
16254 pkg_failed=untried
16255fi
16256
16257
16258
16259if test $pkg_failed = yes; then
16260
16261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16262 _pkg_short_errors_supported=yes
16263else
16264 _pkg_short_errors_supported=no
16265fi
16266 if test $_pkg_short_errors_supported = yes; then
16267 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16268 else
16269 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16270 fi
16271 # Put the nasty error message in config.log where it belongs
16272 echo "$WEBKIT_PKG_ERRORS" >&5
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275$as_echo "no" >&6; }
16276
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16279$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16280if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16281 $as_echo_n "(cached) " >&6
16282else
16283
16284 ac_check_framework_save_LIBS=$LIBS
16285 LIBS="-framework JavaScriptCore $LIBS"
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287/* end confdefs.h. */
16288
16289 #include <JavaScriptCore/JSBase.h>
16290
16291int
16292main ()
16293{
16294JSEvaluateScript(0, 0, 0, 0, 0, 0);
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299if ac_fn_cxx_try_link "$LINENO"; then :
16300
16301 ac_cv_framework_JavaScriptCore=yes
16302
16303else
16304 ac_cv_framework_JavaScriptCore=no
16305fi
16306rm -f core conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308 LIBS=$ac_check_framework_save_LIBS
16309
16310fi
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16312$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16313 if test $ac_cv_framework_JavaScriptCore = yes; then :
16314
16315
16316 for element in "-framework JavaScriptCore $LIBS"; do
16317 haveit=
16318 for x in $LIBS; do
16319
16320 acl_save_prefix="$prefix"
16321 prefix="$acl_final_prefix"
16322 acl_save_exec_prefix="$exec_prefix"
16323 exec_prefix="$acl_final_exec_prefix"
16324 eval x=\"$x\"
16325 exec_prefix="$acl_save_exec_prefix"
16326 prefix="$acl_save_prefix"
16327
16328 if test "X$x" = "X$element"; then
16329 haveit=yes
16330 break
16331 fi
16332 done
16333 if test -z "$haveit"; then
16334 LIBS="${LIBS}${LIBS:+ }$element"
16335 fi
16336 done
16337
16338 CY_EXECUTE=1
16339
16340fi
16341
16342elif test $pkg_failed = untried; then
16343
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16346$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16347if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16348 $as_echo_n "(cached) " >&6
16349else
16350
16351 ac_check_framework_save_LIBS=$LIBS
16352 LIBS="-framework JavaScriptCore $LIBS"
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h. */
16355
16356 #include <JavaScriptCore/JSBase.h>
16357
16358int
16359main ()
16360{
16361JSEvaluateScript(0, 0, 0, 0, 0, 0);
16362 ;
16363 return 0;
16364}
16365_ACEOF
16366if ac_fn_cxx_try_link "$LINENO"; then :
16367
16368 ac_cv_framework_JavaScriptCore=yes
16369
16370else
16371 ac_cv_framework_JavaScriptCore=no
16372fi
16373rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 LIBS=$ac_check_framework_save_LIBS
16376
16377fi
16378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16379$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16380 if test $ac_cv_framework_JavaScriptCore = yes; then :
16381
16382
16383 for element in "-framework JavaScriptCore $LIBS"; do
16384 haveit=
16385 for x in $LIBS; do
16386
16387 acl_save_prefix="$prefix"
16388 prefix="$acl_final_prefix"
16389 acl_save_exec_prefix="$exec_prefix"
16390 exec_prefix="$acl_final_exec_prefix"
16391 eval x=\"$x\"
16392 exec_prefix="$acl_save_exec_prefix"
16393 prefix="$acl_save_prefix"
16394
16395 if test "X$x" = "X$element"; then
16396 haveit=yes
16397 break
16398 fi
16399 done
16400 if test -z "$haveit"; then
16401 LIBS="${LIBS}${LIBS:+ }$element"
16402 fi
16403 done
16404
16405 CY_EXECUTE=1
16406
16407fi
16408
16409else
16410 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16411 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413$as_echo "yes" >&6; }
16414
16415 CY_EXECUTE=1
16416
16417 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16418 haveit=
16419 for x in $CXXFLAGS; do
16420
16421 acl_save_prefix="$prefix"
16422 prefix="$acl_final_prefix"
16423 acl_save_exec_prefix="$exec_prefix"
16424 exec_prefix="$acl_final_exec_prefix"
16425 eval x=\"$x\"
16426 exec_prefix="$acl_save_exec_prefix"
16427 prefix="$acl_save_prefix"
16428
16429 if test "X$x" = "X$element"; then
16430 haveit=yes
16431 break
16432 fi
16433 done
16434 if test -z "$haveit"; then
16435 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16436 fi
16437 done
16438
16439
16440 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16441 haveit=
16442 for x in $LIBS; do
16443
16444 acl_save_prefix="$prefix"
16445 prefix="$acl_final_prefix"
16446 acl_save_exec_prefix="$exec_prefix"
16447 exec_prefix="$acl_final_exec_prefix"
16448 eval x=\"$x\"
16449 exec_prefix="$acl_save_exec_prefix"
16450 prefix="$acl_save_prefix"
16451
16452 if test "X$x" = "X$element"; then
16453 haveit=yes
16454 break
16455 fi
16456 done
16457 if test -z "$haveit"; then
16458 LIBS="${LIBS}${LIBS:+ }$element"
16459 fi
16460 done
16461
16462
16463fi
16464
16465else
16466 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16467 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16469$as_echo "yes" >&6; }
16470
16471 CY_EXECUTE=1
16472
16473 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16474 haveit=
16475 for x in $CXXFLAGS; do
16476
16477 acl_save_prefix="$prefix"
16478 prefix="$acl_final_prefix"
16479 acl_save_exec_prefix="$exec_prefix"
16480 exec_prefix="$acl_final_exec_prefix"
16481 eval x=\"$x\"
16482 exec_prefix="$acl_save_exec_prefix"
16483 prefix="$acl_save_prefix"
16484
16485 if test "X$x" = "X$element"; then
16486 haveit=yes
16487 break
16488 fi
16489 done
16490 if test -z "$haveit"; then
16491 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16492 fi
16493 done
16494
16495
16496 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16497 haveit=
16498 for x in $LIBS; do
16499
16500 acl_save_prefix="$prefix"
16501 prefix="$acl_final_prefix"
16502 acl_save_exec_prefix="$exec_prefix"
16503 exec_prefix="$acl_final_exec_prefix"
16504 eval x=\"$x\"
16505 exec_prefix="$acl_save_exec_prefix"
16506 prefix="$acl_save_prefix"
16507
16508 if test "X$x" = "X$element"; then
16509 haveit=yes
16510 break
16511 fi
16512 done
16513 if test -z "$haveit"; then
16514 LIBS="${LIBS}${LIBS:+ }$element"
16515 fi
16516 done
16517
16518
16519fi
16520
16521 ;; #(
16522 no) :
16523
16524 CY_EXECUTE=0
16525
16526 ;; #(
16527 JavaScriptCore) :
16528
16529
16530
16531pkg_failed=no
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16533$as_echo_n "checking for WEBKIT... " >&6; }
16534
16535if test -n "$PKG_CONFIG"; then
16536 if test -n "$WEBKIT_CFLAGS"; then
16537 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16538 else
16539 if test -n "$PKG_CONFIG" && \
16540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16541 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16542 ac_status=$?
16543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16544 test $ac_status = 0; }; then
16545 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16546else
16547 pkg_failed=yes
16548fi
16549 fi
16550else
16551 pkg_failed=untried
16552fi
16553if test -n "$PKG_CONFIG"; then
16554 if test -n "$WEBKIT_LIBS"; then
16555 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16556 else
16557 if test -n "$PKG_CONFIG" && \
16558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16559 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16560 ac_status=$?
16561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16562 test $ac_status = 0; }; then
16563 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16564else
16565 pkg_failed=yes
16566fi
16567 fi
16568else
16569 pkg_failed=untried
16570fi
16571
16572
16573
16574if test $pkg_failed = yes; then
16575
16576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16577 _pkg_short_errors_supported=yes
16578else
16579 _pkg_short_errors_supported=no
16580fi
16581 if test $_pkg_short_errors_supported = yes; then
16582 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
16583 else
16584 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
16585 fi
16586 # Put the nasty error message in config.log where it belongs
16587 echo "$WEBKIT_PKG_ERRORS" >&5
16588
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16590$as_echo "no" >&6; }
16591
16592
16593pkg_failed=no
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16595$as_echo_n "checking for WEBKIT... " >&6; }
16596
16597if test -n "$PKG_CONFIG"; then
16598 if test -n "$WEBKIT_CFLAGS"; then
16599 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16600 else
16601 if test -n "$PKG_CONFIG" && \
16602 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16603 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16604 ac_status=$?
16605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16606 test $ac_status = 0; }; then
16607 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16608else
16609 pkg_failed=yes
16610fi
16611 fi
16612else
16613 pkg_failed=untried
16614fi
16615if test -n "$PKG_CONFIG"; then
16616 if test -n "$WEBKIT_LIBS"; then
16617 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16618 else
16619 if test -n "$PKG_CONFIG" && \
16620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16621 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16622 ac_status=$?
16623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16624 test $ac_status = 0; }; then
16625 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16626else
16627 pkg_failed=yes
16628fi
16629 fi
16630else
16631 pkg_failed=untried
16632fi
16633
16634
16635
16636if test $pkg_failed = yes; then
16637
16638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16639 _pkg_short_errors_supported=yes
16640else
16641 _pkg_short_errors_supported=no
16642fi
16643 if test $_pkg_short_errors_supported = yes; then
16644 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16645 else
16646 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16647 fi
16648 # Put the nasty error message in config.log where it belongs
16649 echo "$WEBKIT_PKG_ERRORS" >&5
16650
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652$as_echo "no" >&6; }
16653
16654
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16656$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16657if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16658 $as_echo_n "(cached) " >&6
16659else
16660
16661 ac_check_framework_save_LIBS=$LIBS
16662 LIBS="-framework JavaScriptCore $LIBS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664/* end confdefs.h. */
16665
16666 #include <JavaScriptCore/JSBase.h>
16667
16668int
16669main ()
16670{
16671JSEvaluateScript(0, 0, 0, 0, 0, 0);
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676if ac_fn_cxx_try_link "$LINENO"; then :
16677
16678 ac_cv_framework_JavaScriptCore=yes
16679
16680else
16681 ac_cv_framework_JavaScriptCore=no
16682fi
16683rm -f core conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_framework_save_LIBS
16686
16687fi
16688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16689$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16690 if test $ac_cv_framework_JavaScriptCore = yes; then :
16691
16692
16693 for element in "-framework JavaScriptCore $LIBS"; do
16694 haveit=
16695 for x in $LIBS; do
16696
16697 acl_save_prefix="$prefix"
16698 prefix="$acl_final_prefix"
16699 acl_save_exec_prefix="$exec_prefix"
16700 exec_prefix="$acl_final_exec_prefix"
16701 eval x=\"$x\"
16702 exec_prefix="$acl_save_exec_prefix"
16703 prefix="$acl_save_prefix"
16704
16705 if test "X$x" = "X$element"; then
16706 haveit=yes
16707 break
16708 fi
16709 done
16710 if test -z "$haveit"; then
16711 LIBS="${LIBS}${LIBS:+ }$element"
16712 fi
16713 done
16714
16715 CY_EXECUTE=1
16716
16717fi
16718
16719elif test $pkg_failed = untried; then
16720
16721
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16723$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16724if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16725 $as_echo_n "(cached) " >&6
16726else
16727
16728 ac_check_framework_save_LIBS=$LIBS
16729 LIBS="-framework JavaScriptCore $LIBS"
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h. */
16732
16733 #include <JavaScriptCore/JSBase.h>
16734
16735int
16736main ()
16737{
16738JSEvaluateScript(0, 0, 0, 0, 0, 0);
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743if ac_fn_cxx_try_link "$LINENO"; then :
16744
16745 ac_cv_framework_JavaScriptCore=yes
16746
16747else
16748 ac_cv_framework_JavaScriptCore=no
16749fi
16750rm -f core conftest.err conftest.$ac_objext \
16751 conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_framework_save_LIBS
16753
16754fi
16755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16756$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16757 if test $ac_cv_framework_JavaScriptCore = yes; then :
16758
16759
16760 for element in "-framework JavaScriptCore $LIBS"; do
16761 haveit=
16762 for x in $LIBS; do
16763
16764 acl_save_prefix="$prefix"
16765 prefix="$acl_final_prefix"
16766 acl_save_exec_prefix="$exec_prefix"
16767 exec_prefix="$acl_final_exec_prefix"
16768 eval x=\"$x\"
16769 exec_prefix="$acl_save_exec_prefix"
16770 prefix="$acl_save_prefix"
16771
16772 if test "X$x" = "X$element"; then
16773 haveit=yes
16774 break
16775 fi
16776 done
16777 if test -z "$haveit"; then
16778 LIBS="${LIBS}${LIBS:+ }$element"
16779 fi
16780 done
16781
16782 CY_EXECUTE=1
16783
16784fi
16785
16786else
16787 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16788 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790$as_echo "yes" >&6; }
16791
16792 CY_EXECUTE=1
16793
16794 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16795 haveit=
16796 for x in $CXXFLAGS; do
16797
16798 acl_save_prefix="$prefix"
16799 prefix="$acl_final_prefix"
16800 acl_save_exec_prefix="$exec_prefix"
16801 exec_prefix="$acl_final_exec_prefix"
16802 eval x=\"$x\"
16803 exec_prefix="$acl_save_exec_prefix"
16804 prefix="$acl_save_prefix"
16805
16806 if test "X$x" = "X$element"; then
16807 haveit=yes
16808 break
16809 fi
16810 done
16811 if test -z "$haveit"; then
16812 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16813 fi
16814 done
16815
16816
16817 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16818 haveit=
16819 for x in $LIBS; do
16820
16821 acl_save_prefix="$prefix"
16822 prefix="$acl_final_prefix"
16823 acl_save_exec_prefix="$exec_prefix"
16824 exec_prefix="$acl_final_exec_prefix"
16825 eval x=\"$x\"
16826 exec_prefix="$acl_save_exec_prefix"
16827 prefix="$acl_save_prefix"
16828
16829 if test "X$x" = "X$element"; then
16830 haveit=yes
16831 break
16832 fi
16833 done
16834 if test -z "$haveit"; then
16835 LIBS="${LIBS}${LIBS:+ }$element"
16836 fi
16837 done
16838
16839
16840fi
16841
16842elif test $pkg_failed = untried; then
16843
16844
16845pkg_failed=no
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16847$as_echo_n "checking for WEBKIT... " >&6; }
16848
16849if test -n "$PKG_CONFIG"; then
16850 if test -n "$WEBKIT_CFLAGS"; then
16851 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16852 else
16853 if test -n "$PKG_CONFIG" && \
16854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16855 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16856 ac_status=$?
16857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16858 test $ac_status = 0; }; then
16859 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16860else
16861 pkg_failed=yes
16862fi
16863 fi
16864else
16865 pkg_failed=untried
16866fi
16867if test -n "$PKG_CONFIG"; then
16868 if test -n "$WEBKIT_LIBS"; then
16869 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16870 else
16871 if test -n "$PKG_CONFIG" && \
16872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16873 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16874 ac_status=$?
16875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16876 test $ac_status = 0; }; then
16877 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16878else
16879 pkg_failed=yes
16880fi
16881 fi
16882else
16883 pkg_failed=untried
16884fi
16885
16886
16887
16888if test $pkg_failed = yes; then
16889
16890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16891 _pkg_short_errors_supported=yes
16892else
16893 _pkg_short_errors_supported=no
16894fi
16895 if test $_pkg_short_errors_supported = yes; then
16896 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16897 else
16898 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16899 fi
16900 # Put the nasty error message in config.log where it belongs
16901 echo "$WEBKIT_PKG_ERRORS" >&5
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904$as_echo "no" >&6; }
16905
16906
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16908$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16909if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16910 $as_echo_n "(cached) " >&6
16911else
16912
16913 ac_check_framework_save_LIBS=$LIBS
16914 LIBS="-framework JavaScriptCore $LIBS"
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h. */
16917
16918 #include <JavaScriptCore/JSBase.h>
16919
16920int
16921main ()
16922{
16923JSEvaluateScript(0, 0, 0, 0, 0, 0);
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928if ac_fn_cxx_try_link "$LINENO"; then :
16929
16930 ac_cv_framework_JavaScriptCore=yes
16931
16932else
16933 ac_cv_framework_JavaScriptCore=no
16934fi
16935rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_framework_save_LIBS
16938
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16941$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16942 if test $ac_cv_framework_JavaScriptCore = yes; then :
16943
16944
16945 for element in "-framework JavaScriptCore $LIBS"; do
16946 haveit=
16947 for x in $LIBS; do
16948
16949 acl_save_prefix="$prefix"
16950 prefix="$acl_final_prefix"
16951 acl_save_exec_prefix="$exec_prefix"
16952 exec_prefix="$acl_final_exec_prefix"
16953 eval x=\"$x\"
16954 exec_prefix="$acl_save_exec_prefix"
16955 prefix="$acl_save_prefix"
16956
16957 if test "X$x" = "X$element"; then
16958 haveit=yes
16959 break
16960 fi
16961 done
16962 if test -z "$haveit"; then
16963 LIBS="${LIBS}${LIBS:+ }$element"
16964 fi
16965 done
16966
16967 CY_EXECUTE=1
16968
16969fi
16970
16971elif test $pkg_failed = untried; then
16972
16973
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16975$as_echo_n "checking for framework JavaScriptCore... " >&6; }
16976if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16977 $as_echo_n "(cached) " >&6
16978else
16979
16980 ac_check_framework_save_LIBS=$LIBS
16981 LIBS="-framework JavaScriptCore $LIBS"
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h. */
16984
16985 #include <JavaScriptCore/JSBase.h>
16986
16987int
16988main ()
16989{
16990JSEvaluateScript(0, 0, 0, 0, 0, 0);
16991 ;
16992 return 0;
16993}
16994_ACEOF
16995if ac_fn_cxx_try_link "$LINENO"; then :
16996
16997 ac_cv_framework_JavaScriptCore=yes
16998
16999else
17000 ac_cv_framework_JavaScriptCore=no
17001fi
17002rm -f core conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_framework_save_LIBS
17005
17006fi
17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17008$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17009 if test $ac_cv_framework_JavaScriptCore = yes; then :
17010
17011
17012 for element in "-framework JavaScriptCore $LIBS"; do
17013 haveit=
17014 for x in $LIBS; do
17015
17016 acl_save_prefix="$prefix"
17017 prefix="$acl_final_prefix"
17018 acl_save_exec_prefix="$exec_prefix"
17019 exec_prefix="$acl_final_exec_prefix"
17020 eval x=\"$x\"
17021 exec_prefix="$acl_save_exec_prefix"
17022 prefix="$acl_save_prefix"
17023
17024 if test "X$x" = "X$element"; then
17025 haveit=yes
17026 break
17027 fi
17028 done
17029 if test -z "$haveit"; then
17030 LIBS="${LIBS}${LIBS:+ }$element"
17031 fi
17032 done
17033
17034 CY_EXECUTE=1
17035
17036fi
17037
17038else
17039 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17040 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17042$as_echo "yes" >&6; }
17043
17044 CY_EXECUTE=1
17045
17046 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17047 haveit=
17048 for x in $CXXFLAGS; do
17049
17050 acl_save_prefix="$prefix"
17051 prefix="$acl_final_prefix"
17052 acl_save_exec_prefix="$exec_prefix"
17053 exec_prefix="$acl_final_exec_prefix"
17054 eval x=\"$x\"
17055 exec_prefix="$acl_save_exec_prefix"
17056 prefix="$acl_save_prefix"
17057
17058 if test "X$x" = "X$element"; then
17059 haveit=yes
17060 break
17061 fi
17062 done
17063 if test -z "$haveit"; then
17064 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17065 fi
17066 done
17067
17068
17069 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17070 haveit=
17071 for x in $LIBS; do
17072
17073 acl_save_prefix="$prefix"
17074 prefix="$acl_final_prefix"
17075 acl_save_exec_prefix="$exec_prefix"
17076 exec_prefix="$acl_final_exec_prefix"
17077 eval x=\"$x\"
17078 exec_prefix="$acl_save_exec_prefix"
17079 prefix="$acl_save_prefix"
17080
17081 if test "X$x" = "X$element"; then
17082 haveit=yes
17083 break
17084 fi
17085 done
17086 if test -z "$haveit"; then
17087 LIBS="${LIBS}${LIBS:+ }$element"
17088 fi
17089 done
17090
17091
17092fi
17093
17094else
17095 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17096 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17098$as_echo "yes" >&6; }
17099
17100 CY_EXECUTE=1
17101
17102 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17103 haveit=
17104 for x in $CXXFLAGS; do
17105
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17110 eval x=\"$x\"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17113
17114 if test "X$x" = "X$element"; then
17115 haveit=yes
17116 break
17117 fi
17118 done
17119 if test -z "$haveit"; then
17120 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17121 fi
17122 done
17123
17124
17125 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17126 haveit=
17127 for x in $LIBS; do
17128
17129 acl_save_prefix="$prefix"
17130 prefix="$acl_final_prefix"
17131 acl_save_exec_prefix="$exec_prefix"
17132 exec_prefix="$acl_final_exec_prefix"
17133 eval x=\"$x\"
17134 exec_prefix="$acl_save_exec_prefix"
17135 prefix="$acl_save_prefix"
17136
17137 if test "X$x" = "X$element"; then
17138 haveit=yes
17139 break
17140 fi
17141 done
17142 if test -z "$haveit"; then
17143 LIBS="${LIBS}${LIBS:+ }$element"
17144 fi
17145 done
17146
17147
17148fi
17149
17150 ;; #(
17151 *) :
17152 as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
17153esac
17154
17155else
17156
17157
17158
17159pkg_failed=no
17160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17161$as_echo_n "checking for WEBKIT... " >&6; }
17162
17163if test -n "$PKG_CONFIG"; then
17164 if test -n "$WEBKIT_CFLAGS"; then
17165 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17166 else
17167 if test -n "$PKG_CONFIG" && \
17168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17169 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17170 ac_status=$?
17171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17172 test $ac_status = 0; }; then
17173 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17174else
17175 pkg_failed=yes
17176fi
17177 fi
17178else
17179 pkg_failed=untried
17180fi
17181if test -n "$PKG_CONFIG"; then
17182 if test -n "$WEBKIT_LIBS"; then
17183 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17184 else
17185 if test -n "$PKG_CONFIG" && \
17186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17187 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17188 ac_status=$?
17189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17190 test $ac_status = 0; }; then
17191 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17192else
17193 pkg_failed=yes
17194fi
17195 fi
17196else
17197 pkg_failed=untried
17198fi
17199
17200
17201
17202if test $pkg_failed = yes; then
17203
17204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17205 _pkg_short_errors_supported=yes
17206else
17207 _pkg_short_errors_supported=no
17208fi
17209 if test $_pkg_short_errors_supported = yes; then
17210 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
17211 else
17212 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
17213 fi
17214 # Put the nasty error message in config.log where it belongs
17215 echo "$WEBKIT_PKG_ERRORS" >&5
17216
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17218$as_echo "no" >&6; }
17219
17220
17221pkg_failed=no
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17223$as_echo_n "checking for WEBKIT... " >&6; }
17224
17225if test -n "$PKG_CONFIG"; then
17226 if test -n "$WEBKIT_CFLAGS"; then
17227 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17228 else
17229 if test -n "$PKG_CONFIG" && \
17230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17231 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17232 ac_status=$?
17233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17234 test $ac_status = 0; }; then
17235 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17236else
17237 pkg_failed=yes
17238fi
17239 fi
17240else
17241 pkg_failed=untried
17242fi
17243if test -n "$PKG_CONFIG"; then
17244 if test -n "$WEBKIT_LIBS"; then
17245 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17246 else
17247 if test -n "$PKG_CONFIG" && \
17248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17249 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17250 ac_status=$?
17251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17252 test $ac_status = 0; }; then
17253 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17254else
17255 pkg_failed=yes
17256fi
17257 fi
17258else
17259 pkg_failed=untried
17260fi
17261
17262
17263
17264if test $pkg_failed = yes; then
17265
17266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17267 _pkg_short_errors_supported=yes
17268else
17269 _pkg_short_errors_supported=no
17270fi
17271 if test $_pkg_short_errors_supported = yes; then
17272 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
17273 else
17274 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
17275 fi
17276 # Put the nasty error message in config.log where it belongs
17277 echo "$WEBKIT_PKG_ERRORS" >&5
17278
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280$as_echo "no" >&6; }
17281
17282
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17284$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17285if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17286 $as_echo_n "(cached) " >&6
17287else
17288
17289 ac_check_framework_save_LIBS=$LIBS
17290 LIBS="-framework JavaScriptCore $LIBS"
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292/* end confdefs.h. */
17293
17294 #include <JavaScriptCore/JSBase.h>
17295
17296int
17297main ()
17298{
17299JSEvaluateScript(0, 0, 0, 0, 0, 0);
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304if ac_fn_cxx_try_link "$LINENO"; then :
17305
17306 ac_cv_framework_JavaScriptCore=yes
17307
17308else
17309 ac_cv_framework_JavaScriptCore=no
17310fi
17311rm -f core conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17313 LIBS=$ac_check_framework_save_LIBS
17314
17315fi
17316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17317$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17318 if test $ac_cv_framework_JavaScriptCore = yes; then :
17319
17320
17321 for element in "-framework JavaScriptCore $LIBS"; do
17322 haveit=
17323 for x in $LIBS; do
17324
17325 acl_save_prefix="$prefix"
17326 prefix="$acl_final_prefix"
17327 acl_save_exec_prefix="$exec_prefix"
17328 exec_prefix="$acl_final_exec_prefix"
17329 eval x=\"$x\"
17330 exec_prefix="$acl_save_exec_prefix"
17331 prefix="$acl_save_prefix"
17332
17333 if test "X$x" = "X$element"; then
17334 haveit=yes
17335 break
17336 fi
17337 done
17338 if test -z "$haveit"; then
17339 LIBS="${LIBS}${LIBS:+ }$element"
17340 fi
17341 done
17342
17343 CY_EXECUTE=1
17344
17345fi
17346
17347elif test $pkg_failed = untried; then
17348
17349
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17351$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17352if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17353 $as_echo_n "(cached) " >&6
17354else
17355
17356 ac_check_framework_save_LIBS=$LIBS
17357 LIBS="-framework JavaScriptCore $LIBS"
17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359/* end confdefs.h. */
17360
17361 #include <JavaScriptCore/JSBase.h>
17362
17363int
17364main ()
17365{
17366JSEvaluateScript(0, 0, 0, 0, 0, 0);
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371if ac_fn_cxx_try_link "$LINENO"; then :
17372
17373 ac_cv_framework_JavaScriptCore=yes
17374
17375else
17376 ac_cv_framework_JavaScriptCore=no
17377fi
17378rm -f core conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_framework_save_LIBS
17381
17382fi
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17384$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17385 if test $ac_cv_framework_JavaScriptCore = yes; then :
17386
17387
17388 for element in "-framework JavaScriptCore $LIBS"; do
17389 haveit=
17390 for x in $LIBS; do
17391
17392 acl_save_prefix="$prefix"
17393 prefix="$acl_final_prefix"
17394 acl_save_exec_prefix="$exec_prefix"
17395 exec_prefix="$acl_final_exec_prefix"
17396 eval x=\"$x\"
17397 exec_prefix="$acl_save_exec_prefix"
17398 prefix="$acl_save_prefix"
17399
17400 if test "X$x" = "X$element"; then
17401 haveit=yes
17402 break
17403 fi
17404 done
17405 if test -z "$haveit"; then
17406 LIBS="${LIBS}${LIBS:+ }$element"
17407 fi
17408 done
17409
17410 CY_EXECUTE=1
17411
17412fi
17413
17414else
17415 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17416 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17418$as_echo "yes" >&6; }
17419
17420 CY_EXECUTE=1
17421
17422 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17423 haveit=
17424 for x in $CXXFLAGS; do
17425
17426 acl_save_prefix="$prefix"
17427 prefix="$acl_final_prefix"
17428 acl_save_exec_prefix="$exec_prefix"
17429 exec_prefix="$acl_final_exec_prefix"
17430 eval x=\"$x\"
17431 exec_prefix="$acl_save_exec_prefix"
17432 prefix="$acl_save_prefix"
17433
17434 if test "X$x" = "X$element"; then
17435 haveit=yes
17436 break
17437 fi
17438 done
17439 if test -z "$haveit"; then
17440 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17441 fi
17442 done
17443
17444
17445 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17446 haveit=
17447 for x in $LIBS; do
17448
17449 acl_save_prefix="$prefix"
17450 prefix="$acl_final_prefix"
17451 acl_save_exec_prefix="$exec_prefix"
17452 exec_prefix="$acl_final_exec_prefix"
17453 eval x=\"$x\"
17454 exec_prefix="$acl_save_exec_prefix"
17455 prefix="$acl_save_prefix"
17456
17457 if test "X$x" = "X$element"; then
17458 haveit=yes
17459 break
17460 fi
17461 done
17462 if test -z "$haveit"; then
17463 LIBS="${LIBS}${LIBS:+ }$element"
17464 fi
17465 done
17466
17467
17468fi
17469
17470elif test $pkg_failed = untried; then
17471
17472
17473pkg_failed=no
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17475$as_echo_n "checking for WEBKIT... " >&6; }
17476
17477if test -n "$PKG_CONFIG"; then
17478 if test -n "$WEBKIT_CFLAGS"; then
17479 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17480 else
17481 if test -n "$PKG_CONFIG" && \
17482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17483 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17484 ac_status=$?
17485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486 test $ac_status = 0; }; then
17487 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17488else
17489 pkg_failed=yes
17490fi
17491 fi
17492else
17493 pkg_failed=untried
17494fi
17495if test -n "$PKG_CONFIG"; then
17496 if test -n "$WEBKIT_LIBS"; then
17497 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17498 else
17499 if test -n "$PKG_CONFIG" && \
17500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17501 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17502 ac_status=$?
17503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17504 test $ac_status = 0; }; then
17505 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17506else
17507 pkg_failed=yes
17508fi
17509 fi
17510else
17511 pkg_failed=untried
17512fi
17513
17514
17515
17516if test $pkg_failed = yes; then
17517
17518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17519 _pkg_short_errors_supported=yes
17520else
17521 _pkg_short_errors_supported=no
17522fi
17523 if test $_pkg_short_errors_supported = yes; then
17524 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
17525 else
17526 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
17527 fi
17528 # Put the nasty error message in config.log where it belongs
17529 echo "$WEBKIT_PKG_ERRORS" >&5
17530
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532$as_echo "no" >&6; }
17533
17534
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17536$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17537if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17538 $as_echo_n "(cached) " >&6
17539else
17540
17541 ac_check_framework_save_LIBS=$LIBS
17542 LIBS="-framework JavaScriptCore $LIBS"
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544/* end confdefs.h. */
17545
17546 #include <JavaScriptCore/JSBase.h>
17547
17548int
17549main ()
17550{
17551JSEvaluateScript(0, 0, 0, 0, 0, 0);
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556if ac_fn_cxx_try_link "$LINENO"; then :
17557
17558 ac_cv_framework_JavaScriptCore=yes
17559
17560else
17561 ac_cv_framework_JavaScriptCore=no
17562fi
17563rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_framework_save_LIBS
17566
17567fi
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17569$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17570 if test $ac_cv_framework_JavaScriptCore = yes; then :
17571
17572
17573 for element in "-framework JavaScriptCore $LIBS"; do
17574 haveit=
17575 for x in $LIBS; do
17576
17577 acl_save_prefix="$prefix"
17578 prefix="$acl_final_prefix"
17579 acl_save_exec_prefix="$exec_prefix"
17580 exec_prefix="$acl_final_exec_prefix"
17581 eval x=\"$x\"
17582 exec_prefix="$acl_save_exec_prefix"
17583 prefix="$acl_save_prefix"
17584
17585 if test "X$x" = "X$element"; then
17586 haveit=yes
17587 break
17588 fi
17589 done
17590 if test -z "$haveit"; then
17591 LIBS="${LIBS}${LIBS:+ }$element"
17592 fi
17593 done
17594
17595 CY_EXECUTE=1
17596
17597fi
17598
17599elif test $pkg_failed = untried; then
17600
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17603$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17604if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17605 $as_echo_n "(cached) " >&6
17606else
17607
17608 ac_check_framework_save_LIBS=$LIBS
17609 LIBS="-framework JavaScriptCore $LIBS"
17610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611/* end confdefs.h. */
17612
17613 #include <JavaScriptCore/JSBase.h>
17614
17615int
17616main ()
17617{
17618JSEvaluateScript(0, 0, 0, 0, 0, 0);
17619 ;
17620 return 0;
17621}
17622_ACEOF
17623if ac_fn_cxx_try_link "$LINENO"; then :
17624
17625 ac_cv_framework_JavaScriptCore=yes
17626
17627else
17628 ac_cv_framework_JavaScriptCore=no
17629fi
17630rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17632 LIBS=$ac_check_framework_save_LIBS
17633
17634fi
17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17636$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17637 if test $ac_cv_framework_JavaScriptCore = yes; then :
17638
17639
17640 for element in "-framework JavaScriptCore $LIBS"; do
17641 haveit=
17642 for x in $LIBS; do
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
17652 if test "X$x" = "X$element"; then
17653 haveit=yes
17654 break
17655 fi
17656 done
17657 if test -z "$haveit"; then
17658 LIBS="${LIBS}${LIBS:+ }$element"
17659 fi
17660 done
17661
17662 CY_EXECUTE=1
17663
17664fi
17665
17666else
17667 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17668 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17670$as_echo "yes" >&6; }
17671
17672 CY_EXECUTE=1
17673
17674 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17675 haveit=
17676 for x in $CXXFLAGS; do
17677
17678 acl_save_prefix="$prefix"
17679 prefix="$acl_final_prefix"
17680 acl_save_exec_prefix="$exec_prefix"
17681 exec_prefix="$acl_final_exec_prefix"
17682 eval x=\"$x\"
17683 exec_prefix="$acl_save_exec_prefix"
17684 prefix="$acl_save_prefix"
17685
17686 if test "X$x" = "X$element"; then
17687 haveit=yes
17688 break
17689 fi
17690 done
17691 if test -z "$haveit"; then
17692 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17693 fi
17694 done
17695
17696
17697 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17698 haveit=
17699 for x in $LIBS; do
17700
17701 acl_save_prefix="$prefix"
17702 prefix="$acl_final_prefix"
17703 acl_save_exec_prefix="$exec_prefix"
17704 exec_prefix="$acl_final_exec_prefix"
17705 eval x=\"$x\"
17706 exec_prefix="$acl_save_exec_prefix"
17707 prefix="$acl_save_prefix"
17708
17709 if test "X$x" = "X$element"; then
17710 haveit=yes
17711 break
17712 fi
17713 done
17714 if test -z "$haveit"; then
17715 LIBS="${LIBS}${LIBS:+ }$element"
17716 fi
17717 done
17718
17719
17720fi
17721
17722else
17723 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17724 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17726$as_echo "yes" >&6; }
17727
17728 CY_EXECUTE=1
17729
17730 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17731 haveit=
17732 for x in $CXXFLAGS; do
17733
17734 acl_save_prefix="$prefix"
17735 prefix="$acl_final_prefix"
17736 acl_save_exec_prefix="$exec_prefix"
17737 exec_prefix="$acl_final_exec_prefix"
17738 eval x=\"$x\"
17739 exec_prefix="$acl_save_exec_prefix"
17740 prefix="$acl_save_prefix"
17741
17742 if test "X$x" = "X$element"; then
17743 haveit=yes
17744 break
17745 fi
17746 done
17747 if test -z "$haveit"; then
17748 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17749 fi
17750 done
17751
17752
17753 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17754 haveit=
17755 for x in $LIBS; do
17756
17757 acl_save_prefix="$prefix"
17758 prefix="$acl_final_prefix"
17759 acl_save_exec_prefix="$exec_prefix"
17760 exec_prefix="$acl_final_exec_prefix"
17761 eval x=\"$x\"
17762 exec_prefix="$acl_save_exec_prefix"
17763 prefix="$acl_save_prefix"
17764
17765 if test "X$x" = "X$element"; then
17766 haveit=yes
17767 break
17768 fi
17769 done
17770 if test -z "$haveit"; then
17771 LIBS="${LIBS}${LIBS:+ }$element"
17772 fi
17773 done
17774
17775
17776fi
17777
17778
17779fi
17780
17781
17782case $CY_EXECUTE in #(
17783 1) :
17784
17785
17786
17787pkg_failed=no
17788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17789$as_echo_n "checking for LIBFFI... " >&6; }
17790
17791if test -n "$PKG_CONFIG"; then
17792 if test -n "$LIBFFI_CFLAGS"; then
17793 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17794 else
17795 if test -n "$PKG_CONFIG" && \
17796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17797 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17798 ac_status=$?
17799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17800 test $ac_status = 0; }; then
17801 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17802else
17803 pkg_failed=yes
17804fi
17805 fi
17806else
17807 pkg_failed=untried
17808fi
17809if test -n "$PKG_CONFIG"; then
17810 if test -n "$LIBFFI_LIBS"; then
17811 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17812 else
17813 if test -n "$PKG_CONFIG" && \
17814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17815 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17816 ac_status=$?
17817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818 test $ac_status = 0; }; then
17819 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17820else
17821 pkg_failed=yes
17822fi
17823 fi
17824else
17825 pkg_failed=untried
17826fi
17827
17828
17829
17830if test $pkg_failed = yes; then
17831
17832if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17833 _pkg_short_errors_supported=yes
17834else
17835 _pkg_short_errors_supported=no
17836fi
17837 if test $_pkg_short_errors_supported = yes; then
17838 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
17839 else
17840 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
17841 fi
17842 # Put the nasty error message in config.log where it belongs
17843 echo "$LIBFFI_PKG_ERRORS" >&5
17844
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17846$as_echo "no" >&6; }
17847
17848 for ac_header in ffi.h ffi/ffi.h
17849do :
17850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17851ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17852eval as_val=\$$as_ac_Header
17853 if test "x$as_val" = x""yes; then :
17854 cat >>confdefs.h <<_ACEOF
17855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17856_ACEOF
17857 break
17858fi
17859
17860done
17861
17862 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17863
17864 as_fn_error "You need libffi" "$LINENO" 5
17865
17866fi
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17868$as_echo_n "checking for library containing ffi_call... " >&6; }
17869if test "${ac_cv_search_ffi_call+set}" = set; then :
17870 $as_echo_n "(cached) " >&6
17871else
17872 ac_func_search_save_LIBS=$LIBS
17873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874/* end confdefs.h. */
17875
17876/* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882char ffi_call ();
17883int
17884main ()
17885{
17886return ffi_call ();
17887 ;
17888 return 0;
17889}
17890_ACEOF
17891for ac_lib in '' ffi; do
17892 if test -z "$ac_lib"; then
17893 ac_res="none required"
17894 else
17895 ac_res=-l$ac_lib
17896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17897 fi
17898 if ac_fn_cxx_try_link "$LINENO"; then :
17899 ac_cv_search_ffi_call=$ac_res
17900fi
17901rm -f core conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext
17903 if test "${ac_cv_search_ffi_call+set}" = set; then :
17904 break
17905fi
17906done
17907if test "${ac_cv_search_ffi_call+set}" = set; then :
17908
17909else
17910 ac_cv_search_ffi_call=no
17911fi
17912rm conftest.$ac_ext
17913LIBS=$ac_func_search_save_LIBS
17914fi
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17916$as_echo "$ac_cv_search_ffi_call" >&6; }
17917ac_res=$ac_cv_search_ffi_call
17918if test "$ac_res" != no; then :
17919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17920
17921fi
17922
17923 case $ac_cv_search_ffi_call in #(
17924 no) :
17925
17926 as_fn_error "You need libffi" "$LINENO" 5
17927 ;; #(
17928 *) :
17929 ;;
17930esac
17931
17932elif test $pkg_failed = untried; then
17933
17934 for ac_header in ffi.h ffi/ffi.h
17935do :
17936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17937ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17938eval as_val=\$$as_ac_Header
17939 if test "x$as_val" = x""yes; then :
17940 cat >>confdefs.h <<_ACEOF
17941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17942_ACEOF
17943 break
17944fi
17945
17946done
17947
17948 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17949
17950 as_fn_error "You need libffi" "$LINENO" 5
17951
17952fi
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17954$as_echo_n "checking for library containing ffi_call... " >&6; }
17955if test "${ac_cv_search_ffi_call+set}" = set; then :
17956 $as_echo_n "(cached) " >&6
17957else
17958 ac_func_search_save_LIBS=$LIBS
17959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960/* end confdefs.h. */
17961
17962/* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
17965#ifdef __cplusplus
17966extern "C"
17967#endif
17968char ffi_call ();
17969int
17970main ()
17971{
17972return ffi_call ();
17973 ;
17974 return 0;
17975}
17976_ACEOF
17977for ac_lib in '' ffi; do
17978 if test -z "$ac_lib"; then
17979 ac_res="none required"
17980 else
17981 ac_res=-l$ac_lib
17982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17983 fi
17984 if ac_fn_cxx_try_link "$LINENO"; then :
17985 ac_cv_search_ffi_call=$ac_res
17986fi
17987rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext
17989 if test "${ac_cv_search_ffi_call+set}" = set; then :
17990 break
17991fi
17992done
17993if test "${ac_cv_search_ffi_call+set}" = set; then :
17994
17995else
17996 ac_cv_search_ffi_call=no
17997fi
17998rm conftest.$ac_ext
17999LIBS=$ac_func_search_save_LIBS
18000fi
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
18002$as_echo "$ac_cv_search_ffi_call" >&6; }
18003ac_res=$ac_cv_search_ffi_call
18004if test "$ac_res" != no; then :
18005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18006
18007fi
18008
18009 case $ac_cv_search_ffi_call in #(
18010 no) :
18011
18012 as_fn_error "You need libffi" "$LINENO" 5
18013 ;; #(
18014 *) :
18015 ;;
18016esac
18017
18018else
18019 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
18020 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18022$as_echo "yes" >&6; }
18023
18024
18025 for element in `$PKG_CONFIG --cflags libffi`; do
18026 haveit=
18027 for x in $CXXFLAGS; do
18028
18029 acl_save_prefix="$prefix"
18030 prefix="$acl_final_prefix"
18031 acl_save_exec_prefix="$exec_prefix"
18032 exec_prefix="$acl_final_exec_prefix"
18033 eval x=\"$x\"
18034 exec_prefix="$acl_save_exec_prefix"
18035 prefix="$acl_save_prefix"
18036
18037 if test "X$x" = "X$element"; then
18038 haveit=yes
18039 break
18040 fi
18041 done
18042 if test -z "$haveit"; then
18043 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18044 fi
18045 done
18046
18047
18048 for element in `$PKG_CONFIG --libs libffi`; do
18049 haveit=
18050 for x in $LIBS; do
18051
18052 acl_save_prefix="$prefix"
18053 prefix="$acl_final_prefix"
18054 acl_save_exec_prefix="$exec_prefix"
18055 exec_prefix="$acl_final_exec_prefix"
18056 eval x=\"$x\"
18057 exec_prefix="$acl_save_exec_prefix"
18058 prefix="$acl_save_prefix"
18059
18060 if test "X$x" = "X$element"; then
18061 haveit=yes
18062 break
18063 fi
18064 done
18065 if test -z "$haveit"; then
18066 LIBS="${LIBS}${LIBS:+ }$element"
18067 fi
18068 done
18069
18070
18071fi
18072 ac_ext=mm
18073ac_cpp='$OBJCXXCPP $CPPFLAGS'
18074ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18075ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18076ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
18079$as_echo_n "checking if we really have Objective C++... " >&6; }
18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081/* end confdefs.h. */
18082
18083 // This space intentionally left blank
18084
18085_ACEOF
18086if ac_fn_objcxx_try_compile "$LINENO"; then :
18087
18088 CY_OBJECTIVEC=1
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18090$as_echo "yes" >&6; }
18091
18092else
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18094$as_echo "no" >&6; }
18095fi
18096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 if test "x$CY_OBJECTIVEC" = x1; then :
18098
18099
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
18101$as_echo_n "checking for framework CoreFoundation... " >&6; }
18102if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
18103 $as_echo_n "(cached) " >&6
18104else
18105
18106 ac_check_framework_save_LIBS=$LIBS
18107 LIBS="-framework CoreFoundation $LIBS"
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109/* end confdefs.h. */
18110
18111 #include <CoreFoundation/CFBase.h>
18112
18113int
18114main ()
18115{
18116CFAllocatorGetDefault();
18117 ;
18118 return 0;
18119}
18120_ACEOF
18121if ac_fn_objcxx_try_link "$LINENO"; then :
18122
18123 ac_cv_framework_CoreFoundation=yes
18124
18125else
18126 ac_cv_framework_CoreFoundation=no
18127fi
18128rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130 LIBS=$ac_check_framework_save_LIBS
18131
18132fi
18133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18134$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18135 if test $ac_cv_framework_CoreFoundation = yes; then :
18136
18137
18138 for element in "-framework CoreFoundation $LIBS"; do
18139 haveit=
18140 for x in $LIBS; do
18141
18142 acl_save_prefix="$prefix"
18143 prefix="$acl_final_prefix"
18144 acl_save_exec_prefix="$exec_prefix"
18145 exec_prefix="$acl_final_exec_prefix"
18146 eval x=\"$x\"
18147 exec_prefix="$acl_save_exec_prefix"
18148 prefix="$acl_save_prefix"
18149
18150 if test "X$x" = "X$element"; then
18151 haveit=yes
18152 break
18153 fi
18154 done
18155 if test -z "$haveit"; then
18156 LIBS="${LIBS}${LIBS:+ }$element"
18157 fi
18158 done
18159
18160
18161
18162
18163
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18165$as_echo_n "checking for framework Foundation... " >&6; }
18166if test "${ac_cv_framework_Foundation+set}" = set; then :
18167 $as_echo_n "(cached) " >&6
18168else
18169
18170 ac_check_framework_save_LIBS=$LIBS
18171 LIBS="-framework Foundation $LIBS"
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173/* end confdefs.h. */
18174
18175 #include <Foundation/NSObject.h>
18176
18177int
18178main ()
18179{
18180[[NSObject alloc] init];
18181 ;
18182 return 0;
18183}
18184_ACEOF
18185if ac_fn_objcxx_try_link "$LINENO"; then :
18186
18187 ac_cv_framework_Foundation=yes
18188
18189else
18190 ac_cv_framework_Foundation=no
18191fi
18192rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_framework_save_LIBS
18195
18196fi
18197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18198$as_echo "$ac_cv_framework_Foundation" >&6; }
18199 if test $ac_cv_framework_Foundation = yes; then :
18200
18201
18202 for element in "-framework Foundation $LIBS"; do
18203 haveit=
18204 for x in $LIBS; do
18205
18206 acl_save_prefix="$prefix"
18207 prefix="$acl_final_prefix"
18208 acl_save_exec_prefix="$exec_prefix"
18209 exec_prefix="$acl_final_exec_prefix"
18210 eval x=\"$x\"
18211 exec_prefix="$acl_save_exec_prefix"
18212 prefix="$acl_save_prefix"
18213
18214 if test "X$x" = "X$element"; then
18215 haveit=yes
18216 break
18217 fi
18218 done
18219 if test -z "$haveit"; then
18220 LIBS="${LIBS}${LIBS:+ }$element"
18221 fi
18222 done
18223
18224 cat >>confdefs.h <<_ACEOF
18225#define HAVE_FRAMEWORK_FOUNDATION 1
18226_ACEOF
18227
18228
18229fi
18230
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18233$as_echo_n "checking for framework WebKit... " >&6; }
18234if test "${ac_cv_framework_WebKit+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18236else
18237
18238 ac_check_framework_save_LIBS=$LIBS
18239 LIBS="-framework WebKit $LIBS"
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241/* end confdefs.h. */
18242
18243 #include <WebKit/WebScriptObject.h>
18244
18245int
18246main ()
18247{
18248[[WebScriptObject alloc] init];
18249 ;
18250 return 0;
18251}
18252_ACEOF
18253if ac_fn_objcxx_try_link "$LINENO"; then :
18254
18255 ac_cv_framework_WebKit=yes
18256
18257else
18258 ac_cv_framework_WebKit=no
18259fi
18260rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18262 LIBS=$ac_check_framework_save_LIBS
18263
18264fi
18265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18266$as_echo "$ac_cv_framework_WebKit" >&6; }
18267 if test $ac_cv_framework_WebKit = yes; then :
18268
18269
18270 for element in "-framework WebKit $LIBS"; do
18271 haveit=
18272 for x in $LIBS; do
18273
18274 acl_save_prefix="$prefix"
18275 prefix="$acl_final_prefix"
18276 acl_save_exec_prefix="$exec_prefix"
18277 exec_prefix="$acl_final_exec_prefix"
18278 eval x=\"$x\"
18279 exec_prefix="$acl_save_exec_prefix"
18280 prefix="$acl_save_prefix"
18281
18282 if test "X$x" = "X$element"; then
18283 haveit=yes
18284 break
18285 fi
18286 done
18287 if test -z "$haveit"; then
18288 LIBS="${LIBS}${LIBS:+ }$element"
18289 fi
18290 done
18291
18292 cat >>confdefs.h <<_ACEOF
18293#define HAVE_FRAMEWORK_WEBKIT 1
18294_ACEOF
18295
18296
18297fi
18298
18299
18300else
18301
18302 for ac_prog in gnustep-config
18303do
18304 # Extract the first word of "$ac_prog", so it can be a program name with args.
18305set dummy $ac_prog; ac_word=$2
18306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18307$as_echo_n "checking for $ac_word... " >&6; }
18308if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18310else
18311 if test -n "$GNUSTEP_CONFIG"; then
18312 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18313else
18314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18315for as_dir in $PATH
18316do
18317 IFS=$as_save_IFS
18318 test -z "$as_dir" && as_dir=.
18319 for ac_exec_ext in '' $ac_executable_extensions; do
18320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18321 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18323 break 2
18324 fi
18325done
18326 done
18327IFS=$as_save_IFS
18328
18329fi
18330fi
18331GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18332if test -n "$GNUSTEP_CONFIG"; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18334$as_echo "$GNUSTEP_CONFIG" >&6; }
18335else
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337$as_echo "no" >&6; }
18338fi
18339
18340
18341 test -n "$GNUSTEP_CONFIG" && break
18342done
18343
18344 if test "x$GNUSTEP_CONFIG" != x; then :
18345
18346
18347
18348 for element in `$GNUSTEP_CONFIG --objc-flags`; do
18349 haveit=
18350 for x in $OBJCXXFLAGS; do
18351
18352 acl_save_prefix="$prefix"
18353 prefix="$acl_final_prefix"
18354 acl_save_exec_prefix="$exec_prefix"
18355 exec_prefix="$acl_final_exec_prefix"
18356 eval x=\"$x\"
18357 exec_prefix="$acl_save_exec_prefix"
18358 prefix="$acl_save_prefix"
18359
18360 if test "X$x" = "X$element"; then
18361 haveit=yes
18362 break
18363 fi
18364 done
18365 if test -z "$haveit"; then
18366 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18367 fi
18368 done
18369
18370
18371 for element in `$GNUSTEP_CONFIG --base-libs`; do
18372 haveit=
18373 for x in $LIBS; do
18374
18375 acl_save_prefix="$prefix"
18376 prefix="$acl_final_prefix"
18377 acl_save_exec_prefix="$exec_prefix"
18378 exec_prefix="$acl_final_exec_prefix"
18379 eval x=\"$x\"
18380 exec_prefix="$acl_save_exec_prefix"
18381 prefix="$acl_save_prefix"
18382
18383 if test "X$x" = "X$element"; then
18384 haveit=yes
18385 break
18386 fi
18387 done
18388 if test -z "$haveit"; then
18389 LIBS="${LIBS}${LIBS:+ }$element"
18390 fi
18391 done
18392
18393
18394else
18395 CY_OBJECTIVEC=0
18396
18397fi
18398
18399fi
18400
18401fi
18402 ac_ext=cpp
18403ac_cpp='$CXXCPP $CPPFLAGS'
18404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18407
18408 ;; #(
18409 *) :
18410 ;;
18411esac
18412if test "x$CY_OBJECTIVEC" = x1; then :
18413
18414 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18415if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18416
18417 case $OTOOL in #(
18418 :) :
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5
18420$as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #(
18421 *) :
18422 CY_OBJECTIVEC_MACH=1
18423 ;;
18424esac
18425
18426fi
18427
18428
18429
18430fi
18431ac_config_files="$ac_config_files GNUmakefile"
18432
18433cat >confcache <<\_ACEOF
18434# This file is a shell script that caches the results of configure
18435# tests run on this system so they can be shared between configure
18436# scripts and configure runs, see configure's option --config-cache.
18437# It is not useful on other systems. If it contains results you don't
18438# want to keep, you may remove or edit it.
18439#
18440# config.status only pays attention to the cache file if you give it
18441# the --recheck option to rerun configure.
18442#
18443# `ac_cv_env_foo' variables (set or unset) will be overridden when
18444# loading this file, other *unset* `ac_cv_foo' will be assigned the
18445# following values.
18446
18447_ACEOF
18448
18449# The following way of writing the cache mishandles newlines in values,
18450# but we know of no workaround that is simple, portable, and efficient.
18451# So, we kill variables containing newlines.
18452# Ultrix sh set writes to stderr and can't be redirected directly,
18453# and sets the high bit in the cache file unless we assign to the vars.
18454(
18455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18456 eval ac_val=\$$ac_var
18457 case $ac_val in #(
18458 *${as_nl}*)
18459 case $ac_var in #(
18460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18462 esac
18463 case $ac_var in #(
18464 _ | IFS | as_nl) ;; #(
18465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18466 *) { eval $ac_var=; unset $ac_var;} ;;
18467 esac ;;
18468 esac
18469 done
18470
18471 (set) 2>&1 |
18472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18473 *${as_nl}ac_space=\ *)
18474 # `set' does not quote correctly, so add quotes: double-quote
18475 # substitution turns \\\\ into \\, and sed turns \\ into \.
18476 sed -n \
18477 "s/'/'\\\\''/g;
18478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18479 ;; #(
18480 *)
18481 # `set' quotes correctly as required by POSIX, so do not add quotes.
18482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18483 ;;
18484 esac |
18485 sort
18486) |
18487 sed '
18488 /^ac_cv_env_/b end
18489 t clear
18490 :clear
18491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18492 t end
18493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18494 :end' >>confcache
18495if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18496 if test -w "$cache_file"; then
18497 test "x$cache_file" != "x/dev/null" &&
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18499$as_echo "$as_me: updating cache $cache_file" >&6;}
18500 cat confcache >$cache_file
18501 else
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18503$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18504 fi
18505fi
18506rm -f confcache
18507
18508test "x$prefix" = xNONE && prefix=$ac_default_prefix
18509# Let make expand exec_prefix.
18510test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18511
18512# Transform confdefs.h into DEFS.
18513# Protect against shell expansion while executing Makefile rules.
18514# Protect against Makefile macro expansion.
18515#
18516# If the first sed substitution is executed (which looks for macros that
18517# take arguments), then branch to the quote section. Otherwise,
18518# look for a macro that doesn't take arguments.
18519ac_script='
18520:mline
18521/\\$/{
18522 N
18523 s,\\\n,,
18524 b mline
18525}
18526t clear
18527:clear
18528s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18529t quote
18530s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18531t quote
18532b any
18533:quote
18534s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18535s/\[/\\&/g
18536s/\]/\\&/g
18537s/\$/$$/g
18538H
18539:any
18540${
18541 g
18542 s/^\n//
18543 s/\n/ /g
18544 p
18545}
18546'
18547DEFS=`sed -n "$ac_script" confdefs.h`
18548
18549
18550ac_libobjs=
18551ac_ltlibobjs=
18552for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18553 # 1. Remove the extension, and $U if already installed.
18554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18557 # will be set to the directory where LIBOBJS objects are built.
18558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18560done
18561LIBOBJS=$ac_libobjs
18562
18563LTLIBOBJS=$ac_ltlibobjs
18564
18565
18566
18567: ${CONFIG_STATUS=./config.status}
18568ac_write_fail=0
18569ac_clean_files_save=$ac_clean_files
18570ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18571{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18572$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18573as_write_fail=0
18574cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18575#! $SHELL
18576# Generated by $as_me.
18577# Run this file to recreate the current configuration.
18578# Compiler output produced by configure, useful for debugging
18579# configure, is in config.log if it exists.
18580
18581debug=false
18582ac_cs_recheck=false
18583ac_cs_silent=false
18584
18585SHELL=\${CONFIG_SHELL-$SHELL}
18586export SHELL
18587_ASEOF
18588cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18589## -------------------- ##
18590## M4sh Initialization. ##
18591## -------------------- ##
18592
18593# Be more Bourne compatible
18594DUALCASE=1; export DUALCASE # for MKS sh
18595if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18596 emulate sh
18597 NULLCMD=:
18598 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18599 # is contrary to our usage. Disable this feature.
18600 alias -g '${1+"$@"}'='"$@"'
18601 setopt NO_GLOB_SUBST
18602else
18603 case `(set -o) 2>/dev/null` in #(
18604 *posix*) :
18605 set -o posix ;; #(
18606 *) :
18607 ;;
18608esac
18609fi
18610
18611
18612as_nl='
18613'
18614export as_nl
18615# Printing a long string crashes Solaris 7 /usr/bin/printf.
18616as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18617as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18618as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18619# Prefer a ksh shell builtin over an external printf program on Solaris,
18620# but without wasting forks for bash or zsh.
18621if test -z "$BASH_VERSION$ZSH_VERSION" \
18622 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18623 as_echo='print -r --'
18624 as_echo_n='print -rn --'
18625elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18626 as_echo='printf %s\n'
18627 as_echo_n='printf %s'
18628else
18629 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18630 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18631 as_echo_n='/usr/ucb/echo -n'
18632 else
18633 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18634 as_echo_n_body='eval
18635 arg=$1;
18636 case $arg in #(
18637 *"$as_nl"*)
18638 expr "X$arg" : "X\\(.*\\)$as_nl";
18639 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18640 esac;
18641 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18642 '
18643 export as_echo_n_body
18644 as_echo_n='sh -c $as_echo_n_body as_echo'
18645 fi
18646 export as_echo_body
18647 as_echo='sh -c $as_echo_body as_echo'
18648fi
18649
18650# The user is always right.
18651if test "${PATH_SEPARATOR+set}" != set; then
18652 PATH_SEPARATOR=:
18653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18654 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18655 PATH_SEPARATOR=';'
18656 }
18657fi
18658
18659
18660# IFS
18661# We need space, tab and new line, in precisely that order. Quoting is
18662# there to prevent editors from complaining about space-tab.
18663# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18664# splitting by setting IFS to empty value.)
18665IFS=" "" $as_nl"
18666
18667# Find who we are. Look in the path if we contain no directory separator.
18668case $0 in #((
18669 *[\\/]* ) as_myself=$0 ;;
18670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18671for as_dir in $PATH
18672do
18673 IFS=$as_save_IFS
18674 test -z "$as_dir" && as_dir=.
18675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18676 done
18677IFS=$as_save_IFS
18678
18679 ;;
18680esac
18681# We did not find ourselves, most probably we were run as `sh COMMAND'
18682# in which case we are not to be found in the path.
18683if test "x$as_myself" = x; then
18684 as_myself=$0
18685fi
18686if test ! -f "$as_myself"; then
18687 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18688 exit 1
18689fi
18690
18691# Unset variables that we do not need and which cause bugs (e.g. in
18692# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18693# suppresses any "Segmentation fault" message there. '((' could
18694# trigger a bug in pdksh 5.2.14.
18695for as_var in BASH_ENV ENV MAIL MAILPATH
18696do eval test x\${$as_var+set} = xset \
18697 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18698done
18699PS1='$ '
18700PS2='> '
18701PS4='+ '
18702
18703# NLS nuisances.
18704LC_ALL=C
18705export LC_ALL
18706LANGUAGE=C
18707export LANGUAGE
18708
18709# CDPATH.
18710(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18711
18712
18713# as_fn_error ERROR [LINENO LOG_FD]
18714# ---------------------------------
18715# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18716# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18717# script with status $?, using 1 if that was 0.
18718as_fn_error ()
18719{
18720 as_status=$?; test $as_status -eq 0 && as_status=1
18721 if test "$3"; then
18722 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18723 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18724 fi
18725 $as_echo "$as_me: error: $1" >&2
18726 as_fn_exit $as_status
18727} # as_fn_error
18728
18729
18730# as_fn_set_status STATUS
18731# -----------------------
18732# Set $? to STATUS, without forking.
18733as_fn_set_status ()
18734{
18735 return $1
18736} # as_fn_set_status
18737
18738# as_fn_exit STATUS
18739# -----------------
18740# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18741as_fn_exit ()
18742{
18743 set +e
18744 as_fn_set_status $1
18745 exit $1
18746} # as_fn_exit
18747
18748# as_fn_unset VAR
18749# ---------------
18750# Portably unset VAR.
18751as_fn_unset ()
18752{
18753 { eval $1=; unset $1;}
18754}
18755as_unset=as_fn_unset
18756# as_fn_append VAR VALUE
18757# ----------------------
18758# Append the text in VALUE to the end of the definition contained in VAR. Take
18759# advantage of any shell optimizations that allow amortized linear growth over
18760# repeated appends, instead of the typical quadratic growth present in naive
18761# implementations.
18762if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18763 eval 'as_fn_append ()
18764 {
18765 eval $1+=\$2
18766 }'
18767else
18768 as_fn_append ()
18769 {
18770 eval $1=\$$1\$2
18771 }
18772fi # as_fn_append
18773
18774# as_fn_arith ARG...
18775# ------------------
18776# Perform arithmetic evaluation on the ARGs, and store the result in the
18777# global $as_val. Take advantage of shells that can avoid forks. The arguments
18778# must be portable across $(()) and expr.
18779if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18780 eval 'as_fn_arith ()
18781 {
18782 as_val=$(( $* ))
18783 }'
18784else
18785 as_fn_arith ()
18786 {
18787 as_val=`expr "$@" || test $? -eq 1`
18788 }
18789fi # as_fn_arith
18790
18791
18792if expr a : '\(a\)' >/dev/null 2>&1 &&
18793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18794 as_expr=expr
18795else
18796 as_expr=false
18797fi
18798
18799if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18800 as_basename=basename
18801else
18802 as_basename=false
18803fi
18804
18805if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18806 as_dirname=dirname
18807else
18808 as_dirname=false
18809fi
18810
18811as_me=`$as_basename -- "$0" ||
18812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18813 X"$0" : 'X\(//\)$' \| \
18814 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18815$as_echo X/"$0" |
18816 sed '/^.*\/\([^/][^/]*\)\/*$/{
18817 s//\1/
18818 q
18819 }
18820 /^X\/\(\/\/\)$/{
18821 s//\1/
18822 q
18823 }
18824 /^X\/\(\/\).*/{
18825 s//\1/
18826 q
18827 }
18828 s/.*/./; q'`
18829
18830# Avoid depending upon Character Ranges.
18831as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18832as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18833as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18834as_cr_digits='0123456789'
18835as_cr_alnum=$as_cr_Letters$as_cr_digits
18836
18837ECHO_C= ECHO_N= ECHO_T=
18838case `echo -n x` in #(((((
18839-n*)
18840 case `echo 'xy\c'` in
18841 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18842 xy) ECHO_C='\c';;
18843 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18844 ECHO_T=' ';;
18845 esac;;
18846*)
18847 ECHO_N='-n';;
18848esac
18849
18850rm -f conf$$ conf$$.exe conf$$.file
18851if test -d conf$$.dir; then
18852 rm -f conf$$.dir/conf$$.file
18853else
18854 rm -f conf$$.dir
18855 mkdir conf$$.dir 2>/dev/null
18856fi
18857if (echo >conf$$.file) 2>/dev/null; then
18858 if ln -s conf$$.file conf$$ 2>/dev/null; then
18859 as_ln_s='ln -s'
18860 # ... but there are two gotchas:
18861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18863 # In both cases, we have to default to `cp -p'.
18864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18865 as_ln_s='cp -p'
18866 elif ln conf$$.file conf$$ 2>/dev/null; then
18867 as_ln_s=ln
18868 else
18869 as_ln_s='cp -p'
18870 fi
18871else
18872 as_ln_s='cp -p'
18873fi
18874rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18875rmdir conf$$.dir 2>/dev/null
18876
18877
18878# as_fn_mkdir_p
18879# -------------
18880# Create "$as_dir" as a directory, including parents if necessary.
18881as_fn_mkdir_p ()
18882{
18883
18884 case $as_dir in #(
18885 -*) as_dir=./$as_dir;;
18886 esac
18887 test -d "$as_dir" || eval $as_mkdir_p || {
18888 as_dirs=
18889 while :; do
18890 case $as_dir in #(
18891 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18892 *) as_qdir=$as_dir;;
18893 esac
18894 as_dirs="'$as_qdir' $as_dirs"
18895 as_dir=`$as_dirname -- "$as_dir" ||
18896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897 X"$as_dir" : 'X\(//\)[^/]' \| \
18898 X"$as_dir" : 'X\(//\)$' \| \
18899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18900$as_echo X"$as_dir" |
18901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\(\/\/\)[^/].*/{
18906 s//\1/
18907 q
18908 }
18909 /^X\(\/\/\)$/{
18910 s//\1/
18911 q
18912 }
18913 /^X\(\/\).*/{
18914 s//\1/
18915 q
18916 }
18917 s/.*/./; q'`
18918 test -d "$as_dir" && break
18919 done
18920 test -z "$as_dirs" || eval "mkdir $as_dirs"
18921 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18922
18923
18924} # as_fn_mkdir_p
18925if mkdir -p . 2>/dev/null; then
18926 as_mkdir_p='mkdir -p "$as_dir"'
18927else
18928 test -d ./-p && rmdir ./-p
18929 as_mkdir_p=false
18930fi
18931
18932if test -x / >/dev/null 2>&1; then
18933 as_test_x='test -x'
18934else
18935 if ls -dL / >/dev/null 2>&1; then
18936 as_ls_L_option=L
18937 else
18938 as_ls_L_option=
18939 fi
18940 as_test_x='
18941 eval sh -c '\''
18942 if test -d "$1"; then
18943 test -d "$1/.";
18944 else
18945 case $1 in #(
18946 -*)set "./$1";;
18947 esac;
18948 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18949 ???[sx]*):;;*)false;;esac;fi
18950 '\'' sh
18951 '
18952fi
18953as_executable_p=$as_test_x
18954
18955# Sed expression to map a string onto a valid CPP name.
18956as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18957
18958# Sed expression to map a string onto a valid variable name.
18959as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18960
18961
18962exec 6>&1
18963## ----------------------------------- ##
18964## Main body of $CONFIG_STATUS script. ##
18965## ----------------------------------- ##
18966_ASEOF
18967test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18968
18969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18970# Save the log message, to keep $0 and so on meaningful, and to
18971# report actual input values of CONFIG_FILES etc. instead of their
18972# values after options handling.
18973ac_log="
18974This file was extended by Cycript $as_me 0.9, which was
18975generated by GNU Autoconf 2.65. Invocation command line was
18976
18977 CONFIG_FILES = $CONFIG_FILES
18978 CONFIG_HEADERS = $CONFIG_HEADERS
18979 CONFIG_LINKS = $CONFIG_LINKS
18980 CONFIG_COMMANDS = $CONFIG_COMMANDS
18981 $ $0 $@
18982
18983on `(hostname || uname -n) 2>/dev/null | sed 1q`
18984"
18985
18986_ACEOF
18987
18988case $ac_config_files in *"
18989"*) set x $ac_config_files; shift; ac_config_files=$*;;
18990esac
18991
18992
18993
18994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995# Files that config.status was made for.
18996config_files="$ac_config_files"
18997config_commands="$ac_config_commands"
18998
18999_ACEOF
19000
19001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19002ac_cs_usage="\
19003\`$as_me' instantiates files and other configuration actions
19004from templates according to the current configuration. Unless the files
19005and actions are specified as TAGs, all are instantiated by default.
19006
19007Usage: $0 [OPTION]... [TAG]...
19008
19009 -h, --help print this help, then exit
19010 -V, --version print version number and configuration settings, then exit
19011 --config print configuration, then exit
19012 -q, --quiet, --silent
19013 do not print progress messages
19014 -d, --debug don't remove temporary files
19015 --recheck update $as_me by reconfiguring in the same conditions
19016 --file=FILE[:TEMPLATE]
19017 instantiate the configuration file FILE
19018
19019Configuration files:
19020$config_files
19021
19022Configuration commands:
19023$config_commands
19024
19025Report bugs to <saurik@saurik.com>.
19026Cycript home page: <http://www.cycript.org/>."
19027
19028_ACEOF
19029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19030ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19031ac_cs_version="\\
19032Cycript config.status 0.9
19033configured by $0, generated by GNU Autoconf 2.65,
19034 with options \\"\$ac_cs_config\\"
19035
19036Copyright (C) 2009 Free Software Foundation, Inc.
19037This config.status script is free software; the Free Software Foundation
19038gives unlimited permission to copy, distribute and modify it."
19039
19040ac_pwd='$ac_pwd'
19041srcdir='$srcdir'
19042INSTALL='$INSTALL'
19043AWK='$AWK'
19044test -n "\$AWK" || AWK=awk
19045_ACEOF
19046
19047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19048# The default lists apply if the user does not specify any file.
19049ac_need_defaults=:
19050while test $# != 0
19051do
19052 case $1 in
19053 --*=*)
19054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19056 ac_shift=:
19057 ;;
19058 *)
19059 ac_option=$1
19060 ac_optarg=$2
19061 ac_shift=shift
19062 ;;
19063 esac
19064
19065 case $ac_option in
19066 # Handling of the options.
19067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19068 ac_cs_recheck=: ;;
19069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19070 $as_echo "$ac_cs_version"; exit ;;
19071 --config | --confi | --conf | --con | --co | --c )
19072 $as_echo "$ac_cs_config"; exit ;;
19073 --debug | --debu | --deb | --de | --d | -d )
19074 debug=: ;;
19075 --file | --fil | --fi | --f )
19076 $ac_shift
19077 case $ac_optarg in
19078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19079 esac
19080 as_fn_append CONFIG_FILES " '$ac_optarg'"
19081 ac_need_defaults=false;;
19082 --he | --h | --help | --hel | -h )
19083 $as_echo "$ac_cs_usage"; exit ;;
19084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19085 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19086 ac_cs_silent=: ;;
19087
19088 # This is an error.
19089 -*) as_fn_error "unrecognized option: \`$1'
19090Try \`$0 --help' for more information." ;;
19091
19092 *) as_fn_append ac_config_targets " $1"
19093 ac_need_defaults=false ;;
19094
19095 esac
19096 shift
19097done
19098
19099ac_configure_extra_args=
19100
19101if $ac_cs_silent; then
19102 exec 6>/dev/null
19103 ac_configure_extra_args="$ac_configure_extra_args --silent"
19104fi
19105
19106_ACEOF
19107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19108if \$ac_cs_recheck; then
19109 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19110 shift
19111 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19112 CONFIG_SHELL='$SHELL'
19113 export CONFIG_SHELL
19114 exec "\$@"
19115fi
19116
19117_ACEOF
19118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19119exec 5>>config.log
19120{
19121 echo
19122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19123## Running $as_me. ##
19124_ASBOX
19125 $as_echo "$ac_log"
19126} >&5
19127
19128_ACEOF
19129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19130#
19131# INIT-COMMANDS
19132#
19133
19134
19135# The HP-UX ksh and POSIX shell print the target directory to stdout
19136# if CDPATH is set.
19137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19138
19139sed_quote_subst='$sed_quote_subst'
19140double_quote_subst='$double_quote_subst'
19141delay_variable_subst='$delay_variable_subst'
19142macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19143macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19144enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19145enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19146pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19147enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19148host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19149host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19150host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19151build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19152build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19153build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19154SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19155Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19156GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19157EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19158FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19159LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19160NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19161LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19162max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19163ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19164exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19165lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19166lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19167lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19168reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19169reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19170OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19171deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19172file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19173AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19174AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19175STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19176RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19177old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19178old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19179old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19180CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19181CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19182compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19183GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19184lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19185lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19186lt_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"`'
19187lt_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"`'
19188objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19189SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19190ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19191MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19192lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19193lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19194lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19195lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19196lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19197need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19198DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19199NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19200LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19201OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19202OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19203libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19204shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19205extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19206archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19207enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19208export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19209whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19210compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19211old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19212old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19213archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19214archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19215module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19216module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19217with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19218allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19219no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19220hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19221hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19222hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19223hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19224hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19225hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19226hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19227hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19228inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19229link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19230fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19231always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19232export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19233exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19234include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19235prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19236file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19237variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19238need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19239need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19240version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19241runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19242shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19243shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19244libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19245library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19246soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19247postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19248postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19249finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19251hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19252sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19253sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19254hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19255enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19256enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19257enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19258old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19259striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19260compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19261predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19262postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19263predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19264postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19265compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19266LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19267old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19268compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19269GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19270lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19271lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19272lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19273lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19274lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19275archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19276enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19277export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19278whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19279compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19280old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19281old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19282archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19283archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19284module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19285module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19286with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19287allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19288no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19289hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19290hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19291hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19292hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19293hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19294hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19295hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19296hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19297inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19298link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19299fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19300always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19301export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19302exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19303include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19304prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19305file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19306hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19307compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19308predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19309postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19310predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19311postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19312compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19313
19314LTCC='$LTCC'
19315LTCFLAGS='$LTCFLAGS'
19316compiler='$compiler_DEFAULT'
19317
19318# Quote evaled strings.
19319for var in SED \
19320GREP \
19321EGREP \
19322FGREP \
19323LD \
19324NM \
19325LN_S \
19326lt_SP2NL \
19327lt_NL2SP \
19328reload_flag \
19329OBJDUMP \
19330deplibs_check_method \
19331file_magic_cmd \
19332AR \
19333AR_FLAGS \
19334STRIP \
19335RANLIB \
19336CC \
19337CFLAGS \
19338compiler \
19339lt_cv_sys_global_symbol_pipe \
19340lt_cv_sys_global_symbol_to_cdecl \
19341lt_cv_sys_global_symbol_to_c_name_address \
19342lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19343SHELL \
19344ECHO \
19345lt_prog_compiler_no_builtin_flag \
19346lt_prog_compiler_wl \
19347lt_prog_compiler_pic \
19348lt_prog_compiler_static \
19349lt_cv_prog_compiler_c_o \
19350need_locks \
19351DSYMUTIL \
19352NMEDIT \
19353LIPO \
19354OTOOL \
19355OTOOL64 \
19356shrext_cmds \
19357export_dynamic_flag_spec \
19358whole_archive_flag_spec \
19359compiler_needs_object \
19360with_gnu_ld \
19361allow_undefined_flag \
19362no_undefined_flag \
19363hardcode_libdir_flag_spec \
19364hardcode_libdir_flag_spec_ld \
19365hardcode_libdir_separator \
19366fix_srcfile_path \
19367exclude_expsyms \
19368include_expsyms \
19369file_list_spec \
19370variables_saved_for_relink \
19371libname_spec \
19372library_names_spec \
19373soname_spec \
19374finish_eval \
19375old_striplib \
19376striplib \
19377compiler_lib_search_dirs \
19378predep_objects \
19379postdep_objects \
19380predeps \
19381postdeps \
19382compiler_lib_search_path \
19383LD_CXX \
19384compiler_CXX \
19385lt_prog_compiler_no_builtin_flag_CXX \
19386lt_prog_compiler_wl_CXX \
19387lt_prog_compiler_pic_CXX \
19388lt_prog_compiler_static_CXX \
19389lt_cv_prog_compiler_c_o_CXX \
19390export_dynamic_flag_spec_CXX \
19391whole_archive_flag_spec_CXX \
19392compiler_needs_object_CXX \
19393with_gnu_ld_CXX \
19394allow_undefined_flag_CXX \
19395no_undefined_flag_CXX \
19396hardcode_libdir_flag_spec_CXX \
19397hardcode_libdir_flag_spec_ld_CXX \
19398hardcode_libdir_separator_CXX \
19399fix_srcfile_path_CXX \
19400exclude_expsyms_CXX \
19401include_expsyms_CXX \
19402file_list_spec_CXX \
19403compiler_lib_search_dirs_CXX \
19404predep_objects_CXX \
19405postdep_objects_CXX \
19406predeps_CXX \
19407postdeps_CXX \
19408compiler_lib_search_path_CXX; do
19409 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19410 *[\\\\\\\`\\"\\\$]*)
19411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19412 ;;
19413 *)
19414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19415 ;;
19416 esac
19417done
19418
19419# Double-quote double-evaled strings.
19420for var in reload_cmds \
19421old_postinstall_cmds \
19422old_postuninstall_cmds \
19423old_archive_cmds \
19424extract_expsyms_cmds \
19425old_archive_from_new_cmds \
19426old_archive_from_expsyms_cmds \
19427archive_cmds \
19428archive_expsym_cmds \
19429module_cmds \
19430module_expsym_cmds \
19431export_symbols_cmds \
19432prelink_cmds \
19433postinstall_cmds \
19434postuninstall_cmds \
19435finish_cmds \
19436sys_lib_search_path_spec \
19437sys_lib_dlsearch_path_spec \
19438old_archive_cmds_CXX \
19439old_archive_from_new_cmds_CXX \
19440old_archive_from_expsyms_cmds_CXX \
19441archive_cmds_CXX \
19442archive_expsym_cmds_CXX \
19443module_cmds_CXX \
19444module_expsym_cmds_CXX \
19445export_symbols_cmds_CXX \
19446prelink_cmds_CXX; do
19447 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19448 *[\\\\\\\`\\"\\\$]*)
19449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19450 ;;
19451 *)
19452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19453 ;;
19454 esac
19455done
19456
19457# Fix-up fallback echo if it was mangled by the above quoting rules.
19458case \$lt_ECHO in
19459*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19460 ;;
19461esac
19462
19463ac_aux_dir='$ac_aux_dir'
19464xsi_shell='$xsi_shell'
19465lt_shell_append='$lt_shell_append'
19466
19467# See if we are running on zsh, and set the options which allow our
19468# commands through without removal of \ escapes INIT.
19469if test -n "\${ZSH_VERSION+set}" ; then
19470 setopt NO_GLOB_SUBST
19471fi
19472
19473
19474 PACKAGE='$PACKAGE'
19475 VERSION='$VERSION'
19476 TIMESTAMP='$TIMESTAMP'
19477 RM='$RM'
19478 ofile='$ofile'
19479
19480
19481
19482
19483
19484
19485_ACEOF
19486
19487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19488
19489# Handling of arguments.
19490for ac_config_target in $ac_config_targets
19491do
19492 case $ac_config_target in
19493 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19494 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19495
19496 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19497 esac
19498done
19499
19500
19501# If the user did not use the arguments to specify the items to instantiate,
19502# then the envvar interface is used. Set only those that are not.
19503# We use the long form for the default assignment because of an extremely
19504# bizarre bug on SunOS 4.1.3.
19505if $ac_need_defaults; then
19506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19507 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19508fi
19509
19510# Have a temporary directory for convenience. Make it in the build tree
19511# simply because there is no reason against having it here, and in addition,
19512# creating and moving files from /tmp can sometimes cause problems.
19513# Hook for its removal unless debugging.
19514# Note that there is a small window in which the directory will not be cleaned:
19515# after its creation but before its name has been assigned to `$tmp'.
19516$debug ||
19517{
19518 tmp=
19519 trap 'exit_status=$?
19520 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19521' 0
19522 trap 'as_fn_exit 1' 1 2 13 15
19523}
19524# Create a (secure) tmp directory for tmp files.
19525
19526{
19527 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19528 test -n "$tmp" && test -d "$tmp"
19529} ||
19530{
19531 tmp=./conf$$-$RANDOM
19532 (umask 077 && mkdir "$tmp")
19533} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19534
19535# Set up the scripts for CONFIG_FILES section.
19536# No need to generate them if there are no CONFIG_FILES.
19537# This happens for instance with `./config.status config.h'.
19538if test -n "$CONFIG_FILES"; then
19539
19540
19541ac_cr=`echo X | tr X '\015'`
19542# On cygwin, bash can eat \r inside `` if the user requested igncr.
19543# But we know of no other shell where ac_cr would be empty at this
19544# point, so we can use a bashism as a fallback.
19545if test "x$ac_cr" = x; then
19546 eval ac_cr=\$\'\\r\'
19547fi
19548ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19549if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19550 ac_cs_awk_cr='\r'
19551else
19552 ac_cs_awk_cr=$ac_cr
19553fi
19554
19555echo 'BEGIN {' >"$tmp/subs1.awk" &&
19556_ACEOF
19557
19558
19559{
19560 echo "cat >conf$$subs.awk <<_ACEOF" &&
19561 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19562 echo "_ACEOF"
19563} >conf$$subs.sh ||
19564 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19565ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19566ac_delim='%!_!# '
19567for ac_last_try in false false false false false :; do
19568 . ./conf$$subs.sh ||
19569 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19570
19571 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19572 if test $ac_delim_n = $ac_delim_num; then
19573 break
19574 elif $ac_last_try; then
19575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19576 else
19577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19578 fi
19579done
19580rm -f conf$$subs.sh
19581
19582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19584_ACEOF
19585sed -n '
19586h
19587s/^/S["/; s/!.*/"]=/
19588p
19589g
19590s/^[^!]*!//
19591:repl
19592t repl
19593s/'"$ac_delim"'$//
19594t delim
19595:nl
19596h
19597s/\(.\{148\}\)..*/\1/
19598t more1
19599s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19600p
19601n
19602b repl
19603:more1
19604s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19605p
19606g
19607s/.\{148\}//
19608t nl
19609:delim
19610h
19611s/\(.\{148\}\)..*/\1/
19612t more2
19613s/["\\]/\\&/g; s/^/"/; s/$/"/
19614p
19615b
19616:more2
19617s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19618p
19619g
19620s/.\{148\}//
19621t delim
19622' <conf$$subs.awk | sed '
19623/^[^""]/{
19624 N
19625 s/\n//
19626}
19627' >>$CONFIG_STATUS || ac_write_fail=1
19628rm -f conf$$subs.awk
19629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19630_ACAWK
19631cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19632 for (key in S) S_is_set[key] = 1
19633 FS = "\a"
19634
19635}
19636{
19637 line = $ 0
19638 nfields = split(line, field, "@")
19639 substed = 0
19640 len = length(field[1])
19641 for (i = 2; i < nfields; i++) {
19642 key = field[i]
19643 keylen = length(key)
19644 if (S_is_set[key]) {
19645 value = S[key]
19646 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19647 len += length(value) + length(field[++i])
19648 substed = 1
19649 } else
19650 len += 1 + keylen
19651 }
19652
19653 print line
19654}
19655
19656_ACAWK
19657_ACEOF
19658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19659if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19660 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19661else
19662 cat
19663fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19664 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19665_ACEOF
19666
19667# VPATH may cause trouble with some makes, so we remove $(srcdir),
19668# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19669# trailing colons and then remove the whole line if VPATH becomes empty
19670# (actually we leave an empty line to preserve line numbers).
19671if test "x$srcdir" = x.; then
19672 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19673s/:*\$(srcdir):*/:/
19674s/:*\${srcdir}:*/:/
19675s/:*@srcdir@:*/:/
19676s/^\([^=]*=[ ]*\):*/\1/
19677s/:*$//
19678s/^[^=]*=[ ]*$//
19679}'
19680fi
19681
19682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19683fi # test -n "$CONFIG_FILES"
19684
19685
19686eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19687shift
19688for ac_tag
19689do
19690 case $ac_tag in
19691 :[FHLC]) ac_mode=$ac_tag; continue;;
19692 esac
19693 case $ac_mode$ac_tag in
19694 :[FHL]*:*);;
19695 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19696 :[FH]-) ac_tag=-:-;;
19697 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19698 esac
19699 ac_save_IFS=$IFS
19700 IFS=:
19701 set x $ac_tag
19702 IFS=$ac_save_IFS
19703 shift
19704 ac_file=$1
19705 shift
19706
19707 case $ac_mode in
19708 :L) ac_source=$1;;
19709 :[FH])
19710 ac_file_inputs=
19711 for ac_f
19712 do
19713 case $ac_f in
19714 -) ac_f="$tmp/stdin";;
19715 *) # Look for the file first in the build tree, then in the source tree
19716 # (if the path is not absolute). The absolute path cannot be DOS-style,
19717 # because $ac_f cannot contain `:'.
19718 test -f "$ac_f" ||
19719 case $ac_f in
19720 [\\/$]*) false;;
19721 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19722 esac ||
19723 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19724 esac
19725 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19726 as_fn_append ac_file_inputs " '$ac_f'"
19727 done
19728
19729 # Let's still pretend it is `configure' which instantiates (i.e., don't
19730 # use $as_me), people would be surprised to read:
19731 # /* config.h. Generated by config.status. */
19732 configure_input='Generated from '`
19733 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19734 `' by configure.'
19735 if test x"$ac_file" != x-; then
19736 configure_input="$ac_file. $configure_input"
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19738$as_echo "$as_me: creating $ac_file" >&6;}
19739 fi
19740 # Neutralize special characters interpreted by sed in replacement strings.
19741 case $configure_input in #(
19742 *\&* | *\|* | *\\* )
19743 ac_sed_conf_input=`$as_echo "$configure_input" |
19744 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19745 *) ac_sed_conf_input=$configure_input;;
19746 esac
19747
19748 case $ac_tag in
19749 *:-:* | *:-) cat >"$tmp/stdin" \
19750 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19751 esac
19752 ;;
19753 esac
19754
19755 ac_dir=`$as_dirname -- "$ac_file" ||
19756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19757 X"$ac_file" : 'X\(//\)[^/]' \| \
19758 X"$ac_file" : 'X\(//\)$' \| \
19759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19760$as_echo X"$ac_file" |
19761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19762 s//\1/
19763 q
19764 }
19765 /^X\(\/\/\)[^/].*/{
19766 s//\1/
19767 q
19768 }
19769 /^X\(\/\/\)$/{
19770 s//\1/
19771 q
19772 }
19773 /^X\(\/\).*/{
19774 s//\1/
19775 q
19776 }
19777 s/.*/./; q'`
19778 as_dir="$ac_dir"; as_fn_mkdir_p
19779 ac_builddir=.
19780
19781case "$ac_dir" in
19782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19783*)
19784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19785 # A ".." for each directory in $ac_dir_suffix.
19786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19787 case $ac_top_builddir_sub in
19788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19790 esac ;;
19791esac
19792ac_abs_top_builddir=$ac_pwd
19793ac_abs_builddir=$ac_pwd$ac_dir_suffix
19794# for backward compatibility:
19795ac_top_builddir=$ac_top_build_prefix
19796
19797case $srcdir in
19798 .) # We are building in place.
19799 ac_srcdir=.
19800 ac_top_srcdir=$ac_top_builddir_sub
19801 ac_abs_top_srcdir=$ac_pwd ;;
19802 [\\/]* | ?:[\\/]* ) # Absolute name.
19803 ac_srcdir=$srcdir$ac_dir_suffix;
19804 ac_top_srcdir=$srcdir
19805 ac_abs_top_srcdir=$srcdir ;;
19806 *) # Relative name.
19807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19808 ac_top_srcdir=$ac_top_build_prefix$srcdir
19809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19810esac
19811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19812
19813
19814 case $ac_mode in
19815 :F)
19816 #
19817 # CONFIG_FILE
19818 #
19819
19820 case $INSTALL in
19821 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19822 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19823 esac
19824_ACEOF
19825
19826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19827# If the template does not know about datarootdir, expand it.
19828# FIXME: This hack should be removed a few years after 2.60.
19829ac_datarootdir_hack=; ac_datarootdir_seen=
19830ac_sed_dataroot='
19831/datarootdir/ {
19832 p
19833 q
19834}
19835/@datadir@/p
19836/@docdir@/p
19837/@infodir@/p
19838/@localedir@/p
19839/@mandir@/p'
19840case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19841*datarootdir*) ac_datarootdir_seen=yes;;
19842*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19844$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19845_ACEOF
19846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19847 ac_datarootdir_hack='
19848 s&@datadir@&$datadir&g
19849 s&@docdir@&$docdir&g
19850 s&@infodir@&$infodir&g
19851 s&@localedir@&$localedir&g
19852 s&@mandir@&$mandir&g
19853 s&\\\${datarootdir}&$datarootdir&g' ;;
19854esac
19855_ACEOF
19856
19857# Neutralize VPATH when `$srcdir' = `.'.
19858# Shell code in configure.ac might set extrasub.
19859# FIXME: do we really want to maintain this feature?
19860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19861ac_sed_extra="$ac_vpsub
19862$extrasub
19863_ACEOF
19864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19865:t
19866/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19867s|@configure_input@|$ac_sed_conf_input|;t t
19868s&@top_builddir@&$ac_top_builddir_sub&;t t
19869s&@top_build_prefix@&$ac_top_build_prefix&;t t
19870s&@srcdir@&$ac_srcdir&;t t
19871s&@abs_srcdir@&$ac_abs_srcdir&;t t
19872s&@top_srcdir@&$ac_top_srcdir&;t t
19873s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19874s&@builddir@&$ac_builddir&;t t
19875s&@abs_builddir@&$ac_abs_builddir&;t t
19876s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19877s&@INSTALL@&$ac_INSTALL&;t t
19878$ac_datarootdir_hack
19879"
19880eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19881 || as_fn_error "could not create $ac_file" "$LINENO" 5
19882
19883test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19884 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19885 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19887which seems to be undefined. Please make sure it is defined." >&5
19888$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19889which seems to be undefined. Please make sure it is defined." >&2;}
19890
19891 rm -f "$tmp/stdin"
19892 case $ac_file in
19893 -) cat "$tmp/out" && rm -f "$tmp/out";;
19894 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19895 esac \
19896 || as_fn_error "could not create $ac_file" "$LINENO" 5
19897 ;;
19898
19899
19900 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19901$as_echo "$as_me: executing $ac_file commands" >&6;}
19902 ;;
19903 esac
19904
19905
19906 case $ac_file$ac_mode in
19907 "libtool":C)
19908
19909 # See if we are running on zsh, and set the options which allow our
19910 # commands through without removal of \ escapes.
19911 if test -n "${ZSH_VERSION+set}" ; then
19912 setopt NO_GLOB_SUBST
19913 fi
19914
19915 cfgfile="${ofile}T"
19916 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19917 $RM "$cfgfile"
19918
19919 cat <<_LT_EOF >> "$cfgfile"
19920#! $SHELL
19921
19922# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19923# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19925# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19926#
19927# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19928# 2006, 2007, 2008 Free Software Foundation, Inc.
19929# Written by Gordon Matzigkeit, 1996
19930#
19931# This file is part of GNU Libtool.
19932#
19933# GNU Libtool is free software; you can redistribute it and/or
19934# modify it under the terms of the GNU General Public License as
19935# published by the Free Software Foundation; either version 2 of
19936# the License, or (at your option) any later version.
19937#
19938# As a special exception to the GNU General Public License,
19939# if you distribute this file as part of a program or library that
19940# is built using GNU Libtool, you may include this file under the
19941# same distribution terms that you use for the rest of that program.
19942#
19943# GNU Libtool is distributed in the hope that it will be useful,
19944# but WITHOUT ANY WARRANTY; without even the implied warranty of
19945# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19946# GNU General Public License for more details.
19947#
19948# You should have received a copy of the GNU General Public License
19949# along with GNU Libtool; see the file COPYING. If not, a copy
19950# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19951# obtained by writing to the Free Software Foundation, Inc.,
19952# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19953
19954
19955# The names of the tagged configurations supported by this script.
19956available_tags="CXX "
19957
19958# ### BEGIN LIBTOOL CONFIG
19959
19960# Which release of libtool.m4 was used?
19961macro_version=$macro_version
19962macro_revision=$macro_revision
19963
19964# Whether or not to build static libraries.
19965build_old_libs=$enable_static
19966
19967# Whether or not to build shared libraries.
19968build_libtool_libs=$enable_shared
19969
19970# What type of objects to build.
19971pic_mode=$pic_mode
19972
19973# Whether or not to optimize for fast installation.
19974fast_install=$enable_fast_install
19975
19976# The host system.
19977host_alias=$host_alias
19978host=$host
19979host_os=$host_os
19980
19981# The build system.
19982build_alias=$build_alias
19983build=$build
19984build_os=$build_os
19985
19986# A sed program that does not truncate output.
19987SED=$lt_SED
19988
19989# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19990Xsed="\$SED -e 1s/^X//"
19991
19992# A grep program that handles long lines.
19993GREP=$lt_GREP
19994
19995# An ERE matcher.
19996EGREP=$lt_EGREP
19997
19998# A literal string matcher.
19999FGREP=$lt_FGREP
20000
20001# A BSD- or MS-compatible name lister.
20002NM=$lt_NM
20003
20004# Whether we need soft or hard links.
20005LN_S=$lt_LN_S
20006
20007# What is the maximum length of a command?
20008max_cmd_len=$max_cmd_len
20009
20010# Object file suffix (normally "o").
20011objext=$ac_objext
20012
20013# Executable file suffix (normally "").
20014exeext=$exeext
20015
20016# whether the shell understands "unset".
20017lt_unset=$lt_unset
20018
20019# turn spaces into newlines.
20020SP2NL=$lt_lt_SP2NL
20021
20022# turn newlines into spaces.
20023NL2SP=$lt_lt_NL2SP
20024
20025# How to create reloadable object files.
20026reload_flag=$lt_reload_flag
20027reload_cmds=$lt_reload_cmds
20028
20029# An object symbol dumper.
20030OBJDUMP=$lt_OBJDUMP
20031
20032# Method to check whether dependent libraries are shared objects.
20033deplibs_check_method=$lt_deplibs_check_method
20034
20035# Command to use when deplibs_check_method == "file_magic".
20036file_magic_cmd=$lt_file_magic_cmd
20037
20038# The archiver.
20039AR=$lt_AR
20040AR_FLAGS=$lt_AR_FLAGS
20041
20042# A symbol stripping program.
20043STRIP=$lt_STRIP
20044
20045# Commands used to install an old-style archive.
20046RANLIB=$lt_RANLIB
20047old_postinstall_cmds=$lt_old_postinstall_cmds
20048old_postuninstall_cmds=$lt_old_postuninstall_cmds
20049
20050# A C compiler.
20051LTCC=$lt_CC
20052
20053# LTCC compiler flags.
20054LTCFLAGS=$lt_CFLAGS
20055
20056# Take the output of nm and produce a listing of raw symbols and C names.
20057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20058
20059# Transform the output of nm in a proper C declaration.
20060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20061
20062# Transform the output of nm in a C name address pair.
20063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20064
20065# Transform the output of nm in a C name address pair when lib prefix is needed.
20066global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20067
20068# The name of the directory that contains temporary libtool files.
20069objdir=$objdir
20070
20071# Shell to use when invoking shell scripts.
20072SHELL=$lt_SHELL
20073
20074# An echo program that does not interpret backslashes.
20075ECHO=$lt_ECHO
20076
20077# Used to examine libraries when file_magic_cmd begins with "file".
20078MAGIC_CMD=$MAGIC_CMD
20079
20080# Must we lock files when doing compilation?
20081need_locks=$lt_need_locks
20082
20083# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20084DSYMUTIL=$lt_DSYMUTIL
20085
20086# Tool to change global to local symbols on Mac OS X.
20087NMEDIT=$lt_NMEDIT
20088
20089# Tool to manipulate fat objects and archives on Mac OS X.
20090LIPO=$lt_LIPO
20091
20092# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20093OTOOL=$lt_OTOOL
20094
20095# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20096OTOOL64=$lt_OTOOL64
20097
20098# Old archive suffix (normally "a").
20099libext=$libext
20100
20101# Shared library suffix (normally ".so").
20102shrext_cmds=$lt_shrext_cmds
20103
20104# The commands to extract the exported symbol list from a shared archive.
20105extract_expsyms_cmds=$lt_extract_expsyms_cmds
20106
20107# Variables whose values should be saved in libtool wrapper scripts and
20108# restored at link time.
20109variables_saved_for_relink=$lt_variables_saved_for_relink
20110
20111# Do we need the "lib" prefix for modules?
20112need_lib_prefix=$need_lib_prefix
20113
20114# Do we need a version for libraries?
20115need_version=$need_version
20116
20117# Library versioning type.
20118version_type=$version_type
20119
20120# Shared library runtime path variable.
20121runpath_var=$runpath_var
20122
20123# Shared library path variable.
20124shlibpath_var=$shlibpath_var
20125
20126# Is shlibpath searched before the hard-coded library search path?
20127shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20128
20129# Format of library name prefix.
20130libname_spec=$lt_libname_spec
20131
20132# List of archive names. First name is the real one, the rest are links.
20133# The last name is the one that the linker finds with -lNAME
20134library_names_spec=$lt_library_names_spec
20135
20136# The coded name of the library, if different from the real name.
20137soname_spec=$lt_soname_spec
20138
20139# Command to use after installation of a shared archive.
20140postinstall_cmds=$lt_postinstall_cmds
20141
20142# Command to use after uninstallation of a shared archive.
20143postuninstall_cmds=$lt_postuninstall_cmds
20144
20145# Commands used to finish a libtool library installation in a directory.
20146finish_cmds=$lt_finish_cmds
20147
20148# As "finish_cmds", except a single script fragment to be evaled but
20149# not shown.
20150finish_eval=$lt_finish_eval
20151
20152# Whether we should hardcode library paths into libraries.
20153hardcode_into_libs=$hardcode_into_libs
20154
20155# Compile-time system search path for libraries.
20156sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20157
20158# Run-time system search path for libraries.
20159sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20160
20161# Whether dlopen is supported.
20162dlopen_support=$enable_dlopen
20163
20164# Whether dlopen of programs is supported.
20165dlopen_self=$enable_dlopen_self
20166
20167# Whether dlopen of statically linked programs is supported.
20168dlopen_self_static=$enable_dlopen_self_static
20169
20170# Commands to strip libraries.
20171old_striplib=$lt_old_striplib
20172striplib=$lt_striplib
20173
20174
20175# The linker used to build libraries.
20176LD=$lt_LD
20177
20178# Commands used to build an old-style archive.
20179old_archive_cmds=$lt_old_archive_cmds
20180
20181# A language specific compiler.
20182CC=$lt_compiler
20183
20184# Is the compiler the GNU compiler?
20185with_gcc=$GCC
20186
20187# Compiler flag to turn off builtin functions.
20188no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20189
20190# How to pass a linker flag through the compiler.
20191wl=$lt_lt_prog_compiler_wl
20192
20193# Additional compiler flags for building library objects.
20194pic_flag=$lt_lt_prog_compiler_pic
20195
20196# Compiler flag to prevent dynamic linking.
20197link_static_flag=$lt_lt_prog_compiler_static
20198
20199# Does compiler simultaneously support -c and -o options?
20200compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20201
20202# Whether or not to add -lc for building shared libraries.
20203build_libtool_need_lc=$archive_cmds_need_lc
20204
20205# Whether or not to disallow shared libs when runtime libs are static.
20206allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20207
20208# Compiler flag to allow reflexive dlopens.
20209export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20210
20211# Compiler flag to generate shared objects directly from archives.
20212whole_archive_flag_spec=$lt_whole_archive_flag_spec
20213
20214# Whether the compiler copes with passing no objects directly.
20215compiler_needs_object=$lt_compiler_needs_object
20216
20217# Create an old-style archive from a shared archive.
20218old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20219
20220# Create a temporary old-style archive to link instead of a shared archive.
20221old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20222
20223# Commands used to build a shared archive.
20224archive_cmds=$lt_archive_cmds
20225archive_expsym_cmds=$lt_archive_expsym_cmds
20226
20227# Commands used to build a loadable module if different from building
20228# a shared archive.
20229module_cmds=$lt_module_cmds
20230module_expsym_cmds=$lt_module_expsym_cmds
20231
20232# Whether we are building with GNU ld or not.
20233with_gnu_ld=$lt_with_gnu_ld
20234
20235# Flag that allows shared libraries with undefined symbols to be built.
20236allow_undefined_flag=$lt_allow_undefined_flag
20237
20238# Flag that enforces no undefined symbols.
20239no_undefined_flag=$lt_no_undefined_flag
20240
20241# Flag to hardcode \$libdir into a binary during linking.
20242# This must work even if \$libdir does not exist
20243hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20244
20245# If ld is used when linking, flag to hardcode \$libdir into a binary
20246# during linking. This must work even if \$libdir does not exist.
20247hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20248
20249# Whether we need a single "-rpath" flag with a separated argument.
20250hardcode_libdir_separator=$lt_hardcode_libdir_separator
20251
20252# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20253# DIR into the resulting binary.
20254hardcode_direct=$hardcode_direct
20255
20256# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20257# DIR into the resulting binary and the resulting library dependency is
20258# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20259# library is relocated.
20260hardcode_direct_absolute=$hardcode_direct_absolute
20261
20262# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20263# into the resulting binary.
20264hardcode_minus_L=$hardcode_minus_L
20265
20266# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20267# into the resulting binary.
20268hardcode_shlibpath_var=$hardcode_shlibpath_var
20269
20270# Set to "yes" if building a shared library automatically hardcodes DIR
20271# into the library and all subsequent libraries and executables linked
20272# against it.
20273hardcode_automatic=$hardcode_automatic
20274
20275# Set to yes if linker adds runtime paths of dependent libraries
20276# to runtime path list.
20277inherit_rpath=$inherit_rpath
20278
20279# Whether libtool must link a program against all its dependency libraries.
20280link_all_deplibs=$link_all_deplibs
20281
20282# Fix the shell variable \$srcfile for the compiler.
20283fix_srcfile_path=$lt_fix_srcfile_path
20284
20285# Set to "yes" if exported symbols are required.
20286always_export_symbols=$always_export_symbols
20287
20288# The commands to list exported symbols.
20289export_symbols_cmds=$lt_export_symbols_cmds
20290
20291# Symbols that should not be listed in the preloaded symbols.
20292exclude_expsyms=$lt_exclude_expsyms
20293
20294# Symbols that must always be exported.
20295include_expsyms=$lt_include_expsyms
20296
20297# Commands necessary for linking programs (against libraries) with templates.
20298prelink_cmds=$lt_prelink_cmds
20299
20300# Specify filename containing input files.
20301file_list_spec=$lt_file_list_spec
20302
20303# How to hardcode a shared library path into an executable.
20304hardcode_action=$hardcode_action
20305
20306# The directories searched by this compiler when creating a shared library.
20307compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20308
20309# Dependencies to place before and after the objects being linked to
20310# create a shared library.
20311predep_objects=$lt_predep_objects
20312postdep_objects=$lt_postdep_objects
20313predeps=$lt_predeps
20314postdeps=$lt_postdeps
20315
20316# The library search path used internally by the compiler when linking
20317# a shared library.
20318compiler_lib_search_path=$lt_compiler_lib_search_path
20319
20320# ### END LIBTOOL CONFIG
20321
20322_LT_EOF
20323
20324 case $host_os in
20325 aix3*)
20326 cat <<\_LT_EOF >> "$cfgfile"
20327# AIX sometimes has problems with the GCC collect2 program. For some
20328# reason, if we set the COLLECT_NAMES environment variable, the problems
20329# vanish in a puff of smoke.
20330if test "X${COLLECT_NAMES+set}" != Xset; then
20331 COLLECT_NAMES=
20332 export COLLECT_NAMES
20333fi
20334_LT_EOF
20335 ;;
20336 esac
20337
20338
20339ltmain="$ac_aux_dir/ltmain.sh"
20340
20341
20342 # We use sed instead of cat because bash on DJGPP gets confused if
20343 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20344 # text mode, it properly converts lines to CR/LF. This bash problem
20345 # is reportedly fixed, but why not run on old versions too?
20346 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20347 || (rm -f "$cfgfile"; exit 1)
20348
20349 case $xsi_shell in
20350 yes)
20351 cat << \_LT_EOF >> "$cfgfile"
20352
20353# func_dirname file append nondir_replacement
20354# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20355# otherwise set result to NONDIR_REPLACEMENT.
20356func_dirname ()
20357{
20358 case ${1} in
20359 */*) func_dirname_result="${1%/*}${2}" ;;
20360 * ) func_dirname_result="${3}" ;;
20361 esac
20362}
20363
20364# func_basename file
20365func_basename ()
20366{
20367 func_basename_result="${1##*/}"
20368}
20369
20370# func_dirname_and_basename file append nondir_replacement
20371# perform func_basename and func_dirname in a single function
20372# call:
20373# dirname: Compute the dirname of FILE. If nonempty,
20374# add APPEND to the result, otherwise set result
20375# to NONDIR_REPLACEMENT.
20376# value returned in "$func_dirname_result"
20377# basename: Compute filename of FILE.
20378# value retuned in "$func_basename_result"
20379# Implementation must be kept synchronized with func_dirname
20380# and func_basename. For efficiency, we do not delegate to
20381# those functions but instead duplicate the functionality here.
20382func_dirname_and_basename ()
20383{
20384 case ${1} in
20385 */*) func_dirname_result="${1%/*}${2}" ;;
20386 * ) func_dirname_result="${3}" ;;
20387 esac
20388 func_basename_result="${1##*/}"
20389}
20390
20391# func_stripname prefix suffix name
20392# strip PREFIX and SUFFIX off of NAME.
20393# PREFIX and SUFFIX must not contain globbing or regex special
20394# characters, hashes, percent signs, but SUFFIX may contain a leading
20395# dot (in which case that matches only a dot).
20396func_stripname ()
20397{
20398 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20399 # positional parameters, so assign one to ordinary parameter first.
20400 func_stripname_result=${3}
20401 func_stripname_result=${func_stripname_result#"${1}"}
20402 func_stripname_result=${func_stripname_result%"${2}"}
20403}
20404
20405# func_opt_split
20406func_opt_split ()
20407{
20408 func_opt_split_opt=${1%%=*}
20409 func_opt_split_arg=${1#*=}
20410}
20411
20412# func_lo2o object
20413func_lo2o ()
20414{
20415 case ${1} in
20416 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20417 *) func_lo2o_result=${1} ;;
20418 esac
20419}
20420
20421# func_xform libobj-or-source
20422func_xform ()
20423{
20424 func_xform_result=${1%.*}.lo
20425}
20426
20427# func_arith arithmetic-term...
20428func_arith ()
20429{
20430 func_arith_result=$(( $* ))
20431}
20432
20433# func_len string
20434# STRING may not start with a hyphen.
20435func_len ()
20436{
20437 func_len_result=${#1}
20438}
20439
20440_LT_EOF
20441 ;;
20442 *) # Bourne compatible functions.
20443 cat << \_LT_EOF >> "$cfgfile"
20444
20445# func_dirname file append nondir_replacement
20446# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20447# otherwise set result to NONDIR_REPLACEMENT.
20448func_dirname ()
20449{
20450 # Extract subdirectory from the argument.
20451 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20452 if test "X$func_dirname_result" = "X${1}"; then
20453 func_dirname_result="${3}"
20454 else
20455 func_dirname_result="$func_dirname_result${2}"
20456 fi
20457}
20458
20459# func_basename file
20460func_basename ()
20461{
20462 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20463}
20464
20465
20466# func_stripname prefix suffix name
20467# strip PREFIX and SUFFIX off of NAME.
20468# PREFIX and SUFFIX must not contain globbing or regex special
20469# characters, hashes, percent signs, but SUFFIX may contain a leading
20470# dot (in which case that matches only a dot).
20471# func_strip_suffix prefix name
20472func_stripname ()
20473{
20474 case ${2} in
20475 .*) func_stripname_result=`$ECHO "X${3}" \
20476 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20477 *) func_stripname_result=`$ECHO "X${3}" \
20478 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20479 esac
20480}
20481
20482# sed scripts:
20483my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20484my_sed_long_arg='1s/^-[^=]*=//'
20485
20486# func_opt_split
20487func_opt_split ()
20488{
20489 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20490 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20491}
20492
20493# func_lo2o object
20494func_lo2o ()
20495{
20496 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20497}
20498
20499# func_xform libobj-or-source
20500func_xform ()
20501{
20502 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20503}
20504
20505# func_arith arithmetic-term...
20506func_arith ()
20507{
20508 func_arith_result=`expr "$@"`
20509}
20510
20511# func_len string
20512# STRING may not start with a hyphen.
20513func_len ()
20514{
20515 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20516}
20517
20518_LT_EOF
20519esac
20520
20521case $lt_shell_append in
20522 yes)
20523 cat << \_LT_EOF >> "$cfgfile"
20524
20525# func_append var value
20526# Append VALUE to the end of shell variable VAR.
20527func_append ()
20528{
20529 eval "$1+=\$2"
20530}
20531_LT_EOF
20532 ;;
20533 *)
20534 cat << \_LT_EOF >> "$cfgfile"
20535
20536# func_append var value
20537# Append VALUE to the end of shell variable VAR.
20538func_append ()
20539{
20540 eval "$1=\$$1\$2"
20541}
20542
20543_LT_EOF
20544 ;;
20545 esac
20546
20547
20548 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20549 || (rm -f "$cfgfile"; exit 1)
20550
20551 mv -f "$cfgfile" "$ofile" ||
20552 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20553 chmod +x "$ofile"
20554
20555
20556 cat <<_LT_EOF >> "$ofile"
20557
20558# ### BEGIN LIBTOOL TAG CONFIG: CXX
20559
20560# The linker used to build libraries.
20561LD=$lt_LD_CXX
20562
20563# Commands used to build an old-style archive.
20564old_archive_cmds=$lt_old_archive_cmds_CXX
20565
20566# A language specific compiler.
20567CC=$lt_compiler_CXX
20568
20569# Is the compiler the GNU compiler?
20570with_gcc=$GCC_CXX
20571
20572# Compiler flag to turn off builtin functions.
20573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20574
20575# How to pass a linker flag through the compiler.
20576wl=$lt_lt_prog_compiler_wl_CXX
20577
20578# Additional compiler flags for building library objects.
20579pic_flag=$lt_lt_prog_compiler_pic_CXX
20580
20581# Compiler flag to prevent dynamic linking.
20582link_static_flag=$lt_lt_prog_compiler_static_CXX
20583
20584# Does compiler simultaneously support -c and -o options?
20585compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20586
20587# Whether or not to add -lc for building shared libraries.
20588build_libtool_need_lc=$archive_cmds_need_lc_CXX
20589
20590# Whether or not to disallow shared libs when runtime libs are static.
20591allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20592
20593# Compiler flag to allow reflexive dlopens.
20594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20595
20596# Compiler flag to generate shared objects directly from archives.
20597whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20598
20599# Whether the compiler copes with passing no objects directly.
20600compiler_needs_object=$lt_compiler_needs_object_CXX
20601
20602# Create an old-style archive from a shared archive.
20603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20604
20605# Create a temporary old-style archive to link instead of a shared archive.
20606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20607
20608# Commands used to build a shared archive.
20609archive_cmds=$lt_archive_cmds_CXX
20610archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20611
20612# Commands used to build a loadable module if different from building
20613# a shared archive.
20614module_cmds=$lt_module_cmds_CXX
20615module_expsym_cmds=$lt_module_expsym_cmds_CXX
20616
20617# Whether we are building with GNU ld or not.
20618with_gnu_ld=$lt_with_gnu_ld_CXX
20619
20620# Flag that allows shared libraries with undefined symbols to be built.
20621allow_undefined_flag=$lt_allow_undefined_flag_CXX
20622
20623# Flag that enforces no undefined symbols.
20624no_undefined_flag=$lt_no_undefined_flag_CXX
20625
20626# Flag to hardcode \$libdir into a binary during linking.
20627# This must work even if \$libdir does not exist
20628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20629
20630# If ld is used when linking, flag to hardcode \$libdir into a binary
20631# during linking. This must work even if \$libdir does not exist.
20632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20633
20634# Whether we need a single "-rpath" flag with a separated argument.
20635hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20636
20637# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20638# DIR into the resulting binary.
20639hardcode_direct=$hardcode_direct_CXX
20640
20641# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20642# DIR into the resulting binary and the resulting library dependency is
20643# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20644# library is relocated.
20645hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20646
20647# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20648# into the resulting binary.
20649hardcode_minus_L=$hardcode_minus_L_CXX
20650
20651# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20652# into the resulting binary.
20653hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20654
20655# Set to "yes" if building a shared library automatically hardcodes DIR
20656# into the library and all subsequent libraries and executables linked
20657# against it.
20658hardcode_automatic=$hardcode_automatic_CXX
20659
20660# Set to yes if linker adds runtime paths of dependent libraries
20661# to runtime path list.
20662inherit_rpath=$inherit_rpath_CXX
20663
20664# Whether libtool must link a program against all its dependency libraries.
20665link_all_deplibs=$link_all_deplibs_CXX
20666
20667# Fix the shell variable \$srcfile for the compiler.
20668fix_srcfile_path=$lt_fix_srcfile_path_CXX
20669
20670# Set to "yes" if exported symbols are required.
20671always_export_symbols=$always_export_symbols_CXX
20672
20673# The commands to list exported symbols.
20674export_symbols_cmds=$lt_export_symbols_cmds_CXX
20675
20676# Symbols that should not be listed in the preloaded symbols.
20677exclude_expsyms=$lt_exclude_expsyms_CXX
20678
20679# Symbols that must always be exported.
20680include_expsyms=$lt_include_expsyms_CXX
20681
20682# Commands necessary for linking programs (against libraries) with templates.
20683prelink_cmds=$lt_prelink_cmds_CXX
20684
20685# Specify filename containing input files.
20686file_list_spec=$lt_file_list_spec_CXX
20687
20688# How to hardcode a shared library path into an executable.
20689hardcode_action=$hardcode_action_CXX
20690
20691# The directories searched by this compiler when creating a shared library.
20692compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20693
20694# Dependencies to place before and after the objects being linked to
20695# create a shared library.
20696predep_objects=$lt_predep_objects_CXX
20697postdep_objects=$lt_postdep_objects_CXX
20698predeps=$lt_predeps_CXX
20699postdeps=$lt_postdeps_CXX
20700
20701# The library search path used internally by the compiler when linking
20702# a shared library.
20703compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20704
20705# ### END LIBTOOL TAG CONFIG: CXX
20706_LT_EOF
20707
20708 ;;
20709
20710 esac
20711done # for ac_tag
20712
20713
20714as_fn_exit 0
20715_ACEOF
20716ac_clean_files=$ac_clean_files_save
20717
20718test $ac_write_fail = 0 ||
20719 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20720
20721
20722# configure is writing to config.log, and then calls config.status.
20723# config.status does its own redirection, appending to config.log.
20724# Unfortunately, on DOS this fails, as config.log is still kept open
20725# by configure, so config.status won't be able to write to it; its
20726# output is simply discarded. So we exec the FD to /dev/null,
20727# effectively closing config.log, so it can be properly (re)opened and
20728# appended to by config.status. When coming back to configure, we
20729# need to make the FD available again.
20730if test "$no_create" != yes; then
20731 ac_cs_success=:
20732 ac_config_status_args=
20733 test "$silent" = yes &&
20734 ac_config_status_args="$ac_config_status_args --quiet"
20735 exec 5>/dev/null
20736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20737 exec 5>>config.log
20738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20739 # would make configure fail if this is the last instruction.
20740 $ac_cs_success || as_fn_exit $?
20741fi
20742if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20744$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20745fi
20746