]> git.saurik.com Git - cycript.git/blame - configure
Refactor configure.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
9c60689e 3# Generated by GNU Autoconf 2.65 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
c7aa54aa 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9c60689e
DWT
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
c7aa54aa
DWT
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0
DWT
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
9c60689e
DWT
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
6b66678a
DWT
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'
c7aa54aa 740
9c60689e
DWT
741test -n "$DJDIR" || exec 7<&0 </dev/null
742exec 6>&1
c7aa54aa
DWT
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
35fa52c0 769ac_unique_file="Console.cpp"
6b66678a
DWT
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
9c60689e
DWT
806ac_subst_vars='LTLIBOBJS
807LIBOBJS
47aaa820
DWT
808ifGNUmake
809CY_OBJECTIVEC
810GNUSTEP_CONFIG
309b0535 811LIBFFI_LIBS
35fa52c0 812LIBFFI_CFLAGS
3fd51f51 813CY_EXECUTE
a667869d
DWT
814ac_ct_OBJCXX
815OBJCXXFLAGS
816OBJCXX
35fa52c0
DWT
817WEBKIT_LIBS
818WEBKIT_CFLAGS
35fa52c0
DWT
819LTLIBICONV
820LIBICONV
35fa52c0
DWT
821INSTALL_DATA
822INSTALL_SCRIPT
823INSTALL_PROGRAM
549f29b5 824LTLIBAPR
3530897b 825TIME
9c60689e
DWT
826GPERF
827_BASH
35fa52c0
DWT
828FLEX
829LEXLIB
9c60689e
DWT
830LEX_OUTPUT_ROOT
831LEX
832BISON
833AWK
834YFLAGS
835YACC
47aaa820
DWT
836CXXCPP
837ac_ct_CXX
838CXXFLAGS
839CXX
3fd51f51 840PKG_CONFIG
9c60689e
DWT
841CPP
842OTOOL64
843OTOOL
844LIPO
845NMEDIT
846DSYMUTIL
847lt_ECHO
848RANLIB
849STRIP
850AR
851OBJDUMP
852LN_S
853NM
854ac_ct_DUMPBIN
855DUMPBIN
856LD
857FGREP
858EGREP
859GREP
860SED
35fa52c0
DWT
861OBJEXT
862EXEEXT
863ac_ct_CC
864CPPFLAGS
865LDFLAGS
866CFLAGS
867CC
9c60689e
DWT
868host_os
869host_vendor
870host_cpu
871host
872build_os
873build_vendor
874build_cpu
875build
876LIBTOOL
dbadc56a 877target_alias
c7aa54aa
DWT
878host_alias
879build_alias
880LIBS
881ECHO_T
882ECHO_N
883ECHO_C
884DEFS
885mandir
886localedir
887libdir
888psdir
889pdfdir
890dvidir
891htmldir
892infodir
893docdir
894oldincludedir
895includedir
896localstatedir
897sharedstatedir
898sysconfdir
899datadir
900datarootdir
901libexecdir
902sbindir
903bindir
904program_transform_name
905prefix
906exec_prefix
907PACKAGE_URL
908PACKAGE_BUGREPORT
909PACKAGE_STRING
910PACKAGE_VERSION
911PACKAGE_TARNAME
912PACKAGE_NAME
913PATH_SEPARATOR
914SHELL'
915ac_subst_files=''
916ac_user_opts='
917enable_option_checking
9c60689e 918enable_static
549f29b5 919enable_shared
9c60689e
DWT
920with_pic
921enable_fast_install
35fa52c0 922with_gnu_ld
9c60689e
DWT
923enable_libtool_lock
924with_apr
35fa52c0
DWT
925enable_rpath
926with_libiconv_prefix
c7aa54aa
DWT
927'
928 ac_precious_vars='build_alias
929host_alias
dbadc56a 930target_alias
35fa52c0
DWT
931CC
932CFLAGS
dbadc56a
DWT
933LDFLAGS
934LIBS
935CPPFLAGS
9c60689e 936CPP
3fd51f51 937PKG_CONFIG
35fa52c0
DWT
938CXX
939CXXFLAGS
940CCC
9c60689e 941CXXCPP
47aaa820
DWT
942YACC
943YFLAGS
27557508 944GPERF
35fa52c0
DWT
945WEBKIT_CFLAGS
946WEBKIT_LIBS
9c60689e 947OBJCXX
a667869d
DWT
948OBJCXXFLAGS
949LIBFFI_CFLAGS
950LIBFFI_LIBS'
c7aa54aa
DWT
951
952
953# Initialize some variables set by options.
954ac_init_help=
955ac_init_version=false
956ac_unrecognized_opts=
957ac_unrecognized_sep=
958# The variables have the same names as the options, with
959# dashes changed to underlines.
960cache_file=/dev/null
961exec_prefix=NONE
962no_create=
963no_recursion=
964prefix=NONE
965program_prefix=NONE
966program_suffix=NONE
967program_transform_name=s,x,x,
968silent=
969site=
970srcdir=
971verbose=
972x_includes=NONE
973x_libraries=NONE
974
975# Installation directory options.
976# These are left unexpanded so users can "make install exec_prefix=/foo"
977# and all the variables that are supposed to be based on exec_prefix
978# by default will actually change.
979# Use braces instead of parens because sh, perl, etc. also accept them.
980# (The list follows the same order as the GNU Coding Standards.)
981bindir='${exec_prefix}/bin'
982sbindir='${exec_prefix}/sbin'
983libexecdir='${exec_prefix}/libexec'
984datarootdir='${prefix}/share'
985datadir='${datarootdir}'
986sysconfdir='${prefix}/etc'
987sharedstatedir='${prefix}/com'
988localstatedir='${prefix}/var'
989includedir='${prefix}/include'
990oldincludedir='/usr/include'
991docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992infodir='${datarootdir}/info'
993htmldir='${docdir}'
994dvidir='${docdir}'
995pdfdir='${docdir}'
996psdir='${docdir}'
997libdir='${exec_prefix}/lib'
998localedir='${datarootdir}/locale'
999mandir='${datarootdir}/man'
1000
1001ac_prev=
1002ac_dashdash=
1003for ac_option
1004do
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1010 fi
1011
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"enable_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090"enable_$ac_useropt"
1091"*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1116
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1121
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1151
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1168
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1189
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1208
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1225
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1245
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1256
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1261
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1266
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1273
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1278
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1281
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1284
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294"with_$ac_useropt"
1295"*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1300
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"with_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1316
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1320
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1327
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1334
1335 -*) as_fn_error "unrecognized option: \`$ac_option'
1336Try \`$0 --help' for more information."
1337 ;;
1338
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1348
1349 *)
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 ;;
1356
1357 esac
1358done
1359
1360if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error "missing argument to $ac_option"
1363fi
1364
1365if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1371fi
1372
1373# Check all directory arguments for consistency.
1374for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1378do
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392done
1393
1394# There might be people who depend on the old broken behavior: `$host'
1395# used to hold the argument of --host etc.
1396# FIXME: To remove some day.
1397build=$build_alias
1398host=$host_alias
1399target=$target_alias
1400
1401# FIXME: To remove some day.
1402if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1409 fi
1410fi
1411
1412ac_tool_prefix=
1413test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415test "$silent" = yes && exec 6>/dev/null
1416
1417
1418ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419ac_ls_di=`ls -di .` &&
1420ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error "working directory cannot be determined"
1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error "pwd does not report name of working directory"
1424
1425
1426# Find the source files, if location was not specified.
1427if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435$as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\).*/{
1449 s//\1/
1450 q
1451 }
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1456 fi
1457else
1458 ac_srcdir_defaulted=no
1459fi
1460if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463fi
1464ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 pwd)`
1468# When building in place, set srcdir=.
1469if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1471fi
1472# Remove unnecessary trailing slashes from srcdir.
1473# Double slashes in file names in object file debugging info
1474# mess up M-x gdb in Emacs.
1475case $srcdir in
1476*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477esac
1478for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483done
1484
1485#
1486# Report the --help message.
1487#
1488if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1493
1494Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497VAR=VALUE. See below for descriptions of some of the useful variables.
1498
1499Defaults for the options are specified in brackets.
1500
1501Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511
1512Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1517
1518By default, \`make install' will install all the files in
1519\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521for instance \`--prefix=\$HOME'.
1522
1523For better control, use the options below.
1524
1525Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545_ACEOF
1546
1547 cat <<\_ACEOF
35fa52c0
DWT
1548
1549System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1552_ACEOF
1553fi
1554
1555if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of Cycript 0.9:";;
1558 esac
1559 cat <<\_ACEOF
1560
35fa52c0
DWT
1561Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549f29b5 1565 --enable-static[=PKGS] build static libraries [default=no]
9c60689e 1566 --enable-shared[=PKGS] build shared libraries [default=yes]
9c60689e
DWT
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
35fa52c0
DWT
1570 --disable-rpath do not hardcode runtime library paths
1571
1572Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9c60689e
DWT
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
309b0535
DWT
1578 --with-apr=PATH prefix for installed APR or the full path to
1579 apr-config
35fa52c0
DWT
1580 --with-gnu-ld assume the C compiler uses GNU ld default=no
1581 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1582 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1583
dbadc56a 1584Some influential environment variables:
35fa52c0
DWT
1585 CC C compiler command
1586 CFLAGS C compiler flags
dbadc56a
DWT
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1591 you have headers in a nonstandard directory <include dir>
9c60689e 1592 CPP C preprocessor
3fd51f51 1593 PKG_CONFIG path to pkg-config utility
47aaa820
DWT
1594 CXX C++ compiler command
1595 CXXFLAGS C++ compiler flags
1596 CXXCPP C++ preprocessor
9c60689e
DWT
1597 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1598 the first program found out of: `bison -y', `byacc', `yacc'.
1599 YFLAGS The list of arguments that will be passed by default to $YACC.
1600 This script will default YFLAGS to the empty string to avoid a
1601 default value of `-d' given by some make applications.
27557508 1602 GPERF perfect hash function generator
35fa52c0
DWT
1603 WEBKIT_CFLAGS
1604 C compiler flags for WEBKIT, overriding pkg-config
1605 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
a667869d
DWT
1606 OBJCXX Objective C++ compiler command
1607 OBJCXXFLAGS Objective C++ compiler flags
35fa52c0
DWT
1608 LIBFFI_CFLAGS
1609 C compiler flags for LIBFFI, overriding pkg-config
1610 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
dbadc56a
DWT
1611
1612Use these variables to override the choices made by `configure' or to help
1613it to find libraries and programs with nonstandard names/locations.
1614
c7aa54aa
DWT
1615Report bugs to <saurik@saurik.com>.
1616Cycript home page: <http://www.cycript.org/>.
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
1644
1645case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658esac
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674fi
1675
1676test -n "$ac_init_help" && exit $ac_status
1677if $ac_init_version; then
1678 cat <<\_ACEOF
1679Cycript configure 0.9
9c60689e 1680generated by GNU Autoconf 2.65
c7aa54aa
DWT
1681
1682Copyright (C) 2009 Free Software Foundation, Inc.
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
1686 exit
1687fi
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
dbadc56a 1692
35fa52c0
DWT
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1727 as_fn_set_status $ac_retval
35fa52c0
DWT
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1773 as_fn_set_status $ac_retval
35fa52c0
DWT
1774
1775} # ac_fn_c_try_link
1776
9c60689e
DWT
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
dbadc56a
DWT
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 $as_echo_n "(cached) " >&6
1788else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_cpp LINENO
1809# ----------------------
1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_cpp ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
9c60689e 1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9c60689e
DWT
1829 test $ac_status = 0; } >/dev/null && {
1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1831 test ! -s conftest.err
9c60689e 1832 }; then :
dbadc56a
DWT
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
9c60689e 1838 ac_retval=1
dbadc56a
DWT
1839fi
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1841 as_fn_set_status $ac_retval
dbadc56a 1842
9c60689e 1843} # ac_fn_c_try_cpp
35fa52c0
DWT
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($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_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
9c60689e 1883 as_fn_set_status $ac_retval
35fa52c0
DWT
1884
1885} # ac_fn_c_try_run
6b66678a 1886
9c60689e
DWT
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
6b66678a
DWT
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
6b66678a 1897else
9c60689e
DWT
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902#define $2 innocuous_$2
6b66678a 1903
9c60689e
DWT
1904/* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940 eval "$3=yes"
1941else
1942 eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
6b66678a 1946fi
9c60689e
DWT
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
6b66678a 1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6b66678a 1951
9c60689e 1952} # ac_fn_c_check_func
6b66678a 1953
9c60689e
DWT
1954# ac_fn_cxx_try_compile LINENO
1955# ----------------------------
1956# Try to compile conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_cxx_try_compile ()
6b66678a
DWT
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1960 rm -f conftest.$ac_objext
1961 if { { ac_try="$ac_compile"
1962case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_compile") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest.$ac_objext; then :
1980 ac_retval=0
1981else
1982 $as_echo "$as_me: failed program was:" >&5
1983sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=1
1986fi
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 as_fn_set_status $ac_retval
1989
1990} # ac_fn_cxx_try_compile
1991
1992# ac_fn_cxx_try_cpp LINENO
1993# ------------------------
1994# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1995ac_fn_cxx_try_cpp ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if { { ac_try="$ac_cpp conftest.$ac_ext"
1999case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002esac
2003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004$as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } >/dev/null && {
2014 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 }; then :
2017 ac_retval=0
2018else
2019 $as_echo "$as_me: failed program was:" >&5
2020sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023fi
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 as_fn_set_status $ac_retval
2026
2027} # ac_fn_cxx_try_cpp
2028
2029# ac_fn_cxx_try_link LINENO
2030# -------------------------
2031# Try to link conftest.$ac_ext, and return whether this succeeded.
2032ac_fn_cxx_try_link ()
2033{
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 rm -f conftest.$ac_objext conftest$ac_exeext
2036 if { { ac_try="$ac_link"
2037case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040esac
2041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042$as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>conftest.err
2044 ac_status=$?
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2049 fi
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && {
2052 test -z "$ac_cxx_werror_flag" ||
2053 test ! -s conftest.err
2054 } && test -s conftest$ac_exeext && {
2055 test "$cross_compiling" = yes ||
2056 $as_test_x conftest$ac_exeext
2057 }; then :
2058 ac_retval=0
2059else
2060 $as_echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=1
2064fi
2065 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2066 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2067 # interfere with the next link command; also delete a directory that is
2068 # left behind by Apple's compiler. We do this before executing the actions.
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071 as_fn_set_status $ac_retval
2072
2073} # ac_fn_cxx_try_link
2074
47aaa820
DWT
2075# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2076# ---------------------------------------------------------
2077# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2078# the include files in INCLUDES and setting the cache variable VAR
2079# accordingly.
2080ac_fn_cxx_check_header_mongrel ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085$as_echo_n "checking for $2... " >&6; }
2086if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2088fi
2089eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092else
2093 # Is the header compilable?
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2095$as_echo_n "checking $2 usability... " >&6; }
2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099#include <$2>
2100_ACEOF
2101if ac_fn_cxx_try_compile "$LINENO"; then :
2102 ac_header_compiler=yes
2103else
2104 ac_header_compiler=no
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2108$as_echo "$ac_header_compiler" >&6; }
2109
2110# Is the header present?
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2112$as_echo_n "checking $2 presence... " >&6; }
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115#include <$2>
2116_ACEOF
2117if ac_fn_cxx_try_cpp "$LINENO"; then :
2118 ac_header_preproc=yes
2119else
2120 ac_header_preproc=no
2121fi
2122rm -f conftest.err conftest.$ac_ext
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2124$as_echo "$ac_header_preproc" >&6; }
2125
2126# So? What about this header?
2127case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2128 yes:no: )
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2130$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ;;
2134 no:yes:* )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2136$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2138$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2140$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2142$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145( cat <<\_ASBOX
2146## -------------------------------- ##
2147## Report this to saurik@saurik.com ##
2148## -------------------------------- ##
2149_ASBOX
2150 ) | sed "s/^/$as_me: WARNING: /" >&2
2151 ;;
2152esac
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154$as_echo_n "checking for $2... " >&6; }
2155if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156 $as_echo_n "(cached) " >&6
2157else
2158 eval "$3=\$ac_header_compiler"
2159fi
2160eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
2163fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165
2166} # ac_fn_cxx_check_header_mongrel
2167
9c60689e
DWT
2168# ac_fn_objcxx_try_compile LINENO
2169# -------------------------------
2170# Try to compile conftest.$ac_ext, and return whether this succeeded.
2171ac_fn_objcxx_try_compile ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 rm -f conftest.$ac_objext
2175 if { { ac_try="$ac_compile"
2176case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179esac
2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181$as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_compile") 2>conftest.err
2183 ac_status=$?
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2188 fi
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } && {
2191 test -z "$ac_objcxx_werror_flag" ||
2192 test ! -s conftest.err
2193 } && test -s conftest.$ac_objext; then :
2194 ac_retval=0
2195else
2196 $as_echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 ac_retval=1
2200fi
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 as_fn_set_status $ac_retval
2203
2204} # ac_fn_objcxx_try_compile
c7aa54aa
DWT
2205cat >config.log <<_ACEOF
2206This file contains any messages produced by compilers while
2207running configure, to aid debugging if configure makes a mistake.
2208
2209It was created by Cycript $as_me 0.9, which was
9c60689e 2210generated by GNU Autoconf 2.65. Invocation command line was
c7aa54aa
DWT
2211
2212 $ $0 $@
2213
2214_ACEOF
2215exec 5>>config.log
2216{
2217cat <<_ASUNAME
2218## --------- ##
2219## Platform. ##
2220## --------- ##
2221
2222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226uname -v = `(uname -v) 2>/dev/null || echo unknown`
2227
2228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2230
2231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2238
2239_ASUNAME
2240
2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 $as_echo "PATH: $as_dir"
2247 done
2248IFS=$as_save_IFS
2249
2250} >&5
2251
2252cat >&5 <<_ACEOF
2253
2254
2255## ----------- ##
2256## Core tests. ##
2257## ----------- ##
2258
2259_ACEOF
2260
2261
2262# Keep a trace of the command line.
2263# Strip out --no-create and --no-recursion so they do not pile up.
2264# Strip out --silent because we don't want to record it for future runs.
2265# Also quote any args containing shell meta-characters.
2266# Make two passes to allow for proper duplicate-argument suppression.
2267ac_configure_args=
2268ac_configure_args0=
2269ac_configure_args1=
2270ac_must_keep_next=false
2271for ac_pass in 1 2
2272do
2273 for ac_arg
2274 do
2275 case $ac_arg in
2276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278 | -silent | --silent | --silen | --sile | --sil)
2279 continue ;;
2280 *\'*)
2281 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 esac
2283 case $ac_pass in
2284 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2285 2)
2286 as_fn_append ac_configure_args1 " '$ac_arg'"
2287 if test $ac_must_keep_next = true; then
2288 ac_must_keep_next=false # Got value, back to normal.
2289 else
2290 case $ac_arg in
2291 *=* | --config-cache | -C | -disable-* | --disable-* \
2292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294 | -with-* | --with-* | -without-* | --without-* | --x)
2295 case "$ac_configure_args0 " in
2296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297 esac
2298 ;;
2299 -* ) ac_must_keep_next=true ;;
2300 esac
2301 fi
2302 as_fn_append ac_configure_args " '$ac_arg'"
2303 ;;
2304 esac
2305 done
2306done
2307{ ac_configure_args0=; unset ac_configure_args0;}
2308{ ac_configure_args1=; unset ac_configure_args1;}
2309
2310# When interrupted or exit'd, cleanup temporary files, and complete
2311# config.log. We remove comments because anyway the quotes in there
2312# would cause problems or look ugly.
2313# WARNING: Use '\'' to represent an apostrophe within the trap.
2314# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315trap 'exit_status=$?
2316 # Save into config.log some information that might help in debugging.
2317 {
2318 echo
2319
2320 cat <<\_ASBOX
2321## ---------------- ##
2322## Cache variables. ##
2323## ---------------- ##
2324_ASBOX
2325 echo
2326 # The following way of writing the cache mishandles newlines in values,
2327(
2328 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2329 eval ac_val=\$$ac_var
2330 case $ac_val in #(
2331 *${as_nl}*)
2332 case $ac_var in #(
2333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2334$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2335 esac
2336 case $ac_var in #(
2337 _ | IFS | as_nl) ;; #(
2338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2339 *) { eval $ac_var=; unset $ac_var;} ;;
2340 esac ;;
2341 esac
2342 done
2343 (set) 2>&1 |
2344 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2345 *${as_nl}ac_space=\ *)
2346 sed -n \
2347 "s/'\''/'\''\\\\'\'''\''/g;
2348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2349 ;; #(
2350 *)
2351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352 ;;
2353 esac |
2354 sort
2355)
2356 echo
2357
2358 cat <<\_ASBOX
2359## ----------------- ##
2360## Output variables. ##
2361## ----------------- ##
2362_ASBOX
2363 echo
2364 for ac_var in $ac_subst_vars
2365 do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 esac
2370 $as_echo "$ac_var='\''$ac_val'\''"
2371 done | sort
2372 echo
2373
2374 if test -n "$ac_subst_files"; then
2375 cat <<\_ASBOX
2376## ------------------- ##
2377## File substitutions. ##
2378## ------------------- ##
2379_ASBOX
2380 echo
2381 for ac_var in $ac_subst_files
2382 do
2383 eval ac_val=\$$ac_var
2384 case $ac_val in
2385 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2386 esac
2387 $as_echo "$ac_var='\''$ac_val'\''"
2388 done | sort
2389 echo
2390 fi
2391
2392 if test -s confdefs.h; then
2393 cat <<\_ASBOX
2394## ----------- ##
2395## confdefs.h. ##
2396## ----------- ##
2397_ASBOX
2398 echo
2399 cat confdefs.h
2400 echo
2401 fi
2402 test "$ac_signal" != 0 &&
2403 $as_echo "$as_me: caught signal $ac_signal"
2404 $as_echo "$as_me: exit $exit_status"
2405 } >&5
2406 rm -f core *.core core.conftest.* &&
2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408 exit $exit_status
2409' 0
2410for ac_signal in 1 2 13 15; do
2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2412done
2413ac_signal=0
2414
2415# confdefs.h avoids OS command line length limits that DEFS can exceed.
2416rm -f -r conftest* confdefs.h
2417
2418$as_echo "/* confdefs.h */" > confdefs.h
2419
2420# Predefined preprocessor variables.
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_NAME "$PACKAGE_NAME"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_VERSION "$PACKAGE_VERSION"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_STRING "$PACKAGE_STRING"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_URL "$PACKAGE_URL"
2444_ACEOF
2445
2446
2447# Let the site file select an alternate cache file if it wants to.
2448# Prefer an explicitly selected file to automatically selected ones.
2449ac_site_file1=NONE
2450ac_site_file2=NONE
2451if test -n "$CONFIG_SITE"; then
2452 ac_site_file1=$CONFIG_SITE
2453elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2456else
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2459fi
2460for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2461do
2462 test "x$ac_site_file" = xNONE && continue
9c60689e 2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2467 . "$ac_site_file"
2468 fi
2469done
2470
2471if test -r "$cache_file"; then
9c60689e
DWT
2472 # Some versions of bash will fail to source /dev/null (special files
2473 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2474 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2476$as_echo "$as_me: loading cache $cache_file" >&6;}
2477 case $cache_file in
2478 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2479 *) . "./$cache_file";;
2480 esac
2481 fi
2482else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2484$as_echo "$as_me: creating cache $cache_file" >&6;}
2485 >$cache_file
2486fi
2487
2488# Check that the precious variables saved in the cache have kept the same
2489# value.
2490ac_cache_corrupted=false
2491for ac_var in $ac_precious_vars; do
2492 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2493 eval ac_new_set=\$ac_env_${ac_var}_set
2494 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2495 eval ac_new_val=\$ac_env_${ac_var}_value
2496 case $ac_old_set,$ac_new_set in
2497 set,)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2499$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,set)
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2503$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2505 ,);;
2506 *)
2507 if test "x$ac_old_val" != "x$ac_new_val"; then
2508 # differences in whitespace do not lead to failure.
2509 ac_old_val_w=`echo x $ac_old_val`
2510 ac_new_val_w=`echo x $ac_new_val`
2511 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2513$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2514 ac_cache_corrupted=:
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2517$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2518 eval $ac_var=\$ac_old_val
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2521$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2523$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2524 fi;;
2525 esac
2526 # Pass precious variables to config.status.
2527 if test "$ac_new_set" = set; then
2528 case $ac_new_val in
2529 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2530 *) ac_arg=$ac_var=$ac_new_val ;;
2531 esac
2532 case " $ac_configure_args " in
2533 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2534 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535 esac
2536 fi
2537done
2538if $ac_cache_corrupted; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2542$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2543 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2544fi
2545## -------------------- ##
2546## Main body of script. ##
2547## -------------------- ##
2548
2549ac_ext=c
2550ac_cpp='$CPP $CPPFLAGS'
2551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554
2555
35fa52c0 2556
6b66678a
DWT
2557ac_aux_dir=
2558for ac_dir in . "$srcdir"/.; do
2559 for ac_t in install-sh install.sh shtool; do
2560 if test -f "$ac_dir/$ac_t"; then
2561 ac_aux_dir=$ac_dir
2562 ac_install_sh="$ac_aux_dir/$ac_t -c"
2563 break 2
2564 fi
2565 done
2566done
2567if test -z "$ac_aux_dir"; then
2568 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2569fi
2570
2571# These three variables are undocumented and unsupported,
2572# and are intended to be withdrawn in a future Autoconf release.
2573# They can cause serious problems if a builder's source tree is in a directory
2574# whose full name contains unusual characters.
2575ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2576ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2577ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2578
2579
9c60689e
DWT
2580case `pwd` in
2581 *\ * | *\ *)
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2583$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2584esac
2585
2586
2587
2588macro_version='2.2.6b'
2589macro_revision='1.3017'
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603ltmain="$ac_aux_dir/ltmain.sh"
2604
2605# Make sure we can run config.sub.
2606$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2607 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2610$as_echo_n "checking build system type... " >&6; }
2611if test "${ac_cv_build+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 ac_build_alias=$build_alias
2615test "x$ac_build_alias" = x &&
2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2617test "x$ac_build_alias" = x &&
2618 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2619ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2620 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2621
2622fi
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2624$as_echo "$ac_cv_build" >&6; }
2625case $ac_cv_build in
2626*-*-*) ;;
2627*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2628esac
2629build=$ac_cv_build
2630ac_save_IFS=$IFS; IFS='-'
2631set x $ac_cv_build
2632shift
2633build_cpu=$1
2634build_vendor=$2
2635shift; shift
2636# Remember, the first character of IFS is used to create $*,
2637# except with old shells:
2638build_os=$*
2639IFS=$ac_save_IFS
2640case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2641
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2644$as_echo_n "checking host system type... " >&6; }
2645if test "${ac_cv_host+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 if test "x$host_alias" = x; then
2649 ac_cv_host=$ac_cv_build
2650else
2651 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2652 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2653fi
2654
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2657$as_echo "$ac_cv_host" >&6; }
2658case $ac_cv_host in
2659*-*-*) ;;
2660*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2661esac
2662host=$ac_cv_host
2663ac_save_IFS=$IFS; IFS='-'
2664set x $ac_cv_host
2665shift
2666host_cpu=$1
2667host_vendor=$2
2668shift; shift
2669# Remember, the first character of IFS is used to create $*,
2670# except with old shells:
2671host_os=$*
2672IFS=$ac_save_IFS
2673case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2674
2675
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 2686if test "${ac_cv_prog_CC+set}" = set; then :
dbadc56a
DWT
2687 $as_echo_n "(cached) " >&6
2688else
9c60689e
DWT
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 2699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704 done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
9c60689e
DWT
2709CC=$ac_cv_prog_CC
2710if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712$as_echo "$CC" >&6; }
35fa52c0
DWT
2713else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719fi
2720if test -z "$ac_cv_prog_CC"; then
2721 ac_ct_CC=$CC
2722 # Extract the first word of "gcc", so it can be a program name with args.
2723set dummy gcc; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728else
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC="gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743done
2744 done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750if test -n "$ac_ct_CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752$as_echo "$ac_ct_CC" >&6; }
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758 if test "x$ac_ct_CC" = x; then
2759 CC=""
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762yes:)
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765ac_tool_warned=yes ;;
2766esac
2767 CC=$ac_ct_CC
2768 fi
2769else
2770 CC="$ac_cv_prog_CC"
2771fi
2772
2773if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776set dummy ${ac_tool_prefix}cc; ac_word=$2
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if test "${ac_cv_prog_CC+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797 done
2798IFS=$as_save_IFS
2799
2800fi
2801fi
2802CC=$ac_cv_prog_CC
2803if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805$as_echo "$CC" >&6; }
2806else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
2809fi
2810
2811
2812 fi
2813fi
2814if test -z "$CC"; then
2815 # Extract the first word of "cc", so it can be a program name with args.
2816set dummy cc; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if test "${ac_cv_prog_CC+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825 ac_prog_rejected=no
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834 ac_prog_rejected=yes
2835 continue
2836 fi
2837 ac_cv_prog_CC="cc"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842 done
2843IFS=$as_save_IFS
2844
2845if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy $ac_cv_prog_CC
2848 shift
2849 if test $# != 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2853 shift
2854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2855 fi
2856fi
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862$as_echo "$CC" >&6; }
2863else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869fi
2870if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in cl.exe
2873 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896 done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
2905else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911 test -n "$CC" && break
2912 done
2913fi
2914if test -z "$CC"; then
2915 ac_ct_CC=$CC
2916 for ac_prog in cl.exe
2917do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939done
2940 done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948$as_echo "$ac_ct_CC" >&6; }
2949else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955 test -n "$ac_ct_CC" && break
2956done
2957
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962yes:)
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965ac_tool_warned=yes ;;
2966esac
2967 CC=$ac_ct_CC
2968 fi
2969fi
2970
2971fi
2972
2973
2974test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error "no acceptable C compiler found in \$PATH
2977See \`config.log' for more details." "$LINENO" 5; }
2978
2979# Provide some information about the compiler.
2980$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2981set X $ac_compile
2982ac_compiler=$2
2983for ac_option in --version -v -V -qversion; do
2984 { { ac_try="$ac_compiler $ac_option >&5"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2992 ac_status=$?
2993 if test -s conftest.err; then
2994 sed '10a\
2995... rest of stderr output deleted ...
2996 10q' conftest.err >conftest.er1
2997 cat conftest.er1 >&5
35fa52c0 2998 fi
9c60689e 2999 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }
3002done
3003
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h. */
9c60689e 3006
35fa52c0
DWT
3007int
3008main ()
3009{
35fa52c0
DWT
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015ac_clean_files_save=$ac_clean_files
9c60689e 3016ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3017# Try to create an executable without -o first, disregard a.out.
3018# It will help us diagnose broken compilers, and finding out an intuition
3019# of exeext.
9c60689e
DWT
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021$as_echo_n "checking whether the C compiler works... " >&6; }
35fa52c0
DWT
3022ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3023
3024# The possible output files:
3025ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3026
3027ac_rmfiles=
3028for ac_file in $ac_files
3029do
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3033 esac
3034done
3035rm -f $ac_rmfiles
3036
3037if { { ac_try="$ac_link_default"
3038case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link_default") 2>&5
3045 ac_status=$?
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; then :
3048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050# in a Makefile. We should not override ac_cv_exeext if it was cached,
3051# so that the user can short-circuit this test for compilers unknown to
3052# Autoconf.
3053for ac_file in $ac_files ''
3054do
3055 test -f "$ac_file" || continue
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3058 ;;
3059 [ab].out )
3060 # We found the default executable, but exeext='' is most
3061 # certainly right.
3062 break;;
3063 *.* )
3064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3065 then :; else
3066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 fi
3068 # We set ac_cv_exeext here because the later test for it is not
3069 # safe: cross compilers may not add the suffix if given an `-o'
3070 # argument, so we may need to know it at that point already.
3071 # Even if this section looks crufty: it has the advantage of
3072 # actually working.
3073 break;;
3074 * )
3075 break;;
3076 esac
3077done
3078test "$ac_cv_exeext" = no && ac_cv_exeext=
3079
3080else
3081 ac_file=''
3082fi
35fa52c0 3083if test -z "$ac_file"; then :
9c60689e
DWT
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091{ as_fn_set_status 77
3092as_fn_error "C compiler cannot create executables
3093See \`config.log' for more details." "$LINENO" 5; }; }
9c60689e
DWT
3094else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096$as_echo "yes" >&6; }
35fa52c0 3097fi
9c60689e
DWT
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3099$as_echo_n "checking for C compiler default output file name... " >&6; }
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3102ac_exeext=$ac_cv_exeext
3103
9c60689e 3104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3105ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3107$as_echo_n "checking for suffix of executables... " >&6; }
3108if { { ac_try="$ac_link"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3121# work properly (i.e., refer to `conftest.exe'), while it won't with
3122# `rm'.
3123for ac_file in conftest.exe conftest conftest.*; do
3124 test -f "$ac_file" || continue
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 break;;
3129 * ) break;;
3130 esac
3131done
3132else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135as_fn_error "cannot compute suffix of executables: cannot compile and link
3136See \`config.log' for more details." "$LINENO" 5; }
3137fi
9c60689e 3138rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3140$as_echo "$ac_cv_exeext" >&6; }
3141
3142rm -f conftest.$ac_ext
3143EXEEXT=$ac_cv_exeext
3144ac_exeext=$EXEEXT
9c60689e
DWT
3145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h. */
3147#include <stdio.h>
3148int
3149main ()
3150{
3151FILE *f = fopen ("conftest.out", "w");
3152 return ferror (f) || fclose (f) != 0;
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
3158ac_clean_files="$ac_clean_files conftest.out"
3159# Check that the compiler produces executables we can run. If not, either
3160# the compiler is broken, or we cross compile.
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3162$as_echo_n "checking whether we are cross compiling... " >&6; }
3163if test "$cross_compiling" != yes; then
3164 { { 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; }
3175 if { ac_try='./conftest$ac_cv_exeext'
3176 { { case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_try") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; }; then
3186 cross_compiling=no
3187 else
3188 if test "$cross_compiling" = maybe; then
3189 cross_compiling=yes
3190 else
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193as_fn_error "cannot run C compiled programs.
3194If you meant to cross compile, use \`--host'.
3195See \`config.log' for more details." "$LINENO" 5; }
3196 fi
3197 fi
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200$as_echo "$cross_compiling" >&6; }
3201
3202rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3203ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3205$as_echo_n "checking for suffix of object files... " >&6; }
3206if test "${ac_cv_objext+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h. */
3211
3212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220rm -f conftest.o conftest.obj
3221if { { ac_try="$ac_compile"
3222case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compile") 2>&5
3229 ac_status=$?
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; then :
3232 for ac_file in conftest.o conftest.obj conftest.*; do
3233 test -f "$ac_file" || continue;
3234 case $ac_file in
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3237 break;;
3238 esac
3239done
3240else
3241 $as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error "cannot compute suffix of object files: cannot compile
3247See \`config.log' for more details." "$LINENO" 5; }
3248fi
3249rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3252$as_echo "$ac_cv_objext" >&6; }
3253OBJEXT=$ac_cv_objext
3254ac_objext=$OBJEXT
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3256$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3257if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259else
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h. */
3262
3263int
3264main ()
3265{
3266#ifndef __GNUC__
3267 choke me
3268#endif
3269
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_compiler_gnu=yes
3276else
3277 ac_compiler_gnu=no
3278fi
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282fi
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285if test $ac_compiler_gnu = yes; then
3286 GCC=yes
3287else
3288 GCC=
3289fi
3290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3293$as_echo_n "checking whether $CC accepts -g... " >&6; }
3294if test "${ac_cv_prog_cc_g+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
3296else
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3299 ac_cv_prog_cc_g=no
3300 CFLAGS="-g"
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312if ac_fn_c_try_compile "$LINENO"; then :
3313 ac_cv_prog_cc_g=yes
3314else
3315 CFLAGS=""
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h. */
3318
3319int
3320main ()
3321{
3322
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328
3329else
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3331 CFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
3338
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_prog_cc_g=yes
3345fi
3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347fi
3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3354$as_echo "$ac_cv_prog_cc_g" >&6; }
3355if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3359 CFLAGS="-g -O2"
3360 else
3361 CFLAGS="-g"
3362 fi
3363else
3364 if test "$GCC" = yes; then
3365 CFLAGS="-O2"
3366 else
3367 CFLAGS=
3368 fi
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3371$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3372if test "${ac_cv_prog_cc_c89+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 ac_cv_prog_cc_c89=no
3376ac_save_CC=$CC
3377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h. */
3379#include <stdarg.h>
3380#include <stdio.h>
3381#include <sys/types.h>
3382#include <sys/stat.h>
3383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384struct buf { int x; };
3385FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386static char *e (p, i)
3387 char **p;
3388 int i;
3389{
3390 return p[i];
3391}
3392static char *f (char * (*g) (char **, int), char **p, ...)
3393{
3394 char *s;
3395 va_list v;
3396 va_start (v,p);
3397 s = g (p, va_arg (v,int));
3398 va_end (v);
3399 return s;
3400}
3401
3402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std. */
3409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410
3411/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412 inside strings and character constants. */
3413#define FOO(x) 'x'
3414int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415
3416int test (int i, double x);
3417struct s1 {int (*f) (int a);};
3418struct s2 {int (*f) (double a);};
3419int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3420int argc;
3421char **argv;
3422int
3423main ()
3424{
3425return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426 ;
3427 return 0;
3428}
3429_ACEOF
3430for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432do
3433 CC="$ac_save_CC $ac_arg"
3434 if ac_fn_c_try_compile "$LINENO"; then :
3435 ac_cv_prog_cc_c89=$ac_arg
3436fi
3437rm -f core conftest.err conftest.$ac_objext
3438 test "x$ac_cv_prog_cc_c89" != "xno" && break
3439done
3440rm -f conftest.$ac_ext
3441CC=$ac_save_CC
3442
3443fi
3444# AC_CACHE_VAL
3445case "x$ac_cv_prog_cc_c89" in
3446 x)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3448$as_echo "none needed" >&6; } ;;
3449 xno)
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3451$as_echo "unsupported" >&6; } ;;
3452 *)
3453 CC="$CC $ac_cv_prog_cc_c89"
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3455$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3456esac
3457if test "x$ac_cv_prog_cc_c89" != xno; then :
3458
3459fi
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
9c60689e
DWT
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3468$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3469if test "${ac_cv_path_SED+set}" = set; then :
35fa52c0
DWT
3470 $as_echo_n "(cached) " >&6
3471else
9c60689e
DWT
3472 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3473 for ac_i in 1 2 3 4 5 6 7; do
3474 ac_script="$ac_script$as_nl$ac_script"
3475 done
3476 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3477 { ac_script=; unset ac_script;}
3478 if test -z "$SED"; then
3479 ac_path_SED_found=false
3480 # Loop through the user's path and test for each of PROGNAME-LIST
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35fa52c0
DWT
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
9c60689e 3486 for ac_prog in sed gsed; do
35fa52c0 3487 for ac_exec_ext in '' $ac_executable_extensions; do
9c60689e
DWT
3488 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3489 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3490# Check for GNU ac_path_SED and select it if it is found.
3491 # Check for GNU $ac_path_SED
3492case `"$ac_path_SED" --version 2>&1` in
3493*GNU*)
3494 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3495*)
3496 ac_count=0
3497 $as_echo_n 0123456789 >"conftest.in"
3498 while :
3499 do
3500 cat "conftest.in" "conftest.in" >"conftest.tmp"
3501 mv "conftest.tmp" "conftest.in"
3502 cp "conftest.in" "conftest.nl"
3503 $as_echo '' >> "conftest.nl"
3504 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3506 as_fn_arith $ac_count + 1 && ac_count=$as_val
3507 if test $ac_count -gt ${ac_path_SED_max-0}; then
3508 # Best one so far, save it but keep looking for a better one
3509 ac_cv_path_SED="$ac_path_SED"
3510 ac_path_SED_max=$ac_count
3511 fi
3512 # 10*(2^10) chars as input seems more than enough
3513 test $ac_count -gt 10 && break
35fa52c0 3514 done
9c60689e
DWT
3515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3516esac
35fa52c0 3517
9c60689e
DWT
3518 $ac_path_SED_found && break 3
3519 done
3520 done
3521 done
3522IFS=$as_save_IFS
3523 if test -z "$ac_cv_path_SED"; then
3524 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3525 fi
35fa52c0 3526else
9c60689e 3527 ac_cv_path_SED=$SED
35fa52c0
DWT
3528fi
3529
9c60689e
DWT
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3532$as_echo "$ac_cv_path_SED" >&6; }
3533 SED="$ac_cv_path_SED"
3534 rm -f conftest.sed
35fa52c0 3535
9c60689e
DWT
3536test -z "$SED" && SED=sed
3537Xsed="$SED -e 1s/^X//"
35fa52c0 3538
35fa52c0 3539
35fa52c0 3540
35fa52c0 3541
35fa52c0 3542
35fa52c0
DWT
3543
3544
35fa52c0 3545
35fa52c0 3546
35fa52c0 3547
35fa52c0 3548
9c60689e
DWT
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3550$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3551if test "${ac_cv_path_GREP+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 if test -z "$GREP"; then
3555 ac_path_GREP_found=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_prog in grep ggrep; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3566# Check for GNU ac_path_GREP and select it if it is found.
3567 # Check for GNU $ac_path_GREP
3568case `"$ac_path_GREP" --version 2>&1` in
3569*GNU*)
3570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3571*)
3572 ac_count=0
3573 $as_echo_n 0123456789 >"conftest.in"
3574 while :
3575 do
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 $as_echo 'GREP' >> "conftest.nl"
3580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582 as_fn_arith $ac_count + 1 && ac_count=$as_val
3583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_GREP="$ac_path_GREP"
3586 ac_path_GREP_max=$ac_count
3587 fi
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3590 done
3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3592esac
6b66678a 3593
9c60689e
DWT
3594 $ac_path_GREP_found && break 3
3595 done
3596 done
3597 done
3598IFS=$as_save_IFS
3599 if test -z "$ac_cv_path_GREP"; then
3600 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3601 fi
3602else
3603 ac_cv_path_GREP=$GREP
3604fi
6b66678a 3605
9c60689e
DWT
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3608$as_echo "$ac_cv_path_GREP" >&6; }
3609 GREP="$ac_cv_path_GREP"
6b66678a
DWT
3610
3611
9c60689e
DWT
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3613$as_echo_n "checking for egrep... " >&6; }
3614if test "${ac_cv_path_EGREP+set}" = set; then :
6b66678a
DWT
3615 $as_echo_n "(cached) " >&6
3616else
9c60689e
DWT
3617 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3618 then ac_cv_path_EGREP="$GREP -E"
3619 else
3620 if test -z "$EGREP"; then
3621 ac_path_EGREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in egrep; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3632# Check for GNU ac_path_EGREP and select it if it is found.
3633 # Check for GNU $ac_path_EGREP
3634case `"$ac_path_EGREP" --version 2>&1` in
3635*GNU*)
3636 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3637*)
3638 ac_count=0
3639 $as_echo_n 0123456789 >"conftest.in"
3640 while :
3641 do
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 $as_echo 'EGREP' >> "conftest.nl"
3646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3648 as_fn_arith $ac_count + 1 && ac_count=$as_val
3649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_EGREP="$ac_path_EGREP"
3652 ac_path_EGREP_max=$ac_count
3653 fi
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3656 done
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658esac
3659
3660 $ac_path_EGREP_found && break 3
3661 done
3662 done
3663 done
3664IFS=$as_save_IFS
3665 if test -z "$ac_cv_path_EGREP"; then
3666 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 fi
3668else
3669 ac_cv_path_EGREP=$EGREP
3670fi
6b66678a 3671
9c60689e
DWT
3672 fi
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3675$as_echo "$ac_cv_path_EGREP" >&6; }
3676 EGREP="$ac_cv_path_EGREP"
6b66678a 3677
6b66678a 3678
9c60689e
DWT
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3680$as_echo_n "checking for fgrep... " >&6; }
3681if test "${ac_cv_path_FGREP+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
6b66678a 3683else
9c60689e
DWT
3684 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3685 then ac_cv_path_FGREP="$GREP -F"
3686 else
3687 if test -z "$FGREP"; then
3688 ac_path_FGREP_found=false
3689 # Loop through the user's path and test for each of PROGNAME-LIST
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_prog in fgrep; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3698 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3699# Check for GNU ac_path_FGREP and select it if it is found.
3700 # Check for GNU $ac_path_FGREP
3701case `"$ac_path_FGREP" --version 2>&1` in
3702*GNU*)
3703 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3704*)
3705 ac_count=0
3706 $as_echo_n 0123456789 >"conftest.in"
3707 while :
3708 do
3709 cat "conftest.in" "conftest.in" >"conftest.tmp"
3710 mv "conftest.tmp" "conftest.in"
3711 cp "conftest.in" "conftest.nl"
3712 $as_echo 'FGREP' >> "conftest.nl"
3713 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715 as_fn_arith $ac_count + 1 && ac_count=$as_val
3716 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3717 # Best one so far, save it but keep looking for a better one
3718 ac_cv_path_FGREP="$ac_path_FGREP"
3719 ac_path_FGREP_max=$ac_count
3720 fi
3721 # 10*(2^10) chars as input seems more than enough
3722 test $ac_count -gt 10 && break
3723 done
3724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725esac
6b66678a 3726
9c60689e
DWT
3727 $ac_path_FGREP_found && break 3
3728 done
3729 done
3730 done
3731IFS=$as_save_IFS
3732 if test -z "$ac_cv_path_FGREP"; then
3733 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3734 fi
3735else
3736 ac_cv_path_FGREP=$FGREP
6b66678a
DWT
3737fi
3738
9c60689e 3739 fi
6b66678a 3740fi
9c60689e
DWT
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3742$as_echo "$ac_cv_path_FGREP" >&6; }
3743 FGREP="$ac_cv_path_FGREP"
6b66678a 3744
35fa52c0 3745
9c60689e 3746test -z "$GREP" && GREP=grep
35fa52c0 3747
309b0535 3748
35fa52c0 3749
6b66678a 3750
6b66678a
DWT
3751
3752
6b66678a 3753
6b66678a 3754
35fa52c0 3755
35fa52c0 3756
309b0535 3757
309b0535 3758
309b0535 3759
309b0535 3760
309b0535 3761
309b0535 3762
309b0535 3763
309b0535 3764
309b0535 3765
9c60689e
DWT
3766# Check whether --with-gnu-ld was given.
3767if test "${with_gnu_ld+set}" = set; then :
3768 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
309b0535 3769else
9c60689e
DWT
3770 with_gnu_ld=no
3771fi
309b0535 3772
9c60689e
DWT
3773ac_prog=ld
3774if test "$GCC" = yes; then
3775 # Check if gcc -print-prog-name=ld gives a path.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3777$as_echo_n "checking for ld used by $CC... " >&6; }
3778 case $host in
3779 *-*-mingw*)
3780 # gcc leaves a trailing carriage return which upsets mingw
3781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3782 *)
3783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3784 esac
3785 case $ac_prog in
3786 # Accept absolute paths.
3787 [\\/]* | ?:[\\/]*)
3788 re_direlt='/[^/][^/]*/\.\./'
3789 # Canonicalize the pathname of ld
3790 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3791 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3792 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
309b0535 3793 done
9c60689e
DWT
3794 test -z "$LD" && LD="$ac_prog"
3795 ;;
3796 "")
3797 # If it fails, then pretend we aren't using GCC.
3798 ac_prog=ld
3799 ;;
3800 *)
3801 # If it is relative, then search for the first ld in PATH.
3802 with_gnu_ld=unknown
3803 ;;
3804 esac
3805elif test "$with_gnu_ld" = yes; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3807$as_echo_n "checking for GNU ld... " >&6; }
3808else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3810$as_echo_n "checking for non-GNU ld... " >&6; }
3811fi
3812if test "${lt_cv_path_LD+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 if test -z "$LD"; then
3816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3817 for ac_dir in $PATH; do
3818 IFS="$lt_save_ifs"
3819 test -z "$ac_dir" && ac_dir=.
3820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3821 lt_cv_path_LD="$ac_dir/$ac_prog"
3822 # Check to see if the program is GNU ld. I'd rather use --version,
3823 # but apparently some variants of GNU ld only accept -v.
3824 # Break only if it was the GNU/non-GNU ld that we prefer.
3825 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3826 *GNU* | *'with BFD'*)
3827 test "$with_gnu_ld" != no && break
3828 ;;
3829 *)
3830 test "$with_gnu_ld" != yes && break
3831 ;;
309b0535 3832 esac
309b0535 3833 fi
9c60689e
DWT
3834 done
3835 IFS="$lt_save_ifs"
3836else
3837 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3838fi
3839fi
309b0535 3840
9c60689e
DWT
3841LD="$lt_cv_path_LD"
3842if test -n "$LD"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3844$as_echo "$LD" >&6; }
3845else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3851$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3852if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854else
3855 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3856case `$LD -v 2>&1 </dev/null` in
3857*GNU* | *'with BFD'*)
3858 lt_cv_prog_gnu_ld=yes
3859 ;;
3860*)
3861 lt_cv_prog_gnu_ld=no
3862 ;;
3863esac
309b0535 3864fi
9c60689e
DWT
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3866$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3867with_gnu_ld=$lt_cv_prog_gnu_ld
309b0535
DWT
3868
3869
309b0535 3870
309b0535
DWT
3871
3872
309b0535 3873
309b0535 3874
9c60689e
DWT
3875
3876
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3878$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3879if test "${lt_cv_path_NM+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3881else
3882 if test -n "$NM"; then
3883 # Let the user override the test.
3884 lt_cv_path_NM="$NM"
3885else
3886 lt_nm_to_check="${ac_tool_prefix}nm"
3887 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3888 lt_nm_to_check="$lt_nm_to_check nm"
3889 fi
3890 for lt_tmp_nm in $lt_nm_to_check; do
3891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3892 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3893 IFS="$lt_save_ifs"
3894 test -z "$ac_dir" && ac_dir=.
3895 tmp_nm="$ac_dir/$lt_tmp_nm"
3896 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3897 # Check to see if the nm accepts a BSD-compat flag.
3898 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3899 # nm: unknown option "B" ignored
3900 # Tru64's nm complains that /dev/null is an invalid object file
3901 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3902 */dev/null* | *'Invalid file or object type'*)
3903 lt_cv_path_NM="$tmp_nm -B"
3904 break
3905 ;;
3906 *)
3907 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3908 */dev/null*)
3909 lt_cv_path_NM="$tmp_nm -p"
3910 break
3911 ;;
3912 *)
3913 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3914 continue # so that we can try to find one that supports BSD flags
3915 ;;
3916 esac
3917 ;;
3918 esac
309b0535
DWT
3919 fi
3920 done
9c60689e 3921 IFS="$lt_save_ifs"
309b0535 3922 done
9c60689e
DWT
3923 : ${lt_cv_path_NM=no}
3924fi
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3927$as_echo "$lt_cv_path_NM" >&6; }
3928if test "$lt_cv_path_NM" != "no"; then
3929 NM="$lt_cv_path_NM"
3930else
3931 # Didn't find any BSD compatible name lister, look for dumpbin.
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3934 do
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3939if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3940 $as_echo_n "(cached) " >&6
3941else
9c60689e
DWT
3942 if test -n "$DUMPBIN"; then
3943 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3952 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35fa52c0
DWT
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956done
3957 done
3958IFS=$as_save_IFS
3959
3960fi
3961fi
9c60689e
DWT
3962DUMPBIN=$ac_cv_prog_DUMPBIN
3963if test -n "$DUMPBIN"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3965$as_echo "$DUMPBIN" >&6; }
35fa52c0
DWT
3966else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
3969fi
3970
3971
9c60689e 3972 test -n "$DUMPBIN" && break
35fa52c0
DWT
3973 done
3974fi
9c60689e
DWT
3975if test -z "$DUMPBIN"; then
3976 ac_ct_DUMPBIN=$DUMPBIN
3977 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
35fa52c0
DWT
3978do
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980set dummy $ac_prog; ac_word=$2
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982$as_echo_n "checking for $ac_word... " >&6; }
9c60689e 3983if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
35fa52c0
DWT
3984 $as_echo_n "(cached) " >&6
3985else
9c60689e
DWT
3986 if test -n "$ac_ct_DUMPBIN"; then
3987 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35fa52c0
DWT
3988else
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9c60689e 3996 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35fa52c0
DWT
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000done
4001 done
4002IFS=$as_save_IFS
4003
4004fi
4005fi
9c60689e
DWT
4006ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4007if test -n "$ac_ct_DUMPBIN"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4009$as_echo "$ac_ct_DUMPBIN" >&6; }
35fa52c0
DWT
4010else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
4013fi
4014
4015
9c60689e 4016 test -n "$ac_ct_DUMPBIN" && break
35fa52c0
DWT
4017done
4018
9c60689e
DWT
4019 if test "x$ac_ct_DUMPBIN" = x; then
4020 DUMPBIN=":"
35fa52c0
DWT
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023yes:)
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026ac_tool_warned=yes ;;
4027esac
9c60689e 4028 DUMPBIN=$ac_ct_DUMPBIN
35fa52c0
DWT
4029 fi
4030fi
4031
9c60689e
DWT
4032
4033 if test "$DUMPBIN" != ":"; then
4034 NM="$DUMPBIN"
35fa52c0
DWT
4035 fi
4036fi
9c60689e 4037test -z "$NM" && NM=nm
35fa52c0 4038
35fa52c0 4039
35fa52c0 4040
35fa52c0 4041
9c60689e
DWT
4042
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4045$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4046if test "${lt_cv_nm_interface+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048else
4049 lt_cv_nm_interface="BSD nm"
4050 echo "int some_variable = 0;" > conftest.$ac_ext
27557508 4051 (eval echo "\"\$as_me:4051: $ac_compile\"" >&5)
9c60689e
DWT
4052 (eval "$ac_compile" 2>conftest.err)
4053 cat conftest.err >&5
27557508 4054 (eval echo "\"\$as_me:4054: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9c60689e
DWT
4055 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4056 cat conftest.err >&5
27557508 4057 (eval echo "\"\$as_me:4057: output\"" >&5)
9c60689e
DWT
4058 cat conftest.out >&5
4059 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4060 lt_cv_nm_interface="MS dumpbin"
4061 fi
4062 rm -f conftest*
35fa52c0 4063fi
9c60689e
DWT
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4065$as_echo "$lt_cv_nm_interface" >&6; }
4066
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4068$as_echo_n "checking whether ln -s works... " >&6; }
4069LN_S=$as_ln_s
4070if test "$LN_S" = "ln -s"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4072$as_echo "yes" >&6; }
35fa52c0 4073else
9c60689e
DWT
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4075$as_echo "no, using $LN_S" >&6; }
35fa52c0 4076fi
9c60689e
DWT
4077
4078# find the maximum length of command line arguments
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4080$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4081if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
35fa52c0
DWT
4082 $as_echo_n "(cached) " >&6
4083else
9c60689e
DWT
4084 i=0
4085 teststring="ABCD"
4086
4087 case $build_os in
4088 msdosdjgpp*)
4089 # On DJGPP, this test can blow up pretty badly due to problems in libc
4090 # (any single argument exceeding 2000 bytes causes a buffer overrun
4091 # during glob expansion). Even if it were fixed, the result of this
4092 # check would be larger than it should be.
4093 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4094 ;;
35fa52c0 4095
9c60689e
DWT
4096 gnu*)
4097 # Under GNU Hurd, this test is not required because there is
4098 # no limit to the length of command line arguments.
4099 # Libtool will interpret -1 as no limit whatsoever
4100 lt_cv_sys_max_cmd_len=-1;
4101 ;;
35fa52c0 4102
9c60689e
DWT
4103 cygwin* | mingw* | cegcc*)
4104 # On Win9x/ME, this test blows up -- it succeeds, but takes
4105 # about 5 minutes as the teststring grows exponentially.
4106 # Worse, since 9x/ME are not pre-emptively multitasking,
4107 # you end up with a "frozen" computer, even though with patience
4108 # the test eventually succeeds (with a max line length of 256k).
4109 # Instead, let's just punt: use the minimum linelength reported by
4110 # all of the supported platforms: 8192 (on NT/2K/XP).
4111 lt_cv_sys_max_cmd_len=8192;
4112 ;;
35fa52c0 4113
9c60689e
DWT
4114 amigaos*)
4115 # On AmigaOS with pdksh, this test takes hours, literally.
4116 # So we just punt and use a minimum line length of 8192.
4117 lt_cv_sys_max_cmd_len=8192;
4118 ;;
35fa52c0 4119
9c60689e
DWT
4120 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4121 # This has been around since 386BSD, at least. Likely further.
4122 if test -x /sbin/sysctl; then
4123 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4124 elif test -x /usr/sbin/sysctl; then
4125 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4126 else
4127 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4128 fi
4129 # And add a safety zone
4130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4132 ;;
35fa52c0 4133
9c60689e
DWT
4134 interix*)
4135 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4136 lt_cv_sys_max_cmd_len=196608
4137 ;;
35fa52c0 4138
9c60689e
DWT
4139 osf*)
4140 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4141 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4142 # nice to cause kernel panics so lets avoid the loop below.
4143 # First set a reasonable default.
4144 lt_cv_sys_max_cmd_len=16384
4145 #
4146 if test -x /sbin/sysconfig; then
4147 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4148 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4149 esac
4150 fi
4151 ;;
4152 sco3.2v5*)
4153 lt_cv_sys_max_cmd_len=102400
4154 ;;
4155 sysv5* | sco5v6* | sysv4.2uw2*)
4156 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4157 if test -n "$kargmax"; then
4158 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4159 else
4160 lt_cv_sys_max_cmd_len=32768
4161 fi
4162 ;;
4163 *)
4164 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4165 if test -n "$lt_cv_sys_max_cmd_len"; then
4166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4168 else
4169 # Make teststring a little bigger before we do anything with it.
4170 # a 1K string should be a reasonable start.
4171 for i in 1 2 3 4 5 6 7 8 ; do
4172 teststring=$teststring$teststring
4173 done
4174 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4175 # If test is not a shell built-in, we'll probably end up computing a
4176 # maximum length that is only half of the actual maximum length, but
4177 # we can't tell.
4178 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4179 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4180 test $i != 17 # 1/2 MB should be enough
4181 do
4182 i=`expr $i + 1`
4183 teststring=$teststring$teststring
4184 done
4185 # Only check the string length outside the loop.
4186 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4187 teststring=
4188 # Add a significant safety factor because C++ compilers can tack on
4189 # massive amounts of additional arguments before passing them to the
4190 # linker. It appears as though 1/2 is a usable value.
4191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4192 fi
4193 ;;
4194 esac
35fa52c0 4195
35fa52c0 4196fi
9c60689e
DWT
4197
4198if test -n $lt_cv_sys_max_cmd_len ; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4200$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35fa52c0 4201else
9c60689e
DWT
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4203$as_echo "none" >&6; }
35fa52c0 4204fi
9c60689e 4205max_cmd_len=$lt_cv_sys_max_cmd_len
35fa52c0 4206
9c60689e
DWT
4207
4208
4209
4210
4211
4212: ${CP="cp -f"}
4213: ${MV="mv -f"}
4214: ${RM="rm -f"}
4215
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4217$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4218# Try some XSI features
4219xsi_shell=no
4220( _lt_dummy="a/b/c"
4221 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4222 = c,a/b,, \
4223 && eval 'test $(( 1 + 1 )) -eq 2 \
4224 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4225 && xsi_shell=yes
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4227$as_echo "$xsi_shell" >&6; }
4228
4229
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4231$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4232lt_shell_append=no
4233( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4234 >/dev/null 2>&1 \
4235 && lt_shell_append=yes
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4237$as_echo "$lt_shell_append" >&6; }
4238
4239
4240if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4241 lt_unset=unset
35fa52c0 4242else
9c60689e
DWT
4243 lt_unset=false
4244fi
4245
4246
4247
4248
4249
4250# test EBCDIC or ASCII
4251case `echo X|tr X '\101'` in
4252 A) # ASCII based system
4253 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4254 lt_SP2NL='tr \040 \012'
4255 lt_NL2SP='tr \015\012 \040\040'
4256 ;;
4257 *) # EBCDIC based system
4258 lt_SP2NL='tr \100 \n'
4259 lt_NL2SP='tr \r\n \100\100'
4260 ;;
35fa52c0
DWT
4261esac
4262
35fa52c0 4263
35fa52c0 4264
35fa52c0 4265
35fa52c0 4266
35fa52c0 4267
35fa52c0 4268
35fa52c0 4269
9c60689e
DWT
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4272$as_echo_n "checking for $LD option to reload object files... " >&6; }
4273if test "${lt_cv_ld_reload_flag+set}" = set; then :
35fa52c0
DWT
4274 $as_echo_n "(cached) " >&6
4275else
9c60689e 4276 lt_cv_ld_reload_flag='-r'
35fa52c0 4277fi
9c60689e
DWT
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4279$as_echo "$lt_cv_ld_reload_flag" >&6; }
4280reload_flag=$lt_cv_ld_reload_flag
4281case $reload_flag in
4282"" | " "*) ;;
4283*) reload_flag=" $reload_flag" ;;
4284esac
4285reload_cmds='$LD$reload_flag -o $output$reload_objs'
4286case $host_os in
4287 darwin*)
4288 if test "$GCC" = yes; then
4289 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4290 else
4291 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4292 fi
4293 ;;
35fa52c0 4294esac
35fa52c0
DWT
4295
4296
9c60689e
DWT
4297
4298
4299
4300
4301
4302
4303
4304if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4306set dummy ${ac_tool_prefix}objdump; ac_word=$2
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308$as_echo_n "checking for $ac_word... " >&6; }
4309if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4310 $as_echo_n "(cached) " >&6
4311else
9c60689e
DWT
4312 if test -n "$OBJDUMP"; then
4313 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35fa52c0 4314else
9c60689e
DWT
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
35fa52c0 4325 fi
9c60689e
DWT
4326done
4327 done
4328IFS=$as_save_IFS
35fa52c0 4329
35fa52c0 4330fi
35fa52c0 4331fi
9c60689e
DWT
4332OBJDUMP=$ac_cv_prog_OBJDUMP
4333if test -n "$OBJDUMP"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4335$as_echo "$OBJDUMP" >&6; }
35fa52c0 4336else
9c60689e
DWT
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338$as_echo "no" >&6; }
35fa52c0 4339fi
9c60689e
DWT
4340
4341
4342fi
4343if test -z "$ac_cv_prog_OBJDUMP"; then
4344 ac_ct_OBJDUMP=$OBJDUMP
4345 # Extract the first word of "objdump", so it can be a program name with args.
4346set dummy objdump; ac_word=$2
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348$as_echo_n "checking for $ac_word... " >&6; }
4349if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
35fa52c0
DWT
4350 $as_echo_n "(cached) " >&6
4351else
9c60689e
DWT
4352 if test -n "$ac_ct_OBJDUMP"; then
4353 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
35fa52c0 4354else
9c60689e
DWT
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366done
4367 done
4368IFS=$as_save_IFS
4369
35fa52c0
DWT
4370fi
4371fi
9c60689e
DWT
4372ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4373if test -n "$ac_ct_OBJDUMP"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4375$as_echo "$ac_ct_OBJDUMP" >&6; }
35fa52c0
DWT
4376else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378$as_echo "no" >&6; }
4379fi
9c60689e
DWT
4380
4381 if test "x$ac_ct_OBJDUMP" = x; then
4382 OBJDUMP="false"
4383 else
4384 case $cross_compiling:$ac_tool_warned in
4385yes:)
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4388ac_tool_warned=yes ;;
35fa52c0 4389esac
9c60689e
DWT
4390 OBJDUMP=$ac_ct_OBJDUMP
4391 fi
4392else
4393 OBJDUMP="$ac_cv_prog_OBJDUMP"
35fa52c0 4394fi
35fa52c0 4395
9c60689e 4396test -z "$OBJDUMP" && OBJDUMP=objdump
35fa52c0
DWT
4397
4398
35fa52c0 4399
35fa52c0 4400
35fa52c0
DWT
4401
4402
4403
35fa52c0
DWT
4404
4405
9c60689e
DWT
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4407$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4408if test "${lt_cv_deplibs_check_method+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410else
4411 lt_cv_file_magic_cmd='$MAGIC_CMD'
4412lt_cv_file_magic_test_file=
4413lt_cv_deplibs_check_method='unknown'
4414# Need to set the preceding variable on all platforms that support
4415# interlibrary dependencies.
4416# 'none' -- dependencies not supported.
4417# `unknown' -- same as none, but documents that we really don't know.
4418# 'pass_all' -- all dependencies passed with no checks.
4419# 'test_compile' -- check by making test program.
4420# 'file_magic [[regex]]' -- check by looking for files in library path
4421# which responds to the $file_magic_cmd with a given extended regex.
4422# If you have `file' or equivalent on your system and you're not sure
4423# whether `pass_all' will *always* work, you probably want this one.
4424
4425case $host_os in
4426aix[4-9]*)
4427 lt_cv_deplibs_check_method=pass_all
4428 ;;
35fa52c0 4429
9c60689e
DWT
4430beos*)
4431 lt_cv_deplibs_check_method=pass_all
4432 ;;
35fa52c0 4433
9c60689e
DWT
4434bsdi[45]*)
4435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4436 lt_cv_file_magic_cmd='/usr/bin/file -L'
4437 lt_cv_file_magic_test_file=/shlib/libc.so
4438 ;;
35fa52c0 4439
9c60689e
DWT
4440cygwin*)
4441 # func_win32_libid is a shell function defined in ltmain.sh
4442 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4443 lt_cv_file_magic_cmd='func_win32_libid'
4444 ;;
35fa52c0 4445
9c60689e
DWT
4446mingw* | pw32*)
4447 # Base MSYS/MinGW do not provide the 'file' command needed by
4448 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4449 # unless we find 'file', for example because we are cross-compiling.
4450 if ( file / ) >/dev/null 2>&1; then
4451 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4452 lt_cv_file_magic_cmd='func_win32_libid'
4453 else
4454 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4455 lt_cv_file_magic_cmd='$OBJDUMP -f'
4456 fi
4457 ;;
35fa52c0 4458
9c60689e
DWT
4459cegcc)
4460 # use the weaker test based on 'objdump'. See mingw*.
4461 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4462 lt_cv_file_magic_cmd='$OBJDUMP -f'
4463 ;;
35fa52c0 4464
9c60689e
DWT
4465darwin* | rhapsody*)
4466 lt_cv_deplibs_check_method=pass_all
4467 ;;
35fa52c0 4468
9c60689e
DWT
4469freebsd* | dragonfly*)
4470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4471 case $host_cpu in
4472 i*86 )
4473 # Not sure whether the presence of OpenBSD here was a mistake.
4474 # Let's accept both of them until this is cleared up.
4475 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4476 lt_cv_file_magic_cmd=/usr/bin/file
4477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4478 ;;
4479 esac
4480 else
4481 lt_cv_deplibs_check_method=pass_all
4482 fi
4483 ;;
35fa52c0 4484
9c60689e
DWT
4485gnu*)
4486 lt_cv_deplibs_check_method=pass_all
4487 ;;
35fa52c0 4488
9c60689e
DWT
4489hpux10.20* | hpux11*)
4490 lt_cv_file_magic_cmd=/usr/bin/file
4491 case $host_cpu in
4492 ia64*)
4493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4495 ;;
4496 hppa*64*)
4497 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]'
4498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4499 ;;
4500 *)
4501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4502 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4503 ;;
4504 esac
4505 ;;
35fa52c0 4506
9c60689e
DWT
4507interix[3-9]*)
4508 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4510 ;;
35fa52c0 4511
9c60689e
DWT
4512irix5* | irix6* | nonstopux*)
4513 case $LD in
4514 *-32|*"-32 ") libmagic=32-bit;;
4515 *-n32|*"-n32 ") libmagic=N32;;
4516 *-64|*"-64 ") libmagic=64-bit;;
4517 *) libmagic=never-match;;
4518 esac
4519 lt_cv_deplibs_check_method=pass_all
4520 ;;
35fa52c0 4521
9c60689e
DWT
4522# This must be Linux ELF.
4523linux* | k*bsd*-gnu | kopensolaris*-gnu)
4524 lt_cv_deplibs_check_method=pass_all
4525 ;;
35fa52c0 4526
9c60689e
DWT
4527netbsd* | netbsdelf*-gnu)
4528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4530 else
4531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4532 fi
4533 ;;
35fa52c0 4534
9c60689e
DWT
4535newos6*)
4536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4537 lt_cv_file_magic_cmd=/usr/bin/file
4538 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4539 ;;
35fa52c0 4540
9c60689e
DWT
4541*nto* | *qnx*)
4542 lt_cv_deplibs_check_method=pass_all
4543 ;;
35fa52c0 4544
9c60689e
DWT
4545openbsd*)
4546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4548 else
4549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4550 fi
4551 ;;
4552
4553osf3* | osf4* | osf5*)
4554 lt_cv_deplibs_check_method=pass_all
4555 ;;
4556
4557rdos*)
4558 lt_cv_deplibs_check_method=pass_all
4559 ;;
4560
4561solaris*)
4562 lt_cv_deplibs_check_method=pass_all
4563 ;;
4564
4565sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4566 lt_cv_deplibs_check_method=pass_all
4567 ;;
4568
4569sysv4 | sysv4.3*)
4570 case $host_vendor in
4571 motorola)
4572 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]'
4573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4574 ;;
4575 ncr)
4576 lt_cv_deplibs_check_method=pass_all
4577 ;;
4578 sequent)
4579 lt_cv_file_magic_cmd='/bin/file'
4580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4581 ;;
4582 sni)
4583 lt_cv_file_magic_cmd='/bin/file'
4584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4585 lt_cv_file_magic_test_file=/lib/libc.so
4586 ;;
4587 siemens)
4588 lt_cv_deplibs_check_method=pass_all
4589 ;;
4590 pc)
4591 lt_cv_deplibs_check_method=pass_all
4592 ;;
4593 esac
4594 ;;
4595
4596tpf*)
4597 lt_cv_deplibs_check_method=pass_all
4598 ;;
4599esac
35fa52c0
DWT
4600
4601fi
9c60689e
DWT
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4603$as_echo "$lt_cv_deplibs_check_method" >&6; }
4604file_magic_cmd=$lt_cv_file_magic_cmd
4605deplibs_check_method=$lt_cv_deplibs_check_method
4606test -z "$deplibs_check_method" && deplibs_check_method=unknown
dbadc56a 4607
35fa52c0 4608
35fa52c0 4609
35fa52c0 4610
35fa52c0 4611
35fa52c0 4612
35fa52c0 4613
35fa52c0 4614
35fa52c0 4615
35fa52c0 4616
35fa52c0 4617
9c60689e
DWT
4618
4619if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4621set dummy ${ac_tool_prefix}ar; ac_word=$2
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
4624if test "${ac_cv_prog_AR+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626else
4627 if test -n "$AR"; then
4628 ac_cv_prog_AR="$AR" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_AR="${ac_tool_prefix}ar"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641done
35fa52c0 4642 done
9c60689e
DWT
4643IFS=$as_save_IFS
4644
4645fi
4646fi
4647AR=$ac_cv_prog_AR
4648if test -n "$AR"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4650$as_echo "$AR" >&6; }
4651else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653$as_echo "no" >&6; }
4654fi
4655
4656
4657fi
4658if test -z "$ac_cv_prog_AR"; then
4659 ac_ct_AR=$AR
4660 # Extract the first word of "ar", so it can be a program name with args.
4661set dummy ar; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666else
4667 if test -n "$ac_ct_AR"; then
4668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_AR="ar"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
35fa52c0 4680 fi
9c60689e
DWT
4681done
4682 done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687ac_ct_AR=$ac_cv_prog_ac_ct_AR
4688if test -n "$ac_ct_AR"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4690$as_echo "$ac_ct_AR" >&6; }
4691else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696 if test "x$ac_ct_AR" = x; then
4697 AR="false"
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700yes:)
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703ac_tool_warned=yes ;;
4704esac
4705 AR=$ac_ct_AR
4706 fi
4707else
4708 AR="$ac_cv_prog_AR"
4709fi
4710
4711test -z "$AR" && AR=ar
4712test -z "$AR_FLAGS" && AR_FLAGS=cru
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4726set dummy ${ac_tool_prefix}strip; ac_word=$2
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
4729if test "${ac_cv_prog_STRIP+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 if test -n "$STRIP"; then
4733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
35fa52c0 4745 fi
9c60689e
DWT
4746done
4747 done
4748IFS=$as_save_IFS
4749
4750fi
4751fi
4752STRIP=$ac_cv_prog_STRIP
4753if test -n "$STRIP"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4755$as_echo "$STRIP" >&6; }
4756else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758$as_echo "no" >&6; }
4759fi
4760
4761
4762fi
4763if test -z "$ac_cv_prog_STRIP"; then
4764 ac_ct_STRIP=$STRIP
4765 # Extract the first word of "strip", so it can be a program name with args.
4766set dummy strip; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772 if test -n "$ac_ct_STRIP"; then
4773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4774else
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_STRIP="strip"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786done
4787 done
4788IFS=$as_save_IFS
4789
4790fi
4791fi
4792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4793if test -n "$ac_ct_STRIP"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4795$as_echo "$ac_ct_STRIP" >&6; }
4796else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798$as_echo "no" >&6; }
4799fi
4800
4801 if test "x$ac_ct_STRIP" = x; then
4802 STRIP=":"
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805yes:)
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808ac_tool_warned=yes ;;
4809esac
4810 STRIP=$ac_ct_STRIP
4811 fi
4812else
4813 STRIP="$ac_cv_prog_STRIP"
4814fi
4815
4816test -z "$STRIP" && STRIP=:
4817
4818
4819
4820
4821
4822
4823if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4825set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827$as_echo_n "checking for $ac_word... " >&6; }
4828if test "${ac_cv_prog_RANLIB+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 if test -n "$RANLIB"; then
4832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4833else
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845done
4846 done
4847IFS=$as_save_IFS
4848
4849fi
4850fi
4851RANLIB=$ac_cv_prog_RANLIB
4852if test -n "$RANLIB"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4854$as_echo "$RANLIB" >&6; }
4855else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857$as_echo "no" >&6; }
4858fi
4859
4860
4861fi
4862if test -z "$ac_cv_prog_RANLIB"; then
4863 ac_ct_RANLIB=$RANLIB
4864 # Extract the first word of "ranlib", so it can be a program name with args.
4865set dummy ranlib; ac_word=$2
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867$as_echo_n "checking for $ac_word... " >&6; }
4868if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870else
4871 if test -n "$ac_ct_RANLIB"; then
4872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_RANLIB="ranlib"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886 done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
4891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4892if test -n "$ac_ct_RANLIB"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4894$as_echo "$ac_ct_RANLIB" >&6; }
4895else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899
4900 if test "x$ac_ct_RANLIB" = x; then
4901 RANLIB=":"
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904yes:)
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907ac_tool_warned=yes ;;
4908esac
4909 RANLIB=$ac_ct_RANLIB
4910 fi
4911else
4912 RANLIB="$ac_cv_prog_RANLIB"
4913fi
4914
4915test -z "$RANLIB" && RANLIB=:
4916
4917
4918
4919
4920
4921
4922# Determine commands to create old-style static archives.
4923old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4924old_postinstall_cmds='chmod 644 $oldlib'
4925old_postuninstall_cmds=
4926
4927if test -n "$RANLIB"; then
4928 case $host_os in
4929 openbsd*)
4930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4931 ;;
4932 *)
4933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4934 ;;
4935 esac
4936 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4937fi
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972# If no C compiler was specified, use CC.
4973LTCC=${LTCC-"$CC"}
4974
4975# If no C compiler flags were specified, use CFLAGS.
4976LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4977
4978# Allow CC to be a program name with arguments.
4979compiler=$CC
4980
4981
4982# Check for command to grab the raw symbol name followed by C symbol from nm.
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4984$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4985if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988
4989# These are sane defaults that work on at least a few old systems.
4990# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4991
4992# Character class describing NM global symbol codes.
4993symcode='[BCDEGRST]'
4994
4995# Regexp to match symbols that can be accessed directly from C.
4996sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4997
4998# Define system-specific variables.
4999case $host_os in
5000aix*)
5001 symcode='[BCDT]'
5002 ;;
5003cygwin* | mingw* | pw32* | cegcc*)
5004 symcode='[ABCDGISTW]'
5005 ;;
5006hpux*)
5007 if test "$host_cpu" = ia64; then
5008 symcode='[ABCDEGRST]'
5009 fi
5010 ;;
5011irix* | nonstopux*)
5012 symcode='[BCDEGRST]'
5013 ;;
5014osf*)
5015 symcode='[BCDEGQRST]'
5016 ;;
5017solaris*)
5018 symcode='[BDRT]'
5019 ;;
5020sco3.2v5*)
5021 symcode='[DT]'
5022 ;;
5023sysv4.2uw2*)
5024 symcode='[DT]'
5025 ;;
5026sysv5* | sco5v6* | unixware* | OpenUNIX*)
5027 symcode='[ABDT]'
5028 ;;
5029sysv4)
5030 symcode='[DFNSTU]'
5031 ;;
5032esac
5033
5034# If we're using GNU nm, then use its standard symbol codes.
5035case `$NM -V 2>&1` in
5036*GNU* | *'with BFD'*)
5037 symcode='[ABCDGIRSTW]' ;;
5038esac
5039
5040# Transform an extracted symbol line into a proper C declaration.
5041# Some systems (esp. on ia64) link data and code symbols differently,
5042# so use this general approach.
5043lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5044
5045# Transform an extracted symbol line into symbol name and symbol address
5046lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5047lt_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'"
5048
5049# Handle CRLF in mingw tool chain
5050opt_cr=
5051case $build_os in
5052mingw*)
5053 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5054 ;;
5055esac
5056
5057# Try without a prefix underscore, then with it.
5058for ac_symprfx in "" "_"; do
5059
5060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5061 symxfrm="\\1 $ac_symprfx\\2 \\2"
5062
5063 # Write the raw and C identifiers.
5064 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5065 # Fake it for dumpbin and say T for any non-static function
5066 # and D for any global variable.
5067 # Also find C++ and __fastcall symbols from MSVC++,
5068 # which start with @ or ?.
5069 lt_cv_sys_global_symbol_pipe="$AWK '"\
5070" {last_section=section; section=\$ 3};"\
5071" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5072" \$ 0!~/External *\|/{next};"\
5073" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5074" {if(hide[section]) next};"\
5075" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5076" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5077" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5078" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5079" ' prfx=^$ac_symprfx"
5080 else
5081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5082 fi
5083
5084 # Check to see that the pipe works correctly.
5085 pipe_works=no
5086
5087 rm -f conftest*
5088 cat > conftest.$ac_ext <<_LT_EOF
5089#ifdef __cplusplus
5090extern "C" {
5091#endif
5092char nm_test_var;
5093void nm_test_func(void);
5094void nm_test_func(void){}
5095#ifdef __cplusplus
5096}
5097#endif
5098int main(){nm_test_var='a';nm_test_func();return(0);}
5099_LT_EOF
5100
5101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5102 (eval $ac_compile) 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }; then
5106 # Now try to grab the symbols.
5107 nlist=conftest.nm
5108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5109 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5110 ac_status=$?
5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; } && test -s "$nlist"; then
5113 # Try sorting and uniquifying the output.
5114 if sort "$nlist" | uniq > "$nlist"T; then
5115 mv -f "$nlist"T "$nlist"
5116 else
5117 rm -f "$nlist"T
5118 fi
5119
5120 # Make sure that we snagged all the symbols we need.
5121 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5122 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5123 cat <<_LT_EOF > conftest.$ac_ext
5124#ifdef __cplusplus
5125extern "C" {
5126#endif
5127
5128_LT_EOF
5129 # Now generate the symbol file.
5130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5131
5132 cat <<_LT_EOF >> conftest.$ac_ext
5133
5134/* The mapping between symbol names and symbols. */
5135const struct {
5136 const char *name;
5137 void *address;
5138}
5139lt__PROGRAM__LTX_preloaded_symbols[] =
5140{
5141 { "@PROGRAM@", (void *) 0 },
5142_LT_EOF
5143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5144 cat <<\_LT_EOF >> conftest.$ac_ext
5145 {0, (void *) 0}
5146};
5147
5148/* This works around a problem in FreeBSD linker */
5149#ifdef FREEBSD_WORKAROUND
5150static const void *lt_preloaded_setup() {
5151 return lt__PROGRAM__LTX_preloaded_symbols;
5152}
5153#endif
5154
5155#ifdef __cplusplus
5156}
5157#endif
5158_LT_EOF
5159 # Now try linking the two files.
5160 mv conftest.$ac_objext conftstm.$ac_objext
5161 lt_save_LIBS="$LIBS"
5162 lt_save_CFLAGS="$CFLAGS"
5163 LIBS="conftstm.$ac_objext"
5164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5166 (eval $ac_link) 2>&5
5167 ac_status=$?
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5170 pipe_works=yes
5171 fi
5172 LIBS="$lt_save_LIBS"
5173 CFLAGS="$lt_save_CFLAGS"
5174 else
5175 echo "cannot find nm_test_func in $nlist" >&5
5176 fi
5177 else
5178 echo "cannot find nm_test_var in $nlist" >&5
5179 fi
5180 else
5181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5182 fi
5183 else
5184 echo "$progname: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5186 fi
5187 rm -rf conftest* conftst*
5188
5189 # Do not use the global_symbol_pipe unless it works.
5190 if test "$pipe_works" = yes; then
5191 break
5192 else
5193 lt_cv_sys_global_symbol_pipe=
5194 fi
5195done
5196
5197fi
5198
5199if test -z "$lt_cv_sys_global_symbol_pipe"; then
5200 lt_cv_sys_global_symbol_to_cdecl=
5201fi
5202if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5204$as_echo "failed" >&6; }
5205else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5207$as_echo "ok" >&6; }
5208fi
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232# Check whether --enable-libtool-lock was given.
5233if test "${enable_libtool_lock+set}" = set; then :
5234 enableval=$enable_libtool_lock;
5235fi
5236
5237test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5238
5239# Some flags need to be propagated to the compiler or linker for good
5240# libtool support.
5241case $host in
5242ia64-*-hpux*)
5243 # Find out which ABI we are using.
5244 echo 'int i;' > conftest.$ac_ext
5245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5246 (eval $ac_compile) 2>&5
5247 ac_status=$?
5248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249 test $ac_status = 0; }; then
5250 case `/usr/bin/file conftest.$ac_objext` in
5251 *ELF-32*)
5252 HPUX_IA64_MODE="32"
5253 ;;
5254 *ELF-64*)
5255 HPUX_IA64_MODE="64"
5256 ;;
5257 esac
5258 fi
5259 rm -rf conftest*
5260 ;;
5261*-*-irix6*)
5262 # Find out which ABI we are using.
27557508 5263 echo '#line 5263 "configure"' > conftest.$ac_ext
9c60689e
DWT
5264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5265 (eval $ac_compile) 2>&5
5266 ac_status=$?
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; }; then
5269 if test "$lt_cv_prog_gnu_ld" = yes; then
5270 case `/usr/bin/file conftest.$ac_objext` in
5271 *32-bit*)
5272 LD="${LD-ld} -melf32bsmip"
5273 ;;
5274 *N32*)
5275 LD="${LD-ld} -melf32bmipn32"
5276 ;;
5277 *64-bit*)
5278 LD="${LD-ld} -melf64bmip"
5279 ;;
5280 esac
5281 else
5282 case `/usr/bin/file conftest.$ac_objext` in
5283 *32-bit*)
5284 LD="${LD-ld} -32"
5285 ;;
5286 *N32*)
5287 LD="${LD-ld} -n32"
5288 ;;
5289 *64-bit*)
5290 LD="${LD-ld} -64"
5291 ;;
5292 esac
5293 fi
5294 fi
5295 rm -rf conftest*
5296 ;;
5297
5298x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5299s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5300 # Find out which ABI we are using.
5301 echo 'int i;' > conftest.$ac_ext
5302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5303 (eval $ac_compile) 2>&5
5304 ac_status=$?
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306 test $ac_status = 0; }; then
5307 case `/usr/bin/file conftest.o` in
5308 *32-bit*)
5309 case $host in
5310 x86_64-*kfreebsd*-gnu)
5311 LD="${LD-ld} -m elf_i386_fbsd"
5312 ;;
5313 x86_64-*linux*)
5314 LD="${LD-ld} -m elf_i386"
5315 ;;
5316 ppc64-*linux*|powerpc64-*linux*)
5317 LD="${LD-ld} -m elf32ppclinux"
5318 ;;
5319 s390x-*linux*)
5320 LD="${LD-ld} -m elf_s390"
5321 ;;
5322 sparc64-*linux*)
5323 LD="${LD-ld} -m elf32_sparc"
5324 ;;
5325 esac
5326 ;;
5327 *64-bit*)
5328 case $host in
5329 x86_64-*kfreebsd*-gnu)
5330 LD="${LD-ld} -m elf_x86_64_fbsd"
5331 ;;
5332 x86_64-*linux*)
5333 LD="${LD-ld} -m elf_x86_64"
5334 ;;
5335 ppc*-*linux*|powerpc*-*linux*)
5336 LD="${LD-ld} -m elf64ppc"
5337 ;;
5338 s390*-*linux*|s390*-*tpf*)
5339 LD="${LD-ld} -m elf64_s390"
5340 ;;
5341 sparc*-*linux*)
5342 LD="${LD-ld} -m elf64_sparc"
5343 ;;
5344 esac
5345 ;;
5346 esac
5347 fi
5348 rm -rf conftest*
5349 ;;
5350
5351*-*-sco3.2v5*)
5352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5353 SAVE_CFLAGS="$CFLAGS"
5354 CFLAGS="$CFLAGS -belf"
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5356$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5357if test "${lt_cv_cc_needs_belf+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5359else
5360 ac_ext=c
5361ac_cpp='$CPP $CPPFLAGS'
5362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5364ac_compiler_gnu=$ac_cv_c_compiler_gnu
5365
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h. */
5368
5369int
5370main ()
5371{
5372
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377if ac_fn_c_try_link "$LINENO"; then :
5378 lt_cv_cc_needs_belf=yes
5379else
5380 lt_cv_cc_needs_belf=no
5381fi
5382rm -f core conftest.err conftest.$ac_objext \
5383 conftest$ac_exeext conftest.$ac_ext
5384 ac_ext=c
5385ac_cpp='$CPP $CPPFLAGS'
5386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5392$as_echo "$lt_cv_cc_needs_belf" >&6; }
5393 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5395 CFLAGS="$SAVE_CFLAGS"
5396 fi
5397 ;;
5398sparc*-*solaris*)
5399 # Find out which ABI we are using.
5400 echo 'int i;' > conftest.$ac_ext
5401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5402 (eval $ac_compile) 2>&5
5403 ac_status=$?
5404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5405 test $ac_status = 0; }; then
5406 case `/usr/bin/file conftest.o` in
5407 *64-bit*)
5408 case $lt_cv_prog_gnu_ld in
5409 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5410 *)
5411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5412 LD="${LD-ld} -64"
5413 fi
5414 ;;
5415 esac
5416 ;;
5417 esac
5418 fi
5419 rm -rf conftest*
5420 ;;
5421esac
5422
5423need_locks="$enable_libtool_lock"
5424
5425
5426 case $host_os in
5427 rhapsody* | darwin*)
5428 if test -n "$ac_tool_prefix"; then
5429 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432$as_echo_n "checking for $ac_word... " >&6; }
5433if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435else
5436 if test -n "$DSYMUTIL"; then
5437 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450done
5451 done
5452IFS=$as_save_IFS
5453
5454fi
5455fi
5456DSYMUTIL=$ac_cv_prog_DSYMUTIL
5457if test -n "$DSYMUTIL"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5459$as_echo "$DSYMUTIL" >&6; }
5460else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }
5463fi
5464
5465
5466fi
5467if test -z "$ac_cv_prog_DSYMUTIL"; then
5468 ac_ct_DSYMUTIL=$DSYMUTIL
5469 # Extract the first word of "dsymutil", so it can be a program name with args.
5470set dummy dsymutil; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475else
5476 if test -n "$ac_ct_DSYMUTIL"; then
5477 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490done
5491 done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5497if test -n "$ac_ct_DSYMUTIL"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5499$as_echo "$ac_ct_DSYMUTIL" >&6; }
5500else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505 if test "x$ac_ct_DSYMUTIL" = x; then
5506 DSYMUTIL=":"
5507 else
5508 case $cross_compiling:$ac_tool_warned in
5509yes:)
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512ac_tool_warned=yes ;;
5513esac
5514 DSYMUTIL=$ac_ct_DSYMUTIL
5515 fi
5516else
5517 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5518fi
5519
5520 if test -n "$ac_tool_prefix"; then
5521 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5522set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524$as_echo_n "checking for $ac_word... " >&6; }
5525if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527else
5528 if test -n "$NMEDIT"; then
5529 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542done
5543 done
5544IFS=$as_save_IFS
5545
5546fi
5547fi
5548NMEDIT=$ac_cv_prog_NMEDIT
5549if test -n "$NMEDIT"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5551$as_echo "$NMEDIT" >&6; }
5552else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
5556
5557
5558fi
5559if test -z "$ac_cv_prog_NMEDIT"; then
5560 ac_ct_NMEDIT=$NMEDIT
5561 # Extract the first word of "nmedit", so it can be a program name with args.
5562set dummy nmedit; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5567else
5568 if test -n "$ac_ct_NMEDIT"; then
5569 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582done
5583 done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5589if test -n "$ac_ct_NMEDIT"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5591$as_echo "$ac_ct_NMEDIT" >&6; }
5592else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597 if test "x$ac_ct_NMEDIT" = x; then
5598 NMEDIT=":"
5599 else
5600 case $cross_compiling:$ac_tool_warned in
5601yes:)
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604ac_tool_warned=yes ;;
5605esac
5606 NMEDIT=$ac_ct_NMEDIT
5607 fi
5608else
5609 NMEDIT="$ac_cv_prog_NMEDIT"
5610fi
5611
5612 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5614set dummy ${ac_tool_prefix}lipo; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if test "${ac_cv_prog_LIPO+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619else
5620 if test -n "$LIPO"; then
5621 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640LIPO=$ac_cv_prog_LIPO
5641if test -n "$LIPO"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5643$as_echo "$LIPO" >&6; }
5644else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649
5650fi
5651if test -z "$ac_cv_prog_LIPO"; then
5652 ac_ct_LIPO=$LIPO
5653 # Extract the first word of "lipo", so it can be a program name with args.
5654set dummy lipo; ac_word=$2
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656$as_echo_n "checking for $ac_word... " >&6; }
5657if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659else
5660 if test -n "$ac_ct_LIPO"; then
5661 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_LIPO="lipo"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674done
5675 done
5676IFS=$as_save_IFS
5677
5678fi
5679fi
5680ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5681if test -n "$ac_ct_LIPO"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5683$as_echo "$ac_ct_LIPO" >&6; }
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
5687fi
5688
5689 if test "x$ac_ct_LIPO" = x; then
5690 LIPO=":"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693yes:)
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696ac_tool_warned=yes ;;
5697esac
5698 LIPO=$ac_ct_LIPO
5699 fi
5700else
5701 LIPO="$ac_cv_prog_LIPO"
5702fi
5703
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5706set dummy ${ac_tool_prefix}otool; ac_word=$2
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708$as_echo_n "checking for $ac_word... " >&6; }
5709if test "${ac_cv_prog_OTOOL+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711else
5712 if test -n "$OTOOL"; then
5713 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5714else
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726done
5727 done
5728IFS=$as_save_IFS
5729
5730fi
5731fi
5732OTOOL=$ac_cv_prog_OTOOL
5733if test -n "$OTOOL"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5735$as_echo "$OTOOL" >&6; }
5736else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739fi
5740
5741
5742fi
5743if test -z "$ac_cv_prog_OTOOL"; then
5744 ac_ct_OTOOL=$OTOOL
5745 # Extract the first word of "otool", so it can be a program name with args.
5746set dummy otool; ac_word=$2
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748$as_echo_n "checking for $ac_word... " >&6; }
5749if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751else
5752 if test -n "$ac_ct_OTOOL"; then
5753 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5754else
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_ac_ct_OTOOL="otool"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
5767 done
5768IFS=$as_save_IFS
5769
5770fi
5771fi
5772ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5773if test -n "$ac_ct_OTOOL"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5775$as_echo "$ac_ct_OTOOL" >&6; }
5776else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778$as_echo "no" >&6; }
5779fi
5780
5781 if test "x$ac_ct_OTOOL" = x; then
5782 OTOOL=":"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785yes:)
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788ac_tool_warned=yes ;;
5789esac
5790 OTOOL=$ac_ct_OTOOL
5791 fi
5792else
5793 OTOOL="$ac_cv_prog_OTOOL"
5794fi
5795
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5798set dummy ${ac_tool_prefix}otool64; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 if test -n "$OTOOL64"; then
5805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824OTOOL64=$ac_cv_prog_OTOOL64
5825if test -n "$OTOOL64"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5827$as_echo "$OTOOL64" >&6; }
5828else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833
5834fi
5835if test -z "$ac_cv_prog_OTOOL64"; then
5836 ac_ct_OTOOL64=$OTOOL64
5837 # Extract the first word of "otool64", so it can be a program name with args.
5838set dummy otool64; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$ac_ct_OTOOL64"; then
5845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_ac_ct_OTOOL64="otool64"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5865if test -n "$ac_ct_OTOOL64"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5867$as_echo "$ac_ct_OTOOL64" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873 if test "x$ac_ct_OTOOL64" = x; then
5874 OTOOL64=":"
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877yes:)
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880ac_tool_warned=yes ;;
5881esac
5882 OTOOL64=$ac_ct_OTOOL64
5883 fi
5884else
5885 OTOOL64="$ac_cv_prog_OTOOL64"
5886fi
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5915$as_echo_n "checking for -single_module linker flag... " >&6; }
5916if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918else
5919 lt_cv_apple_cc_single_mod=no
5920 if test -z "${LT_MULTI_MODULE}"; then
5921 # By default we will add the -single_module flag. You can override
5922 # by either setting the environment variable LT_MULTI_MODULE
5923 # non-empty at configure time, or by adding -multi_module to the
5924 # link flags.
5925 rm -rf libconftest.dylib*
5926 echo "int foo(void){return 1;}" > conftest.c
5927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5928-dynamiclib -Wl,-single_module conftest.c" >&5
5929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5931 _lt_result=$?
5932 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5933 lt_cv_apple_cc_single_mod=yes
5934 else
5935 cat conftest.err >&5
5936 fi
5937 rm -rf libconftest.dylib*
5938 rm -f conftest.*
5939 fi
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5942$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5944$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5945if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947else
5948 lt_cv_ld_exported_symbols_list=no
5949 save_LDFLAGS=$LDFLAGS
5950 echo "_main" > conftest.sym
5951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h. */
5954
5955int
5956main ()
5957{
5958
5959 ;
5960 return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_link "$LINENO"; then :
5964 lt_cv_ld_exported_symbols_list=yes
5965else
5966 lt_cv_ld_exported_symbols_list=no
5967fi
5968rm -f core conftest.err conftest.$ac_objext \
5969 conftest$ac_exeext conftest.$ac_ext
5970 LDFLAGS="$save_LDFLAGS"
5971
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5974$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5975 case $host_os in
5976 rhapsody* | darwin1.[012])
5977 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5978 darwin1.*)
5979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5980 darwin*) # darwin 5.x on
5981 # if running on 10.5 or later, the deployment target defaults
5982 # to the OS version, if on x86, and 10.4, the deployment
5983 # target defaults to 10.4. Don't you love it?
5984 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5985 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5987 10.[012]*)
5988 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5989 10.*)
5990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5991 esac
5992 ;;
5993 esac
5994 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5995 _lt_dar_single_mod='$single_module'
5996 fi
5997 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5998 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5999 else
6000 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6001 fi
6002 if test "$DSYMUTIL" != ":"; then
6003 _lt_dsymutil='~$DSYMUTIL $lib || :'
6004 else
6005 _lt_dsymutil=
6006 fi
6007 ;;
6008 esac
6009
6010ac_ext=c
6011ac_cpp='$CPP $CPPFLAGS'
6012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6016$as_echo_n "checking how to run the C preprocessor... " >&6; }
6017# On Suns, sometimes $CPP names a directory.
6018if test -n "$CPP" && test -d "$CPP"; then
6019 CPP=
6020fi
6021if test -z "$CPP"; then
6022 if test "${ac_cv_prog_CPP+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024else
6025 # Double quotes because CPP needs to be expanded
6026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6027 do
6028 ac_preproc_ok=false
6029for ac_c_preproc_warn_flag in '' yes
6030do
6031 # Use a header file that comes with gcc, so configuring glibc
6032 # with a fresh cross-compiler works.
6033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6034 # <limits.h> exists even on freestanding compilers.
6035 # On the NeXT, cc -E runs the code through the compiler's parser,
6036 # not just through cpp. "Syntax error" is here to catch this case.
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h. */
6039#ifdef __STDC__
6040# include <limits.h>
6041#else
6042# include <assert.h>
6043#endif
6044 Syntax error
6045_ACEOF
6046if ac_fn_c_try_cpp "$LINENO"; then :
6047
6048else
6049 # Broken: fails on valid input.
6050continue
6051fi
6052rm -f conftest.err conftest.$ac_ext
6053
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057/* end confdefs.h. */
6058#include <ac_nonexistent.h>
6059_ACEOF
6060if ac_fn_c_try_cpp "$LINENO"; then :
6061 # Broken: success on invalid input.
6062continue
6063else
6064 # Passes both tests.
6065ac_preproc_ok=:
6066break
6067fi
6068rm -f conftest.err conftest.$ac_ext
6069
6070done
6071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072rm -f conftest.err conftest.$ac_ext
6073if $ac_preproc_ok; then :
6074 break
6075fi
6076
6077 done
6078 ac_cv_prog_CPP=$CPP
6079
6080fi
6081 CPP=$ac_cv_prog_CPP
6082else
6083 ac_cv_prog_CPP=$CPP
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6086$as_echo "$CPP" >&6; }
6087ac_preproc_ok=false
6088for ac_c_preproc_warn_flag in '' yes
6089do
6090 # Use a header file that comes with gcc, so configuring glibc
6091 # with a fresh cross-compiler works.
6092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093 # <limits.h> exists even on freestanding compilers.
6094 # On the NeXT, cc -E runs the code through the compiler's parser,
6095 # not just through cpp. "Syntax error" is here to catch this case.
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h. */
6098#ifdef __STDC__
6099# include <limits.h>
6100#else
6101# include <assert.h>
6102#endif
6103 Syntax error
6104_ACEOF
6105if ac_fn_c_try_cpp "$LINENO"; then :
6106
6107else
6108 # Broken: fails on valid input.
6109continue
6110fi
6111rm -f conftest.err conftest.$ac_ext
6112
6113 # OK, works on sane cases. Now check whether nonexistent headers
6114 # can be detected and how.
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h. */
6117#include <ac_nonexistent.h>
6118_ACEOF
6119if ac_fn_c_try_cpp "$LINENO"; then :
6120 # Broken: success on invalid input.
6121continue
6122else
6123 # Passes both tests.
6124ac_preproc_ok=:
6125break
6126fi
6127rm -f conftest.err conftest.$ac_ext
6128
6129done
6130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6131rm -f conftest.err conftest.$ac_ext
6132if $ac_preproc_ok; then :
6133
6134else
6135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6137as_fn_error "C preprocessor \"$CPP\" fails sanity check
6138See \`config.log' for more details." "$LINENO" 5; }
6139fi
6140
6141ac_ext=c
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6149$as_echo_n "checking for ANSI C header files... " >&6; }
6150if test "${ac_cv_header_stdc+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6152else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h. */
6155#include <stdlib.h>
6156#include <stdarg.h>
6157#include <string.h>
6158#include <float.h>
6159
6160int
6161main ()
6162{
6163
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168if ac_fn_c_try_compile "$LINENO"; then :
6169 ac_cv_header_stdc=yes
6170else
6171 ac_cv_header_stdc=no
6172fi
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174
6175if test $ac_cv_header_stdc = yes; then
6176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178/* end confdefs.h. */
6179#include <string.h>
6180
6181_ACEOF
6182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 $EGREP "memchr" >/dev/null 2>&1; then :
6184
6185else
6186 ac_cv_header_stdc=no
6187fi
6188rm -f conftest*
6189
6190fi
6191
6192if test $ac_cv_header_stdc = yes; then
6193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196#include <stdlib.h>
6197
6198_ACEOF
6199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 $EGREP "free" >/dev/null 2>&1; then :
6201
6202else
6203 ac_cv_header_stdc=no
6204fi
6205rm -f conftest*
6206
6207fi
6208
6209if test $ac_cv_header_stdc = yes; then
6210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6211 if test "$cross_compiling" = yes; then :
6212 :
6213else
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h. */
6216#include <ctype.h>
6217#include <stdlib.h>
6218#if ((' ' & 0x0FF) == 0x020)
6219# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6220# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6221#else
6222# define ISLOWER(c) \
6223 (('a' <= (c) && (c) <= 'i') \
6224 || ('j' <= (c) && (c) <= 'r') \
6225 || ('s' <= (c) && (c) <= 'z'))
6226# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6227#endif
6228
6229#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6230int
6231main ()
6232{
6233 int i;
6234 for (i = 0; i < 256; i++)
6235 if (XOR (islower (i), ISLOWER (i))
6236 || toupper (i) != TOUPPER (i))
6237 return 2;
6238 return 0;
6239}
6240_ACEOF
6241if ac_fn_c_try_run "$LINENO"; then :
6242
6243else
6244 ac_cv_header_stdc=no
6245fi
6246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6247 conftest.$ac_objext conftest.beam conftest.$ac_ext
6248fi
6249
6250fi
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6253$as_echo "$ac_cv_header_stdc" >&6; }
6254if test $ac_cv_header_stdc = yes; then
6255
6256$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6257
6258fi
6259
6260# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6261for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6262 inttypes.h stdint.h unistd.h
6263do :
6264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6265ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6266"
6267eval as_val=\$$as_ac_Header
6268 if test "x$as_val" = x""yes; then :
6269 cat >>confdefs.h <<_ACEOF
6270#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6271_ACEOF
6272
6273fi
6274
6275done
6276
6277
6278for ac_header in dlfcn.h
6279do :
6280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6281"
6282if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6283 cat >>confdefs.h <<_ACEOF
6284#define HAVE_DLFCN_H 1
6285_ACEOF
6286
6287fi
6288
6289done
6290
6291
6292
6293# Set options
549f29b5
DWT
6294# Check whether --enable-static was given.
6295if test "${enable_static+set}" = set; then :
6296 enableval=$enable_static; p=${PACKAGE-default}
9c60689e 6297 case $enableval in
549f29b5
DWT
6298 yes) enable_static=yes ;;
6299 no) enable_static=no ;;
9c60689e 6300 *)
549f29b5 6301 enable_static=no
9c60689e
DWT
6302 # Look at the argument we got. We use all the common list separators.
6303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6304 for pkg in $enableval; do
6305 IFS="$lt_save_ifs"
6306 if test "X$pkg" = "X$p"; then
549f29b5 6307 enable_static=yes
9c60689e
DWT
6308 fi
6309 done
6310 IFS="$lt_save_ifs"
6311 ;;
6312 esac
6313else
549f29b5 6314 enable_static=no
9c60689e
DWT
6315fi
6316
6317
6318
6319
6320
6321
6322
6323
6324
549f29b5
DWT
6325
6326 enable_dlopen=no
6327
6328
6329 enable_win32_dll=no
6330
6331
6332 # Check whether --enable-shared was given.
6333if test "${enable_shared+set}" = set; then :
6334 enableval=$enable_shared; p=${PACKAGE-default}
9c60689e 6335 case $enableval in
549f29b5
DWT
6336 yes) enable_shared=yes ;;
6337 no) enable_shared=no ;;
9c60689e 6338 *)
549f29b5 6339 enable_shared=no
9c60689e
DWT
6340 # Look at the argument we got. We use all the common list separators.
6341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6342 for pkg in $enableval; do
6343 IFS="$lt_save_ifs"
6344 if test "X$pkg" = "X$p"; then
549f29b5 6345 enable_shared=yes
9c60689e
DWT
6346 fi
6347 done
6348 IFS="$lt_save_ifs"
6349 ;;
6350 esac
6351else
549f29b5 6352 enable_shared=yes
9c60689e
DWT
6353fi
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
549f29b5 6364
9c60689e
DWT
6365# Check whether --with-pic was given.
6366if test "${with_pic+set}" = set; then :
6367 withval=$with_pic; pic_mode="$withval"
6368else
6369 pic_mode=default
6370fi
6371
6372
6373test -z "$pic_mode" && pic_mode=default
6374
6375
6376
6377
6378
6379
6380
6381 # Check whether --enable-fast-install was given.
6382if test "${enable_fast_install+set}" = set; then :
6383 enableval=$enable_fast_install; p=${PACKAGE-default}
6384 case $enableval in
6385 yes) enable_fast_install=yes ;;
6386 no) enable_fast_install=no ;;
6387 *)
6388 enable_fast_install=no
6389 # Look at the argument we got. We use all the common list separators.
6390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6391 for pkg in $enableval; do
6392 IFS="$lt_save_ifs"
6393 if test "X$pkg" = "X$p"; then
6394 enable_fast_install=yes
6395 fi
6396 done
6397 IFS="$lt_save_ifs"
6398 ;;
6399 esac
6400else
6401 enable_fast_install=yes
6402fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414# This can be used to rebuild libtool when needed
6415LIBTOOL_DEPS="$ltmain"
6416
6417# Always use our own libtool.
6418LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444test -z "$LN_S" && LN_S="ln -s"
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459if test -n "${ZSH_VERSION+set}" ; then
6460 setopt NO_GLOB_SUBST
6461fi
6462
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6464$as_echo_n "checking for objdir... " >&6; }
6465if test "${lt_cv_objdir+set}" = set; then :
6466 $as_echo_n "(cached) " >&6
6467else
6468 rm -f .libs 2>/dev/null
6469mkdir .libs 2>/dev/null
6470if test -d .libs; then
6471 lt_cv_objdir=.libs
6472else
6473 # MS-DOS does not allow filenames that begin with a dot.
6474 lt_cv_objdir=_libs
6475fi
6476rmdir .libs 2>/dev/null
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6479$as_echo "$lt_cv_objdir" >&6; }
6480objdir=$lt_cv_objdir
6481
6482
6483
6484
6485
6486cat >>confdefs.h <<_ACEOF
6487#define LT_OBJDIR "$lt_cv_objdir/"
6488_ACEOF
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506case $host_os in
6507aix3*)
6508 # AIX sometimes has problems with the GCC collect2 program. For some
6509 # reason, if we set the COLLECT_NAMES environment variable, the problems
6510 # vanish in a puff of smoke.
6511 if test "X${COLLECT_NAMES+set}" != Xset; then
6512 COLLECT_NAMES=
6513 export COLLECT_NAMES
6514 fi
6515 ;;
6516esac
6517
6518# Sed substitution that helps us do robust quoting. It backslashifies
6519# metacharacters that are still active within double-quoted strings.
6520sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6521
6522# Same as above, but do not quote variable references.
6523double_quote_subst='s/\(["`\\]\)/\\\1/g'
6524
6525# Sed substitution to delay expansion of an escaped shell variable in a
6526# double_quote_subst'ed string.
6527delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6528
6529# Sed substitution to delay expansion of an escaped single quote.
6530delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6531
6532# Sed substitution to avoid accidental globbing in evaled expressions
6533no_glob_subst='s/\*/\\\*/g'
6534
6535# Global variables:
6536ofile=libtool
6537can_build_shared=yes
6538
6539# All known linkers require a `.a' archive for static linking (except MSVC,
6540# which needs '.lib').
6541libext=a
6542
6543with_gnu_ld="$lt_cv_prog_gnu_ld"
6544
6545old_CC="$CC"
6546old_CFLAGS="$CFLAGS"
6547
6548# Set sane defaults for various variables
6549test -z "$CC" && CC=cc
6550test -z "$LTCC" && LTCC=$CC
6551test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6552test -z "$LD" && LD=ld
6553test -z "$ac_objext" && ac_objext=o
6554
6555for cc_temp in $compiler""; do
6556 case $cc_temp in
6557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6559 \-*) ;;
6560 *) break;;
6561 esac
6562done
6563cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6564
6565
6566# Only perform the check for file, if the check method requires it
6567test -z "$MAGIC_CMD" && MAGIC_CMD=file
6568case $deplibs_check_method in
6569file_magic*)
6570 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6572$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6573if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575else
6576 case $MAGIC_CMD in
6577[\\/*] | ?:[\\/]*)
6578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6579 ;;
6580*)
6581 lt_save_MAGIC_CMD="$MAGIC_CMD"
6582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6583 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6584 for ac_dir in $ac_dummy; do
6585 IFS="$lt_save_ifs"
6586 test -z "$ac_dir" && ac_dir=.
6587 if test -f $ac_dir/${ac_tool_prefix}file; then
6588 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6589 if test -n "$file_magic_test_file"; then
6590 case $deplibs_check_method in
6591 "file_magic "*)
6592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6595 $EGREP "$file_magic_regex" > /dev/null; then
6596 :
6597 else
6598 cat <<_LT_EOF 1>&2
6599
6600*** Warning: the command libtool uses to detect shared libraries,
6601*** $file_magic_cmd, produces output that libtool cannot recognize.
6602*** The result is that libtool may fail to recognize shared libraries
6603*** as such. This will affect the creation of libtool libraries that
6604*** depend on shared libraries, but programs linked with such libtool
6605*** libraries will work regardless of this problem. Nevertheless, you
6606*** may want to report the problem to your system manager and/or to
6607*** bug-libtool@gnu.org
6608
6609_LT_EOF
6610 fi ;;
6611 esac
6612 fi
6613 break
6614 fi
6615 done
6616 IFS="$lt_save_ifs"
6617 MAGIC_CMD="$lt_save_MAGIC_CMD"
6618 ;;
6619esac
6620fi
6621
6622MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6623if test -n "$MAGIC_CMD"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6625$as_echo "$MAGIC_CMD" >&6; }
6626else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631
6632
6633
6634
6635if test -z "$lt_cv_path_MAGIC_CMD"; then
6636 if test -n "$ac_tool_prefix"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6638$as_echo_n "checking for file... " >&6; }
6639if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641else
6642 case $MAGIC_CMD in
6643[\\/*] | ?:[\\/]*)
6644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6645 ;;
6646*)
6647 lt_save_MAGIC_CMD="$MAGIC_CMD"
6648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6650 for ac_dir in $ac_dummy; do
6651 IFS="$lt_save_ifs"
6652 test -z "$ac_dir" && ac_dir=.
6653 if test -f $ac_dir/file; then
6654 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6655 if test -n "$file_magic_test_file"; then
6656 case $deplibs_check_method in
6657 "file_magic "*)
6658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6661 $EGREP "$file_magic_regex" > /dev/null; then
6662 :
6663 else
6664 cat <<_LT_EOF 1>&2
6665
6666*** Warning: the command libtool uses to detect shared libraries,
6667*** $file_magic_cmd, produces output that libtool cannot recognize.
6668*** The result is that libtool may fail to recognize shared libraries
6669*** as such. This will affect the creation of libtool libraries that
6670*** depend on shared libraries, but programs linked with such libtool
6671*** libraries will work regardless of this problem. Nevertheless, you
6672*** may want to report the problem to your system manager and/or to
6673*** bug-libtool@gnu.org
6674
6675_LT_EOF
6676 fi ;;
6677 esac
6678 fi
6679 break
6680 fi
6681 done
6682 IFS="$lt_save_ifs"
6683 MAGIC_CMD="$lt_save_MAGIC_CMD"
6684 ;;
6685esac
6686fi
6687
6688MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6689if test -n "$MAGIC_CMD"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6691$as_echo "$MAGIC_CMD" >&6; }
6692else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694$as_echo "no" >&6; }
6695fi
6696
6697
6698 else
6699 MAGIC_CMD=:
6700 fi
6701fi
6702
6703 fi
6704 ;;
6705esac
6706
6707# Use C for the default configuration in the libtool script
6708
6709lt_save_CC="$CC"
6710ac_ext=c
6711ac_cpp='$CPP $CPPFLAGS'
6712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714ac_compiler_gnu=$ac_cv_c_compiler_gnu
6715
6716
6717# Source file extension for C test sources.
6718ac_ext=c
6719
6720# Object file extension for compiled C test sources.
6721objext=o
6722objext=$objext
6723
6724# Code to be used in simple compile tests
6725lt_simple_compile_test_code="int some_variable = 0;"
6726
6727# Code to be used in simple link tests
6728lt_simple_link_test_code='int main(){return(0);}'
6729
6730
6731
6732
6733
6734
6735
6736# If no C compiler was specified, use CC.
6737LTCC=${LTCC-"$CC"}
6738
6739# If no C compiler flags were specified, use CFLAGS.
6740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6741
6742# Allow CC to be a program name with arguments.
6743compiler=$CC
6744
6745# Save the default compiler, since it gets overwritten when the other
6746# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6747compiler_DEFAULT=$CC
6748
6749# save warnings/boilerplate of simple test code
6750ac_outfile=conftest.$ac_objext
6751echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6753_lt_compiler_boilerplate=`cat conftest.err`
6754$RM conftest*
6755
6756ac_outfile=conftest.$ac_objext
6757echo "$lt_simple_link_test_code" >conftest.$ac_ext
6758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6759_lt_linker_boilerplate=`cat conftest.err`
6760$RM -r conftest*
6761
6762
6763if test -n "$compiler"; then
6764
6765lt_prog_compiler_no_builtin_flag=
6766
6767if test "$GCC" = yes; then
6768 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6771$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6772if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774else
6775 lt_cv_prog_compiler_rtti_exceptions=no
6776 ac_outfile=conftest.$ac_objext
6777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6778 lt_compiler_flag="-fno-rtti -fno-exceptions"
6779 # Insert the option either (1) after the last *FLAGS variable, or
6780 # (2) before a word containing "conftest.", or (3) at the end.
6781 # Note that $ac_compile itself does not contain backslashes and begins
6782 # with a dollar sign (not a hyphen), so the echo should work correctly.
6783 # The option is referenced via a variable to avoid confusing sed.
6784 lt_compile=`echo "$ac_compile" | $SED \
6785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6787 -e 's:$: $lt_compiler_flag:'`
27557508 6788 (eval echo "\"\$as_me:6788: $lt_compile\"" >&5)
9c60689e
DWT
6789 (eval "$lt_compile" 2>conftest.err)
6790 ac_status=$?
6791 cat conftest.err >&5
27557508 6792 echo "$as_me:6792: \$? = $ac_status" >&5
9c60689e
DWT
6793 if (exit $ac_status) && test -s "$ac_outfile"; then
6794 # The compiler can only warn and ignore the option if not recognized
6795 # So say no if there are warnings other than the usual output.
6796 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6799 lt_cv_prog_compiler_rtti_exceptions=yes
6800 fi
6801 fi
6802 $RM conftest*
6803
6804fi
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6806$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6807
6808if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6809 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6810else
6811 :
6812fi
6813
6814fi
6815
6816
6817
6818
6819
6820
6821 lt_prog_compiler_wl=
6822lt_prog_compiler_pic=
6823lt_prog_compiler_static=
6824
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6826$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6827
6828 if test "$GCC" = yes; then
6829 lt_prog_compiler_wl='-Wl,'
6830 lt_prog_compiler_static='-static'
6831
6832 case $host_os in
6833 aix*)
6834 # All AIX code is PIC.
6835 if test "$host_cpu" = ia64; then
6836 # AIX 5 now supports IA64 processor
6837 lt_prog_compiler_static='-Bstatic'
6838 fi
6839 ;;
6840
6841 amigaos*)
6842 case $host_cpu in
6843 powerpc)
6844 # see comment about AmigaOS4 .so support
6845 lt_prog_compiler_pic='-fPIC'
6846 ;;
6847 m68k)
6848 # FIXME: we need at least 68020 code to build shared libraries, but
6849 # adding the `-m68020' flag to GCC prevents building anything better,
6850 # like `-m68040'.
6851 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6852 ;;
6853 esac
6854 ;;
6855
6856 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6857 # PIC is the default for these OSes.
6858 ;;
6859
6860 mingw* | cygwin* | pw32* | os2* | cegcc*)
6861 # This hack is so that the source file can tell whether it is being
6862 # built for inclusion in a dll (and should export symbols for example).
6863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6864 # (--disable-auto-import) libraries
6865 lt_prog_compiler_pic='-DDLL_EXPORT'
6866 ;;
6867
6868 darwin* | rhapsody*)
6869 # PIC is the default on this platform
6870 # Common symbols not allowed in MH_DYLIB files
6871 lt_prog_compiler_pic='-fno-common'
6872 ;;
6873
6874 hpux*)
6875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6877 # sets the default TLS model and affects inlining.
6878 case $host_cpu in
6879 hppa*64*)
6880 # +Z the default
6881 ;;
6882 *)
6883 lt_prog_compiler_pic='-fPIC'
6884 ;;
6885 esac
6886 ;;
6887
6888 interix[3-9]*)
6889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6890 # Instead, we relocate shared libraries at runtime.
6891 ;;
6892
6893 msdosdjgpp*)
6894 # Just because we use GCC doesn't mean we suddenly get shared libraries
6895 # on systems that don't support them.
6896 lt_prog_compiler_can_build_shared=no
6897 enable_shared=no
6898 ;;
6899
6900 *nto* | *qnx*)
6901 # QNX uses GNU C++, but need to define -shared option too, otherwise
6902 # it will coredump.
6903 lt_prog_compiler_pic='-fPIC -shared'
6904 ;;
6905
6906 sysv4*MP*)
6907 if test -d /usr/nec; then
6908 lt_prog_compiler_pic=-Kconform_pic
6909 fi
6910 ;;
6911
6912 *)
6913 lt_prog_compiler_pic='-fPIC'
6914 ;;
6915 esac
6916 else
6917 # PORTME Check for flag to pass linker flags through the system compiler.
6918 case $host_os in
6919 aix*)
6920 lt_prog_compiler_wl='-Wl,'
6921 if test "$host_cpu" = ia64; then
6922 # AIX 5 now supports IA64 processor
6923 lt_prog_compiler_static='-Bstatic'
6924 else
6925 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6926 fi
6927 ;;
6928
6929 mingw* | cygwin* | pw32* | os2* | cegcc*)
6930 # This hack is so that the source file can tell whether it is being
6931 # built for inclusion in a dll (and should export symbols for example).
6932 lt_prog_compiler_pic='-DDLL_EXPORT'
6933 ;;
6934
6935 hpux9* | hpux10* | hpux11*)
6936 lt_prog_compiler_wl='-Wl,'
6937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6938 # not for PA HP-UX.
6939 case $host_cpu in
6940 hppa*64*|ia64*)
6941 # +Z the default
6942 ;;
6943 *)
6944 lt_prog_compiler_pic='+Z'
6945 ;;
6946 esac
6947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6948 lt_prog_compiler_static='${wl}-a ${wl}archive'
6949 ;;
6950
6951 irix5* | irix6* | nonstopux*)
6952 lt_prog_compiler_wl='-Wl,'
6953 # PIC (with -KPIC) is the default.
6954 lt_prog_compiler_static='-non_shared'
6955 ;;
6956
6957 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6958 case $cc_basename in
6959 # old Intel for x86_64 which still supported -KPIC.
6960 ecc*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-static'
6964 ;;
6965 # icc used to be incompatible with GCC.
6966 # ICC 10 doesn't accept -KPIC any more.
6967 icc* | ifort*)
6968 lt_prog_compiler_wl='-Wl,'
6969 lt_prog_compiler_pic='-fPIC'
6970 lt_prog_compiler_static='-static'
6971 ;;
6972 # Lahey Fortran 8.1.
6973 lf95*)
6974 lt_prog_compiler_wl='-Wl,'
6975 lt_prog_compiler_pic='--shared'
6976 lt_prog_compiler_static='--static'
6977 ;;
6978 pgcc* | pgf77* | pgf90* | pgf95*)
6979 # Portland Group compilers (*not* the Pentium gcc compiler,
6980 # which looks to be a dead project)
6981 lt_prog_compiler_wl='-Wl,'
6982 lt_prog_compiler_pic='-fpic'
6983 lt_prog_compiler_static='-Bstatic'
6984 ;;
6985 ccc*)
6986 lt_prog_compiler_wl='-Wl,'
6987 # All Alpha code is PIC.
6988 lt_prog_compiler_static='-non_shared'
6989 ;;
6990 xl*)
6991 # IBM XL C 8.0/Fortran 10.1 on PPC
6992 lt_prog_compiler_wl='-Wl,'
6993 lt_prog_compiler_pic='-qpic'
6994 lt_prog_compiler_static='-qstaticlink'
6995 ;;
6996 *)
6997 case `$CC -V 2>&1 | sed 5q` in
6998 *Sun\ C*)
6999 # Sun C 5.9
7000 lt_prog_compiler_pic='-KPIC'
7001 lt_prog_compiler_static='-Bstatic'
7002 lt_prog_compiler_wl='-Wl,'
7003 ;;
7004 *Sun\ F*)
7005 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7006 lt_prog_compiler_pic='-KPIC'
7007 lt_prog_compiler_static='-Bstatic'
7008 lt_prog_compiler_wl=''
7009 ;;
7010 esac
7011 ;;
7012 esac
7013 ;;
7014
7015 newsos6)
7016 lt_prog_compiler_pic='-KPIC'
7017 lt_prog_compiler_static='-Bstatic'
7018 ;;
7019
7020 *nto* | *qnx*)
7021 # QNX uses GNU C++, but need to define -shared option too, otherwise
7022 # it will coredump.
7023 lt_prog_compiler_pic='-fPIC -shared'
7024 ;;
7025
7026 osf3* | osf4* | osf5*)
7027 lt_prog_compiler_wl='-Wl,'
7028 # All OSF/1 code is PIC.
7029 lt_prog_compiler_static='-non_shared'
7030 ;;
7031
7032 rdos*)
7033 lt_prog_compiler_static='-non_shared'
7034 ;;
7035
7036 solaris*)
7037 lt_prog_compiler_pic='-KPIC'
7038 lt_prog_compiler_static='-Bstatic'
7039 case $cc_basename in
7040 f77* | f90* | f95*)
7041 lt_prog_compiler_wl='-Qoption ld ';;
7042 *)
7043 lt_prog_compiler_wl='-Wl,';;
7044 esac
7045 ;;
7046
7047 sunos4*)
7048 lt_prog_compiler_wl='-Qoption ld '
7049 lt_prog_compiler_pic='-PIC'
7050 lt_prog_compiler_static='-Bstatic'
7051 ;;
7052
7053 sysv4 | sysv4.2uw2* | sysv4.3*)
7054 lt_prog_compiler_wl='-Wl,'
7055 lt_prog_compiler_pic='-KPIC'
7056 lt_prog_compiler_static='-Bstatic'
7057 ;;
7058
7059 sysv4*MP*)
7060 if test -d /usr/nec ;then
7061 lt_prog_compiler_pic='-Kconform_pic'
7062 lt_prog_compiler_static='-Bstatic'
7063 fi
7064 ;;
7065
7066 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7067 lt_prog_compiler_wl='-Wl,'
7068 lt_prog_compiler_pic='-KPIC'
7069 lt_prog_compiler_static='-Bstatic'
7070 ;;
7071
7072 unicos*)
7073 lt_prog_compiler_wl='-Wl,'
7074 lt_prog_compiler_can_build_shared=no
7075 ;;
7076
7077 uts4*)
7078 lt_prog_compiler_pic='-pic'
7079 lt_prog_compiler_static='-Bstatic'
7080 ;;
7081
7082 *)
7083 lt_prog_compiler_can_build_shared=no
7084 ;;
7085 esac
7086 fi
7087
7088case $host_os in
7089 # For platforms which do not support PIC, -DPIC is meaningless:
7090 *djgpp*)
7091 lt_prog_compiler_pic=
7092 ;;
7093 *)
7094 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7095 ;;
7096esac
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7098$as_echo "$lt_prog_compiler_pic" >&6; }
7099
7100
7101
7102
7103
7104
7105#
7106# Check to make sure the PIC flag actually works.
7107#
7108if test -n "$lt_prog_compiler_pic"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7110$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7111if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113else
7114 lt_cv_prog_compiler_pic_works=no
7115 ac_outfile=conftest.$ac_objext
7116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7118 # Insert the option either (1) after the last *FLAGS variable, or
7119 # (2) before a word containing "conftest.", or (3) at the end.
7120 # Note that $ac_compile itself does not contain backslashes and begins
7121 # with a dollar sign (not a hyphen), so the echo should work correctly.
7122 # The option is referenced via a variable to avoid confusing sed.
7123 lt_compile=`echo "$ac_compile" | $SED \
7124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7126 -e 's:$: $lt_compiler_flag:'`
27557508 7127 (eval echo "\"\$as_me:7127: $lt_compile\"" >&5)
9c60689e
DWT
7128 (eval "$lt_compile" 2>conftest.err)
7129 ac_status=$?
7130 cat conftest.err >&5
27557508 7131 echo "$as_me:7131: \$? = $ac_status" >&5
9c60689e
DWT
7132 if (exit $ac_status) && test -s "$ac_outfile"; then
7133 # The compiler can only warn and ignore the option if not recognized
7134 # So say no if there are warnings other than the usual output.
7135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7138 lt_cv_prog_compiler_pic_works=yes
7139 fi
7140 fi
7141 $RM conftest*
7142
7143fi
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7145$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7146
7147if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7148 case $lt_prog_compiler_pic in
7149 "" | " "*) ;;
7150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7151 esac
7152else
7153 lt_prog_compiler_pic=
7154 lt_prog_compiler_can_build_shared=no
7155fi
7156
7157fi
7158
7159
7160
7161
7162
7163
7164#
7165# Check to make sure the static flag actually works.
7166#
7167wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7169$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7170if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172else
7173 lt_cv_prog_compiler_static_works=no
7174 save_LDFLAGS="$LDFLAGS"
7175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7178 # The linker can only warn and ignore the option if not recognized
7179 # So say no if there are warnings
7180 if test -s conftest.err; then
7181 # Append any errors to the config.log.
7182 cat conftest.err 1>&5
7183 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7185 if diff conftest.exp conftest.er2 >/dev/null; then
7186 lt_cv_prog_compiler_static_works=yes
7187 fi
7188 else
7189 lt_cv_prog_compiler_static_works=yes
7190 fi
7191 fi
7192 $RM -r conftest*
7193 LDFLAGS="$save_LDFLAGS"
7194
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7197$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7198
7199if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7200 :
7201else
7202 lt_prog_compiler_static=
7203fi
7204
7205
7206
7207
7208
7209
7210
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7212$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7213if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7215else
7216 lt_cv_prog_compiler_c_o=no
7217 $RM -r conftest 2>/dev/null
7218 mkdir conftest
7219 cd conftest
7220 mkdir out
7221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7222
7223 lt_compiler_flag="-o out/conftest2.$ac_objext"
7224 # Insert the option either (1) after the last *FLAGS variable, or
7225 # (2) before a word containing "conftest.", or (3) at the end.
7226 # Note that $ac_compile itself does not contain backslashes and begins
7227 # with a dollar sign (not a hyphen), so the echo should work correctly.
7228 lt_compile=`echo "$ac_compile" | $SED \
7229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7231 -e 's:$: $lt_compiler_flag:'`
27557508 7232 (eval echo "\"\$as_me:7232: $lt_compile\"" >&5)
9c60689e
DWT
7233 (eval "$lt_compile" 2>out/conftest.err)
7234 ac_status=$?
7235 cat out/conftest.err >&5
27557508 7236 echo "$as_me:7236: \$? = $ac_status" >&5
9c60689e
DWT
7237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7238 then
7239 # The compiler can only warn and ignore the option if not recognized
7240 # So say no if there are warnings
7241 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7244 lt_cv_prog_compiler_c_o=yes
7245 fi
7246 fi
7247 chmod u+w . 2>&5
7248 $RM conftest*
7249 # SGI C++ compiler will create directory out/ii_files/ for
7250 # template instantiation
7251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7252 $RM out/* && rmdir out
7253 cd ..
7254 $RM -r conftest
7255 $RM conftest*
7256
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7259$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7260
7261
7262
7263
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7267$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7268if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270else
7271 lt_cv_prog_compiler_c_o=no
7272 $RM -r conftest 2>/dev/null
7273 mkdir conftest
7274 cd conftest
7275 mkdir out
7276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7277
7278 lt_compiler_flag="-o out/conftest2.$ac_objext"
7279 # Insert the option either (1) after the last *FLAGS variable, or
7280 # (2) before a word containing "conftest.", or (3) at the end.
7281 # Note that $ac_compile itself does not contain backslashes and begins
7282 # with a dollar sign (not a hyphen), so the echo should work correctly.
7283 lt_compile=`echo "$ac_compile" | $SED \
7284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7286 -e 's:$: $lt_compiler_flag:'`
27557508 7287 (eval echo "\"\$as_me:7287: $lt_compile\"" >&5)
9c60689e
DWT
7288 (eval "$lt_compile" 2>out/conftest.err)
7289 ac_status=$?
7290 cat out/conftest.err >&5
27557508 7291 echo "$as_me:7291: \$? = $ac_status" >&5
9c60689e
DWT
7292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7293 then
7294 # The compiler can only warn and ignore the option if not recognized
7295 # So say no if there are warnings
7296 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7299 lt_cv_prog_compiler_c_o=yes
7300 fi
7301 fi
7302 chmod u+w . 2>&5
7303 $RM conftest*
7304 # SGI C++ compiler will create directory out/ii_files/ for
7305 # template instantiation
7306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7307 $RM out/* && rmdir out
7308 cd ..
7309 $RM -r conftest
7310 $RM conftest*
7311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7314$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7315
7316
7317
7318
7319hard_links="nottested"
7320if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7321 # do not overwrite the value of need_locks provided by the user
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7323$as_echo_n "checking if we can lock with hard links... " >&6; }
7324 hard_links=yes
7325 $RM conftest*
7326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7327 touch conftest.a
7328 ln conftest.a conftest.b 2>&5 || hard_links=no
7329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7331$as_echo "$hard_links" >&6; }
7332 if test "$hard_links" = no; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7334$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7335 need_locks=warn
7336 fi
7337else
7338 need_locks=no
7339fi
7340
7341
7342
7343
7344
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7347$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7348
7349 runpath_var=
7350 allow_undefined_flag=
7351 always_export_symbols=no
7352 archive_cmds=
7353 archive_expsym_cmds=
7354 compiler_needs_object=no
7355 enable_shared_with_static_runtimes=no
7356 export_dynamic_flag_spec=
7357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7358 hardcode_automatic=no
7359 hardcode_direct=no
7360 hardcode_direct_absolute=no
7361 hardcode_libdir_flag_spec=
7362 hardcode_libdir_flag_spec_ld=
7363 hardcode_libdir_separator=
7364 hardcode_minus_L=no
7365 hardcode_shlibpath_var=unsupported
7366 inherit_rpath=no
7367 link_all_deplibs=unknown
7368 module_cmds=
7369 module_expsym_cmds=
7370 old_archive_from_new_cmds=
7371 old_archive_from_expsyms_cmds=
7372 thread_safe_flag_spec=
7373 whole_archive_flag_spec=
7374 # include_expsyms should be a list of space-separated symbols to be *always*
7375 # included in the symbol list
7376 include_expsyms=
7377 # exclude_expsyms can be an extended regexp of symbols to exclude
7378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7380 # as well as any symbol that contains `d'.
7381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7383 # platforms (ab)use it in PIC code, but their linkers get confused if
7384 # the symbol is explicitly referenced. Since portable code cannot
7385 # rely on this symbol name, it's probably fine to never include it in
7386 # preloaded symbol tables.
7387 # Exclude shared library initialization/finalization symbols.
7388 extract_expsyms_cmds=
7389
7390 case $host_os in
7391 cygwin* | mingw* | pw32* | cegcc*)
7392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7393 # When not using gcc, we currently assume that we are using
7394 # Microsoft Visual C++.
7395 if test "$GCC" != yes; then
7396 with_gnu_ld=no
7397 fi
7398 ;;
7399 interix*)
7400 # we just hope/assume this is gcc and not c89 (= MSVC++)
7401 with_gnu_ld=yes
7402 ;;
7403 openbsd*)
7404 with_gnu_ld=no
7405 ;;
7406 linux* | k*bsd*-gnu)
7407 link_all_deplibs=no
7408 ;;
7409 esac
7410
7411 ld_shlibs=yes
7412 if test "$with_gnu_ld" = yes; then
7413 # If archive_cmds runs LD, not CC, wlarc should be empty
7414 wlarc='${wl}'
7415
7416 # Set some defaults for GNU ld with shared library support. These
7417 # are reset later if shared libraries are not supported. Putting them
7418 # here allows them to be overridden if necessary.
7419 runpath_var=LD_RUN_PATH
7420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7421 export_dynamic_flag_spec='${wl}--export-dynamic'
7422 # ancient GNU ld didn't support --whole-archive et. al.
7423 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7424 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7425 else
7426 whole_archive_flag_spec=
7427 fi
7428 supports_anon_versioning=no
7429 case `$LD -v 2>&1` in
7430 *GNU\ gold*) supports_anon_versioning=yes ;;
7431 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7432 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7433 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7434 *\ 2.11.*) ;; # other 2.11 versions
7435 *) supports_anon_versioning=yes ;;
7436 esac
7437
7438 # See if GNU ld supports shared libraries.
7439 case $host_os in
7440 aix[3-9]*)
7441 # On AIX/PPC, the GNU linker is very broken
7442 if test "$host_cpu" != ia64; then
7443 ld_shlibs=no
7444 cat <<_LT_EOF 1>&2
7445
7446*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7447*** to be unable to reliably create shared libraries on AIX.
7448*** Therefore, libtool is disabling shared libraries support. If you
7449*** really care for shared libraries, you may want to modify your PATH
7450*** so that a non-GNU linker is found, and then restart.
7451
7452_LT_EOF
7453 fi
7454 ;;
7455
7456 amigaos*)
7457 case $host_cpu in
7458 powerpc)
7459 # see comment about AmigaOS4 .so support
7460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461 archive_expsym_cmds=''
7462 ;;
7463 m68k)
7464 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)'
7465 hardcode_libdir_flag_spec='-L$libdir'
7466 hardcode_minus_L=yes
7467 ;;
7468 esac
7469 ;;
7470
7471 beos*)
7472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7473 allow_undefined_flag=unsupported
7474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7475 # support --undefined. This deserves some investigation. FIXME
7476 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7477 else
7478 ld_shlibs=no
7479 fi
7480 ;;
7481
7482 cygwin* | mingw* | pw32* | cegcc*)
7483 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7484 # as there is no search path for DLLs.
7485 hardcode_libdir_flag_spec='-L$libdir'
7486 allow_undefined_flag=unsupported
7487 always_export_symbols=no
7488 enable_shared_with_static_runtimes=yes
7489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7490
7491 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7493 # If the export-symbols file already is a .def file (1st line
7494 # is EXPORTS), use it as is; otherwise, prepend...
7495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7496 cp $export_symbols $output_objdir/$soname.def;
7497 else
7498 echo EXPORTS > $output_objdir/$soname.def;
7499 cat $export_symbols >> $output_objdir/$soname.def;
7500 fi~
7501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7502 else
7503 ld_shlibs=no
7504 fi
7505 ;;
7506
7507 interix[3-9]*)
7508 hardcode_direct=no
7509 hardcode_shlibpath_var=no
7510 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7511 export_dynamic_flag_spec='${wl}-E'
7512 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7513 # Instead, shared libraries are loaded at an image base (0x10000000 by
7514 # default) and relocated if they conflict, which is a slow very memory
7515 # consuming and fragmenting process. To avoid this, we pick a random,
7516 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7517 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7518 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7519 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'
7520 ;;
7521
7522 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7523 tmp_diet=no
7524 if test "$host_os" = linux-dietlibc; then
7525 case $cc_basename in
7526 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7527 esac
7528 fi
7529 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7530 && test "$tmp_diet" = no
7531 then
7532 tmp_addflag=
7533 tmp_sharedflag='-shared'
7534 case $cc_basename,$host_cpu in
7535 pgcc*) # Portland Group C compiler
7536 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'
7537 tmp_addflag=' $pic_flag'
7538 ;;
7539 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7540 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'
7541 tmp_addflag=' $pic_flag -Mnomain' ;;
7542 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7543 tmp_addflag=' -i_dynamic' ;;
7544 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7545 tmp_addflag=' -i_dynamic -nofor_main' ;;
7546 ifc* | ifort*) # Intel Fortran compiler
7547 tmp_addflag=' -nofor_main' ;;
7548 lf95*) # Lahey Fortran 8.1
7549 whole_archive_flag_spec=
7550 tmp_sharedflag='--shared' ;;
7551 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7552 tmp_sharedflag='-qmkshrobj'
7553 tmp_addflag= ;;
7554 esac
7555 case `$CC -V 2>&1 | sed 5q` in
7556 *Sun\ C*) # Sun C 5.9
7557 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'
7558 compiler_needs_object=yes
7559 tmp_sharedflag='-G' ;;
7560 *Sun\ F*) # Sun Fortran 8.3
7561 tmp_sharedflag='-G' ;;
7562 esac
7563 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7564
7565 if test "x$supports_anon_versioning" = xyes; then
7566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7568 echo "local: *; };" >> $output_objdir/$libname.ver~
7569 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7570 fi
7571
7572 case $cc_basename in
7573 xlf*)
7574 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7575 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7576 hardcode_libdir_flag_spec=
7577 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7578 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7579 if test "x$supports_anon_versioning" = xyes; then
7580 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7581 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7582 echo "local: *; };" >> $output_objdir/$libname.ver~
7583 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7584 fi
7585 ;;
7586 esac
7587 else
7588 ld_shlibs=no
7589 fi
7590 ;;
7591
7592 netbsd* | netbsdelf*-gnu)
7593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7594 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7595 wlarc=
7596 else
7597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7599 fi
7600 ;;
7601
7602 solaris*)
7603 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7604 ld_shlibs=no
7605 cat <<_LT_EOF 1>&2
7606
7607*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7608*** create shared libraries on Solaris systems. Therefore, libtool
7609*** is disabling shared libraries support. We urge you to upgrade GNU
7610*** binutils to release 2.9.1 or newer. Another option is to modify
7611*** your PATH or compiler configuration so that the native linker is
7612*** used, and then restart.
7613
7614_LT_EOF
7615 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7618 else
7619 ld_shlibs=no
7620 fi
7621 ;;
7622
7623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7624 case `$LD -v 2>&1` in
7625 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7626 ld_shlibs=no
7627 cat <<_LT_EOF 1>&2
7628
7629*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7630*** reliably create shared libraries on SCO systems. Therefore, libtool
7631*** is disabling shared libraries support. We urge you to upgrade GNU
7632*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7633*** your PATH or compiler configuration so that the native linker is
7634*** used, and then restart.
7635
7636_LT_EOF
7637 ;;
7638 *)
7639 # For security reasons, it is highly recommended that you always
7640 # use absolute paths for naming shared libraries, and exclude the
7641 # DT_RUNPATH tag from executables and libraries. But doing so
7642 # requires that you compile everything twice, which is a pain.
7643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7647 else
7648 ld_shlibs=no
7649 fi
7650 ;;
7651 esac
7652 ;;
7653
7654 sunos4*)
7655 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7656 wlarc=
7657 hardcode_direct=yes
7658 hardcode_shlibpath_var=no
7659 ;;
7660
7661 *)
7662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7665 else
7666 ld_shlibs=no
7667 fi
7668 ;;
7669 esac
7670
7671 if test "$ld_shlibs" = no; then
7672 runpath_var=
7673 hardcode_libdir_flag_spec=
7674 export_dynamic_flag_spec=
7675 whole_archive_flag_spec=
7676 fi
7677 else
7678 # PORTME fill in a description of your system's linker (not GNU ld)
7679 case $host_os in
7680 aix3*)
7681 allow_undefined_flag=unsupported
7682 always_export_symbols=yes
7683 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'
7684 # Note: this linker hardcodes the directories in LIBPATH if there
7685 # are no directories specified by -L.
7686 hardcode_minus_L=yes
7687 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7688 # Neither direct hardcoding nor static linking is supported with a
7689 # broken collect2.
7690 hardcode_direct=unsupported
7691 fi
7692 ;;
7693
7694 aix[4-9]*)
7695 if test "$host_cpu" = ia64; then
7696 # On IA64, the linker does run time linking by default, so we don't
7697 # have to do anything special.
7698 aix_use_runtimelinking=no
7699 exp_sym_flag='-Bexport'
7700 no_entry_flag=""
7701 else
7702 # If we're using GNU nm, then we don't want the "-C" option.
7703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7705 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'
7706 else
7707 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'
7708 fi
7709 aix_use_runtimelinking=no
7710
7711 # Test if we are trying to use run time linking or normal
7712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7713 # need to do runtime linking.
7714 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7715 for ld_flag in $LDFLAGS; do
7716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7717 aix_use_runtimelinking=yes
7718 break
7719 fi
7720 done
7721 ;;
7722 esac
7723
7724 exp_sym_flag='-bexport'
7725 no_entry_flag='-bnoentry'
7726 fi
7727
7728 # When large executables or shared objects are built, AIX ld can
7729 # have problems creating the table of contents. If linking a library
7730 # or program results in "error TOC overflow" add -mminimal-toc to
7731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7733
7734 archive_cmds=''
7735 hardcode_direct=yes
7736 hardcode_direct_absolute=yes
7737 hardcode_libdir_separator=':'
7738 link_all_deplibs=yes
7739 file_list_spec='${wl}-f,'
7740
7741 if test "$GCC" = yes; then
7742 case $host_os in aix4.[012]|aix4.[012].*)
7743 # We only want to do this on AIX 4.2 and lower, the check
7744 # below for broken collect2 doesn't work under 4.3+
7745 collect2name=`${CC} -print-prog-name=collect2`
7746 if test -f "$collect2name" &&
7747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7748 then
7749 # We have reworked collect2
7750 :
7751 else
7752 # We have old collect2
7753 hardcode_direct=unsupported
7754 # It fails to find uninstalled libraries when the uninstalled
7755 # path is not listed in the libpath. Setting hardcode_minus_L
7756 # to unsupported forces relinking
7757 hardcode_minus_L=yes
7758 hardcode_libdir_flag_spec='-L$libdir'
7759 hardcode_libdir_separator=
7760 fi
7761 ;;
7762 esac
7763 shared_flag='-shared'
7764 if test "$aix_use_runtimelinking" = yes; then
7765 shared_flag="$shared_flag "'${wl}-G'
7766 fi
7767 link_all_deplibs=no
7768 else
7769 # not using gcc
7770 if test "$host_cpu" = ia64; then
7771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7772 # chokes on -Wl,-G. The following line is correct:
7773 shared_flag='-G'
7774 else
7775 if test "$aix_use_runtimelinking" = yes; then
7776 shared_flag='${wl}-G'
7777 else
7778 shared_flag='${wl}-bM:SRE'
7779 fi
7780 fi
7781 fi
7782
7783 export_dynamic_flag_spec='${wl}-bexpall'
7784 # It seems that -bexpall does not export symbols beginning with
7785 # underscore (_), so it is better to generate a list of symbols to export.
7786 always_export_symbols=yes
7787 if test "$aix_use_runtimelinking" = yes; then
7788 # Warning - without using the other runtime loading flags (-brtl),
7789 # -berok will link without error, but may produce a broken library.
7790 allow_undefined_flag='-berok'
7791 # Determine the default libpath from the value encoded in an
7792 # empty executable.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h. */
7795
7796int
7797main ()
7798{
7799
7800 ;
7801 return 0;
7802}
7803_ACEOF
7804if ac_fn_c_try_link "$LINENO"; then :
7805
7806lt_aix_libpath_sed='
7807 /Import File Strings/,/^$/ {
7808 /^0/ {
7809 s/^0 *\(.*\)$/\1/
7810 p
7811 }
7812 }'
7813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7814# Check for a 64-bit object if we didn't find anything.
7815if test -z "$aix_libpath"; then
7816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7817fi
7818fi
7819rm -f core conftest.err conftest.$ac_objext \
7820 conftest$ac_exeext conftest.$ac_ext
7821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7822
7823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7824 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"
7825 else
7826 if test "$host_cpu" = ia64; then
7827 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7828 allow_undefined_flag="-z nodefs"
7829 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"
7830 else
7831 # Determine the default libpath from the value encoded in an
7832 # empty executable.
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h. */
7835
7836int
7837main ()
7838{
7839
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844if ac_fn_c_try_link "$LINENO"; then :
7845
7846lt_aix_libpath_sed='
7847 /Import File Strings/,/^$/ {
7848 /^0/ {
7849 s/^0 *\(.*\)$/\1/
7850 p
7851 }
7852 }'
7853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7854# Check for a 64-bit object if we didn't find anything.
7855if test -z "$aix_libpath"; then
7856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7857fi
7858fi
7859rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7862
7863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7864 # Warning - without using the other run time loading flags,
7865 # -berok will link without error, but may produce a broken library.
7866 no_undefined_flag=' ${wl}-bernotok'
7867 allow_undefined_flag=' ${wl}-berok'
7868 # Exported symbols can be pulled into shared objects from archives
7869 whole_archive_flag_spec='$convenience'
7870 archive_cmds_need_lc=yes
7871 # This is similar to how AIX traditionally builds its shared libraries.
7872 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'
7873 fi
7874 fi
7875 ;;
7876
7877 amigaos*)
7878 case $host_cpu in
7879 powerpc)
7880 # see comment about AmigaOS4 .so support
7881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7882 archive_expsym_cmds=''
7883 ;;
7884 m68k)
7885 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)'
7886 hardcode_libdir_flag_spec='-L$libdir'
7887 hardcode_minus_L=yes
7888 ;;
7889 esac
7890 ;;
7891
7892 bsdi[45]*)
7893 export_dynamic_flag_spec=-rdynamic
7894 ;;
7895
7896 cygwin* | mingw* | pw32* | cegcc*)
7897 # When not using gcc, we currently assume that we are using
7898 # Microsoft Visual C++.
7899 # hardcode_libdir_flag_spec is actually meaningless, as there is
7900 # no search path for DLLs.
7901 hardcode_libdir_flag_spec=' '
7902 allow_undefined_flag=unsupported
7903 # Tell ltmain to make .lib files, not .a files.
7904 libext=lib
7905 # Tell ltmain to make .dll files, not .so files.
7906 shrext_cmds=".dll"
7907 # FIXME: Setting linknames here is a bad hack.
7908 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7909 # The linker will automatically build a .lib file if we build a DLL.
7910 old_archive_from_new_cmds='true'
7911 # FIXME: Should let the user specify the lib program.
7912 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7913 fix_srcfile_path='`cygpath -w "$srcfile"`'
7914 enable_shared_with_static_runtimes=yes
7915 ;;
7916
7917 darwin* | rhapsody*)
7918
7919
7920 archive_cmds_need_lc=no
7921 hardcode_direct=no
7922 hardcode_automatic=yes
7923 hardcode_shlibpath_var=unsupported
7924 whole_archive_flag_spec=''
7925 link_all_deplibs=yes
7926 allow_undefined_flag="$_lt_dar_allow_undefined"
7927 case $cc_basename in
7928 ifort*) _lt_dar_can_shared=yes ;;
7929 *) _lt_dar_can_shared=$GCC ;;
7930 esac
7931 if test "$_lt_dar_can_shared" = "yes"; then
7932 output_verbose_link_cmd=echo
7933 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7934 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7935 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}"
7936 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}"
7937
7938 else
7939 ld_shlibs=no
7940 fi
7941
7942 ;;
7943
7944 dgux*)
7945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7946 hardcode_libdir_flag_spec='-L$libdir'
7947 hardcode_shlibpath_var=no
7948 ;;
7949
7950 freebsd1*)
7951 ld_shlibs=no
7952 ;;
7953
7954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7955 # support. Future versions do this automatically, but an explicit c++rt0.o
7956 # does not break anything, and helps significantly (at the cost of a little
7957 # extra space).
7958 freebsd2.2*)
7959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7960 hardcode_libdir_flag_spec='-R$libdir'
7961 hardcode_direct=yes
7962 hardcode_shlibpath_var=no
7963 ;;
7964
7965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7966 freebsd2*)
7967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7968 hardcode_direct=yes
7969 hardcode_minus_L=yes
7970 hardcode_shlibpath_var=no
7971 ;;
7972
7973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7974 freebsd* | dragonfly*)
7975 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7976 hardcode_libdir_flag_spec='-R$libdir'
7977 hardcode_direct=yes
7978 hardcode_shlibpath_var=no
7979 ;;
7980
7981 hpux9*)
7982 if test "$GCC" = yes; then
7983 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'
7984 else
7985 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'
7986 fi
7987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7988 hardcode_libdir_separator=:
7989 hardcode_direct=yes
7990
7991 # hardcode_minus_L: Not really in the search PATH,
7992 # but as the default location of the library.
7993 hardcode_minus_L=yes
7994 export_dynamic_flag_spec='${wl}-E'
7995 ;;
7996
7997 hpux10*)
7998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7999 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8000 else
8001 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8002 fi
8003 if test "$with_gnu_ld" = no; then
8004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8005 hardcode_libdir_flag_spec_ld='+b $libdir'
8006 hardcode_libdir_separator=:
8007 hardcode_direct=yes
8008 hardcode_direct_absolute=yes
8009 export_dynamic_flag_spec='${wl}-E'
8010 # hardcode_minus_L: Not really in the search PATH,
8011 # but as the default location of the library.
8012 hardcode_minus_L=yes
8013 fi
8014 ;;
8015
8016 hpux11*)
8017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8018 case $host_cpu in
8019 hppa*64*)
8020 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8021 ;;
8022 ia64*)
8023 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8024 ;;
8025 *)
8026 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8027 ;;
8028 esac
8029 else
8030 case $host_cpu in
8031 hppa*64*)
8032 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8033 ;;
8034 ia64*)
8035 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8036 ;;
8037 *)
8038 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8039 ;;
8040 esac
8041 fi
8042 if test "$with_gnu_ld" = no; then
8043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8044 hardcode_libdir_separator=:
8045
8046 case $host_cpu in
8047 hppa*64*|ia64*)
8048 hardcode_direct=no
8049 hardcode_shlibpath_var=no
8050 ;;
8051 *)
8052 hardcode_direct=yes
8053 hardcode_direct_absolute=yes
8054 export_dynamic_flag_spec='${wl}-E'
8055
8056 # hardcode_minus_L: Not really in the search PATH,
8057 # but as the default location of the library.
8058 hardcode_minus_L=yes
8059 ;;
8060 esac
8061 fi
8062 ;;
8063
8064 irix5* | irix6* | nonstopux*)
8065 if test "$GCC" = yes; then
8066 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'
8067 # Try to use the -exported_symbol ld option, if it does not
8068 # work, assume that -exports_file does not work either and
8069 # implicitly export all symbols.
8070 save_LDFLAGS="$LDFLAGS"
8071 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h. */
8074int foo(void) {}
8075_ACEOF
8076if ac_fn_c_try_link "$LINENO"; then :
8077 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'
8078
8079fi
8080rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LDFLAGS="$save_LDFLAGS"
8083 else
8084 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'
8085 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'
8086 fi
8087 archive_cmds_need_lc='no'
8088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8089 hardcode_libdir_separator=:
8090 inherit_rpath=yes
8091 link_all_deplibs=yes
8092 ;;
8093
8094 netbsd* | netbsdelf*-gnu)
8095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8097 else
8098 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8099 fi
8100 hardcode_libdir_flag_spec='-R$libdir'
8101 hardcode_direct=yes
8102 hardcode_shlibpath_var=no
8103 ;;
8104
8105 newsos6)
8106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8107 hardcode_direct=yes
8108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8109 hardcode_libdir_separator=:
8110 hardcode_shlibpath_var=no
8111 ;;
8112
8113 *nto* | *qnx*)
8114 ;;
8115
8116 openbsd*)
8117 if test -f /usr/libexec/ld.so; then
8118 hardcode_direct=yes
8119 hardcode_shlibpath_var=no
8120 hardcode_direct_absolute=yes
8121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8123 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8124 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8125 export_dynamic_flag_spec='${wl}-E'
8126 else
8127 case $host_os in
8128 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8130 hardcode_libdir_flag_spec='-R$libdir'
8131 ;;
8132 *)
8133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8135 ;;
8136 esac
8137 fi
8138 else
8139 ld_shlibs=no
8140 fi
8141 ;;
8142
8143 os2*)
8144 hardcode_libdir_flag_spec='-L$libdir'
8145 hardcode_minus_L=yes
8146 allow_undefined_flag=unsupported
8147 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'
8148 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8149 ;;
8150
8151 osf3*)
8152 if test "$GCC" = yes; then
8153 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8154 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'
8155 else
8156 allow_undefined_flag=' -expect_unresolved \*'
8157 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'
8158 fi
8159 archive_cmds_need_lc='no'
8160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8161 hardcode_libdir_separator=:
8162 ;;
8163
8164 osf4* | osf5*) # as osf3* with the addition of -msym flag
8165 if test "$GCC" = yes; then
8166 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8167 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'
8168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8169 else
8170 allow_undefined_flag=' -expect_unresolved \*'
8171 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'
8172 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~
8173 $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'
8174
8175 # Both c and cxx compiler support -rpath directly
8176 hardcode_libdir_flag_spec='-rpath $libdir'
8177 fi
8178 archive_cmds_need_lc='no'
8179 hardcode_libdir_separator=:
8180 ;;
8181
8182 solaris*)
8183 no_undefined_flag=' -z defs'
8184 if test "$GCC" = yes; then
8185 wlarc='${wl}'
8186 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8187 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8188 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8189 else
8190 case `$CC -V 2>&1` in
8191 *"Compilers 5.0"*)
8192 wlarc=''
8193 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8195 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8196 ;;
8197 *)
8198 wlarc='${wl}'
8199 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8200 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8201 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8202 ;;
8203 esac
8204 fi
8205 hardcode_libdir_flag_spec='-R$libdir'
8206 hardcode_shlibpath_var=no
8207 case $host_os in
8208 solaris2.[0-5] | solaris2.[0-5].*) ;;
8209 *)
8210 # The compiler driver will combine and reorder linker options,
8211 # but understands `-z linker_flag'. GCC discards it without `$wl',
8212 # but is careful enough not to reorder.
8213 # Supported since Solaris 2.6 (maybe 2.5.1?)
8214 if test "$GCC" = yes; then
8215 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8216 else
8217 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8218 fi
8219 ;;
8220 esac
8221 link_all_deplibs=yes
8222 ;;
8223
8224 sunos4*)
8225 if test "x$host_vendor" = xsequent; then
8226 # Use $CC to link under sequent, because it throws in some extra .o
8227 # files that make .init and .fini sections work.
8228 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8229 else
8230 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8231 fi
8232 hardcode_libdir_flag_spec='-L$libdir'
8233 hardcode_direct=yes
8234 hardcode_minus_L=yes
8235 hardcode_shlibpath_var=no
8236 ;;
8237
8238 sysv4)
8239 case $host_vendor in
8240 sni)
8241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8242 hardcode_direct=yes # is this really true???
8243 ;;
8244 siemens)
8245 ## LD is ld it makes a PLAMLIB
8246 ## CC just makes a GrossModule.
8247 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8248 reload_cmds='$CC -r -o $output$reload_objs'
8249 hardcode_direct=no
8250 ;;
8251 motorola)
8252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8253 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8254 ;;
8255 esac
8256 runpath_var='LD_RUN_PATH'
8257 hardcode_shlibpath_var=no
8258 ;;
8259
8260 sysv4.3*)
8261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262 hardcode_shlibpath_var=no
8263 export_dynamic_flag_spec='-Bexport'
8264 ;;
8265
8266 sysv4*MP*)
8267 if test -d /usr/nec; then
8268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8269 hardcode_shlibpath_var=no
8270 runpath_var=LD_RUN_PATH
8271 hardcode_runpath_var=yes
8272 ld_shlibs=yes
8273 fi
8274 ;;
8275
8276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8277 no_undefined_flag='${wl}-z,text'
8278 archive_cmds_need_lc=no
8279 hardcode_shlibpath_var=no
8280 runpath_var='LD_RUN_PATH'
8281
8282 if test "$GCC" = yes; then
8283 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8285 else
8286 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8287 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8288 fi
8289 ;;
8290
8291 sysv5* | sco3.2v5* | sco5v6*)
8292 # Note: We can NOT use -z defs as we might desire, because we do not
8293 # link with -lc, and that would cause any symbols used from libc to
8294 # always be unresolved, which means just about no library would
8295 # ever link correctly. If we're not using GNU ld we use -z text
8296 # though, which does catch some bad symbols but isn't as heavy-handed
8297 # as -z defs.
8298 no_undefined_flag='${wl}-z,text'
8299 allow_undefined_flag='${wl}-z,nodefs'
8300 archive_cmds_need_lc=no
8301 hardcode_shlibpath_var=no
8302 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8303 hardcode_libdir_separator=':'
8304 link_all_deplibs=yes
8305 export_dynamic_flag_spec='${wl}-Bexport'
8306 runpath_var='LD_RUN_PATH'
8307
8308 if test "$GCC" = yes; then
8309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8311 else
8312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8314 fi
8315 ;;
8316
8317 uts4*)
8318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 hardcode_shlibpath_var=no
8321 ;;
8322
8323 *)
8324 ld_shlibs=no
8325 ;;
8326 esac
8327
8328 if test x$host_vendor = xsni; then
8329 case $host in
8330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8331 export_dynamic_flag_spec='${wl}-Blargedynsym'
8332 ;;
8333 esac
8334 fi
8335 fi
8336
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8338$as_echo "$ld_shlibs" >&6; }
8339test "$ld_shlibs" = no && can_build_shared=no
8340
8341with_gnu_ld=$with_gnu_ld
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357#
8358# Do we need to explicitly link libc?
8359#
8360case "x$archive_cmds_need_lc" in
8361x|xyes)
8362 # Assume -lc should be added
8363 archive_cmds_need_lc=yes
8364
8365 if test "$enable_shared" = yes && test "$GCC" = yes; then
8366 case $archive_cmds in
8367 *'~'*)
8368 # FIXME: we may have to deal with multi-command sequences.
8369 ;;
8370 '$CC '*)
8371 # Test whether the compiler implicitly links with -lc since on some
8372 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8373 # to ld, don't add -lc before -lgcc.
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8375$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8376 $RM conftest*
8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
8379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8380 (eval $ac_compile) 2>&5
8381 ac_status=$?
8382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8383 test $ac_status = 0; } 2>conftest.err; then
8384 soname=conftest
8385 lib=conftest
8386 libobjs=conftest.$ac_objext
8387 deplibs=
8388 wl=$lt_prog_compiler_wl
8389 pic_flag=$lt_prog_compiler_pic
8390 compiler_flags=-v
8391 linker_flags=-v
8392 verstring=
8393 output_objdir=.
8394 libname=conftest
8395 lt_save_allow_undefined_flag=$allow_undefined_flag
8396 allow_undefined_flag=
8397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8398 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8399 ac_status=$?
8400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8401 test $ac_status = 0; }
8402 then
8403 archive_cmds_need_lc=no
8404 else
8405 archive_cmds_need_lc=yes
8406 fi
8407 allow_undefined_flag=$lt_save_allow_undefined_flag
8408 else
8409 cat conftest.err 1>&5
8410 fi
8411 $RM conftest*
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8413$as_echo "$archive_cmds_need_lc" >&6; }
8414 ;;
8415 esac
8416 fi
8417 ;;
8418esac
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8577$as_echo_n "checking dynamic linker characteristics... " >&6; }
8578
8579if test "$GCC" = yes; then
8580 case $host_os in
8581 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8582 *) lt_awk_arg="/^libraries:/" ;;
8583 esac
8584 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8585 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8586 # if the path contains ";" then we assume it to be the separator
8587 # otherwise default to the standard path separator (i.e. ":") - it is
8588 # assumed that no part of a normal pathname contains ";" but that should
8589 # okay in the real world where ";" in dirpaths is itself problematic.
8590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8591 else
8592 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8593 fi
8594 # Ok, now we have the path, separated by spaces, we can step through it
8595 # and add multilib dir if necessary.
8596 lt_tmp_lt_search_path_spec=
8597 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8598 for lt_sys_path in $lt_search_path_spec; do
8599 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8601 else
8602 test -d "$lt_sys_path" && \
8603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8604 fi
8605 done
8606 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8607BEGIN {RS=" "; FS="/|\n";} {
8608 lt_foo="";
8609 lt_count=0;
8610 for (lt_i = NF; lt_i > 0; lt_i--) {
8611 if ($lt_i != "" && $lt_i != ".") {
8612 if ($lt_i == "..") {
8613 lt_count++;
8614 } else {
8615 if (lt_count == 0) {
8616 lt_foo="/" $lt_i lt_foo;
8617 } else {
8618 lt_count--;
8619 }
8620 }
8621 }
8622 }
8623 if (lt_foo != "") { lt_freq[lt_foo]++; }
8624 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8625}'`
8626 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8627else
8628 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8629fi
8630library_names_spec=
8631libname_spec='lib$name'
8632soname_spec=
8633shrext_cmds=".so"
8634postinstall_cmds=
8635postuninstall_cmds=
8636finish_cmds=
8637finish_eval=
8638shlibpath_var=
8639shlibpath_overrides_runpath=unknown
8640version_type=none
8641dynamic_linker="$host_os ld.so"
8642sys_lib_dlsearch_path_spec="/lib /usr/lib"
8643need_lib_prefix=unknown
8644hardcode_into_libs=no
8645
8646# when you set need_version to no, make sure it does not cause -set_version
8647# flags to be left without arguments
8648need_version=unknown
8649
8650case $host_os in
8651aix3*)
8652 version_type=linux
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8654 shlibpath_var=LIBPATH
8655
8656 # AIX 3 has no versioning support, so we append a major version to the name.
8657 soname_spec='${libname}${release}${shared_ext}$major'
8658 ;;
8659
8660aix[4-9]*)
8661 version_type=linux
8662 need_lib_prefix=no
8663 need_version=no
8664 hardcode_into_libs=yes
8665 if test "$host_cpu" = ia64; then
8666 # AIX 5 supports IA64
8667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 else
8670 # With GCC up to 2.95.x, collect2 would create an import file
8671 # for dependence libraries. The import file would start with
8672 # the line `#! .'. This would cause the generated library to
8673 # depend on `.', always an invalid library. This was fixed in
8674 # development snapshots of GCC prior to 3.0.
8675 case $host_os in
8676 aix4 | aix4.[01] | aix4.[01].*)
8677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8678 echo ' yes '
8679 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8680 :
8681 else
8682 can_build_shared=no
8683 fi
8684 ;;
8685 esac
8686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8687 # soname into executable. Probably we can add versioning support to
8688 # collect2, so additional links can be useful in future.
8689 if test "$aix_use_runtimelinking" = yes; then
8690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8691 # instead of lib<name>.a to let people know that these are not
8692 # typical AIX shared libraries.
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694 else
8695 # We preserve .a as extension for shared libraries through AIX4.2
8696 # and later when we are not doing run time linking.
8697 library_names_spec='${libname}${release}.a $libname.a'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 fi
8700 shlibpath_var=LIBPATH
8701 fi
8702 ;;
8703
8704amigaos*)
8705 case $host_cpu in
8706 powerpc)
8707 # Since July 2007 AmigaOS4 officially supports .so libraries.
8708 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8710 ;;
8711 m68k)
8712 library_names_spec='$libname.ixlibrary $libname.a'
8713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8714 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'
8715 ;;
8716 esac
8717 ;;
8718
8719beos*)
8720 library_names_spec='${libname}${shared_ext}'
8721 dynamic_linker="$host_os ld.so"
8722 shlibpath_var=LIBRARY_PATH
8723 ;;
8724
8725bsdi[45]*)
8726 version_type=linux
8727 need_version=no
8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8729 soname_spec='${libname}${release}${shared_ext}$major'
8730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8734 # the default ld.so.conf also contains /usr/contrib/lib and
8735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8736 # libtool to hard-code these into programs
8737 ;;
8738
8739cygwin* | mingw* | pw32* | cegcc*)
8740 version_type=windows
8741 shrext_cmds=".dll"
8742 need_version=no
8743 need_lib_prefix=no
8744
8745 case $GCC,$host_os in
8746 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8747 library_names_spec='$libname.dll.a'
8748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8749 postinstall_cmds='base_file=`basename \${file}`~
8750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8751 dldir=$destdir/`dirname \$dlpath`~
8752 test -d \$dldir || mkdir -p \$dldir~
8753 $install_prog $dir/$dlname \$dldir/$dlname~
8754 chmod a+x \$dldir/$dlname~
8755 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8756 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8757 fi'
8758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8759 dlpath=$dir/\$dldll~
8760 $RM \$dlpath'
8761 shlibpath_overrides_runpath=yes
8762
8763 case $host_os in
8764 cygwin*)
8765 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8767 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8768 ;;
8769 mingw* | cegcc*)
8770 # MinGW DLLs use traditional 'lib' prefix
8771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8773 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8774 # It is most probably a Windows format PATH printed by
8775 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8776 # path with ; separators, and with drive letters. We can handle the
8777 # drive letters (cygwin fileutils understands them), so leave them,
8778 # especially as we might pass files found there to a mingw objdump,
8779 # which wouldn't understand a cygwinified path. Ahh.
8780 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8781 else
8782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8783 fi
8784 ;;
8785 pw32*)
8786 # pw32 DLLs use 'pw' prefix rather than 'lib'
8787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788 ;;
8789 esac
8790 ;;
8791
8792 *)
8793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8794 ;;
8795 esac
8796 dynamic_linker='Win32 ld.exe'
8797 # FIXME: first we should search . and the directory the executable is in
8798 shlibpath_var=PATH
8799 ;;
8800
8801darwin* | rhapsody*)
8802 dynamic_linker="$host_os dyld"
8803 version_type=darwin
8804 need_lib_prefix=no
8805 need_version=no
8806 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8807 soname_spec='${libname}${release}${major}$shared_ext'
8808 shlibpath_overrides_runpath=yes
8809 shlibpath_var=DYLD_LIBRARY_PATH
8810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8811
8812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8814 ;;
8815
8816dgux*)
8817 version_type=linux
8818 need_lib_prefix=no
8819 need_version=no
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 shlibpath_var=LD_LIBRARY_PATH
8823 ;;
8824
8825freebsd1*)
8826 dynamic_linker=no
8827 ;;
8828
8829freebsd* | dragonfly*)
8830 # DragonFly does not have aout. When/if they implement a new
8831 # versioning mechanism, adjust this.
8832 if test -x /usr/bin/objformat; then
8833 objformat=`/usr/bin/objformat`
8834 else
8835 case $host_os in
8836 freebsd[123]*) objformat=aout ;;
8837 *) objformat=elf ;;
8838 esac
8839 fi
8840 version_type=freebsd-$objformat
8841 case $version_type in
8842 freebsd-elf*)
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8844 need_version=no
8845 need_lib_prefix=no
8846 ;;
8847 freebsd-*)
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8849 need_version=yes
8850 ;;
8851 esac
8852 shlibpath_var=LD_LIBRARY_PATH
8853 case $host_os in
8854 freebsd2*)
8855 shlibpath_overrides_runpath=yes
8856 ;;
8857 freebsd3.[01]* | freebsdelf3.[01]*)
8858 shlibpath_overrides_runpath=yes
8859 hardcode_into_libs=yes
8860 ;;
8861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8863 shlibpath_overrides_runpath=no
8864 hardcode_into_libs=yes
8865 ;;
8866 *) # from 4.6 on, and DragonFly
8867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8869 ;;
8870 esac
8871 ;;
8872
8873gnu*)
8874 version_type=linux
8875 need_lib_prefix=no
8876 need_version=no
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 hardcode_into_libs=yes
8881 ;;
8882
8883hpux9* | hpux10* | hpux11*)
8884 # Give a soname corresponding to the major version so that dld.sl refuses to
8885 # link against other versions.
8886 version_type=sunos
8887 need_lib_prefix=no
8888 need_version=no
8889 case $host_cpu in
8890 ia64*)
8891 shrext_cmds='.so'
8892 hardcode_into_libs=yes
8893 dynamic_linker="$host_os dld.so"
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 if test "X$HPUX_IA64_MODE" = X32; then
8899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8900 else
8901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8902 fi
8903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904 ;;
8905 hppa*64*)
8906 shrext_cmds='.sl'
8907 hardcode_into_libs=yes
8908 dynamic_linker="$host_os dld.sl"
8909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915 ;;
8916 *)
8917 shrext_cmds='.sl'
8918 dynamic_linker="$host_os dld.sl"
8919 shlibpath_var=SHLIB_PATH
8920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 ;;
8924 esac
8925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8926 postinstall_cmds='chmod 555 $lib'
8927 ;;
8928
8929interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=no
8938 hardcode_into_libs=yes
8939 ;;
8940
8941irix5* | irix6* | nonstopux*)
8942 case $host_os in
8943 nonstopux*) version_type=nonstopux ;;
8944 *)
8945 if test "$lt_cv_prog_gnu_ld" = yes; then
8946 version_type=linux
8947 else
8948 version_type=irix
8949 fi ;;
8950 esac
8951 need_lib_prefix=no
8952 need_version=no
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8955 case $host_os in
8956 irix5* | nonstopux*)
8957 libsuff= shlibsuff=
8958 ;;
8959 *)
8960 case $LD in # libtool.m4 will add one of these switches to LD
8961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8962 libsuff= shlibsuff= libmagic=32-bit;;
8963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8964 libsuff=32 shlibsuff=N32 libmagic=N32;;
8965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8967 *) libsuff= shlibsuff= libmagic=never-match;;
8968 esac
8969 ;;
8970 esac
8971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8972 shlibpath_overrides_runpath=no
8973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8975 hardcode_into_libs=yes
8976 ;;
8977
8978# No shared lib support for Linux oldld, aout, or coff.
8979linux*oldld* | linux*aout* | linux*coff*)
8980 dynamic_linker=no
8981 ;;
8982
8983# This must be Linux ELF.
8984linux* | k*bsd*-gnu | kopensolaris*-gnu)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=no
8993 # Some binutils ld are patched to set DT_RUNPATH
8994 save_LDFLAGS=$LDFLAGS
8995 save_libdir=$libdir
8996 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8997 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h. */
9000
9001int
9002main ()
9003{
9004
9005 ;
9006 return 0;
9007}
9008_ACEOF
9009if ac_fn_c_try_link "$LINENO"; then :
9010 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9011 shlibpath_overrides_runpath=yes
9012fi
9013fi
9014rm -f core conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016 LDFLAGS=$save_LDFLAGS
9017 libdir=$save_libdir
9018
9019 # This implies no fast_install, which is unacceptable.
9020 # Some rework will be needed to allow for fast_install
9021 # before this can be enabled.
9022 hardcode_into_libs=yes
9023
9024 # Append ld.so.conf contents to the search path
9025 if test -f /etc/ld.so.conf; then
9026 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' ' '`
9027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9028 fi
9029
9030 # We used to test for /lib/ld.so.1 and disable shared libraries on
9031 # powerpc, because MkLinux only supported shared libraries with the
9032 # GNU dynamic linker. Since this was broken with cross compilers,
9033 # most powerpc-linux boxes support dynamic linking these days and
9034 # people can always --disable-shared, the test was removed, and we
9035 # assume the GNU/Linux dynamic linker is in use.
9036 dynamic_linker='GNU/Linux ld.so'
9037 ;;
9038
9039netbsdelf*-gnu)
9040 version_type=linux
9041 need_lib_prefix=no
9042 need_version=no
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=no
9047 hardcode_into_libs=yes
9048 dynamic_linker='NetBSD ld.elf_so'
9049 ;;
9050
9051netbsd*)
9052 version_type=sunos
9053 need_lib_prefix=no
9054 need_version=no
9055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9058 dynamic_linker='NetBSD (a.out) ld.so'
9059 else
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 dynamic_linker='NetBSD ld.elf_so'
9063 fi
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=yes
9066 hardcode_into_libs=yes
9067 ;;
9068
9069newsos6)
9070 version_type=linux
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 ;;
9075
9076*nto* | *qnx*)
9077 version_type=qnx
9078 need_lib_prefix=no
9079 need_version=no
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 dynamic_linker='ldqnx.so'
9086 ;;
9087
9088openbsd*)
9089 version_type=sunos
9090 sys_lib_dlsearch_path_spec="/usr/lib"
9091 need_lib_prefix=no
9092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9093 case $host_os in
9094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9095 *) need_version=no ;;
9096 esac
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9101 case $host_os in
9102 openbsd2.[89] | openbsd2.[89].*)
9103 shlibpath_overrides_runpath=no
9104 ;;
9105 *)
9106 shlibpath_overrides_runpath=yes
9107 ;;
9108 esac
9109 else
9110 shlibpath_overrides_runpath=yes
9111 fi
9112 ;;
9113
9114os2*)
9115 libname_spec='$name'
9116 shrext_cmds=".dll"
9117 need_lib_prefix=no
9118 library_names_spec='$libname${shared_ext} $libname.a'
9119 dynamic_linker='OS/2 ld.exe'
9120 shlibpath_var=LIBPATH
9121 ;;
9122
9123osf3* | osf4* | osf5*)
9124 version_type=osf
9125 need_lib_prefix=no
9126 need_version=no
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9132 ;;
9133
9134rdos*)
9135 dynamic_linker=no
9136 ;;
9137
9138solaris*)
9139 version_type=linux
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=yes
9146 hardcode_into_libs=yes
9147 # ldd complains unless libraries are executable
9148 postinstall_cmds='chmod +x $lib'
9149 ;;
9150
9151sunos4*)
9152 version_type=sunos
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes
9157 if test "$with_gnu_ld" = yes; then
9158 need_lib_prefix=no
9159 fi
9160 need_version=yes
9161 ;;
9162
9163sysv4 | sysv4.3*)
9164 version_type=linux
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 case $host_vendor in
9169 sni)
9170 shlibpath_overrides_runpath=no
9171 need_lib_prefix=no
9172 runpath_var=LD_RUN_PATH
9173 ;;
9174 siemens)
9175 need_lib_prefix=no
9176 ;;
9177 motorola)
9178 need_lib_prefix=no
9179 need_version=no
9180 shlibpath_overrides_runpath=no
9181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9182 ;;
9183 esac
9184 ;;
9185
9186sysv4*MP*)
9187 if test -d /usr/nec ;then
9188 version_type=linux
9189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9190 soname_spec='$libname${shared_ext}.$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 fi
9193 ;;
9194
9195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9196 version_type=freebsd-elf
9197 need_lib_prefix=no
9198 need_version=no
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=yes
9203 hardcode_into_libs=yes
9204 if test "$with_gnu_ld" = yes; then
9205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9206 else
9207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9208 case $host_os in
9209 sco3.2v5*)
9210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9211 ;;
9212 esac
9213 fi
9214 sys_lib_dlsearch_path_spec='/usr/lib'
9215 ;;
9216
9217tpf*)
9218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9219 version_type=linux
9220 need_lib_prefix=no
9221 need_version=no
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=no
9225 hardcode_into_libs=yes
9226 ;;
9227
9228uts4*)
9229 version_type=linux
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 ;;
9234
9235*)
9236 dynamic_linker=no
9237 ;;
9238esac
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9240$as_echo "$dynamic_linker" >&6; }
9241test "$dynamic_linker" = no && can_build_shared=no
9242
9243variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9244if test "$GCC" = yes; then
9245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9246fi
9247
9248if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9249 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9250fi
9251if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9252 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9253fi
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9342$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9343hardcode_action=
9344if test -n "$hardcode_libdir_flag_spec" ||
9345 test -n "$runpath_var" ||
9346 test "X$hardcode_automatic" = "Xyes" ; then
9347
9348 # We can hardcode non-existent directories.
9349 if test "$hardcode_direct" != no &&
9350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9351 # have to relink, otherwise we might link with an installed library
9352 # when we should be linking with a yet-to-be-installed one
9353 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9354 test "$hardcode_minus_L" != no; then
9355 # Linking always hardcodes the temporary library directory.
9356 hardcode_action=relink
9357 else
9358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9359 hardcode_action=immediate
9360 fi
9361else
9362 # We cannot hardcode anything, or else we can only hardcode existing
9363 # directories.
9364 hardcode_action=unsupported
9365fi
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9367$as_echo "$hardcode_action" >&6; }
9368
9369if test "$hardcode_action" = relink ||
9370 test "$inherit_rpath" = yes; then
9371 # Fast installation is not supported
9372 enable_fast_install=no
9373elif test "$shlibpath_overrides_runpath" = yes ||
9374 test "$enable_shared" = no; then
9375 # Fast installation is not necessary
9376 enable_fast_install=needless
9377fi
9378
9379
9380
9381
9382
9383
9384 if test "x$enable_dlopen" != xyes; then
9385 enable_dlopen=unknown
9386 enable_dlopen_self=unknown
9387 enable_dlopen_self_static=unknown
9388else
9389 lt_cv_dlopen=no
9390 lt_cv_dlopen_libs=
9391
9392 case $host_os in
9393 beos*)
9394 lt_cv_dlopen="load_add_on"
9395 lt_cv_dlopen_libs=
9396 lt_cv_dlopen_self=yes
9397 ;;
9398
9399 mingw* | pw32* | cegcc*)
9400 lt_cv_dlopen="LoadLibrary"
9401 lt_cv_dlopen_libs=
9402 ;;
9403
9404 cygwin*)
9405 lt_cv_dlopen="dlopen"
9406 lt_cv_dlopen_libs=
9407 ;;
9408
9409 darwin*)
9410 # if libdl is installed we need to link against it
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9412$as_echo_n "checking for dlopen in -ldl... " >&6; }
9413if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415else
9416 ac_check_lib_save_LIBS=$LIBS
9417LIBS="-ldl $LIBS"
9418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419/* end confdefs.h. */
9420
9421/* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9424#ifdef __cplusplus
9425extern "C"
9426#endif
9427char dlopen ();
9428int
9429main ()
9430{
9431return dlopen ();
9432 ;
9433 return 0;
9434}
9435_ACEOF
9436if ac_fn_c_try_link "$LINENO"; then :
9437 ac_cv_lib_dl_dlopen=yes
9438else
9439 ac_cv_lib_dl_dlopen=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443LIBS=$ac_check_lib_save_LIBS
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9446$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9447if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9449else
9450
9451 lt_cv_dlopen="dyld"
9452 lt_cv_dlopen_libs=
9453 lt_cv_dlopen_self=yes
9454
9455fi
9456
9457 ;;
9458
9459 *)
9460 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9461if test "x$ac_cv_func_shl_load" = x""yes; then :
9462 lt_cv_dlopen="shl_load"
9463else
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9465$as_echo_n "checking for shl_load in -ldld... " >&6; }
9466if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9468else
9469 ac_check_lib_save_LIBS=$LIBS
9470LIBS="-ldld $LIBS"
9471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h. */
9473
9474/* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9477#ifdef __cplusplus
9478extern "C"
9479#endif
9480char shl_load ();
9481int
9482main ()
9483{
9484return shl_load ();
9485 ;
9486 return 0;
9487}
9488_ACEOF
9489if ac_fn_c_try_link "$LINENO"; then :
9490 ac_cv_lib_dld_shl_load=yes
9491else
9492 ac_cv_lib_dld_shl_load=no
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496LIBS=$ac_check_lib_save_LIBS
9497fi
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9499$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9500if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9502else
9503 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9504if test "x$ac_cv_func_dlopen" = x""yes; then :
9505 lt_cv_dlopen="dlopen"
9506else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9508$as_echo_n "checking for dlopen in -ldl... " >&6; }
9509if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511else
9512 ac_check_lib_save_LIBS=$LIBS
9513LIBS="-ldl $LIBS"
9514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h. */
9516
9517/* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520#ifdef __cplusplus
9521extern "C"
9522#endif
9523char dlopen ();
9524int
9525main ()
9526{
9527return dlopen ();
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533 ac_cv_lib_dl_dlopen=yes
9534else
9535 ac_cv_lib_dl_dlopen=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539LIBS=$ac_check_lib_save_LIBS
9540fi
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9542$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9543if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9545else
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9547$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9548if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9550else
9551 ac_check_lib_save_LIBS=$LIBS
9552LIBS="-lsvld $LIBS"
9553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h. */
9555
9556/* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559#ifdef __cplusplus
9560extern "C"
9561#endif
9562char dlopen ();
9563int
9564main ()
9565{
9566return dlopen ();
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571if ac_fn_c_try_link "$LINENO"; then :
9572 ac_cv_lib_svld_dlopen=yes
9573else
9574 ac_cv_lib_svld_dlopen=no
9575fi
9576rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578LIBS=$ac_check_lib_save_LIBS
9579fi
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9581$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9582if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9584else
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9586$as_echo_n "checking for dld_link in -ldld... " >&6; }
9587if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589else
9590 ac_check_lib_save_LIBS=$LIBS
9591LIBS="-ldld $LIBS"
9592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h. */
9594
9595/* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598#ifdef __cplusplus
9599extern "C"
9600#endif
9601char dld_link ();
9602int
9603main ()
9604{
9605return dld_link ();
9606 ;
9607 return 0;
9608}
9609_ACEOF
9610if ac_fn_c_try_link "$LINENO"; then :
9611 ac_cv_lib_dld_dld_link=yes
9612else
9613 ac_cv_lib_dld_dld_link=no
9614fi
9615rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617LIBS=$ac_check_lib_save_LIBS
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9620$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9621if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9622 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9623fi
9624
9625
9626fi
9627
9628
9629fi
9630
9631
9632fi
9633
9634
9635fi
9636
9637
9638fi
9639
9640 ;;
9641 esac
9642
9643 if test "x$lt_cv_dlopen" != xno; then
9644 enable_dlopen=yes
9645 else
9646 enable_dlopen=no
9647 fi
9648
9649 case $lt_cv_dlopen in
9650 dlopen)
9651 save_CPPFLAGS="$CPPFLAGS"
9652 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9653
9654 save_LDFLAGS="$LDFLAGS"
9655 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9656
9657 save_LIBS="$LIBS"
9658 LIBS="$lt_cv_dlopen_libs $LIBS"
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9661$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9662if test "${lt_cv_dlopen_self+set}" = set; then :
9663 $as_echo_n "(cached) " >&6
9664else
9665 if test "$cross_compiling" = yes; then :
9666 lt_cv_dlopen_self=cross
9667else
9668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9669 lt_status=$lt_dlunknown
9670 cat > conftest.$ac_ext <<_LT_EOF
27557508 9671#line 9671 "configure"
9c60689e
DWT
9672#include "confdefs.h"
9673
9674#if HAVE_DLFCN_H
9675#include <dlfcn.h>
9676#endif
9677
9678#include <stdio.h>
9679
9680#ifdef RTLD_GLOBAL
9681# define LT_DLGLOBAL RTLD_GLOBAL
9682#else
9683# ifdef DL_GLOBAL
9684# define LT_DLGLOBAL DL_GLOBAL
9685# else
9686# define LT_DLGLOBAL 0
9687# endif
9688#endif
9689
9690/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9691 find out it does not work in some platform. */
9692#ifndef LT_DLLAZY_OR_NOW
9693# ifdef RTLD_LAZY
9694# define LT_DLLAZY_OR_NOW RTLD_LAZY
9695# else
9696# ifdef DL_LAZY
9697# define LT_DLLAZY_OR_NOW DL_LAZY
9698# else
9699# ifdef RTLD_NOW
9700# define LT_DLLAZY_OR_NOW RTLD_NOW
9701# else
9702# ifdef DL_NOW
9703# define LT_DLLAZY_OR_NOW DL_NOW
9704# else
9705# define LT_DLLAZY_OR_NOW 0
9706# endif
9707# endif
9708# endif
9709# endif
9710#endif
9711
9712void fnord() { int i=42;}
9713int main ()
9714{
9715 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9716 int status = $lt_dlunknown;
9717
9718 if (self)
9719 {
9720 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9721 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9722 /* dlclose (self); */
9723 }
9724 else
9725 puts (dlerror ());
9726
9727 return status;
9728}
9729_LT_EOF
9730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9731 (eval $ac_link) 2>&5
9732 ac_status=$?
9733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9734 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9735 (./conftest; exit; ) >&5 2>/dev/null
9736 lt_status=$?
9737 case x$lt_status in
9738 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9739 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9740 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9741 esac
9742 else :
9743 # compilation failed
9744 lt_cv_dlopen_self=no
9745 fi
9746fi
9747rm -fr conftest*
9748
9749
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9752$as_echo "$lt_cv_dlopen_self" >&6; }
9753
9754 if test "x$lt_cv_dlopen_self" = xyes; then
9755 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9757$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9758if test "${lt_cv_dlopen_self_static+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760else
9761 if test "$cross_compiling" = yes; then :
9762 lt_cv_dlopen_self_static=cross
9763else
9764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9765 lt_status=$lt_dlunknown
9766 cat > conftest.$ac_ext <<_LT_EOF
27557508 9767#line 9767 "configure"
9c60689e
DWT
9768#include "confdefs.h"
9769
9770#if HAVE_DLFCN_H
9771#include <dlfcn.h>
9772#endif
9773
9774#include <stdio.h>
9775
9776#ifdef RTLD_GLOBAL
9777# define LT_DLGLOBAL RTLD_GLOBAL
9778#else
9779# ifdef DL_GLOBAL
9780# define LT_DLGLOBAL DL_GLOBAL
9781# else
9782# define LT_DLGLOBAL 0
9783# endif
9784#endif
9785
9786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9787 find out it does not work in some platform. */
9788#ifndef LT_DLLAZY_OR_NOW
9789# ifdef RTLD_LAZY
9790# define LT_DLLAZY_OR_NOW RTLD_LAZY
9791# else
9792# ifdef DL_LAZY
9793# define LT_DLLAZY_OR_NOW DL_LAZY
9794# else
9795# ifdef RTLD_NOW
9796# define LT_DLLAZY_OR_NOW RTLD_NOW
9797# else
9798# ifdef DL_NOW
9799# define LT_DLLAZY_OR_NOW DL_NOW
9800# else
9801# define LT_DLLAZY_OR_NOW 0
9802# endif
9803# endif
9804# endif
9805# endif
9806#endif
9807
9808void fnord() { int i=42;}
9809int main ()
9810{
9811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9812 int status = $lt_dlunknown;
9813
9814 if (self)
9815 {
9816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9818 /* dlclose (self); */
9819 }
9820 else
9821 puts (dlerror ());
9822
9823 return status;
9824}
9825_LT_EOF
9826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9827 (eval $ac_link) 2>&5
9828 ac_status=$?
9829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9830 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9831 (./conftest; exit; ) >&5 2>/dev/null
9832 lt_status=$?
9833 case x$lt_status in
9834 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9835 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9836 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9837 esac
9838 else :
9839 # compilation failed
9840 lt_cv_dlopen_self_static=no
9841 fi
9842fi
9843rm -fr conftest*
9844
9845
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9848$as_echo "$lt_cv_dlopen_self_static" >&6; }
9849 fi
9850
9851 CPPFLAGS="$save_CPPFLAGS"
9852 LDFLAGS="$save_LDFLAGS"
9853 LIBS="$save_LIBS"
9854 ;;
9855 esac
9856
9857 case $lt_cv_dlopen_self in
9858 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9859 *) enable_dlopen_self=unknown ;;
9860 esac
9861
9862 case $lt_cv_dlopen_self_static in
9863 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9864 *) enable_dlopen_self_static=unknown ;;
9865 esac
9866fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884striplib=
9885old_striplib=
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9887$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9888if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9892$as_echo "yes" >&6; }
9893else
9894# FIXME - insert some real tests, host_os isn't really good enough
9895 case $host_os in
9896 darwin*)
9897 if test -n "$STRIP" ; then
9898 striplib="$STRIP -x"
9899 old_striplib="$STRIP -S"
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9901$as_echo "yes" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904$as_echo "no" >&6; }
9905 fi
9906 ;;
9907 *)
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909$as_echo "no" >&6; }
9910 ;;
9911 esac
9912fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 # Report which library types will actually be built
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9927$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9929$as_echo "$can_build_shared" >&6; }
9930
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9932$as_echo_n "checking whether to build shared libraries... " >&6; }
9933 test "$can_build_shared" = "no" && enable_shared=no
9934
9935 # On AIX, shared libraries and static libraries use the same namespace, and
9936 # are all built from PIC.
9937 case $host_os in
9938 aix3*)
9939 test "$enable_shared" = yes && enable_static=no
9940 if test -n "$RANLIB"; then
9941 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9942 postinstall_cmds='$RANLIB $lib'
9943 fi
9944 ;;
9945
9946 aix[4-9]*)
9947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9948 test "$enable_shared" = yes && enable_static=no
9949 fi
9950 ;;
9951 esac
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9953$as_echo "$enable_shared" >&6; }
9954
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9956$as_echo_n "checking whether to build static libraries... " >&6; }
9957 # Make sure either enable_shared or enable_static is yes.
9958 test "$enable_shared" = yes || enable_static=yes
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9960$as_echo "$enable_static" >&6; }
9961
9962
9963
9964
9965fi
9966ac_ext=c
9967ac_cpp='$CPP $CPPFLAGS'
9968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970ac_compiler_gnu=$ac_cv_c_compiler_gnu
9971
9972CC="$lt_save_CC"
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986 ac_config_commands="$ac_config_commands libtool"
9987
9988
9989
9990
9991# Only expand once:
9992
9993
3fd51f51
DWT
9994
9995
9996if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9997 if test -n "$ac_tool_prefix"; then
9998 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9999set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001$as_echo_n "checking for $ac_word... " >&6; }
10002if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10003 $as_echo_n "(cached) " >&6
10004else
10005 case $PKG_CONFIG in
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10008 ;;
10009 *)
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022 done
10023IFS=$as_save_IFS
10024
10025 ;;
10026esac
10027fi
10028PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10029if test -n "$PKG_CONFIG"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10031$as_echo "$PKG_CONFIG" >&6; }
10032else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034$as_echo "no" >&6; }
10035fi
10036
10037
10038fi
10039if test -z "$ac_cv_path_PKG_CONFIG"; then
10040 ac_pt_PKG_CONFIG=$PKG_CONFIG
10041 # Extract the first word of "pkg-config", so it can be a program name with args.
10042set dummy pkg-config; ac_word=$2
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044$as_echo_n "checking for $ac_word... " >&6; }
10045if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10046 $as_echo_n "(cached) " >&6
10047else
10048 case $ac_pt_PKG_CONFIG in
10049 [\\/]* | ?:[\\/]*)
10050 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10051 ;;
10052 *)
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064done
10065 done
10066IFS=$as_save_IFS
10067
10068 ;;
10069esac
10070fi
10071ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10072if test -n "$ac_pt_PKG_CONFIG"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10074$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10075else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077$as_echo "no" >&6; }
10078fi
10079
10080 if test "x$ac_pt_PKG_CONFIG" = x; then
10081 PKG_CONFIG=""
10082 else
10083 case $cross_compiling:$ac_tool_warned in
10084yes:)
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10087ac_tool_warned=yes ;;
10088esac
10089 PKG_CONFIG=$ac_pt_PKG_CONFIG
10090 fi
10091else
10092 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10093fi
10094
10095fi
10096if test -n "$PKG_CONFIG"; then
10097 _pkg_min_version=0.22
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10099$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10100 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10102$as_echo "yes" >&6; }
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105$as_echo "no" >&6; }
10106 PKG_CONFIG=""
10107 fi
10108
10109fi
47aaa820
DWT
10110ac_ext=cpp
10111ac_cpp='$CXXCPP $CPPFLAGS'
10112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10115if test -z "$CXX"; then
10116 if test -n "$CCC"; then
10117 CXX=$CCC
10118 else
10119 if test -n "$ac_tool_prefix"; then
10120 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10121 do
10122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10126if test "${ac_cv_prog_CXX+set}" = set; then :
9c60689e
DWT
10127 $as_echo_n "(cached) " >&6
10128else
47aaa820
DWT
10129 if test -n "$CXX"; then
10130 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9c60689e
DWT
10131else
10132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133for as_dir in $PATH
10134do
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10139 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9c60689e
DWT
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10142 fi
10143done
10144 done
10145IFS=$as_save_IFS
10146
10147fi
10148fi
47aaa820
DWT
10149CXX=$ac_cv_prog_CXX
10150if test -n "$CXX"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10152$as_echo "$CXX" >&6; }
9c60689e
DWT
10153else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155$as_echo "no" >&6; }
10156fi
10157
10158
47aaa820
DWT
10159 test -n "$CXX" && break
10160 done
9c60689e 10161fi
47aaa820
DWT
10162if test -z "$CXX"; then
10163 ac_ct_CXX=$CXX
10164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9c60689e
DWT
10165do
10166 # Extract the first word of "$ac_prog", so it can be a program name with args.
10167set dummy $ac_prog; ac_word=$2
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10170if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9c60689e
DWT
10171 $as_echo_n "(cached) " >&6
10172else
47aaa820
DWT
10173 if test -n "$ac_ct_CXX"; then
10174 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9c60689e
DWT
10175else
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10183 ac_cv_prog_ac_ct_CXX="$ac_prog"
9c60689e
DWT
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188 done
10189IFS=$as_save_IFS
10190
10191fi
10192fi
47aaa820
DWT
10193ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10194if test -n "$ac_ct_CXX"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10196$as_echo "$ac_ct_CXX" >&6; }
9c60689e
DWT
10197else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199$as_echo "no" >&6; }
10200fi
10201
10202
47aaa820 10203 test -n "$ac_ct_CXX" && break
9c60689e
DWT
10204done
10205
47aaa820
DWT
10206 if test "x$ac_ct_CXX" = x; then
10207 CXX="g++"
10208 else
10209 case $cross_compiling:$ac_tool_warned in
10210yes:)
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10213ac_tool_warned=yes ;;
9c60689e 10214esac
47aaa820
DWT
10215 CXX=$ac_ct_CXX
10216 fi
9c60689e
DWT
10217fi
10218
9c60689e 10219 fi
9c60689e 10220fi
47aaa820
DWT
10221# Provide some information about the compiler.
10222$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10223set X $ac_compile
10224ac_compiler=$2
10225for ac_option in --version -v -V -qversion; do
10226 { { ac_try="$ac_compiler $ac_option >&5"
9c60689e
DWT
10227case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230esac
10231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10232$as_echo "$ac_try_echo"; } >&5
47aaa820 10233 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9c60689e 10234 ac_status=$?
47aaa820
DWT
10235 if test -s conftest.err; then
10236 sed '10a\
10237... rest of stderr output deleted ...
10238 10q' conftest.err >conftest.er1
10239 cat conftest.er1 >&5
10240 fi
10241 rm -f conftest.er1 conftest.err
9c60689e
DWT
10242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10243 test $ac_status = 0; }
47aaa820
DWT
10244done
10245
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10247$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10248if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9c60689e
DWT
10249 $as_echo_n "(cached) " >&6
10250else
47aaa820
DWT
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252/* end confdefs.h. */
9c60689e 10253
47aaa820
DWT
10254int
10255main ()
10256{
10257#ifndef __GNUC__
10258 choke me
10259#endif
10260
10261 ;
10262 return 0;
10263}
10264_ACEOF
10265if ac_fn_cxx_try_compile "$LINENO"; then :
10266 ac_compiler_gnu=yes
9c60689e 10267else
47aaa820 10268 ac_compiler_gnu=no
9c60689e 10269fi
47aaa820
DWT
10270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9c60689e 10272
47aaa820
DWT
10273fi
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10275$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10276if test $ac_compiler_gnu = yes; then
10277 GXX=yes
9c60689e 10278else
47aaa820 10279 GXX=
9c60689e 10280fi
47aaa820
DWT
10281ac_test_CXXFLAGS=${CXXFLAGS+set}
10282ac_save_CXXFLAGS=$CXXFLAGS
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10284$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10285if test "${ac_cv_prog_cxx_g+set}" = set; then :
9c60689e
DWT
10286 $as_echo_n "(cached) " >&6
10287else
47aaa820
DWT
10288 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10289 ac_cxx_werror_flag=yes
10290 ac_cv_prog_cxx_g=no
10291 CXXFLAGS="-g"
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e 10293/* end confdefs.h. */
9c60689e 10294
47aaa820
DWT
10295int
10296main ()
10297{
9c60689e 10298
47aaa820
DWT
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303if ac_fn_cxx_try_compile "$LINENO"; then :
10304 ac_cv_prog_cxx_g=yes
9c60689e 10305else
47aaa820
DWT
10306 CXXFLAGS=""
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h. */
9c60689e 10309
47aaa820
DWT
10310int
10311main ()
10312{
9c60689e 10313
47aaa820
DWT
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e
DWT
10319
10320else
47aaa820
DWT
10321 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10322 CXXFLAGS="-g"
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h. */
9c60689e 10325
47aaa820
DWT
10326int
10327main ()
10328{
9c60689e 10329
47aaa820
DWT
10330 ;
10331 return 0;
10332}
10333_ACEOF
10334if ac_fn_cxx_try_compile "$LINENO"; then :
10335 ac_cv_prog_cxx_g=yes
9c60689e 10336fi
47aaa820 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 10338fi
47aaa820
DWT
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340fi
10341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10342 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10343fi
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10345$as_echo "$ac_cv_prog_cxx_g" >&6; }
10346if test "$ac_test_CXXFLAGS" = set; then
10347 CXXFLAGS=$ac_save_CXXFLAGS
10348elif test $ac_cv_prog_cxx_g = yes; then
10349 if test "$GXX" = yes; then
10350 CXXFLAGS="-g -O2"
10351 else
10352 CXXFLAGS="-g"
10353 fi
9c60689e 10354else
47aaa820
DWT
10355 if test "$GXX" = yes; then
10356 CXXFLAGS="-O2"
10357 else
10358 CXXFLAGS=
10359 fi
9c60689e 10360fi
47aaa820
DWT
10361ac_ext=c
10362ac_cpp='$CPP $CPPFLAGS'
10363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10365ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10366
9c60689e 10367
47aaa820
DWT
10368ac_ext=cpp
10369ac_cpp='$CXXCPP $CPPFLAGS'
10370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10373if test -z "$CXX"; then
10374 if test -n "$CCC"; then
10375 CXX=$CCC
10376 else
10377 if test -n "$ac_tool_prefix"; then
10378 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10379 do
10380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10384if test "${ac_cv_prog_CXX+set}" = set; then :
9c60689e
DWT
10385 $as_echo_n "(cached) " >&6
10386else
47aaa820
DWT
10387 if test -n "$CXX"; then
10388 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9c60689e
DWT
10389else
10390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391for as_dir in $PATH
10392do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10397 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9c60689e
DWT
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10400 fi
10401done
10402 done
10403IFS=$as_save_IFS
10404
10405fi
10406fi
47aaa820
DWT
10407CXX=$ac_cv_prog_CXX
10408if test -n "$CXX"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10410$as_echo "$CXX" >&6; }
9c60689e
DWT
10411else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413$as_echo "no" >&6; }
10414fi
10415
10416
47aaa820
DWT
10417 test -n "$CXX" && break
10418 done
10419fi
10420if test -z "$CXX"; then
10421 ac_ct_CXX=$CXX
10422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9c60689e
DWT
10423do
10424 # Extract the first word of "$ac_prog", so it can be a program name with args.
10425set dummy $ac_prog; ac_word=$2
10426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10427$as_echo_n "checking for $ac_word... " >&6; }
47aaa820 10428if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9c60689e
DWT
10429 $as_echo_n "(cached) " >&6
10430else
47aaa820
DWT
10431 if test -n "$ac_ct_CXX"; then
10432 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9c60689e
DWT
10433else
10434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435for as_dir in $PATH
10436do
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47aaa820 10441 ac_cv_prog_ac_ct_CXX="$ac_prog"
9c60689e
DWT
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10444 fi
10445done
10446 done
10447IFS=$as_save_IFS
10448
10449fi
10450fi
47aaa820
DWT
10451ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10452if test -n "$ac_ct_CXX"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10454$as_echo "$ac_ct_CXX" >&6; }
9c60689e
DWT
10455else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457$as_echo "no" >&6; }
10458fi
10459
10460
47aaa820 10461 test -n "$ac_ct_CXX" && break
9c60689e
DWT
10462done
10463
47aaa820
DWT
10464 if test "x$ac_ct_CXX" = x; then
10465 CXX="g++"
10466 else
10467 case $cross_compiling:$ac_tool_warned in
10468yes:)
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10471ac_tool_warned=yes ;;
10472esac
10473 CXX=$ac_ct_CXX
10474 fi
10475fi
3fd51f51 10476
47aaa820
DWT
10477 fi
10478fi
10479# Provide some information about the compiler.
10480$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10481set X $ac_compile
10482ac_compiler=$2
10483for ac_option in --version -v -V -qversion; do
10484 { { ac_try="$ac_compiler $ac_option >&5"
10485case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
3fd51f51 10488esac
47aaa820
DWT
10489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10490$as_echo "$ac_try_echo"; } >&5
10491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10492 ac_status=$?
10493 if test -s conftest.err; then
10494 sed '10a\
10495... rest of stderr output deleted ...
10496 10q' conftest.err >conftest.er1
10497 cat conftest.er1 >&5
3530897b 10498 fi
47aaa820
DWT
10499 rm -f conftest.er1 conftest.err
10500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10501 test $ac_status = 0; }
3530897b 10502done
3530897b 10503
47aaa820
DWT
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10505$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10506if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508else
10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510/* end confdefs.h. */
10511
10512int
10513main ()
10514{
10515#ifndef __GNUC__
10516 choke me
10517#endif
10518
10519 ;
10520 return 0;
10521}
10522_ACEOF
10523if ac_fn_cxx_try_compile "$LINENO"; then :
10524 ac_compiler_gnu=yes
10525else
10526 ac_compiler_gnu=no
3530897b 10527fi
47aaa820
DWT
10528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10530
3530897b 10531fi
47aaa820
DWT
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10533$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10534if test $ac_compiler_gnu = yes; then
10535 GXX=yes
3530897b 10536else
47aaa820 10537 GXX=
3530897b 10538fi
47aaa820
DWT
10539ac_test_CXXFLAGS=${CXXFLAGS+set}
10540ac_save_CXXFLAGS=$CXXFLAGS
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10542$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10543if test "${ac_cv_prog_cxx_g+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545else
10546 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10547 ac_cxx_werror_flag=yes
10548 ac_cv_prog_cxx_g=no
10549 CXXFLAGS="-g"
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551/* end confdefs.h. */
3530897b 10552
47aaa820
DWT
10553int
10554main ()
10555{
3530897b 10556
47aaa820
DWT
10557 ;
10558 return 0;
10559}
10560_ACEOF
10561if ac_fn_cxx_try_compile "$LINENO"; then :
10562 ac_cv_prog_cxx_g=yes
10563else
10564 CXXFLAGS=""
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h. */
9c60689e 10567
47aaa820
DWT
10568int
10569main ()
10570{
9c60689e 10571
47aaa820
DWT
10572 ;
10573 return 0;
10574}
10575_ACEOF
10576if ac_fn_cxx_try_compile "$LINENO"; then :
9c60689e 10577
47aaa820
DWT
10578else
10579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10580 CXXFLAGS="-g"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582/* end confdefs.h. */
9c60689e 10583
47aaa820
DWT
10584int
10585main ()
10586{
9c60689e 10587
47aaa820
DWT
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592if ac_fn_cxx_try_compile "$LINENO"; then :
10593 ac_cv_prog_cxx_g=yes
10594fi
10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596fi
10597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598fi
10599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10601fi
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10603$as_echo "$ac_cv_prog_cxx_g" >&6; }
10604if test "$ac_test_CXXFLAGS" = set; then
10605 CXXFLAGS=$ac_save_CXXFLAGS
10606elif test $ac_cv_prog_cxx_g = yes; then
10607 if test "$GXX" = yes; then
10608 CXXFLAGS="-g -O2"
10609 else
10610 CXXFLAGS="-g"
10611 fi
10612else
10613 if test "$GXX" = yes; then
10614 CXXFLAGS="-O2"
10615 else
10616 CXXFLAGS=
10617 fi
10618fi
10619ac_ext=c
10620ac_cpp='$CPP $CPPFLAGS'
10621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10624
47aaa820
DWT
10625if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10626 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10627 (test "X$CXX" != "Xg++"))) ; then
10628 ac_ext=cpp
10629ac_cpp='$CXXCPP $CPPFLAGS'
10630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10634$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10635if test -z "$CXXCPP"; then
10636 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638else
10639 # Double quotes because CXXCPP needs to be expanded
10640 for CXXCPP in "$CXX -E" "/lib/cpp"
9c60689e 10641 do
47aaa820
DWT
10642 ac_preproc_ok=false
10643for ac_cxx_preproc_warn_flag in '' yes
10644do
10645 # Use a header file that comes with gcc, so configuring glibc
10646 # with a fresh cross-compiler works.
10647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10648 # <limits.h> exists even on freestanding compilers.
10649 # On the NeXT, cc -E runs the code through the compiler's parser,
10650 # not just through cpp. "Syntax error" is here to catch this case.
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652/* end confdefs.h. */
10653#ifdef __STDC__
10654# include <limits.h>
10655#else
10656# include <assert.h>
10657#endif
10658 Syntax error
10659_ACEOF
10660if ac_fn_cxx_try_cpp "$LINENO"; then :
9c60689e
DWT
10661
10662else
47aaa820
DWT
10663 # Broken: fails on valid input.
10664continue
9c60689e 10665fi
47aaa820 10666rm -f conftest.err conftest.$ac_ext
9c60689e 10667
47aaa820
DWT
10668 # OK, works on sane cases. Now check whether nonexistent headers
10669 # can be detected and how.
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671/* end confdefs.h. */
10672#include <ac_nonexistent.h>
10673_ACEOF
10674if ac_fn_cxx_try_cpp "$LINENO"; then :
10675 # Broken: success on invalid input.
10676continue
10677else
10678 # Passes both tests.
10679ac_preproc_ok=:
10680break
10681fi
10682rm -f conftest.err conftest.$ac_ext
9c60689e 10683
47aaa820
DWT
10684done
10685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10686rm -f conftest.err conftest.$ac_ext
10687if $ac_preproc_ok; then :
10688 break
10689fi
9c60689e 10690
9c60689e 10691 done
47aaa820 10692 ac_cv_prog_CXXCPP=$CXXCPP
9c60689e 10693
47aaa820
DWT
10694fi
10695 CXXCPP=$ac_cv_prog_CXXCPP
9c60689e 10696else
47aaa820
DWT
10697 ac_cv_prog_CXXCPP=$CXXCPP
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10700$as_echo "$CXXCPP" >&6; }
10701ac_preproc_ok=false
10702for ac_cxx_preproc_warn_flag in '' yes
10703do
10704 # Use a header file that comes with gcc, so configuring glibc
10705 # with a fresh cross-compiler works.
10706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10707 # <limits.h> exists even on freestanding compilers.
10708 # On the NeXT, cc -E runs the code through the compiler's parser,
10709 # not just through cpp. "Syntax error" is here to catch this case.
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e 10711/* end confdefs.h. */
47aaa820
DWT
10712#ifdef __STDC__
10713# include <limits.h>
10714#else
10715# include <assert.h>
9c60689e 10716#endif
47aaa820 10717 Syntax error
9c60689e 10718_ACEOF
47aaa820 10719if ac_fn_cxx_try_cpp "$LINENO"; then :
9c60689e 10720
47aaa820
DWT
10721else
10722 # Broken: fails on valid input.
10723continue
9c60689e 10724fi
47aaa820 10725rm -f conftest.err conftest.$ac_ext
9c60689e 10726
47aaa820
DWT
10727 # OK, works on sane cases. Now check whether nonexistent headers
10728 # can be detected and how.
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h. */
10731#include <ac_nonexistent.h>
9c60689e 10732_ACEOF
47aaa820
DWT
10733if ac_fn_cxx_try_cpp "$LINENO"; then :
10734 # Broken: success on invalid input.
10735continue
10736else
10737 # Passes both tests.
10738ac_preproc_ok=:
10739break
9c60689e 10740fi
47aaa820 10741rm -f conftest.err conftest.$ac_ext
9c60689e
DWT
10742
10743done
47aaa820
DWT
10744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10745rm -f conftest.err conftest.$ac_ext
10746if $ac_preproc_ok; then :
9c60689e 10747
9c60689e 10748else
47aaa820
DWT
10749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10751_lt_caught_CXX_error=yes; }
9c60689e 10752fi
9c60689e 10753
47aaa820
DWT
10754ac_ext=c
10755ac_cpp='$CPP $CPPFLAGS'
10756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10758ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 10759
47aaa820
DWT
10760else
10761 _lt_caught_CXX_error=yes
10762fi
9c60689e 10763
9c60689e 10764
9c60689e 10765
9c60689e
DWT
10766
10767ac_ext=cpp
10768ac_cpp='$CXXCPP $CPPFLAGS'
10769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 10772
47aaa820
DWT
10773archive_cmds_need_lc_CXX=no
10774allow_undefined_flag_CXX=
10775always_export_symbols_CXX=no
10776archive_expsym_cmds_CXX=
10777compiler_needs_object_CXX=no
10778export_dynamic_flag_spec_CXX=
10779hardcode_direct_CXX=no
10780hardcode_direct_absolute_CXX=no
10781hardcode_libdir_flag_spec_CXX=
10782hardcode_libdir_flag_spec_ld_CXX=
10783hardcode_libdir_separator_CXX=
10784hardcode_minus_L_CXX=no
10785hardcode_shlibpath_var_CXX=unsupported
10786hardcode_automatic_CXX=no
10787inherit_rpath_CXX=no
10788module_cmds_CXX=
10789module_expsym_cmds_CXX=
10790link_all_deplibs_CXX=unknown
10791old_archive_cmds_CXX=$old_archive_cmds
10792no_undefined_flag_CXX=
10793whole_archive_flag_spec_CXX=
10794enable_shared_with_static_runtimes_CXX=no
9c60689e 10795
47aaa820
DWT
10796# Source file extension for C++ test sources.
10797ac_ext=cpp
9c60689e 10798
47aaa820
DWT
10799# Object file extension for compiled C++ test sources.
10800objext=o
10801objext_CXX=$objext
9c60689e 10802
47aaa820
DWT
10803# No sense in running all these tests if we already determined that
10804# the CXX compiler isn't working. Some variables (like enable_shared)
10805# are currently assumed to apply to all compilers on this platform,
10806# and will be corrupted by setting them based on a non-working compiler.
10807if test "$_lt_caught_CXX_error" != yes; then
10808 # Code to be used in simple compile tests
10809 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 10810
47aaa820
DWT
10811 # Code to be used in simple link tests
10812 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 10813
47aaa820 10814 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 10815
9c60689e 10816
9c60689e 10817
9c60689e 10818
9c60689e 10819
9c60689e 10820
47aaa820
DWT
10821# If no C compiler was specified, use CC.
10822LTCC=${LTCC-"$CC"}
9c60689e 10823
47aaa820
DWT
10824# If no C compiler flags were specified, use CFLAGS.
10825LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 10826
47aaa820
DWT
10827# Allow CC to be a program name with arguments.
10828compiler=$CC
9c60689e 10829
9c60689e 10830
47aaa820
DWT
10831 # save warnings/boilerplate of simple test code
10832 ac_outfile=conftest.$ac_objext
10833echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10834eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10835_lt_compiler_boilerplate=`cat conftest.err`
10836$RM conftest*
9c60689e 10837
47aaa820
DWT
10838 ac_outfile=conftest.$ac_objext
10839echo "$lt_simple_link_test_code" >conftest.$ac_ext
10840eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10841_lt_linker_boilerplate=`cat conftest.err`
10842$RM -r conftest*
9c60689e 10843
9c60689e 10844
47aaa820
DWT
10845 # Allow CC to be a program name with arguments.
10846 lt_save_CC=$CC
10847 lt_save_LD=$LD
10848 lt_save_GCC=$GCC
10849 GCC=$GXX
10850 lt_save_with_gnu_ld=$with_gnu_ld
10851 lt_save_path_LD=$lt_cv_path_LD
10852 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10853 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 10854 else
47aaa820 10855 $as_unset lt_cv_prog_gnu_ld
9c60689e 10856 fi
47aaa820
DWT
10857 if test -n "${lt_cv_path_LDCXX+set}"; then
10858 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 10859 else
47aaa820 10860 $as_unset lt_cv_path_LD
9c60689e 10861 fi
47aaa820
DWT
10862 test -z "${LDCXX+set}" || LD=$LDCXX
10863 CC=${CXX-"c++"}
10864 compiler=$CC
10865 compiler_CXX=$CC
10866 for cc_temp in $compiler""; do
10867 case $cc_temp in
10868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10870 \-*) ;;
10871 *) break;;
10872 esac
10873done
10874cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9c60689e
DWT
10875
10876
47aaa820
DWT
10877 if test -n "$compiler"; then
10878 # We don't want -fno-exception when compiling C++ code, so set the
10879 # no_builtin_flag separately
10880 if test "$GXX" = yes; then
10881 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10882 else
10883 lt_prog_compiler_no_builtin_flag_CXX=
10884 fi
9c60689e 10885
47aaa820
DWT
10886 if test "$GXX" = yes; then
10887 # Set up default GNU C++ configuration
10888
10889
10890
10891# Check whether --with-gnu-ld was given.
10892if test "${with_gnu_ld+set}" = set; then :
10893 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 10894else
47aaa820 10895 with_gnu_ld=no
9c60689e
DWT
10896fi
10897
47aaa820
DWT
10898ac_prog=ld
10899if test "$GCC" = yes; then
10900 # Check if gcc -print-prog-name=ld gives a path.
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10902$as_echo_n "checking for ld used by $CC... " >&6; }
10903 case $host in
10904 *-*-mingw*)
10905 # gcc leaves a trailing carriage return which upsets mingw
10906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10907 *)
10908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10909 esac
10910 case $ac_prog in
10911 # Accept absolute paths.
10912 [\\/]* | ?:[\\/]*)
10913 re_direlt='/[^/][^/]*/\.\./'
10914 # Canonicalize the pathname of ld
10915 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10916 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10917 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10918 done
10919 test -z "$LD" && LD="$ac_prog"
10920 ;;
10921 "")
10922 # If it fails, then pretend we aren't using GCC.
10923 ac_prog=ld
10924 ;;
10925 *)
10926 # If it is relative, then search for the first ld in PATH.
10927 with_gnu_ld=unknown
10928 ;;
10929 esac
10930elif test "$with_gnu_ld" = yes; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10932$as_echo_n "checking for GNU ld... " >&6; }
10933else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10935$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 10936fi
47aaa820 10937if test "${lt_cv_path_LD+set}" = set; then :
9c60689e
DWT
10938 $as_echo_n "(cached) " >&6
10939else
47aaa820
DWT
10940 if test -z "$LD"; then
10941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10942 for ac_dir in $PATH; do
10943 IFS="$lt_save_ifs"
10944 test -z "$ac_dir" && ac_dir=.
10945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10946 lt_cv_path_LD="$ac_dir/$ac_prog"
10947 # Check to see if the program is GNU ld. I'd rather use --version,
10948 # but apparently some variants of GNU ld only accept -v.
10949 # Break only if it was the GNU/non-GNU ld that we prefer.
10950 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10951 *GNU* | *'with BFD'*)
10952 test "$with_gnu_ld" != no && break
10953 ;;
10954 *)
10955 test "$with_gnu_ld" != yes && break
10956 ;;
10957 esac
10958 fi
9c60689e 10959 done
47aaa820
DWT
10960 IFS="$lt_save_ifs"
10961else
10962 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
10963fi
10964fi
47aaa820
DWT
10965
10966LD="$lt_cv_path_LD"
10967if test -n "$LD"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10969$as_echo "$LD" >&6; }
9c60689e
DWT
10970else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
10973fi
47aaa820
DWT
10974test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10976$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10977if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979else
10980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10981case `$LD -v 2>&1 </dev/null` in
10982*GNU* | *'with BFD'*)
10983 lt_cv_prog_gnu_ld=yes
10984 ;;
10985*)
10986 lt_cv_prog_gnu_ld=no
10987 ;;
10988esac
10989fi
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10991$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10992with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
10993
10994
9c60689e 10995
9c60689e 10996
9c60689e 10997
9c60689e 10998
9c60689e 10999
47aaa820
DWT
11000 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11001 # archiving commands below assume that GNU ld is being used.
11002 if test "$with_gnu_ld" = yes; then
11003 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11004 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e 11005
47aaa820
DWT
11006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11008
47aaa820
DWT
11009 # If archive_cmds runs LD, not CC, wlarc should be empty
11010 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11011 # investigate it a little bit more. (MM)
11012 wlarc='${wl}'
9c60689e 11013
47aaa820
DWT
11014 # ancient GNU ld didn't support --whole-archive et. al.
11015 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11016 $GREP 'no-whole-archive' > /dev/null; then
11017 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11018 else
11019 whole_archive_flag_spec_CXX=
11020 fi
11021 else
11022 with_gnu_ld=no
11023 wlarc=
11024
11025 # A generic and very simple default shared library creation
11026 # command for GNU C++ for the case where it uses the native
11027 # linker, instead of GNU ld. If possible, this setting should
11028 # overridden to take advantage of the native linker features on
11029 # the platform it is being used on.
11030 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11031 fi
11032
11033 # Commands to make compiler produce verbose output that lists
11034 # what "hidden" libraries, object files and flags are used when
11035 # linking a shared library.
11036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11037
11038 else
11039 GXX=no
11040 with_gnu_ld=no
11041 wlarc=
11042 fi
11043
11044 # PORTME: fill in a description of your system's C++ link characteristics
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11046$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11047 ld_shlibs_CXX=yes
11048 case $host_os in
11049 aix3*)
11050 # FIXME: insert proper C++ library support
11051 ld_shlibs_CXX=no
11052 ;;
11053 aix[4-9]*)
11054 if test "$host_cpu" = ia64; then
11055 # On IA64, the linker does run time linking by default, so we don't
11056 # have to do anything special.
11057 aix_use_runtimelinking=no
11058 exp_sym_flag='-Bexport'
11059 no_entry_flag=""
11060 else
11061 aix_use_runtimelinking=no
11062
11063 # Test if we are trying to use run time linking or normal
11064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11065 # need to do runtime linking.
11066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11067 for ld_flag in $LDFLAGS; do
11068 case $ld_flag in
11069 *-brtl*)
11070 aix_use_runtimelinking=yes
11071 break
11072 ;;
11073 esac
11074 done
11075 ;;
11076 esac
11077
11078 exp_sym_flag='-bexport'
11079 no_entry_flag='-bnoentry'
11080 fi
11081
11082 # When large executables or shared objects are built, AIX ld can
11083 # have problems creating the table of contents. If linking a library
11084 # or program results in "error TOC overflow" add -mminimal-toc to
11085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11087
11088 archive_cmds_CXX=''
11089 hardcode_direct_CXX=yes
11090 hardcode_direct_absolute_CXX=yes
11091 hardcode_libdir_separator_CXX=':'
11092 link_all_deplibs_CXX=yes
11093 file_list_spec_CXX='${wl}-f,'
11094
11095 if test "$GXX" = yes; then
11096 case $host_os in aix4.[012]|aix4.[012].*)
11097 # We only want to do this on AIX 4.2 and lower, the check
11098 # below for broken collect2 doesn't work under 4.3+
11099 collect2name=`${CC} -print-prog-name=collect2`
11100 if test -f "$collect2name" &&
11101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11102 then
11103 # We have reworked collect2
11104 :
11105 else
11106 # We have old collect2
11107 hardcode_direct_CXX=unsupported
11108 # It fails to find uninstalled libraries when the uninstalled
11109 # path is not listed in the libpath. Setting hardcode_minus_L
11110 # to unsupported forces relinking
11111 hardcode_minus_L_CXX=yes
11112 hardcode_libdir_flag_spec_CXX='-L$libdir'
11113 hardcode_libdir_separator_CXX=
11114 fi
11115 esac
11116 shared_flag='-shared'
11117 if test "$aix_use_runtimelinking" = yes; then
11118 shared_flag="$shared_flag "'${wl}-G'
11119 fi
11120 else
11121 # not using gcc
11122 if test "$host_cpu" = ia64; then
11123 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11124 # chokes on -Wl,-G. The following line is correct:
11125 shared_flag='-G'
11126 else
11127 if test "$aix_use_runtimelinking" = yes; then
11128 shared_flag='${wl}-G'
11129 else
11130 shared_flag='${wl}-bM:SRE'
11131 fi
11132 fi
11133 fi
11134
11135 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11136 # It seems that -bexpall does not export symbols beginning with
11137 # underscore (_), so it is better to generate a list of symbols to
11138 # export.
11139 always_export_symbols_CXX=yes
11140 if test "$aix_use_runtimelinking" = yes; then
11141 # Warning - without using the other runtime loading flags (-brtl),
11142 # -berok will link without error, but may produce a broken library.
11143 allow_undefined_flag_CXX='-berok'
11144 # Determine the default libpath from the value encoded in an empty
11145 # executable.
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11147/* end confdefs.h. */
11148
11149int
11150main ()
11151{
11152
11153 ;
11154 return 0;
11155}
11156_ACEOF
47aaa820 11157if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11158
47aaa820
DWT
11159lt_aix_libpath_sed='
11160 /Import File Strings/,/^$/ {
11161 /^0/ {
11162 s/^0 *\(.*\)$/\1/
11163 p
11164 }
11165 }'
11166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11167# Check for a 64-bit object if we didn't find anything.
11168if test -z "$aix_libpath"; then
11169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11170fi
11171fi
11172rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11175
11176 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11177
11178 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"
11179 else
11180 if test "$host_cpu" = ia64; then
11181 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11182 allow_undefined_flag_CXX="-z nodefs"
11183 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"
11184 else
11185 # Determine the default libpath from the value encoded in an
11186 # empty executable.
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
11188/* end confdefs.h. */
11189
11190int
11191main ()
11192{
11193
11194 ;
11195 return 0;
11196}
11197_ACEOF
47aaa820 11198if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 11199
47aaa820
DWT
11200lt_aix_libpath_sed='
11201 /Import File Strings/,/^$/ {
11202 /^0/ {
11203 s/^0 *\(.*\)$/\1/
11204 p
11205 }
11206 }'
11207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208# Check for a 64-bit object if we didn't find anything.
11209if test -z "$aix_libpath"; then
11210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9c60689e 11211fi
9c60689e 11212fi
47aaa820
DWT
11213rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9c60689e 11216
47aaa820
DWT
11217 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11218 # Warning - without using the other run time loading flags,
11219 # -berok will link without error, but may produce a broken library.
11220 no_undefined_flag_CXX=' ${wl}-bernotok'
11221 allow_undefined_flag_CXX=' ${wl}-berok'
11222 # Exported symbols can be pulled into shared objects from archives
11223 whole_archive_flag_spec_CXX='$convenience'
11224 archive_cmds_need_lc_CXX=yes
11225 # This is similar to how AIX traditionally builds its shared
11226 # libraries.
11227 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'
11228 fi
11229 fi
11230 ;;
9c60689e 11231
47aaa820
DWT
11232 beos*)
11233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11234 allow_undefined_flag_CXX=unsupported
11235 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11236 # support --undefined. This deserves some investigation. FIXME
11237 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11238 else
11239 ld_shlibs_CXX=no
11240 fi
11241 ;;
9c60689e 11242
47aaa820
DWT
11243 chorus*)
11244 case $cc_basename in
11245 *)
11246 # FIXME: insert proper C++ library support
11247 ld_shlibs_CXX=no
11248 ;;
11249 esac
11250 ;;
9c60689e 11251
47aaa820
DWT
11252 cygwin* | mingw* | pw32* | cegcc*)
11253 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11254 # as there is no search path for DLLs.
11255 hardcode_libdir_flag_spec_CXX='-L$libdir'
11256 allow_undefined_flag_CXX=unsupported
11257 always_export_symbols_CXX=no
11258 enable_shared_with_static_runtimes_CXX=yes
9c60689e 11259
47aaa820
DWT
11260 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11261 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'
11262 # If the export-symbols file already is a .def file (1st line
11263 # is EXPORTS), use it as is; otherwise, prepend...
11264 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11265 cp $export_symbols $output_objdir/$soname.def;
11266 else
11267 echo EXPORTS > $output_objdir/$soname.def;
11268 cat $export_symbols >> $output_objdir/$soname.def;
11269 fi~
11270 $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'
11271 else
11272 ld_shlibs_CXX=no
11273 fi
11274 ;;
11275 darwin* | rhapsody*)
9c60689e 11276
9c60689e 11277
47aaa820
DWT
11278 archive_cmds_need_lc_CXX=no
11279 hardcode_direct_CXX=no
11280 hardcode_automatic_CXX=yes
11281 hardcode_shlibpath_var_CXX=unsupported
11282 whole_archive_flag_spec_CXX=''
11283 link_all_deplibs_CXX=yes
11284 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11285 case $cc_basename in
11286 ifort*) _lt_dar_can_shared=yes ;;
11287 *) _lt_dar_can_shared=$GCC ;;
11288 esac
11289 if test "$_lt_dar_can_shared" = "yes"; then
11290 output_verbose_link_cmd=echo
11291 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}"
11292 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11293 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}"
11294 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}"
11295 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11296 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}"
11297 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}"
11298 fi
9c60689e 11299
47aaa820
DWT
11300 else
11301 ld_shlibs_CXX=no
11302 fi
9c60689e 11303
47aaa820 11304 ;;
9c60689e 11305
47aaa820
DWT
11306 dgux*)
11307 case $cc_basename in
11308 ec++*)
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 ;;
11312 ghcx*)
11313 # Green Hills C++ Compiler
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 *)
11318 # FIXME: insert proper C++ library support
11319 ld_shlibs_CXX=no
11320 ;;
11321 esac
11322 ;;
9c60689e 11323
47aaa820
DWT
11324 freebsd[12]*)
11325 # C++ shared libraries reported to be fairly broken before
11326 # switch to ELF
11327 ld_shlibs_CXX=no
11328 ;;
9c60689e 11329
47aaa820
DWT
11330 freebsd-elf*)
11331 archive_cmds_need_lc_CXX=no
11332 ;;
9c60689e 11333
47aaa820
DWT
11334 freebsd* | dragonfly*)
11335 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11336 # conventions
11337 ld_shlibs_CXX=yes
11338 ;;
9c60689e 11339
47aaa820
DWT
11340 gnu*)
11341 ;;
9c60689e 11342
47aaa820
DWT
11343 hpux9*)
11344 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11345 hardcode_libdir_separator_CXX=:
11346 export_dynamic_flag_spec_CXX='${wl}-E'
11347 hardcode_direct_CXX=yes
11348 hardcode_minus_L_CXX=yes # Not in the search PATH,
11349 # but as the default
11350 # location of the library.
9c60689e 11351
47aaa820
DWT
11352 case $cc_basename in
11353 CC*)
11354 # FIXME: insert proper C++ library support
11355 ld_shlibs_CXX=no
11356 ;;
11357 aCC*)
11358 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'
11359 # Commands to make compiler produce verbose output that lists
11360 # what "hidden" libraries, object files and flags are used when
11361 # linking a shared library.
11362 #
11363 # There doesn't appear to be a way to prevent this compiler from
11364 # explicitly linking system object files so we need to strip them
11365 # from the output so that they don't get included in the library
11366 # dependencies.
11367 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'
11368 ;;
11369 *)
11370 if test "$GXX" = yes; then
11371 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'
11372 else
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11375 fi
11376 ;;
11377 esac
11378 ;;
9c60689e 11379
47aaa820
DWT
11380 hpux10*|hpux11*)
11381 if test $with_gnu_ld = no; then
11382 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11383 hardcode_libdir_separator_CXX=:
9c60689e 11384
47aaa820
DWT
11385 case $host_cpu in
11386 hppa*64*|ia64*)
11387 ;;
11388 *)
11389 export_dynamic_flag_spec_CXX='${wl}-E'
11390 ;;
11391 esac
11392 fi
11393 case $host_cpu in
11394 hppa*64*|ia64*)
11395 hardcode_direct_CXX=no
11396 hardcode_shlibpath_var_CXX=no
11397 ;;
11398 *)
11399 hardcode_direct_CXX=yes
11400 hardcode_direct_absolute_CXX=yes
11401 hardcode_minus_L_CXX=yes # Not in the search PATH,
11402 # but as the default
11403 # location of the library.
11404 ;;
11405 esac
9c60689e 11406
47aaa820
DWT
11407 case $cc_basename in
11408 CC*)
11409 # FIXME: insert proper C++ library support
11410 ld_shlibs_CXX=no
11411 ;;
11412 aCC*)
11413 case $host_cpu in
11414 hppa*64*)
11415 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11416 ;;
11417 ia64*)
11418 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11419 ;;
11420 *)
11421 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11422 ;;
11423 esac
11424 # Commands to make compiler produce verbose output that lists
11425 # what "hidden" libraries, object files and flags are used when
11426 # linking a shared library.
11427 #
11428 # There doesn't appear to be a way to prevent this compiler from
11429 # explicitly linking system object files so we need to strip them
11430 # from the output so that they don't get included in the library
11431 # dependencies.
11432 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'
11433 ;;
11434 *)
11435 if test "$GXX" = yes; then
11436 if test $with_gnu_ld = no; then
11437 case $host_cpu in
11438 hppa*64*)
11439 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11440 ;;
11441 ia64*)
11442 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11443 ;;
11444 *)
11445 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'
11446 ;;
11447 esac
11448 fi
11449 else
11450 # FIXME: insert proper C++ library support
11451 ld_shlibs_CXX=no
11452 fi
11453 ;;
11454 esac
11455 ;;
9c60689e 11456
47aaa820
DWT
11457 interix[3-9]*)
11458 hardcode_direct_CXX=no
11459 hardcode_shlibpath_var_CXX=no
11460 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11461 export_dynamic_flag_spec_CXX='${wl}-E'
11462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11463 # Instead, shared libraries are loaded at an image base (0x10000000 by
11464 # default) and relocated if they conflict, which is a slow very memory
11465 # consuming and fragmenting process. To avoid this, we pick a random,
11466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11468 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'
11469 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'
11470 ;;
11471 irix5* | irix6*)
11472 case $cc_basename in
11473 CC*)
11474 # SGI C++
11475 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9c60689e 11476
47aaa820
DWT
11477 # Archives containing C++ object files must be created using
11478 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11479 # necessary to make sure instantiated templates are included
11480 # in the archive.
11481 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11482 ;;
11483 *)
11484 if test "$GXX" = yes; then
11485 if test "$with_gnu_ld" = no; then
11486 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'
11487 else
11488 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'
11489 fi
11490 fi
11491 link_all_deplibs_CXX=yes
11492 ;;
11493 esac
11494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11495 hardcode_libdir_separator_CXX=:
11496 inherit_rpath_CXX=yes
11497 ;;
9c60689e 11498
47aaa820
DWT
11499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11500 case $cc_basename in
11501 KCC*)
11502 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 11503
47aaa820
DWT
11504 # KCC will only create a shared library if the output file
11505 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11506 # to its proper name (with version) after linking.
11507 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'
11508 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'
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 $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
9c60689e 11518
47aaa820
DWT
11519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 11521
47aaa820
DWT
11522 # Archives containing C++ object files must be created using
11523 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11524 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11525 ;;
11526 icpc* | ecpc* )
11527 # Intel C++
11528 with_gnu_ld=yes
11529 # version 8.0 and above of icpc choke on multiply defined symbols
11530 # if we add $predep_objects and $postdep_objects, however 7.1 and
11531 # earlier do not add the objects themselves.
11532 case `$CC -V 2>&1` in
11533 *"Version 7."*)
11534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11535 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'
11536 ;;
11537 *) # Version 8.0 or newer
11538 tmp_idyn=
11539 case $host_cpu in
11540 ia64*) tmp_idyn=' -i_dynamic';;
11541 esac
11542 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11543 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'
11544 ;;
11545 esac
11546 archive_cmds_need_lc_CXX=no
11547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11548 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11549 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11550 ;;
11551 pgCC* | pgcpp*)
11552 # Portland Group C++ compiler
11553 case `$CC -V` in
11554 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11555 prelink_cmds_CXX='tpldir=Template.dir~
11556 rm -rf $tpldir~
11557 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11558 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11559 old_archive_cmds_CXX='tpldir=Template.dir~
11560 rm -rf $tpldir~
11561 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11562 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11563 $RANLIB $oldlib'
11564 archive_cmds_CXX='tpldir=Template.dir~
11565 rm -rf $tpldir~
11566 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11567 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11568 archive_expsym_cmds_CXX='tpldir=Template.dir~
11569 rm -rf $tpldir~
11570 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11571 $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'
11572 ;;
11573 *) # Version 6 will use weak symbols
11574 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11575 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'
11576 ;;
11577 esac
9c60689e 11578
47aaa820
DWT
11579 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11581 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'
11582 ;;
11583 cxx*)
11584 # Compaq C++
11585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11586 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9c60689e 11587
47aaa820
DWT
11588 runpath_var=LD_RUN_PATH
11589 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11590 hardcode_libdir_separator_CXX=:
9c60689e 11591
47aaa820
DWT
11592 # Commands to make compiler produce verbose output that lists
11593 # what "hidden" libraries, object files and flags are used when
11594 # linking a shared library.
11595 #
11596 # There doesn't appear to be a way to prevent this compiler from
11597 # explicitly linking system object files so we need to strip them
11598 # from the output so that they don't get included in the library
11599 # dependencies.
11600 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'
11601 ;;
11602 xl*)
11603 # IBM XL 8.0 on PPC, with GNU ld
11604 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11605 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11606 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11607 if test "x$supports_anon_versioning" = xyes; then
11608 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11610 echo "local: *; };" >> $output_objdir/$libname.ver~
11611 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11612 fi
11613 ;;
11614 *)
11615 case `$CC -V 2>&1 | sed 5q` in
11616 *Sun\ C*)
11617 # Sun C++ 5.9
11618 no_undefined_flag_CXX=' -zdefs'
11619 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11620 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'
11621 hardcode_libdir_flag_spec_CXX='-R$libdir'
11622 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'
11623 compiler_needs_object_CXX=yes
9c60689e 11624
47aaa820
DWT
11625 # Not sure whether something based on
11626 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11627 # would be better.
11628 output_verbose_link_cmd='echo'
9c60689e 11629
47aaa820
DWT
11630 # Archives containing C++ object files must be created using
11631 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11632 # necessary to make sure instantiated templates are included
11633 # in the archive.
11634 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11635 ;;
11636 esac
11637 ;;
11638 esac
11639 ;;
9c60689e 11640
47aaa820
DWT
11641 lynxos*)
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
9c60689e 11645
47aaa820
DWT
11646 m88k*)
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 ;;
9c60689e 11650
47aaa820
DWT
11651 mvs*)
11652 case $cc_basename in
11653 cxx*)
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11656 ;;
11657 *)
11658 # FIXME: insert proper C++ library support
11659 ld_shlibs_CXX=no
11660 ;;
11661 esac
11662 ;;
9c60689e 11663
47aaa820
DWT
11664 netbsd*)
11665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11666 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11667 wlarc=
11668 hardcode_libdir_flag_spec_CXX='-R$libdir'
11669 hardcode_direct_CXX=yes
11670 hardcode_shlibpath_var_CXX=no
11671 fi
11672 # Workaround some broken pre-1.5 toolchains
11673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 11674 ;;
47aaa820
DWT
11675
11676 *nto* | *qnx*)
11677 ld_shlibs_CXX=yes
9c60689e 11678 ;;
9c60689e 11679
47aaa820
DWT
11680 openbsd2*)
11681 # C++ shared libraries are fairly broken
11682 ld_shlibs_CXX=no
11683 ;;
9c60689e 11684
47aaa820
DWT
11685 openbsd*)
11686 if test -f /usr/libexec/ld.so; then
11687 hardcode_direct_CXX=yes
11688 hardcode_shlibpath_var_CXX=no
11689 hardcode_direct_absolute_CXX=yes
11690 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11691 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11693 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11694 export_dynamic_flag_spec_CXX='${wl}-E'
11695 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11696 fi
11697 output_verbose_link_cmd=echo
11698 else
11699 ld_shlibs_CXX=no
11700 fi
11701 ;;
9c60689e 11702
47aaa820
DWT
11703 osf3* | osf4* | osf5*)
11704 case $cc_basename in
11705 KCC*)
11706 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 11707
47aaa820
DWT
11708 # KCC will only create a shared library if the output file
11709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11710 # to its proper name (with version) after linking.
11711 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9c60689e 11712
47aaa820
DWT
11713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11714 hardcode_libdir_separator_CXX=:
9c60689e 11715
47aaa820
DWT
11716 # Archives containing C++ object files must be created using
11717 # the KAI C++ compiler.
11718 case $host in
11719 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11720 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11721 esac
11722 ;;
11723 RCC*)
11724 # Rational C++ 2.4.1
11725 # FIXME: insert proper C++ library support
11726 ld_shlibs_CXX=no
11727 ;;
11728 cxx*)
11729 case $host in
11730 osf3*)
11731 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11732 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'
11733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11734 ;;
11735 *)
11736 allow_undefined_flag_CXX=' -expect_unresolved \*'
11737 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'
11738 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11739 echo "-hidden">> $lib.exp~
11740 $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~
11741 $RM $lib.exp'
11742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11743 ;;
11744 esac
9c60689e 11745
47aaa820 11746 hardcode_libdir_separator_CXX=:
9c60689e 11747
47aaa820
DWT
11748 # Commands to make compiler produce verbose output that lists
11749 # what "hidden" libraries, object files and flags are used when
11750 # linking a shared library.
11751 #
11752 # There doesn't appear to be a way to prevent this compiler from
11753 # explicitly linking system object files so we need to strip them
11754 # from the output so that they don't get included in the library
11755 # dependencies.
11756 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'
11757 ;;
11758 *)
11759 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11760 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11761 case $host in
11762 osf3*)
11763 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'
11764 ;;
11765 *)
11766 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'
11767 ;;
11768 esac
9c60689e 11769
47aaa820
DWT
11770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator_CXX=:
9c60689e 11772
47aaa820
DWT
11773 # Commands to make compiler produce verbose output that lists
11774 # what "hidden" libraries, object files and flags are used when
11775 # linking a shared library.
11776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9c60689e 11777
47aaa820
DWT
11778 else
11779 # FIXME: insert proper C++ library support
11780 ld_shlibs_CXX=no
11781 fi
11782 ;;
11783 esac
11784 ;;
9c60689e 11785
47aaa820 11786 psos*)
9c60689e
DWT
11787 # FIXME: insert proper C++ library support
11788 ld_shlibs_CXX=no
11789 ;;
9c60689e 11790
47aaa820
DWT
11791 sunos4*)
11792 case $cc_basename in
11793 CC*)
11794 # Sun C++ 4.x
11795 # FIXME: insert proper C++ library support
11796 ld_shlibs_CXX=no
9c60689e 11797 ;;
47aaa820
DWT
11798 lcc*)
11799 # Lucid
11800 # FIXME: insert proper C++ library support
11801 ld_shlibs_CXX=no
11802 ;;
11803 *)
11804 # FIXME: insert proper C++ library support
11805 ld_shlibs_CXX=no
11806 ;;
11807 esac
11808 ;;
9c60689e 11809
47aaa820
DWT
11810 solaris*)
11811 case $cc_basename in
11812 CC*)
11813 # Sun C++ 4.2, 5.x and Centerline C++
11814 archive_cmds_need_lc_CXX=yes
11815 no_undefined_flag_CXX=' -zdefs'
11816 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 11819
47aaa820
DWT
11820 hardcode_libdir_flag_spec_CXX='-R$libdir'
11821 hardcode_shlibpath_var_CXX=no
11822 case $host_os in
11823 solaris2.[0-5] | solaris2.[0-5].*) ;;
11824 *)
11825 # The compiler driver will combine and reorder linker options,
11826 # but understands `-z linker_flag'.
11827 # Supported since Solaris 2.6 (maybe 2.5.1?)
11828 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11829 ;;
11830 esac
11831 link_all_deplibs_CXX=yes
9c60689e 11832
47aaa820 11833 output_verbose_link_cmd='echo'
9c60689e 11834
47aaa820
DWT
11835 # Archives containing C++ object files must be created using
11836 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11837 # necessary to make sure instantiated templates are included
11838 # in the archive.
11839 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11840 ;;
11841 gcx*)
11842 # Green Hills C++ Compiler
11843 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 11844
47aaa820
DWT
11845 # The C++ compiler must be used to create the archive.
11846 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11847 ;;
11848 *)
11849 # GNU C++ compiler with Solaris linker
11850 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11851 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11852 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11853 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11854 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11855 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 11856
47aaa820
DWT
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11861 else
11862 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11863 # platform.
11864 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11865 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11866 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 11867
47aaa820
DWT
11868 # Commands to make compiler produce verbose output that lists
11869 # what "hidden" libraries, object files and flags are used when
11870 # linking a shared library.
11871 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11872 fi
9c60689e 11873
47aaa820
DWT
11874 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11875 case $host_os in
11876 solaris2.[0-5] | solaris2.[0-5].*) ;;
11877 *)
11878 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11879 ;;
11880 esac
11881 fi
11882 ;;
11883 esac
11884 ;;
9c60689e 11885
47aaa820
DWT
11886 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11887 no_undefined_flag_CXX='${wl}-z,text'
11888 archive_cmds_need_lc_CXX=no
11889 hardcode_shlibpath_var_CXX=no
11890 runpath_var='LD_RUN_PATH'
9c60689e 11891
47aaa820
DWT
11892 case $cc_basename in
11893 CC*)
11894 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 ;;
11897 *)
11898 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 ;;
11901 esac
11902 ;;
9c60689e 11903
47aaa820
DWT
11904 sysv5* | sco3.2v5* | sco5v6*)
11905 # Note: We can NOT use -z defs as we might desire, because we do not
11906 # link with -lc, and that would cause any symbols used from libc to
11907 # always be unresolved, which means just about no library would
11908 # ever link correctly. If we're not using GNU ld we use -z text
11909 # though, which does catch some bad symbols but isn't as heavy-handed
11910 # as -z defs.
11911 no_undefined_flag_CXX='${wl}-z,text'
11912 allow_undefined_flag_CXX='${wl}-z,nodefs'
11913 archive_cmds_need_lc_CXX=no
11914 hardcode_shlibpath_var_CXX=no
11915 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
11916 hardcode_libdir_separator_CXX=':'
11917 link_all_deplibs_CXX=yes
11918 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11919 runpath_var='LD_RUN_PATH'
9c60689e 11920
47aaa820
DWT
11921 case $cc_basename in
11922 CC*)
11923 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925 ;;
11926 *)
11927 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 ;;
11930 esac
11931 ;;
9c60689e 11932
47aaa820 11933 tandem*)
9c60689e 11934 case $cc_basename in
47aaa820
DWT
11935 NCC*)
11936 # NonStop-UX NCC 3.20
11937 # FIXME: insert proper C++ library support
11938 ld_shlibs_CXX=no
11939 ;;
9c60689e 11940 *)
47aaa820
DWT
11941 # FIXME: insert proper C++ library support
11942 ld_shlibs_CXX=no
11943 ;;
9c60689e
DWT
11944 esac
11945 ;;
11946
47aaa820
DWT
11947 vxworks*)
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11950 ;;
9c60689e 11951
47aaa820
DWT
11952 *)
11953 # FIXME: insert proper C++ library support
11954 ld_shlibs_CXX=no
9c60689e 11955 ;;
47aaa820 11956 esac
9c60689e 11957
47aaa820
DWT
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11959$as_echo "$ld_shlibs_CXX" >&6; }
11960 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 11961
47aaa820
DWT
11962 GCC_CXX="$GXX"
11963 LD_CXX="$LD"
9c60689e 11964
47aaa820
DWT
11965 ## CAVEAT EMPTOR:
11966 ## There is no encapsulation within the following macros, do not change
11967 ## the running order or otherwise move them around unless you know exactly
11968 ## what you are doing...
11969 # Dependencies to place before and after the object being linked:
11970predep_objects_CXX=
11971postdep_objects_CXX=
11972predeps_CXX=
11973postdeps_CXX=
11974compiler_lib_search_path_CXX=
9c60689e 11975
47aaa820
DWT
11976cat > conftest.$ac_ext <<_LT_EOF
11977class Foo
11978{
11979public:
11980 Foo (void) { a = 0; }
11981private:
11982 int a;
11983};
11984_LT_EOF
9c60689e 11985
47aaa820
DWT
11986if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11987 (eval $ac_compile) 2>&5
11988 ac_status=$?
11989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11990 test $ac_status = 0; }; then
11991 # Parse the compiler output and extract the necessary
11992 # objects, libraries and library flags.
9c60689e 11993
47aaa820
DWT
11994 # Sentinel used to keep track of whether or not we are before
11995 # the conftest object file.
11996 pre_test_object_deps_done=no
9c60689e 11997
47aaa820
DWT
11998 for p in `eval "$output_verbose_link_cmd"`; do
11999 case $p in
9c60689e 12000
47aaa820
DWT
12001 -L* | -R* | -l*)
12002 # Some compilers place space between "-{L,R}" and the path.
12003 # Remove the space.
12004 if test $p = "-L" ||
12005 test $p = "-R"; then
12006 prev=$p
12007 continue
12008 else
12009 prev=
12010 fi
9c60689e 12011
47aaa820
DWT
12012 if test "$pre_test_object_deps_done" = no; then
12013 case $p in
12014 -L* | -R*)
12015 # Internal compiler library paths should come after those
12016 # provided the user. The postdeps already come after the
12017 # user supplied libs so there is no need to process them.
12018 if test -z "$compiler_lib_search_path_CXX"; then
12019 compiler_lib_search_path_CXX="${prev}${p}"
12020 else
12021 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12022 fi
12023 ;;
12024 # The "-l" case would never come before the object being
12025 # linked, so don't bother handling this case.
12026 esac
12027 else
12028 if test -z "$postdeps_CXX"; then
12029 postdeps_CXX="${prev}${p}"
12030 else
12031 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12032 fi
12033 fi
12034 ;;
9c60689e 12035
47aaa820
DWT
12036 *.$objext)
12037 # This assumes that the test object file only shows up
12038 # once in the compiler output.
12039 if test "$p" = "conftest.$objext"; then
12040 pre_test_object_deps_done=yes
12041 continue
12042 fi
9c60689e 12043
47aaa820
DWT
12044 if test "$pre_test_object_deps_done" = no; then
12045 if test -z "$predep_objects_CXX"; then
12046 predep_objects_CXX="$p"
12047 else
12048 predep_objects_CXX="$predep_objects_CXX $p"
12049 fi
12050 else
12051 if test -z "$postdep_objects_CXX"; then
12052 postdep_objects_CXX="$p"
12053 else
12054 postdep_objects_CXX="$postdep_objects_CXX $p"
12055 fi
12056 fi
12057 ;;
9c60689e 12058
47aaa820 12059 *) ;; # Ignore the rest.
9c60689e 12060
47aaa820
DWT
12061 esac
12062 done
9c60689e 12063
47aaa820
DWT
12064 # Clean up.
12065 rm -f a.out a.exe
12066else
12067 echo "libtool.m4: error: problem compiling CXX test program"
12068fi
9c60689e 12069
47aaa820 12070$RM -f confest.$objext
9c60689e 12071
47aaa820
DWT
12072# PORTME: override above test on systems where it is broken
12073case $host_os in
12074interix[3-9]*)
12075 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12076 # hack all around it, let's just trust "g++" to DTRT.
12077 predep_objects_CXX=
12078 postdep_objects_CXX=
12079 postdeps_CXX=
12080 ;;
9c60689e 12081
47aaa820
DWT
12082linux*)
12083 case `$CC -V 2>&1 | sed 5q` in
12084 *Sun\ C*)
12085 # Sun C++ 5.9
9c60689e 12086
47aaa820
DWT
12087 # The more standards-conforming stlport4 library is
12088 # incompatible with the Cstd library. Avoid specifying
12089 # it if it's in CXXFLAGS. Ignore libCrun as
12090 # -library=stlport4 depends on it.
12091 case " $CXX $CXXFLAGS " in
12092 *" -library=stlport4 "*)
12093 solaris_use_stlport4=yes
12094 ;;
12095 esac
9c60689e 12096
47aaa820
DWT
12097 if test "$solaris_use_stlport4" != yes; then
12098 postdeps_CXX='-library=Cstd -library=Crun'
12099 fi
12100 ;;
12101 esac
12102 ;;
9c60689e 12103
47aaa820
DWT
12104solaris*)
12105 case $cc_basename in
12106 CC*)
12107 # The more standards-conforming stlport4 library is
12108 # incompatible with the Cstd library. Avoid specifying
12109 # it if it's in CXXFLAGS. Ignore libCrun as
12110 # -library=stlport4 depends on it.
12111 case " $CXX $CXXFLAGS " in
12112 *" -library=stlport4 "*)
12113 solaris_use_stlport4=yes
12114 ;;
12115 esac
9c60689e 12116
47aaa820
DWT
12117 # Adding this requires a known-good setup of shared libraries for
12118 # Sun compiler versions before 5.6, else PIC objects from an old
12119 # archive will be linked into the output, leading to subtle bugs.
12120 if test "$solaris_use_stlport4" != yes; then
12121 postdeps_CXX='-library=Cstd -library=Crun'
12122 fi
12123 ;;
12124 esac
12125 ;;
12126esac
9c60689e 12127
9c60689e 12128
47aaa820
DWT
12129case " $postdeps_CXX " in
12130*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12131esac
12132 compiler_lib_search_dirs_CXX=
12133if test -n "${compiler_lib_search_path_CXX}"; then
12134 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12135fi
9c60689e 12136
9c60689e 12137
9c60689e 12138
9c60689e 12139
9c60689e 12140
9c60689e 12141
9c60689e 12142
9c60689e 12143
9c60689e 12144
9c60689e 12145
9c60689e 12146
9c60689e 12147
9c60689e 12148
9c60689e 12149
9c60689e 12150
9c60689e 12151
9c60689e 12152
9c60689e 12153
9c60689e 12154
9c60689e 12155
9c60689e 12156
9c60689e 12157
9c60689e 12158
9c60689e 12159
9c60689e 12160
9c60689e 12161
9c60689e 12162
9c60689e 12163
9c60689e 12164
9c60689e 12165
9c60689e 12166
47aaa820
DWT
12167 lt_prog_compiler_wl_CXX=
12168lt_prog_compiler_pic_CXX=
12169lt_prog_compiler_static_CXX=
9c60689e
DWT
12170
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12172$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12173
12174 # C++ specific cases for pic, static, wl, etc.
12175 if test "$GXX" = yes; then
12176 lt_prog_compiler_wl_CXX='-Wl,'
12177 lt_prog_compiler_static_CXX='-static'
12178
12179 case $host_os in
12180 aix*)
12181 # All AIX code is PIC.
12182 if test "$host_cpu" = ia64; then
12183 # AIX 5 now supports IA64 processor
12184 lt_prog_compiler_static_CXX='-Bstatic'
12185 fi
12186 ;;
12187
12188 amigaos*)
12189 case $host_cpu in
12190 powerpc)
12191 # see comment about AmigaOS4 .so support
12192 lt_prog_compiler_pic_CXX='-fPIC'
12193 ;;
12194 m68k)
12195 # FIXME: we need at least 68020 code to build shared libraries, but
12196 # adding the `-m68020' flag to GCC prevents building anything better,
12197 # like `-m68040'.
12198 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12199 ;;
12200 esac
12201 ;;
12202
12203 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12204 # PIC is the default for these OSes.
12205 ;;
12206 mingw* | cygwin* | os2* | pw32* | cegcc*)
12207 # This hack is so that the source file can tell whether it is being
12208 # built for inclusion in a dll (and should export symbols for example).
12209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12210 # (--disable-auto-import) libraries
12211 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12212 ;;
12213 darwin* | rhapsody*)
12214 # PIC is the default on this platform
12215 # Common symbols not allowed in MH_DYLIB files
12216 lt_prog_compiler_pic_CXX='-fno-common'
12217 ;;
12218 *djgpp*)
12219 # DJGPP does not support shared libraries at all
12220 lt_prog_compiler_pic_CXX=
12221 ;;
12222 interix[3-9]*)
12223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12224 # Instead, we relocate shared libraries at runtime.
12225 ;;
12226 sysv4*MP*)
12227 if test -d /usr/nec; then
12228 lt_prog_compiler_pic_CXX=-Kconform_pic
12229 fi
12230 ;;
12231 hpux*)
12232 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12233 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12234 # sets the default TLS model and affects inlining.
12235 case $host_cpu in
12236 hppa*64*)
12237 ;;
12238 *)
12239 lt_prog_compiler_pic_CXX='-fPIC'
12240 ;;
12241 esac
12242 ;;
12243 *qnx* | *nto*)
12244 # QNX uses GNU C++, but need to define -shared option too, otherwise
12245 # it will coredump.
12246 lt_prog_compiler_pic_CXX='-fPIC -shared'
12247 ;;
12248 *)
12249 lt_prog_compiler_pic_CXX='-fPIC'
12250 ;;
12251 esac
12252 else
12253 case $host_os in
12254 aix[4-9]*)
12255 # All AIX code is PIC.
12256 if test "$host_cpu" = ia64; then
12257 # AIX 5 now supports IA64 processor
12258 lt_prog_compiler_static_CXX='-Bstatic'
12259 else
12260 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12261 fi
12262 ;;
12263 chorus*)
12264 case $cc_basename in
12265 cxch68*)
12266 # Green Hills C++ Compiler
12267 # _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"
12268 ;;
12269 esac
12270 ;;
12271 dgux*)
12272 case $cc_basename in
12273 ec++*)
12274 lt_prog_compiler_pic_CXX='-KPIC'
12275 ;;
12276 ghcx*)
12277 # Green Hills C++ Compiler
12278 lt_prog_compiler_pic_CXX='-pic'
12279 ;;
12280 *)
12281 ;;
12282 esac
12283 ;;
12284 freebsd* | dragonfly*)
12285 # FreeBSD uses GNU C++
12286 ;;
12287 hpux9* | hpux10* | hpux11*)
12288 case $cc_basename in
12289 CC*)
12290 lt_prog_compiler_wl_CXX='-Wl,'
12291 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12292 if test "$host_cpu" != ia64; then
12293 lt_prog_compiler_pic_CXX='+Z'
12294 fi
12295 ;;
12296 aCC*)
12297 lt_prog_compiler_wl_CXX='-Wl,'
12298 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12299 case $host_cpu in
12300 hppa*64*|ia64*)
12301 # +Z the default
12302 ;;
12303 *)
12304 lt_prog_compiler_pic_CXX='+Z'
12305 ;;
12306 esac
12307 ;;
12308 *)
12309 ;;
12310 esac
12311 ;;
12312 interix*)
12313 # This is c89, which is MS Visual C++ (no shared libs)
12314 # Anyone wants to do a port?
12315 ;;
12316 irix5* | irix6* | nonstopux*)
12317 case $cc_basename in
12318 CC*)
12319 lt_prog_compiler_wl_CXX='-Wl,'
12320 lt_prog_compiler_static_CXX='-non_shared'
12321 # CC pic flag -KPIC is the default.
12322 ;;
12323 *)
12324 ;;
12325 esac
12326 ;;
12327 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12328 case $cc_basename in
12329 KCC*)
12330 # KAI C++ Compiler
12331 lt_prog_compiler_wl_CXX='--backend -Wl,'
12332 lt_prog_compiler_pic_CXX='-fPIC'
12333 ;;
12334 ecpc* )
12335 # old Intel C++ for x86_64 which still supported -KPIC.
12336 lt_prog_compiler_wl_CXX='-Wl,'
12337 lt_prog_compiler_pic_CXX='-KPIC'
12338 lt_prog_compiler_static_CXX='-static'
12339 ;;
12340 icpc* )
12341 # Intel C++, used to be incompatible with GCC.
12342 # ICC 10 doesn't accept -KPIC any more.
12343 lt_prog_compiler_wl_CXX='-Wl,'
12344 lt_prog_compiler_pic_CXX='-fPIC'
12345 lt_prog_compiler_static_CXX='-static'
12346 ;;
12347 pgCC* | pgcpp*)
12348 # Portland Group C++ compiler
12349 lt_prog_compiler_wl_CXX='-Wl,'
12350 lt_prog_compiler_pic_CXX='-fpic'
12351 lt_prog_compiler_static_CXX='-Bstatic'
12352 ;;
12353 cxx*)
12354 # Compaq C++
12355 # Make sure the PIC flag is empty. It appears that all Alpha
12356 # Linux and Compaq Tru64 Unix objects are PIC.
12357 lt_prog_compiler_pic_CXX=
12358 lt_prog_compiler_static_CXX='-non_shared'
12359 ;;
12360 xlc* | xlC*)
12361 # IBM XL 8.0 on PPC
12362 lt_prog_compiler_wl_CXX='-Wl,'
12363 lt_prog_compiler_pic_CXX='-qpic'
12364 lt_prog_compiler_static_CXX='-qstaticlink'
12365 ;;
12366 *)
12367 case `$CC -V 2>&1 | sed 5q` in
12368 *Sun\ C*)
12369 # Sun C++ 5.9
12370 lt_prog_compiler_pic_CXX='-KPIC'
12371 lt_prog_compiler_static_CXX='-Bstatic'
12372 lt_prog_compiler_wl_CXX='-Qoption ld '
12373 ;;
12374 esac
12375 ;;
12376 esac
12377 ;;
12378 lynxos*)
12379 ;;
12380 m88k*)
12381 ;;
12382 mvs*)
12383 case $cc_basename in
12384 cxx*)
12385 lt_prog_compiler_pic_CXX='-W c,exportall'
12386 ;;
12387 *)
12388 ;;
12389 esac
12390 ;;
12391 netbsd* | netbsdelf*-gnu)
12392 ;;
12393 *qnx* | *nto*)
12394 # QNX uses GNU C++, but need to define -shared option too, otherwise
12395 # it will coredump.
12396 lt_prog_compiler_pic_CXX='-fPIC -shared'
12397 ;;
12398 osf3* | osf4* | osf5*)
12399 case $cc_basename in
12400 KCC*)
12401 lt_prog_compiler_wl_CXX='--backend -Wl,'
12402 ;;
12403 RCC*)
12404 # Rational C++ 2.4.1
12405 lt_prog_compiler_pic_CXX='-pic'
12406 ;;
12407 cxx*)
12408 # Digital/Compaq C++
12409 lt_prog_compiler_wl_CXX='-Wl,'
12410 # Make sure the PIC flag is empty. It appears that all Alpha
12411 # Linux and Compaq Tru64 Unix objects are PIC.
12412 lt_prog_compiler_pic_CXX=
12413 lt_prog_compiler_static_CXX='-non_shared'
12414 ;;
12415 *)
12416 ;;
12417 esac
12418 ;;
12419 psos*)
12420 ;;
12421 solaris*)
12422 case $cc_basename in
12423 CC*)
12424 # Sun C++ 4.2, 5.x and Centerline C++
12425 lt_prog_compiler_pic_CXX='-KPIC'
12426 lt_prog_compiler_static_CXX='-Bstatic'
12427 lt_prog_compiler_wl_CXX='-Qoption ld '
12428 ;;
12429 gcx*)
12430 # Green Hills C++ Compiler
12431 lt_prog_compiler_pic_CXX='-PIC'
12432 ;;
12433 *)
12434 ;;
12435 esac
12436 ;;
12437 sunos4*)
12438 case $cc_basename in
12439 CC*)
12440 # Sun C++ 4.x
12441 lt_prog_compiler_pic_CXX='-pic'
12442 lt_prog_compiler_static_CXX='-Bstatic'
12443 ;;
12444 lcc*)
12445 # Lucid
12446 lt_prog_compiler_pic_CXX='-pic'
12447 ;;
12448 *)
12449 ;;
12450 esac
12451 ;;
12452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12453 case $cc_basename in
12454 CC*)
12455 lt_prog_compiler_wl_CXX='-Wl,'
12456 lt_prog_compiler_pic_CXX='-KPIC'
12457 lt_prog_compiler_static_CXX='-Bstatic'
12458 ;;
12459 esac
12460 ;;
12461 tandem*)
12462 case $cc_basename in
12463 NCC*)
12464 # NonStop-UX NCC 3.20
12465 lt_prog_compiler_pic_CXX='-KPIC'
12466 ;;
12467 *)
12468 ;;
12469 esac
12470 ;;
12471 vxworks*)
12472 ;;
12473 *)
12474 lt_prog_compiler_can_build_shared_CXX=no
12475 ;;
12476 esac
12477 fi
12478
12479case $host_os in
12480 # For platforms which do not support PIC, -DPIC is meaningless:
12481 *djgpp*)
12482 lt_prog_compiler_pic_CXX=
12483 ;;
12484 *)
12485 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12486 ;;
12487esac
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12489$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12490
12491
12492
12493#
12494# Check to make sure the PIC flag actually works.
12495#
12496if test -n "$lt_prog_compiler_pic_CXX"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12498$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12499if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12501else
12502 lt_cv_prog_compiler_pic_works_CXX=no
12503 ac_outfile=conftest.$ac_objext
12504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12505 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12506 # Insert the option either (1) after the last *FLAGS variable, or
12507 # (2) before a word containing "conftest.", or (3) at the end.
12508 # Note that $ac_compile itself does not contain backslashes and begins
12509 # with a dollar sign (not a hyphen), so the echo should work correctly.
12510 # The option is referenced via a variable to avoid confusing sed.
12511 lt_compile=`echo "$ac_compile" | $SED \
12512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12514 -e 's:$: $lt_compiler_flag:'`
27557508 12515 (eval echo "\"\$as_me:12515: $lt_compile\"" >&5)
9c60689e
DWT
12516 (eval "$lt_compile" 2>conftest.err)
12517 ac_status=$?
12518 cat conftest.err >&5
27557508 12519 echo "$as_me:12519: \$? = $ac_status" >&5
9c60689e
DWT
12520 if (exit $ac_status) && test -s "$ac_outfile"; then
12521 # The compiler can only warn and ignore the option if not recognized
12522 # So say no if there are warnings other than the usual output.
12523 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12526 lt_cv_prog_compiler_pic_works_CXX=yes
12527 fi
12528 fi
12529 $RM conftest*
12530
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12533$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12534
12535if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12536 case $lt_prog_compiler_pic_CXX in
12537 "" | " "*) ;;
12538 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12539 esac
12540else
12541 lt_prog_compiler_pic_CXX=
12542 lt_prog_compiler_can_build_shared_CXX=no
12543fi
12544
12545fi
12546
12547
12548
47aaa820
DWT
12549#
12550# Check to make sure the static flag actually works.
12551#
12552wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12554$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12555if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12556 $as_echo_n "(cached) " >&6
12557else
12558 lt_cv_prog_compiler_static_works_CXX=no
12559 save_LDFLAGS="$LDFLAGS"
12560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12561 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12563 # The linker can only warn and ignore the option if not recognized
12564 # So say no if there are warnings
12565 if test -s conftest.err; then
12566 # Append any errors to the config.log.
12567 cat conftest.err 1>&5
12568 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12570 if diff conftest.exp conftest.er2 >/dev/null; then
12571 lt_cv_prog_compiler_static_works_CXX=yes
12572 fi
12573 else
12574 lt_cv_prog_compiler_static_works_CXX=yes
12575 fi
12576 fi
12577 $RM -r conftest*
12578 LDFLAGS="$save_LDFLAGS"
12579
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12582$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12583
12584if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12585 :
12586else
12587 lt_prog_compiler_static_CXX=
12588fi
12589
12590
12591
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12594$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12595if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597else
12598 lt_cv_prog_compiler_c_o_CXX=no
12599 $RM -r conftest 2>/dev/null
12600 mkdir conftest
12601 cd conftest
12602 mkdir out
12603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12604
12605 lt_compiler_flag="-o out/conftest2.$ac_objext"
12606 # Insert the option either (1) after the last *FLAGS variable, or
12607 # (2) before a word containing "conftest.", or (3) at the end.
12608 # Note that $ac_compile itself does not contain backslashes and begins
12609 # with a dollar sign (not a hyphen), so the echo should work correctly.
12610 lt_compile=`echo "$ac_compile" | $SED \
12611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12613 -e 's:$: $lt_compiler_flag:'`
27557508 12614 (eval echo "\"\$as_me:12614: $lt_compile\"" >&5)
47aaa820
DWT
12615 (eval "$lt_compile" 2>out/conftest.err)
12616 ac_status=$?
12617 cat out/conftest.err >&5
27557508 12618 echo "$as_me:12618: \$? = $ac_status" >&5
47aaa820
DWT
12619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12620 then
12621 # The compiler can only warn and ignore the option if not recognized
12622 # So say no if there are warnings
12623 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12626 lt_cv_prog_compiler_c_o_CXX=yes
12627 fi
12628 fi
12629 chmod u+w . 2>&5
12630 $RM conftest*
12631 # SGI C++ compiler will create directory out/ii_files/ for
12632 # template instantiation
12633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12634 $RM out/* && rmdir out
12635 cd ..
12636 $RM -r conftest
12637 $RM conftest*
12638
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12641$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12642
12643
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12646$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12647if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649else
12650 lt_cv_prog_compiler_c_o_CXX=no
12651 $RM -r conftest 2>/dev/null
12652 mkdir conftest
12653 cd conftest
12654 mkdir out
12655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12656
12657 lt_compiler_flag="-o out/conftest2.$ac_objext"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 lt_compile=`echo "$ac_compile" | $SED \
12663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665 -e 's:$: $lt_compiler_flag:'`
27557508 12666 (eval echo "\"\$as_me:12666: $lt_compile\"" >&5)
47aaa820
DWT
12667 (eval "$lt_compile" 2>out/conftest.err)
12668 ac_status=$?
12669 cat out/conftest.err >&5
27557508 12670 echo "$as_me:12670: \$? = $ac_status" >&5
47aaa820
DWT
12671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12672 then
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings
12675 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12678 lt_cv_prog_compiler_c_o_CXX=yes
12679 fi
12680 fi
12681 chmod u+w . 2>&5
12682 $RM conftest*
12683 # SGI C++ compiler will create directory out/ii_files/ for
12684 # template instantiation
12685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12686 $RM out/* && rmdir out
12687 cd ..
12688 $RM -r conftest
12689 $RM conftest*
12690
12691fi
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12693$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12694
12695
12696
12697
12698hard_links="nottested"
12699if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12700 # do not overwrite the value of need_locks provided by the user
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12702$as_echo_n "checking if we can lock with hard links... " >&6; }
12703 hard_links=yes
12704 $RM conftest*
12705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12706 touch conftest.a
12707 ln conftest.a conftest.b 2>&5 || hard_links=no
12708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12710$as_echo "$hard_links" >&6; }
12711 if test "$hard_links" = no; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12713$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12714 need_locks=warn
12715 fi
12716else
12717 need_locks=no
12718fi
12719
12720
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12723$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12724
12725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12726 case $host_os in
12727 aix[4-9]*)
12728 # If we're using GNU nm, then we don't want the "-C" option.
12729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12731 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'
12732 else
12733 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'
12734 fi
12735 ;;
12736 pw32*)
12737 export_symbols_cmds_CXX="$ltdll_cmds"
12738 ;;
12739 cygwin* | mingw* | cegcc*)
12740 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'
12741 ;;
12742 linux* | k*bsd*-gnu)
12743 link_all_deplibs_CXX=no
12744 ;;
12745 *)
12746 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12747 ;;
12748 esac
12749 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12750
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12752$as_echo "$ld_shlibs_CXX" >&6; }
12753test "$ld_shlibs_CXX" = no && can_build_shared=no
12754
12755with_gnu_ld_CXX=$with_gnu_ld
12756
12757
12758
12759
12760
12761
12762#
12763# Do we need to explicitly link libc?
12764#
12765case "x$archive_cmds_need_lc_CXX" in
12766x|xyes)
12767 # Assume -lc should be added
12768 archive_cmds_need_lc_CXX=yes
12769
12770 if test "$enable_shared" = yes && test "$GCC" = yes; then
12771 case $archive_cmds_CXX in
12772 *'~'*)
12773 # FIXME: we may have to deal with multi-command sequences.
12774 ;;
12775 '$CC '*)
12776 # Test whether the compiler implicitly links with -lc since on some
12777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12778 # to ld, don't add -lc before -lgcc.
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12780$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12781 $RM conftest*
12782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12783
12784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12785 (eval $ac_compile) 2>&5
12786 ac_status=$?
12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788 test $ac_status = 0; } 2>conftest.err; then
12789 soname=conftest
12790 lib=conftest
12791 libobjs=conftest.$ac_objext
12792 deplibs=
12793 wl=$lt_prog_compiler_wl_CXX
12794 pic_flag=$lt_prog_compiler_pic_CXX
12795 compiler_flags=-v
12796 linker_flags=-v
12797 verstring=
12798 output_objdir=.
12799 libname=conftest
12800 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12801 allow_undefined_flag_CXX=
12802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12803 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12804 ac_status=$?
12805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806 test $ac_status = 0; }
12807 then
12808 archive_cmds_need_lc_CXX=no
12809 else
12810 archive_cmds_need_lc_CXX=yes
12811 fi
12812 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12813 else
12814 cat conftest.err 1>&5
12815 fi
12816 $RM conftest*
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12818$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12819 ;;
12820 esac
12821 fi
12822 ;;
12823esac
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12889$as_echo_n "checking dynamic linker characteristics... " >&6; }
12890
12891library_names_spec=
12892libname_spec='lib$name'
12893soname_spec=
12894shrext_cmds=".so"
12895postinstall_cmds=
12896postuninstall_cmds=
12897finish_cmds=
12898finish_eval=
12899shlibpath_var=
12900shlibpath_overrides_runpath=unknown
12901version_type=none
12902dynamic_linker="$host_os ld.so"
12903sys_lib_dlsearch_path_spec="/lib /usr/lib"
12904need_lib_prefix=unknown
12905hardcode_into_libs=no
12906
12907# when you set need_version to no, make sure it does not cause -set_version
12908# flags to be left without arguments
12909need_version=unknown
12910
12911case $host_os in
12912aix3*)
12913 version_type=linux
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12915 shlibpath_var=LIBPATH
12916
12917 # AIX 3 has no versioning support, so we append a major version to the name.
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 ;;
12920
12921aix[4-9]*)
12922 version_type=linux
12923 need_lib_prefix=no
12924 need_version=no
12925 hardcode_into_libs=yes
12926 if test "$host_cpu" = ia64; then
12927 # AIX 5 supports IA64
12928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12929 shlibpath_var=LD_LIBRARY_PATH
12930 else
12931 # With GCC up to 2.95.x, collect2 would create an import file
12932 # for dependence libraries. The import file would start with
12933 # the line `#! .'. This would cause the generated library to
12934 # depend on `.', always an invalid library. This was fixed in
12935 # development snapshots of GCC prior to 3.0.
12936 case $host_os in
12937 aix4 | aix4.[01] | aix4.[01].*)
12938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12939 echo ' yes '
12940 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12941 :
12942 else
12943 can_build_shared=no
12944 fi
12945 ;;
12946 esac
12947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12948 # soname into executable. Probably we can add versioning support to
12949 # collect2, so additional links can be useful in future.
12950 if test "$aix_use_runtimelinking" = yes; then
12951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12952 # instead of lib<name>.a to let people know that these are not
12953 # typical AIX shared libraries.
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 else
12956 # We preserve .a as extension for shared libraries through AIX4.2
12957 # and later when we are not doing run time linking.
12958 library_names_spec='${libname}${release}.a $libname.a'
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 fi
12961 shlibpath_var=LIBPATH
12962 fi
12963 ;;
12964
12965amigaos*)
12966 case $host_cpu in
12967 powerpc)
12968 # Since July 2007 AmigaOS4 officially supports .so libraries.
12969 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12971 ;;
12972 m68k)
12973 library_names_spec='$libname.ixlibrary $libname.a'
12974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12975 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'
12976 ;;
12977 esac
12978 ;;
12979
12980beos*)
12981 library_names_spec='${libname}${shared_ext}'
12982 dynamic_linker="$host_os ld.so"
12983 shlibpath_var=LIBRARY_PATH
12984 ;;
12985
12986bsdi[45]*)
12987 version_type=linux
12988 need_version=no
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990 soname_spec='${libname}${release}${shared_ext}$major'
12991 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12994 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12995 # the default ld.so.conf also contains /usr/contrib/lib and
12996 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12997 # libtool to hard-code these into programs
12998 ;;
9c60689e 12999
47aaa820
DWT
13000cygwin* | mingw* | pw32* | cegcc*)
13001 version_type=windows
13002 shrext_cmds=".dll"
13003 need_version=no
13004 need_lib_prefix=no
9c60689e 13005
47aaa820
DWT
13006 case $GCC,$host_os in
13007 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13008 library_names_spec='$libname.dll.a'
13009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13010 postinstall_cmds='base_file=`basename \${file}`~
13011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13012 dldir=$destdir/`dirname \$dlpath`~
13013 test -d \$dldir || mkdir -p \$dldir~
13014 $install_prog $dir/$dlname \$dldir/$dlname~
13015 chmod a+x \$dldir/$dlname~
13016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13018 fi'
13019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13020 dlpath=$dir/\$dldll~
13021 $RM \$dlpath'
13022 shlibpath_overrides_runpath=yes
9c60689e 13023
47aaa820
DWT
13024 case $host_os in
13025 cygwin*)
13026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13028 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13029 ;;
13030 mingw* | cegcc*)
13031 # MinGW DLLs use traditional 'lib' prefix
13032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13033 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13034 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13035 # It is most probably a Windows format PATH printed by
13036 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13037 # path with ; separators, and with drive letters. We can handle the
13038 # drive letters (cygwin fileutils understands them), so leave them,
13039 # especially as we might pass files found there to a mingw objdump,
13040 # which wouldn't understand a cygwinified path. Ahh.
13041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13042 else
13043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13044 fi
13045 ;;
13046 pw32*)
13047 # pw32 DLLs use 'pw' prefix rather than 'lib'
13048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13049 ;;
13050 esac
13051 ;;
9c60689e 13052
47aaa820
DWT
13053 *)
13054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13055 ;;
13056 esac
13057 dynamic_linker='Win32 ld.exe'
13058 # FIXME: first we should search . and the directory the executable is in
13059 shlibpath_var=PATH
13060 ;;
9c60689e 13061
47aaa820
DWT
13062darwin* | rhapsody*)
13063 dynamic_linker="$host_os dyld"
13064 version_type=darwin
13065 need_lib_prefix=no
13066 need_version=no
13067 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13068 soname_spec='${libname}${release}${major}$shared_ext'
13069 shlibpath_overrides_runpath=yes
13070 shlibpath_var=DYLD_LIBRARY_PATH
13071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13072
47aaa820
DWT
13073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13074 ;;
9c60689e 13075
47aaa820
DWT
13076dgux*)
13077 version_type=linux
13078 need_lib_prefix=no
13079 need_version=no
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13081 soname_spec='${libname}${release}${shared_ext}$major'
13082 shlibpath_var=LD_LIBRARY_PATH
13083 ;;
9c60689e 13084
47aaa820
DWT
13085freebsd1*)
13086 dynamic_linker=no
13087 ;;
9c60689e 13088
47aaa820
DWT
13089freebsd* | dragonfly*)
13090 # DragonFly does not have aout. When/if they implement a new
13091 # versioning mechanism, adjust this.
13092 if test -x /usr/bin/objformat; then
13093 objformat=`/usr/bin/objformat`
13094 else
13095 case $host_os in
13096 freebsd[123]*) objformat=aout ;;
13097 *) objformat=elf ;;
13098 esac
13099 fi
13100 version_type=freebsd-$objformat
13101 case $version_type in
13102 freebsd-elf*)
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13104 need_version=no
13105 need_lib_prefix=no
13106 ;;
13107 freebsd-*)
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13109 need_version=yes
13110 ;;
13111 esac
13112 shlibpath_var=LD_LIBRARY_PATH
13113 case $host_os in
13114 freebsd2*)
13115 shlibpath_overrides_runpath=yes
13116 ;;
13117 freebsd3.[01]* | freebsdelf3.[01]*)
13118 shlibpath_overrides_runpath=yes
13119 hardcode_into_libs=yes
13120 ;;
13121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13123 shlibpath_overrides_runpath=no
13124 hardcode_into_libs=yes
13125 ;;
13126 *) # from 4.6 on, and DragonFly
13127 shlibpath_overrides_runpath=yes
13128 hardcode_into_libs=yes
13129 ;;
13130 esac
13131 ;;
9c60689e 13132
47aaa820
DWT
13133gnu*)
13134 version_type=linux
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13138 soname_spec='${libname}${release}${shared_ext}$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 hardcode_into_libs=yes
13141 ;;
9c60689e 13142
47aaa820
DWT
13143hpux9* | hpux10* | hpux11*)
13144 # Give a soname corresponding to the major version so that dld.sl refuses to
13145 # link against other versions.
13146 version_type=sunos
13147 need_lib_prefix=no
13148 need_version=no
13149 case $host_cpu in
13150 ia64*)
13151 shrext_cmds='.so'
13152 hardcode_into_libs=yes
13153 dynamic_linker="$host_os dld.so"
13154 shlibpath_var=LD_LIBRARY_PATH
13155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 if test "X$HPUX_IA64_MODE" = X32; then
13159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13160 else
13161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13162 fi
13163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13164 ;;
13165 hppa*64*)
13166 shrext_cmds='.sl'
13167 hardcode_into_libs=yes
13168 dynamic_linker="$host_os dld.sl"
13169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13175 ;;
13176 *)
13177 shrext_cmds='.sl'
13178 dynamic_linker="$host_os dld.sl"
13179 shlibpath_var=SHLIB_PATH
13180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 ;;
13184 esac
13185 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13186 postinstall_cmds='chmod 555 $lib'
13187 ;;
9c60689e 13188
47aaa820
DWT
13189interix[3-9]*)
13190 version_type=linux
13191 need_lib_prefix=no
13192 need_version=no
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 shlibpath_overrides_runpath=no
13198 hardcode_into_libs=yes
13199 ;;
9c60689e 13200
47aaa820
DWT
13201irix5* | irix6* | nonstopux*)
13202 case $host_os in
13203 nonstopux*) version_type=nonstopux ;;
13204 *)
13205 if test "$lt_cv_prog_gnu_ld" = yes; then
13206 version_type=linux
13207 else
13208 version_type=irix
13209 fi ;;
13210 esac
13211 need_lib_prefix=no
13212 need_version=no
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13215 case $host_os in
13216 irix5* | nonstopux*)
13217 libsuff= shlibsuff=
13218 ;;
13219 *)
13220 case $LD in # libtool.m4 will add one of these switches to LD
13221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13222 libsuff= shlibsuff= libmagic=32-bit;;
13223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13224 libsuff=32 shlibsuff=N32 libmagic=N32;;
13225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13226 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13227 *) libsuff= shlibsuff= libmagic=never-match;;
13228 esac
13229 ;;
13230 esac
13231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13232 shlibpath_overrides_runpath=no
13233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13235 hardcode_into_libs=yes
13236 ;;
9c60689e 13237
47aaa820
DWT
13238# No shared lib support for Linux oldld, aout, or coff.
13239linux*oldld* | linux*aout* | linux*coff*)
13240 dynamic_linker=no
13241 ;;
9c60689e 13242
47aaa820
DWT
13243# This must be Linux ELF.
13244linux* | k*bsd*-gnu | kopensolaris*-gnu)
13245 version_type=linux
13246 need_lib_prefix=no
13247 need_version=no
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13251 shlibpath_var=LD_LIBRARY_PATH
13252 shlibpath_overrides_runpath=no
13253 # Some binutils ld are patched to set DT_RUNPATH
13254 save_LDFLAGS=$LDFLAGS
13255 save_libdir=$libdir
13256 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13257 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h. */
9c60689e 13260
47aaa820
DWT
13261int
13262main ()
13263{
9c60689e 13264
47aaa820
DWT
13265 ;
13266 return 0;
13267}
13268_ACEOF
13269if ac_fn_cxx_try_link "$LINENO"; then :
13270 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13271 shlibpath_overrides_runpath=yes
9c60689e 13272fi
47aaa820
DWT
13273fi
13274rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LDFLAGS=$save_LDFLAGS
13277 libdir=$save_libdir
9c60689e 13278
47aaa820
DWT
13279 # This implies no fast_install, which is unacceptable.
13280 # Some rework will be needed to allow for fast_install
13281 # before this can be enabled.
13282 hardcode_into_libs=yes
9c60689e 13283
47aaa820
DWT
13284 # Append ld.so.conf contents to the search path
13285 if test -f /etc/ld.so.conf; then
13286 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' ' '`
13287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13288 fi
9c60689e 13289
47aaa820
DWT
13290 # We used to test for /lib/ld.so.1 and disable shared libraries on
13291 # powerpc, because MkLinux only supported shared libraries with the
13292 # GNU dynamic linker. Since this was broken with cross compilers,
13293 # most powerpc-linux boxes support dynamic linking these days and
13294 # people can always --disable-shared, the test was removed, and we
13295 # assume the GNU/Linux dynamic linker is in use.
13296 dynamic_linker='GNU/Linux ld.so'
9c60689e 13297 ;;
47aaa820
DWT
13298
13299netbsdelf*-gnu)
13300 version_type=linux
13301 need_lib_prefix=no
13302 need_version=no
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 shlibpath_overrides_runpath=no
13307 hardcode_into_libs=yes
13308 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13309 ;;
47aaa820
DWT
13310
13311netbsd*)
13312 version_type=sunos
13313 need_lib_prefix=no
13314 need_version=no
13315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13318 dynamic_linker='NetBSD (a.out) ld.so'
13319 else
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13321 soname_spec='${libname}${release}${shared_ext}$major'
13322 dynamic_linker='NetBSD ld.elf_so'
13323 fi
13324 shlibpath_var=LD_LIBRARY_PATH
13325 shlibpath_overrides_runpath=yes
13326 hardcode_into_libs=yes
9c60689e 13327 ;;
9c60689e 13328
47aaa820
DWT
13329newsos6)
13330 version_type=linux
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332 shlibpath_var=LD_LIBRARY_PATH
13333 shlibpath_overrides_runpath=yes
13334 ;;
9c60689e 13335
47aaa820
DWT
13336*nto* | *qnx*)
13337 version_type=qnx
13338 need_lib_prefix=no
13339 need_version=no
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 shlibpath_var=LD_LIBRARY_PATH
13343 shlibpath_overrides_runpath=no
13344 hardcode_into_libs=yes
13345 dynamic_linker='ldqnx.so'
13346 ;;
9c60689e 13347
47aaa820
DWT
13348openbsd*)
13349 version_type=sunos
13350 sys_lib_dlsearch_path_spec="/usr/lib"
13351 need_lib_prefix=no
13352 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13353 case $host_os in
13354 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13355 *) need_version=no ;;
13356 esac
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13359 shlibpath_var=LD_LIBRARY_PATH
13360 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13361 case $host_os in
13362 openbsd2.[89] | openbsd2.[89].*)
13363 shlibpath_overrides_runpath=no
13364 ;;
13365 *)
13366 shlibpath_overrides_runpath=yes
13367 ;;
13368 esac
13369 else
13370 shlibpath_overrides_runpath=yes
13371 fi
13372 ;;
9c60689e 13373
47aaa820
DWT
13374os2*)
13375 libname_spec='$name'
13376 shrext_cmds=".dll"
13377 need_lib_prefix=no
13378 library_names_spec='$libname${shared_ext} $libname.a'
13379 dynamic_linker='OS/2 ld.exe'
13380 shlibpath_var=LIBPATH
13381 ;;
9c60689e 13382
47aaa820
DWT
13383osf3* | osf4* | osf5*)
13384 version_type=osf
13385 need_lib_prefix=no
13386 need_version=no
13387 soname_spec='${libname}${release}${shared_ext}$major'
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13391 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13392 ;;
9c60689e 13393
47aaa820
DWT
13394rdos*)
13395 dynamic_linker=no
13396 ;;
9c60689e 13397
47aaa820
DWT
13398solaris*)
13399 version_type=linux
13400 need_lib_prefix=no
13401 need_version=no
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13406 hardcode_into_libs=yes
13407 # ldd complains unless libraries are executable
13408 postinstall_cmds='chmod +x $lib'
13409 ;;
9c60689e 13410
47aaa820
DWT
13411sunos4*)
13412 version_type=sunos
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=yes
13417 if test "$with_gnu_ld" = yes; then
13418 need_lib_prefix=no
13419 fi
13420 need_version=yes
13421 ;;
9c60689e 13422
47aaa820
DWT
13423sysv4 | sysv4.3*)
13424 version_type=linux
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 case $host_vendor in
13429 sni)
13430 shlibpath_overrides_runpath=no
13431 need_lib_prefix=no
13432 runpath_var=LD_RUN_PATH
9c60689e 13433 ;;
47aaa820
DWT
13434 siemens)
13435 need_lib_prefix=no
9c60689e 13436 ;;
47aaa820
DWT
13437 motorola)
13438 need_lib_prefix=no
13439 need_version=no
13440 shlibpath_overrides_runpath=no
13441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13442 ;;
13443 esac
9c60689e 13444 ;;
9c60689e 13445
47aaa820
DWT
13446sysv4*MP*)
13447 if test -d /usr/nec ;then
13448 version_type=linux
13449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13450 soname_spec='$libname${shared_ext}.$major'
13451 shlibpath_var=LD_LIBRARY_PATH
13452 fi
13453 ;;
9c60689e 13454
47aaa820
DWT
13455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13456 version_type=freebsd-elf
13457 need_lib_prefix=no
13458 need_version=no
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13460 soname_spec='${libname}${release}${shared_ext}$major'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=yes
13463 hardcode_into_libs=yes
13464 if test "$with_gnu_ld" = yes; then
13465 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13466 else
13467 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13468 case $host_os in
13469 sco3.2v5*)
13470 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13471 ;;
13472 esac
13473 fi
13474 sys_lib_dlsearch_path_spec='/usr/lib'
13475 ;;
9c60689e 13476
47aaa820
DWT
13477tpf*)
13478 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13479 version_type=linux
13480 need_lib_prefix=no
13481 need_version=no
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=no
13485 hardcode_into_libs=yes
13486 ;;
9c60689e 13487
47aaa820
DWT
13488uts4*)
13489 version_type=linux
13490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13491 soname_spec='${libname}${release}${shared_ext}$major'
13492 shlibpath_var=LD_LIBRARY_PATH
13493 ;;
9c60689e 13494
47aaa820
DWT
13495*)
13496 dynamic_linker=no
13497 ;;
13498esac
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13500$as_echo "$dynamic_linker" >&6; }
13501test "$dynamic_linker" = no && can_build_shared=no
9c60689e 13502
47aaa820
DWT
13503variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13504if test "$GCC" = yes; then
13505 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13506fi
9c60689e 13507
47aaa820
DWT
13508if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13509 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13510fi
13511if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13512 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13513fi
9c60689e
DWT
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
47aaa820
DWT
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13551$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13552hardcode_action_CXX=
13553if test -n "$hardcode_libdir_flag_spec_CXX" ||
13554 test -n "$runpath_var_CXX" ||
13555 test "X$hardcode_automatic_CXX" = "Xyes" ; then
9c60689e 13556
47aaa820
DWT
13557 # We can hardcode non-existent directories.
13558 if test "$hardcode_direct_CXX" != no &&
13559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13560 # have to relink, otherwise we might link with an installed library
13561 # when we should be linking with a yet-to-be-installed one
13562 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13563 test "$hardcode_minus_L_CXX" != no; then
13564 # Linking always hardcodes the temporary library directory.
13565 hardcode_action_CXX=relink
13566 else
13567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13568 hardcode_action_CXX=immediate
13569 fi
13570else
13571 # We cannot hardcode anything, or else we can only hardcode existing
13572 # directories.
13573 hardcode_action_CXX=unsupported
13574fi
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13576$as_echo "$hardcode_action_CXX" >&6; }
9c60689e 13577
47aaa820
DWT
13578if test "$hardcode_action_CXX" = relink ||
13579 test "$inherit_rpath_CXX" = yes; then
13580 # Fast installation is not supported
13581 enable_fast_install=no
13582elif test "$shlibpath_overrides_runpath" = yes ||
13583 test "$enable_shared" = no; then
13584 # Fast installation is not necessary
13585 enable_fast_install=needless
13586fi
9c60689e
DWT
13587
13588
13589
13590
13591
13592
13593
47aaa820 13594 fi # test -n "$compiler"
9c60689e 13595
47aaa820
DWT
13596 CC=$lt_save_CC
13597 LDCXX=$LD
13598 LD=$lt_save_LD
13599 GCC=$lt_save_GCC
13600 with_gnu_ld=$lt_save_with_gnu_ld
13601 lt_cv_path_LDCXX=$lt_cv_path_LD
13602 lt_cv_path_LD=$lt_save_path_LD
13603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13605fi # test "$_lt_caught_CXX_error" != yes
9c60689e 13606
47aaa820
DWT
13607ac_ext=c
13608ac_cpp='$CPP $CPPFLAGS'
13609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
13612
13613
47aaa820
DWT
13614ac_ext=cpp
13615ac_cpp='$CXXCPP $CPPFLAGS'
13616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 13619
47aaa820
DWT
13620for ac_prog in 'bison -y' byacc
13621do
13622 # Extract the first word of "$ac_prog", so it can be a program name with args.
13623set dummy $ac_prog; ac_word=$2
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13625$as_echo_n "checking for $ac_word... " >&6; }
13626if test "${ac_cv_prog_YACC+set}" = set; then :
13627 $as_echo_n "(cached) " >&6
13628else
13629 if test -n "$YACC"; then
13630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13631else
13632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633for as_dir in $PATH
13634do
13635 IFS=$as_save_IFS
13636 test -z "$as_dir" && as_dir=.
13637 for ac_exec_ext in '' $ac_executable_extensions; do
13638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13639 ac_cv_prog_YACC="$ac_prog"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 break 2
13642 fi
13643done
13644 done
13645IFS=$as_save_IFS
9c60689e 13646
47aaa820
DWT
13647fi
13648fi
13649YACC=$ac_cv_prog_YACC
13650if test -n "$YACC"; then
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13652$as_echo "$YACC" >&6; }
13653else
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
13656fi
9c60689e
DWT
13657
13658
47aaa820
DWT
13659 test -n "$YACC" && break
13660done
13661test -n "$YACC" || YACC="yacc"
9c60689e 13662
9c60689e 13663
9c60689e 13664
9c60689e 13665
9c60689e 13666
47aaa820
DWT
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
13668$as_echo_n "checking if bison is the parser generator... " >&6; }
13669if test "${ax_cv_prog_bison+set}" = set; then :
13670 $as_echo_n "(cached) " >&6
13671else
9c60689e 13672
47aaa820 13673 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
9c60689e 13674
47aaa820 13675 ax_cv_prog_bison=yes
9c60689e 13676
47aaa820 13677else
9c60689e 13678
47aaa820 13679 ax_cv_prog_bison=no
9c60689e 13680
47aaa820 13681fi
9c60689e 13682
47aaa820
DWT
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
13685$as_echo "$ax_cv_prog_bison" >&6; }
13686 if test "$ax_cv_prog_bison" = yes; then :
9c60689e 13687
47aaa820 13688 :
9c60689e 13689
47aaa820
DWT
13690 BISON=`echo $YACC | $SED -e 's/ -y//'`
13691 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
9c60689e 13692
9c60689e 13693
47aaa820 13694else
9c60689e 13695
47aaa820 13696 :
27557508 13697 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
9c60689e 13698
47aaa820 13699fi
9c60689e 13700
47aaa820
DWT
13701for ac_prog in gawk mawk nawk awk
13702do
13703 # Extract the first word of "$ac_prog", so it can be a program name with args.
13704set dummy $ac_prog; ac_word=$2
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706$as_echo_n "checking for $ac_word... " >&6; }
13707if test "${ac_cv_prog_AWK+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13709else
13710 if test -n "$AWK"; then
13711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13712else
13713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714for as_dir in $PATH
13715do
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_AWK="$ac_prog"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
9c60689e 13723 fi
47aaa820
DWT
13724done
13725 done
13726IFS=$as_save_IFS
9c60689e 13727
47aaa820
DWT
13728fi
13729fi
13730AWK=$ac_cv_prog_AWK
13731if test -n "$AWK"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13733$as_echo "$AWK" >&6; }
13734else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736$as_echo "no" >&6; }
13737fi
9c60689e 13738
9c60689e 13739
47aaa820
DWT
13740 test -n "$AWK" && break
13741done
9c60689e 13742
27557508
DWT
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5
13744$as_echo_n "checking if bison is >= 2.3... " >&6; }
47aaa820 13745as_arg_v1=$BISON_VERSION
27557508 13746as_arg_v2=2.3
47aaa820
DWT
13747awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13748case $? in #(
13749 1) :
13750
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752$as_echo "no" >&6; }
27557508 13753 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
47aaa820
DWT
13754 ;; #(
13755 0) :
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757$as_echo "yes" >&6; } ;; #(
13758 2) :
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760$as_echo "yes" >&6; } ;; #(
13761 *) :
13762 ;;
13763esac
13764
13765# expand $ac_aux_dir to an absolute path
13766am_aux_dir=`cd $ac_aux_dir && pwd`
13767
13768if test x"${MISSING+set}" != xset; then
13769 case $am_aux_dir in
13770 *\ * | *\ *)
13771 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9c60689e 13772 *)
47aaa820 13773 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9c60689e 13774 esac
47aaa820
DWT
13775fi
13776# Use eval to expand $SHELL
13777if eval "$MISSING --run true"; then
13778 am_missing_run="$MISSING --run "
13779else
13780 am_missing_run=
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13782$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13783fi
13784
13785for ac_prog in flex lex
13786do
13787 # Extract the first word of "$ac_prog", so it can be a program name with args.
13788set dummy $ac_prog; ac_word=$2
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
13791if test "${ac_cv_prog_LEX+set}" = set; then :
13792 $as_echo_n "(cached) " >&6
13793else
13794 if test -n "$LEX"; then
13795 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13804 ac_cv_prog_LEX="$ac_prog"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809 done
13810IFS=$as_save_IFS
9c60689e 13811
47aaa820
DWT
13812fi
13813fi
13814LEX=$ac_cv_prog_LEX
13815if test -n "$LEX"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13817$as_echo "$LEX" >&6; }
13818else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
13821fi
9c60689e 13822
9c60689e 13823
47aaa820
DWT
13824 test -n "$LEX" && break
13825done
13826test -n "$LEX" || LEX=":"
13827
13828if test "x$LEX" != "x:"; then
13829 cat >conftest.l <<_ACEOF
13830%%
13831a { ECHO; }
13832b { REJECT; }
13833c { yymore (); }
13834d { yyless (1); }
13835e { yyless (input () != 0); }
13836f { unput (yytext[0]); }
13837. { BEGIN INITIAL; }
13838%%
13839#ifdef YYTEXT_POINTER
13840extern char *yytext;
13841#endif
9c60689e 13842int
47aaa820 13843main (void)
9c60689e 13844{
47aaa820 13845 return ! yylex () + ! yywrap ();
9c60689e
DWT
13846}
13847_ACEOF
47aaa820
DWT
13848{ { ac_try="$LEX conftest.l"
13849case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13852esac
13853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13854$as_echo "$ac_try_echo"; } >&5
13855 (eval "$LEX conftest.l") 2>&5
13856 ac_status=$?
13857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13858 test $ac_status = 0; }
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13860$as_echo_n "checking lex output file root... " >&6; }
13861if test "${ac_cv_prog_lex_root+set}" = set; then :
13862 $as_echo_n "(cached) " >&6
13863else
13864
13865if test -f lex.yy.c; then
13866 ac_cv_prog_lex_root=lex.yy
13867elif test -f lexyy.c; then
13868 ac_cv_prog_lex_root=lexyy
13869else
13870 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
13871fi
13872fi
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13874$as_echo "$ac_cv_prog_lex_root" >&6; }
13875LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13876
13877if test -z "${LEXLIB+set}"; then
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13879$as_echo_n "checking lex library... " >&6; }
13880if test "${ac_cv_lib_lex+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882else
13883
13884 ac_save_LIBS=$LIBS
13885 ac_cv_lib_lex='none needed'
13886 for ac_lib in '' -lfl -ll; do
13887 LIBS="$ac_lib $ac_save_LIBS"
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889/* end confdefs.h. */
13890`cat $LEX_OUTPUT_ROOT.c`
13891_ACEOF
9c60689e 13892if ac_fn_cxx_try_link "$LINENO"; then :
47aaa820 13893 ac_cv_lib_lex=$ac_lib
9c60689e 13894fi
47aaa820
DWT
13895rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897 test "$ac_cv_lib_lex" != 'none needed' && break
13898 done
13899 LIBS=$ac_save_LIBS
13900
13901fi
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13903$as_echo "$ac_cv_lib_lex" >&6; }
13904 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13905fi
13906
13907
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13909$as_echo_n "checking whether yytext is a pointer... " >&6; }
13910if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13911 $as_echo_n "(cached) " >&6
13912else
13913 # POSIX says lex can declare yytext either as a pointer or an array; the
13914# default is implementation-dependent. Figure out which it is, since
13915# not all implementations provide the %pointer and %array declarations.
13916ac_cv_prog_lex_yytext_pointer=no
13917ac_save_LIBS=$LIBS
13918LIBS="$LEXLIB $ac_save_LIBS"
13919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h. */
13921#define YYTEXT_POINTER 1
13922`cat $LEX_OUTPUT_ROOT.c`
13923_ACEOF
13924if ac_fn_cxx_try_link "$LINENO"; then :
13925 ac_cv_prog_lex_yytext_pointer=yes
9c60689e
DWT
13926fi
13927rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
47aaa820 13929LIBS=$ac_save_LIBS
9c60689e 13930
47aaa820
DWT
13931fi
13932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13933$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13934if test $ac_cv_prog_lex_yytext_pointer = yes; then
9c60689e 13935
47aaa820 13936$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9c60689e 13937
47aaa820
DWT
13938fi
13939rm -f conftest.l $LEX_OUTPUT_ROOT.c
9c60689e 13940
47aaa820
DWT
13941fi
13942if test "$LEX" = :; then
13943 LEX=${am_missing_run}flex
13944fi
9c60689e 13945
9c60689e 13946
9c60689e 13947
9c60689e 13948
47aaa820
DWT
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
13950$as_echo_n "checking if flex is the lexer generator... " >&6; }
13951if test "${ax_cv_prog_flex+set}" = set; then :
13952 $as_echo_n "(cached) " >&6
13953else
13954
13955 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
13956
13957 ax_cv_prog_flex=yes
13958
13959else
13960
13961 ax_cv_prog_flex=no
13962
13963fi
13964
13965fi
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
13967$as_echo "$ax_cv_prog_flex" >&6; }
13968 if test "$ax_cv_prog_flex" = yes; then :
13969
13970 :
9c60689e 13971
47aaa820
DWT
13972 FLEX=$LEX
13973 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
9c60689e 13974
9c60689e 13975
47aaa820 13976else
9c60689e 13977
47aaa820
DWT
13978 :
13979 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
9c60689e 13980
47aaa820 13981fi
9c60689e 13982
47aaa820
DWT
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
13984$as_echo_n "checking if flex is >= 2.5.33... " >&6; }
13985as_arg_v1=$FLEX_VERSION
13986as_arg_v2=2.5.33
13987awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13988case $? in #(
13989 1) :
9c60689e 13990
47aaa820
DWT
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992$as_echo "no" >&6; }
13993 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
13994 ;; #(
13995 0) :
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13997$as_echo "yes" >&6; } ;; #(
13998 2) :
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000$as_echo "yes" >&6; } ;; #(
14001 *) :
14002 ;;
14003esac
14004
14005for ac_prog in bash
14006do
14007 # Extract the first word of "$ac_prog", so it can be a program name with args.
14008set dummy $ac_prog; ac_word=$2
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010$as_echo_n "checking for $ac_word... " >&6; }
14011if test "${ac_cv_prog__BASH+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14013else
14014 if test -n "$_BASH"; then
14015 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
14016else
14017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018for as_dir in $PATH
14019do
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024 ac_cv_prog__BASH="$ac_prog"
14025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 break 2
9c60689e 14027 fi
47aaa820
DWT
14028done
14029 done
14030IFS=$as_save_IFS
9c60689e 14031
47aaa820
DWT
14032fi
14033fi
14034_BASH=$ac_cv_prog__BASH
14035if test -n "$_BASH"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
14037$as_echo "$_BASH" >&6; }
14038else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040$as_echo "no" >&6; }
14041fi
14042
14043
14044 test -n "$_BASH" && break
14045done
14046
27557508 14047
47aaa820
DWT
14048for ac_prog in gperf
14049do
14050 # Extract the first word of "$ac_prog", so it can be a program name with args.
14051set dummy $ac_prog; ac_word=$2
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053$as_echo_n "checking for $ac_word... " >&6; }
14054if test "${ac_cv_prog_GPERF+set}" = set; then :
14055 $as_echo_n "(cached) " >&6
14056else
14057 if test -n "$GPERF"; then
14058 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14059else
14060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061for as_dir in $PATH
14062do
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14067 ac_cv_prog_GPERF="$ac_prog"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
9c60689e 14070 fi
47aaa820
DWT
14071done
14072 done
14073IFS=$as_save_IFS
9c60689e 14074
47aaa820
DWT
14075fi
14076fi
14077GPERF=$ac_cv_prog_GPERF
14078if test -n "$GPERF"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14080$as_echo "$GPERF" >&6; }
14081else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083$as_echo "no" >&6; }
14084fi
9c60689e 14085
9c60689e 14086
47aaa820
DWT
14087 test -n "$GPERF" && break
14088done
14089
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14091$as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14092GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14093as_arg_v1=$GPERF_VERSION
14094as_arg_v2=3.0.3
14095awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14096case $? in #(
14097 1) :
14098
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
14101 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14102 ;; #(
14103 0) :
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14105$as_echo "yes" >&6; } ;; #(
14106 2) :
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14108$as_echo "yes" >&6; } ;; #(
14109 *) :
14110 ;;
9c60689e 14111esac
47aaa820
DWT
14112for ac_prog in time
14113do
14114 # Extract the first word of "$ac_prog", so it can be a program name with args.
14115set dummy $ac_prog; ac_word=$2
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14117$as_echo_n "checking for $ac_word... " >&6; }
14118if test "${ac_cv_prog_TIME+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14120else
14121 if test -n "$TIME"; then
14122 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14123else
14124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125for as_dir in $PATH
14126do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
14129 for ac_exec_ext in '' $ac_executable_extensions; do
14130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14131 ac_cv_prog_TIME="$ac_prog"
14132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14133 break 2
14134 fi
14135done
14136 done
14137IFS=$as_save_IFS
9c60689e 14138
9c60689e 14139fi
9c60689e 14140fi
47aaa820
DWT
14141TIME=$ac_cv_prog_TIME
14142if test -n "$TIME"; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14144$as_echo "$TIME" >&6; }
14145else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147$as_echo "no" >&6; }
9c60689e
DWT
14148fi
14149
14150
47aaa820
DWT
14151 test -n "$TIME" && break
14152done
9c60689e
DWT
14153
14154
47aaa820 14155 apr_found="no"
9c60689e 14156
47aaa820
DWT
14157 if test "$target_os" = "os2-emx"; then
14158 # Scripts don't pass test -x on OS/2
14159 TEST_X="test -f"
14160 else
14161 TEST_X="test -x"
14162 fi
9c60689e 14163
47aaa820 14164 acceptable_majors="1"
9c60689e 14165
47aaa820
DWT
14166 apr_temp_acceptable_apr_config=""
14167 for apr_temp_major in $acceptable_majors
14168 do
14169 case $apr_temp_major in
14170 0)
14171 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14172 ;;
14173 *)
14174 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14175 ;;
14176 esac
14177 done
9c60689e 14178
47aaa820
DWT
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14180$as_echo_n "checking for APR... " >&6; }
9c60689e 14181
47aaa820
DWT
14182# Check whether --with-apr was given.
14183if test "${with_apr+set}" = set; then :
14184 withval=$with_apr;
14185 if test "$withval" = "no" || test "$withval" = "yes"; then
14186 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14187 fi
9c60689e 14188
47aaa820
DWT
14189 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14190 do
14191 for lookdir in "$withval/bin" "$withval"
14192 do
14193 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14194 apr_config="$lookdir/$apr_temp_apr_config_file"
9c60689e 14195
47aaa820
DWT
14196 apr_found="yes"
14197 break 2
14198 fi
14199 done
14200 done
9c60689e 14201
47aaa820
DWT
14202 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14203 apr_config="$withval"
14204 apr_found="yes"
14205 fi
9c60689e 14206
47aaa820
DWT
14207 if test "$apr_found" != "yes"; then
14208 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
14209 fi
9c60689e 14210
47aaa820 14211else
9c60689e 14212
47aaa820
DWT
14213 if test -n "1" && test "1" = "1"; then
14214 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14215 do
14216 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14217 apr_config="$apr_temp_apr_config_file"
9c60689e 14218
47aaa820
DWT
14219 apr_found="yes"
14220 break
14221 else
14222 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14223 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14224 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
9c60689e 14225
47aaa820
DWT
14226 apr_found="yes"
14227 break 2
14228 fi
14229 done
14230 fi
14231 done
14232 fi
14233 if test "$apr_found" = "no" && test -d ""; then
14234 apr_temp_abs_srcdir="`cd && pwd`"
14235 apr_found="reconfig"
14236 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14237 case $apr_bundled_major in
14238 "")
14239 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14240 ;;
14241 0)
14242 apr_temp_apr_config_file="apr-config"
14243 ;;
14244 *)
14245 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14246 ;;
14247 esac
14248 if test -n ""; then
14249 apr_config="/$apr_temp_apr_config_file"
14250 else
14251 apr_config="/$apr_temp_apr_config_file"
14252 fi
14253 fi
9c60689e 14254
47aaa820 14255fi
9c60689e
DWT
14256
14257
47aaa820
DWT
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14259$as_echo "$apr_found" >&6; }
9c60689e 14260
47aaa820
DWT
14261case $apr_found in #(
14262 yes) :
9c60689e
DWT
14263
14264
47aaa820
DWT
14265 for element in `$apr_config --includes`; do
14266 haveit=
14267 for x in $CPPFLAGS; do
9c60689e 14268
47aaa820
DWT
14269 acl_save_prefix="$prefix"
14270 prefix="$acl_final_prefix"
14271 acl_save_exec_prefix="$exec_prefix"
14272 exec_prefix="$acl_final_exec_prefix"
14273 eval x=\"$x\"
14274 exec_prefix="$acl_save_exec_prefix"
14275 prefix="$acl_save_prefix"
9c60689e 14276
47aaa820
DWT
14277 if test "X$x" = "X$element"; then
14278 haveit=yes
14279 break
14280 fi
14281 done
14282 if test -z "$haveit"; then
14283 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14284 fi
14285 done
9c60689e 14286
47aaa820 14287 LTLIBAPR=`$apr_config --link-libtool`
9c60689e 14288
47aaa820
DWT
14289 ;; #(
14290 *) :
14291 as_fn_error "You need apr" "$LINENO" 5 ;;
14292esac
9c60689e
DWT
14293
14294
47aaa820
DWT
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14296$as_echo_n "checking for a readline compatible library... " >&6; }
14297if test "${vl_cv_lib_readline+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299else
9c60689e 14300
47aaa820
DWT
14301 ORIG_LIBS="$LIBS"
14302 for readline_lib in readline edit editline; do
14303 for termcap_lib in "" termcap curses ncurses; do
14304 if test -z "$termcap_lib"; then
14305 TRY_LIB="-l$readline_lib"
14306 else
14307 TRY_LIB="-l$readline_lib -l$termcap_lib"
14308 fi
14309 LIBS="$ORIG_LIBS $TRY_LIB"
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311/* end confdefs.h. */
9c60689e 14312
47aaa820
DWT
14313/* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14316#ifdef __cplusplus
14317extern "C"
14318#endif
14319char readline ();
14320int
14321main ()
14322{
14323return readline ();
14324 ;
14325 return 0;
14326}
14327_ACEOF
14328if ac_fn_cxx_try_link "$LINENO"; then :
14329 vl_cv_lib_readline="$TRY_LIB"
14330fi
14331rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14333 if test -n "$vl_cv_lib_readline"; then
14334 break
14335 fi
14336 done
14337 if test -n "$vl_cv_lib_readline"; then
14338 break
14339 fi
14340 done
14341 if test -z "$vl_cv_lib_readline"; then
14342 vl_cv_lib_readline="no"
14343 LIBS="$ORIG_LIBS"
14344 fi
9c60689e 14345
47aaa820
DWT
14346fi
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14348$as_echo "$vl_cv_lib_readline" >&6; }
9c60689e 14349
47aaa820 14350 if test "$vl_cv_lib_readline" != "no"; then
9c60689e 14351
47aaa820 14352$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9c60689e 14353
47aaa820
DWT
14354 for ac_header in readline.h readline/readline.h
14355do :
14356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14357ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14358eval as_val=\$$as_ac_Header
14359 if test "x$as_val" = x""yes; then :
14360 cat >>confdefs.h <<_ACEOF
14361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14362_ACEOF
9c60689e 14363
9c60689e
DWT
14364fi
14365
47aaa820 14366done
9c60689e 14367
47aaa820
DWT
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14369$as_echo_n "checking whether readline supports history... " >&6; }
14370if test "${vl_cv_lib_readline_history+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14372else
9c60689e 14373
47aaa820
DWT
14374 vl_cv_lib_readline_history="no"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376/* end confdefs.h. */
9c60689e 14377
47aaa820
DWT
14378/* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14381#ifdef __cplusplus
14382extern "C"
14383#endif
14384char add_history ();
14385int
14386main ()
14387{
14388return add_history ();
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393if ac_fn_cxx_try_link "$LINENO"; then :
14394 vl_cv_lib_readline_history="yes"
14395fi
14396rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext conftest.$ac_ext
9c60689e 14398
47aaa820
DWT
14399fi
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14401$as_echo "$vl_cv_lib_readline_history" >&6; }
14402 if test "$vl_cv_lib_readline_history" = "yes"; then
9c60689e 14403
47aaa820 14404$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
9c60689e 14405
47aaa820
DWT
14406 for ac_header in history.h readline/history.h
14407do :
14408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14409ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14410eval as_val=\$$as_ac_Header
14411 if test "x$as_val" = x""yes; then :
14412 cat >>confdefs.h <<_ACEOF
14413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14414_ACEOF
9c60689e 14415
47aaa820 14416fi
9c60689e 14417
47aaa820 14418done
9c60689e 14419
47aaa820
DWT
14420 fi
14421 fi
9c60689e
DWT
14422
14423# Find a good install program. We prefer a C program (faster),
14424# so one script is as good as another. But avoid the broken or
14425# incompatible versions:
14426# SysV /etc/install, /usr/sbin/install
14427# SunOS /usr/etc/install
14428# IRIX /sbin/install
14429# AIX /bin/install
14430# AmigaOS /C/install, which installs bootblocks on floppy discs
14431# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14432# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14433# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14434# OS/2's system install, which has a completely different semantic
14435# ./install, which can be erroneously created by make from ./install.sh.
14436# Reject install programs that cannot install multiple files.
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14438$as_echo_n "checking for a BSD-compatible install... " >&6; }
14439if test -z "$INSTALL"; then
14440if test "${ac_cv_path_install+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442else
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444for as_dir in $PATH
14445do
14446 IFS=$as_save_IFS
14447 test -z "$as_dir" && as_dir=.
14448 # Account for people who put trailing slashes in PATH elements.
14449case $as_dir/ in #((
14450 ./ | .// | /[cC]/* | \
14451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14452 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14453 /usr/ucb/* ) ;;
14454 *)
14455 # OSF1 and SCO ODT 3.0 have their own names for install.
14456 # Don't use installbsd from OSF since it installs stuff as root
14457 # by default.
14458 for ac_prog in ginstall scoinst install; do
14459 for ac_exec_ext in '' $ac_executable_extensions; do
14460 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14461 if test $ac_prog = install &&
14462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14463 # AIX install. It has an incompatible calling convention.
14464 :
14465 elif test $ac_prog = install &&
14466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14467 # program-specific install script used by HP pwplus--don't use.
14468 :
14469 else
14470 rm -rf conftest.one conftest.two conftest.dir
14471 echo one > conftest.one
14472 echo two > conftest.two
14473 mkdir conftest.dir
14474 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14475 test -s conftest.one && test -s conftest.two &&
14476 test -s conftest.dir/conftest.one &&
14477 test -s conftest.dir/conftest.two
14478 then
14479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14480 break 3
14481 fi
14482 fi
14483 fi
14484 done
14485 done
14486 ;;
14487esac
14488
14489 done
14490IFS=$as_save_IFS
14491
14492rm -rf conftest.one conftest.two conftest.dir
14493
14494fi
14495 if test "${ac_cv_path_install+set}" = set; then
14496 INSTALL=$ac_cv_path_install
14497 else
14498 # As a last resort, use the slow shell script. Don't cache a
14499 # value for INSTALL within a source directory, because that will
14500 # break other packages using the cache if that directory is
14501 # removed, or if the value is a relative name.
14502 INSTALL=$ac_install_sh
14503 fi
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14506$as_echo "$INSTALL" >&6; }
14507
14508# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14509# It thinks the first close brace ends the variable substitution.
14510test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14511
14512test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14513
14514test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14515
94690cff
DWT
14516ac_ext=c
14517ac_cpp='$CPP $CPPFLAGS'
14518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14520ac_compiler_gnu=$ac_cv_c_compiler_gnu
14521
9c60689e
DWT
14522
14523 if test "X$prefix" = "XNONE"; then
14524 acl_final_prefix="$ac_default_prefix"
14525 else
14526 acl_final_prefix="$prefix"
14527 fi
14528 if test "X$exec_prefix" = "XNONE"; then
14529 acl_final_exec_prefix='${prefix}'
14530 else
14531 acl_final_exec_prefix="$exec_prefix"
14532 fi
14533 acl_save_prefix="$prefix"
14534 prefix="$acl_final_prefix"
14535 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14536 prefix="$acl_save_prefix"
14537
14538
14539# Check whether --with-gnu-ld was given.
14540if test "${with_gnu_ld+set}" = set; then :
14541 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14542else
14543 with_gnu_ld=no
14544fi
14545
14546# Prepare PATH_SEPARATOR.
14547# The user is always right.
14548if test "${PATH_SEPARATOR+set}" != set; then
14549 echo "#! /bin/sh" >conf$$.sh
14550 echo "exit 0" >>conf$$.sh
14551 chmod +x conf$$.sh
14552 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14553 PATH_SEPARATOR=';'
14554 else
14555 PATH_SEPARATOR=:
14556 fi
14557 rm -f conf$$.sh
14558fi
14559ac_prog=ld
14560if test "$GCC" = yes; then
14561 # Check if gcc -print-prog-name=ld gives a path.
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14563$as_echo_n "checking for ld used by GCC... " >&6; }
14564 case $host in
14565 *-*-mingw*)
14566 # gcc leaves a trailing carriage return which upsets mingw
14567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14568 *)
14569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14570 esac
14571 case $ac_prog in
14572 # Accept absolute paths.
14573 [\\/]* | [A-Za-z]:[\\/]*)
14574 re_direlt='/[^/][^/]*/\.\./'
14575 # Canonicalize the path of ld
14576 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14577 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14578 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14579 done
14580 test -z "$LD" && LD="$ac_prog"
14581 ;;
14582 "")
14583 # If it fails, then pretend we aren't using GCC.
14584 ac_prog=ld
14585 ;;
14586 *)
14587 # If it is relative, then search for the first ld in PATH.
14588 with_gnu_ld=unknown
14589 ;;
14590 esac
14591elif test "$with_gnu_ld" = yes; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14593$as_echo_n "checking for GNU ld... " >&6; }
14594else
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14596$as_echo_n "checking for non-GNU ld... " >&6; }
14597fi
14598if test "${acl_cv_path_LD+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600else
14601 if test -z "$LD"; then
14602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14603 for ac_dir in $PATH; do
14604 test -z "$ac_dir" && ac_dir=.
14605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14606 acl_cv_path_LD="$ac_dir/$ac_prog"
14607 # Check to see if the program is GNU ld. I'd rather use --version,
14608 # but apparently some GNU ld's only accept -v.
14609 # Break only if it was the GNU/non-GNU ld that we prefer.
14610 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14611 *GNU* | *'with BFD'*)
14612 test "$with_gnu_ld" != no && break ;;
14613 *)
14614 test "$with_gnu_ld" != yes && break ;;
14615 esac
14616 fi
14617 done
14618 IFS="$ac_save_ifs"
14619else
14620 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14621fi
14622fi
14623
14624LD="$acl_cv_path_LD"
14625if test -n "$LD"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14627$as_echo "$LD" >&6; }
14628else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630$as_echo "no" >&6; }
14631fi
14632test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14635if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14636 $as_echo_n "(cached) " >&6
14637else
14638 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14639case `$LD -v 2>&1 </dev/null` in
14640*GNU* | *'with BFD'*)
14641 acl_cv_prog_gnu_ld=yes ;;
14642*)
14643 acl_cv_prog_gnu_ld=no ;;
14644esac
14645fi
14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14647$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14648with_gnu_ld=$acl_cv_prog_gnu_ld
14649
14650
14651
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14654$as_echo_n "checking for shared library run path origin... " >&6; }
14655if test "${acl_cv_rpath+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14657else
14658
14659 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14660 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14661 . ./conftest.sh
14662 rm -f ./conftest.sh
14663 acl_cv_rpath=done
14664
14665fi
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14667$as_echo "$acl_cv_rpath" >&6; }
14668 wl="$acl_cv_wl"
14669 acl_libext="$acl_cv_libext"
14670 acl_shlibext="$acl_cv_shlibext"
14671 acl_libname_spec="$acl_cv_libname_spec"
14672 acl_library_names_spec="$acl_cv_library_names_spec"
14673 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14674 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14675 acl_hardcode_direct="$acl_cv_hardcode_direct"
14676 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14677 # Check whether --enable-rpath was given.
14678if test "${enable_rpath+set}" = set; then :
14679 enableval=$enable_rpath; :
14680else
14681 enable_rpath=yes
14682fi
14683
14684
14685
14686 acl_libdirstem=lib
14687 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14688 if test -n "$searchpath"; then
14689 acl_save_IFS="${IFS= }"; IFS=":"
14690 for searchdir in $searchpath; do
14691 if test -d "$searchdir"; then
14692 case "$searchdir" in
14693 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14694 *) searchdir=`cd "$searchdir" && pwd`
14695 case "$searchdir" in
14696 */lib64 ) acl_libdirstem=lib64 ;;
14697 esac ;;
14698 esac
14699 fi
14700 done
14701 IFS="$acl_save_IFS"
14702 fi
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712 use_additional=yes
14713
14714 acl_save_prefix="$prefix"
14715 prefix="$acl_final_prefix"
14716 acl_save_exec_prefix="$exec_prefix"
14717 exec_prefix="$acl_final_exec_prefix"
14718
14719 eval additional_includedir=\"$includedir\"
14720 eval additional_libdir=\"$libdir\"
14721
14722 exec_prefix="$acl_save_exec_prefix"
14723 prefix="$acl_save_prefix"
14724
14725
14726# Check whether --with-libiconv-prefix was given.
14727if test "${with_libiconv_prefix+set}" = set; then :
14728 withval=$with_libiconv_prefix;
14729 if test "X$withval" = "Xno"; then
14730 use_additional=no
14731 else
14732 if test "X$withval" = "X"; then
14733
14734 acl_save_prefix="$prefix"
14735 prefix="$acl_final_prefix"
14736 acl_save_exec_prefix="$exec_prefix"
14737 exec_prefix="$acl_final_exec_prefix"
14738
14739 eval additional_includedir=\"$includedir\"
14740 eval additional_libdir=\"$libdir\"
14741
14742 exec_prefix="$acl_save_exec_prefix"
14743 prefix="$acl_save_prefix"
14744
14745 else
14746 additional_includedir="$withval/include"
14747 additional_libdir="$withval/$acl_libdirstem"
14748 fi
14749 fi
14750
14751fi
14752
14753 LIBICONV=
14754 LTLIBICONV=
14755 INCICONV=
14756 LIBICONV_PREFIX=
14757 rpathdirs=
14758 ltrpathdirs=
14759 names_already_handled=
14760 names_next_round='iconv '
14761 while test -n "$names_next_round"; do
14762 names_this_round="$names_next_round"
14763 names_next_round=
14764 for name in $names_this_round; do
14765 already_handled=
14766 for n in $names_already_handled; do
14767 if test "$n" = "$name"; then
14768 already_handled=yes
14769 break
14770 fi
14771 done
14772 if test -z "$already_handled"; then
14773 names_already_handled="$names_already_handled $name"
14774 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14775 eval value=\"\$HAVE_LIB$uppername\"
14776 if test -n "$value"; then
14777 if test "$value" = yes; then
14778 eval value=\"\$LIB$uppername\"
14779 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14780 eval value=\"\$LTLIB$uppername\"
14781 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14782 else
14783 :
14784 fi
14785 else
14786 found_dir=
14787 found_la=
14788 found_so=
14789 found_a=
14790 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14791 if test -n "$acl_shlibext"; then
14792 shrext=".$acl_shlibext" # typically: shrext=.so
14793 else
14794 shrext=
14795 fi
14796 if test $use_additional = yes; then
14797 dir="$additional_libdir"
14798 if test -n "$acl_shlibext"; then
14799 if test -f "$dir/$libname$shrext"; then
14800 found_dir="$dir"
14801 found_so="$dir/$libname$shrext"
14802 else
14803 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14804 ver=`(cd "$dir" && \
14805 for f in "$libname$shrext".*; do echo "$f"; done \
14806 | sed -e "s,^$libname$shrext\\\\.,," \
14807 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14808 | sed 1q ) 2>/dev/null`
14809 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14810 found_dir="$dir"
14811 found_so="$dir/$libname$shrext.$ver"
14812 fi
14813 else
14814 eval library_names=\"$acl_library_names_spec\"
14815 for f in $library_names; do
14816 if test -f "$dir/$f"; then
14817 found_dir="$dir"
14818 found_so="$dir/$f"
14819 break
14820 fi
14821 done
14822 fi
14823 fi
14824 fi
14825 if test "X$found_dir" = "X"; then
14826 if test -f "$dir/$libname.$acl_libext"; then
14827 found_dir="$dir"
14828 found_a="$dir/$libname.$acl_libext"
14829 fi
14830 fi
14831 if test "X$found_dir" != "X"; then
14832 if test -f "$dir/$libname.la"; then
14833 found_la="$dir/$libname.la"
14834 fi
14835 fi
14836 fi
14837 if test "X$found_dir" = "X"; then
14838 for x in $LDFLAGS $LTLIBICONV; do
14839
14840 acl_save_prefix="$prefix"
14841 prefix="$acl_final_prefix"
14842 acl_save_exec_prefix="$exec_prefix"
14843 exec_prefix="$acl_final_exec_prefix"
14844 eval x=\"$x\"
14845 exec_prefix="$acl_save_exec_prefix"
14846 prefix="$acl_save_prefix"
14847
14848 case "$x" in
14849 -L*)
14850 dir=`echo "X$x" | sed -e 's/^X-L//'`
14851 if test -n "$acl_shlibext"; then
14852 if test -f "$dir/$libname$shrext"; then
14853 found_dir="$dir"
14854 found_so="$dir/$libname$shrext"
14855 else
14856 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14857 ver=`(cd "$dir" && \
14858 for f in "$libname$shrext".*; do echo "$f"; done \
14859 | sed -e "s,^$libname$shrext\\\\.,," \
14860 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14861 | sed 1q ) 2>/dev/null`
14862 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14863 found_dir="$dir"
14864 found_so="$dir/$libname$shrext.$ver"
14865 fi
14866 else
14867 eval library_names=\"$acl_library_names_spec\"
14868 for f in $library_names; do
14869 if test -f "$dir/$f"; then
14870 found_dir="$dir"
14871 found_so="$dir/$f"
14872 break
14873 fi
14874 done
14875 fi
14876 fi
14877 fi
14878 if test "X$found_dir" = "X"; then
14879 if test -f "$dir/$libname.$acl_libext"; then
14880 found_dir="$dir"
14881 found_a="$dir/$libname.$acl_libext"
14882 fi
14883 fi
14884 if test "X$found_dir" != "X"; then
14885 if test -f "$dir/$libname.la"; then
14886 found_la="$dir/$libname.la"
14887 fi
14888 fi
14889 ;;
14890 esac
14891 if test "X$found_dir" != "X"; then
14892 break
14893 fi
14894 done
14895 fi
14896 if test "X$found_dir" != "X"; then
14897 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14898 if test "X$found_so" != "X"; then
14899 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14900 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14901 else
14902 haveit=
14903 for x in $ltrpathdirs; do
14904 if test "X$x" = "X$found_dir"; then
14905 haveit=yes
14906 break
14907 fi
14908 done
14909 if test -z "$haveit"; then
14910 ltrpathdirs="$ltrpathdirs $found_dir"
14911 fi
14912 if test "$acl_hardcode_direct" = yes; then
14913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14914 else
14915 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14917 haveit=
14918 for x in $rpathdirs; do
14919 if test "X$x" = "X$found_dir"; then
14920 haveit=yes
14921 break
14922 fi
14923 done
14924 if test -z "$haveit"; then
14925 rpathdirs="$rpathdirs $found_dir"
14926 fi
14927 else
14928 haveit=
14929 for x in $LDFLAGS $LIBICONV; do
14930
14931 acl_save_prefix="$prefix"
14932 prefix="$acl_final_prefix"
14933 acl_save_exec_prefix="$exec_prefix"
14934 exec_prefix="$acl_final_exec_prefix"
14935 eval x=\"$x\"
14936 exec_prefix="$acl_save_exec_prefix"
14937 prefix="$acl_save_prefix"
14938
14939 if test "X$x" = "X-L$found_dir"; then
14940 haveit=yes
14941 break
14942 fi
14943 done
14944 if test -z "$haveit"; then
14945 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14946 fi
14947 if test "$acl_hardcode_minus_L" != no; then
14948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14949 else
14950 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14951 fi
14952 fi
14953 fi
14954 fi
14955 else
14956 if test "X$found_a" != "X"; then
14957 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14958 else
14959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14960 fi
14961 fi
14962 additional_includedir=
14963 case "$found_dir" in
14964 */$acl_libdirstem | */$acl_libdirstem/)
14965 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14966 LIBICONV_PREFIX="$basedir"
14967 additional_includedir="$basedir/include"
14968 ;;
14969 esac
14970 if test "X$additional_includedir" != "X"; then
14971 if test "X$additional_includedir" != "X/usr/include"; then
14972 haveit=
14973 if test "X$additional_includedir" = "X/usr/local/include"; then
14974 if test -n "$GCC"; then
14975 case $host_os in
14976 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14977 esac
14978 fi
14979 fi
14980 if test -z "$haveit"; then
14981 for x in $CPPFLAGS $INCICONV; do
14982
14983 acl_save_prefix="$prefix"
14984 prefix="$acl_final_prefix"
14985 acl_save_exec_prefix="$exec_prefix"
14986 exec_prefix="$acl_final_exec_prefix"
14987 eval x=\"$x\"
14988 exec_prefix="$acl_save_exec_prefix"
14989 prefix="$acl_save_prefix"
14990
14991 if test "X$x" = "X-I$additional_includedir"; then
14992 haveit=yes
14993 break
14994 fi
14995 done
14996 if test -z "$haveit"; then
14997 if test -d "$additional_includedir"; then
14998 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14999 fi
15000 fi
15001 fi
15002 fi
15003 fi
15004 if test -n "$found_la"; then
15005 save_libdir="$libdir"
15006 case "$found_la" in
15007 */* | *\\*) . "$found_la" ;;
15008 *) . "./$found_la" ;;
15009 esac
15010 libdir="$save_libdir"
15011 for dep in $dependency_libs; do
15012 case "$dep" in
15013 -L*)
15014 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15015 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15016 haveit=
15017 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15018 if test -n "$GCC"; then
15019 case $host_os in
15020 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15021 esac
15022 fi
15023 fi
15024 if test -z "$haveit"; then
15025 haveit=
15026 for x in $LDFLAGS $LIBICONV; do
15027
15028 acl_save_prefix="$prefix"
15029 prefix="$acl_final_prefix"
15030 acl_save_exec_prefix="$exec_prefix"
15031 exec_prefix="$acl_final_exec_prefix"
15032 eval x=\"$x\"
15033 exec_prefix="$acl_save_exec_prefix"
15034 prefix="$acl_save_prefix"
15035
15036 if test "X$x" = "X-L$additional_libdir"; then
15037 haveit=yes
15038 break
15039 fi
15040 done
15041 if test -z "$haveit"; then
15042 if test -d "$additional_libdir"; then
15043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15044 fi
15045 fi
15046 haveit=
15047 for x in $LDFLAGS $LTLIBICONV; do
15048
15049 acl_save_prefix="$prefix"
15050 prefix="$acl_final_prefix"
15051 acl_save_exec_prefix="$exec_prefix"
15052 exec_prefix="$acl_final_exec_prefix"
15053 eval x=\"$x\"
15054 exec_prefix="$acl_save_exec_prefix"
15055 prefix="$acl_save_prefix"
15056
15057 if test "X$x" = "X-L$additional_libdir"; then
15058 haveit=yes
15059 break
15060 fi
15061 done
15062 if test -z "$haveit"; then
15063 if test -d "$additional_libdir"; then
15064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15065 fi
15066 fi
15067 fi
15068 fi
15069 ;;
15070 -R*)
15071 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15072 if test "$enable_rpath" != no; then
15073 haveit=
15074 for x in $rpathdirs; do
15075 if test "X$x" = "X$dir"; then
15076 haveit=yes
15077 break
15078 fi
15079 done
15080 if test -z "$haveit"; then
15081 rpathdirs="$rpathdirs $dir"
15082 fi
15083 haveit=
15084 for x in $ltrpathdirs; do
15085 if test "X$x" = "X$dir"; then
15086 haveit=yes
15087 break
15088 fi
15089 done
15090 if test -z "$haveit"; then
15091 ltrpathdirs="$ltrpathdirs $dir"
15092 fi
15093 fi
15094 ;;
15095 -l*)
15096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15097 ;;
15098 *.la)
15099 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15100 ;;
15101 *)
15102 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15104 ;;
15105 esac
15106 done
15107 fi
15108 else
15109 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15111 fi
15112 fi
15113 fi
15114 done
15115 done
15116 if test "X$rpathdirs" != "X"; then
15117 if test -n "$acl_hardcode_libdir_separator"; then
15118 alldirs=
15119 for found_dir in $rpathdirs; do
15120 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15121 done
15122 acl_save_libdir="$libdir"
15123 libdir="$alldirs"
15124 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15125 libdir="$acl_save_libdir"
15126 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15127 else
15128 for found_dir in $rpathdirs; do
15129 acl_save_libdir="$libdir"
15130 libdir="$found_dir"
15131 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15132 libdir="$acl_save_libdir"
15133 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15134 done
15135 fi
15136 fi
15137 if test "X$ltrpathdirs" != "X"; then
15138 for found_dir in $ltrpathdirs; do
15139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15140 done
15141 fi
15142
15143
15144
15145
15146
15147
15148
15149 am_save_CPPFLAGS="$CPPFLAGS"
15150
15151 for element in $INCICONV; do
15152 haveit=
15153 for x in $CPPFLAGS; do
15154
15155 acl_save_prefix="$prefix"
15156 prefix="$acl_final_prefix"
15157 acl_save_exec_prefix="$exec_prefix"
15158 exec_prefix="$acl_final_exec_prefix"
15159 eval x=\"$x\"
15160 exec_prefix="$acl_save_exec_prefix"
15161 prefix="$acl_save_prefix"
15162
15163 if test "X$x" = "X$element"; then
15164 haveit=yes
15165 break
15166 fi
15167 done
15168 if test -z "$haveit"; then
15169 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15170 fi
15171 done
15172
15173
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15175$as_echo_n "checking for iconv... " >&6; }
15176if test "${am_cv_func_iconv+set}" = set; then :
15177 $as_echo_n "(cached) " >&6
15178else
15179
15180 am_cv_func_iconv="no, consider installing GNU libiconv"
15181 am_cv_lib_iconv=no
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183/* end confdefs.h. */
15184#include <stdlib.h>
15185#include <iconv.h>
15186int
15187main ()
15188{
15189iconv_t cd = iconv_open("","");
15190 iconv(cd,NULL,NULL,NULL,NULL);
15191 iconv_close(cd);
15192 ;
15193 return 0;
15194}
15195_ACEOF
94690cff 15196if ac_fn_c_try_link "$LINENO"; then :
9c60689e
DWT
15197 am_cv_func_iconv=yes
15198fi
15199rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 if test "$am_cv_func_iconv" != yes; then
15202 am_save_LIBS="$LIBS"
15203 LIBS="$LIBS $LIBICONV"
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205/* end confdefs.h. */
15206#include <stdlib.h>
15207#include <iconv.h>
15208int
15209main ()
15210{
15211iconv_t cd = iconv_open("","");
15212 iconv(cd,NULL,NULL,NULL,NULL);
15213 iconv_close(cd);
15214 ;
15215 return 0;
15216}
15217_ACEOF
94690cff 15218if ac_fn_c_try_link "$LINENO"; then :
9c60689e
DWT
15219 am_cv_lib_iconv=yes
15220 am_cv_func_iconv=yes
15221fi
15222rm -f core conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15224 LIBS="$am_save_LIBS"
15225 fi
15226
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15229$as_echo "$am_cv_func_iconv" >&6; }
15230 if test "$am_cv_func_iconv" = yes; then
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15232$as_echo_n "checking for working iconv... " >&6; }
15233if test "${am_cv_func_iconv_works+set}" = set; then :
15234 $as_echo_n "(cached) " >&6
15235else
15236
15237 am_save_LIBS="$LIBS"
15238 if test $am_cv_lib_iconv = yes; then
15239 LIBS="$LIBS $LIBICONV"
15240 fi
15241 if test "$cross_compiling" = yes; then :
15242 case "$host_os" in
15243 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15244 *) am_cv_func_iconv_works="guessing yes" ;;
15245 esac
15246else
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h. */
15249
15250#include <iconv.h>
15251#include <string.h>
15252int main ()
15253{
15254 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15255 returns. */
15256 {
15257 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15258 if (cd_utf8_to_88591 != (iconv_t)(-1))
15259 {
15260 static const char input[] = "\342\202\254"; /* EURO SIGN */
15261 char buf[10];
15262 const char *inptr = input;
15263 size_t inbytesleft = strlen (input);
15264 char *outptr = buf;
15265 size_t outbytesleft = sizeof (buf);
15266 size_t res = iconv (cd_utf8_to_88591,
15267 (char **) &inptr, &inbytesleft,
15268 &outptr, &outbytesleft);
15269 if (res == 0)
15270 return 1;
15271 }
15272 }
15273#if 0 /* This bug could be worked around by the caller. */
15274 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15275 {
15276 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15277 if (cd_88591_to_utf8 != (iconv_t)(-1))
15278 {
15279 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15280 char buf[50];
15281 const char *inptr = input;
15282 size_t inbytesleft = strlen (input);
15283 char *outptr = buf;
15284 size_t outbytesleft = sizeof (buf);
15285 size_t res = iconv (cd_88591_to_utf8,
15286 (char **) &inptr, &inbytesleft,
15287 &outptr, &outbytesleft);
15288 if ((int)res > 0)
15289 return 1;
15290 }
15291 }
15292#endif
15293 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15294 provided. */
15295 if (/* Try standardized names. */
15296 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15297 /* Try IRIX, OSF/1 names. */
15298 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15299 /* Try AIX names. */
15300 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15301 /* Try HP-UX names. */
15302 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15303 return 1;
15304 return 0;
15305}
15306_ACEOF
94690cff 15307if ac_fn_c_try_run "$LINENO"; then :
9c60689e
DWT
15308 am_cv_func_iconv_works=yes
15309else
15310 am_cv_func_iconv_works=no
15311fi
15312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15313 conftest.$ac_objext conftest.beam conftest.$ac_ext
15314fi
15315
15316 LIBS="$am_save_LIBS"
15317
15318fi
15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15320$as_echo "$am_cv_func_iconv_works" >&6; }
15321 case "$am_cv_func_iconv_works" in
15322 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15323 *) am_func_iconv=yes ;;
15324 esac
15325 else
15326 am_func_iconv=no am_cv_lib_iconv=no
15327 fi
15328 if test "$am_func_iconv" = yes; then
15329
15330$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15331
15332 fi
15333 if test "$am_cv_lib_iconv" = yes; then
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15335$as_echo_n "checking how to link with libiconv... " >&6; }
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15337$as_echo "$LIBICONV" >&6; }
15338 else
15339 CPPFLAGS="$am_save_CPPFLAGS"
15340 LIBICONV=
15341 LTLIBICONV=
15342 fi
15343
15344
15345
15346 if test "$am_cv_func_iconv" = yes; then
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15348$as_echo_n "checking for iconv declaration... " >&6; }
15349 if test "${am_cv_proto_iconv+set}" = set; then :
15350 $as_echo_n "(cached) " >&6
15351else
15352
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h. */
15355
15356#include <stdlib.h>
15357#include <iconv.h>
15358extern
15359#ifdef __cplusplus
15360"C"
15361#endif
15362#if defined(__STDC__) || defined(__cplusplus)
15363size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15364#else
15365size_t iconv();
15366#endif
15367
15368int
15369main ()
15370{
15371
15372 ;
15373 return 0;
15374}
15375_ACEOF
94690cff 15376if ac_fn_c_try_compile "$LINENO"; then :
9c60689e
DWT
15377 am_cv_proto_iconv_arg1=""
15378else
15379 am_cv_proto_iconv_arg1="const"
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 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);"
15383fi
15384
15385 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15387 }$am_cv_proto_iconv" >&5
15388$as_echo "${ac_t:-
15389 }$am_cv_proto_iconv" >&6; }
15390
15391cat >>confdefs.h <<_ACEOF
15392#define ICONV_CONST $am_cv_proto_iconv_arg1
15393_ACEOF
15394
15395 fi
15396
94690cff
DWT
15397ac_ext=cpp
15398ac_cpp='$CXXCPP $CPPFLAGS'
15399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15402
9c60689e
DWT
15403case $am_cv_func_iconv in #(
15404 yes) :
15405 ;; #(
15406 *) :
15407 as_fn_error "You need iconv" "$LINENO" 5 ;;
15408esac
15409
9c60689e
DWT
15410pkg_failed=no
15411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15412$as_echo_n "checking for WEBKIT... " >&6; }
15413
15414if test -n "$PKG_CONFIG"; then
15415 if test -n "$WEBKIT_CFLAGS"; then
15416 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15417 else
15418 if test -n "$PKG_CONFIG" && \
15419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15420 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15421 ac_status=$?
15422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15423 test $ac_status = 0; }; then
15424 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15425else
15426 pkg_failed=yes
15427fi
15428 fi
15429else
15430 pkg_failed=untried
15431fi
15432if test -n "$PKG_CONFIG"; then
15433 if test -n "$WEBKIT_LIBS"; then
15434 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15435 else
15436 if test -n "$PKG_CONFIG" && \
15437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15438 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15439 ac_status=$?
15440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15441 test $ac_status = 0; }; then
15442 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15443else
15444 pkg_failed=yes
15445fi
15446 fi
15447else
15448 pkg_failed=untried
15449fi
15450
15451
15452
15453if test $pkg_failed = yes; then
15454
15455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15456 _pkg_short_errors_supported=yes
15457else
15458 _pkg_short_errors_supported=no
15459fi
15460 if test $_pkg_short_errors_supported = yes; then
15461 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15462 else
15463 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15464 fi
15465 # Put the nasty error message in config.log where it belongs
15466 echo "$WEBKIT_PKG_ERRORS" >&5
15467
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470
15471
15472pkg_failed=no
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15474$as_echo_n "checking for WEBKIT... " >&6; }
15475
15476if test -n "$PKG_CONFIG"; then
15477 if test -n "$WEBKIT_CFLAGS"; then
15478 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15479 else
15480 if test -n "$PKG_CONFIG" && \
15481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15482 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15483 ac_status=$?
15484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15485 test $ac_status = 0; }; then
15486 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15487else
15488 pkg_failed=yes
15489fi
15490 fi
15491else
15492 pkg_failed=untried
15493fi
15494if test -n "$PKG_CONFIG"; then
15495 if test -n "$WEBKIT_LIBS"; then
15496 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15497 else
15498 if test -n "$PKG_CONFIG" && \
15499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15500 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15501 ac_status=$?
15502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15503 test $ac_status = 0; }; then
15504 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15505else
15506 pkg_failed=yes
15507fi
15508 fi
15509else
15510 pkg_failed=untried
15511fi
15512
15513
15514
15515if test $pkg_failed = yes; then
15516
15517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15518 _pkg_short_errors_supported=yes
15519else
15520 _pkg_short_errors_supported=no
15521fi
15522 if test $_pkg_short_errors_supported = yes; then
15523 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15524 else
15525 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15526 fi
15527 # Put the nasty error message in config.log where it belongs
15528 echo "$WEBKIT_PKG_ERRORS" >&5
15529
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15531$as_echo "no" >&6; }
a667869d 15532 CY_EXECUTE=0
9c60689e 15533elif test $pkg_failed = untried; then
a667869d 15534 CY_EXECUTE=0
9c60689e
DWT
15535else
15536 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15537 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15539$as_echo "yes" >&6; }
3fd51f51 15540
a667869d 15541 CY_EXECUTE=1
3fd51f51
DWT
15542
15543 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15544 haveit=
15545 for x in $CXXFLAGS; do
15546
15547 acl_save_prefix="$prefix"
15548 prefix="$acl_final_prefix"
15549 acl_save_exec_prefix="$exec_prefix"
15550 exec_prefix="$acl_final_exec_prefix"
15551 eval x=\"$x\"
15552 exec_prefix="$acl_save_exec_prefix"
15553 prefix="$acl_save_prefix"
15554
15555 if test "X$x" = "X$element"; then
15556 haveit=yes
15557 break
15558 fi
15559 done
15560 if test -z "$haveit"; then
15561 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15562 fi
15563 done
15564
15565
15566 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15567 haveit=
15568 for x in $LIBS; do
15569
15570 acl_save_prefix="$prefix"
15571 prefix="$acl_final_prefix"
15572 acl_save_exec_prefix="$exec_prefix"
15573 exec_prefix="$acl_final_exec_prefix"
15574 eval x=\"$x\"
15575 exec_prefix="$acl_save_exec_prefix"
15576 prefix="$acl_save_prefix"
15577
15578 if test "X$x" = "X$element"; then
15579 haveit=yes
15580 break
15581 fi
15582 done
15583 if test -z "$haveit"; then
15584 LIBS="${LIBS}${LIBS:+ }$element"
15585 fi
15586 done
15587
15588
9c60689e
DWT
15589fi
15590
15591elif test $pkg_failed = untried; then
15592
15593
15594pkg_failed=no
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15596$as_echo_n "checking for WEBKIT... " >&6; }
15597
15598if test -n "$PKG_CONFIG"; then
15599 if test -n "$WEBKIT_CFLAGS"; then
15600 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15601 else
15602 if test -n "$PKG_CONFIG" && \
15603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15604 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15605 ac_status=$?
15606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; }; then
15608 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15609else
15610 pkg_failed=yes
15611fi
15612 fi
15613else
15614 pkg_failed=untried
15615fi
15616if test -n "$PKG_CONFIG"; then
15617 if test -n "$WEBKIT_LIBS"; then
15618 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15619 else
15620 if test -n "$PKG_CONFIG" && \
15621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15622 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15623 ac_status=$?
15624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15625 test $ac_status = 0; }; then
15626 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15627else
15628 pkg_failed=yes
15629fi
15630 fi
15631else
15632 pkg_failed=untried
15633fi
15634
15635
15636
15637if test $pkg_failed = yes; then
15638
15639if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15640 _pkg_short_errors_supported=yes
15641else
15642 _pkg_short_errors_supported=no
15643fi
15644 if test $_pkg_short_errors_supported = yes; then
15645 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15646 else
15647 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15648 fi
15649 # Put the nasty error message in config.log where it belongs
15650 echo "$WEBKIT_PKG_ERRORS" >&5
15651
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653$as_echo "no" >&6; }
a667869d 15654 CY_EXECUTE=0
9c60689e 15655elif test $pkg_failed = untried; then
a667869d 15656 CY_EXECUTE=0
9c60689e
DWT
15657else
15658 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15659 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15661$as_echo "yes" >&6; }
3fd51f51 15662
a667869d 15663 CY_EXECUTE=1
3fd51f51
DWT
15664
15665 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15666 haveit=
15667 for x in $CXXFLAGS; do
15668
15669 acl_save_prefix="$prefix"
15670 prefix="$acl_final_prefix"
15671 acl_save_exec_prefix="$exec_prefix"
15672 exec_prefix="$acl_final_exec_prefix"
15673 eval x=\"$x\"
15674 exec_prefix="$acl_save_exec_prefix"
15675 prefix="$acl_save_prefix"
15676
15677 if test "X$x" = "X$element"; then
15678 haveit=yes
15679 break
15680 fi
15681 done
15682 if test -z "$haveit"; then
15683 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15684 fi
15685 done
15686
15687
15688 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15689 haveit=
15690 for x in $LIBS; do
15691
15692 acl_save_prefix="$prefix"
15693 prefix="$acl_final_prefix"
15694 acl_save_exec_prefix="$exec_prefix"
15695 exec_prefix="$acl_final_exec_prefix"
15696 eval x=\"$x\"
15697 exec_prefix="$acl_save_exec_prefix"
15698 prefix="$acl_save_prefix"
15699
15700 if test "X$x" = "X$element"; then
15701 haveit=yes
15702 break
15703 fi
15704 done
15705 if test -z "$haveit"; then
15706 LIBS="${LIBS}${LIBS:+ }$element"
15707 fi
15708 done
15709
15710
9c60689e
DWT
15711fi
15712
15713else
15714 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15715 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15717$as_echo "yes" >&6; }
3fd51f51 15718
a667869d 15719 CY_EXECUTE=1
3fd51f51
DWT
15720
15721 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15722 haveit=
15723 for x in $CXXFLAGS; do
15724
15725 acl_save_prefix="$prefix"
15726 prefix="$acl_final_prefix"
15727 acl_save_exec_prefix="$exec_prefix"
15728 exec_prefix="$acl_final_exec_prefix"
15729 eval x=\"$x\"
15730 exec_prefix="$acl_save_exec_prefix"
15731 prefix="$acl_save_prefix"
15732
15733 if test "X$x" = "X$element"; then
15734 haveit=yes
15735 break
15736 fi
15737 done
15738 if test -z "$haveit"; then
15739 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15740 fi
15741 done
15742
15743
15744 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15745 haveit=
15746 for x in $LIBS; do
15747
15748 acl_save_prefix="$prefix"
15749 prefix="$acl_final_prefix"
15750 acl_save_exec_prefix="$exec_prefix"
15751 exec_prefix="$acl_final_exec_prefix"
15752 eval x=\"$x\"
15753 exec_prefix="$acl_save_exec_prefix"
15754 prefix="$acl_save_prefix"
15755
15756 if test "X$x" = "X$element"; then
15757 haveit=yes
15758 break
15759 fi
15760 done
15761 if test -z "$haveit"; then
15762 LIBS="${LIBS}${LIBS:+ }$element"
15763 fi
15764 done
15765
15766
9c60689e 15767fi
a667869d
DWT
15768ac_ext=mm
15769ac_cpp='$OBJCXXCPP $CPPFLAGS'
15770ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15773if test -n "$ac_tool_prefix"; then
15774 for ac_prog in g++ objc++ objcxx c++ CXX
15775 do
15776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779$as_echo_n "checking for $ac_word... " >&6; }
15780if test "${ac_cv_prog_OBJCXX+set}" = set; then :
15781 $as_echo_n "(cached) " >&6
9c60689e 15782else
a667869d
DWT
15783 if test -n "$OBJCXX"; then
15784 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
9c60689e 15785else
a667869d
DWT
15786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787for as_dir in $PATH
15788do
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15793 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15796 fi
15797done
15798 done
15799IFS=$as_save_IFS
15800
9c60689e 15801fi
9c60689e 15802fi
a667869d
DWT
15803OBJCXX=$ac_cv_prog_OBJCXX
15804if test -n "$OBJCXX"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15806$as_echo "$OBJCXX" >&6; }
9c60689e 15807else
a667869d
DWT
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809$as_echo "no" >&6; }
9c60689e
DWT
15810fi
15811
15812
a667869d
DWT
15813 test -n "$OBJCXX" && break
15814 done
9c60689e 15815fi
a667869d
DWT
15816if test -z "$OBJCXX"; then
15817 ac_ct_OBJCXX=$OBJCXX
15818 for ac_prog in g++ objc++ objcxx c++ CXX
15819do
15820 # Extract the first word of "$ac_prog", so it can be a program name with args.
15821set dummy $ac_prog; ac_word=$2
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15823$as_echo_n "checking for $ac_word... " >&6; }
15824if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
15825 $as_echo_n "(cached) " >&6
15826else
15827 if test -n "$ac_ct_OBJCXX"; then
15828 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15829else
15830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15831for as_dir in $PATH
15832do
15833 IFS=$as_save_IFS
15834 test -z "$as_dir" && as_dir=.
15835 for ac_exec_ext in '' $ac_executable_extensions; do
15836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15837 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15839 break 2
15840 fi
15841done
15842 done
15843IFS=$as_save_IFS
9c60689e 15844
a667869d
DWT
15845fi
15846fi
15847ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15848if test -n "$ac_ct_OBJCXX"; then
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15850$as_echo "$ac_ct_OBJCXX" >&6; }
15851else
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9c60689e 15853$as_echo "no" >&6; }
9c60689e
DWT
15854fi
15855
a667869d
DWT
15856
15857 test -n "$ac_ct_OBJCXX" && break
9c60689e
DWT
15858done
15859
a667869d
DWT
15860 if test "x$ac_ct_OBJCXX" = x; then
15861 OBJCXX="g++"
15862 else
15863 case $cross_compiling:$ac_tool_warned in
15864yes:)
15865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15867ac_tool_warned=yes ;;
15868esac
15869 OBJCXX=$ac_ct_OBJCXX
15870 fi
15871fi
9c60689e 15872
a667869d
DWT
15873# Provide some information about the compiler.
15874$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15875set X $ac_compile
15876ac_compiler=$2
15877for ac_option in --version -v -V -qversion; do
15878 { { ac_try="$ac_compiler $ac_option >&5"
15879case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15882esac
15883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15884$as_echo "$ac_try_echo"; } >&5
15885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15886 ac_status=$?
15887 if test -s conftest.err; then
15888 sed '10a\
15889... rest of stderr output deleted ...
15890 10q' conftest.err >conftest.er1
15891 cat conftest.er1 >&5
15892 fi
15893 rm -f conftest.er1 conftest.err
15894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15895 test $ac_status = 0; }
15896done
9c60689e 15897
a667869d
DWT
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15899$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15900if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
9c60689e
DWT
15901 $as_echo_n "(cached) " >&6
15902else
a667869d 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15904/* end confdefs.h. */
15905
9c60689e
DWT
15906int
15907main ()
15908{
a667869d
DWT
15909#ifndef __GNUC__
15910 choke me
15911#endif
15912
9c60689e
DWT
15913 ;
15914 return 0;
15915}
15916_ACEOF
a667869d
DWT
15917if ac_fn_objcxx_try_compile "$LINENO"; then :
15918 ac_compiler_gnu=yes
9c60689e 15919else
a667869d 15920 ac_compiler_gnu=no
9c60689e 15921fi
a667869d
DWT
15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e
DWT
15924
15925fi
a667869d
DWT
15926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15927$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15928if test $ac_compiler_gnu = yes; then
15929 GOBJCXX=yes
15930else
15931 GOBJCXX=
15932fi
15933ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15934ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15936$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15937if test "${ac_cv_prog_objcxx_g+set}" = set; then :
15938 $as_echo_n "(cached) " >&6
15939else
15940 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15941 ac_objcxx_werror_flag=yes
15942 ac_cv_prog_objcxx_g=no
15943 OBJCXXFLAGS="-g"
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h. */
15946
15947int
15948main ()
15949{
15950
15951 ;
15952 return 0;
15953}
15954_ACEOF
15955if ac_fn_objcxx_try_compile "$LINENO"; then :
15956 ac_cv_prog_objcxx_g=yes
15957else
15958 OBJCXXFLAGS=""
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h. */
15961
15962int
15963main ()
15964{
15965
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970if ac_fn_objcxx_try_compile "$LINENO"; then :
15971
15972else
15973 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15974 OBJCXXFLAGS="-g"
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h. */
15977
15978int
15979main ()
15980{
15981
15982 ;
15983 return 0;
15984}
15985_ACEOF
15986if ac_fn_objcxx_try_compile "$LINENO"; then :
15987 ac_cv_prog_objcxx_g=yes
15988fi
15989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990fi
15991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992fi
15993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15995fi
15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15997$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15998if test "$ac_test_OBJCXXFLAGS" = set; then
15999 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
16000elif test $ac_cv_prog_objcxx_g = yes; then
16001 if test "$GOBJCXX" = yes; then
16002 OBJCXXFLAGS="-g -O2"
16003 else
16004 OBJCXXFLAGS="-g"
16005 fi
16006else
16007 if test "$GOBJCXX" = yes; then
16008 OBJCXXFLAGS="-O2"
16009 else
16010 OBJCXXFLAGS=
16011 fi
16012fi
16013ac_ext=cpp
16014ac_cpp='$CXXCPP $CPPFLAGS'
16015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16018
16019
16020case $CY_EXECUTE in #(
16021 1) :
16022
16023
16024
16025pkg_failed=no
16026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16027$as_echo_n "checking for LIBFFI... " >&6; }
16028
16029if test -n "$PKG_CONFIG"; then
16030 if test -n "$LIBFFI_CFLAGS"; then
16031 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
16032 else
16033 if test -n "$PKG_CONFIG" && \
16034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16035 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16036 ac_status=$?
16037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16038 test $ac_status = 0; }; then
16039 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
16040else
16041 pkg_failed=yes
16042fi
16043 fi
16044else
16045 pkg_failed=untried
16046fi
16047if test -n "$PKG_CONFIG"; then
16048 if test -n "$LIBFFI_LIBS"; then
16049 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
16050 else
16051 if test -n "$PKG_CONFIG" && \
16052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16053 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16054 ac_status=$?
16055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16056 test $ac_status = 0; }; then
16057 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
16058else
16059 pkg_failed=yes
16060fi
16061 fi
16062else
16063 pkg_failed=untried
16064fi
16065
16066
16067
16068if test $pkg_failed = yes; then
16069
16070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16071 _pkg_short_errors_supported=yes
16072else
16073 _pkg_short_errors_supported=no
16074fi
16075 if test $_pkg_short_errors_supported = yes; then
16076 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
16077 else
16078 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
16079 fi
16080 # Put the nasty error message in config.log where it belongs
16081 echo "$LIBFFI_PKG_ERRORS" >&5
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16084$as_echo "no" >&6; }
16085
16086 for ac_header in ffi.h ffi/ffi.h
16087do :
16088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16089ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16090eval as_val=\$$as_ac_Header
16091 if test "x$as_val" = x""yes; then :
16092 cat >>confdefs.h <<_ACEOF
16093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16094_ACEOF
16095 break
16096fi
16097
16098done
16099
16100 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16101
16102 as_fn_error "You need libffi" "$LINENO" 5
16103
16104fi
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16106$as_echo_n "checking for library containing ffi_call... " >&6; }
16107if test "${ac_cv_search_ffi_call+set}" = set; then :
16108 $as_echo_n "(cached) " >&6
16109else
16110 ac_func_search_save_LIBS=$LIBS
16111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112/* end confdefs.h. */
16113
16114/* Override any GCC internal prototype to avoid an error.
16115 Use char because int might match the return type of a GCC
16116 builtin and then its argument prototype would still apply. */
16117#ifdef __cplusplus
16118extern "C"
16119#endif
16120char ffi_call ();
16121int
16122main ()
16123{
16124return ffi_call ();
16125 ;
16126 return 0;
16127}
16128_ACEOF
16129for ac_lib in '' ffi; do
16130 if test -z "$ac_lib"; then
16131 ac_res="none required"
16132 else
16133 ac_res=-l$ac_lib
16134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16135 fi
16136 if ac_fn_cxx_try_link "$LINENO"; then :
16137 ac_cv_search_ffi_call=$ac_res
16138fi
16139rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext
16141 if test "${ac_cv_search_ffi_call+set}" = set; then :
16142 break
16143fi
16144done
16145if test "${ac_cv_search_ffi_call+set}" = set; then :
16146
16147else
16148 ac_cv_search_ffi_call=no
16149fi
16150rm conftest.$ac_ext
16151LIBS=$ac_func_search_save_LIBS
16152fi
16153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16154$as_echo "$ac_cv_search_ffi_call" >&6; }
16155ac_res=$ac_cv_search_ffi_call
16156if test "$ac_res" != no; then :
16157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16158
16159fi
16160
16161 case $ac_cv_search_ffi_call in #(
16162 no) :
16163
16164 as_fn_error "You need libffi" "$LINENO" 5
16165 ;; #(
16166 *) :
9c60689e
DWT
16167 ;;
16168esac
16169
16170elif test $pkg_failed = untried; then
16171
16172 for ac_header in ffi.h ffi/ffi.h
16173do :
16174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47aaa820 16175ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9c60689e
DWT
16176eval as_val=\$$as_ac_Header
16177 if test "x$as_val" = x""yes; then :
16178 cat >>confdefs.h <<_ACEOF
16179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16180_ACEOF
16181 break
16182fi
16183
16184done
16185
16186 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16187
16188 as_fn_error "You need libffi" "$LINENO" 5
16189
16190fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16192$as_echo_n "checking for library containing ffi_call... " >&6; }
16193if test "${ac_cv_search_ffi_call+set}" = set; then :
16194 $as_echo_n "(cached) " >&6
16195else
16196 ac_func_search_save_LIBS=$LIBS
16197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198/* end confdefs.h. */
16199
16200/* Override any GCC internal prototype to avoid an error.
16201 Use char because int might match the return type of a GCC
16202 builtin and then its argument prototype would still apply. */
16203#ifdef __cplusplus
16204extern "C"
16205#endif
16206char ffi_call ();
16207int
16208main ()
16209{
16210return ffi_call ();
16211 ;
16212 return 0;
16213}
16214_ACEOF
16215for ac_lib in '' ffi; do
16216 if test -z "$ac_lib"; then
16217 ac_res="none required"
16218 else
16219 ac_res=-l$ac_lib
16220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16221 fi
47aaa820 16222 if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e
DWT
16223 ac_cv_search_ffi_call=$ac_res
16224fi
16225rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext
16227 if test "${ac_cv_search_ffi_call+set}" = set; then :
16228 break
16229fi
16230done
16231if test "${ac_cv_search_ffi_call+set}" = set; then :
16232
16233else
16234 ac_cv_search_ffi_call=no
16235fi
16236rm conftest.$ac_ext
16237LIBS=$ac_func_search_save_LIBS
16238fi
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16240$as_echo "$ac_cv_search_ffi_call" >&6; }
16241ac_res=$ac_cv_search_ffi_call
16242if test "$ac_res" != no; then :
16243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16244
16245fi
16246
16247 case $ac_cv_search_ffi_call in #(
16248 no) :
16249
16250 as_fn_error "You need libffi" "$LINENO" 5
16251 ;; #(
16252 *) :
16253 ;;
16254esac
16255
16256else
16257 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16258 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16260$as_echo "yes" >&6; }
3fd51f51
DWT
16261
16262
16263 for element in `$PKG_CONFIG --cflags libffi`; do
16264 haveit=
16265 for x in $CXXFLAGS; do
16266
16267 acl_save_prefix="$prefix"
16268 prefix="$acl_final_prefix"
16269 acl_save_exec_prefix="$exec_prefix"
16270 exec_prefix="$acl_final_exec_prefix"
16271 eval x=\"$x\"
16272 exec_prefix="$acl_save_exec_prefix"
16273 prefix="$acl_save_prefix"
16274
16275 if test "X$x" = "X$element"; then
16276 haveit=yes
16277 break
16278 fi
16279 done
16280 if test -z "$haveit"; then
16281 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16282 fi
16283 done
16284
16285
16286 for element in `$PKG_CONFIG --libs libffi`; do
16287 haveit=
16288 for x in $LIBS; do
16289
16290 acl_save_prefix="$prefix"
16291 prefix="$acl_final_prefix"
16292 acl_save_exec_prefix="$exec_prefix"
16293 exec_prefix="$acl_final_exec_prefix"
16294 eval x=\"$x\"
16295 exec_prefix="$acl_save_exec_prefix"
16296 prefix="$acl_save_prefix"
16297
16298 if test "X$x" = "X$element"; then
16299 haveit=yes
16300 break
16301 fi
16302 done
16303 if test -z "$haveit"; then
16304 LIBS="${LIBS}${LIBS:+ }$element"
16305 fi
16306 done
16307
16308
9c60689e 16309fi
a667869d 16310 ac_ext=mm
47aaa820
DWT
16311ac_cpp='$OBJCXXCPP $CPPFLAGS'
16312ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16313ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16314ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16315
a667869d 16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
47aaa820 16317$as_echo_n "checking if we really have Objective C++... " >&6; }
a667869d 16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820
DWT
16319/* end confdefs.h. */
16320
a667869d 16321 // This space intentionally left blank
47aaa820
DWT
16322
16323_ACEOF
16324if ac_fn_objcxx_try_compile "$LINENO"; then :
16325
a667869d
DWT
16326 CY_OBJECTIVEC=1
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47aaa820
DWT
16328$as_echo "yes" >&6; }
16329
16330else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332$as_echo "no" >&6; }
16333fi
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a667869d 16335 ac_ext=cpp
47aaa820
DWT
16336ac_cpp='$CXXCPP $CPPFLAGS'
16337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16340
a667869d 16341 if test "x$CY_OBJECTIVEC" = x1; then :
47aaa820 16342
a667869d
DWT
16343 # TODO: Darwin
16344 for ac_prog in gnustep-config
47aaa820
DWT
16345do
16346 # Extract the first word of "$ac_prog", so it can be a program name with args.
16347set dummy $ac_prog; ac_word=$2
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16349$as_echo_n "checking for $ac_word... " >&6; }
16350if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
16351 $as_echo_n "(cached) " >&6
16352else
16353 if test -n "$GNUSTEP_CONFIG"; then
16354 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
16355else
16356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16357for as_dir in $PATH
16358do
16359 IFS=$as_save_IFS
16360 test -z "$as_dir" && as_dir=.
16361 for ac_exec_ext in '' $ac_executable_extensions; do
16362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16363 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
16364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16365 break 2
16366 fi
16367done
16368 done
16369IFS=$as_save_IFS
16370
16371fi
16372fi
16373GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
16374if test -n "$GNUSTEP_CONFIG"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
16376$as_echo "$GNUSTEP_CONFIG" >&6; }
16377else
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379$as_echo "no" >&6; }
16380fi
16381
16382
16383 test -n "$GNUSTEP_CONFIG" && break
16384done
16385
a667869d 16386 if test "x$GNUSTEP_CONFIG" != x; then :
47aaa820
DWT
16387
16388
16389
16390 for element in `$GNUSTEP_CONFIG --objc-flags`; do
16391 haveit=
16392 for x in $OBJCXXFLAGS; do
16393
16394 acl_save_prefix="$prefix"
16395 prefix="$acl_final_prefix"
16396 acl_save_exec_prefix="$exec_prefix"
16397 exec_prefix="$acl_final_exec_prefix"
16398 eval x=\"$x\"
16399 exec_prefix="$acl_save_exec_prefix"
16400 prefix="$acl_save_prefix"
9c60689e 16401
47aaa820
DWT
16402 if test "X$x" = "X$element"; then
16403 haveit=yes
16404 break
16405 fi
16406 done
16407 if test -z "$haveit"; then
16408 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16409 fi
16410 done
16411
16412
16413 for element in `$GNUSTEP_CONFIG --base-libs`; do
16414 haveit=
16415 for x in $LIBS; do
16416
16417 acl_save_prefix="$prefix"
16418 prefix="$acl_final_prefix"
16419 acl_save_exec_prefix="$exec_prefix"
16420 exec_prefix="$acl_final_exec_prefix"
16421 eval x=\"$x\"
16422 exec_prefix="$acl_save_exec_prefix"
16423 prefix="$acl_save_prefix"
16424
16425 if test "X$x" = "X$element"; then
16426 haveit=yes
16427 break
16428 fi
16429 done
16430 if test -z "$haveit"; then
16431 LIBS="${LIBS}${LIBS:+ }$element"
16432 fi
16433 done
16434
16435
16436fi
16437
16438fi
a667869d
DWT
16439 ;; #(
16440 *) :
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
16443$as_echo "$as_me: WARNING: No JavaScript engine!" >&2;}
16444 ;;
16445esac
47aaa820
DWT
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
16447$as_echo_n "checking for GNU make... " >&6; }
16448if test "${_cv_gnu_make_command+set}" = set; then :
16449 $as_echo_n "(cached) " >&6
16450else
16451 _cv_gnu_make_command='' ;
16452 for a in "$MAKE" make gmake gnumake ; do
16453 if test -z "$a" ; then continue ; fi ;
16454 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
16455 _cv_gnu_make_command=$a ;
16456 break;
16457 fi
16458 done ;
16459
16460fi
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
16462$as_echo "$_cv_gnu_make_command" >&6; } ;
16463 if test "x$_cv_gnu_make_command" != "x" ; then
16464 ifGNUmake='' ;
16465 else
16466 ifGNUmake='#' ;
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
16468$as_echo "\"Not found\"" >&6; };
16469 fi
16470
16471
16472if test "x$_cv_gnu_make_command" = x; then :
16473 as_fn_error "You need GNU make" "$LINENO" 5
16474fi
9c60689e
DWT
16475ac_config_files="$ac_config_files GNUmakefile"
16476
16477cat >confcache <<\_ACEOF
16478# This file is a shell script that caches the results of configure
16479# tests run on this system so they can be shared between configure
16480# scripts and configure runs, see configure's option --config-cache.
16481# It is not useful on other systems. If it contains results you don't
16482# want to keep, you may remove or edit it.
16483#
16484# config.status only pays attention to the cache file if you give it
16485# the --recheck option to rerun configure.
16486#
16487# `ac_cv_env_foo' variables (set or unset) will be overridden when
16488# loading this file, other *unset* `ac_cv_foo' will be assigned the
16489# following values.
16490
16491_ACEOF
16492
16493# The following way of writing the cache mishandles newlines in values,
16494# but we know of no workaround that is simple, portable, and efficient.
16495# So, we kill variables containing newlines.
16496# Ultrix sh set writes to stderr and can't be redirected directly,
16497# and sets the high bit in the cache file unless we assign to the vars.
16498(
16499 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16500 eval ac_val=\$$ac_var
16501 case $ac_val in #(
16502 *${as_nl}*)
16503 case $ac_var in #(
16504 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16505$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16506 esac
16507 case $ac_var in #(
16508 _ | IFS | as_nl) ;; #(
16509 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16510 *) { eval $ac_var=; unset $ac_var;} ;;
16511 esac ;;
16512 esac
16513 done
16514
16515 (set) 2>&1 |
16516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16517 *${as_nl}ac_space=\ *)
16518 # `set' does not quote correctly, so add quotes: double-quote
16519 # substitution turns \\\\ into \\, and sed turns \\ into \.
16520 sed -n \
16521 "s/'/'\\\\''/g;
16522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16523 ;; #(
16524 *)
16525 # `set' quotes correctly as required by POSIX, so do not add quotes.
16526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16527 ;;
16528 esac |
16529 sort
16530) |
16531 sed '
16532 /^ac_cv_env_/b end
16533 t clear
16534 :clear
16535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16536 t end
16537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16538 :end' >>confcache
16539if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16540 if test -w "$cache_file"; then
16541 test "x$cache_file" != "x/dev/null" &&
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16543$as_echo "$as_me: updating cache $cache_file" >&6;}
16544 cat confcache >$cache_file
16545 else
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16547$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16548 fi
16549fi
16550rm -f confcache
16551
16552test "x$prefix" = xNONE && prefix=$ac_default_prefix
16553# Let make expand exec_prefix.
16554test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16555
16556# Transform confdefs.h into DEFS.
16557# Protect against shell expansion while executing Makefile rules.
16558# Protect against Makefile macro expansion.
16559#
16560# If the first sed substitution is executed (which looks for macros that
16561# take arguments), then branch to the quote section. Otherwise,
16562# look for a macro that doesn't take arguments.
16563ac_script='
16564:mline
16565/\\$/{
16566 N
16567 s,\\\n,,
16568 b mline
16569}
16570t clear
16571:clear
16572s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16573t quote
16574s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16575t quote
16576b any
16577:quote
16578s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16579s/\[/\\&/g
16580s/\]/\\&/g
16581s/\$/$$/g
16582H
16583:any
16584${
16585 g
16586 s/^\n//
16587 s/\n/ /g
16588 p
16589}
16590'
16591DEFS=`sed -n "$ac_script" confdefs.h`
16592
16593
16594ac_libobjs=
16595ac_ltlibobjs=
16596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16597 # 1. Remove the extension, and $U if already installed.
16598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16601 # will be set to the directory where LIBOBJS objects are built.
16602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16604done
16605LIBOBJS=$ac_libobjs
16606
16607LTLIBOBJS=$ac_ltlibobjs
16608
16609
16610
16611: ${CONFIG_STATUS=./config.status}
16612ac_write_fail=0
16613ac_clean_files_save=$ac_clean_files
16614ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16615{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16616$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16617as_write_fail=0
16618cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16619#! $SHELL
16620# Generated by $as_me.
16621# Run this file to recreate the current configuration.
16622# Compiler output produced by configure, useful for debugging
16623# configure, is in config.log if it exists.
16624
16625debug=false
16626ac_cs_recheck=false
16627ac_cs_silent=false
16628
16629SHELL=\${CONFIG_SHELL-$SHELL}
16630export SHELL
16631_ASEOF
16632cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16633## -------------------- ##
16634## M4sh Initialization. ##
16635## -------------------- ##
16636
16637# Be more Bourne compatible
16638DUALCASE=1; export DUALCASE # for MKS sh
16639if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16640 emulate sh
16641 NULLCMD=:
16642 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16643 # is contrary to our usage. Disable this feature.
16644 alias -g '${1+"$@"}'='"$@"'
16645 setopt NO_GLOB_SUBST
16646else
16647 case `(set -o) 2>/dev/null` in #(
16648 *posix*) :
16649 set -o posix ;; #(
16650 *) :
16651 ;;
16652esac
16653fi
16654
16655
16656as_nl='
16657'
16658export as_nl
16659# Printing a long string crashes Solaris 7 /usr/bin/printf.
16660as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16662as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16663# Prefer a ksh shell builtin over an external printf program on Solaris,
16664# but without wasting forks for bash or zsh.
16665if test -z "$BASH_VERSION$ZSH_VERSION" \
16666 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16667 as_echo='print -r --'
16668 as_echo_n='print -rn --'
16669elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16670 as_echo='printf %s\n'
16671 as_echo_n='printf %s'
16672else
16673 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16674 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16675 as_echo_n='/usr/ucb/echo -n'
16676 else
16677 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16678 as_echo_n_body='eval
16679 arg=$1;
16680 case $arg in #(
16681 *"$as_nl"*)
16682 expr "X$arg" : "X\\(.*\\)$as_nl";
16683 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16684 esac;
16685 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16686 '
16687 export as_echo_n_body
16688 as_echo_n='sh -c $as_echo_n_body as_echo'
16689 fi
16690 export as_echo_body
16691 as_echo='sh -c $as_echo_body as_echo'
16692fi
16693
16694# The user is always right.
16695if test "${PATH_SEPARATOR+set}" != set; then
16696 PATH_SEPARATOR=:
16697 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16698 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16699 PATH_SEPARATOR=';'
16700 }
16701fi
16702
16703
16704# IFS
16705# We need space, tab and new line, in precisely that order. Quoting is
16706# there to prevent editors from complaining about space-tab.
16707# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16708# splitting by setting IFS to empty value.)
16709IFS=" "" $as_nl"
16710
16711# Find who we are. Look in the path if we contain no directory separator.
16712case $0 in #((
16713 *[\\/]* ) as_myself=$0 ;;
16714 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715for as_dir in $PATH
16716do
16717 IFS=$as_save_IFS
16718 test -z "$as_dir" && as_dir=.
16719 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16720 done
16721IFS=$as_save_IFS
16722
16723 ;;
16724esac
16725# We did not find ourselves, most probably we were run as `sh COMMAND'
16726# in which case we are not to be found in the path.
16727if test "x$as_myself" = x; then
16728 as_myself=$0
16729fi
16730if test ! -f "$as_myself"; then
16731 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16732 exit 1
16733fi
16734
16735# Unset variables that we do not need and which cause bugs (e.g. in
16736# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16737# suppresses any "Segmentation fault" message there. '((' could
16738# trigger a bug in pdksh 5.2.14.
16739for as_var in BASH_ENV ENV MAIL MAILPATH
16740do eval test x\${$as_var+set} = xset \
16741 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16742done
16743PS1='$ '
16744PS2='> '
16745PS4='+ '
16746
16747# NLS nuisances.
16748LC_ALL=C
16749export LC_ALL
16750LANGUAGE=C
16751export LANGUAGE
16752
16753# CDPATH.
16754(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16755
16756
16757# as_fn_error ERROR [LINENO LOG_FD]
16758# ---------------------------------
16759# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16760# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16761# script with status $?, using 1 if that was 0.
16762as_fn_error ()
16763{
16764 as_status=$?; test $as_status -eq 0 && as_status=1
16765 if test "$3"; then
16766 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16767 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16768 fi
16769 $as_echo "$as_me: error: $1" >&2
16770 as_fn_exit $as_status
16771} # as_fn_error
16772
16773
16774# as_fn_set_status STATUS
16775# -----------------------
16776# Set $? to STATUS, without forking.
16777as_fn_set_status ()
16778{
16779 return $1
16780} # as_fn_set_status
16781
16782# as_fn_exit STATUS
16783# -----------------
16784# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16785as_fn_exit ()
16786{
16787 set +e
16788 as_fn_set_status $1
16789 exit $1
16790} # as_fn_exit
16791
16792# as_fn_unset VAR
16793# ---------------
16794# Portably unset VAR.
16795as_fn_unset ()
16796{
16797 { eval $1=; unset $1;}
16798}
16799as_unset=as_fn_unset
16800# as_fn_append VAR VALUE
16801# ----------------------
16802# Append the text in VALUE to the end of the definition contained in VAR. Take
16803# advantage of any shell optimizations that allow amortized linear growth over
16804# repeated appends, instead of the typical quadratic growth present in naive
16805# implementations.
16806if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16807 eval 'as_fn_append ()
16808 {
16809 eval $1+=\$2
16810 }'
16811else
16812 as_fn_append ()
16813 {
16814 eval $1=\$$1\$2
16815 }
16816fi # as_fn_append
16817
16818# as_fn_arith ARG...
16819# ------------------
16820# Perform arithmetic evaluation on the ARGs, and store the result in the
16821# global $as_val. Take advantage of shells that can avoid forks. The arguments
16822# must be portable across $(()) and expr.
16823if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16824 eval 'as_fn_arith ()
16825 {
16826 as_val=$(( $* ))
16827 }'
16828else
16829 as_fn_arith ()
16830 {
16831 as_val=`expr "$@" || test $? -eq 1`
16832 }
16833fi # as_fn_arith
16834
16835
16836if expr a : '\(a\)' >/dev/null 2>&1 &&
16837 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16838 as_expr=expr
16839else
16840 as_expr=false
16841fi
16842
16843if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16844 as_basename=basename
16845else
16846 as_basename=false
16847fi
16848
16849if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16850 as_dirname=dirname
16851else
16852 as_dirname=false
16853fi
16854
16855as_me=`$as_basename -- "$0" ||
16856$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16857 X"$0" : 'X\(//\)$' \| \
16858 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16859$as_echo X/"$0" |
16860 sed '/^.*\/\([^/][^/]*\)\/*$/{
16861 s//\1/
16862 q
16863 }
16864 /^X\/\(\/\/\)$/{
16865 s//\1/
16866 q
16867 }
16868 /^X\/\(\/\).*/{
16869 s//\1/
16870 q
16871 }
16872 s/.*/./; q'`
16873
16874# Avoid depending upon Character Ranges.
16875as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16876as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16877as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16878as_cr_digits='0123456789'
16879as_cr_alnum=$as_cr_Letters$as_cr_digits
16880
16881ECHO_C= ECHO_N= ECHO_T=
16882case `echo -n x` in #(((((
16883-n*)
16884 case `echo 'xy\c'` in
16885 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16886 xy) ECHO_C='\c';;
16887 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16888 ECHO_T=' ';;
16889 esac;;
16890*)
16891 ECHO_N='-n';;
16892esac
16893
16894rm -f conf$$ conf$$.exe conf$$.file
16895if test -d conf$$.dir; then
16896 rm -f conf$$.dir/conf$$.file
16897else
16898 rm -f conf$$.dir
16899 mkdir conf$$.dir 2>/dev/null
16900fi
16901if (echo >conf$$.file) 2>/dev/null; then
16902 if ln -s conf$$.file conf$$ 2>/dev/null; then
16903 as_ln_s='ln -s'
16904 # ... but there are two gotchas:
16905 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16906 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16907 # In both cases, we have to default to `cp -p'.
16908 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16909 as_ln_s='cp -p'
16910 elif ln conf$$.file conf$$ 2>/dev/null; then
16911 as_ln_s=ln
16912 else
16913 as_ln_s='cp -p'
16914 fi
16915else
16916 as_ln_s='cp -p'
16917fi
16918rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16919rmdir conf$$.dir 2>/dev/null
16920
16921
16922# as_fn_mkdir_p
16923# -------------
16924# Create "$as_dir" as a directory, including parents if necessary.
16925as_fn_mkdir_p ()
16926{
16927
16928 case $as_dir in #(
16929 -*) as_dir=./$as_dir;;
16930 esac
16931 test -d "$as_dir" || eval $as_mkdir_p || {
16932 as_dirs=
16933 while :; do
16934 case $as_dir in #(
16935 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16936 *) as_qdir=$as_dir;;
16937 esac
16938 as_dirs="'$as_qdir' $as_dirs"
16939 as_dir=`$as_dirname -- "$as_dir" ||
16940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16941 X"$as_dir" : 'X\(//\)[^/]' \| \
16942 X"$as_dir" : 'X\(//\)$' \| \
16943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16944$as_echo X"$as_dir" |
16945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16946 s//\1/
16947 q
16948 }
16949 /^X\(\/\/\)[^/].*/{
16950 s//\1/
16951 q
16952 }
16953 /^X\(\/\/\)$/{
16954 s//\1/
16955 q
16956 }
16957 /^X\(\/\).*/{
16958 s//\1/
16959 q
16960 }
16961 s/.*/./; q'`
16962 test -d "$as_dir" && break
16963 done
16964 test -z "$as_dirs" || eval "mkdir $as_dirs"
16965 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16966
16967
16968} # as_fn_mkdir_p
16969if mkdir -p . 2>/dev/null; then
16970 as_mkdir_p='mkdir -p "$as_dir"'
16971else
16972 test -d ./-p && rmdir ./-p
16973 as_mkdir_p=false
16974fi
16975
16976if test -x / >/dev/null 2>&1; then
16977 as_test_x='test -x'
16978else
16979 if ls -dL / >/dev/null 2>&1; then
16980 as_ls_L_option=L
16981 else
16982 as_ls_L_option=
16983 fi
16984 as_test_x='
16985 eval sh -c '\''
16986 if test -d "$1"; then
16987 test -d "$1/.";
16988 else
16989 case $1 in #(
16990 -*)set "./$1";;
16991 esac;
16992 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16993 ???[sx]*):;;*)false;;esac;fi
16994 '\'' sh
16995 '
16996fi
16997as_executable_p=$as_test_x
16998
16999# Sed expression to map a string onto a valid CPP name.
17000as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17001
17002# Sed expression to map a string onto a valid variable name.
17003as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17004
17005
17006exec 6>&1
17007## ----------------------------------- ##
17008## Main body of $CONFIG_STATUS script. ##
17009## ----------------------------------- ##
17010_ASEOF
17011test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17012
17013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17014# Save the log message, to keep $0 and so on meaningful, and to
17015# report actual input values of CONFIG_FILES etc. instead of their
17016# values after options handling.
17017ac_log="
17018This file was extended by Cycript $as_me 0.9, which was
17019generated by GNU Autoconf 2.65. Invocation command line was
17020
17021 CONFIG_FILES = $CONFIG_FILES
17022 CONFIG_HEADERS = $CONFIG_HEADERS
17023 CONFIG_LINKS = $CONFIG_LINKS
17024 CONFIG_COMMANDS = $CONFIG_COMMANDS
17025 $ $0 $@
17026
17027on `(hostname || uname -n) 2>/dev/null | sed 1q`
17028"
17029
17030_ACEOF
17031
17032case $ac_config_files in *"
17033"*) set x $ac_config_files; shift; ac_config_files=$*;;
17034esac
17035
17036
17037
17038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17039# Files that config.status was made for.
17040config_files="$ac_config_files"
17041config_commands="$ac_config_commands"
17042
17043_ACEOF
17044
17045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17046ac_cs_usage="\
17047\`$as_me' instantiates files and other configuration actions
17048from templates according to the current configuration. Unless the files
17049and actions are specified as TAGs, all are instantiated by default.
17050
17051Usage: $0 [OPTION]... [TAG]...
17052
17053 -h, --help print this help, then exit
17054 -V, --version print version number and configuration settings, then exit
17055 --config print configuration, then exit
17056 -q, --quiet, --silent
17057 do not print progress messages
17058 -d, --debug don't remove temporary files
17059 --recheck update $as_me by reconfiguring in the same conditions
17060 --file=FILE[:TEMPLATE]
17061 instantiate the configuration file FILE
17062
17063Configuration files:
17064$config_files
17065
17066Configuration commands:
17067$config_commands
17068
17069Report bugs to <saurik@saurik.com>.
17070Cycript home page: <http://www.cycript.org/>."
17071
17072_ACEOF
17073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17075ac_cs_version="\\
17076Cycript config.status 0.9
17077configured by $0, generated by GNU Autoconf 2.65,
17078 with options \\"\$ac_cs_config\\"
17079
17080Copyright (C) 2009 Free Software Foundation, Inc.
17081This config.status script is free software; the Free Software Foundation
17082gives unlimited permission to copy, distribute and modify it."
17083
17084ac_pwd='$ac_pwd'
17085srcdir='$srcdir'
17086INSTALL='$INSTALL'
17087AWK='$AWK'
17088test -n "\$AWK" || AWK=awk
17089_ACEOF
17090
17091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17092# The default lists apply if the user does not specify any file.
17093ac_need_defaults=:
17094while test $# != 0
17095do
17096 case $1 in
17097 --*=*)
17098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17100 ac_shift=:
17101 ;;
17102 *)
17103 ac_option=$1
17104 ac_optarg=$2
17105 ac_shift=shift
17106 ;;
17107 esac
17108
17109 case $ac_option in
17110 # Handling of the options.
17111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17112 ac_cs_recheck=: ;;
17113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17114 $as_echo "$ac_cs_version"; exit ;;
17115 --config | --confi | --conf | --con | --co | --c )
17116 $as_echo "$ac_cs_config"; exit ;;
17117 --debug | --debu | --deb | --de | --d | -d )
17118 debug=: ;;
17119 --file | --fil | --fi | --f )
17120 $ac_shift
17121 case $ac_optarg in
17122 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17123 esac
17124 as_fn_append CONFIG_FILES " '$ac_optarg'"
17125 ac_need_defaults=false;;
17126 --he | --h | --help | --hel | -h )
17127 $as_echo "$ac_cs_usage"; exit ;;
17128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17130 ac_cs_silent=: ;;
17131
17132 # This is an error.
17133 -*) as_fn_error "unrecognized option: \`$1'
17134Try \`$0 --help' for more information." ;;
17135
17136 *) as_fn_append ac_config_targets " $1"
17137 ac_need_defaults=false ;;
17138
17139 esac
17140 shift
17141done
17142
17143ac_configure_extra_args=
17144
17145if $ac_cs_silent; then
17146 exec 6>/dev/null
17147 ac_configure_extra_args="$ac_configure_extra_args --silent"
17148fi
17149
17150_ACEOF
17151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17152if \$ac_cs_recheck; then
17153 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17154 shift
17155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17156 CONFIG_SHELL='$SHELL'
17157 export CONFIG_SHELL
17158 exec "\$@"
17159fi
17160
17161_ACEOF
17162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17163exec 5>>config.log
17164{
17165 echo
17166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17167## Running $as_me. ##
17168_ASBOX
17169 $as_echo "$ac_log"
17170} >&5
17171
17172_ACEOF
17173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17174#
17175# INIT-COMMANDS
17176#
17177
17178
17179# The HP-UX ksh and POSIX shell print the target directory to stdout
17180# if CDPATH is set.
17181(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17182
17183sed_quote_subst='$sed_quote_subst'
17184double_quote_subst='$double_quote_subst'
17185delay_variable_subst='$delay_variable_subst'
17186macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17187macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e 17188enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
549f29b5 17189enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
9c60689e
DWT
17190pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17191enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17192host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17193host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17194host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17195build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17196build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17197build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17198SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17199Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17200GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17201EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17202FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17203LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17204NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17205LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17206max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17207ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17208exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17209lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17210lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17211lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17212reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17213reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17214OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17215deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17216file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17217AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17218AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17219STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17220RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17221old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17222old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17223old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17224CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17225CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17226compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17227GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17228lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17229lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17230lt_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"`'
17231lt_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"`'
17232objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17233SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17234ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17235MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17236lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17237lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17238lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17239lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17240lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17241need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17242DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17243NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17244LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17245OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17246OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17247libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17248shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17249extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17250archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17251enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17252export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17253whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17254compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17255old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17256old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17257archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17258archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17259module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17260module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17261with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17262allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17263no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17264hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17265hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17266hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17267hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17268hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17269hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17270hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17271hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17272inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17273link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17274fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17275always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17276export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17277exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17278include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17279prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17280file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17281variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17282need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17283need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17284version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17285runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17286shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17287shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17288libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17289library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17290soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17291postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17292postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17293finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17294finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17295hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17296sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17297sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17298hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17299enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17300enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17301enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17302old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17303striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17304compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17305predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17306postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17307predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17308postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17309compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17310LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17311old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17312compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17313GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17314lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17315lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17316lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17317lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17318lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17319archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17320enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17321export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17322whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17323compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17324old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17325old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17326archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17327archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17328module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17329module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17330with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17331allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17332no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17333hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17334hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17335hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17336hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17337hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17338hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17339hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17340hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17341inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17342link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17343fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17344always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17345export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17346exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17347include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17348prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17349file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17350hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17351compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17352predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17353postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17354predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17355postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17356compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17357
17358LTCC='$LTCC'
17359LTCFLAGS='$LTCFLAGS'
17360compiler='$compiler_DEFAULT'
17361
17362# Quote evaled strings.
17363for var in SED \
17364GREP \
17365EGREP \
17366FGREP \
17367LD \
17368NM \
17369LN_S \
17370lt_SP2NL \
17371lt_NL2SP \
17372reload_flag \
17373OBJDUMP \
17374deplibs_check_method \
17375file_magic_cmd \
17376AR \
17377AR_FLAGS \
17378STRIP \
17379RANLIB \
17380CC \
17381CFLAGS \
17382compiler \
17383lt_cv_sys_global_symbol_pipe \
17384lt_cv_sys_global_symbol_to_cdecl \
17385lt_cv_sys_global_symbol_to_c_name_address \
17386lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17387SHELL \
17388ECHO \
17389lt_prog_compiler_no_builtin_flag \
17390lt_prog_compiler_wl \
17391lt_prog_compiler_pic \
17392lt_prog_compiler_static \
17393lt_cv_prog_compiler_c_o \
17394need_locks \
17395DSYMUTIL \
17396NMEDIT \
17397LIPO \
17398OTOOL \
17399OTOOL64 \
17400shrext_cmds \
17401export_dynamic_flag_spec \
17402whole_archive_flag_spec \
17403compiler_needs_object \
17404with_gnu_ld \
17405allow_undefined_flag \
17406no_undefined_flag \
17407hardcode_libdir_flag_spec \
17408hardcode_libdir_flag_spec_ld \
17409hardcode_libdir_separator \
17410fix_srcfile_path \
17411exclude_expsyms \
17412include_expsyms \
17413file_list_spec \
17414variables_saved_for_relink \
17415libname_spec \
17416library_names_spec \
17417soname_spec \
17418finish_eval \
17419old_striplib \
17420striplib \
17421compiler_lib_search_dirs \
17422predep_objects \
17423postdep_objects \
17424predeps \
17425postdeps \
17426compiler_lib_search_path \
17427LD_CXX \
17428compiler_CXX \
17429lt_prog_compiler_no_builtin_flag_CXX \
17430lt_prog_compiler_wl_CXX \
17431lt_prog_compiler_pic_CXX \
17432lt_prog_compiler_static_CXX \
17433lt_cv_prog_compiler_c_o_CXX \
17434export_dynamic_flag_spec_CXX \
17435whole_archive_flag_spec_CXX \
17436compiler_needs_object_CXX \
17437with_gnu_ld_CXX \
17438allow_undefined_flag_CXX \
17439no_undefined_flag_CXX \
17440hardcode_libdir_flag_spec_CXX \
17441hardcode_libdir_flag_spec_ld_CXX \
17442hardcode_libdir_separator_CXX \
17443fix_srcfile_path_CXX \
17444exclude_expsyms_CXX \
17445include_expsyms_CXX \
17446file_list_spec_CXX \
17447compiler_lib_search_dirs_CXX \
17448predep_objects_CXX \
17449postdep_objects_CXX \
17450predeps_CXX \
17451postdeps_CXX \
17452compiler_lib_search_path_CXX; do
17453 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17454 *[\\\\\\\`\\"\\\$]*)
17455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17456 ;;
17457 *)
17458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17459 ;;
17460 esac
17461done
17462
17463# Double-quote double-evaled strings.
17464for var in reload_cmds \
17465old_postinstall_cmds \
17466old_postuninstall_cmds \
17467old_archive_cmds \
17468extract_expsyms_cmds \
17469old_archive_from_new_cmds \
17470old_archive_from_expsyms_cmds \
17471archive_cmds \
17472archive_expsym_cmds \
17473module_cmds \
17474module_expsym_cmds \
17475export_symbols_cmds \
17476prelink_cmds \
17477postinstall_cmds \
17478postuninstall_cmds \
17479finish_cmds \
17480sys_lib_search_path_spec \
17481sys_lib_dlsearch_path_spec \
17482old_archive_cmds_CXX \
17483old_archive_from_new_cmds_CXX \
17484old_archive_from_expsyms_cmds_CXX \
17485archive_cmds_CXX \
17486archive_expsym_cmds_CXX \
17487module_cmds_CXX \
17488module_expsym_cmds_CXX \
17489export_symbols_cmds_CXX \
17490prelink_cmds_CXX; do
17491 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17492 *[\\\\\\\`\\"\\\$]*)
17493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17494 ;;
17495 *)
17496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17497 ;;
17498 esac
17499done
17500
17501# Fix-up fallback echo if it was mangled by the above quoting rules.
17502case \$lt_ECHO in
17503*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17504 ;;
17505esac
17506
17507ac_aux_dir='$ac_aux_dir'
17508xsi_shell='$xsi_shell'
17509lt_shell_append='$lt_shell_append'
17510
17511# See if we are running on zsh, and set the options which allow our
17512# commands through without removal of \ escapes INIT.
17513if test -n "\${ZSH_VERSION+set}" ; then
17514 setopt NO_GLOB_SUBST
17515fi
17516
17517
17518 PACKAGE='$PACKAGE'
17519 VERSION='$VERSION'
17520 TIMESTAMP='$TIMESTAMP'
17521 RM='$RM'
17522 ofile='$ofile'
17523
17524
17525
17526
17527
17528
17529_ACEOF
17530
17531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17532
17533# Handling of arguments.
17534for ac_config_target in $ac_config_targets
17535do
17536 case $ac_config_target in
17537 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17538 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17539
17540 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17541 esac
17542done
17543
17544
17545# If the user did not use the arguments to specify the items to instantiate,
17546# then the envvar interface is used. Set only those that are not.
17547# We use the long form for the default assignment because of an extremely
17548# bizarre bug on SunOS 4.1.3.
17549if $ac_need_defaults; then
17550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17551 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17552fi
17553
17554# Have a temporary directory for convenience. Make it in the build tree
17555# simply because there is no reason against having it here, and in addition,
17556# creating and moving files from /tmp can sometimes cause problems.
17557# Hook for its removal unless debugging.
17558# Note that there is a small window in which the directory will not be cleaned:
17559# after its creation but before its name has been assigned to `$tmp'.
17560$debug ||
17561{
17562 tmp=
17563 trap 'exit_status=$?
17564 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17565' 0
17566 trap 'as_fn_exit 1' 1 2 13 15
17567}
17568# Create a (secure) tmp directory for tmp files.
17569
17570{
17571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17572 test -n "$tmp" && test -d "$tmp"
17573} ||
17574{
17575 tmp=./conf$$-$RANDOM
17576 (umask 077 && mkdir "$tmp")
17577} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17578
17579# Set up the scripts for CONFIG_FILES section.
17580# No need to generate them if there are no CONFIG_FILES.
17581# This happens for instance with `./config.status config.h'.
17582if test -n "$CONFIG_FILES"; then
17583
17584
17585ac_cr=`echo X | tr X '\015'`
17586# On cygwin, bash can eat \r inside `` if the user requested igncr.
17587# But we know of no other shell where ac_cr would be empty at this
17588# point, so we can use a bashism as a fallback.
17589if test "x$ac_cr" = x; then
17590 eval ac_cr=\$\'\\r\'
17591fi
17592ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17593if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17594 ac_cs_awk_cr='\r'
17595else
17596 ac_cs_awk_cr=$ac_cr
17597fi
17598
17599echo 'BEGIN {' >"$tmp/subs1.awk" &&
17600_ACEOF
17601
17602
17603{
17604 echo "cat >conf$$subs.awk <<_ACEOF" &&
17605 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17606 echo "_ACEOF"
17607} >conf$$subs.sh ||
17608 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17609ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17610ac_delim='%!_!# '
17611for ac_last_try in false false false false false :; do
17612 . ./conf$$subs.sh ||
17613 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17614
17615 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17616 if test $ac_delim_n = $ac_delim_num; then
17617 break
17618 elif $ac_last_try; then
17619 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17620 else
17621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17622 fi
17623done
17624rm -f conf$$subs.sh
17625
17626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17628_ACEOF
17629sed -n '
17630h
17631s/^/S["/; s/!.*/"]=/
17632p
17633g
17634s/^[^!]*!//
17635:repl
17636t repl
17637s/'"$ac_delim"'$//
17638t delim
17639:nl
17640h
17641s/\(.\{148\}\)..*/\1/
17642t more1
17643s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17644p
17645n
17646b repl
17647:more1
17648s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17649p
17650g
17651s/.\{148\}//
17652t nl
17653:delim
17654h
17655s/\(.\{148\}\)..*/\1/
17656t more2
17657s/["\\]/\\&/g; s/^/"/; s/$/"/
17658p
17659b
17660:more2
17661s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17662p
17663g
17664s/.\{148\}//
17665t delim
17666' <conf$$subs.awk | sed '
17667/^[^""]/{
17668 N
17669 s/\n//
17670}
17671' >>$CONFIG_STATUS || ac_write_fail=1
17672rm -f conf$$subs.awk
17673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17674_ACAWK
17675cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17676 for (key in S) S_is_set[key] = 1
17677 FS = "\a"
17678
17679}
17680{
17681 line = $ 0
17682 nfields = split(line, field, "@")
17683 substed = 0
17684 len = length(field[1])
17685 for (i = 2; i < nfields; i++) {
17686 key = field[i]
17687 keylen = length(key)
17688 if (S_is_set[key]) {
17689 value = S[key]
17690 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17691 len += length(value) + length(field[++i])
17692 substed = 1
17693 } else
17694 len += 1 + keylen
17695 }
17696
17697 print line
17698}
17699
17700_ACAWK
17701_ACEOF
17702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17703if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17704 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17705else
17706 cat
17707fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17708 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17709_ACEOF
17710
17711# VPATH may cause trouble with some makes, so we remove $(srcdir),
17712# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17713# trailing colons and then remove the whole line if VPATH becomes empty
17714# (actually we leave an empty line to preserve line numbers).
17715if test "x$srcdir" = x.; then
17716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17717s/:*\$(srcdir):*/:/
17718s/:*\${srcdir}:*/:/
17719s/:*@srcdir@:*/:/
17720s/^\([^=]*=[ ]*\):*/\1/
17721s/:*$//
17722s/^[^=]*=[ ]*$//
17723}'
17724fi
17725
17726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17727fi # test -n "$CONFIG_FILES"
17728
17729
17730eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17731shift
17732for ac_tag
17733do
17734 case $ac_tag in
17735 :[FHLC]) ac_mode=$ac_tag; continue;;
17736 esac
17737 case $ac_mode$ac_tag in
17738 :[FHL]*:*);;
17739 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17740 :[FH]-) ac_tag=-:-;;
17741 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17742 esac
17743 ac_save_IFS=$IFS
17744 IFS=:
17745 set x $ac_tag
17746 IFS=$ac_save_IFS
17747 shift
17748 ac_file=$1
17749 shift
17750
17751 case $ac_mode in
17752 :L) ac_source=$1;;
17753 :[FH])
17754 ac_file_inputs=
17755 for ac_f
17756 do
17757 case $ac_f in
17758 -) ac_f="$tmp/stdin";;
17759 *) # Look for the file first in the build tree, then in the source tree
17760 # (if the path is not absolute). The absolute path cannot be DOS-style,
17761 # because $ac_f cannot contain `:'.
17762 test -f "$ac_f" ||
17763 case $ac_f in
17764 [\\/$]*) false;;
17765 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17766 esac ||
17767 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17768 esac
17769 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17770 as_fn_append ac_file_inputs " '$ac_f'"
17771 done
17772
17773 # Let's still pretend it is `configure' which instantiates (i.e., don't
17774 # use $as_me), people would be surprised to read:
17775 # /* config.h. Generated by config.status. */
17776 configure_input='Generated from '`
17777 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17778 `' by configure.'
17779 if test x"$ac_file" != x-; then
17780 configure_input="$ac_file. $configure_input"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17782$as_echo "$as_me: creating $ac_file" >&6;}
17783 fi
17784 # Neutralize special characters interpreted by sed in replacement strings.
17785 case $configure_input in #(
17786 *\&* | *\|* | *\\* )
17787 ac_sed_conf_input=`$as_echo "$configure_input" |
17788 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17789 *) ac_sed_conf_input=$configure_input;;
17790 esac
17791
17792 case $ac_tag in
17793 *:-:* | *:-) cat >"$tmp/stdin" \
17794 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17795 esac
17796 ;;
17797 esac
17798
17799 ac_dir=`$as_dirname -- "$ac_file" ||
17800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$ac_file" : 'X\(//\)[^/]' \| \
17802 X"$ac_file" : 'X\(//\)$' \| \
17803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17804$as_echo X"$ac_file" |
17805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17806 s//\1/
17807 q
17808 }
17809 /^X\(\/\/\)[^/].*/{
17810 s//\1/
17811 q
17812 }
17813 /^X\(\/\/\)$/{
17814 s//\1/
17815 q
17816 }
17817 /^X\(\/\).*/{
17818 s//\1/
17819 q
17820 }
17821 s/.*/./; q'`
17822 as_dir="$ac_dir"; as_fn_mkdir_p
17823 ac_builddir=.
17824
17825case "$ac_dir" in
17826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17827*)
17828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17829 # A ".." for each directory in $ac_dir_suffix.
17830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17831 case $ac_top_builddir_sub in
17832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17834 esac ;;
17835esac
17836ac_abs_top_builddir=$ac_pwd
17837ac_abs_builddir=$ac_pwd$ac_dir_suffix
17838# for backward compatibility:
17839ac_top_builddir=$ac_top_build_prefix
35fa52c0 17840
9c60689e
DWT
17841case $srcdir in
17842 .) # We are building in place.
17843 ac_srcdir=.
17844 ac_top_srcdir=$ac_top_builddir_sub
17845 ac_abs_top_srcdir=$ac_pwd ;;
17846 [\\/]* | ?:[\\/]* ) # Absolute name.
17847 ac_srcdir=$srcdir$ac_dir_suffix;
17848 ac_top_srcdir=$srcdir
17849 ac_abs_top_srcdir=$srcdir ;;
17850 *) # Relative name.
17851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17852 ac_top_srcdir=$ac_top_build_prefix$srcdir
17853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17854esac
17855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
17856
17857
9c60689e
DWT
17858 case $ac_mode in
17859 :F)
17860 #
17861 # CONFIG_FILE
17862 #
35fa52c0 17863
9c60689e
DWT
17864 case $INSTALL in
17865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17867 esac
17868_ACEOF
35fa52c0 17869
9c60689e
DWT
17870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17871# If the template does not know about datarootdir, expand it.
17872# FIXME: This hack should be removed a few years after 2.60.
17873ac_datarootdir_hack=; ac_datarootdir_seen=
17874ac_sed_dataroot='
17875/datarootdir/ {
17876 p
17877 q
17878}
17879/@datadir@/p
17880/@docdir@/p
17881/@infodir@/p
17882/@localedir@/p
17883/@mandir@/p'
17884case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17885*datarootdir*) ac_datarootdir_seen=yes;;
17886*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17888$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17889_ACEOF
17890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891 ac_datarootdir_hack='
17892 s&@datadir@&$datadir&g
17893 s&@docdir@&$docdir&g
17894 s&@infodir@&$infodir&g
17895 s&@localedir@&$localedir&g
17896 s&@mandir@&$mandir&g
17897 s&\\\${datarootdir}&$datarootdir&g' ;;
17898esac
17899_ACEOF
35fa52c0 17900
9c60689e
DWT
17901# Neutralize VPATH when `$srcdir' = `.'.
17902# Shell code in configure.ac might set extrasub.
17903# FIXME: do we really want to maintain this feature?
17904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17905ac_sed_extra="$ac_vpsub
17906$extrasub
17907_ACEOF
17908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17909:t
17910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17911s|@configure_input@|$ac_sed_conf_input|;t t
17912s&@top_builddir@&$ac_top_builddir_sub&;t t
17913s&@top_build_prefix@&$ac_top_build_prefix&;t t
17914s&@srcdir@&$ac_srcdir&;t t
17915s&@abs_srcdir@&$ac_abs_srcdir&;t t
17916s&@top_srcdir@&$ac_top_srcdir&;t t
17917s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17918s&@builddir@&$ac_builddir&;t t
17919s&@abs_builddir@&$ac_abs_builddir&;t t
17920s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17921s&@INSTALL@&$ac_INSTALL&;t t
17922$ac_datarootdir_hack
17923"
17924eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17925 || as_fn_error "could not create $ac_file" "$LINENO" 5
17926
17927test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17928 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17931which seems to be undefined. Please make sure it is defined." >&5
17932$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17933which seems to be undefined. Please make sure it is defined." >&2;}
17934
17935 rm -f "$tmp/stdin"
17936 case $ac_file in
17937 -) cat "$tmp/out" && rm -f "$tmp/out";;
17938 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17939 esac \
17940 || as_fn_error "could not create $ac_file" "$LINENO" 5
17941 ;;
35fa52c0 17942
35fa52c0 17943
9c60689e
DWT
17944 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17945$as_echo "$as_me: executing $ac_file commands" >&6;}
17946 ;;
17947 esac
35fa52c0 17948
35fa52c0 17949
9c60689e
DWT
17950 case $ac_file$ac_mode in
17951 "libtool":C)
17952
17953 # See if we are running on zsh, and set the options which allow our
17954 # commands through without removal of \ escapes.
17955 if test -n "${ZSH_VERSION+set}" ; then
17956 setopt NO_GLOB_SUBST
35fa52c0 17957 fi
35fa52c0 17958
9c60689e
DWT
17959 cfgfile="${ofile}T"
17960 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17961 $RM "$cfgfile"
35fa52c0 17962
9c60689e
DWT
17963 cat <<_LT_EOF >> "$cfgfile"
17964#! $SHELL
35fa52c0 17965
9c60689e
DWT
17966# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17967# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17969# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17970#
17971# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17972# 2006, 2007, 2008 Free Software Foundation, Inc.
17973# Written by Gordon Matzigkeit, 1996
17974#
17975# This file is part of GNU Libtool.
17976#
17977# GNU Libtool is free software; you can redistribute it and/or
17978# modify it under the terms of the GNU General Public License as
17979# published by the Free Software Foundation; either version 2 of
17980# the License, or (at your option) any later version.
17981#
17982# As a special exception to the GNU General Public License,
17983# if you distribute this file as part of a program or library that
17984# is built using GNU Libtool, you may include this file under the
17985# same distribution terms that you use for the rest of that program.
17986#
17987# GNU Libtool is distributed in the hope that it will be useful,
17988# but WITHOUT ANY WARRANTY; without even the implied warranty of
17989# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17990# GNU General Public License for more details.
17991#
17992# You should have received a copy of the GNU General Public License
17993# along with GNU Libtool; see the file COPYING. If not, a copy
17994# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17995# obtained by writing to the Free Software Foundation, Inc.,
17996# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 17997
35fa52c0 17998
9c60689e
DWT
17999# The names of the tagged configurations supported by this script.
18000available_tags="CXX "
35fa52c0 18001
9c60689e 18002# ### BEGIN LIBTOOL CONFIG
35fa52c0 18003
9c60689e
DWT
18004# Which release of libtool.m4 was used?
18005macro_version=$macro_version
18006macro_revision=$macro_revision
35fa52c0 18007
9c60689e
DWT
18008# Whether or not to build static libraries.
18009build_old_libs=$enable_static
35fa52c0 18010
549f29b5
DWT
18011# Whether or not to build shared libraries.
18012build_libtool_libs=$enable_shared
18013
9c60689e
DWT
18014# What type of objects to build.
18015pic_mode=$pic_mode
35fa52c0 18016
9c60689e
DWT
18017# Whether or not to optimize for fast installation.
18018fast_install=$enable_fast_install
35fa52c0 18019
9c60689e
DWT
18020# The host system.
18021host_alias=$host_alias
18022host=$host
18023host_os=$host_os
35fa52c0 18024
9c60689e
DWT
18025# The build system.
18026build_alias=$build_alias
18027build=$build
18028build_os=$build_os
18029
18030# A sed program that does not truncate output.
18031SED=$lt_SED
18032
18033# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18034Xsed="\$SED -e 1s/^X//"
18035
18036# A grep program that handles long lines.
18037GREP=$lt_GREP
18038
18039# An ERE matcher.
18040EGREP=$lt_EGREP
18041
18042# A literal string matcher.
18043FGREP=$lt_FGREP
18044
18045# A BSD- or MS-compatible name lister.
18046NM=$lt_NM
18047
18048# Whether we need soft or hard links.
18049LN_S=$lt_LN_S
18050
18051# What is the maximum length of a command?
18052max_cmd_len=$max_cmd_len
18053
18054# Object file suffix (normally "o").
18055objext=$ac_objext
18056
18057# Executable file suffix (normally "").
18058exeext=$exeext
18059
18060# whether the shell understands "unset".
18061lt_unset=$lt_unset
18062
18063# turn spaces into newlines.
18064SP2NL=$lt_lt_SP2NL
18065
18066# turn newlines into spaces.
18067NL2SP=$lt_lt_NL2SP
18068
18069# How to create reloadable object files.
18070reload_flag=$lt_reload_flag
18071reload_cmds=$lt_reload_cmds
18072
18073# An object symbol dumper.
18074OBJDUMP=$lt_OBJDUMP
18075
18076# Method to check whether dependent libraries are shared objects.
18077deplibs_check_method=$lt_deplibs_check_method
18078
18079# Command to use when deplibs_check_method == "file_magic".
18080file_magic_cmd=$lt_file_magic_cmd
18081
18082# The archiver.
18083AR=$lt_AR
18084AR_FLAGS=$lt_AR_FLAGS
18085
18086# A symbol stripping program.
18087STRIP=$lt_STRIP
18088
18089# Commands used to install an old-style archive.
18090RANLIB=$lt_RANLIB
18091old_postinstall_cmds=$lt_old_postinstall_cmds
18092old_postuninstall_cmds=$lt_old_postuninstall_cmds
18093
18094# A C compiler.
18095LTCC=$lt_CC
18096
18097# LTCC compiler flags.
18098LTCFLAGS=$lt_CFLAGS
18099
18100# Take the output of nm and produce a listing of raw symbols and C names.
18101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18102
18103# Transform the output of nm in a proper C declaration.
18104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18105
18106# Transform the output of nm in a C name address pair.
18107global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18108
18109# Transform the output of nm in a C name address pair when lib prefix is needed.
18110global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18111
18112# The name of the directory that contains temporary libtool files.
18113objdir=$objdir
18114
18115# Shell to use when invoking shell scripts.
18116SHELL=$lt_SHELL
18117
18118# An echo program that does not interpret backslashes.
18119ECHO=$lt_ECHO
18120
18121# Used to examine libraries when file_magic_cmd begins with "file".
18122MAGIC_CMD=$MAGIC_CMD
18123
18124# Must we lock files when doing compilation?
18125need_locks=$lt_need_locks
18126
18127# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18128DSYMUTIL=$lt_DSYMUTIL
18129
18130# Tool to change global to local symbols on Mac OS X.
18131NMEDIT=$lt_NMEDIT
18132
18133# Tool to manipulate fat objects and archives on Mac OS X.
18134LIPO=$lt_LIPO
18135
18136# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18137OTOOL=$lt_OTOOL
18138
18139# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18140OTOOL64=$lt_OTOOL64
18141
18142# Old archive suffix (normally "a").
18143libext=$libext
18144
18145# Shared library suffix (normally ".so").
18146shrext_cmds=$lt_shrext_cmds
35fa52c0 18147
9c60689e
DWT
18148# The commands to extract the exported symbol list from a shared archive.
18149extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 18150
9c60689e
DWT
18151# Variables whose values should be saved in libtool wrapper scripts and
18152# restored at link time.
18153variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 18154
9c60689e
DWT
18155# Do we need the "lib" prefix for modules?
18156need_lib_prefix=$need_lib_prefix
35fa52c0 18157
9c60689e
DWT
18158# Do we need a version for libraries?
18159need_version=$need_version
35fa52c0 18160
9c60689e
DWT
18161# Library versioning type.
18162version_type=$version_type
35fa52c0 18163
9c60689e
DWT
18164# Shared library runtime path variable.
18165runpath_var=$runpath_var
35fa52c0 18166
9c60689e
DWT
18167# Shared library path variable.
18168shlibpath_var=$shlibpath_var
35fa52c0 18169
9c60689e
DWT
18170# Is shlibpath searched before the hard-coded library search path?
18171shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 18172
9c60689e
DWT
18173# Format of library name prefix.
18174libname_spec=$lt_libname_spec
35fa52c0 18175
9c60689e
DWT
18176# List of archive names. First name is the real one, the rest are links.
18177# The last name is the one that the linker finds with -lNAME
18178library_names_spec=$lt_library_names_spec
dbadc56a 18179
9c60689e
DWT
18180# The coded name of the library, if different from the real name.
18181soname_spec=$lt_soname_spec
dbadc56a 18182
9c60689e
DWT
18183# Command to use after installation of a shared archive.
18184postinstall_cmds=$lt_postinstall_cmds
35fa52c0 18185
9c60689e
DWT
18186# Command to use after uninstallation of a shared archive.
18187postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 18188
9c60689e
DWT
18189# Commands used to finish a libtool library installation in a directory.
18190finish_cmds=$lt_finish_cmds
35fa52c0 18191
9c60689e
DWT
18192# As "finish_cmds", except a single script fragment to be evaled but
18193# not shown.
18194finish_eval=$lt_finish_eval
35fa52c0 18195
9c60689e
DWT
18196# Whether we should hardcode library paths into libraries.
18197hardcode_into_libs=$hardcode_into_libs
dbadc56a 18198
9c60689e
DWT
18199# Compile-time system search path for libraries.
18200sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 18201
9c60689e
DWT
18202# Run-time system search path for libraries.
18203sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 18204
9c60689e
DWT
18205# Whether dlopen is supported.
18206dlopen_support=$enable_dlopen
dbadc56a 18207
9c60689e
DWT
18208# Whether dlopen of programs is supported.
18209dlopen_self=$enable_dlopen_self
35fa52c0 18210
9c60689e
DWT
18211# Whether dlopen of statically linked programs is supported.
18212dlopen_self_static=$enable_dlopen_self_static
35fa52c0 18213
9c60689e
DWT
18214# Commands to strip libraries.
18215old_striplib=$lt_old_striplib
18216striplib=$lt_striplib
35fa52c0 18217
35fa52c0 18218
9c60689e
DWT
18219# The linker used to build libraries.
18220LD=$lt_LD
dbadc56a 18221
9c60689e
DWT
18222# Commands used to build an old-style archive.
18223old_archive_cmds=$lt_old_archive_cmds
dbadc56a 18224
9c60689e
DWT
18225# A language specific compiler.
18226CC=$lt_compiler
35fa52c0 18227
9c60689e
DWT
18228# Is the compiler the GNU compiler?
18229with_gcc=$GCC
dbadc56a 18230
9c60689e
DWT
18231# Compiler flag to turn off builtin functions.
18232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 18233
9c60689e
DWT
18234# How to pass a linker flag through the compiler.
18235wl=$lt_lt_prog_compiler_wl
35fa52c0 18236
9c60689e
DWT
18237# Additional compiler flags for building library objects.
18238pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 18239
9c60689e
DWT
18240# Compiler flag to prevent dynamic linking.
18241link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 18242
9c60689e
DWT
18243# Does compiler simultaneously support -c and -o options?
18244compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 18245
9c60689e
DWT
18246# Whether or not to add -lc for building shared libraries.
18247build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 18248
9c60689e
DWT
18249# Whether or not to disallow shared libs when runtime libs are static.
18250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 18251
9c60689e
DWT
18252# Compiler flag to allow reflexive dlopens.
18253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 18254
9c60689e
DWT
18255# Compiler flag to generate shared objects directly from archives.
18256whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 18257
9c60689e
DWT
18258# Whether the compiler copes with passing no objects directly.
18259compiler_needs_object=$lt_compiler_needs_object
dbadc56a 18260
9c60689e
DWT
18261# Create an old-style archive from a shared archive.
18262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 18263
9c60689e
DWT
18264# Create a temporary old-style archive to link instead of a shared archive.
18265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 18266
9c60689e
DWT
18267# Commands used to build a shared archive.
18268archive_cmds=$lt_archive_cmds
18269archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 18270
9c60689e
DWT
18271# Commands used to build a loadable module if different from building
18272# a shared archive.
18273module_cmds=$lt_module_cmds
18274module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 18275
9c60689e
DWT
18276# Whether we are building with GNU ld or not.
18277with_gnu_ld=$lt_with_gnu_ld
6b66678a 18278
9c60689e
DWT
18279# Flag that allows shared libraries with undefined symbols to be built.
18280allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 18281
9c60689e
DWT
18282# Flag that enforces no undefined symbols.
18283no_undefined_flag=$lt_no_undefined_flag
6b66678a 18284
9c60689e
DWT
18285# Flag to hardcode \$libdir into a binary during linking.
18286# This must work even if \$libdir does not exist
18287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 18288
9c60689e
DWT
18289# If ld is used when linking, flag to hardcode \$libdir into a binary
18290# during linking. This must work even if \$libdir does not exist.
18291hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
6b66678a 18292
9c60689e
DWT
18293# Whether we need a single "-rpath" flag with a separated argument.
18294hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 18295
9c60689e
DWT
18296# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18297# DIR into the resulting binary.
18298hardcode_direct=$hardcode_direct
6b66678a 18299
9c60689e
DWT
18300# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18301# DIR into the resulting binary and the resulting library dependency is
18302# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18303# library is relocated.
18304hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 18305
9c60689e
DWT
18306# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18307# into the resulting binary.
18308hardcode_minus_L=$hardcode_minus_L
6b66678a 18309
9c60689e
DWT
18310# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18311# into the resulting binary.
18312hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 18313
9c60689e
DWT
18314# Set to "yes" if building a shared library automatically hardcodes DIR
18315# into the library and all subsequent libraries and executables linked
18316# against it.
18317hardcode_automatic=$hardcode_automatic
6b66678a 18318
9c60689e
DWT
18319# Set to yes if linker adds runtime paths of dependent libraries
18320# to runtime path list.
18321inherit_rpath=$inherit_rpath
6b66678a 18322
9c60689e
DWT
18323# Whether libtool must link a program against all its dependency libraries.
18324link_all_deplibs=$link_all_deplibs
18325
18326# Fix the shell variable \$srcfile for the compiler.
18327fix_srcfile_path=$lt_fix_srcfile_path
18328
18329# Set to "yes" if exported symbols are required.
18330always_export_symbols=$always_export_symbols
6b66678a 18331
9c60689e
DWT
18332# The commands to list exported symbols.
18333export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 18334
9c60689e
DWT
18335# Symbols that should not be listed in the preloaded symbols.
18336exclude_expsyms=$lt_exclude_expsyms
6b66678a 18337
9c60689e
DWT
18338# Symbols that must always be exported.
18339include_expsyms=$lt_include_expsyms
6b66678a 18340
9c60689e
DWT
18341# Commands necessary for linking programs (against libraries) with templates.
18342prelink_cmds=$lt_prelink_cmds
6b66678a 18343
9c60689e
DWT
18344# Specify filename containing input files.
18345file_list_spec=$lt_file_list_spec
6b66678a 18346
9c60689e
DWT
18347# How to hardcode a shared library path into an executable.
18348hardcode_action=$hardcode_action
18349
18350# The directories searched by this compiler when creating a shared library.
18351compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18352
18353# Dependencies to place before and after the objects being linked to
18354# create a shared library.
18355predep_objects=$lt_predep_objects
18356postdep_objects=$lt_postdep_objects
18357predeps=$lt_predeps
18358postdeps=$lt_postdeps
18359
18360# The library search path used internally by the compiler when linking
18361# a shared library.
18362compiler_lib_search_path=$lt_compiler_lib_search_path
18363
18364# ### END LIBTOOL CONFIG
18365
18366_LT_EOF
18367
18368 case $host_os in
18369 aix3*)
18370 cat <<\_LT_EOF >> "$cfgfile"
18371# AIX sometimes has problems with the GCC collect2 program. For some
18372# reason, if we set the COLLECT_NAMES environment variable, the problems
18373# vanish in a puff of smoke.
18374if test "X${COLLECT_NAMES+set}" != Xset; then
18375 COLLECT_NAMES=
18376 export COLLECT_NAMES
6b66678a 18377fi
9c60689e
DWT
18378_LT_EOF
18379 ;;
18380 esac
6b66678a
DWT
18381
18382
9c60689e 18383ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 18384
9c60689e
DWT
18385
18386 # We use sed instead of cat because bash on DJGPP gets confused if
18387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18388 # text mode, it properly converts lines to CR/LF. This bash problem
18389 # is reportedly fixed, but why not run on old versions too?
18390 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18391 || (rm -f "$cfgfile"; exit 1)
18392
18393 case $xsi_shell in
18394 yes)
18395 cat << \_LT_EOF >> "$cfgfile"
18396
18397# func_dirname file append nondir_replacement
18398# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18399# otherwise set result to NONDIR_REPLACEMENT.
18400func_dirname ()
6b66678a 18401{
9c60689e
DWT
18402 case ${1} in
18403 */*) func_dirname_result="${1%/*}${2}" ;;
18404 * ) func_dirname_result="${3}" ;;
18405 esac
18406}
6b66678a 18407
9c60689e
DWT
18408# func_basename file
18409func_basename ()
18410{
18411 func_basename_result="${1##*/}"
6b66678a 18412}
6b66678a 18413
9c60689e
DWT
18414# func_dirname_and_basename file append nondir_replacement
18415# perform func_basename and func_dirname in a single function
18416# call:
18417# dirname: Compute the dirname of FILE. If nonempty,
18418# add APPEND to the result, otherwise set result
18419# to NONDIR_REPLACEMENT.
18420# value returned in "$func_dirname_result"
18421# basename: Compute filename of FILE.
18422# value retuned in "$func_basename_result"
18423# Implementation must be kept synchronized with func_dirname
18424# and func_basename. For efficiency, we do not delegate to
18425# those functions but instead duplicate the functionality here.
18426func_dirname_and_basename ()
18427{
18428 case ${1} in
18429 */*) func_dirname_result="${1%/*}${2}" ;;
18430 * ) func_dirname_result="${3}" ;;
18431 esac
18432 func_basename_result="${1##*/}"
18433}
6b66678a 18434
9c60689e
DWT
18435# func_stripname prefix suffix name
18436# strip PREFIX and SUFFIX off of NAME.
18437# PREFIX and SUFFIX must not contain globbing or regex special
18438# characters, hashes, percent signs, but SUFFIX may contain a leading
18439# dot (in which case that matches only a dot).
18440func_stripname ()
18441{
18442 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18443 # positional parameters, so assign one to ordinary parameter first.
18444 func_stripname_result=${3}
18445 func_stripname_result=${func_stripname_result#"${1}"}
18446 func_stripname_result=${func_stripname_result%"${2}"}
18447}
6b66678a 18448
9c60689e
DWT
18449# func_opt_split
18450func_opt_split ()
18451{
18452 func_opt_split_opt=${1%%=*}
18453 func_opt_split_arg=${1#*=}
18454}
6b66678a 18455
9c60689e
DWT
18456# func_lo2o object
18457func_lo2o ()
18458{
18459 case ${1} in
18460 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18461 *) func_lo2o_result=${1} ;;
18462 esac
18463}
6b66678a 18464
9c60689e
DWT
18465# func_xform libobj-or-source
18466func_xform ()
18467{
18468 func_xform_result=${1%.*}.lo
18469}
6b66678a 18470
9c60689e
DWT
18471# func_arith arithmetic-term...
18472func_arith ()
18473{
18474 func_arith_result=$(( $* ))
18475}
6b66678a 18476
9c60689e
DWT
18477# func_len string
18478# STRING may not start with a hyphen.
18479func_len ()
18480{
18481 func_len_result=${#1}
18482}
6b66678a 18483
9c60689e
DWT
18484_LT_EOF
18485 ;;
18486 *) # Bourne compatible functions.
18487 cat << \_LT_EOF >> "$cfgfile"
6b66678a 18488
9c60689e
DWT
18489# func_dirname file append nondir_replacement
18490# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18491# otherwise set result to NONDIR_REPLACEMENT.
18492func_dirname ()
18493{
18494 # Extract subdirectory from the argument.
18495 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18496 if test "X$func_dirname_result" = "X${1}"; then
18497 func_dirname_result="${3}"
18498 else
18499 func_dirname_result="$func_dirname_result${2}"
18500 fi
18501}
6b66678a 18502
9c60689e
DWT
18503# func_basename file
18504func_basename ()
6b66678a 18505{
9c60689e 18506 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
6b66678a 18507}
6b66678a 18508
6b66678a 18509
9c60689e
DWT
18510# func_stripname prefix suffix name
18511# strip PREFIX and SUFFIX off of NAME.
18512# PREFIX and SUFFIX must not contain globbing or regex special
18513# characters, hashes, percent signs, but SUFFIX may contain a leading
18514# dot (in which case that matches only a dot).
18515# func_strip_suffix prefix name
18516func_stripname ()
18517{
18518 case ${2} in
18519 .*) func_stripname_result=`$ECHO "X${3}" \
18520 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18521 *) func_stripname_result=`$ECHO "X${3}" \
18522 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18523 esac
18524}
6b66678a 18525
9c60689e
DWT
18526# sed scripts:
18527my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18528my_sed_long_arg='1s/^-[^=]*=//'
6b66678a 18529
9c60689e
DWT
18530# func_opt_split
18531func_opt_split ()
18532{
18533 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18534 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18535}
6b66678a 18536
9c60689e
DWT
18537# func_lo2o object
18538func_lo2o ()
18539{
18540 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18541}
18542
18543# func_xform libobj-or-source
18544func_xform ()
18545{
18546 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18547}
18548
18549# func_arith arithmetic-term...
18550func_arith ()
18551{
18552 func_arith_result=`expr "$@"`
18553}
18554
18555# func_len string
18556# STRING may not start with a hyphen.
18557func_len ()
18558{
18559 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18560}
18561
18562_LT_EOF
18563esac
18564
18565case $lt_shell_append in
18566 yes)
18567 cat << \_LT_EOF >> "$cfgfile"
18568
18569# func_append var value
18570# Append VALUE to the end of shell variable VAR.
18571func_append ()
18572{
18573 eval "$1+=\$2"
18574}
18575_LT_EOF
18576 ;;
18577 *)
18578 cat << \_LT_EOF >> "$cfgfile"
18579
18580# func_append var value
18581# Append VALUE to the end of shell variable VAR.
18582func_append ()
18583{
18584 eval "$1=\$$1\$2"
18585}
18586
18587_LT_EOF
18588 ;;
18589 esac
18590
18591
18592 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18593 || (rm -f "$cfgfile"; exit 1)
18594
18595 mv -f "$cfgfile" "$ofile" ||
18596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18597 chmod +x "$ofile"
18598
18599
18600 cat <<_LT_EOF >> "$ofile"
18601
18602# ### BEGIN LIBTOOL TAG CONFIG: CXX
18603
18604# The linker used to build libraries.
18605LD=$lt_LD_CXX
18606
18607# Commands used to build an old-style archive.
18608old_archive_cmds=$lt_old_archive_cmds_CXX
18609
18610# A language specific compiler.
18611CC=$lt_compiler_CXX
18612
18613# Is the compiler the GNU compiler?
18614with_gcc=$GCC_CXX
18615
18616# Compiler flag to turn off builtin functions.
18617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 18618
9c60689e
DWT
18619# How to pass a linker flag through the compiler.
18620wl=$lt_lt_prog_compiler_wl_CXX
6b66678a 18621
9c60689e
DWT
18622# Additional compiler flags for building library objects.
18623pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 18624
9c60689e
DWT
18625# Compiler flag to prevent dynamic linking.
18626link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 18627
9c60689e
DWT
18628# Does compiler simultaneously support -c and -o options?
18629compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 18630
9c60689e
DWT
18631# Whether or not to add -lc for building shared libraries.
18632build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 18633
9c60689e
DWT
18634# Whether or not to disallow shared libs when runtime libs are static.
18635allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 18636
9c60689e
DWT
18637# Compiler flag to allow reflexive dlopens.
18638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 18639
9c60689e
DWT
18640# Compiler flag to generate shared objects directly from archives.
18641whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 18642
9c60689e
DWT
18643# Whether the compiler copes with passing no objects directly.
18644compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 18645
9c60689e
DWT
18646# Create an old-style archive from a shared archive.
18647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 18648
9c60689e
DWT
18649# Create a temporary old-style archive to link instead of a shared archive.
18650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 18651
9c60689e
DWT
18652# Commands used to build a shared archive.
18653archive_cmds=$lt_archive_cmds_CXX
18654archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 18655
9c60689e
DWT
18656# Commands used to build a loadable module if different from building
18657# a shared archive.
18658module_cmds=$lt_module_cmds_CXX
18659module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 18660
9c60689e
DWT
18661# Whether we are building with GNU ld or not.
18662with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 18663
9c60689e
DWT
18664# Flag that allows shared libraries with undefined symbols to be built.
18665allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 18666
9c60689e
DWT
18667# Flag that enforces no undefined symbols.
18668no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 18669
9c60689e
DWT
18670# Flag to hardcode \$libdir into a binary during linking.
18671# This must work even if \$libdir does not exist
18672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 18673
9c60689e
DWT
18674# If ld is used when linking, flag to hardcode \$libdir into a binary
18675# during linking. This must work even if \$libdir does not exist.
18676hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
6b66678a 18677
9c60689e
DWT
18678# Whether we need a single "-rpath" flag with a separated argument.
18679hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 18680
9c60689e
DWT
18681# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18682# DIR into the resulting binary.
18683hardcode_direct=$hardcode_direct_CXX
6b66678a 18684
9c60689e
DWT
18685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18686# DIR into the resulting binary and the resulting library dependency is
18687# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18688# library is relocated.
18689hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 18690
9c60689e
DWT
18691# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18692# into the resulting binary.
18693hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 18694
9c60689e
DWT
18695# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18696# into the resulting binary.
18697hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 18698
9c60689e
DWT
18699# Set to "yes" if building a shared library automatically hardcodes DIR
18700# into the library and all subsequent libraries and executables linked
18701# against it.
18702hardcode_automatic=$hardcode_automatic_CXX
6b66678a 18703
9c60689e
DWT
18704# Set to yes if linker adds runtime paths of dependent libraries
18705# to runtime path list.
18706inherit_rpath=$inherit_rpath_CXX
6b66678a 18707
9c60689e
DWT
18708# Whether libtool must link a program against all its dependency libraries.
18709link_all_deplibs=$link_all_deplibs_CXX
6b66678a 18710
9c60689e
DWT
18711# Fix the shell variable \$srcfile for the compiler.
18712fix_srcfile_path=$lt_fix_srcfile_path_CXX
6b66678a 18713
9c60689e
DWT
18714# Set to "yes" if exported symbols are required.
18715always_export_symbols=$always_export_symbols_CXX
6b66678a 18716
9c60689e
DWT
18717# The commands to list exported symbols.
18718export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 18719
9c60689e
DWT
18720# Symbols that should not be listed in the preloaded symbols.
18721exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 18722
9c60689e
DWT
18723# Symbols that must always be exported.
18724include_expsyms=$lt_include_expsyms_CXX
6b66678a 18725
9c60689e
DWT
18726# Commands necessary for linking programs (against libraries) with templates.
18727prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 18728
9c60689e
DWT
18729# Specify filename containing input files.
18730file_list_spec=$lt_file_list_spec_CXX
dbadc56a 18731
9c60689e
DWT
18732# How to hardcode a shared library path into an executable.
18733hardcode_action=$hardcode_action_CXX
309b0535 18734
9c60689e
DWT
18735# The directories searched by this compiler when creating a shared library.
18736compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 18737
9c60689e
DWT
18738# Dependencies to place before and after the objects being linked to
18739# create a shared library.
18740predep_objects=$lt_predep_objects_CXX
18741postdep_objects=$lt_postdep_objects_CXX
18742predeps=$lt_predeps_CXX
18743postdeps=$lt_postdeps_CXX
309b0535 18744
9c60689e
DWT
18745# The library search path used internally by the compiler when linking
18746# a shared library.
18747compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18748
18749# ### END LIBTOOL TAG CONFIG: CXX
18750_LT_EOF
18751
18752 ;;
18753
18754 esac
18755done # for ac_tag
18756
18757
18758as_fn_exit 0
18759_ACEOF
18760ac_clean_files=$ac_clean_files_save
18761
18762test $ac_write_fail = 0 ||
18763 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18764
18765
18766# configure is writing to config.log, and then calls config.status.
18767# config.status does its own redirection, appending to config.log.
18768# Unfortunately, on DOS this fails, as config.log is still kept open
18769# by configure, so config.status won't be able to write to it; its
18770# output is simply discarded. So we exec the FD to /dev/null,
18771# effectively closing config.log, so it can be properly (re)opened and
18772# appended to by config.status. When coming back to configure, we
18773# need to make the FD available again.
18774if test "$no_create" != yes; then
18775 ac_cs_success=:
18776 ac_config_status_args=
18777 test "$silent" = yes &&
18778 ac_config_status_args="$ac_config_status_args --quiet"
18779 exec 5>/dev/null
18780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18781 exec 5>>config.log
18782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18783 # would make configure fail if this is the last instruction.
18784 $ac_cs_success || as_fn_exit $?
309b0535 18785fi
9c60689e
DWT
18786if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18788$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18789fi
18790