]> git.saurik.com Git - cycript.git/blob - configure
Universal binary!
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if 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
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_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.
47 if 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 --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if 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 }
83 fi
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.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
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
103 IFS=$as_save_IFS
104
105 ;;
106 esac
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.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
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.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if 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
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
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
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
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
211 fi; }
212 IFS=$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+"$@"}
224 fi
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
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_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.
272 as_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.
282 as_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.
332 if (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 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # 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.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # 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.
367 as_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
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_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.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_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
455 ECHO_C= ECHO_N= ECHO_T=
456 case `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';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (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
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
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 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_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.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if 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
565 fi
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
571 if 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
669 fi
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.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='Cycript'
703 PACKAGE_TARNAME='cycript'
704 PACKAGE_VERSION='0.9'
705 PACKAGE_STRING='Cycript 0.9'
706 PACKAGE_BUGREPORT='saurik@saurik.com'
707 PACKAGE_URL='http://www.cycript.org/'
708
709 ac_unique_file="Console.cpp"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 # include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 # include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='LTLIBOBJS
747 LIBOBJS
748 CY_OBJECTIVEC_MACH
749 LTLIBICONV
750 LIBICONV
751 GNUSTEP_CONFIG
752 CY_OBJECTIVEC
753 LIBFFI_LIBS
754 LIBFFI_CFLAGS
755 CY_EXECUTE
756 WEBKIT_LIBS
757 WEBKIT_CFLAGS
758 LTLIBAPR
759 ac_ct_OBJCXX
760 OBJCXXFLAGS
761 OBJCXX
762 CXXCPP
763 ac_ct_CXX
764 CXXFLAGS
765 CXX
766 SVNVERSION
767 SVN
768 GNUTAR
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 GPERF
773 FLEX
774 BISON
775 TIME
776 _BASH
777 GMAKE
778 ifGNUmake
779 PKG_CONFIG
780 CPP
781 OTOOL64
782 OTOOL
783 LIPO
784 NMEDIT
785 DSYMUTIL
786 lt_ECHO
787 RANLIB
788 STRIP
789 AR
790 OBJDUMP
791 LN_S
792 NM
793 ac_ct_DUMPBIN
794 DUMPBIN
795 LD
796 FGREP
797 EGREP
798 GREP
799 SED
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
806 CC
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 LIBTOOL
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_static
858 enable_shared
859 with_pic
860 enable_fast_install
861 with_gnu_ld
862 enable_libtool_lock
863 enable_universal_binary
864 with_frameworks
865 with_apr
866 enable_javascript
867 enable_rpath
868 with_libiconv_prefix
869 '
870 ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 CPP
879 PKG_CONFIG
880 BISON
881 FLEX
882 GPERF
883 CXX
884 CXXFLAGS
885 CCC
886 CXXCPP
887 OBJCXX
888 OBJCXXFLAGS
889 WEBKIT_CFLAGS
890 WEBKIT_LIBS
891 LIBFFI_CFLAGS
892 LIBFFI_LIBS
893 GNUSTEP_CONFIG'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 ac_unrecognized_opts=
900 ac_unrecognized_sep=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
970
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
985
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
990
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=no ;;
1013
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1018
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1023
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1048
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1052
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1059
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1064
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1070
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1077
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1082
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1087
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1094
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1099
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1106
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1111
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1115
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1118 no_create=yes ;;
1119
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1123
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1132
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1137
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1144
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1151
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1168
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1173
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1178
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1227
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1243
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1259
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1270
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1277
1278 -*) as_fn_error "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information."
1280 ;;
1281
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1291
1292 *)
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 ;;
1299
1300 esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1321 do
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1496 fi
1497
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of Cycript 0.9:";;
1501 esac
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-static[=PKGS] build static libraries [default=no]
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-fast-install[=PKGS]
1511 optimize for fast installation [default=yes]
1512 --disable-libtool-lock avoid locking (might break parallel builds)
1513 --disable-universal-binary
1514 do not build with universal binary support on Darwin
1515 --enable-javascript[=ENGINE]
1516 use a JavaScript runtime (currently the only
1517 available option for ENGINE is JavaScriptCore)
1518 [default=yes]
1519 --disable-rpath do not hardcode runtime library paths
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pic try to use only PIC/non-PIC objects [default=use
1525 both]
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1528 path for frameworks with -F
1529 --with-apr=PATH prefix for installed APR or the full path to
1530 apr-config
1531 --with-gnu-ld assume the C compiler uses GNU ld default=no
1532 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1533 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1534
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 PKG_CONFIG path to pkg-config utility
1545 BISON GNU Project parser generator (yacc replacement)
1546 FLEX the fast lexical analyser generator
1547 GPERF perfect hash function generator
1548 CXX C++ compiler command
1549 CXXFLAGS C++ compiler flags
1550 CXXCPP C++ preprocessor
1551 OBJCXX Objective C++ compiler command
1552 OBJCXXFLAGS Objective C++ compiler flags
1553 WEBKIT_CFLAGS
1554 C compiler flags for WEBKIT, overriding pkg-config
1555 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1556 LIBFFI_CFLAGS
1557 C compiler flags for LIBFFI, overriding pkg-config
1558 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1559 GNUSTEP_CONFIG
1560 prints information about the current gnustep installation
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to <saurik@saurik.com>.
1566 Cycript home page: <http://www.cycript.org/>.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 Cycript configure 0.9
1630 generated by GNU Autoconf 2.65
1631
1632 Copyright (C) 2009 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_link
1726
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 $4
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745 eval "$3=yes"
1746 else
1747 eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } >/dev/null && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789 fi
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_try_run LINENO
1796 # ----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798 # that executables *can* be run.
1799 ac_fn_c_try_run ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { { ac_try="$ac_link"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>&5
1810 ac_status=$?
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813 { { case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_try") 2>&5
1820 ac_status=$?
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; }; }; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: program exited with status $ac_status" >&5
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=$ac_status
1830 fi
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_run
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890 eval "$3=yes"
1891 else
1892 eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_cxx_try_compile LINENO
1905 # ----------------------------
1906 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_cxx_try_compile ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 rm -f conftest.$ac_objext
1911 if { { ac_try="$ac_compile"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_compile") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1924 fi
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && {
1927 test -z "$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 } && test -s conftest.$ac_objext; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=1
1936 fi
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 as_fn_set_status $ac_retval
1939
1940 } # ac_fn_cxx_try_compile
1941
1942 # ac_fn_cxx_try_cpp LINENO
1943 # ------------------------
1944 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_cpp ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1961 fi
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } >/dev/null && {
1964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1965 test ! -s conftest.err
1966 }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972 ac_retval=1
1973 fi
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 as_fn_set_status $ac_retval
1976
1977 } # ac_fn_cxx_try_cpp
1978
1979 # ac_fn_cxx_try_link LINENO
1980 # -------------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_link ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext conftest$ac_exeext
1986 if { { ac_try="$ac_link"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
1999 fi
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest$ac_exeext && {
2005 test "$cross_compiling" = yes ||
2006 $as_test_x conftest$ac_exeext
2007 }; then :
2008 ac_retval=0
2009 else
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1
2014 fi
2015 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017 # interfere with the next link command; also delete a directory that is
2018 # left behind by Apple's compiler. We do this before executing the actions.
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_cxx_try_link
2024
2025 # ac_fn_objcxx_try_compile LINENO
2026 # -------------------------------
2027 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_objcxx_try_compile ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext
2032 if { { ac_try="$ac_compile"
2033 case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_compile") 2>conftest.err
2040 ac_status=$?
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2045 fi
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_objcxx_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest.$ac_objext; then :
2051 ac_retval=0
2052 else
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 ac_retval=1
2057 fi
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 as_fn_set_status $ac_retval
2060
2061 } # ac_fn_objcxx_try_compile
2062
2063 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # ---------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2067 # accordingly.
2068 ac_fn_cxx_check_header_mongrel ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075 $as_echo_n "(cached) " >&6
2076 fi
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 else
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_cxx_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2091 else
2092 ac_header_compiler=no
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2097
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_cxx_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2107 else
2108 ac_header_preproc=no
2109 fi
2110 rm -f conftest.err conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2113
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2116 yes:no: )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121 ;;
2122 no:yes:* )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ( cat <<\_ASBOX
2134 ## -------------------------------- ##
2135 ## Report this to saurik@saurik.com ##
2136 ## -------------------------------- ##
2137 _ASBOX
2138 ) | sed "s/^/$as_me: WARNING: /" >&2
2139 ;;
2140 esac
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 eval "$3=\$ac_header_compiler"
2147 fi
2148 eval ac_res=\$$3
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 fi
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153
2154 } # ac_fn_cxx_check_header_mongrel
2155
2156 # ac_fn_objcxx_try_link LINENO
2157 # ----------------------------
2158 # Try to link conftest.$ac_ext, and return whether this succeeded.
2159 ac_fn_objcxx_try_link ()
2160 {
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 rm -f conftest.$ac_objext conftest$ac_exeext
2163 if { { ac_try="$ac_link"
2164 case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167 esac
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 $as_echo "$ac_try_echo"; } >&5
2170 (eval "$ac_link") 2>conftest.err
2171 ac_status=$?
2172 if test -s conftest.err; then
2173 grep -v '^ *+' conftest.err >conftest.er1
2174 cat conftest.er1 >&5
2175 mv -f conftest.er1 conftest.err
2176 fi
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } && {
2179 test -z "$ac_objcxx_werror_flag" ||
2180 test ! -s conftest.err
2181 } && test -s conftest$ac_exeext && {
2182 test "$cross_compiling" = yes ||
2183 $as_test_x conftest$ac_exeext
2184 }; then :
2185 ac_retval=0
2186 else
2187 $as_echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 ac_retval=1
2191 fi
2192 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2193 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2194 # interfere with the next link command; also delete a directory that is
2195 # left behind by Apple's compiler. We do this before executing the actions.
2196 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198 as_fn_set_status $ac_retval
2199
2200 } # ac_fn_objcxx_try_link
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by Cycript $as_me 0.9, which was
2206 generated by GNU Autoconf 2.65. Invocation command line was
2207
2208 $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2226
2227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 $as_echo "PATH: $as_dir"
2243 done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269 for ac_arg
2270 do
2271 case $ac_arg in
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2275 continue ;;
2276 *\'*)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 esac
2279 case $ac_pass in
2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281 2)
2282 as_fn_append ac_configure_args1 " '$ac_arg'"
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2285 else
2286 case $ac_arg in
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293 esac
2294 ;;
2295 -* ) ac_must_keep_next=true ;;
2296 esac
2297 fi
2298 as_fn_append ac_configure_args " '$ac_arg'"
2299 ;;
2300 esac
2301 done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log. We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2313 {
2314 echo
2315
2316 cat <<\_ASBOX
2317 ## ---------------- ##
2318 ## Cache variables. ##
2319 ## ---------------- ##
2320 _ASBOX
2321 echo
2322 # The following way of writing the cache mishandles newlines in values,
2323 (
2324 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in #(
2327 *${as_nl}*)
2328 case $ac_var in #(
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 esac
2332 case $ac_var in #(
2333 _ | IFS | as_nl) ;; #(
2334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335 *) { eval $ac_var=; unset $ac_var;} ;;
2336 esac ;;
2337 esac
2338 done
2339 (set) 2>&1 |
2340 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341 *${as_nl}ac_space=\ *)
2342 sed -n \
2343 "s/'\''/'\''\\\\'\'''\''/g;
2344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 ;; #(
2346 *)
2347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348 ;;
2349 esac |
2350 sort
2351 )
2352 echo
2353
2354 cat <<\_ASBOX
2355 ## ----------------- ##
2356 ## Output variables. ##
2357 ## ----------------- ##
2358 _ASBOX
2359 echo
2360 for ac_var in $ac_subst_vars
2361 do
2362 eval ac_val=\$$ac_var
2363 case $ac_val in
2364 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 esac
2366 $as_echo "$ac_var='\''$ac_val'\''"
2367 done | sort
2368 echo
2369
2370 if test -n "$ac_subst_files"; then
2371 cat <<\_ASBOX
2372 ## ------------------- ##
2373 ## File substitutions. ##
2374 ## ------------------- ##
2375 _ASBOX
2376 echo
2377 for ac_var in $ac_subst_files
2378 do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in
2381 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 esac
2383 $as_echo "$ac_var='\''$ac_val'\''"
2384 done | sort
2385 echo
2386 fi
2387
2388 if test -s confdefs.h; then
2389 cat <<\_ASBOX
2390 ## ----------- ##
2391 ## confdefs.h. ##
2392 ## ----------- ##
2393 _ASBOX
2394 echo
2395 cat confdefs.h
2396 echo
2397 fi
2398 test "$ac_signal" != 0 &&
2399 $as_echo "$as_me: caught signal $ac_signal"
2400 $as_echo "$as_me: exit $exit_status"
2401 } >&5
2402 rm -f core *.core core.conftest.* &&
2403 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2404 exit $exit_status
2405 ' 0
2406 for ac_signal in 1 2 13 15; do
2407 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2408 done
2409 ac_signal=0
2410
2411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2412 rm -f -r conftest* confdefs.h
2413
2414 $as_echo "/* confdefs.h */" > confdefs.h
2415
2416 # Predefined preprocessor variables.
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_NAME "$PACKAGE_NAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_STRING "$PACKAGE_STRING"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_URL "$PACKAGE_URL"
2440 _ACEOF
2441
2442
2443 # Let the site file select an alternate cache file if it wants to.
2444 # Prefer an explicitly selected file to automatically selected ones.
2445 ac_site_file1=NONE
2446 ac_site_file2=NONE
2447 if test -n "$CONFIG_SITE"; then
2448 ac_site_file1=$CONFIG_SITE
2449 elif test "x$prefix" != xNONE; then
2450 ac_site_file1=$prefix/share/config.site
2451 ac_site_file2=$prefix/etc/config.site
2452 else
2453 ac_site_file1=$ac_default_prefix/share/config.site
2454 ac_site_file2=$ac_default_prefix/etc/config.site
2455 fi
2456 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457 do
2458 test "x$ac_site_file" = xNONE && continue
2459 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2461 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2462 sed 's/^/| /' "$ac_site_file" >&5
2463 . "$ac_site_file"
2464 fi
2465 done
2466
2467 if test -r "$cache_file"; then
2468 # Some versions of bash will fail to source /dev/null (special files
2469 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2470 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2472 $as_echo "$as_me: loading cache $cache_file" >&6;}
2473 case $cache_file in
2474 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2475 *) . "./$cache_file";;
2476 esac
2477 fi
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2480 $as_echo "$as_me: creating cache $cache_file" >&6;}
2481 >$cache_file
2482 fi
2483
2484 # Check that the precious variables saved in the cache have kept the same
2485 # value.
2486 ac_cache_corrupted=false
2487 for ac_var in $ac_precious_vars; do
2488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2489 eval ac_new_set=\$ac_env_${ac_var}_set
2490 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2491 eval ac_new_val=\$ac_env_${ac_var}_value
2492 case $ac_old_set,$ac_new_set in
2493 set,)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,set)
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2499 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2500 ac_cache_corrupted=: ;;
2501 ,);;
2502 *)
2503 if test "x$ac_old_val" != "x$ac_new_val"; then
2504 # differences in whitespace do not lead to failure.
2505 ac_old_val_w=`echo x $ac_old_val`
2506 ac_new_val_w=`echo x $ac_new_val`
2507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2509 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2510 ac_cache_corrupted=:
2511 else
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2513 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2514 eval $ac_var=\$ac_old_val
2515 fi
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2517 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2519 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2520 fi;;
2521 esac
2522 # Pass precious variables to config.status.
2523 if test "$ac_new_set" = set; then
2524 case $ac_new_val in
2525 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2526 *) ac_arg=$ac_var=$ac_new_val ;;
2527 esac
2528 case " $ac_configure_args " in
2529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2530 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 esac
2532 fi
2533 done
2534 if $ac_cache_corrupted; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2538 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2539 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 fi
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552
2553 ac_aux_dir=
2554 for ac_dir in . "$srcdir"/.; do
2555 for ac_t in install-sh install.sh shtool; do
2556 if test -f "$ac_dir/$ac_t"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/$ac_t -c"
2559 break 2
2560 fi
2561 done
2562 done
2563 if test -z "$ac_aux_dir"; then
2564 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2565 fi
2566
2567 # These three variables are undocumented and unsupported,
2568 # and are intended to be withdrawn in a future Autoconf release.
2569 # They can cause serious problems if a builder's source tree is in a directory
2570 # whose full name contains unusual characters.
2571 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2572 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2573 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2574
2575
2576 case `pwd` in
2577 *\ * | *\ *)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2580 esac
2581
2582
2583
2584 macro_version='2.2.6b'
2585 macro_revision='1.3017'
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599 ltmain="$ac_aux_dir/ltmain.sh"
2600
2601 # Make sure we can run config.sub.
2602 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2603 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2606 $as_echo_n "checking build system type... " >&6; }
2607 if test "${ac_cv_build+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 ac_build_alias=$build_alias
2611 test "x$ac_build_alias" = x &&
2612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2613 test "x$ac_build_alias" = x &&
2614 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2615 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2616 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2617
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2620 $as_echo "$ac_cv_build" >&6; }
2621 case $ac_cv_build in
2622 *-*-*) ;;
2623 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2624 esac
2625 build=$ac_cv_build
2626 ac_save_IFS=$IFS; IFS='-'
2627 set x $ac_cv_build
2628 shift
2629 build_cpu=$1
2630 build_vendor=$2
2631 shift; shift
2632 # Remember, the first character of IFS is used to create $*,
2633 # except with old shells:
2634 build_os=$*
2635 IFS=$ac_save_IFS
2636 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2637
2638
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2640 $as_echo_n "checking host system type... " >&6; }
2641 if test "${ac_cv_host+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test "x$host_alias" = x; then
2645 ac_cv_host=$ac_cv_build
2646 else
2647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2649 fi
2650
2651 fi
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2653 $as_echo "$ac_cv_host" >&6; }
2654 case $ac_cv_host in
2655 *-*-*) ;;
2656 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2657 esac
2658 host=$ac_cv_host
2659 ac_save_IFS=$IFS; IFS='-'
2660 set x $ac_cv_host
2661 shift
2662 host_cpu=$1
2663 host_vendor=$2
2664 shift; shift
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2667 host_os=$*
2668 IFS=$ac_save_IFS
2669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2670
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708 $as_echo "$CC" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714
2715 fi
2716 if test -z "$ac_cv_prog_CC"; then
2717 ac_ct_CC=$CC
2718 # Extract the first word of "gcc", so it can be a program name with args.
2719 set dummy gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_ac_ct_CC="gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2748 $as_echo "$ac_ct_CC" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754 if test "x$ac_ct_CC" = x; then
2755 CC=""
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758 yes:)
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2761 ac_tool_warned=yes ;;
2762 esac
2763 CC=$ac_ct_CC
2764 fi
2765 else
2766 CC="$ac_cv_prog_CC"
2767 fi
2768
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 fi
2810 if test -z "$CC"; then
2811 # Extract the first word of "cc", so it can be a program name with args.
2812 set dummy cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_CC+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 ac_prog_rejected=no
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2830 ac_prog_rejected=yes
2831 continue
2832 fi
2833 ac_cv_prog_CC="cc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 if test $ac_prog_rejected = yes; then
2842 # We found a bogon in the path, so make sure we never use it.
2843 set dummy $ac_cv_prog_CC
2844 shift
2845 if test $# != 0; then
2846 # We chose a different compiler from the bogus one.
2847 # However, it has the same basename, so the bogon will be chosen
2848 # first if we set CC to just the basename; use the full file name.
2849 shift
2850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2851 fi
2852 fi
2853 fi
2854 fi
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 $as_echo "$CC" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 if test -z "$CC"; then
2867 if test -n "$ac_tool_prefix"; then
2868 for ac_prog in cl.exe
2869 do
2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if test "${ac_cv_prog_CC+set}" = set; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 test -n "$CC" && break
2908 done
2909 fi
2910 if test -z "$CC"; then
2911 ac_ct_CC=$CC
2912 for ac_prog in cl.exe
2913 do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$ac_ct_CC"; then
2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_ac_ct_CC="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 test -n "$ac_ct_CC" && break
2952 done
2953
2954 if test "x$ac_ct_CC" = x; then
2955 CC=""
2956 else
2957 case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961 ac_tool_warned=yes ;;
2962 esac
2963 CC=$ac_ct_CC
2964 fi
2965 fi
2966
2967 fi
2968
2969
2970 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error "no acceptable C compiler found in \$PATH
2973 See \`config.log' for more details." "$LINENO" 5; }
2974
2975 # Provide some information about the compiler.
2976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2977 set X $ac_compile
2978 ac_compiler=$2
2979 for ac_option in --version -v -V -qversion; do
2980 { { ac_try="$ac_compiler $ac_option >&5"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2988 ac_status=$?
2989 if test -s conftest.err; then
2990 sed '10a\
2991 ... rest of stderr output deleted ...
2992 10q' conftest.err >conftest.er1
2993 cat conftest.er1 >&5
2994 fi
2995 rm -f conftest.er1 conftest.err
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }
2998 done
2999
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002
3003 int
3004 main ()
3005 {
3006
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 ac_clean_files_save=$ac_clean_files
3012 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3013 # Try to create an executable without -o first, disregard a.out.
3014 # It will help us diagnose broken compilers, and finding out an intuition
3015 # of exeext.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3017 $as_echo_n "checking whether the C compiler works... " >&6; }
3018 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3019
3020 # The possible output files:
3021 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3022
3023 ac_rmfiles=
3024 for ac_file in $ac_files
3025 do
3026 case $ac_file in
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3029 esac
3030 done
3031 rm -f $ac_rmfiles
3032
3033 if { { ac_try="$ac_link_default"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_link_default") 2>&5
3041 ac_status=$?
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }; then :
3044 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3045 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3046 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3047 # so that the user can short-circuit this test for compilers unknown to
3048 # Autoconf.
3049 for ac_file in $ac_files ''
3050 do
3051 test -f "$ac_file" || continue
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3054 ;;
3055 [ab].out )
3056 # We found the default executable, but exeext='' is most
3057 # certainly right.
3058 break;;
3059 *.* )
3060 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3061 then :; else
3062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063 fi
3064 # We set ac_cv_exeext here because the later test for it is not
3065 # safe: cross compilers may not add the suffix if given an `-o'
3066 # argument, so we may need to know it at that point already.
3067 # Even if this section looks crufty: it has the advantage of
3068 # actually working.
3069 break;;
3070 * )
3071 break;;
3072 esac
3073 done
3074 test "$ac_cv_exeext" = no && ac_cv_exeext=
3075
3076 else
3077 ac_file=''
3078 fi
3079 if test -z "$ac_file"; then :
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 $as_echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 { as_fn_set_status 77
3088 as_fn_error "C compiler cannot create executables
3089 See \`config.log' for more details." "$LINENO" 5; }; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092 $as_echo "yes" >&6; }
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3095 $as_echo_n "checking for C compiler default output file name... " >&6; }
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3097 $as_echo "$ac_file" >&6; }
3098 ac_exeext=$ac_cv_exeext
3099
3100 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3101 ac_clean_files=$ac_clean_files_save
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3103 $as_echo_n "checking for suffix of executables... " >&6; }
3104 if { { ac_try="$ac_link"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_link") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; then :
3115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3116 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3117 # work properly (i.e., refer to `conftest.exe'), while it won't with
3118 # `rm'.
3119 for ac_file in conftest.exe conftest conftest.*; do
3120 test -f "$ac_file" || continue
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 break;;
3125 * ) break;;
3126 esac
3127 done
3128 else
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error "cannot compute suffix of executables: cannot compile and link
3132 See \`config.log' for more details." "$LINENO" 5; }
3133 fi
3134 rm -f conftest conftest$ac_cv_exeext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3136 $as_echo "$ac_cv_exeext" >&6; }
3137
3138 rm -f conftest.$ac_ext
3139 EXEEXT=$ac_cv_exeext
3140 ac_exeext=$EXEEXT
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143 #include <stdio.h>
3144 int
3145 main ()
3146 {
3147 FILE *f = fopen ("conftest.out", "w");
3148 return ferror (f) || fclose (f) != 0;
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files="$ac_clean_files conftest.out"
3155 # Check that the compiler produces executables we can run. If not, either
3156 # the compiler is broken, or we cross compile.
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3158 $as_echo_n "checking whether we are cross compiling... " >&6; }
3159 if test "$cross_compiling" != yes; then
3160 { { ac_try="$ac_link"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_link") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }
3171 if { ac_try='./conftest$ac_cv_exeext'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." "$LINENO" 5; }
3192 fi
3193 fi
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3196 $as_echo "$cross_compiling" >&6; }
3197
3198 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3201 $as_echo_n "checking for suffix of object files... " >&6; }
3202 if test "${ac_cv_objext+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.o conftest.obj
3217 if { { ac_try="$ac_compile"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compile") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 for ac_file in conftest.o conftest.obj conftest.*; do
3229 test -f "$ac_file" || continue;
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3233 break;;
3234 esac
3235 done
3236 else
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error "cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." "$LINENO" 5; }
3244 fi
3245 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3248 $as_echo "$ac_cv_objext" >&6; }
3249 OBJEXT=$ac_cv_objext
3250 ac_objext=$OBJEXT
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3252 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3253 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262 #ifndef __GNUC__
3263 choke me
3264 #endif
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 if ac_fn_c_try_compile "$LINENO"; then :
3271 ac_compiler_gnu=yes
3272 else
3273 ac_compiler_gnu=no
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277
3278 fi
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3280 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3281 if test $ac_compiler_gnu = yes; then
3282 GCC=yes
3283 else
3284 GCC=
3285 fi
3286 ac_test_CFLAGS=${CFLAGS+set}
3287 ac_save_CFLAGS=$CFLAGS
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3289 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3290 if test "${ac_cv_prog_cc_g+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 ac_save_c_werror_flag=$ac_c_werror_flag
3294 ac_c_werror_flag=yes
3295 ac_cv_prog_cc_g=no
3296 CFLAGS="-g"
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299
3300 int
3301 main ()
3302 {
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3309 ac_cv_prog_cc_g=yes
3310 else
3311 CFLAGS=""
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314
3315 int
3316 main ()
3317 {
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324
3325 else
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3327 CFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_cv_prog_cc_g=yes
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 fi
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3358 fi
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3364 fi
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 ac_cv_prog_cc_c89=no
3372 ac_save_CC=$CC
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383 char **p;
3384 int i;
3385 {
3386 return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390 char *s;
3391 va_list v;
3392 va_start (v,p);
3393 s = g (p, va_arg (v,int));
3394 va_end (v);
3395 return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not '\xHH' hex character constants.
3400 These don't provoke an error unfortunately, instead are silently treated
3401 as 'x'. The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403 array size at least. It's necessary to write '\x00'==0 to get something
3404 that's true only with -std. */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429 CC="$ac_save_CC $ac_arg"
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_cv_prog_cc_c89=$ac_arg
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext
3434 test "x$ac_cv_prog_cc_c89" != "xno" && break
3435 done
3436 rm -f conftest.$ac_ext
3437 CC=$ac_save_CC
3438
3439 fi
3440 # AC_CACHE_VAL
3441 case "x$ac_cv_prog_cc_c89" in
3442 x)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444 $as_echo "none needed" >&6; } ;;
3445 xno)
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447 $as_echo "unsupported" >&6; } ;;
3448 *)
3449 CC="$CC $ac_cv_prog_cc_c89"
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3451 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3452 esac
3453 if test "x$ac_cv_prog_cc_c89" != xno; then :
3454
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3464 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3465 if test "${ac_cv_path_SED+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3469 for ac_i in 1 2 3 4 5 6 7; do
3470 ac_script="$ac_script$as_nl$ac_script"
3471 done
3472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3473 { ac_script=; unset ac_script;}
3474 if test -z "$SED"; then
3475 ac_path_SED_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in sed gsed; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3485 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3486 # Check for GNU ac_path_SED and select it if it is found.
3487 # Check for GNU $ac_path_SED
3488 case `"$ac_path_SED" --version 2>&1` in
3489 *GNU*)
3490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3491 *)
3492 ac_count=0
3493 $as_echo_n 0123456789 >"conftest.in"
3494 while :
3495 do
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 $as_echo '' >> "conftest.nl"
3500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 as_fn_arith $ac_count + 1 && ac_count=$as_val
3503 if test $ac_count -gt ${ac_path_SED_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_SED="$ac_path_SED"
3506 ac_path_SED_max=$ac_count
3507 fi
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3510 done
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3513
3514 $ac_path_SED_found && break 3
3515 done
3516 done
3517 done
3518 IFS=$as_save_IFS
3519 if test -z "$ac_cv_path_SED"; then
3520 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3521 fi
3522 else
3523 ac_cv_path_SED=$SED
3524 fi
3525
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3528 $as_echo "$ac_cv_path_SED" >&6; }
3529 SED="$ac_cv_path_SED"
3530 rm -f conftest.sed
3531
3532 test -z "$SED" && SED=sed
3533 Xsed="$SED -e 1s/^X//"
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3546 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3547 if test "${ac_cv_path_GREP+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -z "$GREP"; then
3551 ac_path_GREP_found=false
3552 # Loop through the user's path and test for each of PROGNAME-LIST
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_prog in grep ggrep; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3561 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3562 # Check for GNU ac_path_GREP and select it if it is found.
3563 # Check for GNU $ac_path_GREP
3564 case `"$ac_path_GREP" --version 2>&1` in
3565 *GNU*)
3566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3567 *)
3568 ac_count=0
3569 $as_echo_n 0123456789 >"conftest.in"
3570 while :
3571 do
3572 cat "conftest.in" "conftest.in" >"conftest.tmp"
3573 mv "conftest.tmp" "conftest.in"
3574 cp "conftest.in" "conftest.nl"
3575 $as_echo 'GREP' >> "conftest.nl"
3576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3578 as_fn_arith $ac_count + 1 && ac_count=$as_val
3579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3580 # Best one so far, save it but keep looking for a better one
3581 ac_cv_path_GREP="$ac_path_GREP"
3582 ac_path_GREP_max=$ac_count
3583 fi
3584 # 10*(2^10) chars as input seems more than enough
3585 test $ac_count -gt 10 && break
3586 done
3587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3588 esac
3589
3590 $ac_path_GREP_found && break 3
3591 done
3592 done
3593 done
3594 IFS=$as_save_IFS
3595 if test -z "$ac_cv_path_GREP"; then
3596 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3597 fi
3598 else
3599 ac_cv_path_GREP=$GREP
3600 fi
3601
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3604 $as_echo "$ac_cv_path_GREP" >&6; }
3605 GREP="$ac_cv_path_GREP"
3606
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3609 $as_echo_n "checking for egrep... " >&6; }
3610 if test "${ac_cv_path_EGREP+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3614 then ac_cv_path_EGREP="$GREP -E"
3615 else
3616 if test -z "$EGREP"; then
3617 ac_path_EGREP_found=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_prog in egrep; do
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3627 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3628 # Check for GNU ac_path_EGREP and select it if it is found.
3629 # Check for GNU $ac_path_EGREP
3630 case `"$ac_path_EGREP" --version 2>&1` in
3631 *GNU*)
3632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3633 *)
3634 ac_count=0
3635 $as_echo_n 0123456789 >"conftest.in"
3636 while :
3637 do
3638 cat "conftest.in" "conftest.in" >"conftest.tmp"
3639 mv "conftest.tmp" "conftest.in"
3640 cp "conftest.in" "conftest.nl"
3641 $as_echo 'EGREP' >> "conftest.nl"
3642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3644 as_fn_arith $ac_count + 1 && ac_count=$as_val
3645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3646 # Best one so far, save it but keep looking for a better one
3647 ac_cv_path_EGREP="$ac_path_EGREP"
3648 ac_path_EGREP_max=$ac_count
3649 fi
3650 # 10*(2^10) chars as input seems more than enough
3651 test $ac_count -gt 10 && break
3652 done
3653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 esac
3655
3656 $ac_path_EGREP_found && break 3
3657 done
3658 done
3659 done
3660 IFS=$as_save_IFS
3661 if test -z "$ac_cv_path_EGREP"; then
3662 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3663 fi
3664 else
3665 ac_cv_path_EGREP=$EGREP
3666 fi
3667
3668 fi
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3671 $as_echo "$ac_cv_path_EGREP" >&6; }
3672 EGREP="$ac_cv_path_EGREP"
3673
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3676 $as_echo_n "checking for fgrep... " >&6; }
3677 if test "${ac_cv_path_FGREP+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3681 then ac_cv_path_FGREP="$GREP -F"
3682 else
3683 if test -z "$FGREP"; then
3684 ac_path_FGREP_found=false
3685 # Loop through the user's path and test for each of PROGNAME-LIST
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in fgrep; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3694 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3695 # Check for GNU ac_path_FGREP and select it if it is found.
3696 # Check for GNU $ac_path_FGREP
3697 case `"$ac_path_FGREP" --version 2>&1` in
3698 *GNU*)
3699 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3700 *)
3701 ac_count=0
3702 $as_echo_n 0123456789 >"conftest.in"
3703 while :
3704 do
3705 cat "conftest.in" "conftest.in" >"conftest.tmp"
3706 mv "conftest.tmp" "conftest.in"
3707 cp "conftest.in" "conftest.nl"
3708 $as_echo 'FGREP' >> "conftest.nl"
3709 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3711 as_fn_arith $ac_count + 1 && ac_count=$as_val
3712 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3713 # Best one so far, save it but keep looking for a better one
3714 ac_cv_path_FGREP="$ac_path_FGREP"
3715 ac_path_FGREP_max=$ac_count
3716 fi
3717 # 10*(2^10) chars as input seems more than enough
3718 test $ac_count -gt 10 && break
3719 done
3720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 esac
3722
3723 $ac_path_FGREP_found && break 3
3724 done
3725 done
3726 done
3727 IFS=$as_save_IFS
3728 if test -z "$ac_cv_path_FGREP"; then
3729 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3730 fi
3731 else
3732 ac_cv_path_FGREP=$FGREP
3733 fi
3734
3735 fi
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3738 $as_echo "$ac_cv_path_FGREP" >&6; }
3739 FGREP="$ac_cv_path_FGREP"
3740
3741
3742 test -z "$GREP" && GREP=grep
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762 # Check whether --with-gnu-ld was given.
3763 if test "${with_gnu_ld+set}" = set; then :
3764 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3765 else
3766 with_gnu_ld=no
3767 fi
3768
3769 ac_prog=ld
3770 if test "$GCC" = yes; then
3771 # Check if gcc -print-prog-name=ld gives a path.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3773 $as_echo_n "checking for ld used by $CC... " >&6; }
3774 case $host in
3775 *-*-mingw*)
3776 # gcc leaves a trailing carriage return which upsets mingw
3777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3778 *)
3779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3780 esac
3781 case $ac_prog in
3782 # Accept absolute paths.
3783 [\\/]* | ?:[\\/]*)
3784 re_direlt='/[^/][^/]*/\.\./'
3785 # Canonicalize the pathname of ld
3786 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3787 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3788 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3789 done
3790 test -z "$LD" && LD="$ac_prog"
3791 ;;
3792 "")
3793 # If it fails, then pretend we aren't using GCC.
3794 ac_prog=ld
3795 ;;
3796 *)
3797 # If it is relative, then search for the first ld in PATH.
3798 with_gnu_ld=unknown
3799 ;;
3800 esac
3801 elif test "$with_gnu_ld" = yes; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3803 $as_echo_n "checking for GNU ld... " >&6; }
3804 else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3806 $as_echo_n "checking for non-GNU ld... " >&6; }
3807 fi
3808 if test "${lt_cv_path_LD+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 if test -z "$LD"; then
3812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3813 for ac_dir in $PATH; do
3814 IFS="$lt_save_ifs"
3815 test -z "$ac_dir" && ac_dir=.
3816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3817 lt_cv_path_LD="$ac_dir/$ac_prog"
3818 # Check to see if the program is GNU ld. I'd rather use --version,
3819 # but apparently some variants of GNU ld only accept -v.
3820 # Break only if it was the GNU/non-GNU ld that we prefer.
3821 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3822 *GNU* | *'with BFD'*)
3823 test "$with_gnu_ld" != no && break
3824 ;;
3825 *)
3826 test "$with_gnu_ld" != yes && break
3827 ;;
3828 esac
3829 fi
3830 done
3831 IFS="$lt_save_ifs"
3832 else
3833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3834 fi
3835 fi
3836
3837 LD="$lt_cv_path_LD"
3838 if test -n "$LD"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3840 $as_echo "$LD" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3847 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3852 case `$LD -v 2>&1 </dev/null` in
3853 *GNU* | *'with BFD'*)
3854 lt_cv_prog_gnu_ld=yes
3855 ;;
3856 *)
3857 lt_cv_prog_gnu_ld=no
3858 ;;
3859 esac
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3862 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3863 with_gnu_ld=$lt_cv_prog_gnu_ld
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3874 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3875 if test "${lt_cv_path_NM+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -n "$NM"; then
3879 # Let the user override the test.
3880 lt_cv_path_NM="$NM"
3881 else
3882 lt_nm_to_check="${ac_tool_prefix}nm"
3883 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3884 lt_nm_to_check="$lt_nm_to_check nm"
3885 fi
3886 for lt_tmp_nm in $lt_nm_to_check; do
3887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3888 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3889 IFS="$lt_save_ifs"
3890 test -z "$ac_dir" && ac_dir=.
3891 tmp_nm="$ac_dir/$lt_tmp_nm"
3892 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3893 # Check to see if the nm accepts a BSD-compat flag.
3894 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3895 # nm: unknown option "B" ignored
3896 # Tru64's nm complains that /dev/null is an invalid object file
3897 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3898 */dev/null* | *'Invalid file or object type'*)
3899 lt_cv_path_NM="$tmp_nm -B"
3900 break
3901 ;;
3902 *)
3903 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3904 */dev/null*)
3905 lt_cv_path_NM="$tmp_nm -p"
3906 break
3907 ;;
3908 *)
3909 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3910 continue # so that we can try to find one that supports BSD flags
3911 ;;
3912 esac
3913 ;;
3914 esac
3915 fi
3916 done
3917 IFS="$lt_save_ifs"
3918 done
3919 : ${lt_cv_path_NM=no}
3920 fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3923 $as_echo "$lt_cv_path_NM" >&6; }
3924 if test "$lt_cv_path_NM" != "no"; then
3925 NM="$lt_cv_path_NM"
3926 else
3927 # Didn't find any BSD compatible name lister, look for dumpbin.
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3930 do
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$DUMPBIN"; then
3939 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 DUMPBIN=$ac_cv_prog_DUMPBIN
3959 if test -n "$DUMPBIN"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3961 $as_echo "$DUMPBIN" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967
3968 test -n "$DUMPBIN" && break
3969 done
3970 fi
3971 if test -z "$DUMPBIN"; then
3972 ac_ct_DUMPBIN=$DUMPBIN
3973 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3974 do
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy $ac_prog; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$ac_ct_DUMPBIN"; then
3983 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4003 if test -n "$ac_ct_DUMPBIN"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4005 $as_echo "$ac_ct_DUMPBIN" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011
4012 test -n "$ac_ct_DUMPBIN" && break
4013 done
4014
4015 if test "x$ac_ct_DUMPBIN" = x; then
4016 DUMPBIN=":"
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019 yes:)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4023 esac
4024 DUMPBIN=$ac_ct_DUMPBIN
4025 fi
4026 fi
4027
4028
4029 if test "$DUMPBIN" != ":"; then
4030 NM="$DUMPBIN"
4031 fi
4032 fi
4033 test -z "$NM" && NM=nm
4034
4035
4036
4037
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4041 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4042 if test "${lt_cv_nm_interface+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 lt_cv_nm_interface="BSD nm"
4046 echo "int some_variable = 0;" > conftest.$ac_ext
4047 (eval echo "\"\$as_me:4047: $ac_compile\"" >&5)
4048 (eval "$ac_compile" 2>conftest.err)
4049 cat conftest.err >&5
4050 (eval echo "\"\$as_me:4050: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4051 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4052 cat conftest.err >&5
4053 (eval echo "\"\$as_me:4053: output\"" >&5)
4054 cat conftest.out >&5
4055 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4056 lt_cv_nm_interface="MS dumpbin"
4057 fi
4058 rm -f conftest*
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4061 $as_echo "$lt_cv_nm_interface" >&6; }
4062
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4064 $as_echo_n "checking whether ln -s works... " >&6; }
4065 LN_S=$as_ln_s
4066 if test "$LN_S" = "ln -s"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 $as_echo "yes" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4071 $as_echo "no, using $LN_S" >&6; }
4072 fi
4073
4074 # find the maximum length of command line arguments
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4076 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4077 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 i=0
4081 teststring="ABCD"
4082
4083 case $build_os in
4084 msdosdjgpp*)
4085 # On DJGPP, this test can blow up pretty badly due to problems in libc
4086 # (any single argument exceeding 2000 bytes causes a buffer overrun
4087 # during glob expansion). Even if it were fixed, the result of this
4088 # check would be larger than it should be.
4089 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4090 ;;
4091
4092 gnu*)
4093 # Under GNU Hurd, this test is not required because there is
4094 # no limit to the length of command line arguments.
4095 # Libtool will interpret -1 as no limit whatsoever
4096 lt_cv_sys_max_cmd_len=-1;
4097 ;;
4098
4099 cygwin* | mingw* | cegcc*)
4100 # On Win9x/ME, this test blows up -- it succeeds, but takes
4101 # about 5 minutes as the teststring grows exponentially.
4102 # Worse, since 9x/ME are not pre-emptively multitasking,
4103 # you end up with a "frozen" computer, even though with patience
4104 # the test eventually succeeds (with a max line length of 256k).
4105 # Instead, let's just punt: use the minimum linelength reported by
4106 # all of the supported platforms: 8192 (on NT/2K/XP).
4107 lt_cv_sys_max_cmd_len=8192;
4108 ;;
4109
4110 amigaos*)
4111 # On AmigaOS with pdksh, this test takes hours, literally.
4112 # So we just punt and use a minimum line length of 8192.
4113 lt_cv_sys_max_cmd_len=8192;
4114 ;;
4115
4116 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4117 # This has been around since 386BSD, at least. Likely further.
4118 if test -x /sbin/sysctl; then
4119 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4120 elif test -x /usr/sbin/sysctl; then
4121 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4122 else
4123 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4124 fi
4125 # And add a safety zone
4126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4128 ;;
4129
4130 interix*)
4131 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4132 lt_cv_sys_max_cmd_len=196608
4133 ;;
4134
4135 osf*)
4136 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4137 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4138 # nice to cause kernel panics so lets avoid the loop below.
4139 # First set a reasonable default.
4140 lt_cv_sys_max_cmd_len=16384
4141 #
4142 if test -x /sbin/sysconfig; then
4143 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4144 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4145 esac
4146 fi
4147 ;;
4148 sco3.2v5*)
4149 lt_cv_sys_max_cmd_len=102400
4150 ;;
4151 sysv5* | sco5v6* | sysv4.2uw2*)
4152 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4153 if test -n "$kargmax"; then
4154 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4155 else
4156 lt_cv_sys_max_cmd_len=32768
4157 fi
4158 ;;
4159 *)
4160 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4161 if test -n "$lt_cv_sys_max_cmd_len"; then
4162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4164 else
4165 # Make teststring a little bigger before we do anything with it.
4166 # a 1K string should be a reasonable start.
4167 for i in 1 2 3 4 5 6 7 8 ; do
4168 teststring=$teststring$teststring
4169 done
4170 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4171 # If test is not a shell built-in, we'll probably end up computing a
4172 # maximum length that is only half of the actual maximum length, but
4173 # we can't tell.
4174 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4175 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4176 test $i != 17 # 1/2 MB should be enough
4177 do
4178 i=`expr $i + 1`
4179 teststring=$teststring$teststring
4180 done
4181 # Only check the string length outside the loop.
4182 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4183 teststring=
4184 # Add a significant safety factor because C++ compilers can tack on
4185 # massive amounts of additional arguments before passing them to the
4186 # linker. It appears as though 1/2 is a usable value.
4187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4188 fi
4189 ;;
4190 esac
4191
4192 fi
4193
4194 if test -n $lt_cv_sys_max_cmd_len ; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4196 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4199 $as_echo "none" >&6; }
4200 fi
4201 max_cmd_len=$lt_cv_sys_max_cmd_len
4202
4203
4204
4205
4206
4207
4208 : ${CP="cp -f"}
4209 : ${MV="mv -f"}
4210 : ${RM="rm -f"}
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4213 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4214 # Try some XSI features
4215 xsi_shell=no
4216 ( _lt_dummy="a/b/c"
4217 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4218 = c,a/b,, \
4219 && eval 'test $(( 1 + 1 )) -eq 2 \
4220 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4221 && xsi_shell=yes
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4223 $as_echo "$xsi_shell" >&6; }
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4227 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4228 lt_shell_append=no
4229 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4230 >/dev/null 2>&1 \
4231 && lt_shell_append=yes
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4233 $as_echo "$lt_shell_append" >&6; }
4234
4235
4236 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4237 lt_unset=unset
4238 else
4239 lt_unset=false
4240 fi
4241
4242
4243
4244
4245
4246 # test EBCDIC or ASCII
4247 case `echo X|tr X '\101'` in
4248 A) # ASCII based system
4249 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4250 lt_SP2NL='tr \040 \012'
4251 lt_NL2SP='tr \015\012 \040\040'
4252 ;;
4253 *) # EBCDIC based system
4254 lt_SP2NL='tr \100 \n'
4255 lt_NL2SP='tr \r\n \100\100'
4256 ;;
4257 esac
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4268 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4269 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 lt_cv_ld_reload_flag='-r'
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4275 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4276 reload_flag=$lt_cv_ld_reload_flag
4277 case $reload_flag in
4278 "" | " "*) ;;
4279 *) reload_flag=" $reload_flag" ;;
4280 esac
4281 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4282 case $host_os in
4283 darwin*)
4284 if test "$GCC" = yes; then
4285 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4286 else
4287 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4288 fi
4289 ;;
4290 esac
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4302 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$OBJDUMP"; then
4309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 OBJDUMP=$ac_cv_prog_OBJDUMP
4329 if test -n "$OBJDUMP"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4331 $as_echo "$OBJDUMP" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$ac_cv_prog_OBJDUMP"; then
4340 ac_ct_OBJDUMP=$OBJDUMP
4341 # Extract the first word of "objdump", so it can be a program name with args.
4342 set dummy objdump; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$ac_ct_OBJDUMP"; then
4349 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4369 if test -n "$ac_ct_OBJDUMP"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4371 $as_echo "$ac_ct_OBJDUMP" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377 if test "x$ac_ct_OBJDUMP" = x; then
4378 OBJDUMP="false"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 OBJDUMP=$ac_ct_OBJDUMP
4387 fi
4388 else
4389 OBJDUMP="$ac_cv_prog_OBJDUMP"
4390 fi
4391
4392 test -z "$OBJDUMP" && OBJDUMP=objdump
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4403 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4404 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 lt_cv_file_magic_cmd='$MAGIC_CMD'
4408 lt_cv_file_magic_test_file=
4409 lt_cv_deplibs_check_method='unknown'
4410 # Need to set the preceding variable on all platforms that support
4411 # interlibrary dependencies.
4412 # 'none' -- dependencies not supported.
4413 # `unknown' -- same as none, but documents that we really don't know.
4414 # 'pass_all' -- all dependencies passed with no checks.
4415 # 'test_compile' -- check by making test program.
4416 # 'file_magic [[regex]]' -- check by looking for files in library path
4417 # which responds to the $file_magic_cmd with a given extended regex.
4418 # If you have `file' or equivalent on your system and you're not sure
4419 # whether `pass_all' will *always* work, you probably want this one.
4420
4421 case $host_os in
4422 aix[4-9]*)
4423 lt_cv_deplibs_check_method=pass_all
4424 ;;
4425
4426 beos*)
4427 lt_cv_deplibs_check_method=pass_all
4428 ;;
4429
4430 bsdi[45]*)
4431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4432 lt_cv_file_magic_cmd='/usr/bin/file -L'
4433 lt_cv_file_magic_test_file=/shlib/libc.so
4434 ;;
4435
4436 cygwin*)
4437 # func_win32_libid is a shell function defined in ltmain.sh
4438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4439 lt_cv_file_magic_cmd='func_win32_libid'
4440 ;;
4441
4442 mingw* | pw32*)
4443 # Base MSYS/MinGW do not provide the 'file' command needed by
4444 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4445 # unless we find 'file', for example because we are cross-compiling.
4446 if ( file / ) >/dev/null 2>&1; then
4447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4448 lt_cv_file_magic_cmd='func_win32_libid'
4449 else
4450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4451 lt_cv_file_magic_cmd='$OBJDUMP -f'
4452 fi
4453 ;;
4454
4455 cegcc)
4456 # use the weaker test based on 'objdump'. See mingw*.
4457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4458 lt_cv_file_magic_cmd='$OBJDUMP -f'
4459 ;;
4460
4461 darwin* | rhapsody*)
4462 lt_cv_deplibs_check_method=pass_all
4463 ;;
4464
4465 freebsd* | dragonfly*)
4466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4467 case $host_cpu in
4468 i*86 )
4469 # Not sure whether the presence of OpenBSD here was a mistake.
4470 # Let's accept both of them until this is cleared up.
4471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4472 lt_cv_file_magic_cmd=/usr/bin/file
4473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4474 ;;
4475 esac
4476 else
4477 lt_cv_deplibs_check_method=pass_all
4478 fi
4479 ;;
4480
4481 gnu*)
4482 lt_cv_deplibs_check_method=pass_all
4483 ;;
4484
4485 hpux10.20* | hpux11*)
4486 lt_cv_file_magic_cmd=/usr/bin/file
4487 case $host_cpu in
4488 ia64*)
4489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4491 ;;
4492 hppa*64*)
4493 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]'
4494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4495 ;;
4496 *)
4497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4498 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4499 ;;
4500 esac
4501 ;;
4502
4503 interix[3-9]*)
4504 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4506 ;;
4507
4508 irix5* | irix6* | nonstopux*)
4509 case $LD in
4510 *-32|*"-32 ") libmagic=32-bit;;
4511 *-n32|*"-n32 ") libmagic=N32;;
4512 *-64|*"-64 ") libmagic=64-bit;;
4513 *) libmagic=never-match;;
4514 esac
4515 lt_cv_deplibs_check_method=pass_all
4516 ;;
4517
4518 # This must be Linux ELF.
4519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4520 lt_cv_deplibs_check_method=pass_all
4521 ;;
4522
4523 netbsd* | netbsdelf*-gnu)
4524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4526 else
4527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4528 fi
4529 ;;
4530
4531 newos6*)
4532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4533 lt_cv_file_magic_cmd=/usr/bin/file
4534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4535 ;;
4536
4537 *nto* | *qnx*)
4538 lt_cv_deplibs_check_method=pass_all
4539 ;;
4540
4541 openbsd*)
4542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4544 else
4545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4546 fi
4547 ;;
4548
4549 osf3* | osf4* | osf5*)
4550 lt_cv_deplibs_check_method=pass_all
4551 ;;
4552
4553 rdos*)
4554 lt_cv_deplibs_check_method=pass_all
4555 ;;
4556
4557 solaris*)
4558 lt_cv_deplibs_check_method=pass_all
4559 ;;
4560
4561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4562 lt_cv_deplibs_check_method=pass_all
4563 ;;
4564
4565 sysv4 | sysv4.3*)
4566 case $host_vendor in
4567 motorola)
4568 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]'
4569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4570 ;;
4571 ncr)
4572 lt_cv_deplibs_check_method=pass_all
4573 ;;
4574 sequent)
4575 lt_cv_file_magic_cmd='/bin/file'
4576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4577 ;;
4578 sni)
4579 lt_cv_file_magic_cmd='/bin/file'
4580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4581 lt_cv_file_magic_test_file=/lib/libc.so
4582 ;;
4583 siemens)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586 pc)
4587 lt_cv_deplibs_check_method=pass_all
4588 ;;
4589 esac
4590 ;;
4591
4592 tpf*)
4593 lt_cv_deplibs_check_method=pass_all
4594 ;;
4595 esac
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4600 file_magic_cmd=$lt_cv_file_magic_cmd
4601 deplibs_check_method=$lt_cv_deplibs_check_method
4602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ar; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_AR+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$AR"; then
4624 ac_cv_prog_AR="$AR" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_AR="${ac_tool_prefix}ar"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4636 fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 AR=$ac_cv_prog_AR
4644 if test -n "$AR"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4646 $as_echo "$AR" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651
4652
4653 fi
4654 if test -z "$ac_cv_prog_AR"; then
4655 ac_ct_AR=$AR
4656 # Extract the first word of "ar", so it can be a program name with args.
4657 set dummy ar; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$ac_ct_AR"; then
4664 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_AR="ar"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4684 if test -n "$ac_ct_AR"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4686 $as_echo "$ac_ct_AR" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692 if test "x$ac_ct_AR" = x; then
4693 AR="false"
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 AR=$ac_ct_AR
4702 fi
4703 else
4704 AR="$ac_cv_prog_AR"
4705 fi
4706
4707 test -z "$AR" && AR=ar
4708 test -z "$AR_FLAGS" && AR_FLAGS=cru
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}strip; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_STRIP+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$STRIP"; then
4729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 STRIP=$ac_cv_prog_STRIP
4749 if test -n "$STRIP"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4751 $as_echo "$STRIP" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758 fi
4759 if test -z "$ac_cv_prog_STRIP"; then
4760 ac_ct_STRIP=$STRIP
4761 # Extract the first word of "strip", so it can be a program name with args.
4762 set dummy strip; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$ac_ct_STRIP"; then
4769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ac_ct_STRIP="strip"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 fi
4787 fi
4788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4789 if test -n "$ac_ct_STRIP"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4791 $as_echo "$ac_ct_STRIP" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796
4797 if test "x$ac_ct_STRIP" = x; then
4798 STRIP=":"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 STRIP=$ac_ct_STRIP
4807 fi
4808 else
4809 STRIP="$ac_cv_prog_STRIP"
4810 fi
4811
4812 test -z "$STRIP" && STRIP=:
4813
4814
4815
4816
4817
4818
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$RANLIB"; then
4828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 RANLIB=$ac_cv_prog_RANLIB
4848 if test -n "$RANLIB"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4850 $as_echo "$RANLIB" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857 fi
4858 if test -z "$ac_cv_prog_RANLIB"; then
4859 ac_ct_RANLIB=$RANLIB
4860 # Extract the first word of "ranlib", so it can be a program name with args.
4861 set dummy ranlib; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$ac_ct_RANLIB"; then
4868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_RANLIB="ranlib"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4888 if test -n "$ac_ct_RANLIB"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4890 $as_echo "$ac_ct_RANLIB" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896 if test "x$ac_ct_RANLIB" = x; then
4897 RANLIB=":"
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 RANLIB=$ac_ct_RANLIB
4906 fi
4907 else
4908 RANLIB="$ac_cv_prog_RANLIB"
4909 fi
4910
4911 test -z "$RANLIB" && RANLIB=:
4912
4913
4914
4915
4916
4917
4918 # Determine commands to create old-style static archives.
4919 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4920 old_postinstall_cmds='chmod 644 $oldlib'
4921 old_postuninstall_cmds=
4922
4923 if test -n "$RANLIB"; then
4924 case $host_os in
4925 openbsd*)
4926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4927 ;;
4928 *)
4929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4930 ;;
4931 esac
4932 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4933 fi
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 # If no C compiler was specified, use CC.
4969 LTCC=${LTCC-"$CC"}
4970
4971 # If no C compiler flags were specified, use CFLAGS.
4972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4973
4974 # Allow CC to be a program name with arguments.
4975 compiler=$CC
4976
4977
4978 # Check for command to grab the raw symbol name followed by C symbol from nm.
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4981 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984
4985 # These are sane defaults that work on at least a few old systems.
4986 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4987
4988 # Character class describing NM global symbol codes.
4989 symcode='[BCDEGRST]'
4990
4991 # Regexp to match symbols that can be accessed directly from C.
4992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4993
4994 # Define system-specific variables.
4995 case $host_os in
4996 aix*)
4997 symcode='[BCDT]'
4998 ;;
4999 cygwin* | mingw* | pw32* | cegcc*)
5000 symcode='[ABCDGISTW]'
5001 ;;
5002 hpux*)
5003 if test "$host_cpu" = ia64; then
5004 symcode='[ABCDEGRST]'
5005 fi
5006 ;;
5007 irix* | nonstopux*)
5008 symcode='[BCDEGRST]'
5009 ;;
5010 osf*)
5011 symcode='[BCDEGQRST]'
5012 ;;
5013 solaris*)
5014 symcode='[BDRT]'
5015 ;;
5016 sco3.2v5*)
5017 symcode='[DT]'
5018 ;;
5019 sysv4.2uw2*)
5020 symcode='[DT]'
5021 ;;
5022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5023 symcode='[ABDT]'
5024 ;;
5025 sysv4)
5026 symcode='[DFNSTU]'
5027 ;;
5028 esac
5029
5030 # If we're using GNU nm, then use its standard symbol codes.
5031 case `$NM -V 2>&1` in
5032 *GNU* | *'with BFD'*)
5033 symcode='[ABCDGIRSTW]' ;;
5034 esac
5035
5036 # Transform an extracted symbol line into a proper C declaration.
5037 # Some systems (esp. on ia64) link data and code symbols differently,
5038 # so use this general approach.
5039 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5040
5041 # Transform an extracted symbol line into symbol name and symbol address
5042 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5043 lt_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'"
5044
5045 # Handle CRLF in mingw tool chain
5046 opt_cr=
5047 case $build_os in
5048 mingw*)
5049 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5050 ;;
5051 esac
5052
5053 # Try without a prefix underscore, then with it.
5054 for ac_symprfx in "" "_"; do
5055
5056 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5057 symxfrm="\\1 $ac_symprfx\\2 \\2"
5058
5059 # Write the raw and C identifiers.
5060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5061 # Fake it for dumpbin and say T for any non-static function
5062 # and D for any global variable.
5063 # Also find C++ and __fastcall symbols from MSVC++,
5064 # which start with @ or ?.
5065 lt_cv_sys_global_symbol_pipe="$AWK '"\
5066 " {last_section=section; section=\$ 3};"\
5067 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5068 " \$ 0!~/External *\|/{next};"\
5069 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5070 " {if(hide[section]) next};"\
5071 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5072 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5073 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5074 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5075 " ' prfx=^$ac_symprfx"
5076 else
5077 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5078 fi
5079
5080 # Check to see that the pipe works correctly.
5081 pipe_works=no
5082
5083 rm -f conftest*
5084 cat > conftest.$ac_ext <<_LT_EOF
5085 #ifdef __cplusplus
5086 extern "C" {
5087 #endif
5088 char nm_test_var;
5089 void nm_test_func(void);
5090 void nm_test_func(void){}
5091 #ifdef __cplusplus
5092 }
5093 #endif
5094 int main(){nm_test_var='a';nm_test_func();return(0);}
5095 _LT_EOF
5096
5097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5098 (eval $ac_compile) 2>&5
5099 ac_status=$?
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 # Now try to grab the symbols.
5103 nlist=conftest.nm
5104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5105 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; } && test -s "$nlist"; then
5109 # Try sorting and uniquifying the output.
5110 if sort "$nlist" | uniq > "$nlist"T; then
5111 mv -f "$nlist"T "$nlist"
5112 else
5113 rm -f "$nlist"T
5114 fi
5115
5116 # Make sure that we snagged all the symbols we need.
5117 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5118 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5119 cat <<_LT_EOF > conftest.$ac_ext
5120 #ifdef __cplusplus
5121 extern "C" {
5122 #endif
5123
5124 _LT_EOF
5125 # Now generate the symbol file.
5126 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5127
5128 cat <<_LT_EOF >> conftest.$ac_ext
5129
5130 /* The mapping between symbol names and symbols. */
5131 const struct {
5132 const char *name;
5133 void *address;
5134 }
5135 lt__PROGRAM__LTX_preloaded_symbols[] =
5136 {
5137 { "@PROGRAM@", (void *) 0 },
5138 _LT_EOF
5139 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5140 cat <<\_LT_EOF >> conftest.$ac_ext
5141 {0, (void *) 0}
5142 };
5143
5144 /* This works around a problem in FreeBSD linker */
5145 #ifdef FREEBSD_WORKAROUND
5146 static const void *lt_preloaded_setup() {
5147 return lt__PROGRAM__LTX_preloaded_symbols;
5148 }
5149 #endif
5150
5151 #ifdef __cplusplus
5152 }
5153 #endif
5154 _LT_EOF
5155 # Now try linking the two files.
5156 mv conftest.$ac_objext conftstm.$ac_objext
5157 lt_save_LIBS="$LIBS"
5158 lt_save_CFLAGS="$CFLAGS"
5159 LIBS="conftstm.$ac_objext"
5160 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5162 (eval $ac_link) 2>&5
5163 ac_status=$?
5164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5165 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5166 pipe_works=yes
5167 fi
5168 LIBS="$lt_save_LIBS"
5169 CFLAGS="$lt_save_CFLAGS"
5170 else
5171 echo "cannot find nm_test_func in $nlist" >&5
5172 fi
5173 else
5174 echo "cannot find nm_test_var in $nlist" >&5
5175 fi
5176 else
5177 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5178 fi
5179 else
5180 echo "$progname: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 fi
5183 rm -rf conftest* conftst*
5184
5185 # Do not use the global_symbol_pipe unless it works.
5186 if test "$pipe_works" = yes; then
5187 break
5188 else
5189 lt_cv_sys_global_symbol_pipe=
5190 fi
5191 done
5192
5193 fi
5194
5195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5196 lt_cv_sys_global_symbol_to_cdecl=
5197 fi
5198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5200 $as_echo "failed" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5203 $as_echo "ok" >&6; }
5204 fi
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 # Check whether --enable-libtool-lock was given.
5229 if test "${enable_libtool_lock+set}" = set; then :
5230 enableval=$enable_libtool_lock;
5231 fi
5232
5233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5234
5235 # Some flags need to be propagated to the compiler or linker for good
5236 # libtool support.
5237 case $host in
5238 ia64-*-hpux*)
5239 # Find out which ABI we are using.
5240 echo 'int i;' > conftest.$ac_ext
5241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5242 (eval $ac_compile) 2>&5
5243 ac_status=$?
5244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245 test $ac_status = 0; }; then
5246 case `/usr/bin/file conftest.$ac_objext` in
5247 *ELF-32*)
5248 HPUX_IA64_MODE="32"
5249 ;;
5250 *ELF-64*)
5251 HPUX_IA64_MODE="64"
5252 ;;
5253 esac
5254 fi
5255 rm -rf conftest*
5256 ;;
5257 *-*-irix6*)
5258 # Find out which ABI we are using.
5259 echo '#line 5259 "configure"' > conftest.$ac_ext
5260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5261 (eval $ac_compile) 2>&5
5262 ac_status=$?
5263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5264 test $ac_status = 0; }; then
5265 if test "$lt_cv_prog_gnu_ld" = yes; then
5266 case `/usr/bin/file conftest.$ac_objext` in
5267 *32-bit*)
5268 LD="${LD-ld} -melf32bsmip"
5269 ;;
5270 *N32*)
5271 LD="${LD-ld} -melf32bmipn32"
5272 ;;
5273 *64-bit*)
5274 LD="${LD-ld} -melf64bmip"
5275 ;;
5276 esac
5277 else
5278 case `/usr/bin/file conftest.$ac_objext` in
5279 *32-bit*)
5280 LD="${LD-ld} -32"
5281 ;;
5282 *N32*)
5283 LD="${LD-ld} -n32"
5284 ;;
5285 *64-bit*)
5286 LD="${LD-ld} -64"
5287 ;;
5288 esac
5289 fi
5290 fi
5291 rm -rf conftest*
5292 ;;
5293
5294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5296 # Find out which ABI we are using.
5297 echo 'int i;' > conftest.$ac_ext
5298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5299 (eval $ac_compile) 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; then
5303 case `/usr/bin/file conftest.o` in
5304 *32-bit*)
5305 case $host in
5306 x86_64-*kfreebsd*-gnu)
5307 LD="${LD-ld} -m elf_i386_fbsd"
5308 ;;
5309 x86_64-*linux*)
5310 LD="${LD-ld} -m elf_i386"
5311 ;;
5312 ppc64-*linux*|powerpc64-*linux*)
5313 LD="${LD-ld} -m elf32ppclinux"
5314 ;;
5315 s390x-*linux*)
5316 LD="${LD-ld} -m elf_s390"
5317 ;;
5318 sparc64-*linux*)
5319 LD="${LD-ld} -m elf32_sparc"
5320 ;;
5321 esac
5322 ;;
5323 *64-bit*)
5324 case $host in
5325 x86_64-*kfreebsd*-gnu)
5326 LD="${LD-ld} -m elf_x86_64_fbsd"
5327 ;;
5328 x86_64-*linux*)
5329 LD="${LD-ld} -m elf_x86_64"
5330 ;;
5331 ppc*-*linux*|powerpc*-*linux*)
5332 LD="${LD-ld} -m elf64ppc"
5333 ;;
5334 s390*-*linux*|s390*-*tpf*)
5335 LD="${LD-ld} -m elf64_s390"
5336 ;;
5337 sparc*-*linux*)
5338 LD="${LD-ld} -m elf64_sparc"
5339 ;;
5340 esac
5341 ;;
5342 esac
5343 fi
5344 rm -rf conftest*
5345 ;;
5346
5347 *-*-sco3.2v5*)
5348 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5349 SAVE_CFLAGS="$CFLAGS"
5350 CFLAGS="$CFLAGS -belf"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5352 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5353 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364
5365 int
5366 main ()
5367 {
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 lt_cv_cc_needs_belf=yes
5375 else
5376 lt_cv_cc_needs_belf=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5388 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5389 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5390 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5391 CFLAGS="$SAVE_CFLAGS"
5392 fi
5393 ;;
5394 sparc*-*solaris*)
5395 # Find out which ABI we are using.
5396 echo 'int i;' > conftest.$ac_ext
5397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5398 (eval $ac_compile) 2>&5
5399 ac_status=$?
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }; then
5402 case `/usr/bin/file conftest.o` in
5403 *64-bit*)
5404 case $lt_cv_prog_gnu_ld in
5405 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5406 *)
5407 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5408 LD="${LD-ld} -64"
5409 fi
5410 ;;
5411 esac
5412 ;;
5413 esac
5414 fi
5415 rm -rf conftest*
5416 ;;
5417 esac
5418
5419 need_locks="$enable_libtool_lock"
5420
5421
5422 case $host_os in
5423 rhapsody* | darwin*)
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$DSYMUTIL"; then
5433 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5453 if test -n "$DSYMUTIL"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5455 $as_echo "$DSYMUTIL" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 fi
5463 if test -z "$ac_cv_prog_DSYMUTIL"; then
5464 ac_ct_DSYMUTIL=$DSYMUTIL
5465 # Extract the first word of "dsymutil", so it can be a program name with args.
5466 set dummy dsymutil; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$ac_ct_DSYMUTIL"; then
5473 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5493 if test -n "$ac_ct_DSYMUTIL"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5495 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501 if test "x$ac_ct_DSYMUTIL" = x; then
5502 DSYMUTIL=":"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505 yes:)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508 ac_tool_warned=yes ;;
5509 esac
5510 DSYMUTIL=$ac_ct_DSYMUTIL
5511 fi
5512 else
5513 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5514 fi
5515
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$NMEDIT"; then
5525 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 NMEDIT=$ac_cv_prog_NMEDIT
5545 if test -n "$NMEDIT"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5547 $as_echo "$NMEDIT" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554 fi
5555 if test -z "$ac_cv_prog_NMEDIT"; then
5556 ac_ct_NMEDIT=$NMEDIT
5557 # Extract the first word of "nmedit", so it can be a program name with args.
5558 set dummy nmedit; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 if test -n "$ac_ct_NMEDIT"; then
5565 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5566 else
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578 done
5579 done
5580 IFS=$as_save_IFS
5581
5582 fi
5583 fi
5584 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5585 if test -n "$ac_ct_NMEDIT"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5587 $as_echo "$ac_ct_NMEDIT" >&6; }
5588 else
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592
5593 if test "x$ac_ct_NMEDIT" = x; then
5594 NMEDIT=":"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 NMEDIT=$ac_ct_NMEDIT
5603 fi
5604 else
5605 NMEDIT="$ac_cv_prog_NMEDIT"
5606 fi
5607
5608 if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_prog_LIPO+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$LIPO"; then
5617 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 LIPO=$ac_cv_prog_LIPO
5637 if test -n "$LIPO"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5639 $as_echo "$LIPO" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645
5646 fi
5647 if test -z "$ac_cv_prog_LIPO"; then
5648 ac_ct_LIPO=$LIPO
5649 # Extract the first word of "lipo", so it can be a program name with args.
5650 set dummy lipo; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$ac_ct_LIPO"; then
5657 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_ac_ct_LIPO="lipo"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5677 if test -n "$ac_ct_LIPO"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5679 $as_echo "$ac_ct_LIPO" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685 if test "x$ac_ct_LIPO" = x; then
5686 LIPO=":"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689 yes:)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5693 esac
5694 LIPO=$ac_ct_LIPO
5695 fi
5696 else
5697 LIPO="$ac_cv_prog_LIPO"
5698 fi
5699
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}otool; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$OTOOL"; then
5709 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 OTOOL=$ac_cv_prog_OTOOL
5729 if test -n "$OTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5731 $as_echo "$OTOOL" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 fi
5739 if test -z "$ac_cv_prog_OTOOL"; then
5740 ac_ct_OTOOL=$OTOOL
5741 # Extract the first word of "otool", so it can be a program name with args.
5742 set dummy otool; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$ac_ct_OTOOL"; then
5749 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_ac_ct_OTOOL="otool"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5769 if test -n "$ac_ct_OTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5771 $as_echo "$ac_ct_OTOOL" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777 if test "x$ac_ct_OTOOL" = x; then
5778 OTOOL=":"
5779 else
5780 case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786 OTOOL=$ac_ct_OTOOL
5787 fi
5788 else
5789 OTOOL="$ac_cv_prog_OTOOL"
5790 fi
5791
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$OTOOL64"; then
5801 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 OTOOL64=$ac_cv_prog_OTOOL64
5821 if test -n "$OTOOL64"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5823 $as_echo "$OTOOL64" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830 fi
5831 if test -z "$ac_cv_prog_OTOOL64"; then
5832 ac_ct_OTOOL64=$OTOOL64
5833 # Extract the first word of "otool64", so it can be a program name with args.
5834 set dummy otool64; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_OTOOL64"; then
5841 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_OTOOL64="otool64"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5861 if test -n "$ac_ct_OTOOL64"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5863 $as_echo "$ac_ct_OTOOL64" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869 if test "x$ac_ct_OTOOL64" = x; then
5870 OTOOL64=":"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 OTOOL64=$ac_ct_OTOOL64
5879 fi
5880 else
5881 OTOOL64="$ac_cv_prog_OTOOL64"
5882 fi
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5911 $as_echo_n "checking for -single_module linker flag... " >&6; }
5912 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 lt_cv_apple_cc_single_mod=no
5916 if test -z "${LT_MULTI_MODULE}"; then
5917 # By default we will add the -single_module flag. You can override
5918 # by either setting the environment variable LT_MULTI_MODULE
5919 # non-empty at configure time, or by adding -multi_module to the
5920 # link flags.
5921 rm -rf libconftest.dylib*
5922 echo "int foo(void){return 1;}" > conftest.c
5923 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5924 -dynamiclib -Wl,-single_module conftest.c" >&5
5925 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5926 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5927 _lt_result=$?
5928 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5929 lt_cv_apple_cc_single_mod=yes
5930 else
5931 cat conftest.err >&5
5932 fi
5933 rm -rf libconftest.dylib*
5934 rm -f conftest.*
5935 fi
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5940 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 lt_cv_ld_exported_symbols_list=no
5945 save_LDFLAGS=$LDFLAGS
5946 echo "_main" > conftest.sym
5947 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950
5951 int
5952 main ()
5953 {
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"; then :
5960 lt_cv_ld_exported_symbols_list=yes
5961 else
5962 lt_cv_ld_exported_symbols_list=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext \
5965 conftest$ac_exeext conftest.$ac_ext
5966 LDFLAGS="$save_LDFLAGS"
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5970 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5971 case $host_os in
5972 rhapsody* | darwin1.[012])
5973 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5974 darwin1.*)
5975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5976 darwin*) # darwin 5.x on
5977 # if running on 10.5 or later, the deployment target defaults
5978 # to the OS version, if on x86, and 10.4, the deployment
5979 # target defaults to 10.4. Don't you love it?
5980 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5981 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5983 10.[012]*)
5984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5985 10.*)
5986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5987 esac
5988 ;;
5989 esac
5990 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5991 _lt_dar_single_mod='$single_module'
5992 fi
5993 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5994 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5995 else
5996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5997 fi
5998 if test "$DSYMUTIL" != ":"; then
5999 _lt_dsymutil='~$DSYMUTIL $lib || :'
6000 else
6001 _lt_dsymutil=
6002 fi
6003 ;;
6004 esac
6005
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6013 # On Suns, sometimes $CPP names a directory.
6014 if test -n "$CPP" && test -d "$CPP"; then
6015 CPP=
6016 fi
6017 if test -z "$CPP"; then
6018 if test "${ac_cv_prog_CPP+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 # Double quotes because CPP needs to be expanded
6022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6023 do
6024 ac_preproc_ok=false
6025 for ac_c_preproc_warn_flag in '' yes
6026 do
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #ifdef __STDC__
6036 # include <limits.h>
6037 #else
6038 # include <assert.h>
6039 #endif
6040 Syntax error
6041 _ACEOF
6042 if ac_fn_c_try_cpp "$LINENO"; then :
6043
6044 else
6045 # Broken: fails on valid input.
6046 continue
6047 fi
6048 rm -f conftest.err conftest.$ac_ext
6049
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <ac_nonexistent.h>
6055 _ACEOF
6056 if ac_fn_c_try_cpp "$LINENO"; then :
6057 # Broken: success on invalid input.
6058 continue
6059 else
6060 # Passes both tests.
6061 ac_preproc_ok=:
6062 break
6063 fi
6064 rm -f conftest.err conftest.$ac_ext
6065
6066 done
6067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068 rm -f conftest.err conftest.$ac_ext
6069 if $ac_preproc_ok; then :
6070 break
6071 fi
6072
6073 done
6074 ac_cv_prog_CPP=$CPP
6075
6076 fi
6077 CPP=$ac_cv_prog_CPP
6078 else
6079 ac_cv_prog_CPP=$CPP
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6082 $as_echo "$CPP" >&6; }
6083 ac_preproc_ok=false
6084 for ac_c_preproc_warn_flag in '' yes
6085 do
6086 # Use a header file that comes with gcc, so configuring glibc
6087 # with a fresh cross-compiler works.
6088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089 # <limits.h> exists even on freestanding compilers.
6090 # On the NeXT, cc -E runs the code through the compiler's parser,
6091 # not just through cpp. "Syntax error" is here to catch this case.
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #ifdef __STDC__
6095 # include <limits.h>
6096 #else
6097 # include <assert.h>
6098 #endif
6099 Syntax error
6100 _ACEOF
6101 if ac_fn_c_try_cpp "$LINENO"; then :
6102
6103 else
6104 # Broken: fails on valid input.
6105 continue
6106 fi
6107 rm -f conftest.err conftest.$ac_ext
6108
6109 # OK, works on sane cases. Now check whether nonexistent headers
6110 # can be detected and how.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <ac_nonexistent.h>
6114 _ACEOF
6115 if ac_fn_c_try_cpp "$LINENO"; then :
6116 # Broken: success on invalid input.
6117 continue
6118 else
6119 # Passes both tests.
6120 ac_preproc_ok=:
6121 break
6122 fi
6123 rm -f conftest.err conftest.$ac_ext
6124
6125 done
6126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6127 rm -f conftest.err conftest.$ac_ext
6128 if $ac_preproc_ok; then :
6129
6130 else
6131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6133 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6134 See \`config.log' for more details." "$LINENO" 5; }
6135 fi
6136
6137 ac_ext=c
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6145 $as_echo_n "checking for ANSI C header files... " >&6; }
6146 if test "${ac_cv_header_stdc+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <stdlib.h>
6152 #include <stdarg.h>
6153 #include <string.h>
6154 #include <float.h>
6155
6156 int
6157 main ()
6158 {
6159
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_c_try_compile "$LINENO"; then :
6165 ac_cv_header_stdc=yes
6166 else
6167 ac_cv_header_stdc=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170
6171 if test $ac_cv_header_stdc = yes; then
6172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <string.h>
6176
6177 _ACEOF
6178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6179 $EGREP "memchr" >/dev/null 2>&1; then :
6180
6181 else
6182 ac_cv_header_stdc=no
6183 fi
6184 rm -f conftest*
6185
6186 fi
6187
6188 if test $ac_cv_header_stdc = yes; then
6189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <stdlib.h>
6193
6194 _ACEOF
6195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6196 $EGREP "free" >/dev/null 2>&1; then :
6197
6198 else
6199 ac_cv_header_stdc=no
6200 fi
6201 rm -f conftest*
6202
6203 fi
6204
6205 if test $ac_cv_header_stdc = yes; then
6206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6207 if test "$cross_compiling" = yes; then :
6208 :
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <ctype.h>
6213 #include <stdlib.h>
6214 #if ((' ' & 0x0FF) == 0x020)
6215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6217 #else
6218 # define ISLOWER(c) \
6219 (('a' <= (c) && (c) <= 'i') \
6220 || ('j' <= (c) && (c) <= 'r') \
6221 || ('s' <= (c) && (c) <= 'z'))
6222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6223 #endif
6224
6225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6226 int
6227 main ()
6228 {
6229 int i;
6230 for (i = 0; i < 256; i++)
6231 if (XOR (islower (i), ISLOWER (i))
6232 || toupper (i) != TOUPPER (i))
6233 return 2;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_run "$LINENO"; then :
6238
6239 else
6240 ac_cv_header_stdc=no
6241 fi
6242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6243 conftest.$ac_objext conftest.beam conftest.$ac_ext
6244 fi
6245
6246 fi
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6249 $as_echo "$ac_cv_header_stdc" >&6; }
6250 if test $ac_cv_header_stdc = yes; then
6251
6252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6253
6254 fi
6255
6256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6258 inttypes.h stdint.h unistd.h
6259 do :
6260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6262 "
6263 eval as_val=\$$as_ac_Header
6264 if test "x$as_val" = x""yes; then :
6265 cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6268
6269 fi
6270
6271 done
6272
6273
6274 for ac_header in dlfcn.h
6275 do :
6276 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6277 "
6278 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6279 cat >>confdefs.h <<_ACEOF
6280 #define HAVE_DLFCN_H 1
6281 _ACEOF
6282
6283 fi
6284
6285 done
6286
6287
6288
6289 # Set options
6290 # Check whether --enable-static was given.
6291 if test "${enable_static+set}" = set; then :
6292 enableval=$enable_static; p=${PACKAGE-default}
6293 case $enableval in
6294 yes) enable_static=yes ;;
6295 no) enable_static=no ;;
6296 *)
6297 enable_static=no
6298 # Look at the argument we got. We use all the common list separators.
6299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6300 for pkg in $enableval; do
6301 IFS="$lt_save_ifs"
6302 if test "X$pkg" = "X$p"; then
6303 enable_static=yes
6304 fi
6305 done
6306 IFS="$lt_save_ifs"
6307 ;;
6308 esac
6309 else
6310 enable_static=no
6311 fi
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 enable_dlopen=no
6323
6324
6325 enable_win32_dll=no
6326
6327
6328 # Check whether --enable-shared was given.
6329 if test "${enable_shared+set}" = set; then :
6330 enableval=$enable_shared; p=${PACKAGE-default}
6331 case $enableval in
6332 yes) enable_shared=yes ;;
6333 no) enable_shared=no ;;
6334 *)
6335 enable_shared=no
6336 # Look at the argument we got. We use all the common list separators.
6337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6338 for pkg in $enableval; do
6339 IFS="$lt_save_ifs"
6340 if test "X$pkg" = "X$p"; then
6341 enable_shared=yes
6342 fi
6343 done
6344 IFS="$lt_save_ifs"
6345 ;;
6346 esac
6347 else
6348 enable_shared=yes
6349 fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 # Check whether --with-pic was given.
6362 if test "${with_pic+set}" = set; then :
6363 withval=$with_pic; pic_mode="$withval"
6364 else
6365 pic_mode=default
6366 fi
6367
6368
6369 test -z "$pic_mode" && pic_mode=default
6370
6371
6372
6373
6374
6375
6376
6377 # Check whether --enable-fast-install was given.
6378 if test "${enable_fast_install+set}" = set; then :
6379 enableval=$enable_fast_install; p=${PACKAGE-default}
6380 case $enableval in
6381 yes) enable_fast_install=yes ;;
6382 no) enable_fast_install=no ;;
6383 *)
6384 enable_fast_install=no
6385 # Look at the argument we got. We use all the common list separators.
6386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6387 for pkg in $enableval; do
6388 IFS="$lt_save_ifs"
6389 if test "X$pkg" = "X$p"; then
6390 enable_fast_install=yes
6391 fi
6392 done
6393 IFS="$lt_save_ifs"
6394 ;;
6395 esac
6396 else
6397 enable_fast_install=yes
6398 fi
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 # This can be used to rebuild libtool when needed
6411 LIBTOOL_DEPS="$ltmain"
6412
6413 # Always use our own libtool.
6414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 test -z "$LN_S" && LN_S="ln -s"
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 if test -n "${ZSH_VERSION+set}" ; then
6456 setopt NO_GLOB_SUBST
6457 fi
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6460 $as_echo_n "checking for objdir... " >&6; }
6461 if test "${lt_cv_objdir+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 rm -f .libs 2>/dev/null
6465 mkdir .libs 2>/dev/null
6466 if test -d .libs; then
6467 lt_cv_objdir=.libs
6468 else
6469 # MS-DOS does not allow filenames that begin with a dot.
6470 lt_cv_objdir=_libs
6471 fi
6472 rmdir .libs 2>/dev/null
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6475 $as_echo "$lt_cv_objdir" >&6; }
6476 objdir=$lt_cv_objdir
6477
6478
6479
6480
6481
6482 cat >>confdefs.h <<_ACEOF
6483 #define LT_OBJDIR "$lt_cv_objdir/"
6484 _ACEOF
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 case $host_os in
6503 aix3*)
6504 # AIX sometimes has problems with the GCC collect2 program. For some
6505 # reason, if we set the COLLECT_NAMES environment variable, the problems
6506 # vanish in a puff of smoke.
6507 if test "X${COLLECT_NAMES+set}" != Xset; then
6508 COLLECT_NAMES=
6509 export COLLECT_NAMES
6510 fi
6511 ;;
6512 esac
6513
6514 # Sed substitution that helps us do robust quoting. It backslashifies
6515 # metacharacters that are still active within double-quoted strings.
6516 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6517
6518 # Same as above, but do not quote variable references.
6519 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6520
6521 # Sed substitution to delay expansion of an escaped shell variable in a
6522 # double_quote_subst'ed string.
6523 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6524
6525 # Sed substitution to delay expansion of an escaped single quote.
6526 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6527
6528 # Sed substitution to avoid accidental globbing in evaled expressions
6529 no_glob_subst='s/\*/\\\*/g'
6530
6531 # Global variables:
6532 ofile=libtool
6533 can_build_shared=yes
6534
6535 # All known linkers require a `.a' archive for static linking (except MSVC,
6536 # which needs '.lib').
6537 libext=a
6538
6539 with_gnu_ld="$lt_cv_prog_gnu_ld"
6540
6541 old_CC="$CC"
6542 old_CFLAGS="$CFLAGS"
6543
6544 # Set sane defaults for various variables
6545 test -z "$CC" && CC=cc
6546 test -z "$LTCC" && LTCC=$CC
6547 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6548 test -z "$LD" && LD=ld
6549 test -z "$ac_objext" && ac_objext=o
6550
6551 for cc_temp in $compiler""; do
6552 case $cc_temp in
6553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6555 \-*) ;;
6556 *) break;;
6557 esac
6558 done
6559 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6560
6561
6562 # Only perform the check for file, if the check method requires it
6563 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6564 case $deplibs_check_method in
6565 file_magic*)
6566 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6568 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 case $MAGIC_CMD in
6573 [\\/*] | ?:[\\/]*)
6574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6575 ;;
6576 *)
6577 lt_save_MAGIC_CMD="$MAGIC_CMD"
6578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6580 for ac_dir in $ac_dummy; do
6581 IFS="$lt_save_ifs"
6582 test -z "$ac_dir" && ac_dir=.
6583 if test -f $ac_dir/${ac_tool_prefix}file; then
6584 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6585 if test -n "$file_magic_test_file"; then
6586 case $deplibs_check_method in
6587 "file_magic "*)
6588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6591 $EGREP "$file_magic_regex" > /dev/null; then
6592 :
6593 else
6594 cat <<_LT_EOF 1>&2
6595
6596 *** Warning: the command libtool uses to detect shared libraries,
6597 *** $file_magic_cmd, produces output that libtool cannot recognize.
6598 *** The result is that libtool may fail to recognize shared libraries
6599 *** as such. This will affect the creation of libtool libraries that
6600 *** depend on shared libraries, but programs linked with such libtool
6601 *** libraries will work regardless of this problem. Nevertheless, you
6602 *** may want to report the problem to your system manager and/or to
6603 *** bug-libtool@gnu.org
6604
6605 _LT_EOF
6606 fi ;;
6607 esac
6608 fi
6609 break
6610 fi
6611 done
6612 IFS="$lt_save_ifs"
6613 MAGIC_CMD="$lt_save_MAGIC_CMD"
6614 ;;
6615 esac
6616 fi
6617
6618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6619 if test -n "$MAGIC_CMD"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6621 $as_echo "$MAGIC_CMD" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627
6628
6629
6630
6631 if test -z "$lt_cv_path_MAGIC_CMD"; then
6632 if test -n "$ac_tool_prefix"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6634 $as_echo_n "checking for file... " >&6; }
6635 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 case $MAGIC_CMD in
6639 [\\/*] | ?:[\\/]*)
6640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6641 ;;
6642 *)
6643 lt_save_MAGIC_CMD="$MAGIC_CMD"
6644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6646 for ac_dir in $ac_dummy; do
6647 IFS="$lt_save_ifs"
6648 test -z "$ac_dir" && ac_dir=.
6649 if test -f $ac_dir/file; then
6650 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6651 if test -n "$file_magic_test_file"; then
6652 case $deplibs_check_method in
6653 "file_magic "*)
6654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6657 $EGREP "$file_magic_regex" > /dev/null; then
6658 :
6659 else
6660 cat <<_LT_EOF 1>&2
6661
6662 *** Warning: the command libtool uses to detect shared libraries,
6663 *** $file_magic_cmd, produces output that libtool cannot recognize.
6664 *** The result is that libtool may fail to recognize shared libraries
6665 *** as such. This will affect the creation of libtool libraries that
6666 *** depend on shared libraries, but programs linked with such libtool
6667 *** libraries will work regardless of this problem. Nevertheless, you
6668 *** may want to report the problem to your system manager and/or to
6669 *** bug-libtool@gnu.org
6670
6671 _LT_EOF
6672 fi ;;
6673 esac
6674 fi
6675 break
6676 fi
6677 done
6678 IFS="$lt_save_ifs"
6679 MAGIC_CMD="$lt_save_MAGIC_CMD"
6680 ;;
6681 esac
6682 fi
6683
6684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6685 if test -n "$MAGIC_CMD"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6687 $as_echo "$MAGIC_CMD" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694 else
6695 MAGIC_CMD=:
6696 fi
6697 fi
6698
6699 fi
6700 ;;
6701 esac
6702
6703 # Use C for the default configuration in the libtool script
6704
6705 lt_save_CC="$CC"
6706 ac_ext=c
6707 ac_cpp='$CPP $CPPFLAGS'
6708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6711
6712
6713 # Source file extension for C test sources.
6714 ac_ext=c
6715
6716 # Object file extension for compiled C test sources.
6717 objext=o
6718 objext=$objext
6719
6720 # Code to be used in simple compile tests
6721 lt_simple_compile_test_code="int some_variable = 0;"
6722
6723 # Code to be used in simple link tests
6724 lt_simple_link_test_code='int main(){return(0);}'
6725
6726
6727
6728
6729
6730
6731
6732 # If no C compiler was specified, use CC.
6733 LTCC=${LTCC-"$CC"}
6734
6735 # If no C compiler flags were specified, use CFLAGS.
6736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6737
6738 # Allow CC to be a program name with arguments.
6739 compiler=$CC
6740
6741 # Save the default compiler, since it gets overwritten when the other
6742 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6743 compiler_DEFAULT=$CC
6744
6745 # save warnings/boilerplate of simple test code
6746 ac_outfile=conftest.$ac_objext
6747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6749 _lt_compiler_boilerplate=`cat conftest.err`
6750 $RM conftest*
6751
6752 ac_outfile=conftest.$ac_objext
6753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6755 _lt_linker_boilerplate=`cat conftest.err`
6756 $RM -r conftest*
6757
6758
6759 if test -n "$compiler"; then
6760
6761 lt_prog_compiler_no_builtin_flag=
6762
6763 if test "$GCC" = yes; then
6764 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6768 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 lt_cv_prog_compiler_rtti_exceptions=no
6772 ac_outfile=conftest.$ac_objext
6773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6774 lt_compiler_flag="-fno-rtti -fno-exceptions"
6775 # Insert the option either (1) after the last *FLAGS variable, or
6776 # (2) before a word containing "conftest.", or (3) at the end.
6777 # Note that $ac_compile itself does not contain backslashes and begins
6778 # with a dollar sign (not a hyphen), so the echo should work correctly.
6779 # The option is referenced via a variable to avoid confusing sed.
6780 lt_compile=`echo "$ac_compile" | $SED \
6781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6783 -e 's:$: $lt_compiler_flag:'`
6784 (eval echo "\"\$as_me:6784: $lt_compile\"" >&5)
6785 (eval "$lt_compile" 2>conftest.err)
6786 ac_status=$?
6787 cat conftest.err >&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 if (exit $ac_status) && test -s "$ac_outfile"; then
6790 # The compiler can only warn and ignore the option if not recognized
6791 # So say no if there are warnings other than the usual output.
6792 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6795 lt_cv_prog_compiler_rtti_exceptions=yes
6796 fi
6797 fi
6798 $RM conftest*
6799
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6803
6804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6806 else
6807 :
6808 fi
6809
6810 fi
6811
6812
6813
6814
6815
6816
6817 lt_prog_compiler_wl=
6818 lt_prog_compiler_pic=
6819 lt_prog_compiler_static=
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6823
6824 if test "$GCC" = yes; then
6825 lt_prog_compiler_wl='-Wl,'
6826 lt_prog_compiler_static='-static'
6827
6828 case $host_os in
6829 aix*)
6830 # All AIX code is PIC.
6831 if test "$host_cpu" = ia64; then
6832 # AIX 5 now supports IA64 processor
6833 lt_prog_compiler_static='-Bstatic'
6834 fi
6835 ;;
6836
6837 amigaos*)
6838 case $host_cpu in
6839 powerpc)
6840 # see comment about AmigaOS4 .so support
6841 lt_prog_compiler_pic='-fPIC'
6842 ;;
6843 m68k)
6844 # FIXME: we need at least 68020 code to build shared libraries, but
6845 # adding the `-m68020' flag to GCC prevents building anything better,
6846 # like `-m68040'.
6847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6848 ;;
6849 esac
6850 ;;
6851
6852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6853 # PIC is the default for these OSes.
6854 ;;
6855
6856 mingw* | cygwin* | pw32* | os2* | cegcc*)
6857 # This hack is so that the source file can tell whether it is being
6858 # built for inclusion in a dll (and should export symbols for example).
6859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6860 # (--disable-auto-import) libraries
6861 lt_prog_compiler_pic='-DDLL_EXPORT'
6862 ;;
6863
6864 darwin* | rhapsody*)
6865 # PIC is the default on this platform
6866 # Common symbols not allowed in MH_DYLIB files
6867 lt_prog_compiler_pic='-fno-common'
6868 ;;
6869
6870 hpux*)
6871 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6872 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6873 # sets the default TLS model and affects inlining.
6874 case $host_cpu in
6875 hppa*64*)
6876 # +Z the default
6877 ;;
6878 *)
6879 lt_prog_compiler_pic='-fPIC'
6880 ;;
6881 esac
6882 ;;
6883
6884 interix[3-9]*)
6885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6886 # Instead, we relocate shared libraries at runtime.
6887 ;;
6888
6889 msdosdjgpp*)
6890 # Just because we use GCC doesn't mean we suddenly get shared libraries
6891 # on systems that don't support them.
6892 lt_prog_compiler_can_build_shared=no
6893 enable_shared=no
6894 ;;
6895
6896 *nto* | *qnx*)
6897 # QNX uses GNU C++, but need to define -shared option too, otherwise
6898 # it will coredump.
6899 lt_prog_compiler_pic='-fPIC -shared'
6900 ;;
6901
6902 sysv4*MP*)
6903 if test -d /usr/nec; then
6904 lt_prog_compiler_pic=-Kconform_pic
6905 fi
6906 ;;
6907
6908 *)
6909 lt_prog_compiler_pic='-fPIC'
6910 ;;
6911 esac
6912 else
6913 # PORTME Check for flag to pass linker flags through the system compiler.
6914 case $host_os in
6915 aix*)
6916 lt_prog_compiler_wl='-Wl,'
6917 if test "$host_cpu" = ia64; then
6918 # AIX 5 now supports IA64 processor
6919 lt_prog_compiler_static='-Bstatic'
6920 else
6921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6922 fi
6923 ;;
6924
6925 mingw* | cygwin* | pw32* | os2* | cegcc*)
6926 # This hack is so that the source file can tell whether it is being
6927 # built for inclusion in a dll (and should export symbols for example).
6928 lt_prog_compiler_pic='-DDLL_EXPORT'
6929 ;;
6930
6931 hpux9* | hpux10* | hpux11*)
6932 lt_prog_compiler_wl='-Wl,'
6933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6934 # not for PA HP-UX.
6935 case $host_cpu in
6936 hppa*64*|ia64*)
6937 # +Z the default
6938 ;;
6939 *)
6940 lt_prog_compiler_pic='+Z'
6941 ;;
6942 esac
6943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6944 lt_prog_compiler_static='${wl}-a ${wl}archive'
6945 ;;
6946
6947 irix5* | irix6* | nonstopux*)
6948 lt_prog_compiler_wl='-Wl,'
6949 # PIC (with -KPIC) is the default.
6950 lt_prog_compiler_static='-non_shared'
6951 ;;
6952
6953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6954 case $cc_basename in
6955 # old Intel for x86_64 which still supported -KPIC.
6956 ecc*)
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_pic='-KPIC'
6959 lt_prog_compiler_static='-static'
6960 ;;
6961 # icc used to be incompatible with GCC.
6962 # ICC 10 doesn't accept -KPIC any more.
6963 icc* | ifort*)
6964 lt_prog_compiler_wl='-Wl,'
6965 lt_prog_compiler_pic='-fPIC'
6966 lt_prog_compiler_static='-static'
6967 ;;
6968 # Lahey Fortran 8.1.
6969 lf95*)
6970 lt_prog_compiler_wl='-Wl,'
6971 lt_prog_compiler_pic='--shared'
6972 lt_prog_compiler_static='--static'
6973 ;;
6974 pgcc* | pgf77* | pgf90* | pgf95*)
6975 # Portland Group compilers (*not* the Pentium gcc compiler,
6976 # which looks to be a dead project)
6977 lt_prog_compiler_wl='-Wl,'
6978 lt_prog_compiler_pic='-fpic'
6979 lt_prog_compiler_static='-Bstatic'
6980 ;;
6981 ccc*)
6982 lt_prog_compiler_wl='-Wl,'
6983 # All Alpha code is PIC.
6984 lt_prog_compiler_static='-non_shared'
6985 ;;
6986 xl*)
6987 # IBM XL C 8.0/Fortran 10.1 on PPC
6988 lt_prog_compiler_wl='-Wl,'
6989 lt_prog_compiler_pic='-qpic'
6990 lt_prog_compiler_static='-qstaticlink'
6991 ;;
6992 *)
6993 case `$CC -V 2>&1 | sed 5q` in
6994 *Sun\ C*)
6995 # Sun C 5.9
6996 lt_prog_compiler_pic='-KPIC'
6997 lt_prog_compiler_static='-Bstatic'
6998 lt_prog_compiler_wl='-Wl,'
6999 ;;
7000 *Sun\ F*)
7001 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7002 lt_prog_compiler_pic='-KPIC'
7003 lt_prog_compiler_static='-Bstatic'
7004 lt_prog_compiler_wl=''
7005 ;;
7006 esac
7007 ;;
7008 esac
7009 ;;
7010
7011 newsos6)
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-Bstatic'
7014 ;;
7015
7016 *nto* | *qnx*)
7017 # QNX uses GNU C++, but need to define -shared option too, otherwise
7018 # it will coredump.
7019 lt_prog_compiler_pic='-fPIC -shared'
7020 ;;
7021
7022 osf3* | osf4* | osf5*)
7023 lt_prog_compiler_wl='-Wl,'
7024 # All OSF/1 code is PIC.
7025 lt_prog_compiler_static='-non_shared'
7026 ;;
7027
7028 rdos*)
7029 lt_prog_compiler_static='-non_shared'
7030 ;;
7031
7032 solaris*)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 case $cc_basename in
7036 f77* | f90* | f95*)
7037 lt_prog_compiler_wl='-Qoption ld ';;
7038 *)
7039 lt_prog_compiler_wl='-Wl,';;
7040 esac
7041 ;;
7042
7043 sunos4*)
7044 lt_prog_compiler_wl='-Qoption ld '
7045 lt_prog_compiler_pic='-PIC'
7046 lt_prog_compiler_static='-Bstatic'
7047 ;;
7048
7049 sysv4 | sysv4.2uw2* | sysv4.3*)
7050 lt_prog_compiler_wl='-Wl,'
7051 lt_prog_compiler_pic='-KPIC'
7052 lt_prog_compiler_static='-Bstatic'
7053 ;;
7054
7055 sysv4*MP*)
7056 if test -d /usr/nec ;then
7057 lt_prog_compiler_pic='-Kconform_pic'
7058 lt_prog_compiler_static='-Bstatic'
7059 fi
7060 ;;
7061
7062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7063 lt_prog_compiler_wl='-Wl,'
7064 lt_prog_compiler_pic='-KPIC'
7065 lt_prog_compiler_static='-Bstatic'
7066 ;;
7067
7068 unicos*)
7069 lt_prog_compiler_wl='-Wl,'
7070 lt_prog_compiler_can_build_shared=no
7071 ;;
7072
7073 uts4*)
7074 lt_prog_compiler_pic='-pic'
7075 lt_prog_compiler_static='-Bstatic'
7076 ;;
7077
7078 *)
7079 lt_prog_compiler_can_build_shared=no
7080 ;;
7081 esac
7082 fi
7083
7084 case $host_os in
7085 # For platforms which do not support PIC, -DPIC is meaningless:
7086 *djgpp*)
7087 lt_prog_compiler_pic=
7088 ;;
7089 *)
7090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7091 ;;
7092 esac
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7094 $as_echo "$lt_prog_compiler_pic" >&6; }
7095
7096
7097
7098
7099
7100
7101 #
7102 # Check to make sure the PIC flag actually works.
7103 #
7104 if test -n "$lt_prog_compiler_pic"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7107 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 lt_cv_prog_compiler_pic_works=no
7111 ac_outfile=conftest.$ac_objext
7112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7114 # Insert the option either (1) after the last *FLAGS variable, or
7115 # (2) before a word containing "conftest.", or (3) at the end.
7116 # Note that $ac_compile itself does not contain backslashes and begins
7117 # with a dollar sign (not a hyphen), so the echo should work correctly.
7118 # The option is referenced via a variable to avoid confusing sed.
7119 lt_compile=`echo "$ac_compile" | $SED \
7120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122 -e 's:$: $lt_compiler_flag:'`
7123 (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
7124 (eval "$lt_compile" 2>conftest.err)
7125 ac_status=$?
7126 cat conftest.err >&5
7127 echo "$as_me:7127: \$? = $ac_status" >&5
7128 if (exit $ac_status) && test -s "$ac_outfile"; then
7129 # The compiler can only warn and ignore the option if not recognized
7130 # So say no if there are warnings other than the usual output.
7131 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7134 lt_cv_prog_compiler_pic_works=yes
7135 fi
7136 fi
7137 $RM conftest*
7138
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7141 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7142
7143 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7144 case $lt_prog_compiler_pic in
7145 "" | " "*) ;;
7146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7147 esac
7148 else
7149 lt_prog_compiler_pic=
7150 lt_prog_compiler_can_build_shared=no
7151 fi
7152
7153 fi
7154
7155
7156
7157
7158
7159
7160 #
7161 # Check to make sure the static flag actually works.
7162 #
7163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7166 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 lt_cv_prog_compiler_static_works=no
7170 save_LDFLAGS="$LDFLAGS"
7171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7174 # The linker can only warn and ignore the option if not recognized
7175 # So say no if there are warnings
7176 if test -s conftest.err; then
7177 # Append any errors to the config.log.
7178 cat conftest.err 1>&5
7179 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7181 if diff conftest.exp conftest.er2 >/dev/null; then
7182 lt_cv_prog_compiler_static_works=yes
7183 fi
7184 else
7185 lt_cv_prog_compiler_static_works=yes
7186 fi
7187 fi
7188 $RM -r conftest*
7189 LDFLAGS="$save_LDFLAGS"
7190
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7193 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7194
7195 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7196 :
7197 else
7198 lt_prog_compiler_static=
7199 fi
7200
7201
7202
7203
7204
7205
7206
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7209 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 lt_cv_prog_compiler_c_o=no
7213 $RM -r conftest 2>/dev/null
7214 mkdir conftest
7215 cd conftest
7216 mkdir out
7217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7218
7219 lt_compiler_flag="-o out/conftest2.$ac_objext"
7220 # Insert the option either (1) after the last *FLAGS variable, or
7221 # (2) before a word containing "conftest.", or (3) at the end.
7222 # Note that $ac_compile itself does not contain backslashes and begins
7223 # with a dollar sign (not a hyphen), so the echo should work correctly.
7224 lt_compile=`echo "$ac_compile" | $SED \
7225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7227 -e 's:$: $lt_compiler_flag:'`
7228 (eval echo "\"\$as_me:7228: $lt_compile\"" >&5)
7229 (eval "$lt_compile" 2>out/conftest.err)
7230 ac_status=$?
7231 cat out/conftest.err >&5
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7234 then
7235 # The compiler can only warn and ignore the option if not recognized
7236 # So say no if there are warnings
7237 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7240 lt_cv_prog_compiler_c_o=yes
7241 fi
7242 fi
7243 chmod u+w . 2>&5
7244 $RM conftest*
7245 # SGI C++ compiler will create directory out/ii_files/ for
7246 # template instantiation
7247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7248 $RM out/* && rmdir out
7249 cd ..
7250 $RM -r conftest
7251 $RM conftest*
7252
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7256
7257
7258
7259
7260
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7264 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 lt_cv_prog_compiler_c_o=no
7268 $RM -r conftest 2>/dev/null
7269 mkdir conftest
7270 cd conftest
7271 mkdir out
7272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7273
7274 lt_compiler_flag="-o out/conftest2.$ac_objext"
7275 # Insert the option either (1) after the last *FLAGS variable, or
7276 # (2) before a word containing "conftest.", or (3) at the end.
7277 # Note that $ac_compile itself does not contain backslashes and begins
7278 # with a dollar sign (not a hyphen), so the echo should work correctly.
7279 lt_compile=`echo "$ac_compile" | $SED \
7280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7282 -e 's:$: $lt_compiler_flag:'`
7283 (eval echo "\"\$as_me:7283: $lt_compile\"" >&5)
7284 (eval "$lt_compile" 2>out/conftest.err)
7285 ac_status=$?
7286 cat out/conftest.err >&5
7287 echo "$as_me:7287: \$? = $ac_status" >&5
7288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7289 then
7290 # The compiler can only warn and ignore the option if not recognized
7291 # So say no if there are warnings
7292 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7295 lt_cv_prog_compiler_c_o=yes
7296 fi
7297 fi
7298 chmod u+w . 2>&5
7299 $RM conftest*
7300 # SGI C++ compiler will create directory out/ii_files/ for
7301 # template instantiation
7302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7303 $RM out/* && rmdir out
7304 cd ..
7305 $RM -r conftest
7306 $RM conftest*
7307
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7310 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7311
7312
7313
7314
7315 hard_links="nottested"
7316 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7317 # do not overwrite the value of need_locks provided by the user
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7319 $as_echo_n "checking if we can lock with hard links... " >&6; }
7320 hard_links=yes
7321 $RM conftest*
7322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7323 touch conftest.a
7324 ln conftest.a conftest.b 2>&5 || hard_links=no
7325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7327 $as_echo "$hard_links" >&6; }
7328 if test "$hard_links" = no; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7331 need_locks=warn
7332 fi
7333 else
7334 need_locks=no
7335 fi
7336
7337
7338
7339
7340
7341
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7344
7345 runpath_var=
7346 allow_undefined_flag=
7347 always_export_symbols=no
7348 archive_cmds=
7349 archive_expsym_cmds=
7350 compiler_needs_object=no
7351 enable_shared_with_static_runtimes=no
7352 export_dynamic_flag_spec=
7353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7354 hardcode_automatic=no
7355 hardcode_direct=no
7356 hardcode_direct_absolute=no
7357 hardcode_libdir_flag_spec=
7358 hardcode_libdir_flag_spec_ld=
7359 hardcode_libdir_separator=
7360 hardcode_minus_L=no
7361 hardcode_shlibpath_var=unsupported
7362 inherit_rpath=no
7363 link_all_deplibs=unknown
7364 module_cmds=
7365 module_expsym_cmds=
7366 old_archive_from_new_cmds=
7367 old_archive_from_expsyms_cmds=
7368 thread_safe_flag_spec=
7369 whole_archive_flag_spec=
7370 # include_expsyms should be a list of space-separated symbols to be *always*
7371 # included in the symbol list
7372 include_expsyms=
7373 # exclude_expsyms can be an extended regexp of symbols to exclude
7374 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7375 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7376 # as well as any symbol that contains `d'.
7377 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7378 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7379 # platforms (ab)use it in PIC code, but their linkers get confused if
7380 # the symbol is explicitly referenced. Since portable code cannot
7381 # rely on this symbol name, it's probably fine to never include it in
7382 # preloaded symbol tables.
7383 # Exclude shared library initialization/finalization symbols.
7384 extract_expsyms_cmds=
7385
7386 case $host_os in
7387 cygwin* | mingw* | pw32* | cegcc*)
7388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7389 # When not using gcc, we currently assume that we are using
7390 # Microsoft Visual C++.
7391 if test "$GCC" != yes; then
7392 with_gnu_ld=no
7393 fi
7394 ;;
7395 interix*)
7396 # we just hope/assume this is gcc and not c89 (= MSVC++)
7397 with_gnu_ld=yes
7398 ;;
7399 openbsd*)
7400 with_gnu_ld=no
7401 ;;
7402 linux* | k*bsd*-gnu)
7403 link_all_deplibs=no
7404 ;;
7405 esac
7406
7407 ld_shlibs=yes
7408 if test "$with_gnu_ld" = yes; then
7409 # If archive_cmds runs LD, not CC, wlarc should be empty
7410 wlarc='${wl}'
7411
7412 # Set some defaults for GNU ld with shared library support. These
7413 # are reset later if shared libraries are not supported. Putting them
7414 # here allows them to be overridden if necessary.
7415 runpath_var=LD_RUN_PATH
7416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7417 export_dynamic_flag_spec='${wl}--export-dynamic'
7418 # ancient GNU ld didn't support --whole-archive et. al.
7419 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7421 else
7422 whole_archive_flag_spec=
7423 fi
7424 supports_anon_versioning=no
7425 case `$LD -v 2>&1` in
7426 *GNU\ gold*) supports_anon_versioning=yes ;;
7427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7430 *\ 2.11.*) ;; # other 2.11 versions
7431 *) supports_anon_versioning=yes ;;
7432 esac
7433
7434 # See if GNU ld supports shared libraries.
7435 case $host_os in
7436 aix[3-9]*)
7437 # On AIX/PPC, the GNU linker is very broken
7438 if test "$host_cpu" != ia64; then
7439 ld_shlibs=no
7440 cat <<_LT_EOF 1>&2
7441
7442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7443 *** to be unable to reliably create shared libraries on AIX.
7444 *** Therefore, libtool is disabling shared libraries support. If you
7445 *** really care for shared libraries, you may want to modify your PATH
7446 *** so that a non-GNU linker is found, and then restart.
7447
7448 _LT_EOF
7449 fi
7450 ;;
7451
7452 amigaos*)
7453 case $host_cpu in
7454 powerpc)
7455 # see comment about AmigaOS4 .so support
7456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7457 archive_expsym_cmds=''
7458 ;;
7459 m68k)
7460 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)'
7461 hardcode_libdir_flag_spec='-L$libdir'
7462 hardcode_minus_L=yes
7463 ;;
7464 esac
7465 ;;
7466
7467 beos*)
7468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7469 allow_undefined_flag=unsupported
7470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7471 # support --undefined. This deserves some investigation. FIXME
7472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7473 else
7474 ld_shlibs=no
7475 fi
7476 ;;
7477
7478 cygwin* | mingw* | pw32* | cegcc*)
7479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7480 # as there is no search path for DLLs.
7481 hardcode_libdir_flag_spec='-L$libdir'
7482 allow_undefined_flag=unsupported
7483 always_export_symbols=no
7484 enable_shared_with_static_runtimes=yes
7485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7486
7487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7489 # If the export-symbols file already is a .def file (1st line
7490 # is EXPORTS), use it as is; otherwise, prepend...
7491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7492 cp $export_symbols $output_objdir/$soname.def;
7493 else
7494 echo EXPORTS > $output_objdir/$soname.def;
7495 cat $export_symbols >> $output_objdir/$soname.def;
7496 fi~
7497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7498 else
7499 ld_shlibs=no
7500 fi
7501 ;;
7502
7503 interix[3-9]*)
7504 hardcode_direct=no
7505 hardcode_shlibpath_var=no
7506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7507 export_dynamic_flag_spec='${wl}-E'
7508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7509 # Instead, shared libraries are loaded at an image base (0x10000000 by
7510 # default) and relocated if they conflict, which is a slow very memory
7511 # consuming and fragmenting process. To avoid this, we pick a random,
7512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7515 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'
7516 ;;
7517
7518 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7519 tmp_diet=no
7520 if test "$host_os" = linux-dietlibc; then
7521 case $cc_basename in
7522 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7523 esac
7524 fi
7525 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7526 && test "$tmp_diet" = no
7527 then
7528 tmp_addflag=
7529 tmp_sharedflag='-shared'
7530 case $cc_basename,$host_cpu in
7531 pgcc*) # Portland Group C compiler
7532 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'
7533 tmp_addflag=' $pic_flag'
7534 ;;
7535 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
7538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7539 tmp_addflag=' -i_dynamic' ;;
7540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7541 tmp_addflag=' -i_dynamic -nofor_main' ;;
7542 ifc* | ifort*) # Intel Fortran compiler
7543 tmp_addflag=' -nofor_main' ;;
7544 lf95*) # Lahey Fortran 8.1
7545 whole_archive_flag_spec=
7546 tmp_sharedflag='--shared' ;;
7547 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7548 tmp_sharedflag='-qmkshrobj'
7549 tmp_addflag= ;;
7550 esac
7551 case `$CC -V 2>&1 | sed 5q` in
7552 *Sun\ C*) # Sun C 5.9
7553 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'
7554 compiler_needs_object=yes
7555 tmp_sharedflag='-G' ;;
7556 *Sun\ F*) # Sun Fortran 8.3
7557 tmp_sharedflag='-G' ;;
7558 esac
7559 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7560
7561 if test "x$supports_anon_versioning" = xyes; then
7562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7564 echo "local: *; };" >> $output_objdir/$libname.ver~
7565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7566 fi
7567
7568 case $cc_basename in
7569 xlf*)
7570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7572 hardcode_libdir_flag_spec=
7573 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7574 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7575 if test "x$supports_anon_versioning" = xyes; then
7576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7578 echo "local: *; };" >> $output_objdir/$libname.ver~
7579 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7580 fi
7581 ;;
7582 esac
7583 else
7584 ld_shlibs=no
7585 fi
7586 ;;
7587
7588 netbsd* | netbsdelf*-gnu)
7589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7591 wlarc=
7592 else
7593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7595 fi
7596 ;;
7597
7598 solaris*)
7599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7600 ld_shlibs=no
7601 cat <<_LT_EOF 1>&2
7602
7603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7604 *** create shared libraries on Solaris systems. Therefore, libtool
7605 *** is disabling shared libraries support. We urge you to upgrade GNU
7606 *** binutils to release 2.9.1 or newer. Another option is to modify
7607 *** your PATH or compiler configuration so that the native linker is
7608 *** used, and then restart.
7609
7610 _LT_EOF
7611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7614 else
7615 ld_shlibs=no
7616 fi
7617 ;;
7618
7619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7620 case `$LD -v 2>&1` in
7621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7622 ld_shlibs=no
7623 cat <<_LT_EOF 1>&2
7624
7625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7626 *** reliably create shared libraries on SCO systems. Therefore, libtool
7627 *** is disabling shared libraries support. We urge you to upgrade GNU
7628 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7629 *** your PATH or compiler configuration so that the native linker is
7630 *** used, and then restart.
7631
7632 _LT_EOF
7633 ;;
7634 *)
7635 # For security reasons, it is highly recommended that you always
7636 # use absolute paths for naming shared libraries, and exclude the
7637 # DT_RUNPATH tag from executables and libraries. But doing so
7638 # requires that you compile everything twice, which is a pain.
7639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7643 else
7644 ld_shlibs=no
7645 fi
7646 ;;
7647 esac
7648 ;;
7649
7650 sunos4*)
7651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7652 wlarc=
7653 hardcode_direct=yes
7654 hardcode_shlibpath_var=no
7655 ;;
7656
7657 *)
7658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 else
7662 ld_shlibs=no
7663 fi
7664 ;;
7665 esac
7666
7667 if test "$ld_shlibs" = no; then
7668 runpath_var=
7669 hardcode_libdir_flag_spec=
7670 export_dynamic_flag_spec=
7671 whole_archive_flag_spec=
7672 fi
7673 else
7674 # PORTME fill in a description of your system's linker (not GNU ld)
7675 case $host_os in
7676 aix3*)
7677 allow_undefined_flag=unsupported
7678 always_export_symbols=yes
7679 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'
7680 # Note: this linker hardcodes the directories in LIBPATH if there
7681 # are no directories specified by -L.
7682 hardcode_minus_L=yes
7683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7684 # Neither direct hardcoding nor static linking is supported with a
7685 # broken collect2.
7686 hardcode_direct=unsupported
7687 fi
7688 ;;
7689
7690 aix[4-9]*)
7691 if test "$host_cpu" = ia64; then
7692 # On IA64, the linker does run time linking by default, so we don't
7693 # have to do anything special.
7694 aix_use_runtimelinking=no
7695 exp_sym_flag='-Bexport'
7696 no_entry_flag=""
7697 else
7698 # If we're using GNU nm, then we don't want the "-C" option.
7699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7701 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'
7702 else
7703 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'
7704 fi
7705 aix_use_runtimelinking=no
7706
7707 # Test if we are trying to use run time linking or normal
7708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7709 # need to do runtime linking.
7710 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7711 for ld_flag in $LDFLAGS; do
7712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7713 aix_use_runtimelinking=yes
7714 break
7715 fi
7716 done
7717 ;;
7718 esac
7719
7720 exp_sym_flag='-bexport'
7721 no_entry_flag='-bnoentry'
7722 fi
7723
7724 # When large executables or shared objects are built, AIX ld can
7725 # have problems creating the table of contents. If linking a library
7726 # or program results in "error TOC overflow" add -mminimal-toc to
7727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7729
7730 archive_cmds=''
7731 hardcode_direct=yes
7732 hardcode_direct_absolute=yes
7733 hardcode_libdir_separator=':'
7734 link_all_deplibs=yes
7735 file_list_spec='${wl}-f,'
7736
7737 if test "$GCC" = yes; then
7738 case $host_os in aix4.[012]|aix4.[012].*)
7739 # We only want to do this on AIX 4.2 and lower, the check
7740 # below for broken collect2 doesn't work under 4.3+
7741 collect2name=`${CC} -print-prog-name=collect2`
7742 if test -f "$collect2name" &&
7743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7744 then
7745 # We have reworked collect2
7746 :
7747 else
7748 # We have old collect2
7749 hardcode_direct=unsupported
7750 # It fails to find uninstalled libraries when the uninstalled
7751 # path is not listed in the libpath. Setting hardcode_minus_L
7752 # to unsupported forces relinking
7753 hardcode_minus_L=yes
7754 hardcode_libdir_flag_spec='-L$libdir'
7755 hardcode_libdir_separator=
7756 fi
7757 ;;
7758 esac
7759 shared_flag='-shared'
7760 if test "$aix_use_runtimelinking" = yes; then
7761 shared_flag="$shared_flag "'${wl}-G'
7762 fi
7763 link_all_deplibs=no
7764 else
7765 # not using gcc
7766 if test "$host_cpu" = ia64; then
7767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7768 # chokes on -Wl,-G. The following line is correct:
7769 shared_flag='-G'
7770 else
7771 if test "$aix_use_runtimelinking" = yes; then
7772 shared_flag='${wl}-G'
7773 else
7774 shared_flag='${wl}-bM:SRE'
7775 fi
7776 fi
7777 fi
7778
7779 export_dynamic_flag_spec='${wl}-bexpall'
7780 # It seems that -bexpall does not export symbols beginning with
7781 # underscore (_), so it is better to generate a list of symbols to export.
7782 always_export_symbols=yes
7783 if test "$aix_use_runtimelinking" = yes; then
7784 # Warning - without using the other runtime loading flags (-brtl),
7785 # -berok will link without error, but may produce a broken library.
7786 allow_undefined_flag='-berok'
7787 # Determine the default libpath from the value encoded in an
7788 # empty executable.
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791
7792 int
7793 main ()
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801
7802 lt_aix_libpath_sed='
7803 /Import File Strings/,/^$/ {
7804 /^0/ {
7805 s/^0 *\(.*\)$/\1/
7806 p
7807 }
7808 }'
7809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7810 # Check for a 64-bit object if we didn't find anything.
7811 if test -z "$aix_libpath"; then
7812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7813 fi
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7818
7819 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7820 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"
7821 else
7822 if test "$host_cpu" = ia64; then
7823 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7824 allow_undefined_flag="-z nodefs"
7825 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"
7826 else
7827 # Determine the default libpath from the value encoded in an
7828 # empty executable.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831
7832 int
7833 main ()
7834 {
7835
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"; then :
7841
7842 lt_aix_libpath_sed='
7843 /Import File Strings/,/^$/ {
7844 /^0/ {
7845 s/^0 *\(.*\)$/\1/
7846 p
7847 }
7848 }'
7849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7850 # Check for a 64-bit object if we didn't find anything.
7851 if test -z "$aix_libpath"; then
7852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7853 fi
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7858
7859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7860 # Warning - without using the other run time loading flags,
7861 # -berok will link without error, but may produce a broken library.
7862 no_undefined_flag=' ${wl}-bernotok'
7863 allow_undefined_flag=' ${wl}-berok'
7864 # Exported symbols can be pulled into shared objects from archives
7865 whole_archive_flag_spec='$convenience'
7866 archive_cmds_need_lc=yes
7867 # This is similar to how AIX traditionally builds its shared libraries.
7868 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'
7869 fi
7870 fi
7871 ;;
7872
7873 amigaos*)
7874 case $host_cpu in
7875 powerpc)
7876 # see comment about AmigaOS4 .so support
7877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7878 archive_expsym_cmds=''
7879 ;;
7880 m68k)
7881 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)'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_minus_L=yes
7884 ;;
7885 esac
7886 ;;
7887
7888 bsdi[45]*)
7889 export_dynamic_flag_spec=-rdynamic
7890 ;;
7891
7892 cygwin* | mingw* | pw32* | cegcc*)
7893 # When not using gcc, we currently assume that we are using
7894 # Microsoft Visual C++.
7895 # hardcode_libdir_flag_spec is actually meaningless, as there is
7896 # no search path for DLLs.
7897 hardcode_libdir_flag_spec=' '
7898 allow_undefined_flag=unsupported
7899 # Tell ltmain to make .lib files, not .a files.
7900 libext=lib
7901 # Tell ltmain to make .dll files, not .so files.
7902 shrext_cmds=".dll"
7903 # FIXME: Setting linknames here is a bad hack.
7904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7905 # The linker will automatically build a .lib file if we build a DLL.
7906 old_archive_from_new_cmds='true'
7907 # FIXME: Should let the user specify the lib program.
7908 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7909 fix_srcfile_path='`cygpath -w "$srcfile"`'
7910 enable_shared_with_static_runtimes=yes
7911 ;;
7912
7913 darwin* | rhapsody*)
7914
7915
7916 archive_cmds_need_lc=no
7917 hardcode_direct=no
7918 hardcode_automatic=yes
7919 hardcode_shlibpath_var=unsupported
7920 whole_archive_flag_spec=''
7921 link_all_deplibs=yes
7922 allow_undefined_flag="$_lt_dar_allow_undefined"
7923 case $cc_basename in
7924 ifort*) _lt_dar_can_shared=yes ;;
7925 *) _lt_dar_can_shared=$GCC ;;
7926 esac
7927 if test "$_lt_dar_can_shared" = "yes"; then
7928 output_verbose_link_cmd=echo
7929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7931 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}"
7932 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}"
7933
7934 else
7935 ld_shlibs=no
7936 fi
7937
7938 ;;
7939
7940 dgux*)
7941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942 hardcode_libdir_flag_spec='-L$libdir'
7943 hardcode_shlibpath_var=no
7944 ;;
7945
7946 freebsd1*)
7947 ld_shlibs=no
7948 ;;
7949
7950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7951 # support. Future versions do this automatically, but an explicit c++rt0.o
7952 # does not break anything, and helps significantly (at the cost of a little
7953 # extra space).
7954 freebsd2.2*)
7955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7956 hardcode_libdir_flag_spec='-R$libdir'
7957 hardcode_direct=yes
7958 hardcode_shlibpath_var=no
7959 ;;
7960
7961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7962 freebsd2*)
7963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964 hardcode_direct=yes
7965 hardcode_minus_L=yes
7966 hardcode_shlibpath_var=no
7967 ;;
7968
7969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7970 freebsd* | dragonfly*)
7971 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7972 hardcode_libdir_flag_spec='-R$libdir'
7973 hardcode_direct=yes
7974 hardcode_shlibpath_var=no
7975 ;;
7976
7977 hpux9*)
7978 if test "$GCC" = yes; then
7979 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'
7980 else
7981 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'
7982 fi
7983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7984 hardcode_libdir_separator=:
7985 hardcode_direct=yes
7986
7987 # hardcode_minus_L: Not really in the search PATH,
7988 # but as the default location of the library.
7989 hardcode_minus_L=yes
7990 export_dynamic_flag_spec='${wl}-E'
7991 ;;
7992
7993 hpux10*)
7994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7995 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7996 else
7997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7998 fi
7999 if test "$with_gnu_ld" = no; then
8000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8001 hardcode_libdir_flag_spec_ld='+b $libdir'
8002 hardcode_libdir_separator=:
8003 hardcode_direct=yes
8004 hardcode_direct_absolute=yes
8005 export_dynamic_flag_spec='${wl}-E'
8006 # hardcode_minus_L: Not really in the search PATH,
8007 # but as the default location of the library.
8008 hardcode_minus_L=yes
8009 fi
8010 ;;
8011
8012 hpux11*)
8013 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8014 case $host_cpu in
8015 hppa*64*)
8016 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 ;;
8018 ia64*)
8019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8020 ;;
8021 *)
8022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8023 ;;
8024 esac
8025 else
8026 case $host_cpu in
8027 hppa*64*)
8028 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8029 ;;
8030 ia64*)
8031 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8032 ;;
8033 *)
8034 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8035 ;;
8036 esac
8037 fi
8038 if test "$with_gnu_ld" = no; then
8039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8040 hardcode_libdir_separator=:
8041
8042 case $host_cpu in
8043 hppa*64*|ia64*)
8044 hardcode_direct=no
8045 hardcode_shlibpath_var=no
8046 ;;
8047 *)
8048 hardcode_direct=yes
8049 hardcode_direct_absolute=yes
8050 export_dynamic_flag_spec='${wl}-E'
8051
8052 # hardcode_minus_L: Not really in the search PATH,
8053 # but as the default location of the library.
8054 hardcode_minus_L=yes
8055 ;;
8056 esac
8057 fi
8058 ;;
8059
8060 irix5* | irix6* | nonstopux*)
8061 if test "$GCC" = yes; then
8062 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'
8063 # Try to use the -exported_symbol ld option, if it does not
8064 # work, assume that -exports_file does not work either and
8065 # implicitly export all symbols.
8066 save_LDFLAGS="$LDFLAGS"
8067 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 int foo(void) {}
8071 _ACEOF
8072 if ac_fn_c_try_link "$LINENO"; then :
8073 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'
8074
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 LDFLAGS="$save_LDFLAGS"
8079 else
8080 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'
8081 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'
8082 fi
8083 archive_cmds_need_lc='no'
8084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8085 hardcode_libdir_separator=:
8086 inherit_rpath=yes
8087 link_all_deplibs=yes
8088 ;;
8089
8090 netbsd* | netbsdelf*-gnu)
8091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8093 else
8094 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8095 fi
8096 hardcode_libdir_flag_spec='-R$libdir'
8097 hardcode_direct=yes
8098 hardcode_shlibpath_var=no
8099 ;;
8100
8101 newsos6)
8102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_direct=yes
8104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8105 hardcode_libdir_separator=:
8106 hardcode_shlibpath_var=no
8107 ;;
8108
8109 *nto* | *qnx*)
8110 ;;
8111
8112 openbsd*)
8113 if test -f /usr/libexec/ld.so; then
8114 hardcode_direct=yes
8115 hardcode_shlibpath_var=no
8116 hardcode_direct_absolute=yes
8117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8119 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8121 export_dynamic_flag_spec='${wl}-E'
8122 else
8123 case $host_os in
8124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_libdir_flag_spec='-R$libdir'
8127 ;;
8128 *)
8129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8131 ;;
8132 esac
8133 fi
8134 else
8135 ld_shlibs=no
8136 fi
8137 ;;
8138
8139 os2*)
8140 hardcode_libdir_flag_spec='-L$libdir'
8141 hardcode_minus_L=yes
8142 allow_undefined_flag=unsupported
8143 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'
8144 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8145 ;;
8146
8147 osf3*)
8148 if test "$GCC" = yes; then
8149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8150 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'
8151 else
8152 allow_undefined_flag=' -expect_unresolved \*'
8153 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'
8154 fi
8155 archive_cmds_need_lc='no'
8156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8157 hardcode_libdir_separator=:
8158 ;;
8159
8160 osf4* | osf5*) # as osf3* with the addition of -msym flag
8161 if test "$GCC" = yes; then
8162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8163 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'
8164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8165 else
8166 allow_undefined_flag=' -expect_unresolved \*'
8167 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'
8168 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~
8169 $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'
8170
8171 # Both c and cxx compiler support -rpath directly
8172 hardcode_libdir_flag_spec='-rpath $libdir'
8173 fi
8174 archive_cmds_need_lc='no'
8175 hardcode_libdir_separator=:
8176 ;;
8177
8178 solaris*)
8179 no_undefined_flag=' -z defs'
8180 if test "$GCC" = yes; then
8181 wlarc='${wl}'
8182 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8184 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8185 else
8186 case `$CC -V 2>&1` in
8187 *"Compilers 5.0"*)
8188 wlarc=''
8189 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8192 ;;
8193 *)
8194 wlarc='${wl}'
8195 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8197 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8198 ;;
8199 esac
8200 fi
8201 hardcode_libdir_flag_spec='-R$libdir'
8202 hardcode_shlibpath_var=no
8203 case $host_os in
8204 solaris2.[0-5] | solaris2.[0-5].*) ;;
8205 *)
8206 # The compiler driver will combine and reorder linker options,
8207 # but understands `-z linker_flag'. GCC discards it without `$wl',
8208 # but is careful enough not to reorder.
8209 # Supported since Solaris 2.6 (maybe 2.5.1?)
8210 if test "$GCC" = yes; then
8211 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8212 else
8213 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8214 fi
8215 ;;
8216 esac
8217 link_all_deplibs=yes
8218 ;;
8219
8220 sunos4*)
8221 if test "x$host_vendor" = xsequent; then
8222 # Use $CC to link under sequent, because it throws in some extra .o
8223 # files that make .init and .fini sections work.
8224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8225 else
8226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8227 fi
8228 hardcode_libdir_flag_spec='-L$libdir'
8229 hardcode_direct=yes
8230 hardcode_minus_L=yes
8231 hardcode_shlibpath_var=no
8232 ;;
8233
8234 sysv4)
8235 case $host_vendor in
8236 sni)
8237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_direct=yes # is this really true???
8239 ;;
8240 siemens)
8241 ## LD is ld it makes a PLAMLIB
8242 ## CC just makes a GrossModule.
8243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8244 reload_cmds='$CC -r -o $output$reload_objs'
8245 hardcode_direct=no
8246 ;;
8247 motorola)
8248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8250 ;;
8251 esac
8252 runpath_var='LD_RUN_PATH'
8253 hardcode_shlibpath_var=no
8254 ;;
8255
8256 sysv4.3*)
8257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8258 hardcode_shlibpath_var=no
8259 export_dynamic_flag_spec='-Bexport'
8260 ;;
8261
8262 sysv4*MP*)
8263 if test -d /usr/nec; then
8264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_shlibpath_var=no
8266 runpath_var=LD_RUN_PATH
8267 hardcode_runpath_var=yes
8268 ld_shlibs=yes
8269 fi
8270 ;;
8271
8272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8273 no_undefined_flag='${wl}-z,text'
8274 archive_cmds_need_lc=no
8275 hardcode_shlibpath_var=no
8276 runpath_var='LD_RUN_PATH'
8277
8278 if test "$GCC" = yes; then
8279 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 else
8282 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8284 fi
8285 ;;
8286
8287 sysv5* | sco3.2v5* | sco5v6*)
8288 # Note: We can NOT use -z defs as we might desire, because we do not
8289 # link with -lc, and that would cause any symbols used from libc to
8290 # always be unresolved, which means just about no library would
8291 # ever link correctly. If we're not using GNU ld we use -z text
8292 # though, which does catch some bad symbols but isn't as heavy-handed
8293 # as -z defs.
8294 no_undefined_flag='${wl}-z,text'
8295 allow_undefined_flag='${wl}-z,nodefs'
8296 archive_cmds_need_lc=no
8297 hardcode_shlibpath_var=no
8298 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8299 hardcode_libdir_separator=':'
8300 link_all_deplibs=yes
8301 export_dynamic_flag_spec='${wl}-Bexport'
8302 runpath_var='LD_RUN_PATH'
8303
8304 if test "$GCC" = yes; then
8305 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8307 else
8308 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8310 fi
8311 ;;
8312
8313 uts4*)
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_shlibpath_var=no
8317 ;;
8318
8319 *)
8320 ld_shlibs=no
8321 ;;
8322 esac
8323
8324 if test x$host_vendor = xsni; then
8325 case $host in
8326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8327 export_dynamic_flag_spec='${wl}-Blargedynsym'
8328 ;;
8329 esac
8330 fi
8331 fi
8332
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8334 $as_echo "$ld_shlibs" >&6; }
8335 test "$ld_shlibs" = no && can_build_shared=no
8336
8337 with_gnu_ld=$with_gnu_ld
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 #
8354 # Do we need to explicitly link libc?
8355 #
8356 case "x$archive_cmds_need_lc" in
8357 x|xyes)
8358 # Assume -lc should be added
8359 archive_cmds_need_lc=yes
8360
8361 if test "$enable_shared" = yes && test "$GCC" = yes; then
8362 case $archive_cmds in
8363 *'~'*)
8364 # FIXME: we may have to deal with multi-command sequences.
8365 ;;
8366 '$CC '*)
8367 # Test whether the compiler implicitly links with -lc since on some
8368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8369 # to ld, don't add -lc before -lgcc.
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8372 $RM conftest*
8373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8374
8375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8376 (eval $ac_compile) 2>&5
8377 ac_status=$?
8378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8379 test $ac_status = 0; } 2>conftest.err; then
8380 soname=conftest
8381 lib=conftest
8382 libobjs=conftest.$ac_objext
8383 deplibs=
8384 wl=$lt_prog_compiler_wl
8385 pic_flag=$lt_prog_compiler_pic
8386 compiler_flags=-v
8387 linker_flags=-v
8388 verstring=
8389 output_objdir=.
8390 libname=conftest
8391 lt_save_allow_undefined_flag=$allow_undefined_flag
8392 allow_undefined_flag=
8393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8394 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8395 ac_status=$?
8396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8397 test $ac_status = 0; }
8398 then
8399 archive_cmds_need_lc=no
8400 else
8401 archive_cmds_need_lc=yes
8402 fi
8403 allow_undefined_flag=$lt_save_allow_undefined_flag
8404 else
8405 cat conftest.err 1>&5
8406 fi
8407 $RM conftest*
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8409 $as_echo "$archive_cmds_need_lc" >&6; }
8410 ;;
8411 esac
8412 fi
8413 ;;
8414 esac
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8573 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8574
8575 if test "$GCC" = yes; then
8576 case $host_os in
8577 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8578 *) lt_awk_arg="/^libraries:/" ;;
8579 esac
8580 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8581 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8582 # if the path contains ";" then we assume it to be the separator
8583 # otherwise default to the standard path separator (i.e. ":") - it is
8584 # assumed that no part of a normal pathname contains ";" but that should
8585 # okay in the real world where ";" in dirpaths is itself problematic.
8586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8587 else
8588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8589 fi
8590 # Ok, now we have the path, separated by spaces, we can step through it
8591 # and add multilib dir if necessary.
8592 lt_tmp_lt_search_path_spec=
8593 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8594 for lt_sys_path in $lt_search_path_spec; do
8595 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8597 else
8598 test -d "$lt_sys_path" && \
8599 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8600 fi
8601 done
8602 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8603 BEGIN {RS=" "; FS="/|\n";} {
8604 lt_foo="";
8605 lt_count=0;
8606 for (lt_i = NF; lt_i > 0; lt_i--) {
8607 if ($lt_i != "" && $lt_i != ".") {
8608 if ($lt_i == "..") {
8609 lt_count++;
8610 } else {
8611 if (lt_count == 0) {
8612 lt_foo="/" $lt_i lt_foo;
8613 } else {
8614 lt_count--;
8615 }
8616 }
8617 }
8618 }
8619 if (lt_foo != "") { lt_freq[lt_foo]++; }
8620 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8621 }'`
8622 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8623 else
8624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8625 fi
8626 library_names_spec=
8627 libname_spec='lib$name'
8628 soname_spec=
8629 shrext_cmds=".so"
8630 postinstall_cmds=
8631 postuninstall_cmds=
8632 finish_cmds=
8633 finish_eval=
8634 shlibpath_var=
8635 shlibpath_overrides_runpath=unknown
8636 version_type=none
8637 dynamic_linker="$host_os ld.so"
8638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8639 need_lib_prefix=unknown
8640 hardcode_into_libs=no
8641
8642 # when you set need_version to no, make sure it does not cause -set_version
8643 # flags to be left without arguments
8644 need_version=unknown
8645
8646 case $host_os in
8647 aix3*)
8648 version_type=linux
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8650 shlibpath_var=LIBPATH
8651
8652 # AIX 3 has no versioning support, so we append a major version to the name.
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 ;;
8655
8656 aix[4-9]*)
8657 version_type=linux
8658 need_lib_prefix=no
8659 need_version=no
8660 hardcode_into_libs=yes
8661 if test "$host_cpu" = ia64; then
8662 # AIX 5 supports IA64
8663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8664 shlibpath_var=LD_LIBRARY_PATH
8665 else
8666 # With GCC up to 2.95.x, collect2 would create an import file
8667 # for dependence libraries. The import file would start with
8668 # the line `#! .'. This would cause the generated library to
8669 # depend on `.', always an invalid library. This was fixed in
8670 # development snapshots of GCC prior to 3.0.
8671 case $host_os in
8672 aix4 | aix4.[01] | aix4.[01].*)
8673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8674 echo ' yes '
8675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8676 :
8677 else
8678 can_build_shared=no
8679 fi
8680 ;;
8681 esac
8682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8683 # soname into executable. Probably we can add versioning support to
8684 # collect2, so additional links can be useful in future.
8685 if test "$aix_use_runtimelinking" = yes; then
8686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8687 # instead of lib<name>.a to let people know that these are not
8688 # typical AIX shared libraries.
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 else
8691 # We preserve .a as extension for shared libraries through AIX4.2
8692 # and later when we are not doing run time linking.
8693 library_names_spec='${libname}${release}.a $libname.a'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 fi
8696 shlibpath_var=LIBPATH
8697 fi
8698 ;;
8699
8700 amigaos*)
8701 case $host_cpu in
8702 powerpc)
8703 # Since July 2007 AmigaOS4 officially supports .so libraries.
8704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8706 ;;
8707 m68k)
8708 library_names_spec='$libname.ixlibrary $libname.a'
8709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8710 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'
8711 ;;
8712 esac
8713 ;;
8714
8715 beos*)
8716 library_names_spec='${libname}${shared_ext}'
8717 dynamic_linker="$host_os ld.so"
8718 shlibpath_var=LIBRARY_PATH
8719 ;;
8720
8721 bsdi[45]*)
8722 version_type=linux
8723 need_version=no
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8730 # the default ld.so.conf also contains /usr/contrib/lib and
8731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8732 # libtool to hard-code these into programs
8733 ;;
8734
8735 cygwin* | mingw* | pw32* | cegcc*)
8736 version_type=windows
8737 shrext_cmds=".dll"
8738 need_version=no
8739 need_lib_prefix=no
8740
8741 case $GCC,$host_os in
8742 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8743 library_names_spec='$libname.dll.a'
8744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8745 postinstall_cmds='base_file=`basename \${file}`~
8746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8747 dldir=$destdir/`dirname \$dlpath`~
8748 test -d \$dldir || mkdir -p \$dldir~
8749 $install_prog $dir/$dlname \$dldir/$dlname~
8750 chmod a+x \$dldir/$dlname~
8751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8753 fi'
8754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8755 dlpath=$dir/\$dldll~
8756 $RM \$dlpath'
8757 shlibpath_overrides_runpath=yes
8758
8759 case $host_os in
8760 cygwin*)
8761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8763 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8764 ;;
8765 mingw* | cegcc*)
8766 # MinGW DLLs use traditional 'lib' prefix
8767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8769 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8770 # It is most probably a Windows format PATH printed by
8771 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8772 # path with ; separators, and with drive letters. We can handle the
8773 # drive letters (cygwin fileutils understands them), so leave them,
8774 # especially as we might pass files found there to a mingw objdump,
8775 # which wouldn't understand a cygwinified path. Ahh.
8776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8777 else
8778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8779 fi
8780 ;;
8781 pw32*)
8782 # pw32 DLLs use 'pw' prefix rather than 'lib'
8783 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 ;;
8785 esac
8786 ;;
8787
8788 *)
8789 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8790 ;;
8791 esac
8792 dynamic_linker='Win32 ld.exe'
8793 # FIXME: first we should search . and the directory the executable is in
8794 shlibpath_var=PATH
8795 ;;
8796
8797 darwin* | rhapsody*)
8798 dynamic_linker="$host_os dyld"
8799 version_type=darwin
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8803 soname_spec='${libname}${release}${major}$shared_ext'
8804 shlibpath_overrides_runpath=yes
8805 shlibpath_var=DYLD_LIBRARY_PATH
8806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8807
8808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8810 ;;
8811
8812 dgux*)
8813 version_type=linux
8814 need_lib_prefix=no
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 shlibpath_var=LD_LIBRARY_PATH
8819 ;;
8820
8821 freebsd1*)
8822 dynamic_linker=no
8823 ;;
8824
8825 freebsd* | dragonfly*)
8826 # DragonFly does not have aout. When/if they implement a new
8827 # versioning mechanism, adjust this.
8828 if test -x /usr/bin/objformat; then
8829 objformat=`/usr/bin/objformat`
8830 else
8831 case $host_os in
8832 freebsd[123]*) objformat=aout ;;
8833 *) objformat=elf ;;
8834 esac
8835 fi
8836 version_type=freebsd-$objformat
8837 case $version_type in
8838 freebsd-elf*)
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8840 need_version=no
8841 need_lib_prefix=no
8842 ;;
8843 freebsd-*)
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8845 need_version=yes
8846 ;;
8847 esac
8848 shlibpath_var=LD_LIBRARY_PATH
8849 case $host_os in
8850 freebsd2*)
8851 shlibpath_overrides_runpath=yes
8852 ;;
8853 freebsd3.[01]* | freebsdelf3.[01]*)
8854 shlibpath_overrides_runpath=yes
8855 hardcode_into_libs=yes
8856 ;;
8857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8859 shlibpath_overrides_runpath=no
8860 hardcode_into_libs=yes
8861 ;;
8862 *) # from 4.6 on, and DragonFly
8863 shlibpath_overrides_runpath=yes
8864 hardcode_into_libs=yes
8865 ;;
8866 esac
8867 ;;
8868
8869 gnu*)
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 hardcode_into_libs=yes
8877 ;;
8878
8879 hpux9* | hpux10* | hpux11*)
8880 # Give a soname corresponding to the major version so that dld.sl refuses to
8881 # link against other versions.
8882 version_type=sunos
8883 need_lib_prefix=no
8884 need_version=no
8885 case $host_cpu in
8886 ia64*)
8887 shrext_cmds='.so'
8888 hardcode_into_libs=yes
8889 dynamic_linker="$host_os dld.so"
8890 shlibpath_var=LD_LIBRARY_PATH
8891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 if test "X$HPUX_IA64_MODE" = X32; then
8895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8896 else
8897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8898 fi
8899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8900 ;;
8901 hppa*64*)
8902 shrext_cmds='.sl'
8903 hardcode_into_libs=yes
8904 dynamic_linker="$host_os dld.sl"
8905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8911 ;;
8912 *)
8913 shrext_cmds='.sl'
8914 dynamic_linker="$host_os dld.sl"
8915 shlibpath_var=SHLIB_PATH
8916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 ;;
8920 esac
8921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8922 postinstall_cmds='chmod 555 $lib'
8923 ;;
8924
8925 interix[3-9]*)
8926 version_type=linux
8927 need_lib_prefix=no
8928 need_version=no
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8935 ;;
8936
8937 irix5* | irix6* | nonstopux*)
8938 case $host_os in
8939 nonstopux*) version_type=nonstopux ;;
8940 *)
8941 if test "$lt_cv_prog_gnu_ld" = yes; then
8942 version_type=linux
8943 else
8944 version_type=irix
8945 fi ;;
8946 esac
8947 need_lib_prefix=no
8948 need_version=no
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8951 case $host_os in
8952 irix5* | nonstopux*)
8953 libsuff= shlibsuff=
8954 ;;
8955 *)
8956 case $LD in # libtool.m4 will add one of these switches to LD
8957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8958 libsuff= shlibsuff= libmagic=32-bit;;
8959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8960 libsuff=32 shlibsuff=N32 libmagic=N32;;
8961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8963 *) libsuff= shlibsuff= libmagic=never-match;;
8964 esac
8965 ;;
8966 esac
8967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8968 shlibpath_overrides_runpath=no
8969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8971 hardcode_into_libs=yes
8972 ;;
8973
8974 # No shared lib support for Linux oldld, aout, or coff.
8975 linux*oldld* | linux*aout* | linux*coff*)
8976 dynamic_linker=no
8977 ;;
8978
8979 # This must be Linux ELF.
8980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8981 version_type=linux
8982 need_lib_prefix=no
8983 need_version=no
8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8985 soname_spec='${libname}${release}${shared_ext}$major'
8986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=no
8989 # Some binutils ld are patched to set DT_RUNPATH
8990 save_LDFLAGS=$LDFLAGS
8991 save_libdir=$libdir
8992 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8993 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996
8997 int
8998 main ()
8999 {
9000
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9007 shlibpath_overrides_runpath=yes
9008 fi
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LDFLAGS=$save_LDFLAGS
9013 libdir=$save_libdir
9014
9015 # This implies no fast_install, which is unacceptable.
9016 # Some rework will be needed to allow for fast_install
9017 # before this can be enabled.
9018 hardcode_into_libs=yes
9019
9020 # Append ld.so.conf contents to the search path
9021 if test -f /etc/ld.so.conf; then
9022 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' ' '`
9023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9024 fi
9025
9026 # We used to test for /lib/ld.so.1 and disable shared libraries on
9027 # powerpc, because MkLinux only supported shared libraries with the
9028 # GNU dynamic linker. Since this was broken with cross compilers,
9029 # most powerpc-linux boxes support dynamic linking these days and
9030 # people can always --disable-shared, the test was removed, and we
9031 # assume the GNU/Linux dynamic linker is in use.
9032 dynamic_linker='GNU/Linux ld.so'
9033 ;;
9034
9035 netbsdelf*-gnu)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 dynamic_linker='NetBSD ld.elf_so'
9045 ;;
9046
9047 netbsd*)
9048 version_type=sunos
9049 need_lib_prefix=no
9050 need_version=no
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 dynamic_linker='NetBSD (a.out) ld.so'
9055 else
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 dynamic_linker='NetBSD ld.elf_so'
9059 fi
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 ;;
9064
9065 newsos6)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 ;;
9071
9072 *nto* | *qnx*)
9073 version_type=qnx
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=no
9080 hardcode_into_libs=yes
9081 dynamic_linker='ldqnx.so'
9082 ;;
9083
9084 openbsd*)
9085 version_type=sunos
9086 sys_lib_dlsearch_path_spec="/usr/lib"
9087 need_lib_prefix=no
9088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9089 case $host_os in
9090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9091 *) need_version=no ;;
9092 esac
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9097 case $host_os in
9098 openbsd2.[89] | openbsd2.[89].*)
9099 shlibpath_overrides_runpath=no
9100 ;;
9101 *)
9102 shlibpath_overrides_runpath=yes
9103 ;;
9104 esac
9105 else
9106 shlibpath_overrides_runpath=yes
9107 fi
9108 ;;
9109
9110 os2*)
9111 libname_spec='$name'
9112 shrext_cmds=".dll"
9113 need_lib_prefix=no
9114 library_names_spec='$libname${shared_ext} $libname.a'
9115 dynamic_linker='OS/2 ld.exe'
9116 shlibpath_var=LIBPATH
9117 ;;
9118
9119 osf3* | osf4* | osf5*)
9120 version_type=osf
9121 need_lib_prefix=no
9122 need_version=no
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9128 ;;
9129
9130 rdos*)
9131 dynamic_linker=no
9132 ;;
9133
9134 solaris*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 # ldd complains unless libraries are executable
9144 postinstall_cmds='chmod +x $lib'
9145 ;;
9146
9147 sunos4*)
9148 version_type=sunos
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 if test "$with_gnu_ld" = yes; then
9154 need_lib_prefix=no
9155 fi
9156 need_version=yes
9157 ;;
9158
9159 sysv4 | sysv4.3*)
9160 version_type=linux
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 case $host_vendor in
9165 sni)
9166 shlibpath_overrides_runpath=no
9167 need_lib_prefix=no
9168 runpath_var=LD_RUN_PATH
9169 ;;
9170 siemens)
9171 need_lib_prefix=no
9172 ;;
9173 motorola)
9174 need_lib_prefix=no
9175 need_version=no
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9178 ;;
9179 esac
9180 ;;
9181
9182 sysv4*MP*)
9183 if test -d /usr/nec ;then
9184 version_type=linux
9185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9186 soname_spec='$libname${shared_ext}.$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 fi
9189 ;;
9190
9191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9192 version_type=freebsd-elf
9193 need_lib_prefix=no
9194 need_version=no
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 if test "$with_gnu_ld" = yes; then
9201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9202 else
9203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9204 case $host_os in
9205 sco3.2v5*)
9206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9207 ;;
9208 esac
9209 fi
9210 sys_lib_dlsearch_path_spec='/usr/lib'
9211 ;;
9212
9213 tpf*)
9214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=no
9221 hardcode_into_libs=yes
9222 ;;
9223
9224 uts4*)
9225 version_type=linux
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 ;;
9230
9231 *)
9232 dynamic_linker=no
9233 ;;
9234 esac
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9236 $as_echo "$dynamic_linker" >&6; }
9237 test "$dynamic_linker" = no && can_build_shared=no
9238
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9242 fi
9243
9244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9245 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9246 fi
9247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9248 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9249 fi
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9339 hardcode_action=
9340 if test -n "$hardcode_libdir_flag_spec" ||
9341 test -n "$runpath_var" ||
9342 test "X$hardcode_automatic" = "Xyes" ; then
9343
9344 # We can hardcode non-existent directories.
9345 if test "$hardcode_direct" != no &&
9346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9347 # have to relink, otherwise we might link with an installed library
9348 # when we should be linking with a yet-to-be-installed one
9349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9350 test "$hardcode_minus_L" != no; then
9351 # Linking always hardcodes the temporary library directory.
9352 hardcode_action=relink
9353 else
9354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9355 hardcode_action=immediate
9356 fi
9357 else
9358 # We cannot hardcode anything, or else we can only hardcode existing
9359 # directories.
9360 hardcode_action=unsupported
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9363 $as_echo "$hardcode_action" >&6; }
9364
9365 if test "$hardcode_action" = relink ||
9366 test "$inherit_rpath" = yes; then
9367 # Fast installation is not supported
9368 enable_fast_install=no
9369 elif test "$shlibpath_overrides_runpath" = yes ||
9370 test "$enable_shared" = no; then
9371 # Fast installation is not necessary
9372 enable_fast_install=needless
9373 fi
9374
9375
9376
9377
9378
9379
9380 if test "x$enable_dlopen" != xyes; then
9381 enable_dlopen=unknown
9382 enable_dlopen_self=unknown
9383 enable_dlopen_self_static=unknown
9384 else
9385 lt_cv_dlopen=no
9386 lt_cv_dlopen_libs=
9387
9388 case $host_os in
9389 beos*)
9390 lt_cv_dlopen="load_add_on"
9391 lt_cv_dlopen_libs=
9392 lt_cv_dlopen_self=yes
9393 ;;
9394
9395 mingw* | pw32* | cegcc*)
9396 lt_cv_dlopen="LoadLibrary"
9397 lt_cv_dlopen_libs=
9398 ;;
9399
9400 cygwin*)
9401 lt_cv_dlopen="dlopen"
9402 lt_cv_dlopen_libs=
9403 ;;
9404
9405 darwin*)
9406 # if libdl is installed we need to link against it
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9408 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 ac_check_lib_save_LIBS=$LIBS
9413 LIBS="-ldl $LIBS"
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char dlopen ();
9424 int
9425 main ()
9426 {
9427 return dlopen ();
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 if ac_fn_c_try_link "$LINENO"; then :
9433 ac_cv_lib_dl_dlopen=yes
9434 else
9435 ac_cv_lib_dl_dlopen=no
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9442 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9443 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9445 else
9446
9447 lt_cv_dlopen="dyld"
9448 lt_cv_dlopen_libs=
9449 lt_cv_dlopen_self=yes
9450
9451 fi
9452
9453 ;;
9454
9455 *)
9456 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9457 if test "x$ac_cv_func_shl_load" = x""yes; then :
9458 lt_cv_dlopen="shl_load"
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9461 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-ldld $LIBS"
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char shl_load ();
9477 int
9478 main ()
9479 {
9480 return shl_load ();
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 ac_cv_lib_dld_shl_load=yes
9487 else
9488 ac_cv_lib_dld_shl_load=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9498 else
9499 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9500 if test "x$ac_cv_func_dlopen" = x""yes; then :
9501 lt_cv_dlopen="dlopen"
9502 else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-ldl $LIBS"
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char dlopen ();
9520 int
9521 main ()
9522 {
9523 return dlopen ();
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 ac_cv_lib_dl_dlopen=yes
9530 else
9531 ac_cv_lib_dl_dlopen=no
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9536 fi
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9539 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9543 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lsvld $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char dlopen ();
9559 int
9560 main ()
9561 {
9562 return dlopen ();
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 ac_cv_lib_svld_dlopen=yes
9569 else
9570 ac_cv_lib_svld_dlopen=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9578 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-ldld $LIBS"
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char dld_link ();
9598 int
9599 main ()
9600 {
9601 return dld_link ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 ac_cv_lib_dld_dld_link=yes
9608 else
9609 ac_cv_lib_dld_dld_link=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9617 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9618 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9619 fi
9620
9621
9622 fi
9623
9624
9625 fi
9626
9627
9628 fi
9629
9630
9631 fi
9632
9633
9634 fi
9635
9636 ;;
9637 esac
9638
9639 if test "x$lt_cv_dlopen" != xno; then
9640 enable_dlopen=yes
9641 else
9642 enable_dlopen=no
9643 fi
9644
9645 case $lt_cv_dlopen in
9646 dlopen)
9647 save_CPPFLAGS="$CPPFLAGS"
9648 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9649
9650 save_LDFLAGS="$LDFLAGS"
9651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9652
9653 save_LIBS="$LIBS"
9654 LIBS="$lt_cv_dlopen_libs $LIBS"
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9658 if test "${lt_cv_dlopen_self+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 if test "$cross_compiling" = yes; then :
9662 lt_cv_dlopen_self=cross
9663 else
9664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9665 lt_status=$lt_dlunknown
9666 cat > conftest.$ac_ext <<_LT_EOF
9667 #line 9667 "configure"
9668 #include "confdefs.h"
9669
9670 #if HAVE_DLFCN_H
9671 #include <dlfcn.h>
9672 #endif
9673
9674 #include <stdio.h>
9675
9676 #ifdef RTLD_GLOBAL
9677 # define LT_DLGLOBAL RTLD_GLOBAL
9678 #else
9679 # ifdef DL_GLOBAL
9680 # define LT_DLGLOBAL DL_GLOBAL
9681 # else
9682 # define LT_DLGLOBAL 0
9683 # endif
9684 #endif
9685
9686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9687 find out it does not work in some platform. */
9688 #ifndef LT_DLLAZY_OR_NOW
9689 # ifdef RTLD_LAZY
9690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9691 # else
9692 # ifdef DL_LAZY
9693 # define LT_DLLAZY_OR_NOW DL_LAZY
9694 # else
9695 # ifdef RTLD_NOW
9696 # define LT_DLLAZY_OR_NOW RTLD_NOW
9697 # else
9698 # ifdef DL_NOW
9699 # define LT_DLLAZY_OR_NOW DL_NOW
9700 # else
9701 # define LT_DLLAZY_OR_NOW 0
9702 # endif
9703 # endif
9704 # endif
9705 # endif
9706 #endif
9707
9708 void fnord() { int i=42;}
9709 int main ()
9710 {
9711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9712 int status = $lt_dlunknown;
9713
9714 if (self)
9715 {
9716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9718 /* dlclose (self); */
9719 }
9720 else
9721 puts (dlerror ());
9722
9723 return status;
9724 }
9725 _LT_EOF
9726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9727 (eval $ac_link) 2>&5
9728 ac_status=$?
9729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9730 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9731 (./conftest; exit; ) >&5 2>/dev/null
9732 lt_status=$?
9733 case x$lt_status in
9734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9737 esac
9738 else :
9739 # compilation failed
9740 lt_cv_dlopen_self=no
9741 fi
9742 fi
9743 rm -fr conftest*
9744
9745
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9748 $as_echo "$lt_cv_dlopen_self" >&6; }
9749
9750 if test "x$lt_cv_dlopen_self" = xyes; then
9751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9753 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9754 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test "$cross_compiling" = yes; then :
9758 lt_cv_dlopen_self_static=cross
9759 else
9760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9761 lt_status=$lt_dlunknown
9762 cat > conftest.$ac_ext <<_LT_EOF
9763 #line 9763 "configure"
9764 #include "confdefs.h"
9765
9766 #if HAVE_DLFCN_H
9767 #include <dlfcn.h>
9768 #endif
9769
9770 #include <stdio.h>
9771
9772 #ifdef RTLD_GLOBAL
9773 # define LT_DLGLOBAL RTLD_GLOBAL
9774 #else
9775 # ifdef DL_GLOBAL
9776 # define LT_DLGLOBAL DL_GLOBAL
9777 # else
9778 # define LT_DLGLOBAL 0
9779 # endif
9780 #endif
9781
9782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9783 find out it does not work in some platform. */
9784 #ifndef LT_DLLAZY_OR_NOW
9785 # ifdef RTLD_LAZY
9786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9787 # else
9788 # ifdef DL_LAZY
9789 # define LT_DLLAZY_OR_NOW DL_LAZY
9790 # else
9791 # ifdef RTLD_NOW
9792 # define LT_DLLAZY_OR_NOW RTLD_NOW
9793 # else
9794 # ifdef DL_NOW
9795 # define LT_DLLAZY_OR_NOW DL_NOW
9796 # else
9797 # define LT_DLLAZY_OR_NOW 0
9798 # endif
9799 # endif
9800 # endif
9801 # endif
9802 #endif
9803
9804 void fnord() { int i=42;}
9805 int main ()
9806 {
9807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9808 int status = $lt_dlunknown;
9809
9810 if (self)
9811 {
9812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9814 /* dlclose (self); */
9815 }
9816 else
9817 puts (dlerror ());
9818
9819 return status;
9820 }
9821 _LT_EOF
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9823 (eval $ac_link) 2>&5
9824 ac_status=$?
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9827 (./conftest; exit; ) >&5 2>/dev/null
9828 lt_status=$?
9829 case x$lt_status in
9830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9833 esac
9834 else :
9835 # compilation failed
9836 lt_cv_dlopen_self_static=no
9837 fi
9838 fi
9839 rm -fr conftest*
9840
9841
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9845 fi
9846
9847 CPPFLAGS="$save_CPPFLAGS"
9848 LDFLAGS="$save_LDFLAGS"
9849 LIBS="$save_LIBS"
9850 ;;
9851 esac
9852
9853 case $lt_cv_dlopen_self in
9854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9855 *) enable_dlopen_self=unknown ;;
9856 esac
9857
9858 case $lt_cv_dlopen_self_static in
9859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9860 *) enable_dlopen_self_static=unknown ;;
9861 esac
9862 fi
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880 striplib=
9881 old_striplib=
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9884 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9888 $as_echo "yes" >&6; }
9889 else
9890 # FIXME - insert some real tests, host_os isn't really good enough
9891 case $host_os in
9892 darwin*)
9893 if test -n "$STRIP" ; then
9894 striplib="$STRIP -x"
9895 old_striplib="$STRIP -S"
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9897 $as_echo "yes" >&6; }
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9901 fi
9902 ;;
9903 *)
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9906 ;;
9907 esac
9908 fi
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921 # Report which library types will actually be built
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9925 $as_echo "$can_build_shared" >&6; }
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9928 $as_echo_n "checking whether to build shared libraries... " >&6; }
9929 test "$can_build_shared" = "no" && enable_shared=no
9930
9931 # On AIX, shared libraries and static libraries use the same namespace, and
9932 # are all built from PIC.
9933 case $host_os in
9934 aix3*)
9935 test "$enable_shared" = yes && enable_static=no
9936 if test -n "$RANLIB"; then
9937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9938 postinstall_cmds='$RANLIB $lib'
9939 fi
9940 ;;
9941
9942 aix[4-9]*)
9943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9944 test "$enable_shared" = yes && enable_static=no
9945 fi
9946 ;;
9947 esac
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9949 $as_echo "$enable_shared" >&6; }
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9952 $as_echo_n "checking whether to build static libraries... " >&6; }
9953 # Make sure either enable_shared or enable_static is yes.
9954 test "$enable_shared" = yes || enable_static=yes
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9956 $as_echo "$enable_static" >&6; }
9957
9958
9959
9960
9961 fi
9962 ac_ext=c
9963 ac_cpp='$CPP $CPPFLAGS'
9964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9967
9968 CC="$lt_save_CC"
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 ac_config_commands="$ac_config_commands libtool"
9983
9984
9985
9986
9987 # Only expand once:
9988
9989
9990
9991
9992 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9993 if test -n "$ac_tool_prefix"; then
9994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9995 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 case $PKG_CONFIG in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10004 ;;
10005 *)
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 ;;
10022 esac
10023 fi
10024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10025 if test -n "$PKG_CONFIG"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10027 $as_echo "$PKG_CONFIG" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032
10033
10034 fi
10035 if test -z "$ac_cv_path_PKG_CONFIG"; then
10036 ac_pt_PKG_CONFIG=$PKG_CONFIG
10037 # Extract the first word of "pkg-config", so it can be a program name with args.
10038 set dummy pkg-config; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 case $ac_pt_PKG_CONFIG in
10045 [\\/]* | ?:[\\/]*)
10046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10047 ;;
10048 *)
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10059 fi
10060 done
10061 done
10062 IFS=$as_save_IFS
10063
10064 ;;
10065 esac
10066 fi
10067 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10068 if test -n "$ac_pt_PKG_CONFIG"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10074 fi
10075
10076 if test "x$ac_pt_PKG_CONFIG" = x; then
10077 PKG_CONFIG=""
10078 else
10079 case $cross_compiling:$ac_tool_warned in
10080 yes:)
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10083 ac_tool_warned=yes ;;
10084 esac
10085 PKG_CONFIG=$ac_pt_PKG_CONFIG
10086 fi
10087 else
10088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10089 fi
10090
10091 fi
10092 if test -n "$PKG_CONFIG"; then
10093 _pkg_min_version=0.22
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10095 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10098 $as_echo "yes" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10102 PKG_CONFIG=""
10103 fi
10104
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10107 $as_echo_n "checking for GNU make... " >&6; }
10108 if test "${_cv_gnu_make_command+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 _cv_gnu_make_command='' ;
10112 for a in "$MAKE" make gmake gnumake ; do
10113 if test -z "$a" ; then continue ; fi ;
10114 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10115 _cv_gnu_make_command=$a ;
10116 break;
10117 fi
10118 done ;
10119
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10122 $as_echo "$_cv_gnu_make_command" >&6; } ;
10123 if test "x$_cv_gnu_make_command" != "x" ; then
10124 ifGNUmake='' ;
10125 else
10126 ifGNUmake='#' ;
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10128 $as_echo "\"Not found\"" >&6; };
10129 fi
10130
10131
10132 GMAKE=$_cv_gnu_make_command
10133
10134 if test "x$GMAKE" = x; then :
10135 as_fn_error "You need GNU make" "$LINENO" 5
10136 fi
10137 for ac_prog in bash
10138 do
10139 # Extract the first word of "$ac_prog", so it can be a program name with args.
10140 set dummy $ac_prog; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_path__BASH+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 case $_BASH in
10147 [\\/]* | ?:[\\/]*)
10148 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10149 ;;
10150 *)
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10161 fi
10162 done
10163 done
10164 IFS=$as_save_IFS
10165
10166 ;;
10167 esac
10168 fi
10169 _BASH=$ac_cv_path__BASH
10170 if test -n "$_BASH"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10172 $as_echo "$_BASH" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177
10178
10179 test -n "$_BASH" && break
10180 done
10181
10182 if test "x$_BASH" = x; then :
10183 as_fn_error "You need GNU bash" "$LINENO" 5
10184 fi
10185 for ac_prog in time
10186 do
10187 # Extract the first word of "$ac_prog", so it can be a program name with args.
10188 set dummy $ac_prog; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if test "${ac_cv_path_TIME+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 case $TIME in
10195 [\\/]* | ?:[\\/]*)
10196 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10197 ;;
10198 *)
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210 done
10211 done
10212 IFS=$as_save_IFS
10213
10214 ;;
10215 esac
10216 fi
10217 TIME=$ac_cv_path_TIME
10218 if test -n "$TIME"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10220 $as_echo "$TIME" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225
10226
10227 test -n "$TIME" && break
10228 done
10229
10230
10231
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
10234 $as_echo_n "checking for bison >= 2.3... " >&6; }
10235 if test -z "$BISON"; then
10236 ac_path_BISON_found=false
10237 # Loop through the user's path and test for each of PROGNAME-LIST
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_prog in bison; do
10244 for ac_exec_ext in '' $ac_executable_extensions; do
10245 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
10246 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
10247 as_awk_strverscmp='
10248 # Use only awk features that work with 7th edition Unix awk (1978).
10249 # My, what an old awk you have, Mr. Solaris!
10250 END {
10251 while (length(v1) && length(v2)) {
10252 # Set d1 to be the next thing to compare from v1, and likewise for d2.
10253 # Normally this is a single character, but if v1 and v2 contain digits,
10254 # compare them as integers and fractions as strverscmp does.
10255 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
10256 # Split v1 and v2 into their leading digit string components d1 and d2,
10257 # and advance v1 and v2 past the leading digit strings.
10258 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
10259 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
10260 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
10261 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
10262 if (d1 ~ /^0/) {
10263 if (d2 ~ /^0/) {
10264 # Compare two fractions.
10265 while (d1 ~ /^0/ && d2 ~ /^0/) {
10266 d1 = substr(d1, 2); len1--
10267 d2 = substr(d2, 2); len2--
10268 }
10269 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
10270 # The two components differ in length, and the common prefix
10271 # contains only leading zeros. Consider the longer to be less.
10272 d1 = -len1
10273 d2 = -len2
10274 } else {
10275 # Otherwise, compare as strings.
10276 d1 = "x" d1
10277 d2 = "x" d2
10278 }
10279 } else {
10280 # A fraction is less than an integer.
10281 exit 1
10282 }
10283 } else {
10284 if (d2 ~ /^0/) {
10285 # An integer is greater than a fraction.
10286 exit 2
10287 } else {
10288 # Compare two integers.
10289 d1 += 0
10290 d2 += 0
10291 }
10292 }
10293 } else {
10294 # The normal case, without worrying about digits.
10295 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
10296 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
10297 }
10298 if (d1 < d2) exit 1
10299 if (d1 > d2) exit 2
10300 }
10301 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
10302 # which mishandles some comparisons of empty strings to integers.
10303 if (length(v2)) exit 1
10304 if (length(v1)) exit 2
10305 }
10306 '
10307 as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10308 as_arg_v2=2.3
10309 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10310 case $? in #(
10311 1) :
10312 ;; #(
10313 0) :
10314 ac_cv_path_BISON=$ac_path_BISON
10315 ;; #(
10316 2) :
10317 ac_cv_path_BISON=$ac_path_BISON
10318 ;; #(
10319 *) :
10320 ;;
10321 esac
10322
10323 $ac_path_BISON_found && break 3
10324 done
10325 done
10326 done
10327 IFS=$as_save_IFS
10328 if test -z "$ac_cv_path_BISON"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10331 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
10332
10333 fi
10334 else
10335 ac_cv_path_BISON=$BISON
10336 fi
10337
10338 BISON=$ac_cv_path_BISON
10339
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10341 $as_echo "$BISON" >&6; }
10342
10343
10344
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
10346 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
10347 if test -z "$FLEX"; then
10348 ac_path_FLEX_found=false
10349 # Loop through the user's path and test for each of PROGNAME-LIST
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_prog in flex; do
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
10358 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
10359 as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10360 as_arg_v2=2.5.33
10361 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10362 case $? in #(
10363 1) :
10364 ;; #(
10365 0) :
10366 ac_cv_path_FLEX=$ac_path_FLEX
10367 ;; #(
10368 2) :
10369 ac_cv_path_FLEX=$ac_path_FLEX
10370 ;; #(
10371 *) :
10372 ;;
10373 esac
10374
10375 $ac_path_FLEX_found && break 3
10376 done
10377 done
10378 done
10379 IFS=$as_save_IFS
10380 if test -z "$ac_cv_path_FLEX"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10383 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
10384
10385 fi
10386 else
10387 ac_cv_path_FLEX=$FLEX
10388 fi
10389
10390 FLEX=$ac_cv_path_FLEX
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10393 $as_echo "$FLEX" >&6; }
10394
10395
10396
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
10398 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
10399 if test -z "$GPERF"; then
10400 ac_path_GPERF_found=false
10401 # Loop through the user's path and test for each of PROGNAME-LIST
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_prog in gperf; do
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
10410 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
10411 as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10412 as_arg_v2=3.0.3
10413 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10414 case $? in #(
10415 1) :
10416 ;; #(
10417 0) :
10418 ac_cv_path_GPERF=$ac_path_GPERF
10419 ;; #(
10420 2) :
10421 ac_cv_path_GPERF=$ac_path_GPERF
10422 ;; #(
10423 *) :
10424 ;;
10425 esac
10426
10427 $ac_path_GPERF_found && break 3
10428 done
10429 done
10430 done
10431 IFS=$as_save_IFS
10432 if test -z "$ac_cv_path_GPERF"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10435 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
10436
10437 fi
10438 else
10439 ac_cv_path_GPERF=$GPERF
10440 fi
10441
10442 GPERF=$ac_cv_path_GPERF
10443
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10445 $as_echo "$GPERF" >&6; }
10446
10447 # Find a good install program. We prefer a C program (faster),
10448 # so one script is as good as another. But avoid the broken or
10449 # incompatible versions:
10450 # SysV /etc/install, /usr/sbin/install
10451 # SunOS /usr/etc/install
10452 # IRIX /sbin/install
10453 # AIX /bin/install
10454 # AmigaOS /C/install, which installs bootblocks on floppy discs
10455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10458 # OS/2's system install, which has a completely different semantic
10459 # ./install, which can be erroneously created by make from ./install.sh.
10460 # Reject install programs that cannot install multiple files.
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10463 if test -z "$INSTALL"; then
10464 if test "${ac_cv_path_install+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10469 do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 # Account for people who put trailing slashes in PATH elements.
10473 case $as_dir/ in #((
10474 ./ | .// | /[cC]/* | \
10475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10477 /usr/ucb/* ) ;;
10478 *)
10479 # OSF1 and SCO ODT 3.0 have their own names for install.
10480 # Don't use installbsd from OSF since it installs stuff as root
10481 # by default.
10482 for ac_prog in ginstall scoinst install; do
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10485 if test $ac_prog = install &&
10486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10487 # AIX install. It has an incompatible calling convention.
10488 :
10489 elif test $ac_prog = install &&
10490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10491 # program-specific install script used by HP pwplus--don't use.
10492 :
10493 else
10494 rm -rf conftest.one conftest.two conftest.dir
10495 echo one > conftest.one
10496 echo two > conftest.two
10497 mkdir conftest.dir
10498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10499 test -s conftest.one && test -s conftest.two &&
10500 test -s conftest.dir/conftest.one &&
10501 test -s conftest.dir/conftest.two
10502 then
10503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10504 break 3
10505 fi
10506 fi
10507 fi
10508 done
10509 done
10510 ;;
10511 esac
10512
10513 done
10514 IFS=$as_save_IFS
10515
10516 rm -rf conftest.one conftest.two conftest.dir
10517
10518 fi
10519 if test "${ac_cv_path_install+set}" = set; then
10520 INSTALL=$ac_cv_path_install
10521 else
10522 # As a last resort, use the slow shell script. Don't cache a
10523 # value for INSTALL within a source directory, because that will
10524 # break other packages using the cache if that directory is
10525 # removed, or if the value is a relative name.
10526 INSTALL=$ac_install_sh
10527 fi
10528 fi
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10530 $as_echo "$INSTALL" >&6; }
10531
10532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10533 # It thinks the first close brace ends the variable substitution.
10534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10535
10536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10537
10538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
10541 $as_echo_n "checking for GNU tar >=1.19... " >&6; }
10542 if test -z "$GNUTAR"; then
10543 ac_path_GNUTAR_found=false
10544 # Loop through the user's path and test for each of PROGNAME-LIST
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10547 do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_prog in tar gtar gnutar; do
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
10553 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
10554
10555 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
10556
10557 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
10558 as_arg_v2=1.19
10559 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10560 case $? in #(
10561 1) :
10562 ;; #(
10563 0) :
10564
10565 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10566 ;; #(
10567 2) :
10568
10569 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10570 ;; #(
10571 *) :
10572 ;;
10573 esac
10574
10575 fi
10576
10577 $ac_path_GNUTAR_found && break 3
10578 done
10579 done
10580 done
10581 IFS=$as_save_IFS
10582 if test -z "$ac_cv_path_GNUTAR"; then
10583 :
10584 fi
10585 else
10586 ac_cv_path_GNUTAR=$GNUTAR
10587 fi
10588
10589 if test "x$ac_cv_path_GNUTAR" != x; then :
10590
10591 GNUTAR=$ac_cv_path_GNUTAR
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
10594 $as_echo "$GNUTAR" >&6; }
10595
10596 else
10597
10598 GNUTAR=:
10599
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10602
10603 fi
10604 for ac_prog in svn
10605 do
10606 # Extract the first word of "$ac_prog", so it can be a program name with args.
10607 set dummy $ac_prog; ac_word=$2
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if test "${ac_cv_prog_SVN+set}" = set; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 if test -n "$SVN"; then
10614 ac_cv_prog_SVN="$SVN" # Let the user override the test.
10615 else
10616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617 for as_dir in $PATH
10618 do
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10623 ac_cv_prog_SVN="$ac_prog"
10624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 break 2
10626 fi
10627 done
10628 done
10629 IFS=$as_save_IFS
10630
10631 fi
10632 fi
10633 SVN=$ac_cv_prog_SVN
10634 if test -n "$SVN"; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
10636 $as_echo "$SVN" >&6; }
10637 else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10640 fi
10641
10642
10643 test -n "$SVN" && break
10644 done
10645
10646 for ac_prog in svnversion
10647 do
10648 # Extract the first word of "$ac_prog", so it can be a program name with args.
10649 set dummy $ac_prog; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 if test -n "$SVNVERSION"; then
10656 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
10657 else
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10660 do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_prog_SVNVERSION="$ac_prog"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10668 fi
10669 done
10670 done
10671 IFS=$as_save_IFS
10672
10673 fi
10674 fi
10675 SVNVERSION=$ac_cv_prog_SVNVERSION
10676 if test -n "$SVNVERSION"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
10678 $as_echo "$SVNVERSION" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683
10684
10685 test -n "$SVNVERSION" && break
10686 done
10687
10688 ac_ext=cpp
10689 ac_cpp='$CXXCPP $CPPFLAGS'
10690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10693 if test -z "$CXX"; then
10694 if test -n "$CCC"; then
10695 CXX=$CCC
10696 else
10697 if test -n "$ac_tool_prefix"; then
10698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10699 do
10700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if test "${ac_cv_prog_CXX+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 if test -n "$CXX"; then
10708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10720 fi
10721 done
10722 done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 CXX=$ac_cv_prog_CXX
10728 if test -n "$CXX"; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10730 $as_echo "$CXX" >&6; }
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736
10737 test -n "$CXX" && break
10738 done
10739 fi
10740 if test -z "$CXX"; then
10741 ac_ct_CXX=$CXX
10742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10743 do
10744 # Extract the first word of "$ac_prog", so it can be a program name with args.
10745 set dummy $ac_prog; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 if test -n "$ac_ct_CXX"; then
10752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_ac_ct_CXX="$ac_prog"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765 done
10766 done
10767 IFS=$as_save_IFS
10768
10769 fi
10770 fi
10771 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10772 if test -n "$ac_ct_CXX"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10774 $as_echo "$ac_ct_CXX" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779
10780
10781 test -n "$ac_ct_CXX" && break
10782 done
10783
10784 if test "x$ac_ct_CXX" = x; then
10785 CXX="g++"
10786 else
10787 case $cross_compiling:$ac_tool_warned in
10788 yes:)
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10791 ac_tool_warned=yes ;;
10792 esac
10793 CXX=$ac_ct_CXX
10794 fi
10795 fi
10796
10797 fi
10798 fi
10799 # Provide some information about the compiler.
10800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10801 set X $ac_compile
10802 ac_compiler=$2
10803 for ac_option in --version -v -V -qversion; do
10804 { { ac_try="$ac_compiler $ac_option >&5"
10805 case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808 esac
10809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10810 $as_echo "$ac_try_echo"; } >&5
10811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10812 ac_status=$?
10813 if test -s conftest.err; then
10814 sed '10a\
10815 ... rest of stderr output deleted ...
10816 10q' conftest.err >conftest.er1
10817 cat conftest.er1 >&5
10818 fi
10819 rm -f conftest.er1 conftest.err
10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10821 test $ac_status = 0; }
10822 done
10823
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10825 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10826 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831
10832 int
10833 main ()
10834 {
10835 #ifndef __GNUC__
10836 choke me
10837 #endif
10838
10839 ;
10840 return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_cxx_try_compile "$LINENO"; then :
10844 ac_compiler_gnu=yes
10845 else
10846 ac_compiler_gnu=no
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10850
10851 fi
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10853 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10854 if test $ac_compiler_gnu = yes; then
10855 GXX=yes
10856 else
10857 GXX=
10858 fi
10859 ac_test_CXXFLAGS=${CXXFLAGS+set}
10860 ac_save_CXXFLAGS=$CXXFLAGS
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10862 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10863 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10867 ac_cxx_werror_flag=yes
10868 ac_cv_prog_cxx_g=no
10869 CXXFLAGS="-g"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872
10873 int
10874 main ()
10875 {
10876
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_cxx_try_compile "$LINENO"; then :
10882 ac_cv_prog_cxx_g=yes
10883 else
10884 CXXFLAGS=""
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 int
10889 main ()
10890 {
10891
10892 ;
10893 return 0;
10894 }
10895 _ACEOF
10896 if ac_fn_cxx_try_compile "$LINENO"; then :
10897
10898 else
10899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10900 CXXFLAGS="-g"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903
10904 int
10905 main ()
10906 {
10907
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_cxx_try_compile "$LINENO"; then :
10913 ac_cv_prog_cxx_g=yes
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 fi
10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10923 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10924 if test "$ac_test_CXXFLAGS" = set; then
10925 CXXFLAGS=$ac_save_CXXFLAGS
10926 elif test $ac_cv_prog_cxx_g = yes; then
10927 if test "$GXX" = yes; then
10928 CXXFLAGS="-g -O2"
10929 else
10930 CXXFLAGS="-g"
10931 fi
10932 else
10933 if test "$GXX" = yes; then
10934 CXXFLAGS="-O2"
10935 else
10936 CXXFLAGS=
10937 fi
10938 fi
10939 ac_ext=c
10940 ac_cpp='$CPP $CPPFLAGS'
10941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10944
10945
10946 ac_ext=cpp
10947 ac_cpp='$CXXCPP $CPPFLAGS'
10948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10951 if test -z "$CXX"; then
10952 if test -n "$CCC"; then
10953 CXX=$CCC
10954 else
10955 if test -n "$ac_tool_prefix"; then
10956 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10957 do
10958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if test "${ac_cv_prog_CXX+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test -n "$CXX"; then
10966 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10978 fi
10979 done
10980 done
10981 IFS=$as_save_IFS
10982
10983 fi
10984 fi
10985 CXX=$ac_cv_prog_CXX
10986 if test -n "$CXX"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10988 $as_echo "$CXX" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993
10994
10995 test -n "$CXX" && break
10996 done
10997 fi
10998 if test -z "$CXX"; then
10999 ac_ct_CXX=$CXX
11000 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11001 do
11002 # Extract the first word of "$ac_prog", so it can be a program name with args.
11003 set dummy $ac_prog; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 if test -n "$ac_ct_CXX"; then
11010 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_prog_ac_ct_CXX="$ac_prog"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11022 fi
11023 done
11024 done
11025 IFS=$as_save_IFS
11026
11027 fi
11028 fi
11029 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11030 if test -n "$ac_ct_CXX"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11032 $as_echo "$ac_ct_CXX" >&6; }
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036 fi
11037
11038
11039 test -n "$ac_ct_CXX" && break
11040 done
11041
11042 if test "x$ac_ct_CXX" = x; then
11043 CXX="g++"
11044 else
11045 case $cross_compiling:$ac_tool_warned in
11046 yes:)
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11049 ac_tool_warned=yes ;;
11050 esac
11051 CXX=$ac_ct_CXX
11052 fi
11053 fi
11054
11055 fi
11056 fi
11057 # Provide some information about the compiler.
11058 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11059 set X $ac_compile
11060 ac_compiler=$2
11061 for ac_option in --version -v -V -qversion; do
11062 { { ac_try="$ac_compiler $ac_option >&5"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11068 $as_echo "$ac_try_echo"; } >&5
11069 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11070 ac_status=$?
11071 if test -s conftest.err; then
11072 sed '10a\
11073 ... rest of stderr output deleted ...
11074 10q' conftest.err >conftest.er1
11075 cat conftest.er1 >&5
11076 fi
11077 rm -f conftest.er1 conftest.err
11078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11079 test $ac_status = 0; }
11080 done
11081
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11083 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11084 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089
11090 int
11091 main ()
11092 {
11093 #ifndef __GNUC__
11094 choke me
11095 #endif
11096
11097 ;
11098 return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_cxx_try_compile "$LINENO"; then :
11102 ac_compiler_gnu=yes
11103 else
11104 ac_compiler_gnu=no
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11108
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11111 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11112 if test $ac_compiler_gnu = yes; then
11113 GXX=yes
11114 else
11115 GXX=
11116 fi
11117 ac_test_CXXFLAGS=${CXXFLAGS+set}
11118 ac_save_CXXFLAGS=$CXXFLAGS
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11120 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11121 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11125 ac_cxx_werror_flag=yes
11126 ac_cv_prog_cxx_g=no
11127 CXXFLAGS="-g"
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11130
11131 int
11132 main ()
11133 {
11134
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_cxx_try_compile "$LINENO"; then :
11140 ac_cv_prog_cxx_g=yes
11141 else
11142 CXXFLAGS=""
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145
11146 int
11147 main ()
11148 {
11149
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 if ac_fn_cxx_try_compile "$LINENO"; then :
11155
11156 else
11157 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11158 CXXFLAGS="-g"
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161
11162 int
11163 main ()
11164 {
11165
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 if ac_fn_cxx_try_compile "$LINENO"; then :
11171 ac_cv_prog_cxx_g=yes
11172 fi
11173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174 fi
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11181 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11182 if test "$ac_test_CXXFLAGS" = set; then
11183 CXXFLAGS=$ac_save_CXXFLAGS
11184 elif test $ac_cv_prog_cxx_g = yes; then
11185 if test "$GXX" = yes; then
11186 CXXFLAGS="-g -O2"
11187 else
11188 CXXFLAGS="-g"
11189 fi
11190 else
11191 if test "$GXX" = yes; then
11192 CXXFLAGS="-O2"
11193 else
11194 CXXFLAGS=
11195 fi
11196 fi
11197 ac_ext=c
11198 ac_cpp='$CPP $CPPFLAGS'
11199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11202
11203 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11204 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11205 (test "X$CXX" != "Xg++"))) ; then
11206 ac_ext=cpp
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11212 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11213 if test -z "$CXXCPP"; then
11214 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 # Double quotes because CXXCPP needs to be expanded
11218 for CXXCPP in "$CXX -E" "/lib/cpp"
11219 do
11220 ac_preproc_ok=false
11221 for ac_cxx_preproc_warn_flag in '' yes
11222 do
11223 # Use a header file that comes with gcc, so configuring glibc
11224 # with a fresh cross-compiler works.
11225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226 # <limits.h> exists even on freestanding compilers.
11227 # On the NeXT, cc -E runs the code through the compiler's parser,
11228 # not just through cpp. "Syntax error" is here to catch this case.
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231 #ifdef __STDC__
11232 # include <limits.h>
11233 #else
11234 # include <assert.h>
11235 #endif
11236 Syntax error
11237 _ACEOF
11238 if ac_fn_cxx_try_cpp "$LINENO"; then :
11239
11240 else
11241 # Broken: fails on valid input.
11242 continue
11243 fi
11244 rm -f conftest.err conftest.$ac_ext
11245
11246 # OK, works on sane cases. Now check whether nonexistent headers
11247 # can be detected and how.
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 #include <ac_nonexistent.h>
11251 _ACEOF
11252 if ac_fn_cxx_try_cpp "$LINENO"; then :
11253 # Broken: success on invalid input.
11254 continue
11255 else
11256 # Passes both tests.
11257 ac_preproc_ok=:
11258 break
11259 fi
11260 rm -f conftest.err conftest.$ac_ext
11261
11262 done
11263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11264 rm -f conftest.err conftest.$ac_ext
11265 if $ac_preproc_ok; then :
11266 break
11267 fi
11268
11269 done
11270 ac_cv_prog_CXXCPP=$CXXCPP
11271
11272 fi
11273 CXXCPP=$ac_cv_prog_CXXCPP
11274 else
11275 ac_cv_prog_CXXCPP=$CXXCPP
11276 fi
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11278 $as_echo "$CXXCPP" >&6; }
11279 ac_preproc_ok=false
11280 for ac_cxx_preproc_warn_flag in '' yes
11281 do
11282 # Use a header file that comes with gcc, so configuring glibc
11283 # with a fresh cross-compiler works.
11284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285 # <limits.h> exists even on freestanding compilers.
11286 # On the NeXT, cc -E runs the code through the compiler's parser,
11287 # not just through cpp. "Syntax error" is here to catch this case.
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 #ifdef __STDC__
11291 # include <limits.h>
11292 #else
11293 # include <assert.h>
11294 #endif
11295 Syntax error
11296 _ACEOF
11297 if ac_fn_cxx_try_cpp "$LINENO"; then :
11298
11299 else
11300 # Broken: fails on valid input.
11301 continue
11302 fi
11303 rm -f conftest.err conftest.$ac_ext
11304
11305 # OK, works on sane cases. Now check whether nonexistent headers
11306 # can be detected and how.
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 #include <ac_nonexistent.h>
11310 _ACEOF
11311 if ac_fn_cxx_try_cpp "$LINENO"; then :
11312 # Broken: success on invalid input.
11313 continue
11314 else
11315 # Passes both tests.
11316 ac_preproc_ok=:
11317 break
11318 fi
11319 rm -f conftest.err conftest.$ac_ext
11320
11321 done
11322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11323 rm -f conftest.err conftest.$ac_ext
11324 if $ac_preproc_ok; then :
11325
11326 else
11327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11329 _lt_caught_CXX_error=yes; }
11330 fi
11331
11332 ac_ext=c
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11337
11338 else
11339 _lt_caught_CXX_error=yes
11340 fi
11341
11342
11343
11344
11345 ac_ext=cpp
11346 ac_cpp='$CXXCPP $CPPFLAGS'
11347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11350
11351 archive_cmds_need_lc_CXX=no
11352 allow_undefined_flag_CXX=
11353 always_export_symbols_CXX=no
11354 archive_expsym_cmds_CXX=
11355 compiler_needs_object_CXX=no
11356 export_dynamic_flag_spec_CXX=
11357 hardcode_direct_CXX=no
11358 hardcode_direct_absolute_CXX=no
11359 hardcode_libdir_flag_spec_CXX=
11360 hardcode_libdir_flag_spec_ld_CXX=
11361 hardcode_libdir_separator_CXX=
11362 hardcode_minus_L_CXX=no
11363 hardcode_shlibpath_var_CXX=unsupported
11364 hardcode_automatic_CXX=no
11365 inherit_rpath_CXX=no
11366 module_cmds_CXX=
11367 module_expsym_cmds_CXX=
11368 link_all_deplibs_CXX=unknown
11369 old_archive_cmds_CXX=$old_archive_cmds
11370 no_undefined_flag_CXX=
11371 whole_archive_flag_spec_CXX=
11372 enable_shared_with_static_runtimes_CXX=no
11373
11374 # Source file extension for C++ test sources.
11375 ac_ext=cpp
11376
11377 # Object file extension for compiled C++ test sources.
11378 objext=o
11379 objext_CXX=$objext
11380
11381 # No sense in running all these tests if we already determined that
11382 # the CXX compiler isn't working. Some variables (like enable_shared)
11383 # are currently assumed to apply to all compilers on this platform,
11384 # and will be corrupted by setting them based on a non-working compiler.
11385 if test "$_lt_caught_CXX_error" != yes; then
11386 # Code to be used in simple compile tests
11387 lt_simple_compile_test_code="int some_variable = 0;"
11388
11389 # Code to be used in simple link tests
11390 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11391
11392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11393
11394
11395
11396
11397
11398
11399 # If no C compiler was specified, use CC.
11400 LTCC=${LTCC-"$CC"}
11401
11402 # If no C compiler flags were specified, use CFLAGS.
11403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11404
11405 # Allow CC to be a program name with arguments.
11406 compiler=$CC
11407
11408
11409 # save warnings/boilerplate of simple test code
11410 ac_outfile=conftest.$ac_objext
11411 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11413 _lt_compiler_boilerplate=`cat conftest.err`
11414 $RM conftest*
11415
11416 ac_outfile=conftest.$ac_objext
11417 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11419 _lt_linker_boilerplate=`cat conftest.err`
11420 $RM -r conftest*
11421
11422
11423 # Allow CC to be a program name with arguments.
11424 lt_save_CC=$CC
11425 lt_save_LD=$LD
11426 lt_save_GCC=$GCC
11427 GCC=$GXX
11428 lt_save_with_gnu_ld=$with_gnu_ld
11429 lt_save_path_LD=$lt_cv_path_LD
11430 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11431 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11432 else
11433 $as_unset lt_cv_prog_gnu_ld
11434 fi
11435 if test -n "${lt_cv_path_LDCXX+set}"; then
11436 lt_cv_path_LD=$lt_cv_path_LDCXX
11437 else
11438 $as_unset lt_cv_path_LD
11439 fi
11440 test -z "${LDCXX+set}" || LD=$LDCXX
11441 CC=${CXX-"c++"}
11442 compiler=$CC
11443 compiler_CXX=$CC
11444 for cc_temp in $compiler""; do
11445 case $cc_temp in
11446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11448 \-*) ;;
11449 *) break;;
11450 esac
11451 done
11452 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11453
11454
11455 if test -n "$compiler"; then
11456 # We don't want -fno-exception when compiling C++ code, so set the
11457 # no_builtin_flag separately
11458 if test "$GXX" = yes; then
11459 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11460 else
11461 lt_prog_compiler_no_builtin_flag_CXX=
11462 fi
11463
11464 if test "$GXX" = yes; then
11465 # Set up default GNU C++ configuration
11466
11467
11468
11469 # Check whether --with-gnu-ld was given.
11470 if test "${with_gnu_ld+set}" = set; then :
11471 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11472 else
11473 with_gnu_ld=no
11474 fi
11475
11476 ac_prog=ld
11477 if test "$GCC" = yes; then
11478 # Check if gcc -print-prog-name=ld gives a path.
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11480 $as_echo_n "checking for ld used by $CC... " >&6; }
11481 case $host in
11482 *-*-mingw*)
11483 # gcc leaves a trailing carriage return which upsets mingw
11484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11485 *)
11486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11487 esac
11488 case $ac_prog in
11489 # Accept absolute paths.
11490 [\\/]* | ?:[\\/]*)
11491 re_direlt='/[^/][^/]*/\.\./'
11492 # Canonicalize the pathname of ld
11493 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11494 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11495 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11496 done
11497 test -z "$LD" && LD="$ac_prog"
11498 ;;
11499 "")
11500 # If it fails, then pretend we aren't using GCC.
11501 ac_prog=ld
11502 ;;
11503 *)
11504 # If it is relative, then search for the first ld in PATH.
11505 with_gnu_ld=unknown
11506 ;;
11507 esac
11508 elif test "$with_gnu_ld" = yes; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11510 $as_echo_n "checking for GNU ld... " >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11513 $as_echo_n "checking for non-GNU ld... " >&6; }
11514 fi
11515 if test "${lt_cv_path_LD+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 if test -z "$LD"; then
11519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11520 for ac_dir in $PATH; do
11521 IFS="$lt_save_ifs"
11522 test -z "$ac_dir" && ac_dir=.
11523 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11524 lt_cv_path_LD="$ac_dir/$ac_prog"
11525 # Check to see if the program is GNU ld. I'd rather use --version,
11526 # but apparently some variants of GNU ld only accept -v.
11527 # Break only if it was the GNU/non-GNU ld that we prefer.
11528 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11529 *GNU* | *'with BFD'*)
11530 test "$with_gnu_ld" != no && break
11531 ;;
11532 *)
11533 test "$with_gnu_ld" != yes && break
11534 ;;
11535 esac
11536 fi
11537 done
11538 IFS="$lt_save_ifs"
11539 else
11540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11541 fi
11542 fi
11543
11544 LD="$lt_cv_path_LD"
11545 if test -n "$LD"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11547 $as_echo "$LD" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 fi
11552 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11554 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11555 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11559 case `$LD -v 2>&1 </dev/null` in
11560 *GNU* | *'with BFD'*)
11561 lt_cv_prog_gnu_ld=yes
11562 ;;
11563 *)
11564 lt_cv_prog_gnu_ld=no
11565 ;;
11566 esac
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11569 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11570 with_gnu_ld=$lt_cv_prog_gnu_ld
11571
11572
11573
11574
11575
11576
11577
11578 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11579 # archiving commands below assume that GNU ld is being used.
11580 if test "$with_gnu_ld" = yes; then
11581 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11582 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'
11583
11584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11586
11587 # If archive_cmds runs LD, not CC, wlarc should be empty
11588 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11589 # investigate it a little bit more. (MM)
11590 wlarc='${wl}'
11591
11592 # ancient GNU ld didn't support --whole-archive et. al.
11593 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11594 $GREP 'no-whole-archive' > /dev/null; then
11595 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11596 else
11597 whole_archive_flag_spec_CXX=
11598 fi
11599 else
11600 with_gnu_ld=no
11601 wlarc=
11602
11603 # A generic and very simple default shared library creation
11604 # command for GNU C++ for the case where it uses the native
11605 # linker, instead of GNU ld. If possible, this setting should
11606 # overridden to take advantage of the native linker features on
11607 # the platform it is being used on.
11608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11609 fi
11610
11611 # Commands to make compiler produce verbose output that lists
11612 # what "hidden" libraries, object files and flags are used when
11613 # linking a shared library.
11614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11615
11616 else
11617 GXX=no
11618 with_gnu_ld=no
11619 wlarc=
11620 fi
11621
11622 # PORTME: fill in a description of your system's C++ link characteristics
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11624 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11625 ld_shlibs_CXX=yes
11626 case $host_os in
11627 aix3*)
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 ;;
11631 aix[4-9]*)
11632 if test "$host_cpu" = ia64; then
11633 # On IA64, the linker does run time linking by default, so we don't
11634 # have to do anything special.
11635 aix_use_runtimelinking=no
11636 exp_sym_flag='-Bexport'
11637 no_entry_flag=""
11638 else
11639 aix_use_runtimelinking=no
11640
11641 # Test if we are trying to use run time linking or normal
11642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11643 # need to do runtime linking.
11644 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11645 for ld_flag in $LDFLAGS; do
11646 case $ld_flag in
11647 *-brtl*)
11648 aix_use_runtimelinking=yes
11649 break
11650 ;;
11651 esac
11652 done
11653 ;;
11654 esac
11655
11656 exp_sym_flag='-bexport'
11657 no_entry_flag='-bnoentry'
11658 fi
11659
11660 # When large executables or shared objects are built, AIX ld can
11661 # have problems creating the table of contents. If linking a library
11662 # or program results in "error TOC overflow" add -mminimal-toc to
11663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11665
11666 archive_cmds_CXX=''
11667 hardcode_direct_CXX=yes
11668 hardcode_direct_absolute_CXX=yes
11669 hardcode_libdir_separator_CXX=':'
11670 link_all_deplibs_CXX=yes
11671 file_list_spec_CXX='${wl}-f,'
11672
11673 if test "$GXX" = yes; then
11674 case $host_os in aix4.[012]|aix4.[012].*)
11675 # We only want to do this on AIX 4.2 and lower, the check
11676 # below for broken collect2 doesn't work under 4.3+
11677 collect2name=`${CC} -print-prog-name=collect2`
11678 if test -f "$collect2name" &&
11679 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11680 then
11681 # We have reworked collect2
11682 :
11683 else
11684 # We have old collect2
11685 hardcode_direct_CXX=unsupported
11686 # It fails to find uninstalled libraries when the uninstalled
11687 # path is not listed in the libpath. Setting hardcode_minus_L
11688 # to unsupported forces relinking
11689 hardcode_minus_L_CXX=yes
11690 hardcode_libdir_flag_spec_CXX='-L$libdir'
11691 hardcode_libdir_separator_CXX=
11692 fi
11693 esac
11694 shared_flag='-shared'
11695 if test "$aix_use_runtimelinking" = yes; then
11696 shared_flag="$shared_flag "'${wl}-G'
11697 fi
11698 else
11699 # not using gcc
11700 if test "$host_cpu" = ia64; then
11701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11702 # chokes on -Wl,-G. The following line is correct:
11703 shared_flag='-G'
11704 else
11705 if test "$aix_use_runtimelinking" = yes; then
11706 shared_flag='${wl}-G'
11707 else
11708 shared_flag='${wl}-bM:SRE'
11709 fi
11710 fi
11711 fi
11712
11713 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11714 # It seems that -bexpall does not export symbols beginning with
11715 # underscore (_), so it is better to generate a list of symbols to
11716 # export.
11717 always_export_symbols_CXX=yes
11718 if test "$aix_use_runtimelinking" = yes; then
11719 # Warning - without using the other runtime loading flags (-brtl),
11720 # -berok will link without error, but may produce a broken library.
11721 allow_undefined_flag_CXX='-berok'
11722 # Determine the default libpath from the value encoded in an empty
11723 # executable.
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726
11727 int
11728 main ()
11729 {
11730
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 if ac_fn_cxx_try_link "$LINENO"; then :
11736
11737 lt_aix_libpath_sed='
11738 /Import File Strings/,/^$/ {
11739 /^0/ {
11740 s/^0 *\(.*\)$/\1/
11741 p
11742 }
11743 }'
11744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11745 # Check for a 64-bit object if we didn't find anything.
11746 if test -z "$aix_libpath"; then
11747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11748 fi
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11753
11754 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11755
11756 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"
11757 else
11758 if test "$host_cpu" = ia64; then
11759 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11760 allow_undefined_flag_CXX="-z nodefs"
11761 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"
11762 else
11763 # Determine the default libpath from the value encoded in an
11764 # empty executable.
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767
11768 int
11769 main ()
11770 {
11771
11772 ;
11773 return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_cxx_try_link "$LINENO"; then :
11777
11778 lt_aix_libpath_sed='
11779 /Import File Strings/,/^$/ {
11780 /^0/ {
11781 s/^0 *\(.*\)$/\1/
11782 p
11783 }
11784 }'
11785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11786 # Check for a 64-bit object if we didn't find anything.
11787 if test -z "$aix_libpath"; then
11788 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11789 fi
11790 fi
11791 rm -f core conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11794
11795 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11796 # Warning - without using the other run time loading flags,
11797 # -berok will link without error, but may produce a broken library.
11798 no_undefined_flag_CXX=' ${wl}-bernotok'
11799 allow_undefined_flag_CXX=' ${wl}-berok'
11800 # Exported symbols can be pulled into shared objects from archives
11801 whole_archive_flag_spec_CXX='$convenience'
11802 archive_cmds_need_lc_CXX=yes
11803 # This is similar to how AIX traditionally builds its shared
11804 # libraries.
11805 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'
11806 fi
11807 fi
11808 ;;
11809
11810 beos*)
11811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11812 allow_undefined_flag_CXX=unsupported
11813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11814 # support --undefined. This deserves some investigation. FIXME
11815 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11816 else
11817 ld_shlibs_CXX=no
11818 fi
11819 ;;
11820
11821 chorus*)
11822 case $cc_basename in
11823 *)
11824 # FIXME: insert proper C++ library support
11825 ld_shlibs_CXX=no
11826 ;;
11827 esac
11828 ;;
11829
11830 cygwin* | mingw* | pw32* | cegcc*)
11831 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11832 # as there is no search path for DLLs.
11833 hardcode_libdir_flag_spec_CXX='-L$libdir'
11834 allow_undefined_flag_CXX=unsupported
11835 always_export_symbols_CXX=no
11836 enable_shared_with_static_runtimes_CXX=yes
11837
11838 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11839 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'
11840 # If the export-symbols file already is a .def file (1st line
11841 # is EXPORTS), use it as is; otherwise, prepend...
11842 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11843 cp $export_symbols $output_objdir/$soname.def;
11844 else
11845 echo EXPORTS > $output_objdir/$soname.def;
11846 cat $export_symbols >> $output_objdir/$soname.def;
11847 fi~
11848 $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'
11849 else
11850 ld_shlibs_CXX=no
11851 fi
11852 ;;
11853 darwin* | rhapsody*)
11854
11855
11856 archive_cmds_need_lc_CXX=no
11857 hardcode_direct_CXX=no
11858 hardcode_automatic_CXX=yes
11859 hardcode_shlibpath_var_CXX=unsupported
11860 whole_archive_flag_spec_CXX=''
11861 link_all_deplibs_CXX=yes
11862 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11863 case $cc_basename in
11864 ifort*) _lt_dar_can_shared=yes ;;
11865 *) _lt_dar_can_shared=$GCC ;;
11866 esac
11867 if test "$_lt_dar_can_shared" = "yes"; then
11868 output_verbose_link_cmd=echo
11869 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}"
11870 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11871 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}"
11872 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}"
11873 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11874 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}"
11875 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}"
11876 fi
11877
11878 else
11879 ld_shlibs_CXX=no
11880 fi
11881
11882 ;;
11883
11884 dgux*)
11885 case $cc_basename in
11886 ec++*)
11887 # FIXME: insert proper C++ library support
11888 ld_shlibs_CXX=no
11889 ;;
11890 ghcx*)
11891 # Green Hills C++ Compiler
11892 # FIXME: insert proper C++ library support
11893 ld_shlibs_CXX=no
11894 ;;
11895 *)
11896 # FIXME: insert proper C++ library support
11897 ld_shlibs_CXX=no
11898 ;;
11899 esac
11900 ;;
11901
11902 freebsd[12]*)
11903 # C++ shared libraries reported to be fairly broken before
11904 # switch to ELF
11905 ld_shlibs_CXX=no
11906 ;;
11907
11908 freebsd-elf*)
11909 archive_cmds_need_lc_CXX=no
11910 ;;
11911
11912 freebsd* | dragonfly*)
11913 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11914 # conventions
11915 ld_shlibs_CXX=yes
11916 ;;
11917
11918 gnu*)
11919 ;;
11920
11921 hpux9*)
11922 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11923 hardcode_libdir_separator_CXX=:
11924 export_dynamic_flag_spec_CXX='${wl}-E'
11925 hardcode_direct_CXX=yes
11926 hardcode_minus_L_CXX=yes # Not in the search PATH,
11927 # but as the default
11928 # location of the library.
11929
11930 case $cc_basename in
11931 CC*)
11932 # FIXME: insert proper C++ library support
11933 ld_shlibs_CXX=no
11934 ;;
11935 aCC*)
11936 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'
11937 # Commands to make compiler produce verbose output that lists
11938 # what "hidden" libraries, object files and flags are used when
11939 # linking a shared library.
11940 #
11941 # There doesn't appear to be a way to prevent this compiler from
11942 # explicitly linking system object files so we need to strip them
11943 # from the output so that they don't get included in the library
11944 # dependencies.
11945 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'
11946 ;;
11947 *)
11948 if test "$GXX" = yes; then
11949 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'
11950 else
11951 # FIXME: insert proper C++ library support
11952 ld_shlibs_CXX=no
11953 fi
11954 ;;
11955 esac
11956 ;;
11957
11958 hpux10*|hpux11*)
11959 if test $with_gnu_ld = no; then
11960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11961 hardcode_libdir_separator_CXX=:
11962
11963 case $host_cpu in
11964 hppa*64*|ia64*)
11965 ;;
11966 *)
11967 export_dynamic_flag_spec_CXX='${wl}-E'
11968 ;;
11969 esac
11970 fi
11971 case $host_cpu in
11972 hppa*64*|ia64*)
11973 hardcode_direct_CXX=no
11974 hardcode_shlibpath_var_CXX=no
11975 ;;
11976 *)
11977 hardcode_direct_CXX=yes
11978 hardcode_direct_absolute_CXX=yes
11979 hardcode_minus_L_CXX=yes # Not in the search PATH,
11980 # but as the default
11981 # location of the library.
11982 ;;
11983 esac
11984
11985 case $cc_basename in
11986 CC*)
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11989 ;;
11990 aCC*)
11991 case $host_cpu in
11992 hppa*64*)
11993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11994 ;;
11995 ia64*)
11996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11997 ;;
11998 *)
11999 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12000 ;;
12001 esac
12002 # Commands to make compiler produce verbose output that lists
12003 # what "hidden" libraries, object files and flags are used when
12004 # linking a shared library.
12005 #
12006 # There doesn't appear to be a way to prevent this compiler from
12007 # explicitly linking system object files so we need to strip them
12008 # from the output so that they don't get included in the library
12009 # dependencies.
12010 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'
12011 ;;
12012 *)
12013 if test "$GXX" = yes; then
12014 if test $with_gnu_ld = no; then
12015 case $host_cpu in
12016 hppa*64*)
12017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12018 ;;
12019 ia64*)
12020 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12021 ;;
12022 *)
12023 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'
12024 ;;
12025 esac
12026 fi
12027 else
12028 # FIXME: insert proper C++ library support
12029 ld_shlibs_CXX=no
12030 fi
12031 ;;
12032 esac
12033 ;;
12034
12035 interix[3-9]*)
12036 hardcode_direct_CXX=no
12037 hardcode_shlibpath_var_CXX=no
12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12039 export_dynamic_flag_spec_CXX='${wl}-E'
12040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12041 # Instead, shared libraries are loaded at an image base (0x10000000 by
12042 # default) and relocated if they conflict, which is a slow very memory
12043 # consuming and fragmenting process. To avoid this, we pick a random,
12044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12046 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'
12047 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'
12048 ;;
12049 irix5* | irix6*)
12050 case $cc_basename in
12051 CC*)
12052 # SGI C++
12053 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'
12054
12055 # Archives containing C++ object files must be created using
12056 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12057 # necessary to make sure instantiated templates are included
12058 # in the archive.
12059 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12060 ;;
12061 *)
12062 if test "$GXX" = yes; then
12063 if test "$with_gnu_ld" = no; then
12064 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'
12065 else
12066 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'
12067 fi
12068 fi
12069 link_all_deplibs_CXX=yes
12070 ;;
12071 esac
12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12073 hardcode_libdir_separator_CXX=:
12074 inherit_rpath_CXX=yes
12075 ;;
12076
12077 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12078 case $cc_basename in
12079 KCC*)
12080 # Kuck and Associates, Inc. (KAI) C++ Compiler
12081
12082 # KCC will only create a shared library if the output file
12083 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12084 # to its proper name (with version) after linking.
12085 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'
12086 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'
12087 # Commands to make compiler produce verbose output that lists
12088 # what "hidden" libraries, object files and flags are used when
12089 # linking a shared library.
12090 #
12091 # There doesn't appear to be a way to prevent this compiler from
12092 # explicitly linking system object files so we need to strip them
12093 # from the output so that they don't get included in the library
12094 # dependencies.
12095 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'
12096
12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12099
12100 # Archives containing C++ object files must be created using
12101 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12102 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12103 ;;
12104 icpc* | ecpc* )
12105 # Intel C++
12106 with_gnu_ld=yes
12107 # version 8.0 and above of icpc choke on multiply defined symbols
12108 # if we add $predep_objects and $postdep_objects, however 7.1 and
12109 # earlier do not add the objects themselves.
12110 case `$CC -V 2>&1` in
12111 *"Version 7."*)
12112 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12113 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'
12114 ;;
12115 *) # Version 8.0 or newer
12116 tmp_idyn=
12117 case $host_cpu in
12118 ia64*) tmp_idyn=' -i_dynamic';;
12119 esac
12120 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12121 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'
12122 ;;
12123 esac
12124 archive_cmds_need_lc_CXX=no
12125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12127 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12128 ;;
12129 pgCC* | pgcpp*)
12130 # Portland Group C++ compiler
12131 case `$CC -V` in
12132 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12133 prelink_cmds_CXX='tpldir=Template.dir~
12134 rm -rf $tpldir~
12135 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12136 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12137 old_archive_cmds_CXX='tpldir=Template.dir~
12138 rm -rf $tpldir~
12139 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12140 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12141 $RANLIB $oldlib'
12142 archive_cmds_CXX='tpldir=Template.dir~
12143 rm -rf $tpldir~
12144 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12145 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12146 archive_expsym_cmds_CXX='tpldir=Template.dir~
12147 rm -rf $tpldir~
12148 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12149 $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'
12150 ;;
12151 *) # Version 6 will use weak symbols
12152 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12153 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'
12154 ;;
12155 esac
12156
12157 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12158 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12159 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'
12160 ;;
12161 cxx*)
12162 # Compaq C++
12163 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164 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'
12165
12166 runpath_var=LD_RUN_PATH
12167 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12168 hardcode_libdir_separator_CXX=:
12169
12170 # Commands to make compiler produce verbose output that lists
12171 # what "hidden" libraries, object files and flags are used when
12172 # linking a shared library.
12173 #
12174 # There doesn't appear to be a way to prevent this compiler from
12175 # explicitly linking system object files so we need to strip them
12176 # from the output so that they don't get included in the library
12177 # dependencies.
12178 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'
12179 ;;
12180 xl*)
12181 # IBM XL 8.0 on PPC, with GNU ld
12182 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12184 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12185 if test "x$supports_anon_versioning" = xyes; then
12186 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12188 echo "local: *; };" >> $output_objdir/$libname.ver~
12189 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12190 fi
12191 ;;
12192 *)
12193 case `$CC -V 2>&1 | sed 5q` in
12194 *Sun\ C*)
12195 # Sun C++ 5.9
12196 no_undefined_flag_CXX=' -zdefs'
12197 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12198 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'
12199 hardcode_libdir_flag_spec_CXX='-R$libdir'
12200 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'
12201 compiler_needs_object_CXX=yes
12202
12203 # Not sure whether something based on
12204 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12205 # would be better.
12206 output_verbose_link_cmd='echo'
12207
12208 # Archives containing C++ object files must be created using
12209 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12210 # necessary to make sure instantiated templates are included
12211 # in the archive.
12212 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12213 ;;
12214 esac
12215 ;;
12216 esac
12217 ;;
12218
12219 lynxos*)
12220 # FIXME: insert proper C++ library support
12221 ld_shlibs_CXX=no
12222 ;;
12223
12224 m88k*)
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12227 ;;
12228
12229 mvs*)
12230 case $cc_basename in
12231 cxx*)
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12234 ;;
12235 *)
12236 # FIXME: insert proper C++ library support
12237 ld_shlibs_CXX=no
12238 ;;
12239 esac
12240 ;;
12241
12242 netbsd*)
12243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12244 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12245 wlarc=
12246 hardcode_libdir_flag_spec_CXX='-R$libdir'
12247 hardcode_direct_CXX=yes
12248 hardcode_shlibpath_var_CXX=no
12249 fi
12250 # Workaround some broken pre-1.5 toolchains
12251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12252 ;;
12253
12254 *nto* | *qnx*)
12255 ld_shlibs_CXX=yes
12256 ;;
12257
12258 openbsd2*)
12259 # C++ shared libraries are fairly broken
12260 ld_shlibs_CXX=no
12261 ;;
12262
12263 openbsd*)
12264 if test -f /usr/libexec/ld.so; then
12265 hardcode_direct_CXX=yes
12266 hardcode_shlibpath_var_CXX=no
12267 hardcode_direct_absolute_CXX=yes
12268 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12271 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12272 export_dynamic_flag_spec_CXX='${wl}-E'
12273 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12274 fi
12275 output_verbose_link_cmd=echo
12276 else
12277 ld_shlibs_CXX=no
12278 fi
12279 ;;
12280
12281 osf3* | osf4* | osf5*)
12282 case $cc_basename in
12283 KCC*)
12284 # Kuck and Associates, Inc. (KAI) C++ Compiler
12285
12286 # KCC will only create a shared library if the output file
12287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12288 # to its proper name (with version) after linking.
12289 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'
12290
12291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12292 hardcode_libdir_separator_CXX=:
12293
12294 # Archives containing C++ object files must be created using
12295 # the KAI C++ compiler.
12296 case $host in
12297 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12298 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12299 esac
12300 ;;
12301 RCC*)
12302 # Rational C++ 2.4.1
12303 # FIXME: insert proper C++ library support
12304 ld_shlibs_CXX=no
12305 ;;
12306 cxx*)
12307 case $host in
12308 osf3*)
12309 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12310 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'
12311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12312 ;;
12313 *)
12314 allow_undefined_flag_CXX=' -expect_unresolved \*'
12315 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'
12316 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12317 echo "-hidden">> $lib.exp~
12318 $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~
12319 $RM $lib.exp'
12320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12321 ;;
12322 esac
12323
12324 hardcode_libdir_separator_CXX=:
12325
12326 # Commands to make compiler produce verbose output that lists
12327 # what "hidden" libraries, object files and flags are used when
12328 # linking a shared library.
12329 #
12330 # There doesn't appear to be a way to prevent this compiler from
12331 # explicitly linking system object files so we need to strip them
12332 # from the output so that they don't get included in the library
12333 # dependencies.
12334 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'
12335 ;;
12336 *)
12337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12338 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12339 case $host in
12340 osf3*)
12341 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'
12342 ;;
12343 *)
12344 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'
12345 ;;
12346 esac
12347
12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12349 hardcode_libdir_separator_CXX=:
12350
12351 # Commands to make compiler produce verbose output that lists
12352 # what "hidden" libraries, object files and flags are used when
12353 # linking a shared library.
12354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12355
12356 else
12357 # FIXME: insert proper C++ library support
12358 ld_shlibs_CXX=no
12359 fi
12360 ;;
12361 esac
12362 ;;
12363
12364 psos*)
12365 # FIXME: insert proper C++ library support
12366 ld_shlibs_CXX=no
12367 ;;
12368
12369 sunos4*)
12370 case $cc_basename in
12371 CC*)
12372 # Sun C++ 4.x
12373 # FIXME: insert proper C++ library support
12374 ld_shlibs_CXX=no
12375 ;;
12376 lcc*)
12377 # Lucid
12378 # FIXME: insert proper C++ library support
12379 ld_shlibs_CXX=no
12380 ;;
12381 *)
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385 esac
12386 ;;
12387
12388 solaris*)
12389 case $cc_basename in
12390 CC*)
12391 # Sun C++ 4.2, 5.x and Centerline C++
12392 archive_cmds_need_lc_CXX=yes
12393 no_undefined_flag_CXX=' -zdefs'
12394 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12395 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12396 $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'
12397
12398 hardcode_libdir_flag_spec_CXX='-R$libdir'
12399 hardcode_shlibpath_var_CXX=no
12400 case $host_os in
12401 solaris2.[0-5] | solaris2.[0-5].*) ;;
12402 *)
12403 # The compiler driver will combine and reorder linker options,
12404 # but understands `-z linker_flag'.
12405 # Supported since Solaris 2.6 (maybe 2.5.1?)
12406 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12407 ;;
12408 esac
12409 link_all_deplibs_CXX=yes
12410
12411 output_verbose_link_cmd='echo'
12412
12413 # Archives containing C++ object files must be created using
12414 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12415 # necessary to make sure instantiated templates are included
12416 # in the archive.
12417 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12418 ;;
12419 gcx*)
12420 # Green Hills C++ Compiler
12421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12422
12423 # The C++ compiler must be used to create the archive.
12424 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12425 ;;
12426 *)
12427 # GNU C++ compiler with Solaris linker
12428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12429 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12430 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12431 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12432 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12433 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12434
12435 # Commands to make compiler produce verbose output that lists
12436 # what "hidden" libraries, object files and flags are used when
12437 # linking a shared library.
12438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12439 else
12440 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12441 # platform.
12442 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12443 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12444 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12445
12446 # Commands to make compiler produce verbose output that lists
12447 # what "hidden" libraries, object files and flags are used when
12448 # linking a shared library.
12449 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12450 fi
12451
12452 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12453 case $host_os in
12454 solaris2.[0-5] | solaris2.[0-5].*) ;;
12455 *)
12456 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12457 ;;
12458 esac
12459 fi
12460 ;;
12461 esac
12462 ;;
12463
12464 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12465 no_undefined_flag_CXX='${wl}-z,text'
12466 archive_cmds_need_lc_CXX=no
12467 hardcode_shlibpath_var_CXX=no
12468 runpath_var='LD_RUN_PATH'
12469
12470 case $cc_basename in
12471 CC*)
12472 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12473 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12474 ;;
12475 *)
12476 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12477 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12478 ;;
12479 esac
12480 ;;
12481
12482 sysv5* | sco3.2v5* | sco5v6*)
12483 # Note: We can NOT use -z defs as we might desire, because we do not
12484 # link with -lc, and that would cause any symbols used from libc to
12485 # always be unresolved, which means just about no library would
12486 # ever link correctly. If we're not using GNU ld we use -z text
12487 # though, which does catch some bad symbols but isn't as heavy-handed
12488 # as -z defs.
12489 no_undefined_flag_CXX='${wl}-z,text'
12490 allow_undefined_flag_CXX='${wl}-z,nodefs'
12491 archive_cmds_need_lc_CXX=no
12492 hardcode_shlibpath_var_CXX=no
12493 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12494 hardcode_libdir_separator_CXX=':'
12495 link_all_deplibs_CXX=yes
12496 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12497 runpath_var='LD_RUN_PATH'
12498
12499 case $cc_basename in
12500 CC*)
12501 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12502 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 ;;
12504 *)
12505 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12506 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12507 ;;
12508 esac
12509 ;;
12510
12511 tandem*)
12512 case $cc_basename in
12513 NCC*)
12514 # NonStop-UX NCC 3.20
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12517 ;;
12518 *)
12519 # FIXME: insert proper C++ library support
12520 ld_shlibs_CXX=no
12521 ;;
12522 esac
12523 ;;
12524
12525 vxworks*)
12526 # FIXME: insert proper C++ library support
12527 ld_shlibs_CXX=no
12528 ;;
12529
12530 *)
12531 # FIXME: insert proper C++ library support
12532 ld_shlibs_CXX=no
12533 ;;
12534 esac
12535
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12537 $as_echo "$ld_shlibs_CXX" >&6; }
12538 test "$ld_shlibs_CXX" = no && can_build_shared=no
12539
12540 GCC_CXX="$GXX"
12541 LD_CXX="$LD"
12542
12543 ## CAVEAT EMPTOR:
12544 ## There is no encapsulation within the following macros, do not change
12545 ## the running order or otherwise move them around unless you know exactly
12546 ## what you are doing...
12547 # Dependencies to place before and after the object being linked:
12548 predep_objects_CXX=
12549 postdep_objects_CXX=
12550 predeps_CXX=
12551 postdeps_CXX=
12552 compiler_lib_search_path_CXX=
12553
12554 cat > conftest.$ac_ext <<_LT_EOF
12555 class Foo
12556 {
12557 public:
12558 Foo (void) { a = 0; }
12559 private:
12560 int a;
12561 };
12562 _LT_EOF
12563
12564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12565 (eval $ac_compile) 2>&5
12566 ac_status=$?
12567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12568 test $ac_status = 0; }; then
12569 # Parse the compiler output and extract the necessary
12570 # objects, libraries and library flags.
12571
12572 # Sentinel used to keep track of whether or not we are before
12573 # the conftest object file.
12574 pre_test_object_deps_done=no
12575
12576 for p in `eval "$output_verbose_link_cmd"`; do
12577 case $p in
12578
12579 -L* | -R* | -l*)
12580 # Some compilers place space between "-{L,R}" and the path.
12581 # Remove the space.
12582 if test $p = "-L" ||
12583 test $p = "-R"; then
12584 prev=$p
12585 continue
12586 else
12587 prev=
12588 fi
12589
12590 if test "$pre_test_object_deps_done" = no; then
12591 case $p in
12592 -L* | -R*)
12593 # Internal compiler library paths should come after those
12594 # provided the user. The postdeps already come after the
12595 # user supplied libs so there is no need to process them.
12596 if test -z "$compiler_lib_search_path_CXX"; then
12597 compiler_lib_search_path_CXX="${prev}${p}"
12598 else
12599 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12600 fi
12601 ;;
12602 # The "-l" case would never come before the object being
12603 # linked, so don't bother handling this case.
12604 esac
12605 else
12606 if test -z "$postdeps_CXX"; then
12607 postdeps_CXX="${prev}${p}"
12608 else
12609 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12610 fi
12611 fi
12612 ;;
12613
12614 *.$objext)
12615 # This assumes that the test object file only shows up
12616 # once in the compiler output.
12617 if test "$p" = "conftest.$objext"; then
12618 pre_test_object_deps_done=yes
12619 continue
12620 fi
12621
12622 if test "$pre_test_object_deps_done" = no; then
12623 if test -z "$predep_objects_CXX"; then
12624 predep_objects_CXX="$p"
12625 else
12626 predep_objects_CXX="$predep_objects_CXX $p"
12627 fi
12628 else
12629 if test -z "$postdep_objects_CXX"; then
12630 postdep_objects_CXX="$p"
12631 else
12632 postdep_objects_CXX="$postdep_objects_CXX $p"
12633 fi
12634 fi
12635 ;;
12636
12637 *) ;; # Ignore the rest.
12638
12639 esac
12640 done
12641
12642 # Clean up.
12643 rm -f a.out a.exe
12644 else
12645 echo "libtool.m4: error: problem compiling CXX test program"
12646 fi
12647
12648 $RM -f confest.$objext
12649
12650 # PORTME: override above test on systems where it is broken
12651 case $host_os in
12652 interix[3-9]*)
12653 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12654 # hack all around it, let's just trust "g++" to DTRT.
12655 predep_objects_CXX=
12656 postdep_objects_CXX=
12657 postdeps_CXX=
12658 ;;
12659
12660 linux*)
12661 case `$CC -V 2>&1 | sed 5q` in
12662 *Sun\ C*)
12663 # Sun C++ 5.9
12664
12665 # The more standards-conforming stlport4 library is
12666 # incompatible with the Cstd library. Avoid specifying
12667 # it if it's in CXXFLAGS. Ignore libCrun as
12668 # -library=stlport4 depends on it.
12669 case " $CXX $CXXFLAGS " in
12670 *" -library=stlport4 "*)
12671 solaris_use_stlport4=yes
12672 ;;
12673 esac
12674
12675 if test "$solaris_use_stlport4" != yes; then
12676 postdeps_CXX='-library=Cstd -library=Crun'
12677 fi
12678 ;;
12679 esac
12680 ;;
12681
12682 solaris*)
12683 case $cc_basename in
12684 CC*)
12685 # The more standards-conforming stlport4 library is
12686 # incompatible with the Cstd library. Avoid specifying
12687 # it if it's in CXXFLAGS. Ignore libCrun as
12688 # -library=stlport4 depends on it.
12689 case " $CXX $CXXFLAGS " in
12690 *" -library=stlport4 "*)
12691 solaris_use_stlport4=yes
12692 ;;
12693 esac
12694
12695 # Adding this requires a known-good setup of shared libraries for
12696 # Sun compiler versions before 5.6, else PIC objects from an old
12697 # archive will be linked into the output, leading to subtle bugs.
12698 if test "$solaris_use_stlport4" != yes; then
12699 postdeps_CXX='-library=Cstd -library=Crun'
12700 fi
12701 ;;
12702 esac
12703 ;;
12704 esac
12705
12706
12707 case " $postdeps_CXX " in
12708 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12709 esac
12710 compiler_lib_search_dirs_CXX=
12711 if test -n "${compiler_lib_search_path_CXX}"; then
12712 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12713 fi
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745 lt_prog_compiler_wl_CXX=
12746 lt_prog_compiler_pic_CXX=
12747 lt_prog_compiler_static_CXX=
12748
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12750 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12751
12752 # C++ specific cases for pic, static, wl, etc.
12753 if test "$GXX" = yes; then
12754 lt_prog_compiler_wl_CXX='-Wl,'
12755 lt_prog_compiler_static_CXX='-static'
12756
12757 case $host_os in
12758 aix*)
12759 # All AIX code is PIC.
12760 if test "$host_cpu" = ia64; then
12761 # AIX 5 now supports IA64 processor
12762 lt_prog_compiler_static_CXX='-Bstatic'
12763 fi
12764 ;;
12765
12766 amigaos*)
12767 case $host_cpu in
12768 powerpc)
12769 # see comment about AmigaOS4 .so support
12770 lt_prog_compiler_pic_CXX='-fPIC'
12771 ;;
12772 m68k)
12773 # FIXME: we need at least 68020 code to build shared libraries, but
12774 # adding the `-m68020' flag to GCC prevents building anything better,
12775 # like `-m68040'.
12776 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12777 ;;
12778 esac
12779 ;;
12780
12781 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12782 # PIC is the default for these OSes.
12783 ;;
12784 mingw* | cygwin* | os2* | pw32* | cegcc*)
12785 # This hack is so that the source file can tell whether it is being
12786 # built for inclusion in a dll (and should export symbols for example).
12787 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12788 # (--disable-auto-import) libraries
12789 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12790 ;;
12791 darwin* | rhapsody*)
12792 # PIC is the default on this platform
12793 # Common symbols not allowed in MH_DYLIB files
12794 lt_prog_compiler_pic_CXX='-fno-common'
12795 ;;
12796 *djgpp*)
12797 # DJGPP does not support shared libraries at all
12798 lt_prog_compiler_pic_CXX=
12799 ;;
12800 interix[3-9]*)
12801 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12802 # Instead, we relocate shared libraries at runtime.
12803 ;;
12804 sysv4*MP*)
12805 if test -d /usr/nec; then
12806 lt_prog_compiler_pic_CXX=-Kconform_pic
12807 fi
12808 ;;
12809 hpux*)
12810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12812 # sets the default TLS model and affects inlining.
12813 case $host_cpu in
12814 hppa*64*)
12815 ;;
12816 *)
12817 lt_prog_compiler_pic_CXX='-fPIC'
12818 ;;
12819 esac
12820 ;;
12821 *qnx* | *nto*)
12822 # QNX uses GNU C++, but need to define -shared option too, otherwise
12823 # it will coredump.
12824 lt_prog_compiler_pic_CXX='-fPIC -shared'
12825 ;;
12826 *)
12827 lt_prog_compiler_pic_CXX='-fPIC'
12828 ;;
12829 esac
12830 else
12831 case $host_os in
12832 aix[4-9]*)
12833 # All AIX code is PIC.
12834 if test "$host_cpu" = ia64; then
12835 # AIX 5 now supports IA64 processor
12836 lt_prog_compiler_static_CXX='-Bstatic'
12837 else
12838 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12839 fi
12840 ;;
12841 chorus*)
12842 case $cc_basename in
12843 cxch68*)
12844 # Green Hills C++ Compiler
12845 # _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"
12846 ;;
12847 esac
12848 ;;
12849 dgux*)
12850 case $cc_basename in
12851 ec++*)
12852 lt_prog_compiler_pic_CXX='-KPIC'
12853 ;;
12854 ghcx*)
12855 # Green Hills C++ Compiler
12856 lt_prog_compiler_pic_CXX='-pic'
12857 ;;
12858 *)
12859 ;;
12860 esac
12861 ;;
12862 freebsd* | dragonfly*)
12863 # FreeBSD uses GNU C++
12864 ;;
12865 hpux9* | hpux10* | hpux11*)
12866 case $cc_basename in
12867 CC*)
12868 lt_prog_compiler_wl_CXX='-Wl,'
12869 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12870 if test "$host_cpu" != ia64; then
12871 lt_prog_compiler_pic_CXX='+Z'
12872 fi
12873 ;;
12874 aCC*)
12875 lt_prog_compiler_wl_CXX='-Wl,'
12876 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12877 case $host_cpu in
12878 hppa*64*|ia64*)
12879 # +Z the default
12880 ;;
12881 *)
12882 lt_prog_compiler_pic_CXX='+Z'
12883 ;;
12884 esac
12885 ;;
12886 *)
12887 ;;
12888 esac
12889 ;;
12890 interix*)
12891 # This is c89, which is MS Visual C++ (no shared libs)
12892 # Anyone wants to do a port?
12893 ;;
12894 irix5* | irix6* | nonstopux*)
12895 case $cc_basename in
12896 CC*)
12897 lt_prog_compiler_wl_CXX='-Wl,'
12898 lt_prog_compiler_static_CXX='-non_shared'
12899 # CC pic flag -KPIC is the default.
12900 ;;
12901 *)
12902 ;;
12903 esac
12904 ;;
12905 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12906 case $cc_basename in
12907 KCC*)
12908 # KAI C++ Compiler
12909 lt_prog_compiler_wl_CXX='--backend -Wl,'
12910 lt_prog_compiler_pic_CXX='-fPIC'
12911 ;;
12912 ecpc* )
12913 # old Intel C++ for x86_64 which still supported -KPIC.
12914 lt_prog_compiler_wl_CXX='-Wl,'
12915 lt_prog_compiler_pic_CXX='-KPIC'
12916 lt_prog_compiler_static_CXX='-static'
12917 ;;
12918 icpc* )
12919 # Intel C++, used to be incompatible with GCC.
12920 # ICC 10 doesn't accept -KPIC any more.
12921 lt_prog_compiler_wl_CXX='-Wl,'
12922 lt_prog_compiler_pic_CXX='-fPIC'
12923 lt_prog_compiler_static_CXX='-static'
12924 ;;
12925 pgCC* | pgcpp*)
12926 # Portland Group C++ compiler
12927 lt_prog_compiler_wl_CXX='-Wl,'
12928 lt_prog_compiler_pic_CXX='-fpic'
12929 lt_prog_compiler_static_CXX='-Bstatic'
12930 ;;
12931 cxx*)
12932 # Compaq C++
12933 # Make sure the PIC flag is empty. It appears that all Alpha
12934 # Linux and Compaq Tru64 Unix objects are PIC.
12935 lt_prog_compiler_pic_CXX=
12936 lt_prog_compiler_static_CXX='-non_shared'
12937 ;;
12938 xlc* | xlC*)
12939 # IBM XL 8.0 on PPC
12940 lt_prog_compiler_wl_CXX='-Wl,'
12941 lt_prog_compiler_pic_CXX='-qpic'
12942 lt_prog_compiler_static_CXX='-qstaticlink'
12943 ;;
12944 *)
12945 case `$CC -V 2>&1 | sed 5q` in
12946 *Sun\ C*)
12947 # Sun C++ 5.9
12948 lt_prog_compiler_pic_CXX='-KPIC'
12949 lt_prog_compiler_static_CXX='-Bstatic'
12950 lt_prog_compiler_wl_CXX='-Qoption ld '
12951 ;;
12952 esac
12953 ;;
12954 esac
12955 ;;
12956 lynxos*)
12957 ;;
12958 m88k*)
12959 ;;
12960 mvs*)
12961 case $cc_basename in
12962 cxx*)
12963 lt_prog_compiler_pic_CXX='-W c,exportall'
12964 ;;
12965 *)
12966 ;;
12967 esac
12968 ;;
12969 netbsd* | netbsdelf*-gnu)
12970 ;;
12971 *qnx* | *nto*)
12972 # QNX uses GNU C++, but need to define -shared option too, otherwise
12973 # it will coredump.
12974 lt_prog_compiler_pic_CXX='-fPIC -shared'
12975 ;;
12976 osf3* | osf4* | osf5*)
12977 case $cc_basename in
12978 KCC*)
12979 lt_prog_compiler_wl_CXX='--backend -Wl,'
12980 ;;
12981 RCC*)
12982 # Rational C++ 2.4.1
12983 lt_prog_compiler_pic_CXX='-pic'
12984 ;;
12985 cxx*)
12986 # Digital/Compaq C++
12987 lt_prog_compiler_wl_CXX='-Wl,'
12988 # Make sure the PIC flag is empty. It appears that all Alpha
12989 # Linux and Compaq Tru64 Unix objects are PIC.
12990 lt_prog_compiler_pic_CXX=
12991 lt_prog_compiler_static_CXX='-non_shared'
12992 ;;
12993 *)
12994 ;;
12995 esac
12996 ;;
12997 psos*)
12998 ;;
12999 solaris*)
13000 case $cc_basename in
13001 CC*)
13002 # Sun C++ 4.2, 5.x and Centerline C++
13003 lt_prog_compiler_pic_CXX='-KPIC'
13004 lt_prog_compiler_static_CXX='-Bstatic'
13005 lt_prog_compiler_wl_CXX='-Qoption ld '
13006 ;;
13007 gcx*)
13008 # Green Hills C++ Compiler
13009 lt_prog_compiler_pic_CXX='-PIC'
13010 ;;
13011 *)
13012 ;;
13013 esac
13014 ;;
13015 sunos4*)
13016 case $cc_basename in
13017 CC*)
13018 # Sun C++ 4.x
13019 lt_prog_compiler_pic_CXX='-pic'
13020 lt_prog_compiler_static_CXX='-Bstatic'
13021 ;;
13022 lcc*)
13023 # Lucid
13024 lt_prog_compiler_pic_CXX='-pic'
13025 ;;
13026 *)
13027 ;;
13028 esac
13029 ;;
13030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13031 case $cc_basename in
13032 CC*)
13033 lt_prog_compiler_wl_CXX='-Wl,'
13034 lt_prog_compiler_pic_CXX='-KPIC'
13035 lt_prog_compiler_static_CXX='-Bstatic'
13036 ;;
13037 esac
13038 ;;
13039 tandem*)
13040 case $cc_basename in
13041 NCC*)
13042 # NonStop-UX NCC 3.20
13043 lt_prog_compiler_pic_CXX='-KPIC'
13044 ;;
13045 *)
13046 ;;
13047 esac
13048 ;;
13049 vxworks*)
13050 ;;
13051 *)
13052 lt_prog_compiler_can_build_shared_CXX=no
13053 ;;
13054 esac
13055 fi
13056
13057 case $host_os in
13058 # For platforms which do not support PIC, -DPIC is meaningless:
13059 *djgpp*)
13060 lt_prog_compiler_pic_CXX=
13061 ;;
13062 *)
13063 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13064 ;;
13065 esac
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13067 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13068
13069
13070
13071 #
13072 # Check to make sure the PIC flag actually works.
13073 #
13074 if test -n "$lt_prog_compiler_pic_CXX"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13076 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13077 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 lt_cv_prog_compiler_pic_works_CXX=no
13081 ac_outfile=conftest.$ac_objext
13082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13083 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13084 # Insert the option either (1) after the last *FLAGS variable, or
13085 # (2) before a word containing "conftest.", or (3) at the end.
13086 # Note that $ac_compile itself does not contain backslashes and begins
13087 # with a dollar sign (not a hyphen), so the echo should work correctly.
13088 # The option is referenced via a variable to avoid confusing sed.
13089 lt_compile=`echo "$ac_compile" | $SED \
13090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13092 -e 's:$: $lt_compiler_flag:'`
13093 (eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
13094 (eval "$lt_compile" 2>conftest.err)
13095 ac_status=$?
13096 cat conftest.err >&5
13097 echo "$as_me:13097: \$? = $ac_status" >&5
13098 if (exit $ac_status) && test -s "$ac_outfile"; then
13099 # The compiler can only warn and ignore the option if not recognized
13100 # So say no if there are warnings other than the usual output.
13101 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13104 lt_cv_prog_compiler_pic_works_CXX=yes
13105 fi
13106 fi
13107 $RM conftest*
13108
13109 fi
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13111 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13112
13113 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13114 case $lt_prog_compiler_pic_CXX in
13115 "" | " "*) ;;
13116 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13117 esac
13118 else
13119 lt_prog_compiler_pic_CXX=
13120 lt_prog_compiler_can_build_shared_CXX=no
13121 fi
13122
13123 fi
13124
13125
13126
13127 #
13128 # Check to make sure the static flag actually works.
13129 #
13130 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13133 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 lt_cv_prog_compiler_static_works_CXX=no
13137 save_LDFLAGS="$LDFLAGS"
13138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13141 # The linker can only warn and ignore the option if not recognized
13142 # So say no if there are warnings
13143 if test -s conftest.err; then
13144 # Append any errors to the config.log.
13145 cat conftest.err 1>&5
13146 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13148 if diff conftest.exp conftest.er2 >/dev/null; then
13149 lt_cv_prog_compiler_static_works_CXX=yes
13150 fi
13151 else
13152 lt_cv_prog_compiler_static_works_CXX=yes
13153 fi
13154 fi
13155 $RM -r conftest*
13156 LDFLAGS="$save_LDFLAGS"
13157
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13160 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13161
13162 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13163 :
13164 else
13165 lt_prog_compiler_static_CXX=
13166 fi
13167
13168
13169
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13172 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13173 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 lt_cv_prog_compiler_c_o_CXX=no
13177 $RM -r conftest 2>/dev/null
13178 mkdir conftest
13179 cd conftest
13180 mkdir out
13181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13182
13183 lt_compiler_flag="-o out/conftest2.$ac_objext"
13184 # Insert the option either (1) after the last *FLAGS variable, or
13185 # (2) before a word containing "conftest.", or (3) at the end.
13186 # Note that $ac_compile itself does not contain backslashes and begins
13187 # with a dollar sign (not a hyphen), so the echo should work correctly.
13188 lt_compile=`echo "$ac_compile" | $SED \
13189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13191 -e 's:$: $lt_compiler_flag:'`
13192 (eval echo "\"\$as_me:13192: $lt_compile\"" >&5)
13193 (eval "$lt_compile" 2>out/conftest.err)
13194 ac_status=$?
13195 cat out/conftest.err >&5
13196 echo "$as_me:13196: \$? = $ac_status" >&5
13197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13198 then
13199 # The compiler can only warn and ignore the option if not recognized
13200 # So say no if there are warnings
13201 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13202 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13203 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13204 lt_cv_prog_compiler_c_o_CXX=yes
13205 fi
13206 fi
13207 chmod u+w . 2>&5
13208 $RM conftest*
13209 # SGI C++ compiler will create directory out/ii_files/ for
13210 # template instantiation
13211 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13212 $RM out/* && rmdir out
13213 cd ..
13214 $RM -r conftest
13215 $RM conftest*
13216
13217 fi
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13219 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13220
13221
13222
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13224 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13225 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13226 $as_echo_n "(cached) " >&6
13227 else
13228 lt_cv_prog_compiler_c_o_CXX=no
13229 $RM -r conftest 2>/dev/null
13230 mkdir conftest
13231 cd conftest
13232 mkdir out
13233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13234
13235 lt_compiler_flag="-o out/conftest2.$ac_objext"
13236 # Insert the option either (1) after the last *FLAGS variable, or
13237 # (2) before a word containing "conftest.", or (3) at the end.
13238 # Note that $ac_compile itself does not contain backslashes and begins
13239 # with a dollar sign (not a hyphen), so the echo should work correctly.
13240 lt_compile=`echo "$ac_compile" | $SED \
13241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13243 -e 's:$: $lt_compiler_flag:'`
13244 (eval echo "\"\$as_me:13244: $lt_compile\"" >&5)
13245 (eval "$lt_compile" 2>out/conftest.err)
13246 ac_status=$?
13247 cat out/conftest.err >&5
13248 echo "$as_me:13248: \$? = $ac_status" >&5
13249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13250 then
13251 # The compiler can only warn and ignore the option if not recognized
13252 # So say no if there are warnings
13253 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13256 lt_cv_prog_compiler_c_o_CXX=yes
13257 fi
13258 fi
13259 chmod u+w . 2>&5
13260 $RM conftest*
13261 # SGI C++ compiler will create directory out/ii_files/ for
13262 # template instantiation
13263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13264 $RM out/* && rmdir out
13265 cd ..
13266 $RM -r conftest
13267 $RM conftest*
13268
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13271 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13272
13273
13274
13275
13276 hard_links="nottested"
13277 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13278 # do not overwrite the value of need_locks provided by the user
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13280 $as_echo_n "checking if we can lock with hard links... " >&6; }
13281 hard_links=yes
13282 $RM conftest*
13283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13284 touch conftest.a
13285 ln conftest.a conftest.b 2>&5 || hard_links=no
13286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13288 $as_echo "$hard_links" >&6; }
13289 if test "$hard_links" = no; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13291 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13292 need_locks=warn
13293 fi
13294 else
13295 need_locks=no
13296 fi
13297
13298
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13301 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13302
13303 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13304 case $host_os in
13305 aix[4-9]*)
13306 # If we're using GNU nm, then we don't want the "-C" option.
13307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13308 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13309 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'
13310 else
13311 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'
13312 fi
13313 ;;
13314 pw32*)
13315 export_symbols_cmds_CXX="$ltdll_cmds"
13316 ;;
13317 cygwin* | mingw* | cegcc*)
13318 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'
13319 ;;
13320 linux* | k*bsd*-gnu)
13321 link_all_deplibs_CXX=no
13322 ;;
13323 *)
13324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13325 ;;
13326 esac
13327 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13330 $as_echo "$ld_shlibs_CXX" >&6; }
13331 test "$ld_shlibs_CXX" = no && can_build_shared=no
13332
13333 with_gnu_ld_CXX=$with_gnu_ld
13334
13335
13336
13337
13338
13339
13340 #
13341 # Do we need to explicitly link libc?
13342 #
13343 case "x$archive_cmds_need_lc_CXX" in
13344 x|xyes)
13345 # Assume -lc should be added
13346 archive_cmds_need_lc_CXX=yes
13347
13348 if test "$enable_shared" = yes && test "$GCC" = yes; then
13349 case $archive_cmds_CXX in
13350 *'~'*)
13351 # FIXME: we may have to deal with multi-command sequences.
13352 ;;
13353 '$CC '*)
13354 # Test whether the compiler implicitly links with -lc since on some
13355 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13356 # to ld, don't add -lc before -lgcc.
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13358 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13359 $RM conftest*
13360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13361
13362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13363 (eval $ac_compile) 2>&5
13364 ac_status=$?
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; } 2>conftest.err; then
13367 soname=conftest
13368 lib=conftest
13369 libobjs=conftest.$ac_objext
13370 deplibs=
13371 wl=$lt_prog_compiler_wl_CXX
13372 pic_flag=$lt_prog_compiler_pic_CXX
13373 compiler_flags=-v
13374 linker_flags=-v
13375 verstring=
13376 output_objdir=.
13377 libname=conftest
13378 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13379 allow_undefined_flag_CXX=
13380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13381 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13382 ac_status=$?
13383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384 test $ac_status = 0; }
13385 then
13386 archive_cmds_need_lc_CXX=no
13387 else
13388 archive_cmds_need_lc_CXX=yes
13389 fi
13390 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13391 else
13392 cat conftest.err 1>&5
13393 fi
13394 $RM conftest*
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13396 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13397 ;;
13398 esac
13399 fi
13400 ;;
13401 esac
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13467 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13468
13469 library_names_spec=
13470 libname_spec='lib$name'
13471 soname_spec=
13472 shrext_cmds=".so"
13473 postinstall_cmds=
13474 postuninstall_cmds=
13475 finish_cmds=
13476 finish_eval=
13477 shlibpath_var=
13478 shlibpath_overrides_runpath=unknown
13479 version_type=none
13480 dynamic_linker="$host_os ld.so"
13481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13482 need_lib_prefix=unknown
13483 hardcode_into_libs=no
13484
13485 # when you set need_version to no, make sure it does not cause -set_version
13486 # flags to be left without arguments
13487 need_version=unknown
13488
13489 case $host_os in
13490 aix3*)
13491 version_type=linux
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13493 shlibpath_var=LIBPATH
13494
13495 # AIX 3 has no versioning support, so we append a major version to the name.
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 ;;
13498
13499 aix[4-9]*)
13500 version_type=linux
13501 need_lib_prefix=no
13502 need_version=no
13503 hardcode_into_libs=yes
13504 if test "$host_cpu" = ia64; then
13505 # AIX 5 supports IA64
13506 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 else
13509 # With GCC up to 2.95.x, collect2 would create an import file
13510 # for dependence libraries. The import file would start with
13511 # the line `#! .'. This would cause the generated library to
13512 # depend on `.', always an invalid library. This was fixed in
13513 # development snapshots of GCC prior to 3.0.
13514 case $host_os in
13515 aix4 | aix4.[01] | aix4.[01].*)
13516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13517 echo ' yes '
13518 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13519 :
13520 else
13521 can_build_shared=no
13522 fi
13523 ;;
13524 esac
13525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13526 # soname into executable. Probably we can add versioning support to
13527 # collect2, so additional links can be useful in future.
13528 if test "$aix_use_runtimelinking" = yes; then
13529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13530 # instead of lib<name>.a to let people know that these are not
13531 # typical AIX shared libraries.
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 else
13534 # We preserve .a as extension for shared libraries through AIX4.2
13535 # and later when we are not doing run time linking.
13536 library_names_spec='${libname}${release}.a $libname.a'
13537 soname_spec='${libname}${release}${shared_ext}$major'
13538 fi
13539 shlibpath_var=LIBPATH
13540 fi
13541 ;;
13542
13543 amigaos*)
13544 case $host_cpu in
13545 powerpc)
13546 # Since July 2007 AmigaOS4 officially supports .so libraries.
13547 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 ;;
13550 m68k)
13551 library_names_spec='$libname.ixlibrary $libname.a'
13552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13553 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'
13554 ;;
13555 esac
13556 ;;
13557
13558 beos*)
13559 library_names_spec='${libname}${shared_ext}'
13560 dynamic_linker="$host_os ld.so"
13561 shlibpath_var=LIBRARY_PATH
13562 ;;
13563
13564 bsdi[45]*)
13565 version_type=linux
13566 need_version=no
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568 soname_spec='${libname}${release}${shared_ext}$major'
13569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13570 shlibpath_var=LD_LIBRARY_PATH
13571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13573 # the default ld.so.conf also contains /usr/contrib/lib and
13574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13575 # libtool to hard-code these into programs
13576 ;;
13577
13578 cygwin* | mingw* | pw32* | cegcc*)
13579 version_type=windows
13580 shrext_cmds=".dll"
13581 need_version=no
13582 need_lib_prefix=no
13583
13584 case $GCC,$host_os in
13585 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13586 library_names_spec='$libname.dll.a'
13587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13588 postinstall_cmds='base_file=`basename \${file}`~
13589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13590 dldir=$destdir/`dirname \$dlpath`~
13591 test -d \$dldir || mkdir -p \$dldir~
13592 $install_prog $dir/$dlname \$dldir/$dlname~
13593 chmod a+x \$dldir/$dlname~
13594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13596 fi'
13597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13598 dlpath=$dir/\$dldll~
13599 $RM \$dlpath'
13600 shlibpath_overrides_runpath=yes
13601
13602 case $host_os in
13603 cygwin*)
13604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13606 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13607 ;;
13608 mingw* | cegcc*)
13609 # MinGW DLLs use traditional 'lib' prefix
13610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13611 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13612 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13613 # It is most probably a Windows format PATH printed by
13614 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13615 # path with ; separators, and with drive letters. We can handle the
13616 # drive letters (cygwin fileutils understands them), so leave them,
13617 # especially as we might pass files found there to a mingw objdump,
13618 # which wouldn't understand a cygwinified path. Ahh.
13619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13620 else
13621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13622 fi
13623 ;;
13624 pw32*)
13625 # pw32 DLLs use 'pw' prefix rather than 'lib'
13626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13627 ;;
13628 esac
13629 ;;
13630
13631 *)
13632 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13633 ;;
13634 esac
13635 dynamic_linker='Win32 ld.exe'
13636 # FIXME: first we should search . and the directory the executable is in
13637 shlibpath_var=PATH
13638 ;;
13639
13640 darwin* | rhapsody*)
13641 dynamic_linker="$host_os dyld"
13642 version_type=darwin
13643 need_lib_prefix=no
13644 need_version=no
13645 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13646 soname_spec='${libname}${release}${major}$shared_ext'
13647 shlibpath_overrides_runpath=yes
13648 shlibpath_var=DYLD_LIBRARY_PATH
13649 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13650
13651 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13652 ;;
13653
13654 dgux*)
13655 version_type=linux
13656 need_lib_prefix=no
13657 need_version=no
13658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13659 soname_spec='${libname}${release}${shared_ext}$major'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 ;;
13662
13663 freebsd1*)
13664 dynamic_linker=no
13665 ;;
13666
13667 freebsd* | dragonfly*)
13668 # DragonFly does not have aout. When/if they implement a new
13669 # versioning mechanism, adjust this.
13670 if test -x /usr/bin/objformat; then
13671 objformat=`/usr/bin/objformat`
13672 else
13673 case $host_os in
13674 freebsd[123]*) objformat=aout ;;
13675 *) objformat=elf ;;
13676 esac
13677 fi
13678 version_type=freebsd-$objformat
13679 case $version_type in
13680 freebsd-elf*)
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13682 need_version=no
13683 need_lib_prefix=no
13684 ;;
13685 freebsd-*)
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13687 need_version=yes
13688 ;;
13689 esac
13690 shlibpath_var=LD_LIBRARY_PATH
13691 case $host_os in
13692 freebsd2*)
13693 shlibpath_overrides_runpath=yes
13694 ;;
13695 freebsd3.[01]* | freebsdelf3.[01]*)
13696 shlibpath_overrides_runpath=yes
13697 hardcode_into_libs=yes
13698 ;;
13699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13701 shlibpath_overrides_runpath=no
13702 hardcode_into_libs=yes
13703 ;;
13704 *) # from 4.6 on, and DragonFly
13705 shlibpath_overrides_runpath=yes
13706 hardcode_into_libs=yes
13707 ;;
13708 esac
13709 ;;
13710
13711 gnu*)
13712 version_type=linux
13713 need_lib_prefix=no
13714 need_version=no
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 hardcode_into_libs=yes
13719 ;;
13720
13721 hpux9* | hpux10* | hpux11*)
13722 # Give a soname corresponding to the major version so that dld.sl refuses to
13723 # link against other versions.
13724 version_type=sunos
13725 need_lib_prefix=no
13726 need_version=no
13727 case $host_cpu in
13728 ia64*)
13729 shrext_cmds='.so'
13730 hardcode_into_libs=yes
13731 dynamic_linker="$host_os dld.so"
13732 shlibpath_var=LD_LIBRARY_PATH
13733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 if test "X$HPUX_IA64_MODE" = X32; then
13737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13738 else
13739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13740 fi
13741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13742 ;;
13743 hppa*64*)
13744 shrext_cmds='.sl'
13745 hardcode_into_libs=yes
13746 dynamic_linker="$host_os dld.sl"
13747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13753 ;;
13754 *)
13755 shrext_cmds='.sl'
13756 dynamic_linker="$host_os dld.sl"
13757 shlibpath_var=SHLIB_PATH
13758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 ;;
13762 esac
13763 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13764 postinstall_cmds='chmod 555 $lib'
13765 ;;
13766
13767 interix[3-9]*)
13768 version_type=linux
13769 need_lib_prefix=no
13770 need_version=no
13771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13772 soname_spec='${libname}${release}${shared_ext}$major'
13773 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 shlibpath_overrides_runpath=no
13776 hardcode_into_libs=yes
13777 ;;
13778
13779 irix5* | irix6* | nonstopux*)
13780 case $host_os in
13781 nonstopux*) version_type=nonstopux ;;
13782 *)
13783 if test "$lt_cv_prog_gnu_ld" = yes; then
13784 version_type=linux
13785 else
13786 version_type=irix
13787 fi ;;
13788 esac
13789 need_lib_prefix=no
13790 need_version=no
13791 soname_spec='${libname}${release}${shared_ext}$major'
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13793 case $host_os in
13794 irix5* | nonstopux*)
13795 libsuff= shlibsuff=
13796 ;;
13797 *)
13798 case $LD in # libtool.m4 will add one of these switches to LD
13799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13800 libsuff= shlibsuff= libmagic=32-bit;;
13801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13802 libsuff=32 shlibsuff=N32 libmagic=N32;;
13803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13804 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13805 *) libsuff= shlibsuff= libmagic=never-match;;
13806 esac
13807 ;;
13808 esac
13809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13810 shlibpath_overrides_runpath=no
13811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13813 hardcode_into_libs=yes
13814 ;;
13815
13816 # No shared lib support for Linux oldld, aout, or coff.
13817 linux*oldld* | linux*aout* | linux*coff*)
13818 dynamic_linker=no
13819 ;;
13820
13821 # This must be Linux ELF.
13822 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13823 version_type=linux
13824 need_lib_prefix=no
13825 need_version=no
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13829 shlibpath_var=LD_LIBRARY_PATH
13830 shlibpath_overrides_runpath=no
13831 # Some binutils ld are patched to set DT_RUNPATH
13832 save_LDFLAGS=$LDFLAGS
13833 save_libdir=$libdir
13834 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13835 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838
13839 int
13840 main ()
13841 {
13842
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_cxx_try_link "$LINENO"; then :
13848 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13849 shlibpath_overrides_runpath=yes
13850 fi
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LDFLAGS=$save_LDFLAGS
13855 libdir=$save_libdir
13856
13857 # This implies no fast_install, which is unacceptable.
13858 # Some rework will be needed to allow for fast_install
13859 # before this can be enabled.
13860 hardcode_into_libs=yes
13861
13862 # Append ld.so.conf contents to the search path
13863 if test -f /etc/ld.so.conf; then
13864 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' ' '`
13865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13866 fi
13867
13868 # We used to test for /lib/ld.so.1 and disable shared libraries on
13869 # powerpc, because MkLinux only supported shared libraries with the
13870 # GNU dynamic linker. Since this was broken with cross compilers,
13871 # most powerpc-linux boxes support dynamic linking these days and
13872 # people can always --disable-shared, the test was removed, and we
13873 # assume the GNU/Linux dynamic linker is in use.
13874 dynamic_linker='GNU/Linux ld.so'
13875 ;;
13876
13877 netbsdelf*-gnu)
13878 version_type=linux
13879 need_lib_prefix=no
13880 need_version=no
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 shlibpath_overrides_runpath=no
13885 hardcode_into_libs=yes
13886 dynamic_linker='NetBSD ld.elf_so'
13887 ;;
13888
13889 netbsd*)
13890 version_type=sunos
13891 need_lib_prefix=no
13892 need_version=no
13893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13896 dynamic_linker='NetBSD (a.out) ld.so'
13897 else
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 dynamic_linker='NetBSD ld.elf_so'
13901 fi
13902 shlibpath_var=LD_LIBRARY_PATH
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13905 ;;
13906
13907 newsos6)
13908 version_type=linux
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 shlibpath_var=LD_LIBRARY_PATH
13911 shlibpath_overrides_runpath=yes
13912 ;;
13913
13914 *nto* | *qnx*)
13915 version_type=qnx
13916 need_lib_prefix=no
13917 need_version=no
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=no
13922 hardcode_into_libs=yes
13923 dynamic_linker='ldqnx.so'
13924 ;;
13925
13926 openbsd*)
13927 version_type=sunos
13928 sys_lib_dlsearch_path_spec="/usr/lib"
13929 need_lib_prefix=no
13930 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13931 case $host_os in
13932 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13933 *) need_version=no ;;
13934 esac
13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13937 shlibpath_var=LD_LIBRARY_PATH
13938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13939 case $host_os in
13940 openbsd2.[89] | openbsd2.[89].*)
13941 shlibpath_overrides_runpath=no
13942 ;;
13943 *)
13944 shlibpath_overrides_runpath=yes
13945 ;;
13946 esac
13947 else
13948 shlibpath_overrides_runpath=yes
13949 fi
13950 ;;
13951
13952 os2*)
13953 libname_spec='$name'
13954 shrext_cmds=".dll"
13955 need_lib_prefix=no
13956 library_names_spec='$libname${shared_ext} $libname.a'
13957 dynamic_linker='OS/2 ld.exe'
13958 shlibpath_var=LIBPATH
13959 ;;
13960
13961 osf3* | osf4* | osf5*)
13962 version_type=osf
13963 need_lib_prefix=no
13964 need_version=no
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13970 ;;
13971
13972 rdos*)
13973 dynamic_linker=no
13974 ;;
13975
13976 solaris*)
13977 version_type=linux
13978 need_lib_prefix=no
13979 need_version=no
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 shlibpath_overrides_runpath=yes
13984 hardcode_into_libs=yes
13985 # ldd complains unless libraries are executable
13986 postinstall_cmds='chmod +x $lib'
13987 ;;
13988
13989 sunos4*)
13990 version_type=sunos
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13993 shlibpath_var=LD_LIBRARY_PATH
13994 shlibpath_overrides_runpath=yes
13995 if test "$with_gnu_ld" = yes; then
13996 need_lib_prefix=no
13997 fi
13998 need_version=yes
13999 ;;
14000
14001 sysv4 | sysv4.3*)
14002 version_type=linux
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 case $host_vendor in
14007 sni)
14008 shlibpath_overrides_runpath=no
14009 need_lib_prefix=no
14010 runpath_var=LD_RUN_PATH
14011 ;;
14012 siemens)
14013 need_lib_prefix=no
14014 ;;
14015 motorola)
14016 need_lib_prefix=no
14017 need_version=no
14018 shlibpath_overrides_runpath=no
14019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14020 ;;
14021 esac
14022 ;;
14023
14024 sysv4*MP*)
14025 if test -d /usr/nec ;then
14026 version_type=linux
14027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14028 soname_spec='$libname${shared_ext}.$major'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 fi
14031 ;;
14032
14033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14034 version_type=freebsd-elf
14035 need_lib_prefix=no
14036 need_version=no
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=yes
14041 hardcode_into_libs=yes
14042 if test "$with_gnu_ld" = yes; then
14043 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14044 else
14045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14046 case $host_os in
14047 sco3.2v5*)
14048 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14049 ;;
14050 esac
14051 fi
14052 sys_lib_dlsearch_path_spec='/usr/lib'
14053 ;;
14054
14055 tpf*)
14056 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14057 version_type=linux
14058 need_lib_prefix=no
14059 need_version=no
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 shlibpath_overrides_runpath=no
14063 hardcode_into_libs=yes
14064 ;;
14065
14066 uts4*)
14067 version_type=linux
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 ;;
14072
14073 *)
14074 dynamic_linker=no
14075 ;;
14076 esac
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14078 $as_echo "$dynamic_linker" >&6; }
14079 test "$dynamic_linker" = no && can_build_shared=no
14080
14081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14082 if test "$GCC" = yes; then
14083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14084 fi
14085
14086 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14087 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14088 fi
14089 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14090 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14091 fi
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14129 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14130 hardcode_action_CXX=
14131 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14132 test -n "$runpath_var_CXX" ||
14133 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14134
14135 # We can hardcode non-existent directories.
14136 if test "$hardcode_direct_CXX" != no &&
14137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14138 # have to relink, otherwise we might link with an installed library
14139 # when we should be linking with a yet-to-be-installed one
14140 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14141 test "$hardcode_minus_L_CXX" != no; then
14142 # Linking always hardcodes the temporary library directory.
14143 hardcode_action_CXX=relink
14144 else
14145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14146 hardcode_action_CXX=immediate
14147 fi
14148 else
14149 # We cannot hardcode anything, or else we can only hardcode existing
14150 # directories.
14151 hardcode_action_CXX=unsupported
14152 fi
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14154 $as_echo "$hardcode_action_CXX" >&6; }
14155
14156 if test "$hardcode_action_CXX" = relink ||
14157 test "$inherit_rpath_CXX" = yes; then
14158 # Fast installation is not supported
14159 enable_fast_install=no
14160 elif test "$shlibpath_overrides_runpath" = yes ||
14161 test "$enable_shared" = no; then
14162 # Fast installation is not necessary
14163 enable_fast_install=needless
14164 fi
14165
14166
14167
14168
14169
14170
14171
14172 fi # test -n "$compiler"
14173
14174 CC=$lt_save_CC
14175 LDCXX=$LD
14176 LD=$lt_save_LD
14177 GCC=$lt_save_GCC
14178 with_gnu_ld=$lt_save_with_gnu_ld
14179 lt_cv_path_LDCXX=$lt_cv_path_LD
14180 lt_cv_path_LD=$lt_save_path_LD
14181 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14182 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14183 fi # test "$_lt_caught_CXX_error" != yes
14184
14185 ac_ext=c
14186 ac_cpp='$CPP $CPPFLAGS'
14187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14190
14191
14192 ac_ext=mm
14193 ac_cpp='$OBJCXXCPP $CPPFLAGS'
14194 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14195 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14196 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14197 if test -n "$ac_tool_prefix"; then
14198 for ac_prog in g++ objc++ objcxx c++ CXX
14199 do
14200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203 $as_echo_n "checking for $ac_word... " >&6; }
14204 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 if test -n "$OBJCXX"; then
14208 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
14209 else
14210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211 for as_dir in $PATH
14212 do
14213 IFS=$as_save_IFS
14214 test -z "$as_dir" && as_dir=.
14215 for ac_exec_ext in '' $ac_executable_extensions; do
14216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14217 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
14218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14219 break 2
14220 fi
14221 done
14222 done
14223 IFS=$as_save_IFS
14224
14225 fi
14226 fi
14227 OBJCXX=$ac_cv_prog_OBJCXX
14228 if test -n "$OBJCXX"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14230 $as_echo "$OBJCXX" >&6; }
14231 else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14234 fi
14235
14236
14237 test -n "$OBJCXX" && break
14238 done
14239 fi
14240 if test -z "$OBJCXX"; then
14241 ac_ct_OBJCXX=$OBJCXX
14242 for ac_prog in g++ objc++ objcxx c++ CXX
14243 do
14244 # Extract the first word of "$ac_prog", so it can be a program name with args.
14245 set dummy $ac_prog; ac_word=$2
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 if test -n "$ac_ct_OBJCXX"; then
14252 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
14253 else
14254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14255 for as_dir in $PATH
14256 do
14257 IFS=$as_save_IFS
14258 test -z "$as_dir" && as_dir=.
14259 for ac_exec_ext in '' $ac_executable_extensions; do
14260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14261 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
14262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14263 break 2
14264 fi
14265 done
14266 done
14267 IFS=$as_save_IFS
14268
14269 fi
14270 fi
14271 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
14272 if test -n "$ac_ct_OBJCXX"; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
14274 $as_echo "$ac_ct_OBJCXX" >&6; }
14275 else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14278 fi
14279
14280
14281 test -n "$ac_ct_OBJCXX" && break
14282 done
14283
14284 if test "x$ac_ct_OBJCXX" = x; then
14285 OBJCXX="g++"
14286 else
14287 case $cross_compiling:$ac_tool_warned in
14288 yes:)
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14291 ac_tool_warned=yes ;;
14292 esac
14293 OBJCXX=$ac_ct_OBJCXX
14294 fi
14295 fi
14296
14297 # Provide some information about the compiler.
14298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
14299 set X $ac_compile
14300 ac_compiler=$2
14301 for ac_option in --version -v -V -qversion; do
14302 { { ac_try="$ac_compiler $ac_option >&5"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306 esac
14307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14308 $as_echo "$ac_try_echo"; } >&5
14309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14310 ac_status=$?
14311 if test -s conftest.err; then
14312 sed '10a\
14313 ... rest of stderr output deleted ...
14314 10q' conftest.err >conftest.er1
14315 cat conftest.er1 >&5
14316 fi
14317 rm -f conftest.er1 conftest.err
14318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14319 test $ac_status = 0; }
14320 done
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
14323 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
14324 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329
14330 int
14331 main ()
14332 {
14333 #ifndef __GNUC__
14334 choke me
14335 #endif
14336
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_objcxx_try_compile "$LINENO"; then :
14342 ac_compiler_gnu=yes
14343 else
14344 ac_compiler_gnu=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
14348
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
14351 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
14352 if test $ac_compiler_gnu = yes; then
14353 GOBJCXX=yes
14354 else
14355 GOBJCXX=
14356 fi
14357 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
14358 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
14360 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
14361 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
14365 ac_objcxx_werror_flag=yes
14366 ac_cv_prog_objcxx_g=no
14367 OBJCXXFLAGS="-g"
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370
14371 int
14372 main ()
14373 {
14374
14375 ;
14376 return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_objcxx_try_compile "$LINENO"; then :
14380 ac_cv_prog_objcxx_g=yes
14381 else
14382 OBJCXXFLAGS=""
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385
14386 int
14387 main ()
14388 {
14389
14390 ;
14391 return 0;
14392 }
14393 _ACEOF
14394 if ac_fn_objcxx_try_compile "$LINENO"; then :
14395
14396 else
14397 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
14398 OBJCXXFLAGS="-g"
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401
14402 int
14403 main ()
14404 {
14405
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_objcxx_try_compile "$LINENO"; then :
14411 ac_cv_prog_objcxx_g=yes
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 fi
14415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416 fi
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
14419 fi
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
14421 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
14422 if test "$ac_test_OBJCXXFLAGS" = set; then
14423 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
14424 elif test $ac_cv_prog_objcxx_g = yes; then
14425 if test "$GOBJCXX" = yes; then
14426 OBJCXXFLAGS="-g -O2"
14427 else
14428 OBJCXXFLAGS="-g"
14429 fi
14430 else
14431 if test "$GOBJCXX" = yes; then
14432 OBJCXXFLAGS="-O2"
14433 else
14434 OBJCXXFLAGS=
14435 fi
14436 fi
14437 ac_ext=c
14438 ac_cpp='$CPP $CPPFLAGS'
14439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14442
14443
14444 # Check whether --enable-universal-binary was given.
14445 if test "${enable_universal_binary+set}" = set; then :
14446 enableval=$enable_universal_binary;
14447 case $enableval in #(
14448 no) :
14449 ;; #(
14450 *) :
14451
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
14453 $as_echo_n "checking for universal binary support... " >&6; }
14454 case $host_vendor in #(
14455 apple) :
14456
14457 case $host_cpu in #(
14458 i386|x86_64) :
14459
14460 for cy_arch in i386 x86_64; do
14461 cy_save_CXXFLAGS=$CXXFLAGS
14462
14463 for element in "-arch $cy_arch"; do
14464 haveit=
14465 for x in $CXXFLAGS; do
14466
14467 acl_save_prefix="$prefix"
14468 prefix="$acl_final_prefix"
14469 acl_save_exec_prefix="$exec_prefix"
14470 exec_prefix="$acl_final_exec_prefix"
14471 eval x=\"$x\"
14472 exec_prefix="$acl_save_exec_prefix"
14473 prefix="$acl_save_prefix"
14474
14475 if test "X$x" = "X$element"; then
14476 haveit=yes
14477 break
14478 fi
14479 done
14480 if test -z "$haveit"; then
14481 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14482 fi
14483 done
14484
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487
14488 int
14489 main ()
14490 {
14491
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497
14498
14499 for element in $cy_arch; do
14500 haveit=
14501 for x in $cy_arches; do
14502
14503 acl_save_prefix="$prefix"
14504 prefix="$acl_final_prefix"
14505 acl_save_exec_prefix="$exec_prefix"
14506 exec_prefix="$acl_final_exec_prefix"
14507 eval x=\"$x\"
14508 exec_prefix="$acl_save_exec_prefix"
14509 prefix="$acl_save_prefix"
14510
14511 if test "X$x" = "X$element"; then
14512 haveit=yes
14513 break
14514 fi
14515 done
14516 if test -z "$haveit"; then
14517 cy_arches="${cy_arches}${cy_arches:+ }$element"
14518 fi
14519 done
14520
14521
14522 for element in "-arch $cy_arch"; do
14523 haveit=
14524 for x in $CFLAGS; do
14525
14526 acl_save_prefix="$prefix"
14527 prefix="$acl_final_prefix"
14528 acl_save_exec_prefix="$exec_prefix"
14529 exec_prefix="$acl_final_exec_prefix"
14530 eval x=\"$x\"
14531 exec_prefix="$acl_save_exec_prefix"
14532 prefix="$acl_save_prefix"
14533
14534 if test "X$x" = "X$element"; then
14535 haveit=yes
14536 break
14537 fi
14538 done
14539 if test -z "$haveit"; then
14540 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14541 fi
14542 done
14543
14544
14545 for element in "-arch $cy_arch"; do
14546 haveit=
14547 for x in $LDFLAGS; do
14548
14549 acl_save_prefix="$prefix"
14550 prefix="$acl_final_prefix"
14551 acl_save_exec_prefix="$exec_prefix"
14552 exec_prefix="$acl_final_exec_prefix"
14553 eval x=\"$x\"
14554 exec_prefix="$acl_save_exec_prefix"
14555 prefix="$acl_save_prefix"
14556
14557 if test "X$x" = "X$element"; then
14558 haveit=yes
14559 break
14560 fi
14561 done
14562 if test -z "$haveit"; then
14563 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
14564 fi
14565 done
14566
14567
14568 for element in "-arch $cy_arch"; do
14569 haveit=
14570 for x in $OBJCXXFLAGS; do
14571
14572 acl_save_prefix="$prefix"
14573 prefix="$acl_final_prefix"
14574 acl_save_exec_prefix="$exec_prefix"
14575 exec_prefix="$acl_final_exec_prefix"
14576 eval x=\"$x\"
14577 exec_prefix="$acl_save_exec_prefix"
14578 prefix="$acl_save_prefix"
14579
14580 if test "X$x" = "X$element"; then
14581 haveit=yes
14582 break
14583 fi
14584 done
14585 if test -z "$haveit"; then
14586 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
14587 fi
14588 done
14589
14590
14591 else
14592
14593 CXXFLAGS=$cy_save_CXXFLAGS
14594
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598 done
14599 ;; #(
14600 *) :
14601 ;;
14602 esac
14603 ;; #(
14604 *) :
14605 ;;
14606 esac
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
14608 $as_echo "${cy_arches-no}" >&6; }
14609 ;;
14610 esac
14611
14612 else
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
14615 $as_echo_n "checking for universal binary support... " >&6; }
14616 case $host_vendor in #(
14617 apple) :
14618
14619 case $host_cpu in #(
14620 i386|x86_64) :
14621
14622 for cy_arch in i386 x86_64; do
14623 cy_save_CXXFLAGS=$CXXFLAGS
14624
14625 for element in "-arch $cy_arch"; do
14626 haveit=
14627 for x in $CXXFLAGS; do
14628
14629 acl_save_prefix="$prefix"
14630 prefix="$acl_final_prefix"
14631 acl_save_exec_prefix="$exec_prefix"
14632 exec_prefix="$acl_final_exec_prefix"
14633 eval x=\"$x\"
14634 exec_prefix="$acl_save_exec_prefix"
14635 prefix="$acl_save_prefix"
14636
14637 if test "X$x" = "X$element"; then
14638 haveit=yes
14639 break
14640 fi
14641 done
14642 if test -z "$haveit"; then
14643 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14644 fi
14645 done
14646
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14649
14650 int
14651 main ()
14652 {
14653
14654 ;
14655 return 0;
14656 }
14657 _ACEOF
14658 if ac_fn_c_try_link "$LINENO"; then :
14659
14660
14661 for element in $cy_arch; do
14662 haveit=
14663 for x in $cy_arches; do
14664
14665 acl_save_prefix="$prefix"
14666 prefix="$acl_final_prefix"
14667 acl_save_exec_prefix="$exec_prefix"
14668 exec_prefix="$acl_final_exec_prefix"
14669 eval x=\"$x\"
14670 exec_prefix="$acl_save_exec_prefix"
14671 prefix="$acl_save_prefix"
14672
14673 if test "X$x" = "X$element"; then
14674 haveit=yes
14675 break
14676 fi
14677 done
14678 if test -z "$haveit"; then
14679 cy_arches="${cy_arches}${cy_arches:+ }$element"
14680 fi
14681 done
14682
14683
14684 for element in "-arch $cy_arch"; do
14685 haveit=
14686 for x in $CFLAGS; do
14687
14688 acl_save_prefix="$prefix"
14689 prefix="$acl_final_prefix"
14690 acl_save_exec_prefix="$exec_prefix"
14691 exec_prefix="$acl_final_exec_prefix"
14692 eval x=\"$x\"
14693 exec_prefix="$acl_save_exec_prefix"
14694 prefix="$acl_save_prefix"
14695
14696 if test "X$x" = "X$element"; then
14697 haveit=yes
14698 break
14699 fi
14700 done
14701 if test -z "$haveit"; then
14702 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14703 fi
14704 done
14705
14706
14707 for element in "-arch $cy_arch"; do
14708 haveit=
14709 for x in $LDFLAGS; do
14710
14711 acl_save_prefix="$prefix"
14712 prefix="$acl_final_prefix"
14713 acl_save_exec_prefix="$exec_prefix"
14714 exec_prefix="$acl_final_exec_prefix"
14715 eval x=\"$x\"
14716 exec_prefix="$acl_save_exec_prefix"
14717 prefix="$acl_save_prefix"
14718
14719 if test "X$x" = "X$element"; then
14720 haveit=yes
14721 break
14722 fi
14723 done
14724 if test -z "$haveit"; then
14725 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
14726 fi
14727 done
14728
14729
14730 for element in "-arch $cy_arch"; do
14731 haveit=
14732 for x in $OBJCXXFLAGS; do
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 eval x=\"$x\"
14739 exec_prefix="$acl_save_exec_prefix"
14740 prefix="$acl_save_prefix"
14741
14742 if test "X$x" = "X$element"; then
14743 haveit=yes
14744 break
14745 fi
14746 done
14747 if test -z "$haveit"; then
14748 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
14749 fi
14750 done
14751
14752
14753 else
14754
14755 CXXFLAGS=$cy_save_CXXFLAGS
14756
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14760 done
14761 ;; #(
14762 *) :
14763 ;;
14764 esac
14765 ;; #(
14766 *) :
14767 ;;
14768 esac
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
14770 $as_echo "${cy_arches-no}" >&6; }
14771
14772 fi
14773
14774
14775 # Check whether --with-frameworks was given.
14776 if test "${with_frameworks+set}" = set; then :
14777 withval=$with_frameworks;
14778 for cy_framework in $withval; do
14779
14780 for element in -F$cy_framework; do
14781 haveit=
14782 for x in $CFLAGS; do
14783
14784 acl_save_prefix="$prefix"
14785 prefix="$acl_final_prefix"
14786 acl_save_exec_prefix="$exec_prefix"
14787 exec_prefix="$acl_final_exec_prefix"
14788 eval x=\"$x\"
14789 exec_prefix="$acl_save_exec_prefix"
14790 prefix="$acl_save_prefix"
14791
14792 if test "X$x" = "X$element"; then
14793 haveit=yes
14794 break
14795 fi
14796 done
14797 if test -z "$haveit"; then
14798 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14799 fi
14800 done
14801
14802
14803 for element in -F$cy_framework; do
14804 haveit=
14805 for x in $CXXFLAGS; do
14806
14807 acl_save_prefix="$prefix"
14808 prefix="$acl_final_prefix"
14809 acl_save_exec_prefix="$exec_prefix"
14810 exec_prefix="$acl_final_exec_prefix"
14811 eval x=\"$x\"
14812 exec_prefix="$acl_save_exec_prefix"
14813 prefix="$acl_save_prefix"
14814
14815 if test "X$x" = "X$element"; then
14816 haveit=yes
14817 break
14818 fi
14819 done
14820 if test -z "$haveit"; then
14821 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14822 fi
14823 done
14824
14825
14826 for element in -F$cy_framework; do
14827 haveit=
14828 for x in $OBJCCXXFLAGS; do
14829
14830 acl_save_prefix="$prefix"
14831 prefix="$acl_final_prefix"
14832 acl_save_exec_prefix="$exec_prefix"
14833 exec_prefix="$acl_final_exec_prefix"
14834 eval x=\"$x\"
14835 exec_prefix="$acl_save_exec_prefix"
14836 prefix="$acl_save_prefix"
14837
14838 if test "X$x" = "X$element"; then
14839 haveit=yes
14840 break
14841 fi
14842 done
14843 if test -z "$haveit"; then
14844 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14845 fi
14846 done
14847
14848 done
14849
14850 fi
14851
14852 ac_ext=cpp
14853 ac_cpp='$CXXCPP $CPPFLAGS'
14854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14857
14858
14859 apr_found="no"
14860
14861 if test "$target_os" = "os2-emx"; then
14862 # Scripts don't pass test -x on OS/2
14863 TEST_X="test -f"
14864 else
14865 TEST_X="test -x"
14866 fi
14867
14868 acceptable_majors="1"
14869
14870 apr_temp_acceptable_apr_config=""
14871 for apr_temp_major in $acceptable_majors
14872 do
14873 case $apr_temp_major in
14874 0)
14875 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14876 ;;
14877 *)
14878 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14879 ;;
14880 esac
14881 done
14882
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14884 $as_echo_n "checking for APR... " >&6; }
14885
14886 # Check whether --with-apr was given.
14887 if test "${with_apr+set}" = set; then :
14888 withval=$with_apr;
14889 if test "$withval" = "no" || test "$withval" = "yes"; then
14890 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14891 fi
14892
14893 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14894 do
14895 for lookdir in "$withval/bin" "$withval"
14896 do
14897 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14898 apr_config="$lookdir/$apr_temp_apr_config_file"
14899
14900 apr_found="yes"
14901 break 2
14902 fi
14903 done
14904 done
14905
14906 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14907 apr_config="$withval"
14908 apr_found="yes"
14909 fi
14910
14911 if test "$apr_found" != "yes"; then
14912 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
14913 fi
14914
14915 else
14916
14917 if test -n "1" && test "1" = "1"; then
14918 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14919 do
14920 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14921 apr_config="$apr_temp_apr_config_file"
14922
14923 apr_found="yes"
14924 break
14925 else
14926 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14927 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14928 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14929
14930 apr_found="yes"
14931 break 2
14932 fi
14933 done
14934 fi
14935 done
14936 fi
14937 if test "$apr_found" = "no" && test -d ""; then
14938 apr_temp_abs_srcdir="`cd && pwd`"
14939 apr_found="reconfig"
14940 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14941 case $apr_bundled_major in
14942 "")
14943 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14944 ;;
14945 0)
14946 apr_temp_apr_config_file="apr-config"
14947 ;;
14948 *)
14949 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14950 ;;
14951 esac
14952 if test -n ""; then
14953 apr_config="/$apr_temp_apr_config_file"
14954 else
14955 apr_config="/$apr_temp_apr_config_file"
14956 fi
14957 fi
14958
14959 fi
14960
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14963 $as_echo "$apr_found" >&6; }
14964
14965 case $apr_found in #(
14966 yes) :
14967
14968
14969 for element in `$apr_config --includes`; do
14970 haveit=
14971 for x in $CPPFLAGS; do
14972
14973 acl_save_prefix="$prefix"
14974 prefix="$acl_final_prefix"
14975 acl_save_exec_prefix="$exec_prefix"
14976 exec_prefix="$acl_final_exec_prefix"
14977 eval x=\"$x\"
14978 exec_prefix="$acl_save_exec_prefix"
14979 prefix="$acl_save_prefix"
14980
14981 if test "X$x" = "X$element"; then
14982 haveit=yes
14983 break
14984 fi
14985 done
14986 if test -z "$haveit"; then
14987 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14988 fi
14989 done
14990
14991 LTLIBAPR=`$apr_config --link-libtool`
14992
14993 ;; #(
14994 *) :
14995 as_fn_error "You need apr" "$LINENO" 5 ;;
14996 esac
14997
14998
14999 # Check whether --enable-javascript was given.
15000 if test "${enable_javascript+set}" = set; then :
15001 enableval=$enable_javascript;
15002 case $enableval in #(
15003 yes) :
15004
15005
15006
15007 pkg_failed=no
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15009 $as_echo_n "checking for WEBKIT... " >&6; }
15010
15011 if test -n "$PKG_CONFIG"; then
15012 if test -n "$WEBKIT_CFLAGS"; then
15013 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15014 else
15015 if test -n "$PKG_CONFIG" && \
15016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15017 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15018 ac_status=$?
15019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15020 test $ac_status = 0; }; then
15021 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15022 else
15023 pkg_failed=yes
15024 fi
15025 fi
15026 else
15027 pkg_failed=untried
15028 fi
15029 if test -n "$PKG_CONFIG"; then
15030 if test -n "$WEBKIT_LIBS"; then
15031 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15032 else
15033 if test -n "$PKG_CONFIG" && \
15034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15035 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15036 ac_status=$?
15037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15038 test $ac_status = 0; }; then
15039 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15040 else
15041 pkg_failed=yes
15042 fi
15043 fi
15044 else
15045 pkg_failed=untried
15046 fi
15047
15048
15049
15050 if test $pkg_failed = yes; then
15051
15052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15053 _pkg_short_errors_supported=yes
15054 else
15055 _pkg_short_errors_supported=no
15056 fi
15057 if test $_pkg_short_errors_supported = yes; then
15058 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15059 else
15060 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15061 fi
15062 # Put the nasty error message in config.log where it belongs
15063 echo "$WEBKIT_PKG_ERRORS" >&5
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 $as_echo "no" >&6; }
15067
15068
15069 pkg_failed=no
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15071 $as_echo_n "checking for WEBKIT... " >&6; }
15072
15073 if test -n "$PKG_CONFIG"; then
15074 if test -n "$WEBKIT_CFLAGS"; then
15075 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15076 else
15077 if test -n "$PKG_CONFIG" && \
15078 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15079 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15080 ac_status=$?
15081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15082 test $ac_status = 0; }; then
15083 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15084 else
15085 pkg_failed=yes
15086 fi
15087 fi
15088 else
15089 pkg_failed=untried
15090 fi
15091 if test -n "$PKG_CONFIG"; then
15092 if test -n "$WEBKIT_LIBS"; then
15093 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15094 else
15095 if test -n "$PKG_CONFIG" && \
15096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15097 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15098 ac_status=$?
15099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }; then
15101 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15102 else
15103 pkg_failed=yes
15104 fi
15105 fi
15106 else
15107 pkg_failed=untried
15108 fi
15109
15110
15111
15112 if test $pkg_failed = yes; then
15113
15114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15115 _pkg_short_errors_supported=yes
15116 else
15117 _pkg_short_errors_supported=no
15118 fi
15119 if test $_pkg_short_errors_supported = yes; then
15120 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15121 else
15122 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15123 fi
15124 # Put the nasty error message in config.log where it belongs
15125 echo "$WEBKIT_PKG_ERRORS" >&5
15126
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15129
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15132 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15133 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136
15137 ac_check_framework_save_LIBS=$LIBS
15138 LIBS="-framework JavaScriptCore $LIBS"
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141
15142 #include <JavaScriptCore/JSBase.h>
15143
15144 int
15145 main ()
15146 {
15147 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15148 ;
15149 return 0;
15150 }
15151 _ACEOF
15152 if ac_fn_cxx_try_link "$LINENO"; then :
15153
15154 ac_cv_framework_JavaScriptCore=yes
15155
15156 else
15157 ac_cv_framework_JavaScriptCore=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
15161 LIBS=$ac_check_framework_save_LIBS
15162
15163 fi
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15165 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15166 if test $ac_cv_framework_JavaScriptCore = yes; then :
15167
15168
15169 for element in "-framework JavaScriptCore $LIBS"; do
15170 haveit=
15171 for x in $LIBS; do
15172
15173 acl_save_prefix="$prefix"
15174 prefix="$acl_final_prefix"
15175 acl_save_exec_prefix="$exec_prefix"
15176 exec_prefix="$acl_final_exec_prefix"
15177 eval x=\"$x\"
15178 exec_prefix="$acl_save_exec_prefix"
15179 prefix="$acl_save_prefix"
15180
15181 if test "X$x" = "X$element"; then
15182 haveit=yes
15183 break
15184 fi
15185 done
15186 if test -z "$haveit"; then
15187 LIBS="${LIBS}${LIBS:+ }$element"
15188 fi
15189 done
15190
15191 CY_EXECUTE=1
15192
15193 fi
15194
15195 elif test $pkg_failed = untried; then
15196
15197
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15199 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15200 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203
15204 ac_check_framework_save_LIBS=$LIBS
15205 LIBS="-framework JavaScriptCore $LIBS"
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15208
15209 #include <JavaScriptCore/JSBase.h>
15210
15211 int
15212 main ()
15213 {
15214 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_cxx_try_link "$LINENO"; then :
15220
15221 ac_cv_framework_JavaScriptCore=yes
15222
15223 else
15224 ac_cv_framework_JavaScriptCore=no
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext \
15227 conftest$ac_exeext conftest.$ac_ext
15228 LIBS=$ac_check_framework_save_LIBS
15229
15230 fi
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15232 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15233 if test $ac_cv_framework_JavaScriptCore = yes; then :
15234
15235
15236 for element in "-framework JavaScriptCore $LIBS"; do
15237 haveit=
15238 for x in $LIBS; do
15239
15240 acl_save_prefix="$prefix"
15241 prefix="$acl_final_prefix"
15242 acl_save_exec_prefix="$exec_prefix"
15243 exec_prefix="$acl_final_exec_prefix"
15244 eval x=\"$x\"
15245 exec_prefix="$acl_save_exec_prefix"
15246 prefix="$acl_save_prefix"
15247
15248 if test "X$x" = "X$element"; then
15249 haveit=yes
15250 break
15251 fi
15252 done
15253 if test -z "$haveit"; then
15254 LIBS="${LIBS}${LIBS:+ }$element"
15255 fi
15256 done
15257
15258 CY_EXECUTE=1
15259
15260 fi
15261
15262 else
15263 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15264 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15266 $as_echo "yes" >&6; }
15267
15268 CY_EXECUTE=1
15269
15270 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15271 haveit=
15272 for x in $CXXFLAGS; do
15273
15274 acl_save_prefix="$prefix"
15275 prefix="$acl_final_prefix"
15276 acl_save_exec_prefix="$exec_prefix"
15277 exec_prefix="$acl_final_exec_prefix"
15278 eval x=\"$x\"
15279 exec_prefix="$acl_save_exec_prefix"
15280 prefix="$acl_save_prefix"
15281
15282 if test "X$x" = "X$element"; then
15283 haveit=yes
15284 break
15285 fi
15286 done
15287 if test -z "$haveit"; then
15288 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15289 fi
15290 done
15291
15292
15293 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15294 haveit=
15295 for x in $LIBS; do
15296
15297 acl_save_prefix="$prefix"
15298 prefix="$acl_final_prefix"
15299 acl_save_exec_prefix="$exec_prefix"
15300 exec_prefix="$acl_final_exec_prefix"
15301 eval x=\"$x\"
15302 exec_prefix="$acl_save_exec_prefix"
15303 prefix="$acl_save_prefix"
15304
15305 if test "X$x" = "X$element"; then
15306 haveit=yes
15307 break
15308 fi
15309 done
15310 if test -z "$haveit"; then
15311 LIBS="${LIBS}${LIBS:+ }$element"
15312 fi
15313 done
15314
15315
15316 fi
15317
15318 elif test $pkg_failed = untried; then
15319
15320
15321 pkg_failed=no
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15323 $as_echo_n "checking for WEBKIT... " >&6; }
15324
15325 if test -n "$PKG_CONFIG"; then
15326 if test -n "$WEBKIT_CFLAGS"; then
15327 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15328 else
15329 if test -n "$PKG_CONFIG" && \
15330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15331 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15332 ac_status=$?
15333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15334 test $ac_status = 0; }; then
15335 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15336 else
15337 pkg_failed=yes
15338 fi
15339 fi
15340 else
15341 pkg_failed=untried
15342 fi
15343 if test -n "$PKG_CONFIG"; then
15344 if test -n "$WEBKIT_LIBS"; then
15345 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15346 else
15347 if test -n "$PKG_CONFIG" && \
15348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15349 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15350 ac_status=$?
15351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15352 test $ac_status = 0; }; then
15353 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15354 else
15355 pkg_failed=yes
15356 fi
15357 fi
15358 else
15359 pkg_failed=untried
15360 fi
15361
15362
15363
15364 if test $pkg_failed = yes; then
15365
15366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15367 _pkg_short_errors_supported=yes
15368 else
15369 _pkg_short_errors_supported=no
15370 fi
15371 if test $_pkg_short_errors_supported = yes; then
15372 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15373 else
15374 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15375 fi
15376 # Put the nasty error message in config.log where it belongs
15377 echo "$WEBKIT_PKG_ERRORS" >&5
15378
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15380 $as_echo "no" >&6; }
15381
15382
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15384 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15385 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15386 $as_echo_n "(cached) " >&6
15387 else
15388
15389 ac_check_framework_save_LIBS=$LIBS
15390 LIBS="-framework JavaScriptCore $LIBS"
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393
15394 #include <JavaScriptCore/JSBase.h>
15395
15396 int
15397 main ()
15398 {
15399 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15400 ;
15401 return 0;
15402 }
15403 _ACEOF
15404 if ac_fn_cxx_try_link "$LINENO"; then :
15405
15406 ac_cv_framework_JavaScriptCore=yes
15407
15408 else
15409 ac_cv_framework_JavaScriptCore=no
15410 fi
15411 rm -f core conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_framework_save_LIBS
15414
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15417 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15418 if test $ac_cv_framework_JavaScriptCore = yes; then :
15419
15420
15421 for element in "-framework JavaScriptCore $LIBS"; do
15422 haveit=
15423 for x in $LIBS; do
15424
15425 acl_save_prefix="$prefix"
15426 prefix="$acl_final_prefix"
15427 acl_save_exec_prefix="$exec_prefix"
15428 exec_prefix="$acl_final_exec_prefix"
15429 eval x=\"$x\"
15430 exec_prefix="$acl_save_exec_prefix"
15431 prefix="$acl_save_prefix"
15432
15433 if test "X$x" = "X$element"; then
15434 haveit=yes
15435 break
15436 fi
15437 done
15438 if test -z "$haveit"; then
15439 LIBS="${LIBS}${LIBS:+ }$element"
15440 fi
15441 done
15442
15443 CY_EXECUTE=1
15444
15445 fi
15446
15447 elif test $pkg_failed = untried; then
15448
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15451 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15452 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455
15456 ac_check_framework_save_LIBS=$LIBS
15457 LIBS="-framework JavaScriptCore $LIBS"
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15460
15461 #include <JavaScriptCore/JSBase.h>
15462
15463 int
15464 main ()
15465 {
15466 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15467 ;
15468 return 0;
15469 }
15470 _ACEOF
15471 if ac_fn_cxx_try_link "$LINENO"; then :
15472
15473 ac_cv_framework_JavaScriptCore=yes
15474
15475 else
15476 ac_cv_framework_JavaScriptCore=no
15477 fi
15478 rm -f core conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 LIBS=$ac_check_framework_save_LIBS
15481
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15484 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15485 if test $ac_cv_framework_JavaScriptCore = yes; then :
15486
15487
15488 for element in "-framework JavaScriptCore $LIBS"; do
15489 haveit=
15490 for x in $LIBS; do
15491
15492 acl_save_prefix="$prefix"
15493 prefix="$acl_final_prefix"
15494 acl_save_exec_prefix="$exec_prefix"
15495 exec_prefix="$acl_final_exec_prefix"
15496 eval x=\"$x\"
15497 exec_prefix="$acl_save_exec_prefix"
15498 prefix="$acl_save_prefix"
15499
15500 if test "X$x" = "X$element"; then
15501 haveit=yes
15502 break
15503 fi
15504 done
15505 if test -z "$haveit"; then
15506 LIBS="${LIBS}${LIBS:+ }$element"
15507 fi
15508 done
15509
15510 CY_EXECUTE=1
15511
15512 fi
15513
15514 else
15515 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15516 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15518 $as_echo "yes" >&6; }
15519
15520 CY_EXECUTE=1
15521
15522 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15523 haveit=
15524 for x in $CXXFLAGS; do
15525
15526 acl_save_prefix="$prefix"
15527 prefix="$acl_final_prefix"
15528 acl_save_exec_prefix="$exec_prefix"
15529 exec_prefix="$acl_final_exec_prefix"
15530 eval x=\"$x\"
15531 exec_prefix="$acl_save_exec_prefix"
15532 prefix="$acl_save_prefix"
15533
15534 if test "X$x" = "X$element"; then
15535 haveit=yes
15536 break
15537 fi
15538 done
15539 if test -z "$haveit"; then
15540 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15541 fi
15542 done
15543
15544
15545 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15546 haveit=
15547 for x in $LIBS; do
15548
15549 acl_save_prefix="$prefix"
15550 prefix="$acl_final_prefix"
15551 acl_save_exec_prefix="$exec_prefix"
15552 exec_prefix="$acl_final_exec_prefix"
15553 eval x=\"$x\"
15554 exec_prefix="$acl_save_exec_prefix"
15555 prefix="$acl_save_prefix"
15556
15557 if test "X$x" = "X$element"; then
15558 haveit=yes
15559 break
15560 fi
15561 done
15562 if test -z "$haveit"; then
15563 LIBS="${LIBS}${LIBS:+ }$element"
15564 fi
15565 done
15566
15567
15568 fi
15569
15570 else
15571 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15572 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15574 $as_echo "yes" >&6; }
15575
15576 CY_EXECUTE=1
15577
15578 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15579 haveit=
15580 for x in $CXXFLAGS; do
15581
15582 acl_save_prefix="$prefix"
15583 prefix="$acl_final_prefix"
15584 acl_save_exec_prefix="$exec_prefix"
15585 exec_prefix="$acl_final_exec_prefix"
15586 eval x=\"$x\"
15587 exec_prefix="$acl_save_exec_prefix"
15588 prefix="$acl_save_prefix"
15589
15590 if test "X$x" = "X$element"; then
15591 haveit=yes
15592 break
15593 fi
15594 done
15595 if test -z "$haveit"; then
15596 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15597 fi
15598 done
15599
15600
15601 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15602 haveit=
15603 for x in $LIBS; do
15604
15605 acl_save_prefix="$prefix"
15606 prefix="$acl_final_prefix"
15607 acl_save_exec_prefix="$exec_prefix"
15608 exec_prefix="$acl_final_exec_prefix"
15609 eval x=\"$x\"
15610 exec_prefix="$acl_save_exec_prefix"
15611 prefix="$acl_save_prefix"
15612
15613 if test "X$x" = "X$element"; then
15614 haveit=yes
15615 break
15616 fi
15617 done
15618 if test -z "$haveit"; then
15619 LIBS="${LIBS}${LIBS:+ }$element"
15620 fi
15621 done
15622
15623
15624 fi
15625
15626 ;; #(
15627 no) :
15628
15629 CY_EXECUTE=0
15630
15631 ;; #(
15632 JavaScriptCore) :
15633
15634
15635
15636 pkg_failed=no
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15638 $as_echo_n "checking for WEBKIT... " >&6; }
15639
15640 if test -n "$PKG_CONFIG"; then
15641 if test -n "$WEBKIT_CFLAGS"; then
15642 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15643 else
15644 if test -n "$PKG_CONFIG" && \
15645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15646 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15647 ac_status=$?
15648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; }; then
15650 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15651 else
15652 pkg_failed=yes
15653 fi
15654 fi
15655 else
15656 pkg_failed=untried
15657 fi
15658 if test -n "$PKG_CONFIG"; then
15659 if test -n "$WEBKIT_LIBS"; then
15660 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15661 else
15662 if test -n "$PKG_CONFIG" && \
15663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15664 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15665 ac_status=$?
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; }; then
15668 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15669 else
15670 pkg_failed=yes
15671 fi
15672 fi
15673 else
15674 pkg_failed=untried
15675 fi
15676
15677
15678
15679 if test $pkg_failed = yes; then
15680
15681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15682 _pkg_short_errors_supported=yes
15683 else
15684 _pkg_short_errors_supported=no
15685 fi
15686 if test $_pkg_short_errors_supported = yes; then
15687 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15688 else
15689 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15690 fi
15691 # Put the nasty error message in config.log where it belongs
15692 echo "$WEBKIT_PKG_ERRORS" >&5
15693
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 $as_echo "no" >&6; }
15696
15697
15698 pkg_failed=no
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15700 $as_echo_n "checking for WEBKIT... " >&6; }
15701
15702 if test -n "$PKG_CONFIG"; then
15703 if test -n "$WEBKIT_CFLAGS"; then
15704 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15705 else
15706 if test -n "$PKG_CONFIG" && \
15707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15708 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15709 ac_status=$?
15710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15711 test $ac_status = 0; }; then
15712 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15713 else
15714 pkg_failed=yes
15715 fi
15716 fi
15717 else
15718 pkg_failed=untried
15719 fi
15720 if test -n "$PKG_CONFIG"; then
15721 if test -n "$WEBKIT_LIBS"; then
15722 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15723 else
15724 if test -n "$PKG_CONFIG" && \
15725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15726 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15727 ac_status=$?
15728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729 test $ac_status = 0; }; then
15730 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15731 else
15732 pkg_failed=yes
15733 fi
15734 fi
15735 else
15736 pkg_failed=untried
15737 fi
15738
15739
15740
15741 if test $pkg_failed = yes; then
15742
15743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15744 _pkg_short_errors_supported=yes
15745 else
15746 _pkg_short_errors_supported=no
15747 fi
15748 if test $_pkg_short_errors_supported = yes; then
15749 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15750 else
15751 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15752 fi
15753 # Put the nasty error message in config.log where it belongs
15754 echo "$WEBKIT_PKG_ERRORS" >&5
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15757 $as_echo "no" >&6; }
15758
15759
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15761 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15762 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15763 $as_echo_n "(cached) " >&6
15764 else
15765
15766 ac_check_framework_save_LIBS=$LIBS
15767 LIBS="-framework JavaScriptCore $LIBS"
15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770
15771 #include <JavaScriptCore/JSBase.h>
15772
15773 int
15774 main ()
15775 {
15776 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 if ac_fn_cxx_try_link "$LINENO"; then :
15782
15783 ac_cv_framework_JavaScriptCore=yes
15784
15785 else
15786 ac_cv_framework_JavaScriptCore=no
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_framework_save_LIBS
15791
15792 fi
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15794 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15795 if test $ac_cv_framework_JavaScriptCore = yes; then :
15796
15797
15798 for element in "-framework JavaScriptCore $LIBS"; do
15799 haveit=
15800 for x in $LIBS; do
15801
15802 acl_save_prefix="$prefix"
15803 prefix="$acl_final_prefix"
15804 acl_save_exec_prefix="$exec_prefix"
15805 exec_prefix="$acl_final_exec_prefix"
15806 eval x=\"$x\"
15807 exec_prefix="$acl_save_exec_prefix"
15808 prefix="$acl_save_prefix"
15809
15810 if test "X$x" = "X$element"; then
15811 haveit=yes
15812 break
15813 fi
15814 done
15815 if test -z "$haveit"; then
15816 LIBS="${LIBS}${LIBS:+ }$element"
15817 fi
15818 done
15819
15820 CY_EXECUTE=1
15821
15822 fi
15823
15824 elif test $pkg_failed = untried; then
15825
15826
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15828 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15829 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832
15833 ac_check_framework_save_LIBS=$LIBS
15834 LIBS="-framework JavaScriptCore $LIBS"
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15837
15838 #include <JavaScriptCore/JSBase.h>
15839
15840 int
15841 main ()
15842 {
15843 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15844 ;
15845 return 0;
15846 }
15847 _ACEOF
15848 if ac_fn_cxx_try_link "$LINENO"; then :
15849
15850 ac_cv_framework_JavaScriptCore=yes
15851
15852 else
15853 ac_cv_framework_JavaScriptCore=no
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_framework_save_LIBS
15858
15859 fi
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15861 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15862 if test $ac_cv_framework_JavaScriptCore = yes; then :
15863
15864
15865 for element in "-framework JavaScriptCore $LIBS"; do
15866 haveit=
15867 for x in $LIBS; do
15868
15869 acl_save_prefix="$prefix"
15870 prefix="$acl_final_prefix"
15871 acl_save_exec_prefix="$exec_prefix"
15872 exec_prefix="$acl_final_exec_prefix"
15873 eval x=\"$x\"
15874 exec_prefix="$acl_save_exec_prefix"
15875 prefix="$acl_save_prefix"
15876
15877 if test "X$x" = "X$element"; then
15878 haveit=yes
15879 break
15880 fi
15881 done
15882 if test -z "$haveit"; then
15883 LIBS="${LIBS}${LIBS:+ }$element"
15884 fi
15885 done
15886
15887 CY_EXECUTE=1
15888
15889 fi
15890
15891 else
15892 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15893 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895 $as_echo "yes" >&6; }
15896
15897 CY_EXECUTE=1
15898
15899 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15900 haveit=
15901 for x in $CXXFLAGS; do
15902
15903 acl_save_prefix="$prefix"
15904 prefix="$acl_final_prefix"
15905 acl_save_exec_prefix="$exec_prefix"
15906 exec_prefix="$acl_final_exec_prefix"
15907 eval x=\"$x\"
15908 exec_prefix="$acl_save_exec_prefix"
15909 prefix="$acl_save_prefix"
15910
15911 if test "X$x" = "X$element"; then
15912 haveit=yes
15913 break
15914 fi
15915 done
15916 if test -z "$haveit"; then
15917 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15918 fi
15919 done
15920
15921
15922 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15923 haveit=
15924 for x in $LIBS; do
15925
15926 acl_save_prefix="$prefix"
15927 prefix="$acl_final_prefix"
15928 acl_save_exec_prefix="$exec_prefix"
15929 exec_prefix="$acl_final_exec_prefix"
15930 eval x=\"$x\"
15931 exec_prefix="$acl_save_exec_prefix"
15932 prefix="$acl_save_prefix"
15933
15934 if test "X$x" = "X$element"; then
15935 haveit=yes
15936 break
15937 fi
15938 done
15939 if test -z "$haveit"; then
15940 LIBS="${LIBS}${LIBS:+ }$element"
15941 fi
15942 done
15943
15944
15945 fi
15946
15947 elif test $pkg_failed = untried; then
15948
15949
15950 pkg_failed=no
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15952 $as_echo_n "checking for WEBKIT... " >&6; }
15953
15954 if test -n "$PKG_CONFIG"; then
15955 if test -n "$WEBKIT_CFLAGS"; then
15956 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15957 else
15958 if test -n "$PKG_CONFIG" && \
15959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15960 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15961 ac_status=$?
15962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963 test $ac_status = 0; }; then
15964 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15965 else
15966 pkg_failed=yes
15967 fi
15968 fi
15969 else
15970 pkg_failed=untried
15971 fi
15972 if test -n "$PKG_CONFIG"; then
15973 if test -n "$WEBKIT_LIBS"; then
15974 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15975 else
15976 if test -n "$PKG_CONFIG" && \
15977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15978 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15979 ac_status=$?
15980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981 test $ac_status = 0; }; then
15982 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15983 else
15984 pkg_failed=yes
15985 fi
15986 fi
15987 else
15988 pkg_failed=untried
15989 fi
15990
15991
15992
15993 if test $pkg_failed = yes; then
15994
15995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15996 _pkg_short_errors_supported=yes
15997 else
15998 _pkg_short_errors_supported=no
15999 fi
16000 if test $_pkg_short_errors_supported = yes; then
16001 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16002 else
16003 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16004 fi
16005 # Put the nasty error message in config.log where it belongs
16006 echo "$WEBKIT_PKG_ERRORS" >&5
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009 $as_echo "no" >&6; }
16010
16011
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16013 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16014 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017
16018 ac_check_framework_save_LIBS=$LIBS
16019 LIBS="-framework JavaScriptCore $LIBS"
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022
16023 #include <JavaScriptCore/JSBase.h>
16024
16025 int
16026 main ()
16027 {
16028 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16029 ;
16030 return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_cxx_try_link "$LINENO"; then :
16034
16035 ac_cv_framework_JavaScriptCore=yes
16036
16037 else
16038 ac_cv_framework_JavaScriptCore=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042 LIBS=$ac_check_framework_save_LIBS
16043
16044 fi
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16046 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16047 if test $ac_cv_framework_JavaScriptCore = yes; then :
16048
16049
16050 for element in "-framework JavaScriptCore $LIBS"; do
16051 haveit=
16052 for x in $LIBS; do
16053
16054 acl_save_prefix="$prefix"
16055 prefix="$acl_final_prefix"
16056 acl_save_exec_prefix="$exec_prefix"
16057 exec_prefix="$acl_final_exec_prefix"
16058 eval x=\"$x\"
16059 exec_prefix="$acl_save_exec_prefix"
16060 prefix="$acl_save_prefix"
16061
16062 if test "X$x" = "X$element"; then
16063 haveit=yes
16064 break
16065 fi
16066 done
16067 if test -z "$haveit"; then
16068 LIBS="${LIBS}${LIBS:+ }$element"
16069 fi
16070 done
16071
16072 CY_EXECUTE=1
16073
16074 fi
16075
16076 elif test $pkg_failed = untried; then
16077
16078
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16080 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16081 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084
16085 ac_check_framework_save_LIBS=$LIBS
16086 LIBS="-framework JavaScriptCore $LIBS"
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089
16090 #include <JavaScriptCore/JSBase.h>
16091
16092 int
16093 main ()
16094 {
16095 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16096 ;
16097 return 0;
16098 }
16099 _ACEOF
16100 if ac_fn_cxx_try_link "$LINENO"; then :
16101
16102 ac_cv_framework_JavaScriptCore=yes
16103
16104 else
16105 ac_cv_framework_JavaScriptCore=no
16106 fi
16107 rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109 LIBS=$ac_check_framework_save_LIBS
16110
16111 fi
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16113 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16114 if test $ac_cv_framework_JavaScriptCore = yes; then :
16115
16116
16117 for element in "-framework JavaScriptCore $LIBS"; do
16118 haveit=
16119 for x in $LIBS; do
16120
16121 acl_save_prefix="$prefix"
16122 prefix="$acl_final_prefix"
16123 acl_save_exec_prefix="$exec_prefix"
16124 exec_prefix="$acl_final_exec_prefix"
16125 eval x=\"$x\"
16126 exec_prefix="$acl_save_exec_prefix"
16127 prefix="$acl_save_prefix"
16128
16129 if test "X$x" = "X$element"; then
16130 haveit=yes
16131 break
16132 fi
16133 done
16134 if test -z "$haveit"; then
16135 LIBS="${LIBS}${LIBS:+ }$element"
16136 fi
16137 done
16138
16139 CY_EXECUTE=1
16140
16141 fi
16142
16143 else
16144 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16145 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16147 $as_echo "yes" >&6; }
16148
16149 CY_EXECUTE=1
16150
16151 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16152 haveit=
16153 for x in $CXXFLAGS; do
16154
16155 acl_save_prefix="$prefix"
16156 prefix="$acl_final_prefix"
16157 acl_save_exec_prefix="$exec_prefix"
16158 exec_prefix="$acl_final_exec_prefix"
16159 eval x=\"$x\"
16160 exec_prefix="$acl_save_exec_prefix"
16161 prefix="$acl_save_prefix"
16162
16163 if test "X$x" = "X$element"; then
16164 haveit=yes
16165 break
16166 fi
16167 done
16168 if test -z "$haveit"; then
16169 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16170 fi
16171 done
16172
16173
16174 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16175 haveit=
16176 for x in $LIBS; do
16177
16178 acl_save_prefix="$prefix"
16179 prefix="$acl_final_prefix"
16180 acl_save_exec_prefix="$exec_prefix"
16181 exec_prefix="$acl_final_exec_prefix"
16182 eval x=\"$x\"
16183 exec_prefix="$acl_save_exec_prefix"
16184 prefix="$acl_save_prefix"
16185
16186 if test "X$x" = "X$element"; then
16187 haveit=yes
16188 break
16189 fi
16190 done
16191 if test -z "$haveit"; then
16192 LIBS="${LIBS}${LIBS:+ }$element"
16193 fi
16194 done
16195
16196
16197 fi
16198
16199 else
16200 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16201 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16203 $as_echo "yes" >&6; }
16204
16205 CY_EXECUTE=1
16206
16207 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16208 haveit=
16209 for x in $CXXFLAGS; do
16210
16211 acl_save_prefix="$prefix"
16212 prefix="$acl_final_prefix"
16213 acl_save_exec_prefix="$exec_prefix"
16214 exec_prefix="$acl_final_exec_prefix"
16215 eval x=\"$x\"
16216 exec_prefix="$acl_save_exec_prefix"
16217 prefix="$acl_save_prefix"
16218
16219 if test "X$x" = "X$element"; then
16220 haveit=yes
16221 break
16222 fi
16223 done
16224 if test -z "$haveit"; then
16225 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16226 fi
16227 done
16228
16229
16230 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16231 haveit=
16232 for x in $LIBS; do
16233
16234 acl_save_prefix="$prefix"
16235 prefix="$acl_final_prefix"
16236 acl_save_exec_prefix="$exec_prefix"
16237 exec_prefix="$acl_final_exec_prefix"
16238 eval x=\"$x\"
16239 exec_prefix="$acl_save_exec_prefix"
16240 prefix="$acl_save_prefix"
16241
16242 if test "X$x" = "X$element"; then
16243 haveit=yes
16244 break
16245 fi
16246 done
16247 if test -z "$haveit"; then
16248 LIBS="${LIBS}${LIBS:+ }$element"
16249 fi
16250 done
16251
16252
16253 fi
16254
16255 ;; #(
16256 *) :
16257 as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
16258 esac
16259
16260 else
16261
16262
16263
16264 pkg_failed=no
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16266 $as_echo_n "checking for WEBKIT... " >&6; }
16267
16268 if test -n "$PKG_CONFIG"; then
16269 if test -n "$WEBKIT_CFLAGS"; then
16270 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16271 else
16272 if test -n "$PKG_CONFIG" && \
16273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16274 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16275 ac_status=$?
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; then
16278 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16279 else
16280 pkg_failed=yes
16281 fi
16282 fi
16283 else
16284 pkg_failed=untried
16285 fi
16286 if test -n "$PKG_CONFIG"; then
16287 if test -n "$WEBKIT_LIBS"; then
16288 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16289 else
16290 if test -n "$PKG_CONFIG" && \
16291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16292 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16293 ac_status=$?
16294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16295 test $ac_status = 0; }; then
16296 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16297 else
16298 pkg_failed=yes
16299 fi
16300 fi
16301 else
16302 pkg_failed=untried
16303 fi
16304
16305
16306
16307 if test $pkg_failed = yes; then
16308
16309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16310 _pkg_short_errors_supported=yes
16311 else
16312 _pkg_short_errors_supported=no
16313 fi
16314 if test $_pkg_short_errors_supported = yes; then
16315 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
16316 else
16317 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
16318 fi
16319 # Put the nasty error message in config.log where it belongs
16320 echo "$WEBKIT_PKG_ERRORS" >&5
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324
16325
16326 pkg_failed=no
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16328 $as_echo_n "checking for WEBKIT... " >&6; }
16329
16330 if test -n "$PKG_CONFIG"; then
16331 if test -n "$WEBKIT_CFLAGS"; then
16332 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16333 else
16334 if test -n "$PKG_CONFIG" && \
16335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16336 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16337 ac_status=$?
16338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16339 test $ac_status = 0; }; then
16340 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16341 else
16342 pkg_failed=yes
16343 fi
16344 fi
16345 else
16346 pkg_failed=untried
16347 fi
16348 if test -n "$PKG_CONFIG"; then
16349 if test -n "$WEBKIT_LIBS"; then
16350 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16351 else
16352 if test -n "$PKG_CONFIG" && \
16353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16354 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16355 ac_status=$?
16356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16357 test $ac_status = 0; }; then
16358 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16359 else
16360 pkg_failed=yes
16361 fi
16362 fi
16363 else
16364 pkg_failed=untried
16365 fi
16366
16367
16368
16369 if test $pkg_failed = yes; then
16370
16371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16372 _pkg_short_errors_supported=yes
16373 else
16374 _pkg_short_errors_supported=no
16375 fi
16376 if test $_pkg_short_errors_supported = yes; then
16377 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16378 else
16379 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16380 fi
16381 # Put the nasty error message in config.log where it belongs
16382 echo "$WEBKIT_PKG_ERRORS" >&5
16383
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385 $as_echo "no" >&6; }
16386
16387
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16389 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16390 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16391 $as_echo_n "(cached) " >&6
16392 else
16393
16394 ac_check_framework_save_LIBS=$LIBS
16395 LIBS="-framework JavaScriptCore $LIBS"
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398
16399 #include <JavaScriptCore/JSBase.h>
16400
16401 int
16402 main ()
16403 {
16404 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16405 ;
16406 return 0;
16407 }
16408 _ACEOF
16409 if ac_fn_cxx_try_link "$LINENO"; then :
16410
16411 ac_cv_framework_JavaScriptCore=yes
16412
16413 else
16414 ac_cv_framework_JavaScriptCore=no
16415 fi
16416 rm -f core conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16418 LIBS=$ac_check_framework_save_LIBS
16419
16420 fi
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16422 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16423 if test $ac_cv_framework_JavaScriptCore = yes; then :
16424
16425
16426 for element in "-framework JavaScriptCore $LIBS"; do
16427 haveit=
16428 for x in $LIBS; do
16429
16430 acl_save_prefix="$prefix"
16431 prefix="$acl_final_prefix"
16432 acl_save_exec_prefix="$exec_prefix"
16433 exec_prefix="$acl_final_exec_prefix"
16434 eval x=\"$x\"
16435 exec_prefix="$acl_save_exec_prefix"
16436 prefix="$acl_save_prefix"
16437
16438 if test "X$x" = "X$element"; then
16439 haveit=yes
16440 break
16441 fi
16442 done
16443 if test -z "$haveit"; then
16444 LIBS="${LIBS}${LIBS:+ }$element"
16445 fi
16446 done
16447
16448 CY_EXECUTE=1
16449
16450 fi
16451
16452 elif test $pkg_failed = untried; then
16453
16454
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16456 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16457 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16458 $as_echo_n "(cached) " >&6
16459 else
16460
16461 ac_check_framework_save_LIBS=$LIBS
16462 LIBS="-framework JavaScriptCore $LIBS"
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465
16466 #include <JavaScriptCore/JSBase.h>
16467
16468 int
16469 main ()
16470 {
16471 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16472 ;
16473 return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_cxx_try_link "$LINENO"; then :
16477
16478 ac_cv_framework_JavaScriptCore=yes
16479
16480 else
16481 ac_cv_framework_JavaScriptCore=no
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext \
16484 conftest$ac_exeext conftest.$ac_ext
16485 LIBS=$ac_check_framework_save_LIBS
16486
16487 fi
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16489 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16490 if test $ac_cv_framework_JavaScriptCore = yes; then :
16491
16492
16493 for element in "-framework JavaScriptCore $LIBS"; do
16494 haveit=
16495 for x in $LIBS; do
16496
16497 acl_save_prefix="$prefix"
16498 prefix="$acl_final_prefix"
16499 acl_save_exec_prefix="$exec_prefix"
16500 exec_prefix="$acl_final_exec_prefix"
16501 eval x=\"$x\"
16502 exec_prefix="$acl_save_exec_prefix"
16503 prefix="$acl_save_prefix"
16504
16505 if test "X$x" = "X$element"; then
16506 haveit=yes
16507 break
16508 fi
16509 done
16510 if test -z "$haveit"; then
16511 LIBS="${LIBS}${LIBS:+ }$element"
16512 fi
16513 done
16514
16515 CY_EXECUTE=1
16516
16517 fi
16518
16519 else
16520 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16521 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16523 $as_echo "yes" >&6; }
16524
16525 CY_EXECUTE=1
16526
16527 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16528 haveit=
16529 for x in $CXXFLAGS; do
16530
16531 acl_save_prefix="$prefix"
16532 prefix="$acl_final_prefix"
16533 acl_save_exec_prefix="$exec_prefix"
16534 exec_prefix="$acl_final_exec_prefix"
16535 eval x=\"$x\"
16536 exec_prefix="$acl_save_exec_prefix"
16537 prefix="$acl_save_prefix"
16538
16539 if test "X$x" = "X$element"; then
16540 haveit=yes
16541 break
16542 fi
16543 done
16544 if test -z "$haveit"; then
16545 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16546 fi
16547 done
16548
16549
16550 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16551 haveit=
16552 for x in $LIBS; do
16553
16554 acl_save_prefix="$prefix"
16555 prefix="$acl_final_prefix"
16556 acl_save_exec_prefix="$exec_prefix"
16557 exec_prefix="$acl_final_exec_prefix"
16558 eval x=\"$x\"
16559 exec_prefix="$acl_save_exec_prefix"
16560 prefix="$acl_save_prefix"
16561
16562 if test "X$x" = "X$element"; then
16563 haveit=yes
16564 break
16565 fi
16566 done
16567 if test -z "$haveit"; then
16568 LIBS="${LIBS}${LIBS:+ }$element"
16569 fi
16570 done
16571
16572
16573 fi
16574
16575 elif test $pkg_failed = untried; then
16576
16577
16578 pkg_failed=no
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16580 $as_echo_n "checking for WEBKIT... " >&6; }
16581
16582 if test -n "$PKG_CONFIG"; then
16583 if test -n "$WEBKIT_CFLAGS"; then
16584 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16585 else
16586 if test -n "$PKG_CONFIG" && \
16587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16588 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16589 ac_status=$?
16590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16591 test $ac_status = 0; }; then
16592 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16593 else
16594 pkg_failed=yes
16595 fi
16596 fi
16597 else
16598 pkg_failed=untried
16599 fi
16600 if test -n "$PKG_CONFIG"; then
16601 if test -n "$WEBKIT_LIBS"; then
16602 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16603 else
16604 if test -n "$PKG_CONFIG" && \
16605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16606 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16607 ac_status=$?
16608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16609 test $ac_status = 0; }; then
16610 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16611 else
16612 pkg_failed=yes
16613 fi
16614 fi
16615 else
16616 pkg_failed=untried
16617 fi
16618
16619
16620
16621 if test $pkg_failed = yes; then
16622
16623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16624 _pkg_short_errors_supported=yes
16625 else
16626 _pkg_short_errors_supported=no
16627 fi
16628 if test $_pkg_short_errors_supported = yes; then
16629 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16630 else
16631 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16632 fi
16633 # Put the nasty error message in config.log where it belongs
16634 echo "$WEBKIT_PKG_ERRORS" >&5
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16637 $as_echo "no" >&6; }
16638
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16641 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16642 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645
16646 ac_check_framework_save_LIBS=$LIBS
16647 LIBS="-framework JavaScriptCore $LIBS"
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16650
16651 #include <JavaScriptCore/JSBase.h>
16652
16653 int
16654 main ()
16655 {
16656 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16657 ;
16658 return 0;
16659 }
16660 _ACEOF
16661 if ac_fn_cxx_try_link "$LINENO"; then :
16662
16663 ac_cv_framework_JavaScriptCore=yes
16664
16665 else
16666 ac_cv_framework_JavaScriptCore=no
16667 fi
16668 rm -f core conftest.err conftest.$ac_objext \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_framework_save_LIBS
16671
16672 fi
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16674 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16675 if test $ac_cv_framework_JavaScriptCore = yes; then :
16676
16677
16678 for element in "-framework JavaScriptCore $LIBS"; do
16679 haveit=
16680 for x in $LIBS; do
16681
16682 acl_save_prefix="$prefix"
16683 prefix="$acl_final_prefix"
16684 acl_save_exec_prefix="$exec_prefix"
16685 exec_prefix="$acl_final_exec_prefix"
16686 eval x=\"$x\"
16687 exec_prefix="$acl_save_exec_prefix"
16688 prefix="$acl_save_prefix"
16689
16690 if test "X$x" = "X$element"; then
16691 haveit=yes
16692 break
16693 fi
16694 done
16695 if test -z "$haveit"; then
16696 LIBS="${LIBS}${LIBS:+ }$element"
16697 fi
16698 done
16699
16700 CY_EXECUTE=1
16701
16702 fi
16703
16704 elif test $pkg_failed = untried; then
16705
16706
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16708 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16709 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16710 $as_echo_n "(cached) " >&6
16711 else
16712
16713 ac_check_framework_save_LIBS=$LIBS
16714 LIBS="-framework JavaScriptCore $LIBS"
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717
16718 #include <JavaScriptCore/JSBase.h>
16719
16720 int
16721 main ()
16722 {
16723 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 if ac_fn_cxx_try_link "$LINENO"; then :
16729
16730 ac_cv_framework_JavaScriptCore=yes
16731
16732 else
16733 ac_cv_framework_JavaScriptCore=no
16734 fi
16735 rm -f core conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 LIBS=$ac_check_framework_save_LIBS
16738
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16741 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16742 if test $ac_cv_framework_JavaScriptCore = yes; then :
16743
16744
16745 for element in "-framework JavaScriptCore $LIBS"; do
16746 haveit=
16747 for x in $LIBS; do
16748
16749 acl_save_prefix="$prefix"
16750 prefix="$acl_final_prefix"
16751 acl_save_exec_prefix="$exec_prefix"
16752 exec_prefix="$acl_final_exec_prefix"
16753 eval x=\"$x\"
16754 exec_prefix="$acl_save_exec_prefix"
16755 prefix="$acl_save_prefix"
16756
16757 if test "X$x" = "X$element"; then
16758 haveit=yes
16759 break
16760 fi
16761 done
16762 if test -z "$haveit"; then
16763 LIBS="${LIBS}${LIBS:+ }$element"
16764 fi
16765 done
16766
16767 CY_EXECUTE=1
16768
16769 fi
16770
16771 else
16772 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16773 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16775 $as_echo "yes" >&6; }
16776
16777 CY_EXECUTE=1
16778
16779 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16780 haveit=
16781 for x in $CXXFLAGS; do
16782
16783 acl_save_prefix="$prefix"
16784 prefix="$acl_final_prefix"
16785 acl_save_exec_prefix="$exec_prefix"
16786 exec_prefix="$acl_final_exec_prefix"
16787 eval x=\"$x\"
16788 exec_prefix="$acl_save_exec_prefix"
16789 prefix="$acl_save_prefix"
16790
16791 if test "X$x" = "X$element"; then
16792 haveit=yes
16793 break
16794 fi
16795 done
16796 if test -z "$haveit"; then
16797 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16798 fi
16799 done
16800
16801
16802 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16803 haveit=
16804 for x in $LIBS; do
16805
16806 acl_save_prefix="$prefix"
16807 prefix="$acl_final_prefix"
16808 acl_save_exec_prefix="$exec_prefix"
16809 exec_prefix="$acl_final_exec_prefix"
16810 eval x=\"$x\"
16811 exec_prefix="$acl_save_exec_prefix"
16812 prefix="$acl_save_prefix"
16813
16814 if test "X$x" = "X$element"; then
16815 haveit=yes
16816 break
16817 fi
16818 done
16819 if test -z "$haveit"; then
16820 LIBS="${LIBS}${LIBS:+ }$element"
16821 fi
16822 done
16823
16824
16825 fi
16826
16827 else
16828 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16829 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16832
16833 CY_EXECUTE=1
16834
16835 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16836 haveit=
16837 for x in $CXXFLAGS; do
16838
16839 acl_save_prefix="$prefix"
16840 prefix="$acl_final_prefix"
16841 acl_save_exec_prefix="$exec_prefix"
16842 exec_prefix="$acl_final_exec_prefix"
16843 eval x=\"$x\"
16844 exec_prefix="$acl_save_exec_prefix"
16845 prefix="$acl_save_prefix"
16846
16847 if test "X$x" = "X$element"; then
16848 haveit=yes
16849 break
16850 fi
16851 done
16852 if test -z "$haveit"; then
16853 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16854 fi
16855 done
16856
16857
16858 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16859 haveit=
16860 for x in $LIBS; do
16861
16862 acl_save_prefix="$prefix"
16863 prefix="$acl_final_prefix"
16864 acl_save_exec_prefix="$exec_prefix"
16865 exec_prefix="$acl_final_exec_prefix"
16866 eval x=\"$x\"
16867 exec_prefix="$acl_save_exec_prefix"
16868 prefix="$acl_save_prefix"
16869
16870 if test "X$x" = "X$element"; then
16871 haveit=yes
16872 break
16873 fi
16874 done
16875 if test -z "$haveit"; then
16876 LIBS="${LIBS}${LIBS:+ }$element"
16877 fi
16878 done
16879
16880
16881 fi
16882
16883
16884 fi
16885
16886
16887
16888
16889 case $CY_EXECUTE in #(
16890 1) :
16891
16892
16893 for ac_header in ffi.h ffi/ffi.h
16894 do :
16895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16896 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16897 eval as_val=\$$as_ac_Header
16898 if test "x$as_val" = x""yes; then :
16899 cat >>confdefs.h <<_ACEOF
16900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16901 _ACEOF
16902 break
16903 fi
16904
16905 done
16906
16907 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16908
16909
16910
16911 pkg_failed=no
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16913 $as_echo_n "checking for LIBFFI... " >&6; }
16914
16915 if test -n "$PKG_CONFIG"; then
16916 if test -n "$LIBFFI_CFLAGS"; then
16917 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
16918 else
16919 if test -n "$PKG_CONFIG" && \
16920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16921 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16922 ac_status=$?
16923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16924 test $ac_status = 0; }; then
16925 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
16926 else
16927 pkg_failed=yes
16928 fi
16929 fi
16930 else
16931 pkg_failed=untried
16932 fi
16933 if test -n "$PKG_CONFIG"; then
16934 if test -n "$LIBFFI_LIBS"; then
16935 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
16936 else
16937 if test -n "$PKG_CONFIG" && \
16938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16939 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16940 ac_status=$?
16941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16942 test $ac_status = 0; }; then
16943 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
16944 else
16945 pkg_failed=yes
16946 fi
16947 fi
16948 else
16949 pkg_failed=untried
16950 fi
16951
16952
16953
16954 if test $pkg_failed = yes; then
16955
16956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16957 _pkg_short_errors_supported=yes
16958 else
16959 _pkg_short_errors_supported=no
16960 fi
16961 if test $_pkg_short_errors_supported = yes; then
16962 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
16963 else
16964 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
16965 fi
16966 # Put the nasty error message in config.log where it belongs
16967 echo "$LIBFFI_PKG_ERRORS" >&5
16968
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970 $as_echo "no" >&6; }
16971
16972 as_fn_error "You need libffi" "$LINENO" 5
16973
16974 elif test $pkg_failed = untried; then
16975
16976 as_fn_error "You need libffi" "$LINENO" 5
16977
16978 else
16979 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16980 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16982 $as_echo "yes" >&6; }
16983
16984
16985 for element in `$PKG_CONFIG --cflags libffi`; do
16986 haveit=
16987 for x in $CXXFLAGS; do
16988
16989 acl_save_prefix="$prefix"
16990 prefix="$acl_final_prefix"
16991 acl_save_exec_prefix="$exec_prefix"
16992 exec_prefix="$acl_final_exec_prefix"
16993 eval x=\"$x\"
16994 exec_prefix="$acl_save_exec_prefix"
16995 prefix="$acl_save_prefix"
16996
16997 if test "X$x" = "X$element"; then
16998 haveit=yes
16999 break
17000 fi
17001 done
17002 if test -z "$haveit"; then
17003 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17004 fi
17005 done
17006
17007
17008 for element in `$PKG_CONFIG --libs libffi`; do
17009 haveit=
17010 for x in $LIBS; do
17011
17012 acl_save_prefix="$prefix"
17013 prefix="$acl_final_prefix"
17014 acl_save_exec_prefix="$exec_prefix"
17015 exec_prefix="$acl_final_exec_prefix"
17016 eval x=\"$x\"
17017 exec_prefix="$acl_save_exec_prefix"
17018 prefix="$acl_save_prefix"
17019
17020 if test "X$x" = "X$element"; then
17021 haveit=yes
17022 break
17023 fi
17024 done
17025 if test -z "$haveit"; then
17026 LIBS="${LIBS}${LIBS:+ }$element"
17027 fi
17028 done
17029
17030
17031 fi
17032
17033
17034 else
17035
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17037 $as_echo_n "checking for library containing ffi_call... " >&6; }
17038 if test "${ac_cv_search_ffi_call+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 ac_func_search_save_LIBS=$LIBS
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char ffi_call ();
17052 int
17053 main ()
17054 {
17055 return ffi_call ();
17056 ;
17057 return 0;
17058 }
17059 _ACEOF
17060 for ac_lib in '' ffi; do
17061 if test -z "$ac_lib"; then
17062 ac_res="none required"
17063 else
17064 ac_res=-l$ac_lib
17065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17066 fi
17067 if ac_fn_cxx_try_link "$LINENO"; then :
17068 ac_cv_search_ffi_call=$ac_res
17069 fi
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext
17072 if test "${ac_cv_search_ffi_call+set}" = set; then :
17073 break
17074 fi
17075 done
17076 if test "${ac_cv_search_ffi_call+set}" = set; then :
17077
17078 else
17079 ac_cv_search_ffi_call=no
17080 fi
17081 rm conftest.$ac_ext
17082 LIBS=$ac_func_search_save_LIBS
17083 fi
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17085 $as_echo "$ac_cv_search_ffi_call" >&6; }
17086 ac_res=$ac_cv_search_ffi_call
17087 if test "$ac_res" != no; then :
17088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17089
17090 fi
17091
17092 case $ac_cv_search_ffi_call in #(
17093 no) :
17094
17095
17096 pkg_failed=no
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17098 $as_echo_n "checking for LIBFFI... " >&6; }
17099
17100 if test -n "$PKG_CONFIG"; then
17101 if test -n "$LIBFFI_CFLAGS"; then
17102 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17103 else
17104 if test -n "$PKG_CONFIG" && \
17105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17106 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17107 ac_status=$?
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; then
17110 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17111 else
17112 pkg_failed=yes
17113 fi
17114 fi
17115 else
17116 pkg_failed=untried
17117 fi
17118 if test -n "$PKG_CONFIG"; then
17119 if test -n "$LIBFFI_LIBS"; then
17120 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17121 else
17122 if test -n "$PKG_CONFIG" && \
17123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17124 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17125 ac_status=$?
17126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17127 test $ac_status = 0; }; then
17128 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17129 else
17130 pkg_failed=yes
17131 fi
17132 fi
17133 else
17134 pkg_failed=untried
17135 fi
17136
17137
17138
17139 if test $pkg_failed = yes; then
17140
17141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17142 _pkg_short_errors_supported=yes
17143 else
17144 _pkg_short_errors_supported=no
17145 fi
17146 if test $_pkg_short_errors_supported = yes; then
17147 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
17148 else
17149 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
17150 fi
17151 # Put the nasty error message in config.log where it belongs
17152 echo "$LIBFFI_PKG_ERRORS" >&5
17153
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 $as_echo "no" >&6; }
17156
17157 as_fn_error "You need libffi" "$LINENO" 5
17158
17159 elif test $pkg_failed = untried; then
17160
17161 as_fn_error "You need libffi" "$LINENO" 5
17162
17163 else
17164 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17165 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17167 $as_echo "yes" >&6; }
17168
17169
17170 for element in `$PKG_CONFIG --cflags libffi`; do
17171 haveit=
17172 for x in $CXXFLAGS; do
17173
17174 acl_save_prefix="$prefix"
17175 prefix="$acl_final_prefix"
17176 acl_save_exec_prefix="$exec_prefix"
17177 exec_prefix="$acl_final_exec_prefix"
17178 eval x=\"$x\"
17179 exec_prefix="$acl_save_exec_prefix"
17180 prefix="$acl_save_prefix"
17181
17182 if test "X$x" = "X$element"; then
17183 haveit=yes
17184 break
17185 fi
17186 done
17187 if test -z "$haveit"; then
17188 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17189 fi
17190 done
17191
17192
17193 for element in `$PKG_CONFIG --libs libffi`; do
17194 haveit=
17195 for x in $LIBS; do
17196
17197 acl_save_prefix="$prefix"
17198 prefix="$acl_final_prefix"
17199 acl_save_exec_prefix="$exec_prefix"
17200 exec_prefix="$acl_final_exec_prefix"
17201 eval x=\"$x\"
17202 exec_prefix="$acl_save_exec_prefix"
17203 prefix="$acl_save_prefix"
17204
17205 if test "X$x" = "X$element"; then
17206 haveit=yes
17207 break
17208 fi
17209 done
17210 if test -z "$haveit"; then
17211 LIBS="${LIBS}${LIBS:+ }$element"
17212 fi
17213 done
17214
17215
17216 fi
17217 ;; #(
17218 *) :
17219 ;;
17220 esac
17221
17222 fi
17223 ac_ext=mm
17224 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17225 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17226 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17227 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17228
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17230 $as_echo_n "checking if we really have Objective C++... " >&6; }
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233
17234 // This space intentionally left blank
17235
17236 _ACEOF
17237 if ac_fn_objcxx_try_compile "$LINENO"; then :
17238
17239 CY_OBJECTIVEC=1
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 $as_echo "yes" >&6; }
17242
17243 else
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17245 $as_echo "no" >&6; }
17246 fi
17247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248 if test "x$CY_OBJECTIVEC" = x1; then :
17249
17250
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
17252 $as_echo_n "checking for framework CoreFoundation... " >&6; }
17253 if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
17254 $as_echo_n "(cached) " >&6
17255 else
17256
17257 ac_check_framework_save_LIBS=$LIBS
17258 LIBS="-framework CoreFoundation $LIBS"
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261
17262 #include <CoreFoundation/CFBase.h>
17263
17264 int
17265 main ()
17266 {
17267 CFAllocatorGetDefault();
17268 ;
17269 return 0;
17270 }
17271 _ACEOF
17272 if ac_fn_objcxx_try_link "$LINENO"; then :
17273
17274 ac_cv_framework_CoreFoundation=yes
17275
17276 else
17277 ac_cv_framework_CoreFoundation=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 LIBS=$ac_check_framework_save_LIBS
17282
17283 fi
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
17285 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
17286 if test $ac_cv_framework_CoreFoundation = yes; then :
17287
17288
17289 for element in "-framework CoreFoundation $LIBS"; do
17290 haveit=
17291 for x in $LIBS; do
17292
17293 acl_save_prefix="$prefix"
17294 prefix="$acl_final_prefix"
17295 acl_save_exec_prefix="$exec_prefix"
17296 exec_prefix="$acl_final_exec_prefix"
17297 eval x=\"$x\"
17298 exec_prefix="$acl_save_exec_prefix"
17299 prefix="$acl_save_prefix"
17300
17301 if test "X$x" = "X$element"; then
17302 haveit=yes
17303 break
17304 fi
17305 done
17306 if test -z "$haveit"; then
17307 LIBS="${LIBS}${LIBS:+ }$element"
17308 fi
17309 done
17310
17311
17312
17313
17314
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
17316 $as_echo_n "checking for framework Foundation... " >&6; }
17317 if test "${ac_cv_framework_Foundation+set}" = set; then :
17318 $as_echo_n "(cached) " >&6
17319 else
17320
17321 ac_check_framework_save_LIBS=$LIBS
17322 LIBS="-framework Foundation $LIBS"
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325
17326 #include <Foundation/NSObject.h>
17327
17328 int
17329 main ()
17330 {
17331 [[NSObject alloc] init];
17332 ;
17333 return 0;
17334 }
17335 _ACEOF
17336 if ac_fn_objcxx_try_link "$LINENO"; then :
17337
17338 ac_cv_framework_Foundation=yes
17339
17340 else
17341 ac_cv_framework_Foundation=no
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17345 LIBS=$ac_check_framework_save_LIBS
17346
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
17349 $as_echo "$ac_cv_framework_Foundation" >&6; }
17350 if test $ac_cv_framework_Foundation = yes; then :
17351
17352
17353 for element in "-framework Foundation $LIBS"; do
17354 haveit=
17355 for x in $LIBS; do
17356
17357 acl_save_prefix="$prefix"
17358 prefix="$acl_final_prefix"
17359 acl_save_exec_prefix="$exec_prefix"
17360 exec_prefix="$acl_final_exec_prefix"
17361 eval x=\"$x\"
17362 exec_prefix="$acl_save_exec_prefix"
17363 prefix="$acl_save_prefix"
17364
17365 if test "X$x" = "X$element"; then
17366 haveit=yes
17367 break
17368 fi
17369 done
17370 if test -z "$haveit"; then
17371 LIBS="${LIBS}${LIBS:+ }$element"
17372 fi
17373 done
17374
17375 cat >>confdefs.h <<_ACEOF
17376 #define HAVE_FRAMEWORK_FOUNDATION 1
17377 _ACEOF
17378
17379
17380 fi
17381
17382
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
17384 $as_echo_n "checking for framework WebKit... " >&6; }
17385 if test "${ac_cv_framework_WebKit+set}" = set; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388
17389 ac_check_framework_save_LIBS=$LIBS
17390 LIBS="-framework WebKit $LIBS"
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393
17394 #include <WebKit/WebScriptObject.h>
17395
17396 int
17397 main ()
17398 {
17399 [[WebScriptObject alloc] init];
17400 ;
17401 return 0;
17402 }
17403 _ACEOF
17404 if ac_fn_objcxx_try_link "$LINENO"; then :
17405
17406 ac_cv_framework_WebKit=yes
17407
17408 else
17409 ac_cv_framework_WebKit=no
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 LIBS=$ac_check_framework_save_LIBS
17414
17415 fi
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
17417 $as_echo "$ac_cv_framework_WebKit" >&6; }
17418 if test $ac_cv_framework_WebKit = yes; then :
17419
17420
17421 for element in "-framework WebKit $LIBS"; do
17422 haveit=
17423 for x in $LIBS; do
17424
17425 acl_save_prefix="$prefix"
17426 prefix="$acl_final_prefix"
17427 acl_save_exec_prefix="$exec_prefix"
17428 exec_prefix="$acl_final_exec_prefix"
17429 eval x=\"$x\"
17430 exec_prefix="$acl_save_exec_prefix"
17431 prefix="$acl_save_prefix"
17432
17433 if test "X$x" = "X$element"; then
17434 haveit=yes
17435 break
17436 fi
17437 done
17438 if test -z "$haveit"; then
17439 LIBS="${LIBS}${LIBS:+ }$element"
17440 fi
17441 done
17442
17443 cat >>confdefs.h <<_ACEOF
17444 #define HAVE_FRAMEWORK_WEBKIT 1
17445 _ACEOF
17446
17447
17448 fi
17449
17450
17451 else
17452
17453
17454 for ac_prog in gnustep-config
17455 do
17456 # Extract the first word of "$ac_prog", so it can be a program name with args.
17457 set dummy $ac_prog; ac_word=$2
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17459 $as_echo_n "checking for $ac_word... " >&6; }
17460 if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 if test -n "$GNUSTEP_CONFIG"; then
17464 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
17465 else
17466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17467 for as_dir in $PATH
17468 do
17469 IFS=$as_save_IFS
17470 test -z "$as_dir" && as_dir=.
17471 for ac_exec_ext in '' $ac_executable_extensions; do
17472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17473 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
17474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17475 break 2
17476 fi
17477 done
17478 done
17479 IFS=$as_save_IFS
17480
17481 fi
17482 fi
17483 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
17484 if test -n "$GNUSTEP_CONFIG"; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
17486 $as_echo "$GNUSTEP_CONFIG" >&6; }
17487 else
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17489 $as_echo "no" >&6; }
17490 fi
17491
17492
17493 test -n "$GNUSTEP_CONFIG" && break
17494 done
17495
17496 if test "x$GNUSTEP_CONFIG" != x; then :
17497
17498
17499
17500 for element in `$GNUSTEP_CONFIG --objc-flags`; do
17501 haveit=
17502 for x in $OBJCXXFLAGS; do
17503
17504 acl_save_prefix="$prefix"
17505 prefix="$acl_final_prefix"
17506 acl_save_exec_prefix="$exec_prefix"
17507 exec_prefix="$acl_final_exec_prefix"
17508 eval x=\"$x\"
17509 exec_prefix="$acl_save_exec_prefix"
17510 prefix="$acl_save_prefix"
17511
17512 if test "X$x" = "X$element"; then
17513 haveit=yes
17514 break
17515 fi
17516 done
17517 if test -z "$haveit"; then
17518 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17519 fi
17520 done
17521
17522
17523 for element in `$GNUSTEP_CONFIG --base-libs`; do
17524 haveit=
17525 for x in $LIBS; do
17526
17527 acl_save_prefix="$prefix"
17528 prefix="$acl_final_prefix"
17529 acl_save_exec_prefix="$exec_prefix"
17530 exec_prefix="$acl_final_exec_prefix"
17531 eval x=\"$x\"
17532 exec_prefix="$acl_save_exec_prefix"
17533 prefix="$acl_save_prefix"
17534
17535 if test "X$x" = "X$element"; then
17536 haveit=yes
17537 break
17538 fi
17539 done
17540 if test -z "$haveit"; then
17541 LIBS="${LIBS}${LIBS:+ }$element"
17542 fi
17543 done
17544
17545
17546 else
17547 CY_OBJECTIVEC=0
17548
17549 fi
17550
17551 fi
17552
17553 fi
17554 ac_ext=cpp
17555 ac_cpp='$CXXCPP $CPPFLAGS'
17556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17559
17560 ;; #(
17561 *) :
17562 ;;
17563 esac
17564
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
17566 $as_echo_n "checking for a readline compatible library... " >&6; }
17567 if test "${vl_cv_lib_readline+set}" = set; then :
17568 $as_echo_n "(cached) " >&6
17569 else
17570
17571 ORIG_LIBS="$LIBS"
17572 for readline_lib in readline edit editline; do
17573 for termcap_lib in "" termcap curses ncurses; do
17574 if test -z "$termcap_lib"; then
17575 TRY_LIB="-l$readline_lib"
17576 else
17577 TRY_LIB="-l$readline_lib -l$termcap_lib"
17578 fi
17579 LIBS="$ORIG_LIBS $TRY_LIB"
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char readline ();
17590 int
17591 main ()
17592 {
17593 return readline ();
17594 ;
17595 return 0;
17596 }
17597 _ACEOF
17598 if ac_fn_cxx_try_link "$LINENO"; then :
17599 vl_cv_lib_readline="$TRY_LIB"
17600 fi
17601 rm -f core conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603 if test -n "$vl_cv_lib_readline"; then
17604 break
17605 fi
17606 done
17607 if test -n "$vl_cv_lib_readline"; then
17608 break
17609 fi
17610 done
17611 if test -z "$vl_cv_lib_readline"; then
17612 vl_cv_lib_readline="no"
17613 LIBS="$ORIG_LIBS"
17614 fi
17615
17616 fi
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
17618 $as_echo "$vl_cv_lib_readline" >&6; }
17619
17620 if test "$vl_cv_lib_readline" != "no"; then
17621
17622 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17623
17624 for ac_header in readline.h readline/readline.h
17625 do :
17626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17627 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17628 eval as_val=\$$as_ac_Header
17629 if test "x$as_val" = x""yes; then :
17630 cat >>confdefs.h <<_ACEOF
17631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17632 _ACEOF
17633
17634 fi
17635
17636 done
17637
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17639 $as_echo_n "checking whether readline supports history... " >&6; }
17640 if test "${vl_cv_lib_readline_history+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17642 else
17643
17644 vl_cv_lib_readline_history="no"
17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17647
17648 /* Override any GCC internal prototype to avoid an error.
17649 Use char because int might match the return type of a GCC
17650 builtin and then its argument prototype would still apply. */
17651 #ifdef __cplusplus
17652 extern "C"
17653 #endif
17654 char add_history ();
17655 int
17656 main ()
17657 {
17658 return add_history ();
17659 ;
17660 return 0;
17661 }
17662 _ACEOF
17663 if ac_fn_cxx_try_link "$LINENO"; then :
17664 vl_cv_lib_readline_history="yes"
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17668
17669 fi
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
17671 $as_echo "$vl_cv_lib_readline_history" >&6; }
17672 if test "$vl_cv_lib_readline_history" = "yes"; then
17673
17674 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17675
17676 for ac_header in history.h readline/history.h
17677 do :
17678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17679 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17680 eval as_val=\$$as_ac_Header
17681 if test "x$as_val" = x""yes; then :
17682 cat >>confdefs.h <<_ACEOF
17683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17684 _ACEOF
17685
17686 fi
17687
17688 done
17689
17690 fi
17691 fi
17692
17693 case $vl_cv_lib_readline in #(
17694 no) :
17695 as_fn_error "You need readline" "$LINENO" 5 ;; #(
17696 *) :
17697 ;;
17698 esac
17699 ac_ext=c
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705
17706 if test "X$prefix" = "XNONE"; then
17707 acl_final_prefix="$ac_default_prefix"
17708 else
17709 acl_final_prefix="$prefix"
17710 fi
17711 if test "X$exec_prefix" = "XNONE"; then
17712 acl_final_exec_prefix='${prefix}'
17713 else
17714 acl_final_exec_prefix="$exec_prefix"
17715 fi
17716 acl_save_prefix="$prefix"
17717 prefix="$acl_final_prefix"
17718 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17719 prefix="$acl_save_prefix"
17720
17721
17722 # Check whether --with-gnu-ld was given.
17723 if test "${with_gnu_ld+set}" = set; then :
17724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17725 else
17726 with_gnu_ld=no
17727 fi
17728
17729 # Prepare PATH_SEPARATOR.
17730 # The user is always right.
17731 if test "${PATH_SEPARATOR+set}" != set; then
17732 echo "#! /bin/sh" >conf$$.sh
17733 echo "exit 0" >>conf$$.sh
17734 chmod +x conf$$.sh
17735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17736 PATH_SEPARATOR=';'
17737 else
17738 PATH_SEPARATOR=:
17739 fi
17740 rm -f conf$$.sh
17741 fi
17742 ac_prog=ld
17743 if test "$GCC" = yes; then
17744 # Check if gcc -print-prog-name=ld gives a path.
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17746 $as_echo_n "checking for ld used by GCC... " >&6; }
17747 case $host in
17748 *-*-mingw*)
17749 # gcc leaves a trailing carriage return which upsets mingw
17750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17751 *)
17752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17753 esac
17754 case $ac_prog in
17755 # Accept absolute paths.
17756 [\\/]* | [A-Za-z]:[\\/]*)
17757 re_direlt='/[^/][^/]*/\.\./'
17758 # Canonicalize the path of ld
17759 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17760 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17761 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17762 done
17763 test -z "$LD" && LD="$ac_prog"
17764 ;;
17765 "")
17766 # If it fails, then pretend we aren't using GCC.
17767 ac_prog=ld
17768 ;;
17769 *)
17770 # If it is relative, then search for the first ld in PATH.
17771 with_gnu_ld=unknown
17772 ;;
17773 esac
17774 elif test "$with_gnu_ld" = yes; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17776 $as_echo_n "checking for GNU ld... " >&6; }
17777 else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17779 $as_echo_n "checking for non-GNU ld... " >&6; }
17780 fi
17781 if test "${acl_cv_path_LD+set}" = set; then :
17782 $as_echo_n "(cached) " >&6
17783 else
17784 if test -z "$LD"; then
17785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17786 for ac_dir in $PATH; do
17787 test -z "$ac_dir" && ac_dir=.
17788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17789 acl_cv_path_LD="$ac_dir/$ac_prog"
17790 # Check to see if the program is GNU ld. I'd rather use --version,
17791 # but apparently some GNU ld's only accept -v.
17792 # Break only if it was the GNU/non-GNU ld that we prefer.
17793 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17794 *GNU* | *'with BFD'*)
17795 test "$with_gnu_ld" != no && break ;;
17796 *)
17797 test "$with_gnu_ld" != yes && break ;;
17798 esac
17799 fi
17800 done
17801 IFS="$ac_save_ifs"
17802 else
17803 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17804 fi
17805 fi
17806
17807 LD="$acl_cv_path_LD"
17808 if test -n "$LD"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17810 $as_echo "$LD" >&6; }
17811 else
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813 $as_echo "no" >&6; }
17814 fi
17815 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17817 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17818 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17819 $as_echo_n "(cached) " >&6
17820 else
17821 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17822 case `$LD -v 2>&1 </dev/null` in
17823 *GNU* | *'with BFD'*)
17824 acl_cv_prog_gnu_ld=yes ;;
17825 *)
17826 acl_cv_prog_gnu_ld=no ;;
17827 esac
17828 fi
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17830 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17831 with_gnu_ld=$acl_cv_prog_gnu_ld
17832
17833
17834
17835
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17837 $as_echo_n "checking for shared library run path origin... " >&6; }
17838 if test "${acl_cv_rpath+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841
17842 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17843 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17844 . ./conftest.sh
17845 rm -f ./conftest.sh
17846 acl_cv_rpath=done
17847
17848 fi
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17850 $as_echo "$acl_cv_rpath" >&6; }
17851 wl="$acl_cv_wl"
17852 acl_libext="$acl_cv_libext"
17853 acl_shlibext="$acl_cv_shlibext"
17854 acl_libname_spec="$acl_cv_libname_spec"
17855 acl_library_names_spec="$acl_cv_library_names_spec"
17856 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17857 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17858 acl_hardcode_direct="$acl_cv_hardcode_direct"
17859 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17860 # Check whether --enable-rpath was given.
17861 if test "${enable_rpath+set}" = set; then :
17862 enableval=$enable_rpath; :
17863 else
17864 enable_rpath=yes
17865 fi
17866
17867
17868
17869 acl_libdirstem=lib
17870 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17871 if test -n "$searchpath"; then
17872 acl_save_IFS="${IFS= }"; IFS=":"
17873 for searchdir in $searchpath; do
17874 if test -d "$searchdir"; then
17875 case "$searchdir" in
17876 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17877 *) searchdir=`cd "$searchdir" && pwd`
17878 case "$searchdir" in
17879 */lib64 ) acl_libdirstem=lib64 ;;
17880 esac ;;
17881 esac
17882 fi
17883 done
17884 IFS="$acl_save_IFS"
17885 fi
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895 use_additional=yes
17896
17897 acl_save_prefix="$prefix"
17898 prefix="$acl_final_prefix"
17899 acl_save_exec_prefix="$exec_prefix"
17900 exec_prefix="$acl_final_exec_prefix"
17901
17902 eval additional_includedir=\"$includedir\"
17903 eval additional_libdir=\"$libdir\"
17904
17905 exec_prefix="$acl_save_exec_prefix"
17906 prefix="$acl_save_prefix"
17907
17908
17909 # Check whether --with-libiconv-prefix was given.
17910 if test "${with_libiconv_prefix+set}" = set; then :
17911 withval=$with_libiconv_prefix;
17912 if test "X$withval" = "Xno"; then
17913 use_additional=no
17914 else
17915 if test "X$withval" = "X"; then
17916
17917 acl_save_prefix="$prefix"
17918 prefix="$acl_final_prefix"
17919 acl_save_exec_prefix="$exec_prefix"
17920 exec_prefix="$acl_final_exec_prefix"
17921
17922 eval additional_includedir=\"$includedir\"
17923 eval additional_libdir=\"$libdir\"
17924
17925 exec_prefix="$acl_save_exec_prefix"
17926 prefix="$acl_save_prefix"
17927
17928 else
17929 additional_includedir="$withval/include"
17930 additional_libdir="$withval/$acl_libdirstem"
17931 fi
17932 fi
17933
17934 fi
17935
17936 LIBICONV=
17937 LTLIBICONV=
17938 INCICONV=
17939 LIBICONV_PREFIX=
17940 rpathdirs=
17941 ltrpathdirs=
17942 names_already_handled=
17943 names_next_round='iconv '
17944 while test -n "$names_next_round"; do
17945 names_this_round="$names_next_round"
17946 names_next_round=
17947 for name in $names_this_round; do
17948 already_handled=
17949 for n in $names_already_handled; do
17950 if test "$n" = "$name"; then
17951 already_handled=yes
17952 break
17953 fi
17954 done
17955 if test -z "$already_handled"; then
17956 names_already_handled="$names_already_handled $name"
17957 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17958 eval value=\"\$HAVE_LIB$uppername\"
17959 if test -n "$value"; then
17960 if test "$value" = yes; then
17961 eval value=\"\$LIB$uppername\"
17962 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17963 eval value=\"\$LTLIB$uppername\"
17964 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17965 else
17966 :
17967 fi
17968 else
17969 found_dir=
17970 found_la=
17971 found_so=
17972 found_a=
17973 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17974 if test -n "$acl_shlibext"; then
17975 shrext=".$acl_shlibext" # typically: shrext=.so
17976 else
17977 shrext=
17978 fi
17979 if test $use_additional = yes; then
17980 dir="$additional_libdir"
17981 if test -n "$acl_shlibext"; then
17982 if test -f "$dir/$libname$shrext"; then
17983 found_dir="$dir"
17984 found_so="$dir/$libname$shrext"
17985 else
17986 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17987 ver=`(cd "$dir" && \
17988 for f in "$libname$shrext".*; do echo "$f"; done \
17989 | sed -e "s,^$libname$shrext\\\\.,," \
17990 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17991 | sed 1q ) 2>/dev/null`
17992 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17993 found_dir="$dir"
17994 found_so="$dir/$libname$shrext.$ver"
17995 fi
17996 else
17997 eval library_names=\"$acl_library_names_spec\"
17998 for f in $library_names; do
17999 if test -f "$dir/$f"; then
18000 found_dir="$dir"
18001 found_so="$dir/$f"
18002 break
18003 fi
18004 done
18005 fi
18006 fi
18007 fi
18008 if test "X$found_dir" = "X"; then
18009 if test -f "$dir/$libname.$acl_libext"; then
18010 found_dir="$dir"
18011 found_a="$dir/$libname.$acl_libext"
18012 fi
18013 fi
18014 if test "X$found_dir" != "X"; then
18015 if test -f "$dir/$libname.la"; then
18016 found_la="$dir/$libname.la"
18017 fi
18018 fi
18019 fi
18020 if test "X$found_dir" = "X"; then
18021 for x in $LDFLAGS $LTLIBICONV; do
18022
18023 acl_save_prefix="$prefix"
18024 prefix="$acl_final_prefix"
18025 acl_save_exec_prefix="$exec_prefix"
18026 exec_prefix="$acl_final_exec_prefix"
18027 eval x=\"$x\"
18028 exec_prefix="$acl_save_exec_prefix"
18029 prefix="$acl_save_prefix"
18030
18031 case "$x" in
18032 -L*)
18033 dir=`echo "X$x" | sed -e 's/^X-L//'`
18034 if test -n "$acl_shlibext"; then
18035 if test -f "$dir/$libname$shrext"; then
18036 found_dir="$dir"
18037 found_so="$dir/$libname$shrext"
18038 else
18039 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18040 ver=`(cd "$dir" && \
18041 for f in "$libname$shrext".*; do echo "$f"; done \
18042 | sed -e "s,^$libname$shrext\\\\.,," \
18043 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18044 | sed 1q ) 2>/dev/null`
18045 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18046 found_dir="$dir"
18047 found_so="$dir/$libname$shrext.$ver"
18048 fi
18049 else
18050 eval library_names=\"$acl_library_names_spec\"
18051 for f in $library_names; do
18052 if test -f "$dir/$f"; then
18053 found_dir="$dir"
18054 found_so="$dir/$f"
18055 break
18056 fi
18057 done
18058 fi
18059 fi
18060 fi
18061 if test "X$found_dir" = "X"; then
18062 if test -f "$dir/$libname.$acl_libext"; then
18063 found_dir="$dir"
18064 found_a="$dir/$libname.$acl_libext"
18065 fi
18066 fi
18067 if test "X$found_dir" != "X"; then
18068 if test -f "$dir/$libname.la"; then
18069 found_la="$dir/$libname.la"
18070 fi
18071 fi
18072 ;;
18073 esac
18074 if test "X$found_dir" != "X"; then
18075 break
18076 fi
18077 done
18078 fi
18079 if test "X$found_dir" != "X"; then
18080 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18081 if test "X$found_so" != "X"; then
18082 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18083 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18084 else
18085 haveit=
18086 for x in $ltrpathdirs; do
18087 if test "X$x" = "X$found_dir"; then
18088 haveit=yes
18089 break
18090 fi
18091 done
18092 if test -z "$haveit"; then
18093 ltrpathdirs="$ltrpathdirs $found_dir"
18094 fi
18095 if test "$acl_hardcode_direct" = yes; then
18096 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18097 else
18098 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18099 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18100 haveit=
18101 for x in $rpathdirs; do
18102 if test "X$x" = "X$found_dir"; then
18103 haveit=yes
18104 break
18105 fi
18106 done
18107 if test -z "$haveit"; then
18108 rpathdirs="$rpathdirs $found_dir"
18109 fi
18110 else
18111 haveit=
18112 for x in $LDFLAGS $LIBICONV; do
18113
18114 acl_save_prefix="$prefix"
18115 prefix="$acl_final_prefix"
18116 acl_save_exec_prefix="$exec_prefix"
18117 exec_prefix="$acl_final_exec_prefix"
18118 eval x=\"$x\"
18119 exec_prefix="$acl_save_exec_prefix"
18120 prefix="$acl_save_prefix"
18121
18122 if test "X$x" = "X-L$found_dir"; then
18123 haveit=yes
18124 break
18125 fi
18126 done
18127 if test -z "$haveit"; then
18128 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18129 fi
18130 if test "$acl_hardcode_minus_L" != no; then
18131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18132 else
18133 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18134 fi
18135 fi
18136 fi
18137 fi
18138 else
18139 if test "X$found_a" != "X"; then
18140 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18141 else
18142 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18143 fi
18144 fi
18145 additional_includedir=
18146 case "$found_dir" in
18147 */$acl_libdirstem | */$acl_libdirstem/)
18148 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18149 LIBICONV_PREFIX="$basedir"
18150 additional_includedir="$basedir/include"
18151 ;;
18152 esac
18153 if test "X$additional_includedir" != "X"; then
18154 if test "X$additional_includedir" != "X/usr/include"; then
18155 haveit=
18156 if test "X$additional_includedir" = "X/usr/local/include"; then
18157 if test -n "$GCC"; then
18158 case $host_os in
18159 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18160 esac
18161 fi
18162 fi
18163 if test -z "$haveit"; then
18164 for x in $CPPFLAGS $INCICONV; do
18165
18166 acl_save_prefix="$prefix"
18167 prefix="$acl_final_prefix"
18168 acl_save_exec_prefix="$exec_prefix"
18169 exec_prefix="$acl_final_exec_prefix"
18170 eval x=\"$x\"
18171 exec_prefix="$acl_save_exec_prefix"
18172 prefix="$acl_save_prefix"
18173
18174 if test "X$x" = "X-I$additional_includedir"; then
18175 haveit=yes
18176 break
18177 fi
18178 done
18179 if test -z "$haveit"; then
18180 if test -d "$additional_includedir"; then
18181 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18182 fi
18183 fi
18184 fi
18185 fi
18186 fi
18187 if test -n "$found_la"; then
18188 save_libdir="$libdir"
18189 case "$found_la" in
18190 */* | *\\*) . "$found_la" ;;
18191 *) . "./$found_la" ;;
18192 esac
18193 libdir="$save_libdir"
18194 for dep in $dependency_libs; do
18195 case "$dep" in
18196 -L*)
18197 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18198 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18199 haveit=
18200 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18201 if test -n "$GCC"; then
18202 case $host_os in
18203 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18204 esac
18205 fi
18206 fi
18207 if test -z "$haveit"; then
18208 haveit=
18209 for x in $LDFLAGS $LIBICONV; do
18210
18211 acl_save_prefix="$prefix"
18212 prefix="$acl_final_prefix"
18213 acl_save_exec_prefix="$exec_prefix"
18214 exec_prefix="$acl_final_exec_prefix"
18215 eval x=\"$x\"
18216 exec_prefix="$acl_save_exec_prefix"
18217 prefix="$acl_save_prefix"
18218
18219 if test "X$x" = "X-L$additional_libdir"; then
18220 haveit=yes
18221 break
18222 fi
18223 done
18224 if test -z "$haveit"; then
18225 if test -d "$additional_libdir"; then
18226 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18227 fi
18228 fi
18229 haveit=
18230 for x in $LDFLAGS $LTLIBICONV; do
18231
18232 acl_save_prefix="$prefix"
18233 prefix="$acl_final_prefix"
18234 acl_save_exec_prefix="$exec_prefix"
18235 exec_prefix="$acl_final_exec_prefix"
18236 eval x=\"$x\"
18237 exec_prefix="$acl_save_exec_prefix"
18238 prefix="$acl_save_prefix"
18239
18240 if test "X$x" = "X-L$additional_libdir"; then
18241 haveit=yes
18242 break
18243 fi
18244 done
18245 if test -z "$haveit"; then
18246 if test -d "$additional_libdir"; then
18247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18248 fi
18249 fi
18250 fi
18251 fi
18252 ;;
18253 -R*)
18254 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18255 if test "$enable_rpath" != no; then
18256 haveit=
18257 for x in $rpathdirs; do
18258 if test "X$x" = "X$dir"; then
18259 haveit=yes
18260 break
18261 fi
18262 done
18263 if test -z "$haveit"; then
18264 rpathdirs="$rpathdirs $dir"
18265 fi
18266 haveit=
18267 for x in $ltrpathdirs; do
18268 if test "X$x" = "X$dir"; then
18269 haveit=yes
18270 break
18271 fi
18272 done
18273 if test -z "$haveit"; then
18274 ltrpathdirs="$ltrpathdirs $dir"
18275 fi
18276 fi
18277 ;;
18278 -l*)
18279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18280 ;;
18281 *.la)
18282 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18283 ;;
18284 *)
18285 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18287 ;;
18288 esac
18289 done
18290 fi
18291 else
18292 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18293 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18294 fi
18295 fi
18296 fi
18297 done
18298 done
18299 if test "X$rpathdirs" != "X"; then
18300 if test -n "$acl_hardcode_libdir_separator"; then
18301 alldirs=
18302 for found_dir in $rpathdirs; do
18303 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18304 done
18305 acl_save_libdir="$libdir"
18306 libdir="$alldirs"
18307 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18308 libdir="$acl_save_libdir"
18309 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18310 else
18311 for found_dir in $rpathdirs; do
18312 acl_save_libdir="$libdir"
18313 libdir="$found_dir"
18314 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18315 libdir="$acl_save_libdir"
18316 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18317 done
18318 fi
18319 fi
18320 if test "X$ltrpathdirs" != "X"; then
18321 for found_dir in $ltrpathdirs; do
18322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18323 done
18324 fi
18325
18326
18327
18328
18329
18330
18331
18332 am_save_CPPFLAGS="$CPPFLAGS"
18333
18334 for element in $INCICONV; do
18335 haveit=
18336 for x in $CPPFLAGS; do
18337
18338 acl_save_prefix="$prefix"
18339 prefix="$acl_final_prefix"
18340 acl_save_exec_prefix="$exec_prefix"
18341 exec_prefix="$acl_final_exec_prefix"
18342 eval x=\"$x\"
18343 exec_prefix="$acl_save_exec_prefix"
18344 prefix="$acl_save_prefix"
18345
18346 if test "X$x" = "X$element"; then
18347 haveit=yes
18348 break
18349 fi
18350 done
18351 if test -z "$haveit"; then
18352 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18353 fi
18354 done
18355
18356
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18358 $as_echo_n "checking for iconv... " >&6; }
18359 if test "${am_cv_func_iconv+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362
18363 am_cv_func_iconv="no, consider installing GNU libiconv"
18364 am_cv_lib_iconv=no
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 #include <stdlib.h>
18368 #include <iconv.h>
18369 int
18370 main ()
18371 {
18372 iconv_t cd = iconv_open("","");
18373 iconv(cd,NULL,NULL,NULL,NULL);
18374 iconv_close(cd);
18375 ;
18376 return 0;
18377 }
18378 _ACEOF
18379 if ac_fn_c_try_link "$LINENO"; then :
18380 am_cv_func_iconv=yes
18381 fi
18382 rm -f core conftest.err conftest.$ac_objext \
18383 conftest$ac_exeext conftest.$ac_ext
18384 if test "$am_cv_func_iconv" != yes; then
18385 am_save_LIBS="$LIBS"
18386 LIBS="$LIBS $LIBICONV"
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18389 #include <stdlib.h>
18390 #include <iconv.h>
18391 int
18392 main ()
18393 {
18394 iconv_t cd = iconv_open("","");
18395 iconv(cd,NULL,NULL,NULL,NULL);
18396 iconv_close(cd);
18397 ;
18398 return 0;
18399 }
18400 _ACEOF
18401 if ac_fn_c_try_link "$LINENO"; then :
18402 am_cv_lib_iconv=yes
18403 am_cv_func_iconv=yes
18404 fi
18405 rm -f core conftest.err conftest.$ac_objext \
18406 conftest$ac_exeext conftest.$ac_ext
18407 LIBS="$am_save_LIBS"
18408 fi
18409
18410 fi
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18412 $as_echo "$am_cv_func_iconv" >&6; }
18413 if test "$am_cv_func_iconv" = yes; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18415 $as_echo_n "checking for working iconv... " >&6; }
18416 if test "${am_cv_func_iconv_works+set}" = set; then :
18417 $as_echo_n "(cached) " >&6
18418 else
18419
18420 am_save_LIBS="$LIBS"
18421 if test $am_cv_lib_iconv = yes; then
18422 LIBS="$LIBS $LIBICONV"
18423 fi
18424 if test "$cross_compiling" = yes; then :
18425 case "$host_os" in
18426 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18427 *) am_cv_func_iconv_works="guessing yes" ;;
18428 esac
18429 else
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432
18433 #include <iconv.h>
18434 #include <string.h>
18435 int main ()
18436 {
18437 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18438 returns. */
18439 {
18440 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18441 if (cd_utf8_to_88591 != (iconv_t)(-1))
18442 {
18443 static const char input[] = "\342\202\254"; /* EURO SIGN */
18444 char buf[10];
18445 const char *inptr = input;
18446 size_t inbytesleft = strlen (input);
18447 char *outptr = buf;
18448 size_t outbytesleft = sizeof (buf);
18449 size_t res = iconv (cd_utf8_to_88591,
18450 (char **) &inptr, &inbytesleft,
18451 &outptr, &outbytesleft);
18452 if (res == 0)
18453 return 1;
18454 }
18455 }
18456 #if 0 /* This bug could be worked around by the caller. */
18457 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18458 {
18459 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18460 if (cd_88591_to_utf8 != (iconv_t)(-1))
18461 {
18462 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18463 char buf[50];
18464 const char *inptr = input;
18465 size_t inbytesleft = strlen (input);
18466 char *outptr = buf;
18467 size_t outbytesleft = sizeof (buf);
18468 size_t res = iconv (cd_88591_to_utf8,
18469 (char **) &inptr, &inbytesleft,
18470 &outptr, &outbytesleft);
18471 if ((int)res > 0)
18472 return 1;
18473 }
18474 }
18475 #endif
18476 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18477 provided. */
18478 if (/* Try standardized names. */
18479 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18480 /* Try IRIX, OSF/1 names. */
18481 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18482 /* Try AIX names. */
18483 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18484 /* Try HP-UX names. */
18485 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18486 return 1;
18487 return 0;
18488 }
18489 _ACEOF
18490 if ac_fn_c_try_run "$LINENO"; then :
18491 am_cv_func_iconv_works=yes
18492 else
18493 am_cv_func_iconv_works=no
18494 fi
18495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18496 conftest.$ac_objext conftest.beam conftest.$ac_ext
18497 fi
18498
18499 LIBS="$am_save_LIBS"
18500
18501 fi
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18503 $as_echo "$am_cv_func_iconv_works" >&6; }
18504 case "$am_cv_func_iconv_works" in
18505 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18506 *) am_func_iconv=yes ;;
18507 esac
18508 else
18509 am_func_iconv=no am_cv_lib_iconv=no
18510 fi
18511 if test "$am_func_iconv" = yes; then
18512
18513 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18514
18515 fi
18516 if test "$am_cv_lib_iconv" = yes; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18518 $as_echo_n "checking how to link with libiconv... " >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18520 $as_echo "$LIBICONV" >&6; }
18521 else
18522 CPPFLAGS="$am_save_CPPFLAGS"
18523 LIBICONV=
18524 LTLIBICONV=
18525 fi
18526
18527
18528
18529 if test "$am_cv_func_iconv" = yes; then
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18531 $as_echo_n "checking for iconv declaration... " >&6; }
18532 if test "${am_cv_proto_iconv+set}" = set; then :
18533 $as_echo_n "(cached) " >&6
18534 else
18535
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18538
18539 #include <stdlib.h>
18540 #include <iconv.h>
18541 extern
18542 #ifdef __cplusplus
18543 "C"
18544 #endif
18545 #if defined(__STDC__) || defined(__cplusplus)
18546 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18547 #else
18548 size_t iconv();
18549 #endif
18550
18551 int
18552 main ()
18553 {
18554
18555 ;
18556 return 0;
18557 }
18558 _ACEOF
18559 if ac_fn_c_try_compile "$LINENO"; then :
18560 am_cv_proto_iconv_arg1=""
18561 else
18562 am_cv_proto_iconv_arg1="const"
18563 fi
18564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565 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);"
18566 fi
18567
18568 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18570 }$am_cv_proto_iconv" >&5
18571 $as_echo "${ac_t:-
18572 }$am_cv_proto_iconv" >&6; }
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define ICONV_CONST $am_cv_proto_iconv_arg1
18576 _ACEOF
18577
18578 fi
18579
18580 case $am_cv_func_iconv in #(
18581 yes) :
18582 ;; #(
18583 *) :
18584
18585 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
18586 case $cy_iconv_prefix_arg in #(
18587 -I*) :
18588
18589
18590 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
18591 haveit=
18592 for x in $cy_iconv_prefixes; do
18593
18594 acl_save_prefix="$prefix"
18595 prefix="$acl_final_prefix"
18596 acl_save_exec_prefix="$exec_prefix"
18597 exec_prefix="$acl_final_exec_prefix"
18598 eval x=\"$x\"
18599 exec_prefix="$acl_save_exec_prefix"
18600 prefix="$acl_save_prefix"
18601
18602 if test "X$x" = "X$element"; then
18603 haveit=yes
18604 break
18605 fi
18606 done
18607 if test -z "$haveit"; then
18608 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18609 fi
18610 done
18611
18612 ;; #(
18613 -L*) :
18614
18615
18616 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
18617 haveit=
18618 for x in $cy_iconv_prefixes; do
18619
18620 acl_save_prefix="$prefix"
18621 prefix="$acl_final_prefix"
18622 acl_save_exec_prefix="$exec_prefix"
18623 exec_prefix="$acl_final_exec_prefix"
18624 eval x=\"$x\"
18625 exec_prefix="$acl_save_exec_prefix"
18626 prefix="$acl_save_prefix"
18627
18628 if test "X$x" = "X$element"; then
18629 haveit=yes
18630 break
18631 fi
18632 done
18633 if test -z "$haveit"; then
18634 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18635 fi
18636 done
18637
18638 ;; #(
18639 *) :
18640 ;;
18641 esac
18642 done
18643 for with_libiconv_prefix in $cy_iconv_prefixes; do
18644 { am_cv_func_iconv=; unset am_cv_func_iconv;}
18645
18646
18647
18648
18649
18650
18651
18652
18653 use_additional=yes
18654
18655 acl_save_prefix="$prefix"
18656 prefix="$acl_final_prefix"
18657 acl_save_exec_prefix="$exec_prefix"
18658 exec_prefix="$acl_final_exec_prefix"
18659
18660 eval additional_includedir=\"$includedir\"
18661 eval additional_libdir=\"$libdir\"
18662
18663 exec_prefix="$acl_save_exec_prefix"
18664 prefix="$acl_save_prefix"
18665
18666
18667 # Check whether --with-libiconv-prefix was given.
18668 if test "${with_libiconv_prefix+set}" = set; then :
18669 withval=$with_libiconv_prefix;
18670 if test "X$withval" = "Xno"; then
18671 use_additional=no
18672 else
18673 if test "X$withval" = "X"; then
18674
18675 acl_save_prefix="$prefix"
18676 prefix="$acl_final_prefix"
18677 acl_save_exec_prefix="$exec_prefix"
18678 exec_prefix="$acl_final_exec_prefix"
18679
18680 eval additional_includedir=\"$includedir\"
18681 eval additional_libdir=\"$libdir\"
18682
18683 exec_prefix="$acl_save_exec_prefix"
18684 prefix="$acl_save_prefix"
18685
18686 else
18687 additional_includedir="$withval/include"
18688 additional_libdir="$withval/$acl_libdirstem"
18689 fi
18690 fi
18691
18692 fi
18693
18694 LIBICONV=
18695 LTLIBICONV=
18696 INCICONV=
18697 LIBICONV_PREFIX=
18698 rpathdirs=
18699 ltrpathdirs=
18700 names_already_handled=
18701 names_next_round='iconv '
18702 while test -n "$names_next_round"; do
18703 names_this_round="$names_next_round"
18704 names_next_round=
18705 for name in $names_this_round; do
18706 already_handled=
18707 for n in $names_already_handled; do
18708 if test "$n" = "$name"; then
18709 already_handled=yes
18710 break
18711 fi
18712 done
18713 if test -z "$already_handled"; then
18714 names_already_handled="$names_already_handled $name"
18715 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18716 eval value=\"\$HAVE_LIB$uppername\"
18717 if test -n "$value"; then
18718 if test "$value" = yes; then
18719 eval value=\"\$LIB$uppername\"
18720 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18721 eval value=\"\$LTLIB$uppername\"
18722 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18723 else
18724 :
18725 fi
18726 else
18727 found_dir=
18728 found_la=
18729 found_so=
18730 found_a=
18731 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18732 if test -n "$acl_shlibext"; then
18733 shrext=".$acl_shlibext" # typically: shrext=.so
18734 else
18735 shrext=
18736 fi
18737 if test $use_additional = yes; then
18738 dir="$additional_libdir"
18739 if test -n "$acl_shlibext"; then
18740 if test -f "$dir/$libname$shrext"; then
18741 found_dir="$dir"
18742 found_so="$dir/$libname$shrext"
18743 else
18744 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18745 ver=`(cd "$dir" && \
18746 for f in "$libname$shrext".*; do echo "$f"; done \
18747 | sed -e "s,^$libname$shrext\\\\.,," \
18748 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18749 | sed 1q ) 2>/dev/null`
18750 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18751 found_dir="$dir"
18752 found_so="$dir/$libname$shrext.$ver"
18753 fi
18754 else
18755 eval library_names=\"$acl_library_names_spec\"
18756 for f in $library_names; do
18757 if test -f "$dir/$f"; then
18758 found_dir="$dir"
18759 found_so="$dir/$f"
18760 break
18761 fi
18762 done
18763 fi
18764 fi
18765 fi
18766 if test "X$found_dir" = "X"; then
18767 if test -f "$dir/$libname.$acl_libext"; then
18768 found_dir="$dir"
18769 found_a="$dir/$libname.$acl_libext"
18770 fi
18771 fi
18772 if test "X$found_dir" != "X"; then
18773 if test -f "$dir/$libname.la"; then
18774 found_la="$dir/$libname.la"
18775 fi
18776 fi
18777 fi
18778 if test "X$found_dir" = "X"; then
18779 for x in $LDFLAGS $LTLIBICONV; do
18780
18781 acl_save_prefix="$prefix"
18782 prefix="$acl_final_prefix"
18783 acl_save_exec_prefix="$exec_prefix"
18784 exec_prefix="$acl_final_exec_prefix"
18785 eval x=\"$x\"
18786 exec_prefix="$acl_save_exec_prefix"
18787 prefix="$acl_save_prefix"
18788
18789 case "$x" in
18790 -L*)
18791 dir=`echo "X$x" | sed -e 's/^X-L//'`
18792 if test -n "$acl_shlibext"; then
18793 if test -f "$dir/$libname$shrext"; then
18794 found_dir="$dir"
18795 found_so="$dir/$libname$shrext"
18796 else
18797 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18798 ver=`(cd "$dir" && \
18799 for f in "$libname$shrext".*; do echo "$f"; done \
18800 | sed -e "s,^$libname$shrext\\\\.,," \
18801 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18802 | sed 1q ) 2>/dev/null`
18803 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18804 found_dir="$dir"
18805 found_so="$dir/$libname$shrext.$ver"
18806 fi
18807 else
18808 eval library_names=\"$acl_library_names_spec\"
18809 for f in $library_names; do
18810 if test -f "$dir/$f"; then
18811 found_dir="$dir"
18812 found_so="$dir/$f"
18813 break
18814 fi
18815 done
18816 fi
18817 fi
18818 fi
18819 if test "X$found_dir" = "X"; then
18820 if test -f "$dir/$libname.$acl_libext"; then
18821 found_dir="$dir"
18822 found_a="$dir/$libname.$acl_libext"
18823 fi
18824 fi
18825 if test "X$found_dir" != "X"; then
18826 if test -f "$dir/$libname.la"; then
18827 found_la="$dir/$libname.la"
18828 fi
18829 fi
18830 ;;
18831 esac
18832 if test "X$found_dir" != "X"; then
18833 break
18834 fi
18835 done
18836 fi
18837 if test "X$found_dir" != "X"; then
18838 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18839 if test "X$found_so" != "X"; then
18840 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
18841 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18842 else
18843 haveit=
18844 for x in $ltrpathdirs; do
18845 if test "X$x" = "X$found_dir"; then
18846 haveit=yes
18847 break
18848 fi
18849 done
18850 if test -z "$haveit"; then
18851 ltrpathdirs="$ltrpathdirs $found_dir"
18852 fi
18853 if test "$acl_hardcode_direct" = yes; then
18854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18855 else
18856 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18858 haveit=
18859 for x in $rpathdirs; do
18860 if test "X$x" = "X$found_dir"; then
18861 haveit=yes
18862 break
18863 fi
18864 done
18865 if test -z "$haveit"; then
18866 rpathdirs="$rpathdirs $found_dir"
18867 fi
18868 else
18869 haveit=
18870 for x in $LDFLAGS $LIBICONV; do
18871
18872 acl_save_prefix="$prefix"
18873 prefix="$acl_final_prefix"
18874 acl_save_exec_prefix="$exec_prefix"
18875 exec_prefix="$acl_final_exec_prefix"
18876 eval x=\"$x\"
18877 exec_prefix="$acl_save_exec_prefix"
18878 prefix="$acl_save_prefix"
18879
18880 if test "X$x" = "X-L$found_dir"; then
18881 haveit=yes
18882 break
18883 fi
18884 done
18885 if test -z "$haveit"; then
18886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18887 fi
18888 if test "$acl_hardcode_minus_L" != no; then
18889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18890 else
18891 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18892 fi
18893 fi
18894 fi
18895 fi
18896 else
18897 if test "X$found_a" != "X"; then
18898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18899 else
18900 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18901 fi
18902 fi
18903 additional_includedir=
18904 case "$found_dir" in
18905 */$acl_libdirstem | */$acl_libdirstem/)
18906 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18907 LIBICONV_PREFIX="$basedir"
18908 additional_includedir="$basedir/include"
18909 ;;
18910 esac
18911 if test "X$additional_includedir" != "X"; then
18912 if test "X$additional_includedir" != "X/usr/include"; then
18913 haveit=
18914 if test "X$additional_includedir" = "X/usr/local/include"; then
18915 if test -n "$GCC"; then
18916 case $host_os in
18917 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18918 esac
18919 fi
18920 fi
18921 if test -z "$haveit"; then
18922 for x in $CPPFLAGS $INCICONV; do
18923
18924 acl_save_prefix="$prefix"
18925 prefix="$acl_final_prefix"
18926 acl_save_exec_prefix="$exec_prefix"
18927 exec_prefix="$acl_final_exec_prefix"
18928 eval x=\"$x\"
18929 exec_prefix="$acl_save_exec_prefix"
18930 prefix="$acl_save_prefix"
18931
18932 if test "X$x" = "X-I$additional_includedir"; then
18933 haveit=yes
18934 break
18935 fi
18936 done
18937 if test -z "$haveit"; then
18938 if test -d "$additional_includedir"; then
18939 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18940 fi
18941 fi
18942 fi
18943 fi
18944 fi
18945 if test -n "$found_la"; then
18946 save_libdir="$libdir"
18947 case "$found_la" in
18948 */* | *\\*) . "$found_la" ;;
18949 *) . "./$found_la" ;;
18950 esac
18951 libdir="$save_libdir"
18952 for dep in $dependency_libs; do
18953 case "$dep" in
18954 -L*)
18955 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18956 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
18957 haveit=
18958 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
18959 if test -n "$GCC"; then
18960 case $host_os in
18961 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18962 esac
18963 fi
18964 fi
18965 if test -z "$haveit"; then
18966 haveit=
18967 for x in $LDFLAGS $LIBICONV; do
18968
18969 acl_save_prefix="$prefix"
18970 prefix="$acl_final_prefix"
18971 acl_save_exec_prefix="$exec_prefix"
18972 exec_prefix="$acl_final_exec_prefix"
18973 eval x=\"$x\"
18974 exec_prefix="$acl_save_exec_prefix"
18975 prefix="$acl_save_prefix"
18976
18977 if test "X$x" = "X-L$additional_libdir"; then
18978 haveit=yes
18979 break
18980 fi
18981 done
18982 if test -z "$haveit"; then
18983 if test -d "$additional_libdir"; then
18984 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18985 fi
18986 fi
18987 haveit=
18988 for x in $LDFLAGS $LTLIBICONV; do
18989
18990 acl_save_prefix="$prefix"
18991 prefix="$acl_final_prefix"
18992 acl_save_exec_prefix="$exec_prefix"
18993 exec_prefix="$acl_final_exec_prefix"
18994 eval x=\"$x\"
18995 exec_prefix="$acl_save_exec_prefix"
18996 prefix="$acl_save_prefix"
18997
18998 if test "X$x" = "X-L$additional_libdir"; then
18999 haveit=yes
19000 break
19001 fi
19002 done
19003 if test -z "$haveit"; then
19004 if test -d "$additional_libdir"; then
19005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19006 fi
19007 fi
19008 fi
19009 fi
19010 ;;
19011 -R*)
19012 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19013 if test "$enable_rpath" != no; then
19014 haveit=
19015 for x in $rpathdirs; do
19016 if test "X$x" = "X$dir"; then
19017 haveit=yes
19018 break
19019 fi
19020 done
19021 if test -z "$haveit"; then
19022 rpathdirs="$rpathdirs $dir"
19023 fi
19024 haveit=
19025 for x in $ltrpathdirs; do
19026 if test "X$x" = "X$dir"; then
19027 haveit=yes
19028 break
19029 fi
19030 done
19031 if test -z "$haveit"; then
19032 ltrpathdirs="$ltrpathdirs $dir"
19033 fi
19034 fi
19035 ;;
19036 -l*)
19037 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19038 ;;
19039 *.la)
19040 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19041 ;;
19042 *)
19043 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19045 ;;
19046 esac
19047 done
19048 fi
19049 else
19050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19052 fi
19053 fi
19054 fi
19055 done
19056 done
19057 if test "X$rpathdirs" != "X"; then
19058 if test -n "$acl_hardcode_libdir_separator"; then
19059 alldirs=
19060 for found_dir in $rpathdirs; do
19061 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19062 done
19063 acl_save_libdir="$libdir"
19064 libdir="$alldirs"
19065 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19066 libdir="$acl_save_libdir"
19067 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19068 else
19069 for found_dir in $rpathdirs; do
19070 acl_save_libdir="$libdir"
19071 libdir="$found_dir"
19072 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19073 libdir="$acl_save_libdir"
19074 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19075 done
19076 fi
19077 fi
19078 if test "X$ltrpathdirs" != "X"; then
19079 for found_dir in $ltrpathdirs; do
19080 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19081 done
19082 fi
19083
19084
19085
19086
19087
19088
19089
19090 am_save_CPPFLAGS="$CPPFLAGS"
19091
19092 for element in $INCICONV; do
19093 haveit=
19094 for x in $CPPFLAGS; do
19095
19096 acl_save_prefix="$prefix"
19097 prefix="$acl_final_prefix"
19098 acl_save_exec_prefix="$exec_prefix"
19099 exec_prefix="$acl_final_exec_prefix"
19100 eval x=\"$x\"
19101 exec_prefix="$acl_save_exec_prefix"
19102 prefix="$acl_save_prefix"
19103
19104 if test "X$x" = "X$element"; then
19105 haveit=yes
19106 break
19107 fi
19108 done
19109 if test -z "$haveit"; then
19110 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19111 fi
19112 done
19113
19114
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19116 $as_echo_n "checking for iconv... " >&6; }
19117 if test "${am_cv_func_iconv+set}" = set; then :
19118 $as_echo_n "(cached) " >&6
19119 else
19120
19121 am_cv_func_iconv="no, consider installing GNU libiconv"
19122 am_cv_lib_iconv=no
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19125 #include <stdlib.h>
19126 #include <iconv.h>
19127 int
19128 main ()
19129 {
19130 iconv_t cd = iconv_open("","");
19131 iconv(cd,NULL,NULL,NULL,NULL);
19132 iconv_close(cd);
19133 ;
19134 return 0;
19135 }
19136 _ACEOF
19137 if ac_fn_c_try_link "$LINENO"; then :
19138 am_cv_func_iconv=yes
19139 fi
19140 rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142 if test "$am_cv_func_iconv" != yes; then
19143 am_save_LIBS="$LIBS"
19144 LIBS="$LIBS $LIBICONV"
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19147 #include <stdlib.h>
19148 #include <iconv.h>
19149 int
19150 main ()
19151 {
19152 iconv_t cd = iconv_open("","");
19153 iconv(cd,NULL,NULL,NULL,NULL);
19154 iconv_close(cd);
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 if ac_fn_c_try_link "$LINENO"; then :
19160 am_cv_lib_iconv=yes
19161 am_cv_func_iconv=yes
19162 fi
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS="$am_save_LIBS"
19166 fi
19167
19168 fi
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19170 $as_echo "$am_cv_func_iconv" >&6; }
19171 if test "$am_cv_func_iconv" = yes; then
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19173 $as_echo_n "checking for working iconv... " >&6; }
19174 if test "${am_cv_func_iconv_works+set}" = set; then :
19175 $as_echo_n "(cached) " >&6
19176 else
19177
19178 am_save_LIBS="$LIBS"
19179 if test $am_cv_lib_iconv = yes; then
19180 LIBS="$LIBS $LIBICONV"
19181 fi
19182 if test "$cross_compiling" = yes; then :
19183 case "$host_os" in
19184 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19185 *) am_cv_func_iconv_works="guessing yes" ;;
19186 esac
19187 else
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19190
19191 #include <iconv.h>
19192 #include <string.h>
19193 int main ()
19194 {
19195 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19196 returns. */
19197 {
19198 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19199 if (cd_utf8_to_88591 != (iconv_t)(-1))
19200 {
19201 static const char input[] = "\342\202\254"; /* EURO SIGN */
19202 char buf[10];
19203 const char *inptr = input;
19204 size_t inbytesleft = strlen (input);
19205 char *outptr = buf;
19206 size_t outbytesleft = sizeof (buf);
19207 size_t res = iconv (cd_utf8_to_88591,
19208 (char **) &inptr, &inbytesleft,
19209 &outptr, &outbytesleft);
19210 if (res == 0)
19211 return 1;
19212 }
19213 }
19214 #if 0 /* This bug could be worked around by the caller. */
19215 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19216 {
19217 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19218 if (cd_88591_to_utf8 != (iconv_t)(-1))
19219 {
19220 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19221 char buf[50];
19222 const char *inptr = input;
19223 size_t inbytesleft = strlen (input);
19224 char *outptr = buf;
19225 size_t outbytesleft = sizeof (buf);
19226 size_t res = iconv (cd_88591_to_utf8,
19227 (char **) &inptr, &inbytesleft,
19228 &outptr, &outbytesleft);
19229 if ((int)res > 0)
19230 return 1;
19231 }
19232 }
19233 #endif
19234 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19235 provided. */
19236 if (/* Try standardized names. */
19237 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19238 /* Try IRIX, OSF/1 names. */
19239 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19240 /* Try AIX names. */
19241 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19242 /* Try HP-UX names. */
19243 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19244 return 1;
19245 return 0;
19246 }
19247 _ACEOF
19248 if ac_fn_c_try_run "$LINENO"; then :
19249 am_cv_func_iconv_works=yes
19250 else
19251 am_cv_func_iconv_works=no
19252 fi
19253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19254 conftest.$ac_objext conftest.beam conftest.$ac_ext
19255 fi
19256
19257 LIBS="$am_save_LIBS"
19258
19259 fi
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19261 $as_echo "$am_cv_func_iconv_works" >&6; }
19262 case "$am_cv_func_iconv_works" in
19263 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19264 *) am_func_iconv=yes ;;
19265 esac
19266 else
19267 am_func_iconv=no am_cv_lib_iconv=no
19268 fi
19269 if test "$am_func_iconv" = yes; then
19270
19271 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19272
19273 fi
19274 if test "$am_cv_lib_iconv" = yes; then
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19276 $as_echo_n "checking how to link with libiconv... " >&6; }
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19278 $as_echo "$LIBICONV" >&6; }
19279 else
19280 CPPFLAGS="$am_save_CPPFLAGS"
19281 LIBICONV=
19282 LTLIBICONV=
19283 fi
19284
19285
19286
19287 if test "$am_cv_func_iconv" = yes; then
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19289 $as_echo_n "checking for iconv declaration... " >&6; }
19290 if test "${am_cv_proto_iconv+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19292 else
19293
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296
19297 #include <stdlib.h>
19298 #include <iconv.h>
19299 extern
19300 #ifdef __cplusplus
19301 "C"
19302 #endif
19303 #if defined(__STDC__) || defined(__cplusplus)
19304 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19305 #else
19306 size_t iconv();
19307 #endif
19308
19309 int
19310 main ()
19311 {
19312
19313 ;
19314 return 0;
19315 }
19316 _ACEOF
19317 if ac_fn_c_try_compile "$LINENO"; then :
19318 am_cv_proto_iconv_arg1=""
19319 else
19320 am_cv_proto_iconv_arg1="const"
19321 fi
19322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 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);"
19324 fi
19325
19326 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19328 }$am_cv_proto_iconv" >&5
19329 $as_echo "${ac_t:-
19330 }$am_cv_proto_iconv" >&6; }
19331
19332 cat >>confdefs.h <<_ACEOF
19333 #define ICONV_CONST $am_cv_proto_iconv_arg1
19334 _ACEOF
19335
19336 fi
19337
19338 done
19339 ;;
19340 esac
19341 case $am_cv_func_iconv in #(
19342 yes) :
19343 ;; #(
19344 *) :
19345 as_fn_error "You need iconv" "$LINENO" 5 ;;
19346 esac
19347 ac_ext=cpp
19348 ac_cpp='$CXXCPP $CPPFLAGS'
19349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19352
19353 if test "x$CY_OBJECTIVEC" = x1; then :
19354
19355 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19356 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19357
19358 case $OTOOL in #(
19359 :) :
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5
19361 $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #(
19362 *) :
19363 CY_OBJECTIVEC_MACH=1
19364 ;;
19365 esac
19366
19367 fi
19368
19369
19370
19371 fi
19372 if test "x$GMAKE" != xmake; then :
19373
19374 ac_config_files="$ac_config_files Makefile"
19375
19376
19377 fi
19378 ac_config_files="$ac_config_files GNUmakefile"
19379
19380 cat >confcache <<\_ACEOF
19381 # This file is a shell script that caches the results of configure
19382 # tests run on this system so they can be shared between configure
19383 # scripts and configure runs, see configure's option --config-cache.
19384 # It is not useful on other systems. If it contains results you don't
19385 # want to keep, you may remove or edit it.
19386 #
19387 # config.status only pays attention to the cache file if you give it
19388 # the --recheck option to rerun configure.
19389 #
19390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19392 # following values.
19393
19394 _ACEOF
19395
19396 # The following way of writing the cache mishandles newlines in values,
19397 # but we know of no workaround that is simple, portable, and efficient.
19398 # So, we kill variables containing newlines.
19399 # Ultrix sh set writes to stderr and can't be redirected directly,
19400 # and sets the high bit in the cache file unless we assign to the vars.
19401 (
19402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19403 eval ac_val=\$$ac_var
19404 case $ac_val in #(
19405 *${as_nl}*)
19406 case $ac_var in #(
19407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19409 esac
19410 case $ac_var in #(
19411 _ | IFS | as_nl) ;; #(
19412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19413 *) { eval $ac_var=; unset $ac_var;} ;;
19414 esac ;;
19415 esac
19416 done
19417
19418 (set) 2>&1 |
19419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19420 *${as_nl}ac_space=\ *)
19421 # `set' does not quote correctly, so add quotes: double-quote
19422 # substitution turns \\\\ into \\, and sed turns \\ into \.
19423 sed -n \
19424 "s/'/'\\\\''/g;
19425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19426 ;; #(
19427 *)
19428 # `set' quotes correctly as required by POSIX, so do not add quotes.
19429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19430 ;;
19431 esac |
19432 sort
19433 ) |
19434 sed '
19435 /^ac_cv_env_/b end
19436 t clear
19437 :clear
19438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19439 t end
19440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19441 :end' >>confcache
19442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19443 if test -w "$cache_file"; then
19444 test "x$cache_file" != "x/dev/null" &&
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19446 $as_echo "$as_me: updating cache $cache_file" >&6;}
19447 cat confcache >$cache_file
19448 else
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19450 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19451 fi
19452 fi
19453 rm -f confcache
19454
19455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19456 # Let make expand exec_prefix.
19457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19458
19459 # Transform confdefs.h into DEFS.
19460 # Protect against shell expansion while executing Makefile rules.
19461 # Protect against Makefile macro expansion.
19462 #
19463 # If the first sed substitution is executed (which looks for macros that
19464 # take arguments), then branch to the quote section. Otherwise,
19465 # look for a macro that doesn't take arguments.
19466 ac_script='
19467 :mline
19468 /\\$/{
19469 N
19470 s,\\\n,,
19471 b mline
19472 }
19473 t clear
19474 :clear
19475 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19476 t quote
19477 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19478 t quote
19479 b any
19480 :quote
19481 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19482 s/\[/\\&/g
19483 s/\]/\\&/g
19484 s/\$/$$/g
19485 H
19486 :any
19487 ${
19488 g
19489 s/^\n//
19490 s/\n/ /g
19491 p
19492 }
19493 '
19494 DEFS=`sed -n "$ac_script" confdefs.h`
19495
19496
19497 ac_libobjs=
19498 ac_ltlibobjs=
19499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19500 # 1. Remove the extension, and $U if already installed.
19501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19504 # will be set to the directory where LIBOBJS objects are built.
19505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19507 done
19508 LIBOBJS=$ac_libobjs
19509
19510 LTLIBOBJS=$ac_ltlibobjs
19511
19512
19513
19514 : ${CONFIG_STATUS=./config.status}
19515 ac_write_fail=0
19516 ac_clean_files_save=$ac_clean_files
19517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19519 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19520 as_write_fail=0
19521 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19522 #! $SHELL
19523 # Generated by $as_me.
19524 # Run this file to recreate the current configuration.
19525 # Compiler output produced by configure, useful for debugging
19526 # configure, is in config.log if it exists.
19527
19528 debug=false
19529 ac_cs_recheck=false
19530 ac_cs_silent=false
19531
19532 SHELL=\${CONFIG_SHELL-$SHELL}
19533 export SHELL
19534 _ASEOF
19535 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19536 ## -------------------- ##
19537 ## M4sh Initialization. ##
19538 ## -------------------- ##
19539
19540 # Be more Bourne compatible
19541 DUALCASE=1; export DUALCASE # for MKS sh
19542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19543 emulate sh
19544 NULLCMD=:
19545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19546 # is contrary to our usage. Disable this feature.
19547 alias -g '${1+"$@"}'='"$@"'
19548 setopt NO_GLOB_SUBST
19549 else
19550 case `(set -o) 2>/dev/null` in #(
19551 *posix*) :
19552 set -o posix ;; #(
19553 *) :
19554 ;;
19555 esac
19556 fi
19557
19558
19559 as_nl='
19560 '
19561 export as_nl
19562 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19563 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19566 # Prefer a ksh shell builtin over an external printf program on Solaris,
19567 # but without wasting forks for bash or zsh.
19568 if test -z "$BASH_VERSION$ZSH_VERSION" \
19569 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19570 as_echo='print -r --'
19571 as_echo_n='print -rn --'
19572 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19573 as_echo='printf %s\n'
19574 as_echo_n='printf %s'
19575 else
19576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19578 as_echo_n='/usr/ucb/echo -n'
19579 else
19580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19581 as_echo_n_body='eval
19582 arg=$1;
19583 case $arg in #(
19584 *"$as_nl"*)
19585 expr "X$arg" : "X\\(.*\\)$as_nl";
19586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19587 esac;
19588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19589 '
19590 export as_echo_n_body
19591 as_echo_n='sh -c $as_echo_n_body as_echo'
19592 fi
19593 export as_echo_body
19594 as_echo='sh -c $as_echo_body as_echo'
19595 fi
19596
19597 # The user is always right.
19598 if test "${PATH_SEPARATOR+set}" != set; then
19599 PATH_SEPARATOR=:
19600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19602 PATH_SEPARATOR=';'
19603 }
19604 fi
19605
19606
19607 # IFS
19608 # We need space, tab and new line, in precisely that order. Quoting is
19609 # there to prevent editors from complaining about space-tab.
19610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19611 # splitting by setting IFS to empty value.)
19612 IFS=" "" $as_nl"
19613
19614 # Find who we are. Look in the path if we contain no directory separator.
19615 case $0 in #((
19616 *[\\/]* ) as_myself=$0 ;;
19617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19618 for as_dir in $PATH
19619 do
19620 IFS=$as_save_IFS
19621 test -z "$as_dir" && as_dir=.
19622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19623 done
19624 IFS=$as_save_IFS
19625
19626 ;;
19627 esac
19628 # We did not find ourselves, most probably we were run as `sh COMMAND'
19629 # in which case we are not to be found in the path.
19630 if test "x$as_myself" = x; then
19631 as_myself=$0
19632 fi
19633 if test ! -f "$as_myself"; then
19634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19635 exit 1
19636 fi
19637
19638 # Unset variables that we do not need and which cause bugs (e.g. in
19639 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19640 # suppresses any "Segmentation fault" message there. '((' could
19641 # trigger a bug in pdksh 5.2.14.
19642 for as_var in BASH_ENV ENV MAIL MAILPATH
19643 do eval test x\${$as_var+set} = xset \
19644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19645 done
19646 PS1='$ '
19647 PS2='> '
19648 PS4='+ '
19649
19650 # NLS nuisances.
19651 LC_ALL=C
19652 export LC_ALL
19653 LANGUAGE=C
19654 export LANGUAGE
19655
19656 # CDPATH.
19657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19658
19659
19660 # as_fn_error ERROR [LINENO LOG_FD]
19661 # ---------------------------------
19662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19664 # script with status $?, using 1 if that was 0.
19665 as_fn_error ()
19666 {
19667 as_status=$?; test $as_status -eq 0 && as_status=1
19668 if test "$3"; then
19669 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19671 fi
19672 $as_echo "$as_me: error: $1" >&2
19673 as_fn_exit $as_status
19674 } # as_fn_error
19675
19676
19677 # as_fn_set_status STATUS
19678 # -----------------------
19679 # Set $? to STATUS, without forking.
19680 as_fn_set_status ()
19681 {
19682 return $1
19683 } # as_fn_set_status
19684
19685 # as_fn_exit STATUS
19686 # -----------------
19687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19688 as_fn_exit ()
19689 {
19690 set +e
19691 as_fn_set_status $1
19692 exit $1
19693 } # as_fn_exit
19694
19695 # as_fn_unset VAR
19696 # ---------------
19697 # Portably unset VAR.
19698 as_fn_unset ()
19699 {
19700 { eval $1=; unset $1;}
19701 }
19702 as_unset=as_fn_unset
19703 # as_fn_append VAR VALUE
19704 # ----------------------
19705 # Append the text in VALUE to the end of the definition contained in VAR. Take
19706 # advantage of any shell optimizations that allow amortized linear growth over
19707 # repeated appends, instead of the typical quadratic growth present in naive
19708 # implementations.
19709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19710 eval 'as_fn_append ()
19711 {
19712 eval $1+=\$2
19713 }'
19714 else
19715 as_fn_append ()
19716 {
19717 eval $1=\$$1\$2
19718 }
19719 fi # as_fn_append
19720
19721 # as_fn_arith ARG...
19722 # ------------------
19723 # Perform arithmetic evaluation on the ARGs, and store the result in the
19724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19725 # must be portable across $(()) and expr.
19726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19727 eval 'as_fn_arith ()
19728 {
19729 as_val=$(( $* ))
19730 }'
19731 else
19732 as_fn_arith ()
19733 {
19734 as_val=`expr "$@" || test $? -eq 1`
19735 }
19736 fi # as_fn_arith
19737
19738
19739 if expr a : '\(a\)' >/dev/null 2>&1 &&
19740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19741 as_expr=expr
19742 else
19743 as_expr=false
19744 fi
19745
19746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19747 as_basename=basename
19748 else
19749 as_basename=false
19750 fi
19751
19752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19753 as_dirname=dirname
19754 else
19755 as_dirname=false
19756 fi
19757
19758 as_me=`$as_basename -- "$0" ||
19759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19760 X"$0" : 'X\(//\)$' \| \
19761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19762 $as_echo X/"$0" |
19763 sed '/^.*\/\([^/][^/]*\)\/*$/{
19764 s//\1/
19765 q
19766 }
19767 /^X\/\(\/\/\)$/{
19768 s//\1/
19769 q
19770 }
19771 /^X\/\(\/\).*/{
19772 s//\1/
19773 q
19774 }
19775 s/.*/./; q'`
19776
19777 # Avoid depending upon Character Ranges.
19778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19781 as_cr_digits='0123456789'
19782 as_cr_alnum=$as_cr_Letters$as_cr_digits
19783
19784 ECHO_C= ECHO_N= ECHO_T=
19785 case `echo -n x` in #(((((
19786 -n*)
19787 case `echo 'xy\c'` in
19788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19789 xy) ECHO_C='\c';;
19790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19791 ECHO_T=' ';;
19792 esac;;
19793 *)
19794 ECHO_N='-n';;
19795 esac
19796
19797 rm -f conf$$ conf$$.exe conf$$.file
19798 if test -d conf$$.dir; then
19799 rm -f conf$$.dir/conf$$.file
19800 else
19801 rm -f conf$$.dir
19802 mkdir conf$$.dir 2>/dev/null
19803 fi
19804 if (echo >conf$$.file) 2>/dev/null; then
19805 if ln -s conf$$.file conf$$ 2>/dev/null; then
19806 as_ln_s='ln -s'
19807 # ... but there are two gotchas:
19808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19810 # In both cases, we have to default to `cp -p'.
19811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19812 as_ln_s='cp -p'
19813 elif ln conf$$.file conf$$ 2>/dev/null; then
19814 as_ln_s=ln
19815 else
19816 as_ln_s='cp -p'
19817 fi
19818 else
19819 as_ln_s='cp -p'
19820 fi
19821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19822 rmdir conf$$.dir 2>/dev/null
19823
19824
19825 # as_fn_mkdir_p
19826 # -------------
19827 # Create "$as_dir" as a directory, including parents if necessary.
19828 as_fn_mkdir_p ()
19829 {
19830
19831 case $as_dir in #(
19832 -*) as_dir=./$as_dir;;
19833 esac
19834 test -d "$as_dir" || eval $as_mkdir_p || {
19835 as_dirs=
19836 while :; do
19837 case $as_dir in #(
19838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19839 *) as_qdir=$as_dir;;
19840 esac
19841 as_dirs="'$as_qdir' $as_dirs"
19842 as_dir=`$as_dirname -- "$as_dir" ||
19843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19844 X"$as_dir" : 'X\(//\)[^/]' \| \
19845 X"$as_dir" : 'X\(//\)$' \| \
19846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19847 $as_echo X"$as_dir" |
19848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19849 s//\1/
19850 q
19851 }
19852 /^X\(\/\/\)[^/].*/{
19853 s//\1/
19854 q
19855 }
19856 /^X\(\/\/\)$/{
19857 s//\1/
19858 q
19859 }
19860 /^X\(\/\).*/{
19861 s//\1/
19862 q
19863 }
19864 s/.*/./; q'`
19865 test -d "$as_dir" && break
19866 done
19867 test -z "$as_dirs" || eval "mkdir $as_dirs"
19868 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19869
19870
19871 } # as_fn_mkdir_p
19872 if mkdir -p . 2>/dev/null; then
19873 as_mkdir_p='mkdir -p "$as_dir"'
19874 else
19875 test -d ./-p && rmdir ./-p
19876 as_mkdir_p=false
19877 fi
19878
19879 if test -x / >/dev/null 2>&1; then
19880 as_test_x='test -x'
19881 else
19882 if ls -dL / >/dev/null 2>&1; then
19883 as_ls_L_option=L
19884 else
19885 as_ls_L_option=
19886 fi
19887 as_test_x='
19888 eval sh -c '\''
19889 if test -d "$1"; then
19890 test -d "$1/.";
19891 else
19892 case $1 in #(
19893 -*)set "./$1";;
19894 esac;
19895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19896 ???[sx]*):;;*)false;;esac;fi
19897 '\'' sh
19898 '
19899 fi
19900 as_executable_p=$as_test_x
19901
19902 # Sed expression to map a string onto a valid CPP name.
19903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19904
19905 # Sed expression to map a string onto a valid variable name.
19906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19907
19908
19909 exec 6>&1
19910 ## ----------------------------------- ##
19911 ## Main body of $CONFIG_STATUS script. ##
19912 ## ----------------------------------- ##
19913 _ASEOF
19914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19915
19916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19917 # Save the log message, to keep $0 and so on meaningful, and to
19918 # report actual input values of CONFIG_FILES etc. instead of their
19919 # values after options handling.
19920 ac_log="
19921 This file was extended by Cycript $as_me 0.9, which was
19922 generated by GNU Autoconf 2.65. Invocation command line was
19923
19924 CONFIG_FILES = $CONFIG_FILES
19925 CONFIG_HEADERS = $CONFIG_HEADERS
19926 CONFIG_LINKS = $CONFIG_LINKS
19927 CONFIG_COMMANDS = $CONFIG_COMMANDS
19928 $ $0 $@
19929
19930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19931 "
19932
19933 _ACEOF
19934
19935 case $ac_config_files in *"
19936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19937 esac
19938
19939
19940
19941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19942 # Files that config.status was made for.
19943 config_files="$ac_config_files"
19944 config_commands="$ac_config_commands"
19945
19946 _ACEOF
19947
19948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19949 ac_cs_usage="\
19950 \`$as_me' instantiates files and other configuration actions
19951 from templates according to the current configuration. Unless the files
19952 and actions are specified as TAGs, all are instantiated by default.
19953
19954 Usage: $0 [OPTION]... [TAG]...
19955
19956 -h, --help print this help, then exit
19957 -V, --version print version number and configuration settings, then exit
19958 --config print configuration, then exit
19959 -q, --quiet, --silent
19960 do not print progress messages
19961 -d, --debug don't remove temporary files
19962 --recheck update $as_me by reconfiguring in the same conditions
19963 --file=FILE[:TEMPLATE]
19964 instantiate the configuration file FILE
19965
19966 Configuration files:
19967 $config_files
19968
19969 Configuration commands:
19970 $config_commands
19971
19972 Report bugs to <saurik@saurik.com>.
19973 Cycript home page: <http://www.cycript.org/>."
19974
19975 _ACEOF
19976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19977 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19978 ac_cs_version="\\
19979 Cycript config.status 0.9
19980 configured by $0, generated by GNU Autoconf 2.65,
19981 with options \\"\$ac_cs_config\\"
19982
19983 Copyright (C) 2009 Free Software Foundation, Inc.
19984 This config.status script is free software; the Free Software Foundation
19985 gives unlimited permission to copy, distribute and modify it."
19986
19987 ac_pwd='$ac_pwd'
19988 srcdir='$srcdir'
19989 INSTALL='$INSTALL'
19990 test -n "\$AWK" || AWK=awk
19991 _ACEOF
19992
19993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19994 # The default lists apply if the user does not specify any file.
19995 ac_need_defaults=:
19996 while test $# != 0
19997 do
19998 case $1 in
19999 --*=*)
20000 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20001 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20002 ac_shift=:
20003 ;;
20004 *)
20005 ac_option=$1
20006 ac_optarg=$2
20007 ac_shift=shift
20008 ;;
20009 esac
20010
20011 case $ac_option in
20012 # Handling of the options.
20013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20014 ac_cs_recheck=: ;;
20015 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20016 $as_echo "$ac_cs_version"; exit ;;
20017 --config | --confi | --conf | --con | --co | --c )
20018 $as_echo "$ac_cs_config"; exit ;;
20019 --debug | --debu | --deb | --de | --d | -d )
20020 debug=: ;;
20021 --file | --fil | --fi | --f )
20022 $ac_shift
20023 case $ac_optarg in
20024 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20025 esac
20026 as_fn_append CONFIG_FILES " '$ac_optarg'"
20027 ac_need_defaults=false;;
20028 --he | --h | --help | --hel | -h )
20029 $as_echo "$ac_cs_usage"; exit ;;
20030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20031 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20032 ac_cs_silent=: ;;
20033
20034 # This is an error.
20035 -*) as_fn_error "unrecognized option: \`$1'
20036 Try \`$0 --help' for more information." ;;
20037
20038 *) as_fn_append ac_config_targets " $1"
20039 ac_need_defaults=false ;;
20040
20041 esac
20042 shift
20043 done
20044
20045 ac_configure_extra_args=
20046
20047 if $ac_cs_silent; then
20048 exec 6>/dev/null
20049 ac_configure_extra_args="$ac_configure_extra_args --silent"
20050 fi
20051
20052 _ACEOF
20053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054 if \$ac_cs_recheck; then
20055 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20056 shift
20057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20058 CONFIG_SHELL='$SHELL'
20059 export CONFIG_SHELL
20060 exec "\$@"
20061 fi
20062
20063 _ACEOF
20064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20065 exec 5>>config.log
20066 {
20067 echo
20068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20069 ## Running $as_me. ##
20070 _ASBOX
20071 $as_echo "$ac_log"
20072 } >&5
20073
20074 _ACEOF
20075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076 #
20077 # INIT-COMMANDS
20078 #
20079
20080
20081 # The HP-UX ksh and POSIX shell print the target directory to stdout
20082 # if CDPATH is set.
20083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20084
20085 sed_quote_subst='$sed_quote_subst'
20086 double_quote_subst='$double_quote_subst'
20087 delay_variable_subst='$delay_variable_subst'
20088 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20089 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20090 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20091 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20092 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20093 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20094 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20095 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20096 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20097 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20098 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20099 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20100 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20101 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20102 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20103 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20104 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20105 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20106 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20107 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20108 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20109 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20110 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20111 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20112 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20113 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20114 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20115 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20116 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20117 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20118 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20119 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20120 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20121 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20122 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20123 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20124 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20125 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20126 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20127 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20128 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20129 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20130 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20131 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20132 lt_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"`'
20133 lt_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"`'
20134 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20135 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20136 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20137 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20138 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20139 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20140 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20141 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20142 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20143 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20144 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20145 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20146 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20147 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20148 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20149 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20150 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20151 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20152 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20153 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20154 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20155 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20156 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20157 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20158 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20159 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20160 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20161 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20162 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20163 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20164 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20165 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20166 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20167 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20168 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20169 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20170 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20171 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20172 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20173 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20174 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20175 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20176 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20177 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20178 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20179 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20180 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20181 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20182 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20183 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20184 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20185 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20186 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20187 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20188 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20189 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20190 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20191 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20192 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20193 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20194 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20195 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20196 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20197 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20198 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20199 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20200 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20201 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20202 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20203 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20204 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20205 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20206 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20207 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20208 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20209 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20210 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20211 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20212 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20213 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20214 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20215 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20216 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20217 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20218 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20219 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20220 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20221 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20222 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20223 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20224 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20225 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20226 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20227 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20228 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20229 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20230 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20231 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20232 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20233 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20234 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20235 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20236 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20237 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20238 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20239 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20240 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20241 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20242 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20243 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20244 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20245 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20246 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20247 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20248 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20249 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20250 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20251 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20252 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20253 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20254 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20255 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20256 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20257 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20258 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20259
20260 LTCC='$LTCC'
20261 LTCFLAGS='$LTCFLAGS'
20262 compiler='$compiler_DEFAULT'
20263
20264 # Quote evaled strings.
20265 for var in SED \
20266 GREP \
20267 EGREP \
20268 FGREP \
20269 LD \
20270 NM \
20271 LN_S \
20272 lt_SP2NL \
20273 lt_NL2SP \
20274 reload_flag \
20275 OBJDUMP \
20276 deplibs_check_method \
20277 file_magic_cmd \
20278 AR \
20279 AR_FLAGS \
20280 STRIP \
20281 RANLIB \
20282 CC \
20283 CFLAGS \
20284 compiler \
20285 lt_cv_sys_global_symbol_pipe \
20286 lt_cv_sys_global_symbol_to_cdecl \
20287 lt_cv_sys_global_symbol_to_c_name_address \
20288 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20289 SHELL \
20290 ECHO \
20291 lt_prog_compiler_no_builtin_flag \
20292 lt_prog_compiler_wl \
20293 lt_prog_compiler_pic \
20294 lt_prog_compiler_static \
20295 lt_cv_prog_compiler_c_o \
20296 need_locks \
20297 DSYMUTIL \
20298 NMEDIT \
20299 LIPO \
20300 OTOOL \
20301 OTOOL64 \
20302 shrext_cmds \
20303 export_dynamic_flag_spec \
20304 whole_archive_flag_spec \
20305 compiler_needs_object \
20306 with_gnu_ld \
20307 allow_undefined_flag \
20308 no_undefined_flag \
20309 hardcode_libdir_flag_spec \
20310 hardcode_libdir_flag_spec_ld \
20311 hardcode_libdir_separator \
20312 fix_srcfile_path \
20313 exclude_expsyms \
20314 include_expsyms \
20315 file_list_spec \
20316 variables_saved_for_relink \
20317 libname_spec \
20318 library_names_spec \
20319 soname_spec \
20320 finish_eval \
20321 old_striplib \
20322 striplib \
20323 compiler_lib_search_dirs \
20324 predep_objects \
20325 postdep_objects \
20326 predeps \
20327 postdeps \
20328 compiler_lib_search_path \
20329 LD_CXX \
20330 compiler_CXX \
20331 lt_prog_compiler_no_builtin_flag_CXX \
20332 lt_prog_compiler_wl_CXX \
20333 lt_prog_compiler_pic_CXX \
20334 lt_prog_compiler_static_CXX \
20335 lt_cv_prog_compiler_c_o_CXX \
20336 export_dynamic_flag_spec_CXX \
20337 whole_archive_flag_spec_CXX \
20338 compiler_needs_object_CXX \
20339 with_gnu_ld_CXX \
20340 allow_undefined_flag_CXX \
20341 no_undefined_flag_CXX \
20342 hardcode_libdir_flag_spec_CXX \
20343 hardcode_libdir_flag_spec_ld_CXX \
20344 hardcode_libdir_separator_CXX \
20345 fix_srcfile_path_CXX \
20346 exclude_expsyms_CXX \
20347 include_expsyms_CXX \
20348 file_list_spec_CXX \
20349 compiler_lib_search_dirs_CXX \
20350 predep_objects_CXX \
20351 postdep_objects_CXX \
20352 predeps_CXX \
20353 postdeps_CXX \
20354 compiler_lib_search_path_CXX; do
20355 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20356 *[\\\\\\\`\\"\\\$]*)
20357 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20358 ;;
20359 *)
20360 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20361 ;;
20362 esac
20363 done
20364
20365 # Double-quote double-evaled strings.
20366 for var in reload_cmds \
20367 old_postinstall_cmds \
20368 old_postuninstall_cmds \
20369 old_archive_cmds \
20370 extract_expsyms_cmds \
20371 old_archive_from_new_cmds \
20372 old_archive_from_expsyms_cmds \
20373 archive_cmds \
20374 archive_expsym_cmds \
20375 module_cmds \
20376 module_expsym_cmds \
20377 export_symbols_cmds \
20378 prelink_cmds \
20379 postinstall_cmds \
20380 postuninstall_cmds \
20381 finish_cmds \
20382 sys_lib_search_path_spec \
20383 sys_lib_dlsearch_path_spec \
20384 old_archive_cmds_CXX \
20385 old_archive_from_new_cmds_CXX \
20386 old_archive_from_expsyms_cmds_CXX \
20387 archive_cmds_CXX \
20388 archive_expsym_cmds_CXX \
20389 module_cmds_CXX \
20390 module_expsym_cmds_CXX \
20391 export_symbols_cmds_CXX \
20392 prelink_cmds_CXX; do
20393 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20394 *[\\\\\\\`\\"\\\$]*)
20395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20396 ;;
20397 *)
20398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20399 ;;
20400 esac
20401 done
20402
20403 # Fix-up fallback echo if it was mangled by the above quoting rules.
20404 case \$lt_ECHO in
20405 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20406 ;;
20407 esac
20408
20409 ac_aux_dir='$ac_aux_dir'
20410 xsi_shell='$xsi_shell'
20411 lt_shell_append='$lt_shell_append'
20412
20413 # See if we are running on zsh, and set the options which allow our
20414 # commands through without removal of \ escapes INIT.
20415 if test -n "\${ZSH_VERSION+set}" ; then
20416 setopt NO_GLOB_SUBST
20417 fi
20418
20419
20420 PACKAGE='$PACKAGE'
20421 VERSION='$VERSION'
20422 TIMESTAMP='$TIMESTAMP'
20423 RM='$RM'
20424 ofile='$ofile'
20425
20426
20427
20428
20429
20430
20431 _ACEOF
20432
20433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20434
20435 # Handling of arguments.
20436 for ac_config_target in $ac_config_targets
20437 do
20438 case $ac_config_target in
20439 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20440 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20441 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
20442
20443 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20444 esac
20445 done
20446
20447
20448 # If the user did not use the arguments to specify the items to instantiate,
20449 # then the envvar interface is used. Set only those that are not.
20450 # We use the long form for the default assignment because of an extremely
20451 # bizarre bug on SunOS 4.1.3.
20452 if $ac_need_defaults; then
20453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20455 fi
20456
20457 # Have a temporary directory for convenience. Make it in the build tree
20458 # simply because there is no reason against having it here, and in addition,
20459 # creating and moving files from /tmp can sometimes cause problems.
20460 # Hook for its removal unless debugging.
20461 # Note that there is a small window in which the directory will not be cleaned:
20462 # after its creation but before its name has been assigned to `$tmp'.
20463 $debug ||
20464 {
20465 tmp=
20466 trap 'exit_status=$?
20467 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20468 ' 0
20469 trap 'as_fn_exit 1' 1 2 13 15
20470 }
20471 # Create a (secure) tmp directory for tmp files.
20472
20473 {
20474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20475 test -n "$tmp" && test -d "$tmp"
20476 } ||
20477 {
20478 tmp=./conf$$-$RANDOM
20479 (umask 077 && mkdir "$tmp")
20480 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20481
20482 # Set up the scripts for CONFIG_FILES section.
20483 # No need to generate them if there are no CONFIG_FILES.
20484 # This happens for instance with `./config.status config.h'.
20485 if test -n "$CONFIG_FILES"; then
20486
20487
20488 ac_cr=`echo X | tr X '\015'`
20489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20490 # But we know of no other shell where ac_cr would be empty at this
20491 # point, so we can use a bashism as a fallback.
20492 if test "x$ac_cr" = x; then
20493 eval ac_cr=\$\'\\r\'
20494 fi
20495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20497 ac_cs_awk_cr='\r'
20498 else
20499 ac_cs_awk_cr=$ac_cr
20500 fi
20501
20502 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20503 _ACEOF
20504
20505
20506 {
20507 echo "cat >conf$$subs.awk <<_ACEOF" &&
20508 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20509 echo "_ACEOF"
20510 } >conf$$subs.sh ||
20511 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20513 ac_delim='%!_!# '
20514 for ac_last_try in false false false false false :; do
20515 . ./conf$$subs.sh ||
20516 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20517
20518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20519 if test $ac_delim_n = $ac_delim_num; then
20520 break
20521 elif $ac_last_try; then
20522 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20523 else
20524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20525 fi
20526 done
20527 rm -f conf$$subs.sh
20528
20529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20530 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20531 _ACEOF
20532 sed -n '
20533 h
20534 s/^/S["/; s/!.*/"]=/
20535 p
20536 g
20537 s/^[^!]*!//
20538 :repl
20539 t repl
20540 s/'"$ac_delim"'$//
20541 t delim
20542 :nl
20543 h
20544 s/\(.\{148\}\)..*/\1/
20545 t more1
20546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20547 p
20548 n
20549 b repl
20550 :more1
20551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20552 p
20553 g
20554 s/.\{148\}//
20555 t nl
20556 :delim
20557 h
20558 s/\(.\{148\}\)..*/\1/
20559 t more2
20560 s/["\\]/\\&/g; s/^/"/; s/$/"/
20561 p
20562 b
20563 :more2
20564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20565 p
20566 g
20567 s/.\{148\}//
20568 t delim
20569 ' <conf$$subs.awk | sed '
20570 /^[^""]/{
20571 N
20572 s/\n//
20573 }
20574 ' >>$CONFIG_STATUS || ac_write_fail=1
20575 rm -f conf$$subs.awk
20576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20577 _ACAWK
20578 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20579 for (key in S) S_is_set[key] = 1
20580 FS = "\a"
20581
20582 }
20583 {
20584 line = $ 0
20585 nfields = split(line, field, "@")
20586 substed = 0
20587 len = length(field[1])
20588 for (i = 2; i < nfields; i++) {
20589 key = field[i]
20590 keylen = length(key)
20591 if (S_is_set[key]) {
20592 value = S[key]
20593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20594 len += length(value) + length(field[++i])
20595 substed = 1
20596 } else
20597 len += 1 + keylen
20598 }
20599
20600 print line
20601 }
20602
20603 _ACAWK
20604 _ACEOF
20605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20608 else
20609 cat
20610 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20611 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20612 _ACEOF
20613
20614 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20615 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20616 # trailing colons and then remove the whole line if VPATH becomes empty
20617 # (actually we leave an empty line to preserve line numbers).
20618 if test "x$srcdir" = x.; then
20619 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20620 s/:*\$(srcdir):*/:/
20621 s/:*\${srcdir}:*/:/
20622 s/:*@srcdir@:*/:/
20623 s/^\([^=]*=[ ]*\):*/\1/
20624 s/:*$//
20625 s/^[^=]*=[ ]*$//
20626 }'
20627 fi
20628
20629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20630 fi # test -n "$CONFIG_FILES"
20631
20632
20633 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20634 shift
20635 for ac_tag
20636 do
20637 case $ac_tag in
20638 :[FHLC]) ac_mode=$ac_tag; continue;;
20639 esac
20640 case $ac_mode$ac_tag in
20641 :[FHL]*:*);;
20642 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20643 :[FH]-) ac_tag=-:-;;
20644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20645 esac
20646 ac_save_IFS=$IFS
20647 IFS=:
20648 set x $ac_tag
20649 IFS=$ac_save_IFS
20650 shift
20651 ac_file=$1
20652 shift
20653
20654 case $ac_mode in
20655 :L) ac_source=$1;;
20656 :[FH])
20657 ac_file_inputs=
20658 for ac_f
20659 do
20660 case $ac_f in
20661 -) ac_f="$tmp/stdin";;
20662 *) # Look for the file first in the build tree, then in the source tree
20663 # (if the path is not absolute). The absolute path cannot be DOS-style,
20664 # because $ac_f cannot contain `:'.
20665 test -f "$ac_f" ||
20666 case $ac_f in
20667 [\\/$]*) false;;
20668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20669 esac ||
20670 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20671 esac
20672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20673 as_fn_append ac_file_inputs " '$ac_f'"
20674 done
20675
20676 # Let's still pretend it is `configure' which instantiates (i.e., don't
20677 # use $as_me), people would be surprised to read:
20678 # /* config.h. Generated by config.status. */
20679 configure_input='Generated from '`
20680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20681 `' by configure.'
20682 if test x"$ac_file" != x-; then
20683 configure_input="$ac_file. $configure_input"
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20685 $as_echo "$as_me: creating $ac_file" >&6;}
20686 fi
20687 # Neutralize special characters interpreted by sed in replacement strings.
20688 case $configure_input in #(
20689 *\&* | *\|* | *\\* )
20690 ac_sed_conf_input=`$as_echo "$configure_input" |
20691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20692 *) ac_sed_conf_input=$configure_input;;
20693 esac
20694
20695 case $ac_tag in
20696 *:-:* | *:-) cat >"$tmp/stdin" \
20697 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20698 esac
20699 ;;
20700 esac
20701
20702 ac_dir=`$as_dirname -- "$ac_file" ||
20703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20704 X"$ac_file" : 'X\(//\)[^/]' \| \
20705 X"$ac_file" : 'X\(//\)$' \| \
20706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20707 $as_echo X"$ac_file" |
20708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20709 s//\1/
20710 q
20711 }
20712 /^X\(\/\/\)[^/].*/{
20713 s//\1/
20714 q
20715 }
20716 /^X\(\/\/\)$/{
20717 s//\1/
20718 q
20719 }
20720 /^X\(\/\).*/{
20721 s//\1/
20722 q
20723 }
20724 s/.*/./; q'`
20725 as_dir="$ac_dir"; as_fn_mkdir_p
20726 ac_builddir=.
20727
20728 case "$ac_dir" in
20729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20730 *)
20731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20732 # A ".." for each directory in $ac_dir_suffix.
20733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20734 case $ac_top_builddir_sub in
20735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20737 esac ;;
20738 esac
20739 ac_abs_top_builddir=$ac_pwd
20740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20741 # for backward compatibility:
20742 ac_top_builddir=$ac_top_build_prefix
20743
20744 case $srcdir in
20745 .) # We are building in place.
20746 ac_srcdir=.
20747 ac_top_srcdir=$ac_top_builddir_sub
20748 ac_abs_top_srcdir=$ac_pwd ;;
20749 [\\/]* | ?:[\\/]* ) # Absolute name.
20750 ac_srcdir=$srcdir$ac_dir_suffix;
20751 ac_top_srcdir=$srcdir
20752 ac_abs_top_srcdir=$srcdir ;;
20753 *) # Relative name.
20754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20755 ac_top_srcdir=$ac_top_build_prefix$srcdir
20756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20757 esac
20758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20759
20760
20761 case $ac_mode in
20762 :F)
20763 #
20764 # CONFIG_FILE
20765 #
20766
20767 case $INSTALL in
20768 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20769 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20770 esac
20771 _ACEOF
20772
20773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20774 # If the template does not know about datarootdir, expand it.
20775 # FIXME: This hack should be removed a few years after 2.60.
20776 ac_datarootdir_hack=; ac_datarootdir_seen=
20777 ac_sed_dataroot='
20778 /datarootdir/ {
20779 p
20780 q
20781 }
20782 /@datadir@/p
20783 /@docdir@/p
20784 /@infodir@/p
20785 /@localedir@/p
20786 /@mandir@/p'
20787 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20788 *datarootdir*) ac_datarootdir_seen=yes;;
20789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20791 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20792 _ACEOF
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794 ac_datarootdir_hack='
20795 s&@datadir@&$datadir&g
20796 s&@docdir@&$docdir&g
20797 s&@infodir@&$infodir&g
20798 s&@localedir@&$localedir&g
20799 s&@mandir@&$mandir&g
20800 s&\\\${datarootdir}&$datarootdir&g' ;;
20801 esac
20802 _ACEOF
20803
20804 # Neutralize VPATH when `$srcdir' = `.'.
20805 # Shell code in configure.ac might set extrasub.
20806 # FIXME: do we really want to maintain this feature?
20807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20808 ac_sed_extra="$ac_vpsub
20809 $extrasub
20810 _ACEOF
20811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20812 :t
20813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20814 s|@configure_input@|$ac_sed_conf_input|;t t
20815 s&@top_builddir@&$ac_top_builddir_sub&;t t
20816 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20817 s&@srcdir@&$ac_srcdir&;t t
20818 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20819 s&@top_srcdir@&$ac_top_srcdir&;t t
20820 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20821 s&@builddir@&$ac_builddir&;t t
20822 s&@abs_builddir@&$ac_abs_builddir&;t t
20823 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20824 s&@INSTALL@&$ac_INSTALL&;t t
20825 $ac_datarootdir_hack
20826 "
20827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20828 || as_fn_error "could not create $ac_file" "$LINENO" 5
20829
20830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20831 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20834 which seems to be undefined. Please make sure it is defined." >&5
20835 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20836 which seems to be undefined. Please make sure it is defined." >&2;}
20837
20838 rm -f "$tmp/stdin"
20839 case $ac_file in
20840 -) cat "$tmp/out" && rm -f "$tmp/out";;
20841 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20842 esac \
20843 || as_fn_error "could not create $ac_file" "$LINENO" 5
20844 ;;
20845
20846
20847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20848 $as_echo "$as_me: executing $ac_file commands" >&6;}
20849 ;;
20850 esac
20851
20852
20853 case $ac_file$ac_mode in
20854 "libtool":C)
20855
20856 # See if we are running on zsh, and set the options which allow our
20857 # commands through without removal of \ escapes.
20858 if test -n "${ZSH_VERSION+set}" ; then
20859 setopt NO_GLOB_SUBST
20860 fi
20861
20862 cfgfile="${ofile}T"
20863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20864 $RM "$cfgfile"
20865
20866 cat <<_LT_EOF >> "$cfgfile"
20867 #! $SHELL
20868
20869 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20870 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20871 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20872 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20873 #
20874 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20875 # 2006, 2007, 2008 Free Software Foundation, Inc.
20876 # Written by Gordon Matzigkeit, 1996
20877 #
20878 # This file is part of GNU Libtool.
20879 #
20880 # GNU Libtool is free software; you can redistribute it and/or
20881 # modify it under the terms of the GNU General Public License as
20882 # published by the Free Software Foundation; either version 2 of
20883 # the License, or (at your option) any later version.
20884 #
20885 # As a special exception to the GNU General Public License,
20886 # if you distribute this file as part of a program or library that
20887 # is built using GNU Libtool, you may include this file under the
20888 # same distribution terms that you use for the rest of that program.
20889 #
20890 # GNU Libtool is distributed in the hope that it will be useful,
20891 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20893 # GNU General Public License for more details.
20894 #
20895 # You should have received a copy of the GNU General Public License
20896 # along with GNU Libtool; see the file COPYING. If not, a copy
20897 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20898 # obtained by writing to the Free Software Foundation, Inc.,
20899 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20900
20901
20902 # The names of the tagged configurations supported by this script.
20903 available_tags="CXX "
20904
20905 # ### BEGIN LIBTOOL CONFIG
20906
20907 # Which release of libtool.m4 was used?
20908 macro_version=$macro_version
20909 macro_revision=$macro_revision
20910
20911 # Whether or not to build static libraries.
20912 build_old_libs=$enable_static
20913
20914 # Whether or not to build shared libraries.
20915 build_libtool_libs=$enable_shared
20916
20917 # What type of objects to build.
20918 pic_mode=$pic_mode
20919
20920 # Whether or not to optimize for fast installation.
20921 fast_install=$enable_fast_install
20922
20923 # The host system.
20924 host_alias=$host_alias
20925 host=$host
20926 host_os=$host_os
20927
20928 # The build system.
20929 build_alias=$build_alias
20930 build=$build
20931 build_os=$build_os
20932
20933 # A sed program that does not truncate output.
20934 SED=$lt_SED
20935
20936 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20937 Xsed="\$SED -e 1s/^X//"
20938
20939 # A grep program that handles long lines.
20940 GREP=$lt_GREP
20941
20942 # An ERE matcher.
20943 EGREP=$lt_EGREP
20944
20945 # A literal string matcher.
20946 FGREP=$lt_FGREP
20947
20948 # A BSD- or MS-compatible name lister.
20949 NM=$lt_NM
20950
20951 # Whether we need soft or hard links.
20952 LN_S=$lt_LN_S
20953
20954 # What is the maximum length of a command?
20955 max_cmd_len=$max_cmd_len
20956
20957 # Object file suffix (normally "o").
20958 objext=$ac_objext
20959
20960 # Executable file suffix (normally "").
20961 exeext=$exeext
20962
20963 # whether the shell understands "unset".
20964 lt_unset=$lt_unset
20965
20966 # turn spaces into newlines.
20967 SP2NL=$lt_lt_SP2NL
20968
20969 # turn newlines into spaces.
20970 NL2SP=$lt_lt_NL2SP
20971
20972 # How to create reloadable object files.
20973 reload_flag=$lt_reload_flag
20974 reload_cmds=$lt_reload_cmds
20975
20976 # An object symbol dumper.
20977 OBJDUMP=$lt_OBJDUMP
20978
20979 # Method to check whether dependent libraries are shared objects.
20980 deplibs_check_method=$lt_deplibs_check_method
20981
20982 # Command to use when deplibs_check_method == "file_magic".
20983 file_magic_cmd=$lt_file_magic_cmd
20984
20985 # The archiver.
20986 AR=$lt_AR
20987 AR_FLAGS=$lt_AR_FLAGS
20988
20989 # A symbol stripping program.
20990 STRIP=$lt_STRIP
20991
20992 # Commands used to install an old-style archive.
20993 RANLIB=$lt_RANLIB
20994 old_postinstall_cmds=$lt_old_postinstall_cmds
20995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20996
20997 # A C compiler.
20998 LTCC=$lt_CC
20999
21000 # LTCC compiler flags.
21001 LTCFLAGS=$lt_CFLAGS
21002
21003 # Take the output of nm and produce a listing of raw symbols and C names.
21004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21005
21006 # Transform the output of nm in a proper C declaration.
21007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21008
21009 # Transform the output of nm in a C name address pair.
21010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21011
21012 # Transform the output of nm in a C name address pair when lib prefix is needed.
21013 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21014
21015 # The name of the directory that contains temporary libtool files.
21016 objdir=$objdir
21017
21018 # Shell to use when invoking shell scripts.
21019 SHELL=$lt_SHELL
21020
21021 # An echo program that does not interpret backslashes.
21022 ECHO=$lt_ECHO
21023
21024 # Used to examine libraries when file_magic_cmd begins with "file".
21025 MAGIC_CMD=$MAGIC_CMD
21026
21027 # Must we lock files when doing compilation?
21028 need_locks=$lt_need_locks
21029
21030 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21031 DSYMUTIL=$lt_DSYMUTIL
21032
21033 # Tool to change global to local symbols on Mac OS X.
21034 NMEDIT=$lt_NMEDIT
21035
21036 # Tool to manipulate fat objects and archives on Mac OS X.
21037 LIPO=$lt_LIPO
21038
21039 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21040 OTOOL=$lt_OTOOL
21041
21042 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21043 OTOOL64=$lt_OTOOL64
21044
21045 # Old archive suffix (normally "a").
21046 libext=$libext
21047
21048 # Shared library suffix (normally ".so").
21049 shrext_cmds=$lt_shrext_cmds
21050
21051 # The commands to extract the exported symbol list from a shared archive.
21052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21053
21054 # Variables whose values should be saved in libtool wrapper scripts and
21055 # restored at link time.
21056 variables_saved_for_relink=$lt_variables_saved_for_relink
21057
21058 # Do we need the "lib" prefix for modules?
21059 need_lib_prefix=$need_lib_prefix
21060
21061 # Do we need a version for libraries?
21062 need_version=$need_version
21063
21064 # Library versioning type.
21065 version_type=$version_type
21066
21067 # Shared library runtime path variable.
21068 runpath_var=$runpath_var
21069
21070 # Shared library path variable.
21071 shlibpath_var=$shlibpath_var
21072
21073 # Is shlibpath searched before the hard-coded library search path?
21074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21075
21076 # Format of library name prefix.
21077 libname_spec=$lt_libname_spec
21078
21079 # List of archive names. First name is the real one, the rest are links.
21080 # The last name is the one that the linker finds with -lNAME
21081 library_names_spec=$lt_library_names_spec
21082
21083 # The coded name of the library, if different from the real name.
21084 soname_spec=$lt_soname_spec
21085
21086 # Command to use after installation of a shared archive.
21087 postinstall_cmds=$lt_postinstall_cmds
21088
21089 # Command to use after uninstallation of a shared archive.
21090 postuninstall_cmds=$lt_postuninstall_cmds
21091
21092 # Commands used to finish a libtool library installation in a directory.
21093 finish_cmds=$lt_finish_cmds
21094
21095 # As "finish_cmds", except a single script fragment to be evaled but
21096 # not shown.
21097 finish_eval=$lt_finish_eval
21098
21099 # Whether we should hardcode library paths into libraries.
21100 hardcode_into_libs=$hardcode_into_libs
21101
21102 # Compile-time system search path for libraries.
21103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21104
21105 # Run-time system search path for libraries.
21106 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21107
21108 # Whether dlopen is supported.
21109 dlopen_support=$enable_dlopen
21110
21111 # Whether dlopen of programs is supported.
21112 dlopen_self=$enable_dlopen_self
21113
21114 # Whether dlopen of statically linked programs is supported.
21115 dlopen_self_static=$enable_dlopen_self_static
21116
21117 # Commands to strip libraries.
21118 old_striplib=$lt_old_striplib
21119 striplib=$lt_striplib
21120
21121
21122 # The linker used to build libraries.
21123 LD=$lt_LD
21124
21125 # Commands used to build an old-style archive.
21126 old_archive_cmds=$lt_old_archive_cmds
21127
21128 # A language specific compiler.
21129 CC=$lt_compiler
21130
21131 # Is the compiler the GNU compiler?
21132 with_gcc=$GCC
21133
21134 # Compiler flag to turn off builtin functions.
21135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21136
21137 # How to pass a linker flag through the compiler.
21138 wl=$lt_lt_prog_compiler_wl
21139
21140 # Additional compiler flags for building library objects.
21141 pic_flag=$lt_lt_prog_compiler_pic
21142
21143 # Compiler flag to prevent dynamic linking.
21144 link_static_flag=$lt_lt_prog_compiler_static
21145
21146 # Does compiler simultaneously support -c and -o options?
21147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21148
21149 # Whether or not to add -lc for building shared libraries.
21150 build_libtool_need_lc=$archive_cmds_need_lc
21151
21152 # Whether or not to disallow shared libs when runtime libs are static.
21153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21154
21155 # Compiler flag to allow reflexive dlopens.
21156 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21157
21158 # Compiler flag to generate shared objects directly from archives.
21159 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21160
21161 # Whether the compiler copes with passing no objects directly.
21162 compiler_needs_object=$lt_compiler_needs_object
21163
21164 # Create an old-style archive from a shared archive.
21165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21166
21167 # Create a temporary old-style archive to link instead of a shared archive.
21168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21169
21170 # Commands used to build a shared archive.
21171 archive_cmds=$lt_archive_cmds
21172 archive_expsym_cmds=$lt_archive_expsym_cmds
21173
21174 # Commands used to build a loadable module if different from building
21175 # a shared archive.
21176 module_cmds=$lt_module_cmds
21177 module_expsym_cmds=$lt_module_expsym_cmds
21178
21179 # Whether we are building with GNU ld or not.
21180 with_gnu_ld=$lt_with_gnu_ld
21181
21182 # Flag that allows shared libraries with undefined symbols to be built.
21183 allow_undefined_flag=$lt_allow_undefined_flag
21184
21185 # Flag that enforces no undefined symbols.
21186 no_undefined_flag=$lt_no_undefined_flag
21187
21188 # Flag to hardcode \$libdir into a binary during linking.
21189 # This must work even if \$libdir does not exist
21190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21191
21192 # If ld is used when linking, flag to hardcode \$libdir into a binary
21193 # during linking. This must work even if \$libdir does not exist.
21194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21195
21196 # Whether we need a single "-rpath" flag with a separated argument.
21197 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21198
21199 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21200 # DIR into the resulting binary.
21201 hardcode_direct=$hardcode_direct
21202
21203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21204 # DIR into the resulting binary and the resulting library dependency is
21205 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21206 # library is relocated.
21207 hardcode_direct_absolute=$hardcode_direct_absolute
21208
21209 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21210 # into the resulting binary.
21211 hardcode_minus_L=$hardcode_minus_L
21212
21213 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21214 # into the resulting binary.
21215 hardcode_shlibpath_var=$hardcode_shlibpath_var
21216
21217 # Set to "yes" if building a shared library automatically hardcodes DIR
21218 # into the library and all subsequent libraries and executables linked
21219 # against it.
21220 hardcode_automatic=$hardcode_automatic
21221
21222 # Set to yes if linker adds runtime paths of dependent libraries
21223 # to runtime path list.
21224 inherit_rpath=$inherit_rpath
21225
21226 # Whether libtool must link a program against all its dependency libraries.
21227 link_all_deplibs=$link_all_deplibs
21228
21229 # Fix the shell variable \$srcfile for the compiler.
21230 fix_srcfile_path=$lt_fix_srcfile_path
21231
21232 # Set to "yes" if exported symbols are required.
21233 always_export_symbols=$always_export_symbols
21234
21235 # The commands to list exported symbols.
21236 export_symbols_cmds=$lt_export_symbols_cmds
21237
21238 # Symbols that should not be listed in the preloaded symbols.
21239 exclude_expsyms=$lt_exclude_expsyms
21240
21241 # Symbols that must always be exported.
21242 include_expsyms=$lt_include_expsyms
21243
21244 # Commands necessary for linking programs (against libraries) with templates.
21245 prelink_cmds=$lt_prelink_cmds
21246
21247 # Specify filename containing input files.
21248 file_list_spec=$lt_file_list_spec
21249
21250 # How to hardcode a shared library path into an executable.
21251 hardcode_action=$hardcode_action
21252
21253 # The directories searched by this compiler when creating a shared library.
21254 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21255
21256 # Dependencies to place before and after the objects being linked to
21257 # create a shared library.
21258 predep_objects=$lt_predep_objects
21259 postdep_objects=$lt_postdep_objects
21260 predeps=$lt_predeps
21261 postdeps=$lt_postdeps
21262
21263 # The library search path used internally by the compiler when linking
21264 # a shared library.
21265 compiler_lib_search_path=$lt_compiler_lib_search_path
21266
21267 # ### END LIBTOOL CONFIG
21268
21269 _LT_EOF
21270
21271 case $host_os in
21272 aix3*)
21273 cat <<\_LT_EOF >> "$cfgfile"
21274 # AIX sometimes has problems with the GCC collect2 program. For some
21275 # reason, if we set the COLLECT_NAMES environment variable, the problems
21276 # vanish in a puff of smoke.
21277 if test "X${COLLECT_NAMES+set}" != Xset; then
21278 COLLECT_NAMES=
21279 export COLLECT_NAMES
21280 fi
21281 _LT_EOF
21282 ;;
21283 esac
21284
21285
21286 ltmain="$ac_aux_dir/ltmain.sh"
21287
21288
21289 # We use sed instead of cat because bash on DJGPP gets confused if
21290 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21291 # text mode, it properly converts lines to CR/LF. This bash problem
21292 # is reportedly fixed, but why not run on old versions too?
21293 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21294 || (rm -f "$cfgfile"; exit 1)
21295
21296 case $xsi_shell in
21297 yes)
21298 cat << \_LT_EOF >> "$cfgfile"
21299
21300 # func_dirname file append nondir_replacement
21301 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21302 # otherwise set result to NONDIR_REPLACEMENT.
21303 func_dirname ()
21304 {
21305 case ${1} in
21306 */*) func_dirname_result="${1%/*}${2}" ;;
21307 * ) func_dirname_result="${3}" ;;
21308 esac
21309 }
21310
21311 # func_basename file
21312 func_basename ()
21313 {
21314 func_basename_result="${1##*/}"
21315 }
21316
21317 # func_dirname_and_basename file append nondir_replacement
21318 # perform func_basename and func_dirname in a single function
21319 # call:
21320 # dirname: Compute the dirname of FILE. If nonempty,
21321 # add APPEND to the result, otherwise set result
21322 # to NONDIR_REPLACEMENT.
21323 # value returned in "$func_dirname_result"
21324 # basename: Compute filename of FILE.
21325 # value retuned in "$func_basename_result"
21326 # Implementation must be kept synchronized with func_dirname
21327 # and func_basename. For efficiency, we do not delegate to
21328 # those functions but instead duplicate the functionality here.
21329 func_dirname_and_basename ()
21330 {
21331 case ${1} in
21332 */*) func_dirname_result="${1%/*}${2}" ;;
21333 * ) func_dirname_result="${3}" ;;
21334 esac
21335 func_basename_result="${1##*/}"
21336 }
21337
21338 # func_stripname prefix suffix name
21339 # strip PREFIX and SUFFIX off of NAME.
21340 # PREFIX and SUFFIX must not contain globbing or regex special
21341 # characters, hashes, percent signs, but SUFFIX may contain a leading
21342 # dot (in which case that matches only a dot).
21343 func_stripname ()
21344 {
21345 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21346 # positional parameters, so assign one to ordinary parameter first.
21347 func_stripname_result=${3}
21348 func_stripname_result=${func_stripname_result#"${1}"}
21349 func_stripname_result=${func_stripname_result%"${2}"}
21350 }
21351
21352 # func_opt_split
21353 func_opt_split ()
21354 {
21355 func_opt_split_opt=${1%%=*}
21356 func_opt_split_arg=${1#*=}
21357 }
21358
21359 # func_lo2o object
21360 func_lo2o ()
21361 {
21362 case ${1} in
21363 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21364 *) func_lo2o_result=${1} ;;
21365 esac
21366 }
21367
21368 # func_xform libobj-or-source
21369 func_xform ()
21370 {
21371 func_xform_result=${1%.*}.lo
21372 }
21373
21374 # func_arith arithmetic-term...
21375 func_arith ()
21376 {
21377 func_arith_result=$(( $* ))
21378 }
21379
21380 # func_len string
21381 # STRING may not start with a hyphen.
21382 func_len ()
21383 {
21384 func_len_result=${#1}
21385 }
21386
21387 _LT_EOF
21388 ;;
21389 *) # Bourne compatible functions.
21390 cat << \_LT_EOF >> "$cfgfile"
21391
21392 # func_dirname file append nondir_replacement
21393 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21394 # otherwise set result to NONDIR_REPLACEMENT.
21395 func_dirname ()
21396 {
21397 # Extract subdirectory from the argument.
21398 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21399 if test "X$func_dirname_result" = "X${1}"; then
21400 func_dirname_result="${3}"
21401 else
21402 func_dirname_result="$func_dirname_result${2}"
21403 fi
21404 }
21405
21406 # func_basename file
21407 func_basename ()
21408 {
21409 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21410 }
21411
21412
21413 # func_stripname prefix suffix name
21414 # strip PREFIX and SUFFIX off of NAME.
21415 # PREFIX and SUFFIX must not contain globbing or regex special
21416 # characters, hashes, percent signs, but SUFFIX may contain a leading
21417 # dot (in which case that matches only a dot).
21418 # func_strip_suffix prefix name
21419 func_stripname ()
21420 {
21421 case ${2} in
21422 .*) func_stripname_result=`$ECHO "X${3}" \
21423 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21424 *) func_stripname_result=`$ECHO "X${3}" \
21425 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21426 esac
21427 }
21428
21429 # sed scripts:
21430 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21431 my_sed_long_arg='1s/^-[^=]*=//'
21432
21433 # func_opt_split
21434 func_opt_split ()
21435 {
21436 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21437 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21438 }
21439
21440 # func_lo2o object
21441 func_lo2o ()
21442 {
21443 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21444 }
21445
21446 # func_xform libobj-or-source
21447 func_xform ()
21448 {
21449 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21450 }
21451
21452 # func_arith arithmetic-term...
21453 func_arith ()
21454 {
21455 func_arith_result=`expr "$@"`
21456 }
21457
21458 # func_len string
21459 # STRING may not start with a hyphen.
21460 func_len ()
21461 {
21462 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21463 }
21464
21465 _LT_EOF
21466 esac
21467
21468 case $lt_shell_append in
21469 yes)
21470 cat << \_LT_EOF >> "$cfgfile"
21471
21472 # func_append var value
21473 # Append VALUE to the end of shell variable VAR.
21474 func_append ()
21475 {
21476 eval "$1+=\$2"
21477 }
21478 _LT_EOF
21479 ;;
21480 *)
21481 cat << \_LT_EOF >> "$cfgfile"
21482
21483 # func_append var value
21484 # Append VALUE to the end of shell variable VAR.
21485 func_append ()
21486 {
21487 eval "$1=\$$1\$2"
21488 }
21489
21490 _LT_EOF
21491 ;;
21492 esac
21493
21494
21495 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21496 || (rm -f "$cfgfile"; exit 1)
21497
21498 mv -f "$cfgfile" "$ofile" ||
21499 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21500 chmod +x "$ofile"
21501
21502
21503 cat <<_LT_EOF >> "$ofile"
21504
21505 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21506
21507 # The linker used to build libraries.
21508 LD=$lt_LD_CXX
21509
21510 # Commands used to build an old-style archive.
21511 old_archive_cmds=$lt_old_archive_cmds_CXX
21512
21513 # A language specific compiler.
21514 CC=$lt_compiler_CXX
21515
21516 # Is the compiler the GNU compiler?
21517 with_gcc=$GCC_CXX
21518
21519 # Compiler flag to turn off builtin functions.
21520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21521
21522 # How to pass a linker flag through the compiler.
21523 wl=$lt_lt_prog_compiler_wl_CXX
21524
21525 # Additional compiler flags for building library objects.
21526 pic_flag=$lt_lt_prog_compiler_pic_CXX
21527
21528 # Compiler flag to prevent dynamic linking.
21529 link_static_flag=$lt_lt_prog_compiler_static_CXX
21530
21531 # Does compiler simultaneously support -c and -o options?
21532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21533
21534 # Whether or not to add -lc for building shared libraries.
21535 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21536
21537 # Whether or not to disallow shared libs when runtime libs are static.
21538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21539
21540 # Compiler flag to allow reflexive dlopens.
21541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21542
21543 # Compiler flag to generate shared objects directly from archives.
21544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21545
21546 # Whether the compiler copes with passing no objects directly.
21547 compiler_needs_object=$lt_compiler_needs_object_CXX
21548
21549 # Create an old-style archive from a shared archive.
21550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21551
21552 # Create a temporary old-style archive to link instead of a shared archive.
21553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21554
21555 # Commands used to build a shared archive.
21556 archive_cmds=$lt_archive_cmds_CXX
21557 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21558
21559 # Commands used to build a loadable module if different from building
21560 # a shared archive.
21561 module_cmds=$lt_module_cmds_CXX
21562 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21563
21564 # Whether we are building with GNU ld or not.
21565 with_gnu_ld=$lt_with_gnu_ld_CXX
21566
21567 # Flag that allows shared libraries with undefined symbols to be built.
21568 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21569
21570 # Flag that enforces no undefined symbols.
21571 no_undefined_flag=$lt_no_undefined_flag_CXX
21572
21573 # Flag to hardcode \$libdir into a binary during linking.
21574 # This must work even if \$libdir does not exist
21575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21576
21577 # If ld is used when linking, flag to hardcode \$libdir into a binary
21578 # during linking. This must work even if \$libdir does not exist.
21579 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21580
21581 # Whether we need a single "-rpath" flag with a separated argument.
21582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21583
21584 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21585 # DIR into the resulting binary.
21586 hardcode_direct=$hardcode_direct_CXX
21587
21588 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21589 # DIR into the resulting binary and the resulting library dependency is
21590 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21591 # library is relocated.
21592 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21593
21594 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21595 # into the resulting binary.
21596 hardcode_minus_L=$hardcode_minus_L_CXX
21597
21598 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21599 # into the resulting binary.
21600 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21601
21602 # Set to "yes" if building a shared library automatically hardcodes DIR
21603 # into the library and all subsequent libraries and executables linked
21604 # against it.
21605 hardcode_automatic=$hardcode_automatic_CXX
21606
21607 # Set to yes if linker adds runtime paths of dependent libraries
21608 # to runtime path list.
21609 inherit_rpath=$inherit_rpath_CXX
21610
21611 # Whether libtool must link a program against all its dependency libraries.
21612 link_all_deplibs=$link_all_deplibs_CXX
21613
21614 # Fix the shell variable \$srcfile for the compiler.
21615 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21616
21617 # Set to "yes" if exported symbols are required.
21618 always_export_symbols=$always_export_symbols_CXX
21619
21620 # The commands to list exported symbols.
21621 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21622
21623 # Symbols that should not be listed in the preloaded symbols.
21624 exclude_expsyms=$lt_exclude_expsyms_CXX
21625
21626 # Symbols that must always be exported.
21627 include_expsyms=$lt_include_expsyms_CXX
21628
21629 # Commands necessary for linking programs (against libraries) with templates.
21630 prelink_cmds=$lt_prelink_cmds_CXX
21631
21632 # Specify filename containing input files.
21633 file_list_spec=$lt_file_list_spec_CXX
21634
21635 # How to hardcode a shared library path into an executable.
21636 hardcode_action=$hardcode_action_CXX
21637
21638 # The directories searched by this compiler when creating a shared library.
21639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21640
21641 # Dependencies to place before and after the objects being linked to
21642 # create a shared library.
21643 predep_objects=$lt_predep_objects_CXX
21644 postdep_objects=$lt_postdep_objects_CXX
21645 predeps=$lt_predeps_CXX
21646 postdeps=$lt_postdeps_CXX
21647
21648 # The library search path used internally by the compiler when linking
21649 # a shared library.
21650 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21651
21652 # ### END LIBTOOL TAG CONFIG: CXX
21653 _LT_EOF
21654
21655 ;;
21656
21657 esac
21658 done # for ac_tag
21659
21660
21661 as_fn_exit 0
21662 _ACEOF
21663 ac_clean_files=$ac_clean_files_save
21664
21665 test $ac_write_fail = 0 ||
21666 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21667
21668
21669 # configure is writing to config.log, and then calls config.status.
21670 # config.status does its own redirection, appending to config.log.
21671 # Unfortunately, on DOS this fails, as config.log is still kept open
21672 # by configure, so config.status won't be able to write to it; its
21673 # output is simply discarded. So we exec the FD to /dev/null,
21674 # effectively closing config.log, so it can be properly (re)opened and
21675 # appended to by config.status. When coming back to configure, we
21676 # need to make the FD available again.
21677 if test "$no_create" != yes; then
21678 ac_cs_success=:
21679 ac_config_status_args=
21680 test "$silent" = yes &&
21681 ac_config_status_args="$ac_config_status_args --quiet"
21682 exec 5>/dev/null
21683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21684 exec 5>>config.log
21685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21686 # would make configure fail if this is the last instruction.
21687 $ac_cs_success || as_fn_exit $?
21688 fi
21689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21691 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21692 fi
21693