]> git.saurik.com Git - cycript.git/blob - configure
Support SO variable even when not Mach.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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, 2010 Free Software
10 # Foundation, 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373 fi
374 $as_echo "$as_me: error: $2" >&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, old GNU/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_ATTACH_GROUP
749 CY_OBJECTIVEC_MACH
750 ac_ct__NM
751 _NM
752 ac_ct__LIPO
753 _LIPO
754 ac_ct__OTOOL
755 _OTOOL
756 SO
757 LTLIBICONV
758 LIBICONV
759 GNUSTEP_CONFIG
760 CY_OBJECTIVEC
761 LIBFFI_LIBS
762 LIBFFI_CFLAGS
763 CY_EXECUTE
764 WEBKIT_LIBS
765 WEBKIT_CFLAGS
766 LTLIBAPR
767 ac_ct_OBJCXX
768 OBJCXXFLAGS
769 OBJCXX
770 CXXCPP
771 ac_ct_CXX
772 CXXFLAGS
773 CXX
774 SVNVERSION
775 SVN
776 GNUTAR
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 GPERF
781 FLEX
782 BISON
783 TIME
784 _BASH
785 LTFLAGS
786 GMAKE
787 ifGNUmake
788 PKG_CONFIG_LIBDIR
789 PKG_CONFIG_PATH
790 PKG_CONFIG
791 CPP
792 OTOOL64
793 OTOOL
794 LIPO
795 NMEDIT
796 DSYMUTIL
797 lt_ECHO
798 RANLIB
799 STRIP
800 AR
801 OBJDUMP
802 LN_S
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 EGREP
809 GREP
810 SED
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
817 CC
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 LIBTOOL
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_static
869 enable_shared
870 with_pic
871 enable_fast_install
872 with_gnu_ld
873 enable_libtool_lock
874 enable_universal_binary
875 with_frameworks
876 with_apr
877 enable_javascript
878 enable_rpath
879 with_libiconv_prefix
880 '
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CPP
890 PKG_CONFIG
891 PKG_CONFIG_PATH
892 PKG_CONFIG_LIBDIR
893 BISON
894 FLEX
895 GPERF
896 CXX
897 CXXFLAGS
898 CCC
899 CXXCPP
900 OBJCXX
901 OBJCXXFLAGS
902 WEBKIT_CFLAGS
903 WEBKIT_LIBS
904 LIBFFI_CFLAGS
905 LIBFFI_LIBS
906 GNUSTEP_CONFIG'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
972 esac
973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
979
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 bindir=$ac_optarg ;;
984
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
999
1000 -datadir | --datadir | --datadi | --datad)
1001 ac_prev=datadir ;;
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1004
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
1027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1037
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1073
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1078
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1108
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1125
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1146
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1182
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
1201 sbindir=$ac_optarg ;;
1202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
1212 sharedstatedir=$ac_optarg ;;
1213
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
1217 site=$ac_optarg ;;
1218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1223
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1230
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1241
1242 -with-* | --with-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
1257
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1291
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1294 ;;
1295
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302 esac
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1305
1306 *)
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1312 ;;
1313
1314 esac
1315 done
1316
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1335 do
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
1344 case $ac_val in
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 esac
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used" >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $? "working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $? "pwd does not report name of working directory"
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\).*/{
1406 s//\1/
1407 q
1408 }
1409 s/.*/./; q'`
1410 srcdir=$ac_confdir
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 srcdir=..
1413 fi
1414 else
1415 ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1428 fi
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 done
1441
1442 #
1443 # Report the --help message.
1444 #
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1448 cat <<_ACEOF
1449 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1450
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1455
1456 Defaults for the options are specified in brackets.
1457
1458 Configuration:
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking ...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 [PREFIX]
1474
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1479
1480 For better control, use the options below.
1481
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1502 _ACEOF
1503
1504 cat <<\_ACEOF
1505
1506 System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of Cycript 0.9:";;
1515 esac
1516 cat <<\_ACEOF
1517
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-static[=PKGS] build static libraries [default=no]
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --disable-universal-binary
1528 do not build with universal binary support on Darwin
1529 --enable-javascript[=ENGINE]
1530 use a JavaScript runtime (currently the only
1531 available option for ENGINE is JavaScriptCore)
1532 [default=yes]
1533 --disable-rpath do not hardcode runtime library paths
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1542 path for frameworks with -F
1543 --with-apr=PATH prefix for installed APR or the full path to
1544 apr-config
1545 --with-gnu-ld assume the C compiler uses GNU ld default=no
1546 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1547 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1548
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 PKG_CONFIG path to pkg-config utility
1559 PKG_CONFIG_PATH
1560 directories to add to pkg-config's search path
1561 PKG_CONFIG_LIBDIR
1562 path overriding pkg-config's built-in search path
1563 BISON GNU Project parser generator (yacc replacement)
1564 FLEX the fast lexical analyser generator
1565 GPERF perfect hash function generator
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 CXXCPP C++ preprocessor
1569 OBJCXX Objective C++ compiler command
1570 OBJCXXFLAGS Objective C++ compiler flags
1571 WEBKIT_CFLAGS
1572 C compiler flags for WEBKIT, overriding pkg-config
1573 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1574 LIBFFI_CFLAGS
1575 C compiler flags for LIBFFI, overriding pkg-config
1576 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1577 GNUSTEP_CONFIG
1578 prints information about the current gnustep installation
1579
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to <saurik@saurik.com>.
1584 Cycript home page: <http://www.cycript.org/>.
1585 _ACEOF
1586 ac_status=$?
1587 fi
1588
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
1595 ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614 .) # We are building in place.
1615 ac_srcdir=.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646 cat <<\_ACEOF
1647 Cycript configure 0.9
1648 generated by GNU Autoconf 2.67
1649
1650 Copyright (C) 2010 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654 exit
1655 fi
1656
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1660
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 $as_test_x conftest$ac_exeext
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval "test \"\${$3+set}\"" = set; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
1774 } # ac_fn_c_check_header_compile
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_try_run LINENO
1814 # ----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816 # that executables *can* be run.
1817 ac_fn_c_try_run ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848 fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_run
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval "test \"\${$3+set}\"" = set; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877 #ifdef __STDC__
1878 # include <limits.h>
1879 #else
1880 # include <assert.h>
1881 #endif
1882
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 ();
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main ()
1901 {
1902 return $2 ();
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_cxx_try_compile LINENO
1923 # ----------------------------
1924 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_cxx_try_compile ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext
1929 if { { ac_try="$ac_compile"
1930 case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_compile") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1942 fi
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest.$ac_objext; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_retval=1
1954 fi
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 as_fn_set_status $ac_retval
1957
1958 } # ac_fn_cxx_try_compile
1959
1960 # ac_fn_cxx_try_cpp LINENO
1961 # ------------------------
1962 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_cxx_try_cpp ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } > conftest.i && {
1982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_cxx_try_cpp
1996
1997 # ac_fn_cxx_try_link LINENO
1998 # -------------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_link ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2017 fi
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_cxx_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest$ac_exeext && {
2023 test "$cross_compiling" = yes ||
2024 $as_test_x conftest$ac_exeext
2025 }; then :
2026 ac_retval=0
2027 else
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032 fi
2033 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 # interfere with the next link command; also delete a directory that is
2036 # left behind by Apple's compiler. We do this before executing the actions.
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039 as_fn_set_status $ac_retval
2040
2041 } # ac_fn_cxx_try_link
2042
2043 # ac_fn_objcxx_try_compile LINENO
2044 # -------------------------------
2045 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_objcxx_try_compile ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext
2050 if { { ac_try="$ac_compile"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_compile") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_objcxx_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest.$ac_objext; then :
2069 ac_retval=0
2070 else
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075 fi
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 as_fn_set_status $ac_retval
2078
2079 } # ac_fn_objcxx_try_compile
2080
2081 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2082 # ---------------------------------------------------------
2083 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2084 # the include files in INCLUDES and setting the cache variable VAR
2085 # accordingly.
2086 ac_fn_cxx_check_header_mongrel ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if eval "test \"\${$3+set}\"" = set; then :
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval "test \"\${$3+set}\"" = set; then :
2093 $as_echo_n "(cached) " >&6
2094 fi
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 else
2099 # Is the header compilable?
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2101 $as_echo_n "checking $2 usability... " >&6; }
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 #include <$2>
2106 _ACEOF
2107 if ac_fn_cxx_try_compile "$LINENO"; then :
2108 ac_header_compiler=yes
2109 else
2110 ac_header_compiler=no
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2114 $as_echo "$ac_header_compiler" >&6; }
2115
2116 # Is the header present?
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2118 $as_echo_n "checking $2 presence... " >&6; }
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 #include <$2>
2122 _ACEOF
2123 if ac_fn_cxx_try_cpp "$LINENO"; then :
2124 ac_header_preproc=yes
2125 else
2126 ac_header_preproc=no
2127 fi
2128 rm -f conftest.err conftest.i conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2130 $as_echo "$ac_header_preproc" >&6; }
2131
2132 # So? What about this header?
2133 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2134 yes:no: )
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2136 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ;;
2140 no:yes:* )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2142 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2144 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2146 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2148 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151 ( $as_echo "## -------------------------------- ##
2152 ## Report this to saurik@saurik.com ##
2153 ## -------------------------------- ##"
2154 ) | sed "s/^/$as_me: WARNING: /" >&2
2155 ;;
2156 esac
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158 $as_echo_n "checking for $2... " >&6; }
2159 if eval "test \"\${$3+set}\"" = set; then :
2160 $as_echo_n "(cached) " >&6
2161 else
2162 eval "$3=\$ac_header_compiler"
2163 fi
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 fi
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169
2170 } # ac_fn_cxx_check_header_mongrel
2171
2172 # ac_fn_objcxx_try_link LINENO
2173 # ----------------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded.
2175 ac_fn_objcxx_try_link ()
2176 {
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 rm -f conftest.$ac_objext conftest$ac_exeext
2179 if { { ac_try="$ac_link"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>conftest.err
2187 ac_status=$?
2188 if test -s conftest.err; then
2189 grep -v '^ *+' conftest.err >conftest.er1
2190 cat conftest.er1 >&5
2191 mv -f conftest.er1 conftest.err
2192 fi
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && {
2195 test -z "$ac_objcxx_werror_flag" ||
2196 test ! -s conftest.err
2197 } && test -s conftest$ac_exeext && {
2198 test "$cross_compiling" = yes ||
2199 $as_test_x conftest$ac_exeext
2200 }; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207 fi
2208 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210 # interfere with the next link command; also delete a directory that is
2211 # left behind by Apple's compiler. We do this before executing the actions.
2212 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214 as_fn_set_status $ac_retval
2215
2216 } # ac_fn_objcxx_try_link
2217 cat >config.log <<_ACEOF
2218 This file contains any messages produced by compilers while
2219 running configure, to aid debugging if configure makes a mistake.
2220
2221 It was created by Cycript $as_me 0.9, which was
2222 generated by GNU Autoconf 2.67. Invocation command line was
2223
2224 $ $0 $@
2225
2226 _ACEOF
2227 exec 5>>config.log
2228 {
2229 cat <<_ASUNAME
2230 ## --------- ##
2231 ## Platform. ##
2232 ## --------- ##
2233
2234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2239
2240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2242
2243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2246 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2250
2251 _ASUNAME
2252
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 $as_echo "PATH: $as_dir"
2259 done
2260 IFS=$as_save_IFS
2261
2262 } >&5
2263
2264 cat >&5 <<_ACEOF
2265
2266
2267 ## ----------- ##
2268 ## Core tests. ##
2269 ## ----------- ##
2270
2271 _ACEOF
2272
2273
2274 # Keep a trace of the command line.
2275 # Strip out --no-create and --no-recursion so they do not pile up.
2276 # Strip out --silent because we don't want to record it for future runs.
2277 # Also quote any args containing shell meta-characters.
2278 # Make two passes to allow for proper duplicate-argument suppression.
2279 ac_configure_args=
2280 ac_configure_args0=
2281 ac_configure_args1=
2282 ac_must_keep_next=false
2283 for ac_pass in 1 2
2284 do
2285 for ac_arg
2286 do
2287 case $ac_arg in
2288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2290 | -silent | --silent | --silen | --sile | --sil)
2291 continue ;;
2292 *\'*)
2293 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 esac
2295 case $ac_pass in
2296 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2297 2)
2298 as_fn_append ac_configure_args1 " '$ac_arg'"
2299 if test $ac_must_keep_next = true; then
2300 ac_must_keep_next=false # Got value, back to normal.
2301 else
2302 case $ac_arg in
2303 *=* | --config-cache | -C | -disable-* | --disable-* \
2304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2306 | -with-* | --with-* | -without-* | --without-* | --x)
2307 case "$ac_configure_args0 " in
2308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2309 esac
2310 ;;
2311 -* ) ac_must_keep_next=true ;;
2312 esac
2313 fi
2314 as_fn_append ac_configure_args " '$ac_arg'"
2315 ;;
2316 esac
2317 done
2318 done
2319 { ac_configure_args0=; unset ac_configure_args0;}
2320 { ac_configure_args1=; unset ac_configure_args1;}
2321
2322 # When interrupted or exit'd, cleanup temporary files, and complete
2323 # config.log. We remove comments because anyway the quotes in there
2324 # would cause problems or look ugly.
2325 # WARNING: Use '\'' to represent an apostrophe within the trap.
2326 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2327 trap 'exit_status=$?
2328 # Save into config.log some information that might help in debugging.
2329 {
2330 echo
2331
2332 $as_echo "## ---------------- ##
2333 ## Cache variables. ##
2334 ## ---------------- ##"
2335 echo
2336 # The following way of writing the cache mishandles newlines in values,
2337 (
2338 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in #(
2341 *${as_nl}*)
2342 case $ac_var in #(
2343 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 esac
2346 case $ac_var in #(
2347 _ | IFS | as_nl) ;; #(
2348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349 *) { eval $ac_var=; unset $ac_var;} ;;
2350 esac ;;
2351 esac
2352 done
2353 (set) 2>&1 |
2354 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355 *${as_nl}ac_space=\ *)
2356 sed -n \
2357 "s/'\''/'\''\\\\'\'''\''/g;
2358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359 ;; #(
2360 *)
2361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362 ;;
2363 esac |
2364 sort
2365 )
2366 echo
2367
2368 $as_echo "## ----------------- ##
2369 ## Output variables. ##
2370 ## ----------------- ##"
2371 echo
2372 for ac_var in $ac_subst_vars
2373 do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in
2376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 esac
2378 $as_echo "$ac_var='\''$ac_val'\''"
2379 done | sort
2380 echo
2381
2382 if test -n "$ac_subst_files"; then
2383 $as_echo "## ------------------- ##
2384 ## File substitutions. ##
2385 ## ------------------- ##"
2386 echo
2387 for ac_var in $ac_subst_files
2388 do
2389 eval ac_val=\$$ac_var
2390 case $ac_val in
2391 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392 esac
2393 $as_echo "$ac_var='\''$ac_val'\''"
2394 done | sort
2395 echo
2396 fi
2397
2398 if test -s confdefs.h; then
2399 $as_echo "## ----------- ##
2400 ## confdefs.h. ##
2401 ## ----------- ##"
2402 echo
2403 cat confdefs.h
2404 echo
2405 fi
2406 test "$ac_signal" != 0 &&
2407 $as_echo "$as_me: caught signal $ac_signal"
2408 $as_echo "$as_me: exit $exit_status"
2409 } >&5
2410 rm -f core *.core core.conftest.* &&
2411 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2412 exit $exit_status
2413 ' 0
2414 for ac_signal in 1 2 13 15; do
2415 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2416 done
2417 ac_signal=0
2418
2419 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2420 rm -f -r conftest* confdefs.h
2421
2422 $as_echo "/* confdefs.h */" > confdefs.h
2423
2424 # Predefined preprocessor variables.
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_NAME "$PACKAGE_NAME"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_STRING "$PACKAGE_STRING"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_URL "$PACKAGE_URL"
2448 _ACEOF
2449
2450
2451 # Let the site file select an alternate cache file if it wants to.
2452 # Prefer an explicitly selected file to automatically selected ones.
2453 ac_site_file1=NONE
2454 ac_site_file2=NONE
2455 if test -n "$CONFIG_SITE"; then
2456 # We do not want a PATH search for config.site.
2457 case $CONFIG_SITE in #((
2458 -*) ac_site_file1=./$CONFIG_SITE;;
2459 */*) ac_site_file1=$CONFIG_SITE;;
2460 *) ac_site_file1=./$CONFIG_SITE;;
2461 esac
2462 elif test "x$prefix" != xNONE; then
2463 ac_site_file1=$prefix/share/config.site
2464 ac_site_file2=$prefix/etc/config.site
2465 else
2466 ac_site_file1=$ac_default_prefix/share/config.site
2467 ac_site_file2=$ac_default_prefix/etc/config.site
2468 fi
2469 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2470 do
2471 test "x$ac_site_file" = xNONE && continue
2472 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2474 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2475 sed 's/^/| /' "$ac_site_file" >&5
2476 . "$ac_site_file" \
2477 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479 as_fn_error $? "failed to load site script $ac_site_file
2480 See \`config.log' for more details" "$LINENO" 5 ; }
2481 fi
2482 done
2483
2484 if test -r "$cache_file"; then
2485 # Some versions of bash will fail to source /dev/null (special files
2486 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2487 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2489 $as_echo "$as_me: loading cache $cache_file" >&6;}
2490 case $cache_file in
2491 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2492 *) . "./$cache_file";;
2493 esac
2494 fi
2495 else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2497 $as_echo "$as_me: creating cache $cache_file" >&6;}
2498 >$cache_file
2499 fi
2500
2501 # Check that the precious variables saved in the cache have kept the same
2502 # value.
2503 ac_cache_corrupted=false
2504 for ac_var in $ac_precious_vars; do
2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506 eval ac_new_set=\$ac_env_${ac_var}_set
2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508 eval ac_new_val=\$ac_env_${ac_var}_value
2509 case $ac_old_set,$ac_new_set in
2510 set,)
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2512 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2514 ,set)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,);;
2519 *)
2520 if test "x$ac_old_val" != "x$ac_new_val"; then
2521 # differences in whitespace do not lead to failure.
2522 ac_old_val_w=`echo x $ac_old_val`
2523 ac_new_val_w=`echo x $ac_new_val`
2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2526 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2527 ac_cache_corrupted=:
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2530 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2531 eval $ac_var=\$ac_old_val
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2534 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2536 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2537 fi;;
2538 esac
2539 # Pass precious variables to config.status.
2540 if test "$ac_new_set" = set; then
2541 case $ac_new_val in
2542 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 *) ac_arg=$ac_var=$ac_new_val ;;
2544 esac
2545 case " $ac_configure_args " in
2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548 esac
2549 fi
2550 done
2551 if $ac_cache_corrupted; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2556 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2557 fi
2558 ## -------------------- ##
2559 ## Main body of script. ##
2560 ## -------------------- ##
2561
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567
2568
2569
2570 ac_aux_dir=
2571 for ac_dir in . "$srcdir"/.; do
2572 if test -f "$ac_dir/install-sh"; then
2573 ac_aux_dir=$ac_dir
2574 ac_install_sh="$ac_aux_dir/install-sh -c"
2575 break
2576 elif test -f "$ac_dir/install.sh"; then
2577 ac_aux_dir=$ac_dir
2578 ac_install_sh="$ac_aux_dir/install.sh -c"
2579 break
2580 elif test -f "$ac_dir/shtool"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/shtool install -c"
2583 break
2584 fi
2585 done
2586 if test -z "$ac_aux_dir"; then
2587 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2588 fi
2589
2590 # These three variables are undocumented and unsupported,
2591 # and are intended to be withdrawn in a future Autoconf release.
2592 # They can cause serious problems if a builder's source tree is in a directory
2593 # whose full name contains unusual characters.
2594 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2595 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2596 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2597
2598
2599 case `pwd` in
2600 *\ * | *\ *)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2602 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2603 esac
2604
2605
2606
2607 macro_version='2.2.6b'
2608 macro_revision='1.3017'
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622 ltmain="$ac_aux_dir/ltmain.sh"
2623
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if test "${ac_cv_build+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2645 *-*-*) ;;
2646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2647 esac
2648 build=$ac_cv_build
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_build
2651 shift
2652 build_cpu=$1
2653 build_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 build_os=$*
2658 IFS=$ac_save_IFS
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if test "${ac_cv_host+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2669 else
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2672 fi
2673
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2677 case $ac_cv_host in
2678 *-*-*) ;;
2679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2680 esac
2681 host=$ac_cv_host
2682 ac_save_IFS=$IFS; IFS='-'
2683 set x $ac_cv_host
2684 shift
2685 host_cpu=$1
2686 host_vendor=$2
2687 shift; shift
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2690 host_os=$*
2691 IFS=$ac_save_IFS
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_CC+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$ac_cv_prog_CC"; then
2740 ac_ct_CC=$CC
2741 # Extract the first word of "gcc", so it can be a program name with args.
2742 set dummy gcc; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 if test -n "$ac_ct_CC"; then
2749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_CC="gcc"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771 $as_echo "$ac_ct_CC" >&6; }
2772 else
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777 if test "x$ac_ct_CC" = x; then
2778 CC=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786 CC=$ac_ct_CC
2787 fi
2788 else
2789 CC="$ac_cv_prog_CC"
2790 fi
2791
2792 if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}cc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if test "${ac_cv_prog_CC+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_CC="${ac_tool_prefix}cc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 fi
2833 if test -z "$CC"; then
2834 # Extract the first word of "cc", so it can be a program name with args.
2835 set dummy cc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_CC+set}" = set; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844 ac_prog_rejected=no
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853 ac_prog_rejected=yes
2854 continue
2855 fi
2856 ac_cv_prog_CC="cc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 if test $ac_prog_rejected = yes; then
2865 # We found a bogon in the path, so make sure we never use it.
2866 set dummy $ac_cv_prog_CC
2867 shift
2868 if test $# != 0; then
2869 # We chose a different compiler from the bogus one.
2870 # However, it has the same basename, so the bogon will be chosen
2871 # first if we set CC to just the basename; use the full file name.
2872 shift
2873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2874 fi
2875 fi
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888 fi
2889 if test -z "$CC"; then
2890 if test -n "$ac_tool_prefix"; then
2891 for ac_prog in cl.exe
2892 do
2893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if test "${ac_cv_prog_CC+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2928
2929
2930 test -n "$CC" && break
2931 done
2932 fi
2933 if test -z "$CC"; then
2934 ac_ct_CC=$CC
2935 for ac_prog in cl.exe
2936 do
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy $ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_ac_ct_CC="$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 test -n "$ac_ct_CC" && break
2975 done
2976
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 CC=$ac_ct_CC
2987 fi
2988 fi
2989
2990 fi
2991
2992
2993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 as_fn_error $? "no acceptable C compiler found in \$PATH
2996 See \`config.log' for more details" "$LINENO" 5 ; }
2997
2998 # Provide some information about the compiler.
2999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3000 set X $ac_compile
3001 ac_compiler=$2
3002 for ac_option in --version -v -V -qversion; do
3003 { { ac_try="$ac_compiler $ac_option >&5"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3011 ac_status=$?
3012 if test -s conftest.err; then
3013 sed '10a\
3014 ... rest of stderr output deleted ...
3015 10q' conftest.err >conftest.er1
3016 cat conftest.er1 >&5
3017 fi
3018 rm -f conftest.er1 conftest.err
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }
3021 done
3022
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3025
3026 int
3027 main ()
3028 {
3029
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 ac_clean_files_save=$ac_clean_files
3035 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3036 # Try to create an executable without -o first, disregard a.out.
3037 # It will help us diagnose broken compilers, and finding out an intuition
3038 # of exeext.
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3040 $as_echo_n "checking whether the C compiler works... " >&6; }
3041 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3042
3043 # The possible output files:
3044 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045
3046 ac_rmfiles=
3047 for ac_file in $ac_files
3048 do
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3052 esac
3053 done
3054 rm -f $ac_rmfiles
3055
3056 if { { ac_try="$ac_link_default"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link_default") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3067 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3068 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3069 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3070 # so that the user can short-circuit this test for compilers unknown to
3071 # Autoconf.
3072 for ac_file in $ac_files ''
3073 do
3074 test -f "$ac_file" || continue
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3077 ;;
3078 [ab].out )
3079 # We found the default executable, but exeext='' is most
3080 # certainly right.
3081 break;;
3082 *.* )
3083 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3084 then :; else
3085 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 fi
3087 # We set ac_cv_exeext here because the later test for it is not
3088 # safe: cross compilers may not add the suffix if given an `-o'
3089 # argument, so we may need to know it at that point already.
3090 # Even if this section looks crufty: it has the advantage of
3091 # actually working.
3092 break;;
3093 * )
3094 break;;
3095 esac
3096 done
3097 test "$ac_cv_exeext" = no && ac_cv_exeext=
3098
3099 else
3100 ac_file=''
3101 fi
3102 if test -z "$ac_file"; then :
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 $as_echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error 77 "C compiler cannot create executables
3111 See \`config.log' for more details" "$LINENO" 5 ; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114 $as_echo "yes" >&6; }
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3117 $as_echo_n "checking for C compiler default output file name... " >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119 $as_echo "$ac_file" >&6; }
3120 ac_exeext=$ac_cv_exeext
3121
3122 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3123 ac_clean_files=$ac_clean_files_save
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3125 $as_echo_n "checking for suffix of executables... " >&6; }
3126 if { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; then :
3137 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3138 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3139 # work properly (i.e., refer to `conftest.exe'), while it won't with
3140 # `rm'.
3141 for ac_file in conftest.exe conftest conftest.*; do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146 break;;
3147 * ) break;;
3148 esac
3149 done
3150 else
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3154 See \`config.log' for more details" "$LINENO" 5 ; }
3155 fi
3156 rm -f conftest conftest$ac_cv_exeext
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158 $as_echo "$ac_cv_exeext" >&6; }
3159
3160 rm -f conftest.$ac_ext
3161 EXEEXT=$ac_cv_exeext
3162 ac_exeext=$EXEEXT
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3165 #include <stdio.h>
3166 int
3167 main ()
3168 {
3169 FILE *f = fopen ("conftest.out", "w");
3170 return ferror (f) || fclose (f) != 0;
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 ac_clean_files="$ac_clean_files conftest.out"
3177 # Check that the compiler produces executables we can run. If not, either
3178 # the compiler is broken, or we cross compile.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3180 $as_echo_n "checking whether we are cross compiling... " >&6; }
3181 if test "$cross_compiling" != yes; then
3182 { { ac_try="$ac_link"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_link") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }
3193 if { ac_try='./conftest$ac_cv_exeext'
3194 { { case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; }; then
3204 cross_compiling=no
3205 else
3206 if test "$cross_compiling" = maybe; then
3207 cross_compiling=yes
3208 else
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "cannot run C compiled programs.
3212 If you meant to cross compile, use \`--host'.
3213 See \`config.log' for more details" "$LINENO" 5 ; }
3214 fi
3215 fi
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3218 $as_echo "$cross_compiling" >&6; }
3219
3220 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3221 ac_clean_files=$ac_clean_files_save
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3223 $as_echo_n "checking for suffix of object files... " >&6; }
3224 if test "${ac_cv_objext+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3229
3230 int
3231 main ()
3232 {
3233
3234 ;
3235 return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.o conftest.obj
3239 if { { ac_try="$ac_compile"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compile") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 for ac_file in conftest.o conftest.obj conftest.*; do
3251 test -f "$ac_file" || continue;
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3254 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3255 break;;
3256 esac
3257 done
3258 else
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error $? "cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details" "$LINENO" 5 ; }
3266 fi
3267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3270 $as_echo "$ac_cv_objext" >&6; }
3271 OBJEXT=$ac_cv_objext
3272 ac_objext=$OBJEXT
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3274 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3275 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3280
3281 int
3282 main ()
3283 {
3284 #ifndef __GNUC__
3285 choke me
3286 #endif
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_compiler_gnu=yes
3294 else
3295 ac_compiler_gnu=no
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3299
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3302 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3303 if test $ac_compiler_gnu = yes; then
3304 GCC=yes
3305 else
3306 GCC=
3307 fi
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3311 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3312 if test "${ac_cv_prog_cc_g+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 ac_save_c_werror_flag=$ac_c_werror_flag
3316 ac_c_werror_flag=yes
3317 ac_cv_prog_cc_g=no
3318 CFLAGS="-g"
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321
3322 int
3323 main ()
3324 {
3325
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_g=yes
3332 else
3333 CFLAGS=""
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336
3337 int
3338 main ()
3339 {
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346
3347 else
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3349 CFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352
3353 int
3354 main ()
3355 {
3356
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_prog_cc_g=yes
3363 fi
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 fi
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_c_werror_flag=$ac_save_c_werror_flag
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3372 $as_echo "$ac_cv_prog_cc_g" >&6; }
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3377 CFLAGS="-g -O2"
3378 else
3379 CFLAGS="-g"
3380 fi
3381 else
3382 if test "$GCC" = yes; then
3383 CFLAGS="-O2"
3384 else
3385 CFLAGS=
3386 fi
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3389 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3390 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 ac_cv_prog_cc_c89=no
3394 ac_save_CC=$CC
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405 char **p;
3406 int i;
3407 {
3408 return p[i];
3409 }
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3411 {
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3418 }
3419
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std. */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3431 #define FOO(x) 'x'
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3440 int
3441 main ()
3442 {
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 do
3451 CC="$ac_save_CC $ac_arg"
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_prog_cc_c89=$ac_arg
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext
3456 test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460
3461 fi
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3464 x)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3466 $as_echo "none needed" >&6; } ;;
3467 xno)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3469 $as_echo "unsupported" >&6; } ;;
3470 *)
3471 CC="$CC $ac_cv_prog_cc_c89"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3473 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475 if test "x$ac_cv_prog_cc_c89" != xno; then :
3476
3477 fi
3478
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3487 if test "${ac_cv_path_SED+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3491 for ac_i in 1 2 3 4 5 6 7; do
3492 ac_script="$ac_script$as_nl$ac_script"
3493 done
3494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3495 { ac_script=; unset ac_script;}
3496 if test -z "$SED"; then
3497 ac_path_SED_found=false
3498 # Loop through the user's path and test for each of PROGNAME-LIST
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_prog in sed gsed; do
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3508 # Check for GNU ac_path_SED and select it if it is found.
3509 # Check for GNU $ac_path_SED
3510 case `"$ac_path_SED" --version 2>&1` in
3511 *GNU*)
3512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3513 *)
3514 ac_count=0
3515 $as_echo_n 0123456789 >"conftest.in"
3516 while :
3517 do
3518 cat "conftest.in" "conftest.in" >"conftest.tmp"
3519 mv "conftest.tmp" "conftest.in"
3520 cp "conftest.in" "conftest.nl"
3521 $as_echo '' >> "conftest.nl"
3522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3524 as_fn_arith $ac_count + 1 && ac_count=$as_val
3525 if test $ac_count -gt ${ac_path_SED_max-0}; then
3526 # Best one so far, save it but keep looking for a better one
3527 ac_cv_path_SED="$ac_path_SED"
3528 ac_path_SED_max=$ac_count
3529 fi
3530 # 10*(2^10) chars as input seems more than enough
3531 test $ac_count -gt 10 && break
3532 done
3533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3534 esac
3535
3536 $ac_path_SED_found && break 3
3537 done
3538 done
3539 done
3540 IFS=$as_save_IFS
3541 if test -z "$ac_cv_path_SED"; then
3542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3543 fi
3544 else
3545 ac_cv_path_SED=$SED
3546 fi
3547
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3550 $as_echo "$ac_cv_path_SED" >&6; }
3551 SED="$ac_cv_path_SED"
3552 rm -f conftest.sed
3553
3554 test -z "$SED" && SED=sed
3555 Xsed="$SED -e 1s/^X//"
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3569 if test "${ac_cv_path_GREP+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 if test -z "$GREP"; then
3573 ac_path_GREP_found=false
3574 # Loop through the user's path and test for each of PROGNAME-LIST
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577 do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_prog in grep ggrep; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3583 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3584 # Check for GNU ac_path_GREP and select it if it is found.
3585 # Check for GNU $ac_path_GREP
3586 case `"$ac_path_GREP" --version 2>&1` in
3587 *GNU*)
3588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3589 *)
3590 ac_count=0
3591 $as_echo_n 0123456789 >"conftest.in"
3592 while :
3593 do
3594 cat "conftest.in" "conftest.in" >"conftest.tmp"
3595 mv "conftest.tmp" "conftest.in"
3596 cp "conftest.in" "conftest.nl"
3597 $as_echo 'GREP' >> "conftest.nl"
3598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600 as_fn_arith $ac_count + 1 && ac_count=$as_val
3601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3602 # Best one so far, save it but keep looking for a better one
3603 ac_cv_path_GREP="$ac_path_GREP"
3604 ac_path_GREP_max=$ac_count
3605 fi
3606 # 10*(2^10) chars as input seems more than enough
3607 test $ac_count -gt 10 && break
3608 done
3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610 esac
3611
3612 $ac_path_GREP_found && break 3
3613 done
3614 done
3615 done
3616 IFS=$as_save_IFS
3617 if test -z "$ac_cv_path_GREP"; then
3618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3619 fi
3620 else
3621 ac_cv_path_GREP=$GREP
3622 fi
3623
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3626 $as_echo "$ac_cv_path_GREP" >&6; }
3627 GREP="$ac_cv_path_GREP"
3628
3629
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3631 $as_echo_n "checking for egrep... " >&6; }
3632 if test "${ac_cv_path_EGREP+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3636 then ac_cv_path_EGREP="$GREP -E"
3637 else
3638 if test -z "$EGREP"; then
3639 ac_path_EGREP_found=false
3640 # Loop through the user's path and test for each of PROGNAME-LIST
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_prog in egrep; do
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3650 # Check for GNU ac_path_EGREP and select it if it is found.
3651 # Check for GNU $ac_path_EGREP
3652 case `"$ac_path_EGREP" --version 2>&1` in
3653 *GNU*)
3654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3655 *)
3656 ac_count=0
3657 $as_echo_n 0123456789 >"conftest.in"
3658 while :
3659 do
3660 cat "conftest.in" "conftest.in" >"conftest.tmp"
3661 mv "conftest.tmp" "conftest.in"
3662 cp "conftest.in" "conftest.nl"
3663 $as_echo 'EGREP' >> "conftest.nl"
3664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3666 as_fn_arith $ac_count + 1 && ac_count=$as_val
3667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3668 # Best one so far, save it but keep looking for a better one
3669 ac_cv_path_EGREP="$ac_path_EGREP"
3670 ac_path_EGREP_max=$ac_count
3671 fi
3672 # 10*(2^10) chars as input seems more than enough
3673 test $ac_count -gt 10 && break
3674 done
3675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3676 esac
3677
3678 $ac_path_EGREP_found && break 3
3679 done
3680 done
3681 done
3682 IFS=$as_save_IFS
3683 if test -z "$ac_cv_path_EGREP"; then
3684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3685 fi
3686 else
3687 ac_cv_path_EGREP=$EGREP
3688 fi
3689
3690 fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3693 $as_echo "$ac_cv_path_EGREP" >&6; }
3694 EGREP="$ac_cv_path_EGREP"
3695
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3698 $as_echo_n "checking for fgrep... " >&6; }
3699 if test "${ac_cv_path_FGREP+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3703 then ac_cv_path_FGREP="$GREP -F"
3704 else
3705 if test -z "$FGREP"; then
3706 ac_path_FGREP_found=false
3707 # Loop through the user's path and test for each of PROGNAME-LIST
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_prog in fgrep; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3716 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3717 # Check for GNU ac_path_FGREP and select it if it is found.
3718 # Check for GNU $ac_path_FGREP
3719 case `"$ac_path_FGREP" --version 2>&1` in
3720 *GNU*)
3721 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3722 *)
3723 ac_count=0
3724 $as_echo_n 0123456789 >"conftest.in"
3725 while :
3726 do
3727 cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 mv "conftest.tmp" "conftest.in"
3729 cp "conftest.in" "conftest.nl"
3730 $as_echo 'FGREP' >> "conftest.nl"
3731 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 as_fn_arith $ac_count + 1 && ac_count=$as_val
3734 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3735 # Best one so far, save it but keep looking for a better one
3736 ac_cv_path_FGREP="$ac_path_FGREP"
3737 ac_path_FGREP_max=$ac_count
3738 fi
3739 # 10*(2^10) chars as input seems more than enough
3740 test $ac_count -gt 10 && break
3741 done
3742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3743 esac
3744
3745 $ac_path_FGREP_found && break 3
3746 done
3747 done
3748 done
3749 IFS=$as_save_IFS
3750 if test -z "$ac_cv_path_FGREP"; then
3751 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3752 fi
3753 else
3754 ac_cv_path_FGREP=$FGREP
3755 fi
3756
3757 fi
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3760 $as_echo "$ac_cv_path_FGREP" >&6; }
3761 FGREP="$ac_cv_path_FGREP"
3762
3763
3764 test -z "$GREP" && GREP=grep
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784 # Check whether --with-gnu-ld was given.
3785 if test "${with_gnu_ld+set}" = set; then :
3786 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3787 else
3788 with_gnu_ld=no
3789 fi
3790
3791 ac_prog=ld
3792 if test "$GCC" = yes; then
3793 # Check if gcc -print-prog-name=ld gives a path.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3795 $as_echo_n "checking for ld used by $CC... " >&6; }
3796 case $host in
3797 *-*-mingw*)
3798 # gcc leaves a trailing carriage return which upsets mingw
3799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3800 *)
3801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3802 esac
3803 case $ac_prog in
3804 # Accept absolute paths.
3805 [\\/]* | ?:[\\/]*)
3806 re_direlt='/[^/][^/]*/\.\./'
3807 # Canonicalize the pathname of ld
3808 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3809 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3810 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3811 done
3812 test -z "$LD" && LD="$ac_prog"
3813 ;;
3814 "")
3815 # If it fails, then pretend we aren't using GCC.
3816 ac_prog=ld
3817 ;;
3818 *)
3819 # If it is relative, then search for the first ld in PATH.
3820 with_gnu_ld=unknown
3821 ;;
3822 esac
3823 elif test "$with_gnu_ld" = yes; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3825 $as_echo_n "checking for GNU ld... " >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3828 $as_echo_n "checking for non-GNU ld... " >&6; }
3829 fi
3830 if test "${lt_cv_path_LD+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -z "$LD"; then
3834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3835 for ac_dir in $PATH; do
3836 IFS="$lt_save_ifs"
3837 test -z "$ac_dir" && ac_dir=.
3838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3839 lt_cv_path_LD="$ac_dir/$ac_prog"
3840 # Check to see if the program is GNU ld. I'd rather use --version,
3841 # but apparently some variants of GNU ld only accept -v.
3842 # Break only if it was the GNU/non-GNU ld that we prefer.
3843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3844 *GNU* | *'with BFD'*)
3845 test "$with_gnu_ld" != no && break
3846 ;;
3847 *)
3848 test "$with_gnu_ld" != yes && break
3849 ;;
3850 esac
3851 fi
3852 done
3853 IFS="$lt_save_ifs"
3854 else
3855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3856 fi
3857 fi
3858
3859 LD="$lt_cv_path_LD"
3860 if test -n "$LD"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3862 $as_echo "$LD" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3866 fi
3867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3869 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3870 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3874 case `$LD -v 2>&1 </dev/null` in
3875 *GNU* | *'with BFD'*)
3876 lt_cv_prog_gnu_ld=yes
3877 ;;
3878 *)
3879 lt_cv_prog_gnu_ld=no
3880 ;;
3881 esac
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3884 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3885 with_gnu_ld=$lt_cv_prog_gnu_ld
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3896 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3897 if test "${lt_cv_path_NM+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$NM"; then
3901 # Let the user override the test.
3902 lt_cv_path_NM="$NM"
3903 else
3904 lt_nm_to_check="${ac_tool_prefix}nm"
3905 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3906 lt_nm_to_check="$lt_nm_to_check nm"
3907 fi
3908 for lt_tmp_nm in $lt_nm_to_check; do
3909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3910 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3911 IFS="$lt_save_ifs"
3912 test -z "$ac_dir" && ac_dir=.
3913 tmp_nm="$ac_dir/$lt_tmp_nm"
3914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3915 # Check to see if the nm accepts a BSD-compat flag.
3916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3917 # nm: unknown option "B" ignored
3918 # Tru64's nm complains that /dev/null is an invalid object file
3919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3920 */dev/null* | *'Invalid file or object type'*)
3921 lt_cv_path_NM="$tmp_nm -B"
3922 break
3923 ;;
3924 *)
3925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3926 */dev/null*)
3927 lt_cv_path_NM="$tmp_nm -p"
3928 break
3929 ;;
3930 *)
3931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3932 continue # so that we can try to find one that supports BSD flags
3933 ;;
3934 esac
3935 ;;
3936 esac
3937 fi
3938 done
3939 IFS="$lt_save_ifs"
3940 done
3941 : ${lt_cv_path_NM=no}
3942 fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3945 $as_echo "$lt_cv_path_NM" >&6; }
3946 if test "$lt_cv_path_NM" != "no"; then
3947 NM="$lt_cv_path_NM"
3948 else
3949 # Didn't find any BSD compatible name lister, look for dumpbin.
3950 if test -n "$ac_tool_prefix"; then
3951 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3952 do
3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 if test -n "$DUMPBIN"; then
3961 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974 done
3975 done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 DUMPBIN=$ac_cv_prog_DUMPBIN
3981 if test -n "$DUMPBIN"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3983 $as_echo "$DUMPBIN" >&6; }
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990 test -n "$DUMPBIN" && break
3991 done
3992 fi
3993 if test -z "$DUMPBIN"; then
3994 ac_ct_DUMPBIN=$DUMPBIN
3995 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3996 do
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998 set dummy $ac_prog; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$ac_ct_DUMPBIN"; then
4005 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4025 if test -n "$ac_ct_DUMPBIN"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4027 $as_echo "$ac_ct_DUMPBIN" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034 test -n "$ac_ct_DUMPBIN" && break
4035 done
4036
4037 if test "x$ac_ct_DUMPBIN" = x; then
4038 DUMPBIN=":"
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041 yes:)
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044 ac_tool_warned=yes ;;
4045 esac
4046 DUMPBIN=$ac_ct_DUMPBIN
4047 fi
4048 fi
4049
4050
4051 if test "$DUMPBIN" != ":"; then
4052 NM="$DUMPBIN"
4053 fi
4054 fi
4055 test -z "$NM" && NM=nm
4056
4057
4058
4059
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4063 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4064 if test "${lt_cv_nm_interface+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 lt_cv_nm_interface="BSD nm"
4068 echo "int some_variable = 0;" > conftest.$ac_ext
4069 (eval echo "\"\$as_me:4069: $ac_compile\"" >&5)
4070 (eval "$ac_compile" 2>conftest.err)
4071 cat conftest.err >&5
4072 (eval echo "\"\$as_me:4072: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4073 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4074 cat conftest.err >&5
4075 (eval echo "\"\$as_me:4075: output\"" >&5)
4076 cat conftest.out >&5
4077 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4078 lt_cv_nm_interface="MS dumpbin"
4079 fi
4080 rm -f conftest*
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4083 $as_echo "$lt_cv_nm_interface" >&6; }
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4086 $as_echo_n "checking whether ln -s works... " >&6; }
4087 LN_S=$as_ln_s
4088 if test "$LN_S" = "ln -s"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4093 $as_echo "no, using $LN_S" >&6; }
4094 fi
4095
4096 # find the maximum length of command line arguments
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4098 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 i=0
4103 teststring="ABCD"
4104
4105 case $build_os in
4106 msdosdjgpp*)
4107 # On DJGPP, this test can blow up pretty badly due to problems in libc
4108 # (any single argument exceeding 2000 bytes causes a buffer overrun
4109 # during glob expansion). Even if it were fixed, the result of this
4110 # check would be larger than it should be.
4111 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4112 ;;
4113
4114 gnu*)
4115 # Under GNU Hurd, this test is not required because there is
4116 # no limit to the length of command line arguments.
4117 # Libtool will interpret -1 as no limit whatsoever
4118 lt_cv_sys_max_cmd_len=-1;
4119 ;;
4120
4121 cygwin* | mingw* | cegcc*)
4122 # On Win9x/ME, this test blows up -- it succeeds, but takes
4123 # about 5 minutes as the teststring grows exponentially.
4124 # Worse, since 9x/ME are not pre-emptively multitasking,
4125 # you end up with a "frozen" computer, even though with patience
4126 # the test eventually succeeds (with a max line length of 256k).
4127 # Instead, let's just punt: use the minimum linelength reported by
4128 # all of the supported platforms: 8192 (on NT/2K/XP).
4129 lt_cv_sys_max_cmd_len=8192;
4130 ;;
4131
4132 amigaos*)
4133 # On AmigaOS with pdksh, this test takes hours, literally.
4134 # So we just punt and use a minimum line length of 8192.
4135 lt_cv_sys_max_cmd_len=8192;
4136 ;;
4137
4138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4139 # This has been around since 386BSD, at least. Likely further.
4140 if test -x /sbin/sysctl; then
4141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4142 elif test -x /usr/sbin/sysctl; then
4143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4144 else
4145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4146 fi
4147 # And add a safety zone
4148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4150 ;;
4151
4152 interix*)
4153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4154 lt_cv_sys_max_cmd_len=196608
4155 ;;
4156
4157 osf*)
4158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4160 # nice to cause kernel panics so lets avoid the loop below.
4161 # First set a reasonable default.
4162 lt_cv_sys_max_cmd_len=16384
4163 #
4164 if test -x /sbin/sysconfig; then
4165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4167 esac
4168 fi
4169 ;;
4170 sco3.2v5*)
4171 lt_cv_sys_max_cmd_len=102400
4172 ;;
4173 sysv5* | sco5v6* | sysv4.2uw2*)
4174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4175 if test -n "$kargmax"; then
4176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4177 else
4178 lt_cv_sys_max_cmd_len=32768
4179 fi
4180 ;;
4181 *)
4182 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4183 if test -n "$lt_cv_sys_max_cmd_len"; then
4184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4186 else
4187 # Make teststring a little bigger before we do anything with it.
4188 # a 1K string should be a reasonable start.
4189 for i in 1 2 3 4 5 6 7 8 ; do
4190 teststring=$teststring$teststring
4191 done
4192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4193 # If test is not a shell built-in, we'll probably end up computing a
4194 # maximum length that is only half of the actual maximum length, but
4195 # we can't tell.
4196 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4197 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4198 test $i != 17 # 1/2 MB should be enough
4199 do
4200 i=`expr $i + 1`
4201 teststring=$teststring$teststring
4202 done
4203 # Only check the string length outside the loop.
4204 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4205 teststring=
4206 # Add a significant safety factor because C++ compilers can tack on
4207 # massive amounts of additional arguments before passing them to the
4208 # linker. It appears as though 1/2 is a usable value.
4209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4210 fi
4211 ;;
4212 esac
4213
4214 fi
4215
4216 if test -n $lt_cv_sys_max_cmd_len ; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4218 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4221 $as_echo "none" >&6; }
4222 fi
4223 max_cmd_len=$lt_cv_sys_max_cmd_len
4224
4225
4226
4227
4228
4229
4230 : ${CP="cp -f"}
4231 : ${MV="mv -f"}
4232 : ${RM="rm -f"}
4233
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4235 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4236 # Try some XSI features
4237 xsi_shell=no
4238 ( _lt_dummy="a/b/c"
4239 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4240 = c,a/b,, \
4241 && eval 'test $(( 1 + 1 )) -eq 2 \
4242 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4243 && xsi_shell=yes
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4245 $as_echo "$xsi_shell" >&6; }
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4249 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4250 lt_shell_append=no
4251 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4252 >/dev/null 2>&1 \
4253 && lt_shell_append=yes
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4255 $as_echo "$lt_shell_append" >&6; }
4256
4257
4258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4259 lt_unset=unset
4260 else
4261 lt_unset=false
4262 fi
4263
4264
4265
4266
4267
4268 # test EBCDIC or ASCII
4269 case `echo X|tr X '\101'` in
4270 A) # ASCII based system
4271 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4272 lt_SP2NL='tr \040 \012'
4273 lt_NL2SP='tr \015\012 \040\040'
4274 ;;
4275 *) # EBCDIC based system
4276 lt_SP2NL='tr \100 \n'
4277 lt_NL2SP='tr \r\n \100\100'
4278 ;;
4279 esac
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4290 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4291 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 lt_cv_ld_reload_flag='-r'
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4297 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4298 reload_flag=$lt_cv_ld_reload_flag
4299 case $reload_flag in
4300 "" | " "*) ;;
4301 *) reload_flag=" $reload_flag" ;;
4302 esac
4303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4304 case $host_os in
4305 darwin*)
4306 if test "$GCC" = yes; then
4307 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4308 else
4309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4310 fi
4311 ;;
4312 esac
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322 if test -n "$ac_tool_prefix"; then
4323 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4324 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 if test -n "$OBJDUMP"; then
4331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348 fi
4349 fi
4350 OBJDUMP=$ac_cv_prog_OBJDUMP
4351 if test -n "$OBJDUMP"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4353 $as_echo "$OBJDUMP" >&6; }
4354 else
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4357 fi
4358
4359
4360 fi
4361 if test -z "$ac_cv_prog_OBJDUMP"; then
4362 ac_ct_OBJDUMP=$OBJDUMP
4363 # Extract the first word of "objdump", so it can be a program name with args.
4364 set dummy objdump; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -n "$ac_ct_OBJDUMP"; then
4371 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4391 if test -n "$ac_ct_OBJDUMP"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4393 $as_echo "$ac_ct_OBJDUMP" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399 if test "x$ac_ct_OBJDUMP" = x; then
4400 OBJDUMP="false"
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403 yes:)
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406 ac_tool_warned=yes ;;
4407 esac
4408 OBJDUMP=$ac_ct_OBJDUMP
4409 fi
4410 else
4411 OBJDUMP="$ac_cv_prog_OBJDUMP"
4412 fi
4413
4414 test -z "$OBJDUMP" && OBJDUMP=objdump
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4425 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4426 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 lt_cv_file_magic_cmd='$MAGIC_CMD'
4430 lt_cv_file_magic_test_file=
4431 lt_cv_deplibs_check_method='unknown'
4432 # Need to set the preceding variable on all platforms that support
4433 # interlibrary dependencies.
4434 # 'none' -- dependencies not supported.
4435 # `unknown' -- same as none, but documents that we really don't know.
4436 # 'pass_all' -- all dependencies passed with no checks.
4437 # 'test_compile' -- check by making test program.
4438 # 'file_magic [[regex]]' -- check by looking for files in library path
4439 # which responds to the $file_magic_cmd with a given extended regex.
4440 # If you have `file' or equivalent on your system and you're not sure
4441 # whether `pass_all' will *always* work, you probably want this one.
4442
4443 case $host_os in
4444 aix[4-9]*)
4445 lt_cv_deplibs_check_method=pass_all
4446 ;;
4447
4448 beos*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
4452 bsdi[45]*)
4453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4454 lt_cv_file_magic_cmd='/usr/bin/file -L'
4455 lt_cv_file_magic_test_file=/shlib/libc.so
4456 ;;
4457
4458 cygwin*)
4459 # func_win32_libid is a shell function defined in ltmain.sh
4460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4461 lt_cv_file_magic_cmd='func_win32_libid'
4462 ;;
4463
4464 mingw* | pw32*)
4465 # Base MSYS/MinGW do not provide the 'file' command needed by
4466 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4467 # unless we find 'file', for example because we are cross-compiling.
4468 if ( file / ) >/dev/null 2>&1; then
4469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4470 lt_cv_file_magic_cmd='func_win32_libid'
4471 else
4472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4473 lt_cv_file_magic_cmd='$OBJDUMP -f'
4474 fi
4475 ;;
4476
4477 cegcc)
4478 # use the weaker test based on 'objdump'. See mingw*.
4479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4480 lt_cv_file_magic_cmd='$OBJDUMP -f'
4481 ;;
4482
4483 darwin* | rhapsody*)
4484 lt_cv_deplibs_check_method=pass_all
4485 ;;
4486
4487 freebsd* | dragonfly*)
4488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4489 case $host_cpu in
4490 i*86 )
4491 # Not sure whether the presence of OpenBSD here was a mistake.
4492 # Let's accept both of them until this is cleared up.
4493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4494 lt_cv_file_magic_cmd=/usr/bin/file
4495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4496 ;;
4497 esac
4498 else
4499 lt_cv_deplibs_check_method=pass_all
4500 fi
4501 ;;
4502
4503 gnu*)
4504 lt_cv_deplibs_check_method=pass_all
4505 ;;
4506
4507 hpux10.20* | hpux11*)
4508 lt_cv_file_magic_cmd=/usr/bin/file
4509 case $host_cpu in
4510 ia64*)
4511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4513 ;;
4514 hppa*64*)
4515 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]'
4516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4517 ;;
4518 *)
4519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4521 ;;
4522 esac
4523 ;;
4524
4525 interix[3-9]*)
4526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4528 ;;
4529
4530 irix5* | irix6* | nonstopux*)
4531 case $LD in
4532 *-32|*"-32 ") libmagic=32-bit;;
4533 *-n32|*"-n32 ") libmagic=N32;;
4534 *-64|*"-64 ") libmagic=64-bit;;
4535 *) libmagic=never-match;;
4536 esac
4537 lt_cv_deplibs_check_method=pass_all
4538 ;;
4539
4540 # This must be Linux ELF.
4541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4542 lt_cv_deplibs_check_method=pass_all
4543 ;;
4544
4545 netbsd* | netbsdelf*-gnu)
4546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4548 else
4549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4550 fi
4551 ;;
4552
4553 newos6*)
4554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4555 lt_cv_file_magic_cmd=/usr/bin/file
4556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4557 ;;
4558
4559 *nto* | *qnx*)
4560 lt_cv_deplibs_check_method=pass_all
4561 ;;
4562
4563 openbsd*)
4564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4566 else
4567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4568 fi
4569 ;;
4570
4571 osf3* | osf4* | osf5*)
4572 lt_cv_deplibs_check_method=pass_all
4573 ;;
4574
4575 rdos*)
4576 lt_cv_deplibs_check_method=pass_all
4577 ;;
4578
4579 solaris*)
4580 lt_cv_deplibs_check_method=pass_all
4581 ;;
4582
4583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586
4587 sysv4 | sysv4.3*)
4588 case $host_vendor in
4589 motorola)
4590 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]'
4591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4592 ;;
4593 ncr)
4594 lt_cv_deplibs_check_method=pass_all
4595 ;;
4596 sequent)
4597 lt_cv_file_magic_cmd='/bin/file'
4598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4599 ;;
4600 sni)
4601 lt_cv_file_magic_cmd='/bin/file'
4602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4603 lt_cv_file_magic_test_file=/lib/libc.so
4604 ;;
4605 siemens)
4606 lt_cv_deplibs_check_method=pass_all
4607 ;;
4608 pc)
4609 lt_cv_deplibs_check_method=pass_all
4610 ;;
4611 esac
4612 ;;
4613
4614 tpf*)
4615 lt_cv_deplibs_check_method=pass_all
4616 ;;
4617 esac
4618
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4621 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4622 file_magic_cmd=$lt_cv_file_magic_cmd
4623 deplibs_check_method=$lt_cv_deplibs_check_method
4624 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}ar; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_AR+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$AR"; then
4646 ac_cv_prog_AR="$AR" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_AR="${ac_tool_prefix}ar"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 AR=$ac_cv_prog_AR
4666 if test -n "$AR"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4668 $as_echo "$AR" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675 fi
4676 if test -z "$ac_cv_prog_AR"; then
4677 ac_ct_AR=$AR
4678 # Extract the first word of "ar", so it can be a program name with args.
4679 set dummy ar; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$ac_ct_AR"; then
4686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_ac_ct_AR="ar"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703 fi
4704 fi
4705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4706 if test -n "$ac_ct_AR"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4708 $as_echo "$ac_ct_AR" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713
4714 if test "x$ac_ct_AR" = x; then
4715 AR="false"
4716 else
4717 case $cross_compiling:$ac_tool_warned in
4718 yes:)
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721 ac_tool_warned=yes ;;
4722 esac
4723 AR=$ac_ct_AR
4724 fi
4725 else
4726 AR="$ac_cv_prog_AR"
4727 fi
4728
4729 test -z "$AR" && AR=ar
4730 test -z "$AR_FLAGS" && AR_FLAGS=cru
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}strip; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_STRIP+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$STRIP"; then
4751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 STRIP=$ac_cv_prog_STRIP
4771 if test -n "$STRIP"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4773 $as_echo "$STRIP" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$ac_cv_prog_STRIP"; then
4782 ac_ct_STRIP=$STRIP
4783 # Extract the first word of "strip", so it can be a program name with args.
4784 set dummy strip; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -n "$ac_ct_STRIP"; then
4791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_STRIP="strip"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4811 if test -n "$ac_ct_STRIP"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4813 $as_echo "$ac_ct_STRIP" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819 if test "x$ac_ct_STRIP" = x; then
4820 STRIP=":"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 STRIP=$ac_ct_STRIP
4829 fi
4830 else
4831 STRIP="$ac_cv_prog_STRIP"
4832 fi
4833
4834 test -z "$STRIP" && STRIP=:
4835
4836
4837
4838
4839
4840
4841 if test -n "$ac_tool_prefix"; then
4842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$RANLIB"; then
4850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 RANLIB=$ac_cv_prog_RANLIB
4870 if test -n "$RANLIB"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4872 $as_echo "$RANLIB" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878
4879 fi
4880 if test -z "$ac_cv_prog_RANLIB"; then
4881 ac_ct_RANLIB=$RANLIB
4882 # Extract the first word of "ranlib", so it can be a program name with args.
4883 set dummy ranlib; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$ac_ct_RANLIB"; then
4890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_ac_ct_RANLIB="ranlib"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4910 if test -n "$ac_ct_RANLIB"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4912 $as_echo "$ac_ct_RANLIB" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918 if test "x$ac_ct_RANLIB" = x; then
4919 RANLIB=":"
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922 yes:)
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927 RANLIB=$ac_ct_RANLIB
4928 fi
4929 else
4930 RANLIB="$ac_cv_prog_RANLIB"
4931 fi
4932
4933 test -z "$RANLIB" && RANLIB=:
4934
4935
4936
4937
4938
4939
4940 # Determine commands to create old-style static archives.
4941 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4942 old_postinstall_cmds='chmod 644 $oldlib'
4943 old_postuninstall_cmds=
4944
4945 if test -n "$RANLIB"; then
4946 case $host_os in
4947 openbsd*)
4948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4949 ;;
4950 *)
4951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4952 ;;
4953 esac
4954 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4955 fi
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 # If no C compiler was specified, use CC.
4991 LTCC=${LTCC-"$CC"}
4992
4993 # If no C compiler flags were specified, use CFLAGS.
4994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4995
4996 # Allow CC to be a program name with arguments.
4997 compiler=$CC
4998
4999
5000 # Check for command to grab the raw symbol name followed by C symbol from nm.
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5002 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5003 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006
5007 # These are sane defaults that work on at least a few old systems.
5008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5009
5010 # Character class describing NM global symbol codes.
5011 symcode='[BCDEGRST]'
5012
5013 # Regexp to match symbols that can be accessed directly from C.
5014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5015
5016 # Define system-specific variables.
5017 case $host_os in
5018 aix*)
5019 symcode='[BCDT]'
5020 ;;
5021 cygwin* | mingw* | pw32* | cegcc*)
5022 symcode='[ABCDGISTW]'
5023 ;;
5024 hpux*)
5025 if test "$host_cpu" = ia64; then
5026 symcode='[ABCDEGRST]'
5027 fi
5028 ;;
5029 irix* | nonstopux*)
5030 symcode='[BCDEGRST]'
5031 ;;
5032 osf*)
5033 symcode='[BCDEGQRST]'
5034 ;;
5035 solaris*)
5036 symcode='[BDRT]'
5037 ;;
5038 sco3.2v5*)
5039 symcode='[DT]'
5040 ;;
5041 sysv4.2uw2*)
5042 symcode='[DT]'
5043 ;;
5044 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5045 symcode='[ABDT]'
5046 ;;
5047 sysv4)
5048 symcode='[DFNSTU]'
5049 ;;
5050 esac
5051
5052 # If we're using GNU nm, then use its standard symbol codes.
5053 case `$NM -V 2>&1` in
5054 *GNU* | *'with BFD'*)
5055 symcode='[ABCDGIRSTW]' ;;
5056 esac
5057
5058 # Transform an extracted symbol line into a proper C declaration.
5059 # Some systems (esp. on ia64) link data and code symbols differently,
5060 # so use this general approach.
5061 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5062
5063 # Transform an extracted symbol line into symbol name and symbol address
5064 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5065 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'"
5066
5067 # Handle CRLF in mingw tool chain
5068 opt_cr=
5069 case $build_os in
5070 mingw*)
5071 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5072 ;;
5073 esac
5074
5075 # Try without a prefix underscore, then with it.
5076 for ac_symprfx in "" "_"; do
5077
5078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5079 symxfrm="\\1 $ac_symprfx\\2 \\2"
5080
5081 # Write the raw and C identifiers.
5082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5083 # Fake it for dumpbin and say T for any non-static function
5084 # and D for any global variable.
5085 # Also find C++ and __fastcall symbols from MSVC++,
5086 # which start with @ or ?.
5087 lt_cv_sys_global_symbol_pipe="$AWK '"\
5088 " {last_section=section; section=\$ 3};"\
5089 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5090 " \$ 0!~/External *\|/{next};"\
5091 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5092 " {if(hide[section]) next};"\
5093 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5094 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5095 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5096 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5097 " ' prfx=^$ac_symprfx"
5098 else
5099 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5100 fi
5101
5102 # Check to see that the pipe works correctly.
5103 pipe_works=no
5104
5105 rm -f conftest*
5106 cat > conftest.$ac_ext <<_LT_EOF
5107 #ifdef __cplusplus
5108 extern "C" {
5109 #endif
5110 char nm_test_var;
5111 void nm_test_func(void);
5112 void nm_test_func(void){}
5113 #ifdef __cplusplus
5114 }
5115 #endif
5116 int main(){nm_test_var='a';nm_test_func();return(0);}
5117 _LT_EOF
5118
5119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5120 (eval $ac_compile) 2>&5
5121 ac_status=$?
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; then
5124 # Now try to grab the symbols.
5125 nlist=conftest.nm
5126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5127 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; } && test -s "$nlist"; then
5131 # Try sorting and uniquifying the output.
5132 if sort "$nlist" | uniq > "$nlist"T; then
5133 mv -f "$nlist"T "$nlist"
5134 else
5135 rm -f "$nlist"T
5136 fi
5137
5138 # Make sure that we snagged all the symbols we need.
5139 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5140 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5141 cat <<_LT_EOF > conftest.$ac_ext
5142 #ifdef __cplusplus
5143 extern "C" {
5144 #endif
5145
5146 _LT_EOF
5147 # Now generate the symbol file.
5148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5149
5150 cat <<_LT_EOF >> conftest.$ac_ext
5151
5152 /* The mapping between symbol names and symbols. */
5153 const struct {
5154 const char *name;
5155 void *address;
5156 }
5157 lt__PROGRAM__LTX_preloaded_symbols[] =
5158 {
5159 { "@PROGRAM@", (void *) 0 },
5160 _LT_EOF
5161 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5162 cat <<\_LT_EOF >> conftest.$ac_ext
5163 {0, (void *) 0}
5164 };
5165
5166 /* This works around a problem in FreeBSD linker */
5167 #ifdef FREEBSD_WORKAROUND
5168 static const void *lt_preloaded_setup() {
5169 return lt__PROGRAM__LTX_preloaded_symbols;
5170 }
5171 #endif
5172
5173 #ifdef __cplusplus
5174 }
5175 #endif
5176 _LT_EOF
5177 # Now try linking the two files.
5178 mv conftest.$ac_objext conftstm.$ac_objext
5179 lt_save_LIBS="$LIBS"
5180 lt_save_CFLAGS="$CFLAGS"
5181 LIBS="conftstm.$ac_objext"
5182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5184 (eval $ac_link) 2>&5
5185 ac_status=$?
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5188 pipe_works=yes
5189 fi
5190 LIBS="$lt_save_LIBS"
5191 CFLAGS="$lt_save_CFLAGS"
5192 else
5193 echo "cannot find nm_test_func in $nlist" >&5
5194 fi
5195 else
5196 echo "cannot find nm_test_var in $nlist" >&5
5197 fi
5198 else
5199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5200 fi
5201 else
5202 echo "$progname: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5204 fi
5205 rm -rf conftest* conftst*
5206
5207 # Do not use the global_symbol_pipe unless it works.
5208 if test "$pipe_works" = yes; then
5209 break
5210 else
5211 lt_cv_sys_global_symbol_pipe=
5212 fi
5213 done
5214
5215 fi
5216
5217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5218 lt_cv_sys_global_symbol_to_cdecl=
5219 fi
5220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5222 $as_echo "failed" >&6; }
5223 else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5225 $as_echo "ok" >&6; }
5226 fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 # Check whether --enable-libtool-lock was given.
5251 if test "${enable_libtool_lock+set}" = set; then :
5252 enableval=$enable_libtool_lock;
5253 fi
5254
5255 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5256
5257 # Some flags need to be propagated to the compiler or linker for good
5258 # libtool support.
5259 case $host in
5260 ia64-*-hpux*)
5261 # Find out which ABI we are using.
5262 echo 'int i;' > conftest.$ac_ext
5263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5264 (eval $ac_compile) 2>&5
5265 ac_status=$?
5266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }; then
5268 case `/usr/bin/file conftest.$ac_objext` in
5269 *ELF-32*)
5270 HPUX_IA64_MODE="32"
5271 ;;
5272 *ELF-64*)
5273 HPUX_IA64_MODE="64"
5274 ;;
5275 esac
5276 fi
5277 rm -rf conftest*
5278 ;;
5279 *-*-irix6*)
5280 # Find out which ABI we are using.
5281 echo '#line 5281 "configure"' > conftest.$ac_ext
5282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5283 (eval $ac_compile) 2>&5
5284 ac_status=$?
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }; then
5287 if test "$lt_cv_prog_gnu_ld" = yes; then
5288 case `/usr/bin/file conftest.$ac_objext` in
5289 *32-bit*)
5290 LD="${LD-ld} -melf32bsmip"
5291 ;;
5292 *N32*)
5293 LD="${LD-ld} -melf32bmipn32"
5294 ;;
5295 *64-bit*)
5296 LD="${LD-ld} -melf64bmip"
5297 ;;
5298 esac
5299 else
5300 case `/usr/bin/file conftest.$ac_objext` in
5301 *32-bit*)
5302 LD="${LD-ld} -32"
5303 ;;
5304 *N32*)
5305 LD="${LD-ld} -n32"
5306 ;;
5307 *64-bit*)
5308 LD="${LD-ld} -64"
5309 ;;
5310 esac
5311 fi
5312 fi
5313 rm -rf conftest*
5314 ;;
5315
5316 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5317 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5318 # Find out which ABI we are using.
5319 echo 'int i;' > conftest.$ac_ext
5320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5321 (eval $ac_compile) 2>&5
5322 ac_status=$?
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }; then
5325 case `/usr/bin/file conftest.o` in
5326 *32-bit*)
5327 case $host in
5328 x86_64-*kfreebsd*-gnu)
5329 LD="${LD-ld} -m elf_i386_fbsd"
5330 ;;
5331 x86_64-*linux*)
5332 LD="${LD-ld} -m elf_i386"
5333 ;;
5334 ppc64-*linux*|powerpc64-*linux*)
5335 LD="${LD-ld} -m elf32ppclinux"
5336 ;;
5337 s390x-*linux*)
5338 LD="${LD-ld} -m elf_s390"
5339 ;;
5340 sparc64-*linux*)
5341 LD="${LD-ld} -m elf32_sparc"
5342 ;;
5343 esac
5344 ;;
5345 *64-bit*)
5346 case $host in
5347 x86_64-*kfreebsd*-gnu)
5348 LD="${LD-ld} -m elf_x86_64_fbsd"
5349 ;;
5350 x86_64-*linux*)
5351 LD="${LD-ld} -m elf_x86_64"
5352 ;;
5353 ppc*-*linux*|powerpc*-*linux*)
5354 LD="${LD-ld} -m elf64ppc"
5355 ;;
5356 s390*-*linux*|s390*-*tpf*)
5357 LD="${LD-ld} -m elf64_s390"
5358 ;;
5359 sparc*-*linux*)
5360 LD="${LD-ld} -m elf64_sparc"
5361 ;;
5362 esac
5363 ;;
5364 esac
5365 fi
5366 rm -rf conftest*
5367 ;;
5368
5369 *-*-sco3.2v5*)
5370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5371 SAVE_CFLAGS="$CFLAGS"
5372 CFLAGS="$CFLAGS -belf"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5374 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5375 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 ac_ext=c
5379 ac_cpp='$CPP $CPPFLAGS'
5380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5383
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_link "$LINENO"; then :
5396 lt_cv_cc_needs_belf=yes
5397 else
5398 lt_cv_cc_needs_belf=no
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5402 ac_ext=c
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5410 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5411 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5412 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5413 CFLAGS="$SAVE_CFLAGS"
5414 fi
5415 ;;
5416 sparc*-*solaris*)
5417 # Find out which ABI we are using.
5418 echo 'int i;' > conftest.$ac_ext
5419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5420 (eval $ac_compile) 2>&5
5421 ac_status=$?
5422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5423 test $ac_status = 0; }; then
5424 case `/usr/bin/file conftest.o` in
5425 *64-bit*)
5426 case $lt_cv_prog_gnu_ld in
5427 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5428 *)
5429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5430 LD="${LD-ld} -64"
5431 fi
5432 ;;
5433 esac
5434 ;;
5435 esac
5436 fi
5437 rm -rf conftest*
5438 ;;
5439 esac
5440
5441 need_locks="$enable_libtool_lock"
5442
5443
5444 case $host_os in
5445 rhapsody* | darwin*)
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$DSYMUTIL"; then
5455 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5475 if test -n "$DSYMUTIL"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5477 $as_echo "$DSYMUTIL" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 if test -z "$ac_cv_prog_DSYMUTIL"; then
5486 ac_ct_DSYMUTIL=$DSYMUTIL
5487 # Extract the first word of "dsymutil", so it can be a program name with args.
5488 set dummy dsymutil; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_DSYMUTIL"; then
5495 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5515 if test -n "$ac_ct_DSYMUTIL"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5517 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523 if test "x$ac_ct_DSYMUTIL" = x; then
5524 DSYMUTIL=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532 DSYMUTIL=$ac_ct_DSYMUTIL
5533 fi
5534 else
5535 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5536 fi
5537
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$NMEDIT"; then
5547 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 NMEDIT=$ac_cv_prog_NMEDIT
5567 if test -n "$NMEDIT"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5569 $as_echo "$NMEDIT" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 fi
5577 if test -z "$ac_cv_prog_NMEDIT"; then
5578 ac_ct_NMEDIT=$NMEDIT
5579 # Extract the first word of "nmedit", so it can be a program name with args.
5580 set dummy nmedit; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$ac_ct_NMEDIT"; then
5587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600 done
5601 done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5607 if test -n "$ac_ct_NMEDIT"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5609 $as_echo "$ac_ct_NMEDIT" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615 if test "x$ac_ct_NMEDIT" = x; then
5616 NMEDIT=":"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 NMEDIT=$ac_ct_NMEDIT
5625 fi
5626 else
5627 NMEDIT="$ac_cv_prog_NMEDIT"
5628 fi
5629
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_LIPO+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$LIPO"; then
5639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 LIPO=$ac_cv_prog_LIPO
5659 if test -n "$LIPO"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5661 $as_echo "$LIPO" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 fi
5669 if test -z "$ac_cv_prog_LIPO"; then
5670 ac_ct_LIPO=$LIPO
5671 # Extract the first word of "lipo", so it can be a program name with args.
5672 set dummy lipo; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ac_ct_LIPO"; then
5679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_LIPO="lipo"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5699 if test -n "$ac_ct_LIPO"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5701 $as_echo "$ac_ct_LIPO" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707 if test "x$ac_ct_LIPO" = x; then
5708 LIPO=":"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 LIPO=$ac_ct_LIPO
5717 fi
5718 else
5719 LIPO="$ac_cv_prog_LIPO"
5720 fi
5721
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}otool; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$OTOOL"; then
5731 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 OTOOL=$ac_cv_prog_OTOOL
5751 if test -n "$OTOOL"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5753 $as_echo "$OTOOL" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 fi
5761 if test -z "$ac_cv_prog_OTOOL"; then
5762 ac_ct_OTOOL=$OTOOL
5763 # Extract the first word of "otool", so it can be a program name with args.
5764 set dummy otool; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$ac_ct_OTOOL"; then
5771 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_prog_ac_ct_OTOOL="otool"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5791 if test -n "$ac_ct_OTOOL"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5793 $as_echo "$ac_ct_OTOOL" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799 if test "x$ac_ct_OTOOL" = x; then
5800 OTOOL=":"
5801 else
5802 case $cross_compiling:$ac_tool_warned in
5803 yes:)
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808 OTOOL=$ac_ct_OTOOL
5809 fi
5810 else
5811 OTOOL="$ac_cv_prog_OTOOL"
5812 fi
5813
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$OTOOL64"; then
5823 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 OTOOL64=$ac_cv_prog_OTOOL64
5843 if test -n "$OTOOL64"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5845 $as_echo "$OTOOL64" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_OTOOL64"; then
5854 ac_ct_OTOOL64=$OTOOL64
5855 # Extract the first word of "otool64", so it can be a program name with args.
5856 set dummy otool64; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_OTOOL64"; then
5863 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_OTOOL64="otool64"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5883 if test -n "$ac_ct_OTOOL64"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5885 $as_echo "$ac_ct_OTOOL64" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891 if test "x$ac_ct_OTOOL64" = x; then
5892 OTOOL64=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 OTOOL64=$ac_ct_OTOOL64
5901 fi
5902 else
5903 OTOOL64="$ac_cv_prog_OTOOL64"
5904 fi
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5933 $as_echo_n "checking for -single_module linker flag... " >&6; }
5934 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 lt_cv_apple_cc_single_mod=no
5938 if test -z "${LT_MULTI_MODULE}"; then
5939 # By default we will add the -single_module flag. You can override
5940 # by either setting the environment variable LT_MULTI_MODULE
5941 # non-empty at configure time, or by adding -multi_module to the
5942 # link flags.
5943 rm -rf libconftest.dylib*
5944 echo "int foo(void){return 1;}" > conftest.c
5945 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5946 -dynamiclib -Wl,-single_module conftest.c" >&5
5947 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5948 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5949 _lt_result=$?
5950 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5951 lt_cv_apple_cc_single_mod=yes
5952 else
5953 cat conftest.err >&5
5954 fi
5955 rm -rf libconftest.dylib*
5956 rm -f conftest.*
5957 fi
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5960 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5962 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5963 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 lt_cv_ld_exported_symbols_list=no
5967 save_LDFLAGS=$LDFLAGS
5968 echo "_main" > conftest.sym
5969 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972
5973 int
5974 main ()
5975 {
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 if ac_fn_c_try_link "$LINENO"; then :
5982 lt_cv_ld_exported_symbols_list=yes
5983 else
5984 lt_cv_ld_exported_symbols_list=no
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext \
5987 conftest$ac_exeext conftest.$ac_ext
5988 LDFLAGS="$save_LDFLAGS"
5989
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5992 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5993 case $host_os in
5994 rhapsody* | darwin1.[012])
5995 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5996 darwin1.*)
5997 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5998 darwin*) # darwin 5.x on
5999 # if running on 10.5 or later, the deployment target defaults
6000 # to the OS version, if on x86, and 10.4, the deployment
6001 # target defaults to 10.4. Don't you love it?
6002 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6003 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6004 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6005 10.[012]*)
6006 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6007 10.*)
6008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6009 esac
6010 ;;
6011 esac
6012 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6013 _lt_dar_single_mod='$single_module'
6014 fi
6015 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6016 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6017 else
6018 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6019 fi
6020 if test "$DSYMUTIL" != ":"; then
6021 _lt_dsymutil='~$DSYMUTIL $lib || :'
6022 else
6023 _lt_dsymutil=
6024 fi
6025 ;;
6026 esac
6027
6028 ac_ext=c
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6035 # On Suns, sometimes $CPP names a directory.
6036 if test -n "$CPP" && test -d "$CPP"; then
6037 CPP=
6038 fi
6039 if test -z "$CPP"; then
6040 if test "${ac_cv_prog_CPP+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 # Double quotes because CPP needs to be expanded
6044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 do
6046 ac_preproc_ok=false
6047 for ac_c_preproc_warn_flag in '' yes
6048 do
6049 # Use a header file that comes with gcc, so configuring glibc
6050 # with a fresh cross-compiler works.
6051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6052 # <limits.h> exists even on freestanding compilers.
6053 # On the NeXT, cc -E runs the code through the compiler's parser,
6054 # not just through cpp. "Syntax error" is here to catch this case.
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #ifdef __STDC__
6058 # include <limits.h>
6059 #else
6060 # include <assert.h>
6061 #endif
6062 Syntax error
6063 _ACEOF
6064 if ac_fn_c_try_cpp "$LINENO"; then :
6065
6066 else
6067 # Broken: fails on valid input.
6068 continue
6069 fi
6070 rm -f conftest.err conftest.i conftest.$ac_ext
6071
6072 # OK, works on sane cases. Now check whether nonexistent headers
6073 # can be detected and how.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <ac_nonexistent.h>
6077 _ACEOF
6078 if ac_fn_c_try_cpp "$LINENO"; then :
6079 # Broken: success on invalid input.
6080 continue
6081 else
6082 # Passes both tests.
6083 ac_preproc_ok=:
6084 break
6085 fi
6086 rm -f conftest.err conftest.i conftest.$ac_ext
6087
6088 done
6089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090 rm -f conftest.i conftest.err conftest.$ac_ext
6091 if $ac_preproc_ok; then :
6092 break
6093 fi
6094
6095 done
6096 ac_cv_prog_CPP=$CPP
6097
6098 fi
6099 CPP=$ac_cv_prog_CPP
6100 else
6101 ac_cv_prog_CPP=$CPP
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6104 $as_echo "$CPP" >&6; }
6105 ac_preproc_ok=false
6106 for ac_c_preproc_warn_flag in '' yes
6107 do
6108 # Use a header file that comes with gcc, so configuring glibc
6109 # with a fresh cross-compiler works.
6110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111 # <limits.h> exists even on freestanding compilers.
6112 # On the NeXT, cc -E runs the code through the compiler's parser,
6113 # not just through cpp. "Syntax error" is here to catch this case.
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #ifdef __STDC__
6117 # include <limits.h>
6118 #else
6119 # include <assert.h>
6120 #endif
6121 Syntax error
6122 _ACEOF
6123 if ac_fn_c_try_cpp "$LINENO"; then :
6124
6125 else
6126 # Broken: fails on valid input.
6127 continue
6128 fi
6129 rm -f conftest.err conftest.i conftest.$ac_ext
6130
6131 # OK, works on sane cases. Now check whether nonexistent headers
6132 # can be detected and how.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <ac_nonexistent.h>
6136 _ACEOF
6137 if ac_fn_c_try_cpp "$LINENO"; then :
6138 # Broken: success on invalid input.
6139 continue
6140 else
6141 # Passes both tests.
6142 ac_preproc_ok=:
6143 break
6144 fi
6145 rm -f conftest.err conftest.i conftest.$ac_ext
6146
6147 done
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.i conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then :
6151
6152 else
6153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6155 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6156 See \`config.log' for more details" "$LINENO" 5 ; }
6157 fi
6158
6159 ac_ext=c
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6167 $as_echo_n "checking for ANSI C header files... " >&6; }
6168 if test "${ac_cv_header_stdc+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 #include <stdlib.h>
6174 #include <stdarg.h>
6175 #include <string.h>
6176 #include <float.h>
6177
6178 int
6179 main ()
6180 {
6181
6182 ;
6183 return 0;
6184 }
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_header_stdc=yes
6188 else
6189 ac_cv_header_stdc=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192
6193 if test $ac_cv_header_stdc = yes; then
6194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <string.h>
6198
6199 _ACEOF
6200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6201 $EGREP "memchr" >/dev/null 2>&1; then :
6202
6203 else
6204 ac_cv_header_stdc=no
6205 fi
6206 rm -f conftest*
6207
6208 fi
6209
6210 if test $ac_cv_header_stdc = yes; then
6211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 #include <stdlib.h>
6215
6216 _ACEOF
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 $EGREP "free" >/dev/null 2>&1; then :
6219
6220 else
6221 ac_cv_header_stdc=no
6222 fi
6223 rm -f conftest*
6224
6225 fi
6226
6227 if test $ac_cv_header_stdc = yes; then
6228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6229 if test "$cross_compiling" = yes; then :
6230 :
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <ctype.h>
6235 #include <stdlib.h>
6236 #if ((' ' & 0x0FF) == 0x020)
6237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6239 #else
6240 # define ISLOWER(c) \
6241 (('a' <= (c) && (c) <= 'i') \
6242 || ('j' <= (c) && (c) <= 'r') \
6243 || ('s' <= (c) && (c) <= 'z'))
6244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6245 #endif
6246
6247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6248 int
6249 main ()
6250 {
6251 int i;
6252 for (i = 0; i < 256; i++)
6253 if (XOR (islower (i), ISLOWER (i))
6254 || toupper (i) != TOUPPER (i))
6255 return 2;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_run "$LINENO"; then :
6260
6261 else
6262 ac_cv_header_stdc=no
6263 fi
6264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6265 conftest.$ac_objext conftest.beam conftest.$ac_ext
6266 fi
6267
6268 fi
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6271 $as_echo "$ac_cv_header_stdc" >&6; }
6272 if test $ac_cv_header_stdc = yes; then
6273
6274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6275
6276 fi
6277
6278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6280 inttypes.h stdint.h unistd.h
6281 do :
6282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6284 "
6285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6286 cat >>confdefs.h <<_ACEOF
6287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288 _ACEOF
6289
6290 fi
6291
6292 done
6293
6294
6295 for ac_header in dlfcn.h
6296 do :
6297 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6298 "
6299 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6300 cat >>confdefs.h <<_ACEOF
6301 #define HAVE_DLFCN_H 1
6302 _ACEOF
6303
6304 fi
6305
6306 done
6307
6308
6309
6310 # Set options
6311 # Check whether --enable-static was given.
6312 if test "${enable_static+set}" = set; then :
6313 enableval=$enable_static; p=${PACKAGE-default}
6314 case $enableval in
6315 yes) enable_static=yes ;;
6316 no) enable_static=no ;;
6317 *)
6318 enable_static=no
6319 # Look at the argument we got. We use all the common list separators.
6320 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6321 for pkg in $enableval; do
6322 IFS="$lt_save_ifs"
6323 if test "X$pkg" = "X$p"; then
6324 enable_static=yes
6325 fi
6326 done
6327 IFS="$lt_save_ifs"
6328 ;;
6329 esac
6330 else
6331 enable_static=no
6332 fi
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343 enable_dlopen=no
6344
6345
6346 enable_win32_dll=no
6347
6348
6349 # Check whether --enable-shared was given.
6350 if test "${enable_shared+set}" = set; then :
6351 enableval=$enable_shared; p=${PACKAGE-default}
6352 case $enableval in
6353 yes) enable_shared=yes ;;
6354 no) enable_shared=no ;;
6355 *)
6356 enable_shared=no
6357 # Look at the argument we got. We use all the common list separators.
6358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6359 for pkg in $enableval; do
6360 IFS="$lt_save_ifs"
6361 if test "X$pkg" = "X$p"; then
6362 enable_shared=yes
6363 fi
6364 done
6365 IFS="$lt_save_ifs"
6366 ;;
6367 esac
6368 else
6369 enable_shared=yes
6370 fi
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 # Check whether --with-pic was given.
6383 if test "${with_pic+set}" = set; then :
6384 withval=$with_pic; pic_mode="$withval"
6385 else
6386 pic_mode=default
6387 fi
6388
6389
6390 test -z "$pic_mode" && pic_mode=default
6391
6392
6393
6394
6395
6396
6397
6398 # Check whether --enable-fast-install was given.
6399 if test "${enable_fast_install+set}" = set; then :
6400 enableval=$enable_fast_install; p=${PACKAGE-default}
6401 case $enableval in
6402 yes) enable_fast_install=yes ;;
6403 no) enable_fast_install=no ;;
6404 *)
6405 enable_fast_install=no
6406 # Look at the argument we got. We use all the common list separators.
6407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6408 for pkg in $enableval; do
6409 IFS="$lt_save_ifs"
6410 if test "X$pkg" = "X$p"; then
6411 enable_fast_install=yes
6412 fi
6413 done
6414 IFS="$lt_save_ifs"
6415 ;;
6416 esac
6417 else
6418 enable_fast_install=yes
6419 fi
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 # This can be used to rebuild libtool when needed
6432 LIBTOOL_DEPS="$ltmain"
6433
6434 # Always use our own libtool.
6435 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 test -z "$LN_S" && LN_S="ln -s"
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 if test -n "${ZSH_VERSION+set}" ; then
6477 setopt NO_GLOB_SUBST
6478 fi
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6481 $as_echo_n "checking for objdir... " >&6; }
6482 if test "${lt_cv_objdir+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 rm -f .libs 2>/dev/null
6486 mkdir .libs 2>/dev/null
6487 if test -d .libs; then
6488 lt_cv_objdir=.libs
6489 else
6490 # MS-DOS does not allow filenames that begin with a dot.
6491 lt_cv_objdir=_libs
6492 fi
6493 rmdir .libs 2>/dev/null
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6496 $as_echo "$lt_cv_objdir" >&6; }
6497 objdir=$lt_cv_objdir
6498
6499
6500
6501
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define LT_OBJDIR "$lt_cv_objdir/"
6505 _ACEOF
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 case $host_os in
6524 aix3*)
6525 # AIX sometimes has problems with the GCC collect2 program. For some
6526 # reason, if we set the COLLECT_NAMES environment variable, the problems
6527 # vanish in a puff of smoke.
6528 if test "X${COLLECT_NAMES+set}" != Xset; then
6529 COLLECT_NAMES=
6530 export COLLECT_NAMES
6531 fi
6532 ;;
6533 esac
6534
6535 # Sed substitution that helps us do robust quoting. It backslashifies
6536 # metacharacters that are still active within double-quoted strings.
6537 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6538
6539 # Same as above, but do not quote variable references.
6540 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6541
6542 # Sed substitution to delay expansion of an escaped shell variable in a
6543 # double_quote_subst'ed string.
6544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6545
6546 # Sed substitution to delay expansion of an escaped single quote.
6547 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6548
6549 # Sed substitution to avoid accidental globbing in evaled expressions
6550 no_glob_subst='s/\*/\\\*/g'
6551
6552 # Global variables:
6553 ofile=libtool
6554 can_build_shared=yes
6555
6556 # All known linkers require a `.a' archive for static linking (except MSVC,
6557 # which needs '.lib').
6558 libext=a
6559
6560 with_gnu_ld="$lt_cv_prog_gnu_ld"
6561
6562 old_CC="$CC"
6563 old_CFLAGS="$CFLAGS"
6564
6565 # Set sane defaults for various variables
6566 test -z "$CC" && CC=cc
6567 test -z "$LTCC" && LTCC=$CC
6568 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6569 test -z "$LD" && LD=ld
6570 test -z "$ac_objext" && ac_objext=o
6571
6572 for cc_temp in $compiler""; do
6573 case $cc_temp in
6574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6576 \-*) ;;
6577 *) break;;
6578 esac
6579 done
6580 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6581
6582
6583 # Only perform the check for file, if the check method requires it
6584 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6585 case $deplibs_check_method in
6586 file_magic*)
6587 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6589 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6590 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 case $MAGIC_CMD in
6594 [\\/*] | ?:[\\/]*)
6595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6596 ;;
6597 *)
6598 lt_save_MAGIC_CMD="$MAGIC_CMD"
6599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6601 for ac_dir in $ac_dummy; do
6602 IFS="$lt_save_ifs"
6603 test -z "$ac_dir" && ac_dir=.
6604 if test -f $ac_dir/${ac_tool_prefix}file; then
6605 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6606 if test -n "$file_magic_test_file"; then
6607 case $deplibs_check_method in
6608 "file_magic "*)
6609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6612 $EGREP "$file_magic_regex" > /dev/null; then
6613 :
6614 else
6615 cat <<_LT_EOF 1>&2
6616
6617 *** Warning: the command libtool uses to detect shared libraries,
6618 *** $file_magic_cmd, produces output that libtool cannot recognize.
6619 *** The result is that libtool may fail to recognize shared libraries
6620 *** as such. This will affect the creation of libtool libraries that
6621 *** depend on shared libraries, but programs linked with such libtool
6622 *** libraries will work regardless of this problem. Nevertheless, you
6623 *** may want to report the problem to your system manager and/or to
6624 *** bug-libtool@gnu.org
6625
6626 _LT_EOF
6627 fi ;;
6628 esac
6629 fi
6630 break
6631 fi
6632 done
6633 IFS="$lt_save_ifs"
6634 MAGIC_CMD="$lt_save_MAGIC_CMD"
6635 ;;
6636 esac
6637 fi
6638
6639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6640 if test -n "$MAGIC_CMD"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6642 $as_echo "$MAGIC_CMD" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649
6650
6651
6652 if test -z "$lt_cv_path_MAGIC_CMD"; then
6653 if test -n "$ac_tool_prefix"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6655 $as_echo_n "checking for file... " >&6; }
6656 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 case $MAGIC_CMD in
6660 [\\/*] | ?:[\\/]*)
6661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6662 ;;
6663 *)
6664 lt_save_MAGIC_CMD="$MAGIC_CMD"
6665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6666 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6667 for ac_dir in $ac_dummy; do
6668 IFS="$lt_save_ifs"
6669 test -z "$ac_dir" && ac_dir=.
6670 if test -f $ac_dir/file; then
6671 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6672 if test -n "$file_magic_test_file"; then
6673 case $deplibs_check_method in
6674 "file_magic "*)
6675 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6677 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6678 $EGREP "$file_magic_regex" > /dev/null; then
6679 :
6680 else
6681 cat <<_LT_EOF 1>&2
6682
6683 *** Warning: the command libtool uses to detect shared libraries,
6684 *** $file_magic_cmd, produces output that libtool cannot recognize.
6685 *** The result is that libtool may fail to recognize shared libraries
6686 *** as such. This will affect the creation of libtool libraries that
6687 *** depend on shared libraries, but programs linked with such libtool
6688 *** libraries will work regardless of this problem. Nevertheless, you
6689 *** may want to report the problem to your system manager and/or to
6690 *** bug-libtool@gnu.org
6691
6692 _LT_EOF
6693 fi ;;
6694 esac
6695 fi
6696 break
6697 fi
6698 done
6699 IFS="$lt_save_ifs"
6700 MAGIC_CMD="$lt_save_MAGIC_CMD"
6701 ;;
6702 esac
6703 fi
6704
6705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706 if test -n "$MAGIC_CMD"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6708 $as_echo "$MAGIC_CMD" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714
6715 else
6716 MAGIC_CMD=:
6717 fi
6718 fi
6719
6720 fi
6721 ;;
6722 esac
6723
6724 # Use C for the default configuration in the libtool script
6725
6726 lt_save_CC="$CC"
6727 ac_ext=c
6728 ac_cpp='$CPP $CPPFLAGS'
6729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
6733
6734 # Source file extension for C test sources.
6735 ac_ext=c
6736
6737 # Object file extension for compiled C test sources.
6738 objext=o
6739 objext=$objext
6740
6741 # Code to be used in simple compile tests
6742 lt_simple_compile_test_code="int some_variable = 0;"
6743
6744 # Code to be used in simple link tests
6745 lt_simple_link_test_code='int main(){return(0);}'
6746
6747
6748
6749
6750
6751
6752
6753 # If no C compiler was specified, use CC.
6754 LTCC=${LTCC-"$CC"}
6755
6756 # If no C compiler flags were specified, use CFLAGS.
6757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6758
6759 # Allow CC to be a program name with arguments.
6760 compiler=$CC
6761
6762 # Save the default compiler, since it gets overwritten when the other
6763 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6764 compiler_DEFAULT=$CC
6765
6766 # save warnings/boilerplate of simple test code
6767 ac_outfile=conftest.$ac_objext
6768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6770 _lt_compiler_boilerplate=`cat conftest.err`
6771 $RM conftest*
6772
6773 ac_outfile=conftest.$ac_objext
6774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6776 _lt_linker_boilerplate=`cat conftest.err`
6777 $RM -r conftest*
6778
6779
6780 if test -n "$compiler"; then
6781
6782 lt_prog_compiler_no_builtin_flag=
6783
6784 if test "$GCC" = yes; then
6785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6788 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6789 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 lt_cv_prog_compiler_rtti_exceptions=no
6793 ac_outfile=conftest.$ac_objext
6794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="-fno-rtti -fno-exceptions"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
6806 (eval "$lt_compile" 2>conftest.err)
6807 ac_status=$?
6808 cat conftest.err >&5
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_cv_prog_compiler_rtti_exceptions=yes
6817 fi
6818 fi
6819 $RM conftest*
6820
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6823 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6824
6825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6827 else
6828 :
6829 fi
6830
6831 fi
6832
6833
6834
6835
6836
6837
6838 lt_prog_compiler_wl=
6839 lt_prog_compiler_pic=
6840 lt_prog_compiler_static=
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6844
6845 if test "$GCC" = yes; then
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_static='-static'
6848
6849 case $host_os in
6850 aix*)
6851 # All AIX code is PIC.
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6855 fi
6856 ;;
6857
6858 amigaos*)
6859 case $host_cpu in
6860 powerpc)
6861 # see comment about AmigaOS4 .so support
6862 lt_prog_compiler_pic='-fPIC'
6863 ;;
6864 m68k)
6865 # FIXME: we need at least 68020 code to build shared libraries, but
6866 # adding the `-m68020' flag to GCC prevents building anything better,
6867 # like `-m68040'.
6868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6869 ;;
6870 esac
6871 ;;
6872
6873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6874 # PIC is the default for these OSes.
6875 ;;
6876
6877 mingw* | cygwin* | pw32* | os2* | cegcc*)
6878 # This hack is so that the source file can tell whether it is being
6879 # built for inclusion in a dll (and should export symbols for example).
6880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6881 # (--disable-auto-import) libraries
6882 lt_prog_compiler_pic='-DDLL_EXPORT'
6883 ;;
6884
6885 darwin* | rhapsody*)
6886 # PIC is the default on this platform
6887 # Common symbols not allowed in MH_DYLIB files
6888 lt_prog_compiler_pic='-fno-common'
6889 ;;
6890
6891 hpux*)
6892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6894 # sets the default TLS model and affects inlining.
6895 case $host_cpu in
6896 hppa*64*)
6897 # +Z the default
6898 ;;
6899 *)
6900 lt_prog_compiler_pic='-fPIC'
6901 ;;
6902 esac
6903 ;;
6904
6905 interix[3-9]*)
6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6907 # Instead, we relocate shared libraries at runtime.
6908 ;;
6909
6910 msdosdjgpp*)
6911 # Just because we use GCC doesn't mean we suddenly get shared libraries
6912 # on systems that don't support them.
6913 lt_prog_compiler_can_build_shared=no
6914 enable_shared=no
6915 ;;
6916
6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6921 ;;
6922
6923 sysv4*MP*)
6924 if test -d /usr/nec; then
6925 lt_prog_compiler_pic=-Kconform_pic
6926 fi
6927 ;;
6928
6929 *)
6930 lt_prog_compiler_pic='-fPIC'
6931 ;;
6932 esac
6933 else
6934 # PORTME Check for flag to pass linker flags through the system compiler.
6935 case $host_os in
6936 aix*)
6937 lt_prog_compiler_wl='-Wl,'
6938 if test "$host_cpu" = ia64; then
6939 # AIX 5 now supports IA64 processor
6940 lt_prog_compiler_static='-Bstatic'
6941 else
6942 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6943 fi
6944 ;;
6945
6946 mingw* | cygwin* | pw32* | os2* | cegcc*)
6947 # This hack is so that the source file can tell whether it is being
6948 # built for inclusion in a dll (and should export symbols for example).
6949 lt_prog_compiler_pic='-DDLL_EXPORT'
6950 ;;
6951
6952 hpux9* | hpux10* | hpux11*)
6953 lt_prog_compiler_wl='-Wl,'
6954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6955 # not for PA HP-UX.
6956 case $host_cpu in
6957 hppa*64*|ia64*)
6958 # +Z the default
6959 ;;
6960 *)
6961 lt_prog_compiler_pic='+Z'
6962 ;;
6963 esac
6964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6965 lt_prog_compiler_static='${wl}-a ${wl}archive'
6966 ;;
6967
6968 irix5* | irix6* | nonstopux*)
6969 lt_prog_compiler_wl='-Wl,'
6970 # PIC (with -KPIC) is the default.
6971 lt_prog_compiler_static='-non_shared'
6972 ;;
6973
6974 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6975 case $cc_basename in
6976 # old Intel for x86_64 which still supported -KPIC.
6977 ecc*)
6978 lt_prog_compiler_wl='-Wl,'
6979 lt_prog_compiler_pic='-KPIC'
6980 lt_prog_compiler_static='-static'
6981 ;;
6982 # icc used to be incompatible with GCC.
6983 # ICC 10 doesn't accept -KPIC any more.
6984 icc* | ifort*)
6985 lt_prog_compiler_wl='-Wl,'
6986 lt_prog_compiler_pic='-fPIC'
6987 lt_prog_compiler_static='-static'
6988 ;;
6989 # Lahey Fortran 8.1.
6990 lf95*)
6991 lt_prog_compiler_wl='-Wl,'
6992 lt_prog_compiler_pic='--shared'
6993 lt_prog_compiler_static='--static'
6994 ;;
6995 pgcc* | pgf77* | pgf90* | pgf95*)
6996 # Portland Group compilers (*not* the Pentium gcc compiler,
6997 # which looks to be a dead project)
6998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-fpic'
7000 lt_prog_compiler_static='-Bstatic'
7001 ;;
7002 ccc*)
7003 lt_prog_compiler_wl='-Wl,'
7004 # All Alpha code is PIC.
7005 lt_prog_compiler_static='-non_shared'
7006 ;;
7007 xl*)
7008 # IBM XL C 8.0/Fortran 10.1 on PPC
7009 lt_prog_compiler_wl='-Wl,'
7010 lt_prog_compiler_pic='-qpic'
7011 lt_prog_compiler_static='-qstaticlink'
7012 ;;
7013 *)
7014 case `$CC -V 2>&1 | sed 5q` in
7015 *Sun\ C*)
7016 # Sun C 5.9
7017 lt_prog_compiler_pic='-KPIC'
7018 lt_prog_compiler_static='-Bstatic'
7019 lt_prog_compiler_wl='-Wl,'
7020 ;;
7021 *Sun\ F*)
7022 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7023 lt_prog_compiler_pic='-KPIC'
7024 lt_prog_compiler_static='-Bstatic'
7025 lt_prog_compiler_wl=''
7026 ;;
7027 esac
7028 ;;
7029 esac
7030 ;;
7031
7032 newsos6)
7033 lt_prog_compiler_pic='-KPIC'
7034 lt_prog_compiler_static='-Bstatic'
7035 ;;
7036
7037 *nto* | *qnx*)
7038 # QNX uses GNU C++, but need to define -shared option too, otherwise
7039 # it will coredump.
7040 lt_prog_compiler_pic='-fPIC -shared'
7041 ;;
7042
7043 osf3* | osf4* | osf5*)
7044 lt_prog_compiler_wl='-Wl,'
7045 # All OSF/1 code is PIC.
7046 lt_prog_compiler_static='-non_shared'
7047 ;;
7048
7049 rdos*)
7050 lt_prog_compiler_static='-non_shared'
7051 ;;
7052
7053 solaris*)
7054 lt_prog_compiler_pic='-KPIC'
7055 lt_prog_compiler_static='-Bstatic'
7056 case $cc_basename in
7057 f77* | f90* | f95*)
7058 lt_prog_compiler_wl='-Qoption ld ';;
7059 *)
7060 lt_prog_compiler_wl='-Wl,';;
7061 esac
7062 ;;
7063
7064 sunos4*)
7065 lt_prog_compiler_wl='-Qoption ld '
7066 lt_prog_compiler_pic='-PIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 sysv4 | sysv4.2uw2* | sysv4.3*)
7071 lt_prog_compiler_wl='-Wl,'
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7074 ;;
7075
7076 sysv4*MP*)
7077 if test -d /usr/nec ;then
7078 lt_prog_compiler_pic='-Kconform_pic'
7079 lt_prog_compiler_static='-Bstatic'
7080 fi
7081 ;;
7082
7083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7084 lt_prog_compiler_wl='-Wl,'
7085 lt_prog_compiler_pic='-KPIC'
7086 lt_prog_compiler_static='-Bstatic'
7087 ;;
7088
7089 unicos*)
7090 lt_prog_compiler_wl='-Wl,'
7091 lt_prog_compiler_can_build_shared=no
7092 ;;
7093
7094 uts4*)
7095 lt_prog_compiler_pic='-pic'
7096 lt_prog_compiler_static='-Bstatic'
7097 ;;
7098
7099 *)
7100 lt_prog_compiler_can_build_shared=no
7101 ;;
7102 esac
7103 fi
7104
7105 case $host_os in
7106 # For platforms which do not support PIC, -DPIC is meaningless:
7107 *djgpp*)
7108 lt_prog_compiler_pic=
7109 ;;
7110 *)
7111 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7112 ;;
7113 esac
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7115 $as_echo "$lt_prog_compiler_pic" >&6; }
7116
7117
7118
7119
7120
7121
7122 #
7123 # Check to make sure the PIC flag actually works.
7124 #
7125 if test -n "$lt_prog_compiler_pic"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7127 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7128 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 lt_cv_prog_compiler_pic_works=no
7132 ac_outfile=conftest.$ac_objext
7133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7135 # Insert the option either (1) after the last *FLAGS variable, or
7136 # (2) before a word containing "conftest.", or (3) at the end.
7137 # Note that $ac_compile itself does not contain backslashes and begins
7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
7139 # The option is referenced via a variable to avoid confusing sed.
7140 lt_compile=`echo "$ac_compile" | $SED \
7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7143 -e 's:$: $lt_compiler_flag:'`
7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
7145 (eval "$lt_compile" 2>conftest.err)
7146 ac_status=$?
7147 cat conftest.err >&5
7148 echo "$as_me:7148: \$? = $ac_status" >&5
7149 if (exit $ac_status) && test -s "$ac_outfile"; then
7150 # The compiler can only warn and ignore the option if not recognized
7151 # So say no if there are warnings other than the usual output.
7152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7155 lt_cv_prog_compiler_pic_works=yes
7156 fi
7157 fi
7158 $RM conftest*
7159
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7162 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7163
7164 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7165 case $lt_prog_compiler_pic in
7166 "" | " "*) ;;
7167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7168 esac
7169 else
7170 lt_prog_compiler_pic=
7171 lt_prog_compiler_can_build_shared=no
7172 fi
7173
7174 fi
7175
7176
7177
7178
7179
7180
7181 #
7182 # Check to make sure the static flag actually works.
7183 #
7184 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7186 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7187 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7188 $as_echo_n "(cached) " >&6
7189 else
7190 lt_cv_prog_compiler_static_works=no
7191 save_LDFLAGS="$LDFLAGS"
7192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7195 # The linker can only warn and ignore the option if not recognized
7196 # So say no if there are warnings
7197 if test -s conftest.err; then
7198 # Append any errors to the config.log.
7199 cat conftest.err 1>&5
7200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7202 if diff conftest.exp conftest.er2 >/dev/null; then
7203 lt_cv_prog_compiler_static_works=yes
7204 fi
7205 else
7206 lt_cv_prog_compiler_static_works=yes
7207 fi
7208 fi
7209 $RM -r conftest*
7210 LDFLAGS="$save_LDFLAGS"
7211
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7214 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7215
7216 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7217 :
7218 else
7219 lt_prog_compiler_static=
7220 fi
7221
7222
7223
7224
7225
7226
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7229 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7230 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 lt_cv_prog_compiler_c_o=no
7234 $RM -r conftest 2>/dev/null
7235 mkdir conftest
7236 cd conftest
7237 mkdir out
7238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7239
7240 lt_compiler_flag="-o out/conftest2.$ac_objext"
7241 # Insert the option either (1) after the last *FLAGS variable, or
7242 # (2) before a word containing "conftest.", or (3) at the end.
7243 # Note that $ac_compile itself does not contain backslashes and begins
7244 # with a dollar sign (not a hyphen), so the echo should work correctly.
7245 lt_compile=`echo "$ac_compile" | $SED \
7246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248 -e 's:$: $lt_compiler_flag:'`
7249 (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
7250 (eval "$lt_compile" 2>out/conftest.err)
7251 ac_status=$?
7252 cat out/conftest.err >&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7255 then
7256 # The compiler can only warn and ignore the option if not recognized
7257 # So say no if there are warnings
7258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7261 lt_cv_prog_compiler_c_o=yes
7262 fi
7263 fi
7264 chmod u+w . 2>&5
7265 $RM conftest*
7266 # SGI C++ compiler will create directory out/ii_files/ for
7267 # template instantiation
7268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7269 $RM out/* && rmdir out
7270 cd ..
7271 $RM -r conftest
7272 $RM conftest*
7273
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7276 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7277
7278
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 lt_cv_prog_compiler_c_o=no
7289 $RM -r conftest 2>/dev/null
7290 mkdir conftest
7291 cd conftest
7292 mkdir out
7293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7294
7295 lt_compiler_flag="-o out/conftest2.$ac_objext"
7296 # Insert the option either (1) after the last *FLAGS variable, or
7297 # (2) before a word containing "conftest.", or (3) at the end.
7298 # Note that $ac_compile itself does not contain backslashes and begins
7299 # with a dollar sign (not a hyphen), so the echo should work correctly.
7300 lt_compile=`echo "$ac_compile" | $SED \
7301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7303 -e 's:$: $lt_compiler_flag:'`
7304 (eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
7305 (eval "$lt_compile" 2>out/conftest.err)
7306 ac_status=$?
7307 cat out/conftest.err >&5
7308 echo "$as_me:7308: \$? = $ac_status" >&5
7309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7310 then
7311 # The compiler can only warn and ignore the option if not recognized
7312 # So say no if there are warnings
7313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7316 lt_cv_prog_compiler_c_o=yes
7317 fi
7318 fi
7319 chmod u+w . 2>&5
7320 $RM conftest*
7321 # SGI C++ compiler will create directory out/ii_files/ for
7322 # template instantiation
7323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7324 $RM out/* && rmdir out
7325 cd ..
7326 $RM -r conftest
7327 $RM conftest*
7328
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7331 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7332
7333
7334
7335
7336 hard_links="nottested"
7337 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7338 # do not overwrite the value of need_locks provided by the user
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7340 $as_echo_n "checking if we can lock with hard links... " >&6; }
7341 hard_links=yes
7342 $RM conftest*
7343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7344 touch conftest.a
7345 ln conftest.a conftest.b 2>&5 || hard_links=no
7346 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7348 $as_echo "$hard_links" >&6; }
7349 if test "$hard_links" = no; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7351 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7352 need_locks=warn
7353 fi
7354 else
7355 need_locks=no
7356 fi
7357
7358
7359
7360
7361
7362
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7364 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7365
7366 runpath_var=
7367 allow_undefined_flag=
7368 always_export_symbols=no
7369 archive_cmds=
7370 archive_expsym_cmds=
7371 compiler_needs_object=no
7372 enable_shared_with_static_runtimes=no
7373 export_dynamic_flag_spec=
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7375 hardcode_automatic=no
7376 hardcode_direct=no
7377 hardcode_direct_absolute=no
7378 hardcode_libdir_flag_spec=
7379 hardcode_libdir_flag_spec_ld=
7380 hardcode_libdir_separator=
7381 hardcode_minus_L=no
7382 hardcode_shlibpath_var=unsupported
7383 inherit_rpath=no
7384 link_all_deplibs=unknown
7385 module_cmds=
7386 module_expsym_cmds=
7387 old_archive_from_new_cmds=
7388 old_archive_from_expsyms_cmds=
7389 thread_safe_flag_spec=
7390 whole_archive_flag_spec=
7391 # include_expsyms should be a list of space-separated symbols to be *always*
7392 # included in the symbol list
7393 include_expsyms=
7394 # exclude_expsyms can be an extended regexp of symbols to exclude
7395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7397 # as well as any symbol that contains `d'.
7398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7400 # platforms (ab)use it in PIC code, but their linkers get confused if
7401 # the symbol is explicitly referenced. Since portable code cannot
7402 # rely on this symbol name, it's probably fine to never include it in
7403 # preloaded symbol tables.
7404 # Exclude shared library initialization/finalization symbols.
7405 extract_expsyms_cmds=
7406
7407 case $host_os in
7408 cygwin* | mingw* | pw32* | cegcc*)
7409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7410 # When not using gcc, we currently assume that we are using
7411 # Microsoft Visual C++.
7412 if test "$GCC" != yes; then
7413 with_gnu_ld=no
7414 fi
7415 ;;
7416 interix*)
7417 # we just hope/assume this is gcc and not c89 (= MSVC++)
7418 with_gnu_ld=yes
7419 ;;
7420 openbsd*)
7421 with_gnu_ld=no
7422 ;;
7423 linux* | k*bsd*-gnu)
7424 link_all_deplibs=no
7425 ;;
7426 esac
7427
7428 ld_shlibs=yes
7429 if test "$with_gnu_ld" = yes; then
7430 # If archive_cmds runs LD, not CC, wlarc should be empty
7431 wlarc='${wl}'
7432
7433 # Set some defaults for GNU ld with shared library support. These
7434 # are reset later if shared libraries are not supported. Putting them
7435 # here allows them to be overridden if necessary.
7436 runpath_var=LD_RUN_PATH
7437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438 export_dynamic_flag_spec='${wl}--export-dynamic'
7439 # ancient GNU ld didn't support --whole-archive et. al.
7440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7442 else
7443 whole_archive_flag_spec=
7444 fi
7445 supports_anon_versioning=no
7446 case `$LD -v 2>&1` in
7447 *GNU\ gold*) supports_anon_versioning=yes ;;
7448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7451 *\ 2.11.*) ;; # other 2.11 versions
7452 *) supports_anon_versioning=yes ;;
7453 esac
7454
7455 # See if GNU ld supports shared libraries.
7456 case $host_os in
7457 aix[3-9]*)
7458 # On AIX/PPC, the GNU linker is very broken
7459 if test "$host_cpu" != ia64; then
7460 ld_shlibs=no
7461 cat <<_LT_EOF 1>&2
7462
7463 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7464 *** to be unable to reliably create shared libraries on AIX.
7465 *** Therefore, libtool is disabling shared libraries support. If you
7466 *** really care for shared libraries, you may want to modify your PATH
7467 *** so that a non-GNU linker is found, and then restart.
7468
7469 _LT_EOF
7470 fi
7471 ;;
7472
7473 amigaos*)
7474 case $host_cpu in
7475 powerpc)
7476 # see comment about AmigaOS4 .so support
7477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7478 archive_expsym_cmds=''
7479 ;;
7480 m68k)
7481 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)'
7482 hardcode_libdir_flag_spec='-L$libdir'
7483 hardcode_minus_L=yes
7484 ;;
7485 esac
7486 ;;
7487
7488 beos*)
7489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7490 allow_undefined_flag=unsupported
7491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7492 # support --undefined. This deserves some investigation. FIXME
7493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494 else
7495 ld_shlibs=no
7496 fi
7497 ;;
7498
7499 cygwin* | mingw* | pw32* | cegcc*)
7500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7501 # as there is no search path for DLLs.
7502 hardcode_libdir_flag_spec='-L$libdir'
7503 allow_undefined_flag=unsupported
7504 always_export_symbols=no
7505 enable_shared_with_static_runtimes=yes
7506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7507
7508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7510 # If the export-symbols file already is a .def file (1st line
7511 # is EXPORTS), use it as is; otherwise, prepend...
7512 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7513 cp $export_symbols $output_objdir/$soname.def;
7514 else
7515 echo EXPORTS > $output_objdir/$soname.def;
7516 cat $export_symbols >> $output_objdir/$soname.def;
7517 fi~
7518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7519 else
7520 ld_shlibs=no
7521 fi
7522 ;;
7523
7524 interix[3-9]*)
7525 hardcode_direct=no
7526 hardcode_shlibpath_var=no
7527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7528 export_dynamic_flag_spec='${wl}-E'
7529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7530 # Instead, shared libraries are loaded at an image base (0x10000000 by
7531 # default) and relocated if they conflict, which is a slow very memory
7532 # consuming and fragmenting process. To avoid this, we pick a random,
7533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7536 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'
7537 ;;
7538
7539 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7540 tmp_diet=no
7541 if test "$host_os" = linux-dietlibc; then
7542 case $cc_basename in
7543 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7544 esac
7545 fi
7546 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7547 && test "$tmp_diet" = no
7548 then
7549 tmp_addflag=
7550 tmp_sharedflag='-shared'
7551 case $cc_basename,$host_cpu in
7552 pgcc*) # Portland Group C compiler
7553 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'
7554 tmp_addflag=' $pic_flag'
7555 ;;
7556 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7557 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'
7558 tmp_addflag=' $pic_flag -Mnomain' ;;
7559 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7560 tmp_addflag=' -i_dynamic' ;;
7561 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7562 tmp_addflag=' -i_dynamic -nofor_main' ;;
7563 ifc* | ifort*) # Intel Fortran compiler
7564 tmp_addflag=' -nofor_main' ;;
7565 lf95*) # Lahey Fortran 8.1
7566 whole_archive_flag_spec=
7567 tmp_sharedflag='--shared' ;;
7568 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7569 tmp_sharedflag='-qmkshrobj'
7570 tmp_addflag= ;;
7571 esac
7572 case `$CC -V 2>&1 | sed 5q` in
7573 *Sun\ C*) # Sun C 5.9
7574 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'
7575 compiler_needs_object=yes
7576 tmp_sharedflag='-G' ;;
7577 *Sun\ F*) # Sun Fortran 8.3
7578 tmp_sharedflag='-G' ;;
7579 esac
7580 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7581
7582 if test "x$supports_anon_versioning" = xyes; then
7583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7585 echo "local: *; };" >> $output_objdir/$libname.ver~
7586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7587 fi
7588
7589 case $cc_basename in
7590 xlf*)
7591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7592 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7593 hardcode_libdir_flag_spec=
7594 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7595 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7596 if test "x$supports_anon_versioning" = xyes; then
7597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7599 echo "local: *; };" >> $output_objdir/$libname.ver~
7600 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7601 fi
7602 ;;
7603 esac
7604 else
7605 ld_shlibs=no
7606 fi
7607 ;;
7608
7609 netbsd* | netbsdelf*-gnu)
7610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7612 wlarc=
7613 else
7614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7616 fi
7617 ;;
7618
7619 solaris*)
7620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7621 ld_shlibs=no
7622 cat <<_LT_EOF 1>&2
7623
7624 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7625 *** create shared libraries on Solaris systems. Therefore, libtool
7626 *** is disabling shared libraries support. We urge you to upgrade GNU
7627 *** binutils to release 2.9.1 or newer. Another option is to modify
7628 *** your PATH or compiler configuration so that the native linker is
7629 *** used, and then restart.
7630
7631 _LT_EOF
7632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7635 else
7636 ld_shlibs=no
7637 fi
7638 ;;
7639
7640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7641 case `$LD -v 2>&1` in
7642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7643 ld_shlibs=no
7644 cat <<_LT_EOF 1>&2
7645
7646 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7647 *** reliably create shared libraries on SCO systems. Therefore, libtool
7648 *** is disabling shared libraries support. We urge you to upgrade GNU
7649 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7650 *** your PATH or compiler configuration so that the native linker is
7651 *** used, and then restart.
7652
7653 _LT_EOF
7654 ;;
7655 *)
7656 # For security reasons, it is highly recommended that you always
7657 # use absolute paths for naming shared libraries, and exclude the
7658 # DT_RUNPATH tag from executables and libraries. But doing so
7659 # requires that you compile everything twice, which is a pain.
7660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668 esac
7669 ;;
7670
7671 sunos4*)
7672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7673 wlarc=
7674 hardcode_direct=yes
7675 hardcode_shlibpath_var=no
7676 ;;
7677
7678 *)
7679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7682 else
7683 ld_shlibs=no
7684 fi
7685 ;;
7686 esac
7687
7688 if test "$ld_shlibs" = no; then
7689 runpath_var=
7690 hardcode_libdir_flag_spec=
7691 export_dynamic_flag_spec=
7692 whole_archive_flag_spec=
7693 fi
7694 else
7695 # PORTME fill in a description of your system's linker (not GNU ld)
7696 case $host_os in
7697 aix3*)
7698 allow_undefined_flag=unsupported
7699 always_export_symbols=yes
7700 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'
7701 # Note: this linker hardcodes the directories in LIBPATH if there
7702 # are no directories specified by -L.
7703 hardcode_minus_L=yes
7704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7705 # Neither direct hardcoding nor static linking is supported with a
7706 # broken collect2.
7707 hardcode_direct=unsupported
7708 fi
7709 ;;
7710
7711 aix[4-9]*)
7712 if test "$host_cpu" = ia64; then
7713 # On IA64, the linker does run time linking by default, so we don't
7714 # have to do anything special.
7715 aix_use_runtimelinking=no
7716 exp_sym_flag='-Bexport'
7717 no_entry_flag=""
7718 else
7719 # If we're using GNU nm, then we don't want the "-C" option.
7720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7722 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'
7723 else
7724 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'
7725 fi
7726 aix_use_runtimelinking=no
7727
7728 # Test if we are trying to use run time linking or normal
7729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7730 # need to do runtime linking.
7731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7732 for ld_flag in $LDFLAGS; do
7733 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7734 aix_use_runtimelinking=yes
7735 break
7736 fi
7737 done
7738 ;;
7739 esac
7740
7741 exp_sym_flag='-bexport'
7742 no_entry_flag='-bnoentry'
7743 fi
7744
7745 # When large executables or shared objects are built, AIX ld can
7746 # have problems creating the table of contents. If linking a library
7747 # or program results in "error TOC overflow" add -mminimal-toc to
7748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7750
7751 archive_cmds=''
7752 hardcode_direct=yes
7753 hardcode_direct_absolute=yes
7754 hardcode_libdir_separator=':'
7755 link_all_deplibs=yes
7756 file_list_spec='${wl}-f,'
7757
7758 if test "$GCC" = yes; then
7759 case $host_os in aix4.[012]|aix4.[012].*)
7760 # We only want to do this on AIX 4.2 and lower, the check
7761 # below for broken collect2 doesn't work under 4.3+
7762 collect2name=`${CC} -print-prog-name=collect2`
7763 if test -f "$collect2name" &&
7764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7765 then
7766 # We have reworked collect2
7767 :
7768 else
7769 # We have old collect2
7770 hardcode_direct=unsupported
7771 # It fails to find uninstalled libraries when the uninstalled
7772 # path is not listed in the libpath. Setting hardcode_minus_L
7773 # to unsupported forces relinking
7774 hardcode_minus_L=yes
7775 hardcode_libdir_flag_spec='-L$libdir'
7776 hardcode_libdir_separator=
7777 fi
7778 ;;
7779 esac
7780 shared_flag='-shared'
7781 if test "$aix_use_runtimelinking" = yes; then
7782 shared_flag="$shared_flag "'${wl}-G'
7783 fi
7784 link_all_deplibs=no
7785 else
7786 # not using gcc
7787 if test "$host_cpu" = ia64; then
7788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7789 # chokes on -Wl,-G. The following line is correct:
7790 shared_flag='-G'
7791 else
7792 if test "$aix_use_runtimelinking" = yes; then
7793 shared_flag='${wl}-G'
7794 else
7795 shared_flag='${wl}-bM:SRE'
7796 fi
7797 fi
7798 fi
7799
7800 export_dynamic_flag_spec='${wl}-bexpall'
7801 # It seems that -bexpall does not export symbols beginning with
7802 # underscore (_), so it is better to generate a list of symbols to export.
7803 always_export_symbols=yes
7804 if test "$aix_use_runtimelinking" = yes; then
7805 # Warning - without using the other runtime loading flags (-brtl),
7806 # -berok will link without error, but may produce a broken library.
7807 allow_undefined_flag='-berok'
7808 # Determine the default libpath from the value encoded in an
7809 # empty executable.
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812
7813 int
7814 main ()
7815 {
7816
7817 ;
7818 return 0;
7819 }
7820 _ACEOF
7821 if ac_fn_c_try_link "$LINENO"; then :
7822
7823 lt_aix_libpath_sed='
7824 /Import File Strings/,/^$/ {
7825 /^0/ {
7826 s/^0 *\(.*\)$/\1/
7827 p
7828 }
7829 }'
7830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7831 # Check for a 64-bit object if we didn't find anything.
7832 if test -z "$aix_libpath"; then
7833 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7834 fi
7835 fi
7836 rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7839
7840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7841 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"
7842 else
7843 if test "$host_cpu" = ia64; then
7844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7845 allow_undefined_flag="-z nodefs"
7846 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"
7847 else
7848 # Determine the default libpath from the value encoded in an
7849 # empty executable.
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852
7853 int
7854 main ()
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862
7863 lt_aix_libpath_sed='
7864 /Import File Strings/,/^$/ {
7865 /^0/ {
7866 s/^0 *\(.*\)$/\1/
7867 p
7868 }
7869 }'
7870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7871 # Check for a 64-bit object if we didn't find anything.
7872 if test -z "$aix_libpath"; then
7873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7874 fi
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7879
7880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7881 # Warning - without using the other run time loading flags,
7882 # -berok will link without error, but may produce a broken library.
7883 no_undefined_flag=' ${wl}-bernotok'
7884 allow_undefined_flag=' ${wl}-berok'
7885 # Exported symbols can be pulled into shared objects from archives
7886 whole_archive_flag_spec='$convenience'
7887 archive_cmds_need_lc=yes
7888 # This is similar to how AIX traditionally builds its shared libraries.
7889 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'
7890 fi
7891 fi
7892 ;;
7893
7894 amigaos*)
7895 case $host_cpu in
7896 powerpc)
7897 # see comment about AmigaOS4 .so support
7898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899 archive_expsym_cmds=''
7900 ;;
7901 m68k)
7902 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)'
7903 hardcode_libdir_flag_spec='-L$libdir'
7904 hardcode_minus_L=yes
7905 ;;
7906 esac
7907 ;;
7908
7909 bsdi[45]*)
7910 export_dynamic_flag_spec=-rdynamic
7911 ;;
7912
7913 cygwin* | mingw* | pw32* | cegcc*)
7914 # When not using gcc, we currently assume that we are using
7915 # Microsoft Visual C++.
7916 # hardcode_libdir_flag_spec is actually meaningless, as there is
7917 # no search path for DLLs.
7918 hardcode_libdir_flag_spec=' '
7919 allow_undefined_flag=unsupported
7920 # Tell ltmain to make .lib files, not .a files.
7921 libext=lib
7922 # Tell ltmain to make .dll files, not .so files.
7923 shrext_cmds=".dll"
7924 # FIXME: Setting linknames here is a bad hack.
7925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7926 # The linker will automatically build a .lib file if we build a DLL.
7927 old_archive_from_new_cmds='true'
7928 # FIXME: Should let the user specify the lib program.
7929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7930 fix_srcfile_path='`cygpath -w "$srcfile"`'
7931 enable_shared_with_static_runtimes=yes
7932 ;;
7933
7934 darwin* | rhapsody*)
7935
7936
7937 archive_cmds_need_lc=no
7938 hardcode_direct=no
7939 hardcode_automatic=yes
7940 hardcode_shlibpath_var=unsupported
7941 whole_archive_flag_spec=''
7942 link_all_deplibs=yes
7943 allow_undefined_flag="$_lt_dar_allow_undefined"
7944 case $cc_basename in
7945 ifort*) _lt_dar_can_shared=yes ;;
7946 *) _lt_dar_can_shared=$GCC ;;
7947 esac
7948 if test "$_lt_dar_can_shared" = "yes"; then
7949 output_verbose_link_cmd=echo
7950 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7951 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7952 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}"
7953 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}"
7954
7955 else
7956 ld_shlibs=no
7957 fi
7958
7959 ;;
7960
7961 dgux*)
7962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7963 hardcode_libdir_flag_spec='-L$libdir'
7964 hardcode_shlibpath_var=no
7965 ;;
7966
7967 freebsd1*)
7968 ld_shlibs=no
7969 ;;
7970
7971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7972 # support. Future versions do this automatically, but an explicit c++rt0.o
7973 # does not break anything, and helps significantly (at the cost of a little
7974 # extra space).
7975 freebsd2.2*)
7976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7977 hardcode_libdir_flag_spec='-R$libdir'
7978 hardcode_direct=yes
7979 hardcode_shlibpath_var=no
7980 ;;
7981
7982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7983 freebsd2*)
7984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7985 hardcode_direct=yes
7986 hardcode_minus_L=yes
7987 hardcode_shlibpath_var=no
7988 ;;
7989
7990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7991 freebsd* | dragonfly*)
7992 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7993 hardcode_libdir_flag_spec='-R$libdir'
7994 hardcode_direct=yes
7995 hardcode_shlibpath_var=no
7996 ;;
7997
7998 hpux9*)
7999 if test "$GCC" = yes; then
8000 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'
8001 else
8002 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'
8003 fi
8004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8005 hardcode_libdir_separator=:
8006 hardcode_direct=yes
8007
8008 # hardcode_minus_L: Not really in the search PATH,
8009 # but as the default location of the library.
8010 hardcode_minus_L=yes
8011 export_dynamic_flag_spec='${wl}-E'
8012 ;;
8013
8014 hpux10*)
8015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8016 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8017 else
8018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8019 fi
8020 if test "$with_gnu_ld" = no; then
8021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8022 hardcode_libdir_flag_spec_ld='+b $libdir'
8023 hardcode_libdir_separator=:
8024 hardcode_direct=yes
8025 hardcode_direct_absolute=yes
8026 export_dynamic_flag_spec='${wl}-E'
8027 # hardcode_minus_L: Not really in the search PATH,
8028 # but as the default location of the library.
8029 hardcode_minus_L=yes
8030 fi
8031 ;;
8032
8033 hpux11*)
8034 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8035 case $host_cpu in
8036 hppa*64*)
8037 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8038 ;;
8039 ia64*)
8040 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8041 ;;
8042 *)
8043 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8044 ;;
8045 esac
8046 else
8047 case $host_cpu in
8048 hppa*64*)
8049 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8050 ;;
8051 ia64*)
8052 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8053 ;;
8054 *)
8055 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8056 ;;
8057 esac
8058 fi
8059 if test "$with_gnu_ld" = no; then
8060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8061 hardcode_libdir_separator=:
8062
8063 case $host_cpu in
8064 hppa*64*|ia64*)
8065 hardcode_direct=no
8066 hardcode_shlibpath_var=no
8067 ;;
8068 *)
8069 hardcode_direct=yes
8070 hardcode_direct_absolute=yes
8071 export_dynamic_flag_spec='${wl}-E'
8072
8073 # hardcode_minus_L: Not really in the search PATH,
8074 # but as the default location of the library.
8075 hardcode_minus_L=yes
8076 ;;
8077 esac
8078 fi
8079 ;;
8080
8081 irix5* | irix6* | nonstopux*)
8082 if test "$GCC" = yes; then
8083 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'
8084 # Try to use the -exported_symbol ld option, if it does not
8085 # work, assume that -exports_file does not work either and
8086 # implicitly export all symbols.
8087 save_LDFLAGS="$LDFLAGS"
8088 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int foo(void) {}
8092 _ACEOF
8093 if ac_fn_c_try_link "$LINENO"; then :
8094 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'
8095
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099 LDFLAGS="$save_LDFLAGS"
8100 else
8101 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'
8102 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'
8103 fi
8104 archive_cmds_need_lc='no'
8105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8106 hardcode_libdir_separator=:
8107 inherit_rpath=yes
8108 link_all_deplibs=yes
8109 ;;
8110
8111 netbsd* | netbsdelf*-gnu)
8112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8114 else
8115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8116 fi
8117 hardcode_libdir_flag_spec='-R$libdir'
8118 hardcode_direct=yes
8119 hardcode_shlibpath_var=no
8120 ;;
8121
8122 newsos6)
8123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124 hardcode_direct=yes
8125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8126 hardcode_libdir_separator=:
8127 hardcode_shlibpath_var=no
8128 ;;
8129
8130 *nto* | *qnx*)
8131 ;;
8132
8133 openbsd*)
8134 if test -f /usr/libexec/ld.so; then
8135 hardcode_direct=yes
8136 hardcode_shlibpath_var=no
8137 hardcode_direct_absolute=yes
8138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8142 export_dynamic_flag_spec='${wl}-E'
8143 else
8144 case $host_os in
8145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_libdir_flag_spec='-R$libdir'
8148 ;;
8149 *)
8150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152 ;;
8153 esac
8154 fi
8155 else
8156 ld_shlibs=no
8157 fi
8158 ;;
8159
8160 os2*)
8161 hardcode_libdir_flag_spec='-L$libdir'
8162 hardcode_minus_L=yes
8163 allow_undefined_flag=unsupported
8164 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'
8165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8166 ;;
8167
8168 osf3*)
8169 if test "$GCC" = yes; then
8170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8171 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'
8172 else
8173 allow_undefined_flag=' -expect_unresolved \*'
8174 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'
8175 fi
8176 archive_cmds_need_lc='no'
8177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8178 hardcode_libdir_separator=:
8179 ;;
8180
8181 osf4* | osf5*) # as osf3* with the addition of -msym flag
8182 if test "$GCC" = yes; then
8183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8184 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'
8185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8186 else
8187 allow_undefined_flag=' -expect_unresolved \*'
8188 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'
8189 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~
8190 $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'
8191
8192 # Both c and cxx compiler support -rpath directly
8193 hardcode_libdir_flag_spec='-rpath $libdir'
8194 fi
8195 archive_cmds_need_lc='no'
8196 hardcode_libdir_separator=:
8197 ;;
8198
8199 solaris*)
8200 no_undefined_flag=' -z defs'
8201 if test "$GCC" = yes; then
8202 wlarc='${wl}'
8203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8206 else
8207 case `$CC -V 2>&1` in
8208 *"Compilers 5.0"*)
8209 wlarc=''
8210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8213 ;;
8214 *)
8215 wlarc='${wl}'
8216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8219 ;;
8220 esac
8221 fi
8222 hardcode_libdir_flag_spec='-R$libdir'
8223 hardcode_shlibpath_var=no
8224 case $host_os in
8225 solaris2.[0-5] | solaris2.[0-5].*) ;;
8226 *)
8227 # The compiler driver will combine and reorder linker options,
8228 # but understands `-z linker_flag'. GCC discards it without `$wl',
8229 # but is careful enough not to reorder.
8230 # Supported since Solaris 2.6 (maybe 2.5.1?)
8231 if test "$GCC" = yes; then
8232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8233 else
8234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8235 fi
8236 ;;
8237 esac
8238 link_all_deplibs=yes
8239 ;;
8240
8241 sunos4*)
8242 if test "x$host_vendor" = xsequent; then
8243 # Use $CC to link under sequent, because it throws in some extra .o
8244 # files that make .init and .fini sections work.
8245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8246 else
8247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8248 fi
8249 hardcode_libdir_flag_spec='-L$libdir'
8250 hardcode_direct=yes
8251 hardcode_minus_L=yes
8252 hardcode_shlibpath_var=no
8253 ;;
8254
8255 sysv4)
8256 case $host_vendor in
8257 sni)
8258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8259 hardcode_direct=yes # is this really true???
8260 ;;
8261 siemens)
8262 ## LD is ld it makes a PLAMLIB
8263 ## CC just makes a GrossModule.
8264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8265 reload_cmds='$CC -r -o $output$reload_objs'
8266 hardcode_direct=no
8267 ;;
8268 motorola)
8269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8271 ;;
8272 esac
8273 runpath_var='LD_RUN_PATH'
8274 hardcode_shlibpath_var=no
8275 ;;
8276
8277 sysv4.3*)
8278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_shlibpath_var=no
8280 export_dynamic_flag_spec='-Bexport'
8281 ;;
8282
8283 sysv4*MP*)
8284 if test -d /usr/nec; then
8285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8286 hardcode_shlibpath_var=no
8287 runpath_var=LD_RUN_PATH
8288 hardcode_runpath_var=yes
8289 ld_shlibs=yes
8290 fi
8291 ;;
8292
8293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8294 no_undefined_flag='${wl}-z,text'
8295 archive_cmds_need_lc=no
8296 hardcode_shlibpath_var=no
8297 runpath_var='LD_RUN_PATH'
8298
8299 if test "$GCC" = yes; then
8300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8302 else
8303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8305 fi
8306 ;;
8307
8308 sysv5* | sco3.2v5* | sco5v6*)
8309 # Note: We can NOT use -z defs as we might desire, because we do not
8310 # link with -lc, and that would cause any symbols used from libc to
8311 # always be unresolved, which means just about no library would
8312 # ever link correctly. If we're not using GNU ld we use -z text
8313 # though, which does catch some bad symbols but isn't as heavy-handed
8314 # as -z defs.
8315 no_undefined_flag='${wl}-z,text'
8316 allow_undefined_flag='${wl}-z,nodefs'
8317 archive_cmds_need_lc=no
8318 hardcode_shlibpath_var=no
8319 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8320 hardcode_libdir_separator=':'
8321 link_all_deplibs=yes
8322 export_dynamic_flag_spec='${wl}-Bexport'
8323 runpath_var='LD_RUN_PATH'
8324
8325 if test "$GCC" = yes; then
8326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 else
8329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8331 fi
8332 ;;
8333
8334 uts4*)
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_libdir_flag_spec='-L$libdir'
8337 hardcode_shlibpath_var=no
8338 ;;
8339
8340 *)
8341 ld_shlibs=no
8342 ;;
8343 esac
8344
8345 if test x$host_vendor = xsni; then
8346 case $host in
8347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8348 export_dynamic_flag_spec='${wl}-Blargedynsym'
8349 ;;
8350 esac
8351 fi
8352 fi
8353
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8355 $as_echo "$ld_shlibs" >&6; }
8356 test "$ld_shlibs" = no && can_build_shared=no
8357
8358 with_gnu_ld=$with_gnu_ld
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 #
8375 # Do we need to explicitly link libc?
8376 #
8377 case "x$archive_cmds_need_lc" in
8378 x|xyes)
8379 # Assume -lc should be added
8380 archive_cmds_need_lc=yes
8381
8382 if test "$enable_shared" = yes && test "$GCC" = yes; then
8383 case $archive_cmds in
8384 *'~'*)
8385 # FIXME: we may have to deal with multi-command sequences.
8386 ;;
8387 '$CC '*)
8388 # Test whether the compiler implicitly links with -lc since on some
8389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8390 # to ld, don't add -lc before -lgcc.
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8393 $RM conftest*
8394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395
8396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8397 (eval $ac_compile) 2>&5
8398 ac_status=$?
8399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8400 test $ac_status = 0; } 2>conftest.err; then
8401 soname=conftest
8402 lib=conftest
8403 libobjs=conftest.$ac_objext
8404 deplibs=
8405 wl=$lt_prog_compiler_wl
8406 pic_flag=$lt_prog_compiler_pic
8407 compiler_flags=-v
8408 linker_flags=-v
8409 verstring=
8410 output_objdir=.
8411 libname=conftest
8412 lt_save_allow_undefined_flag=$allow_undefined_flag
8413 allow_undefined_flag=
8414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8416 ac_status=$?
8417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8418 test $ac_status = 0; }
8419 then
8420 archive_cmds_need_lc=no
8421 else
8422 archive_cmds_need_lc=yes
8423 fi
8424 allow_undefined_flag=$lt_save_allow_undefined_flag
8425 else
8426 cat conftest.err 1>&5
8427 fi
8428 $RM conftest*
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8430 $as_echo "$archive_cmds_need_lc" >&6; }
8431 ;;
8432 esac
8433 fi
8434 ;;
8435 esac
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8594 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8595
8596 if test "$GCC" = yes; then
8597 case $host_os in
8598 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8599 *) lt_awk_arg="/^libraries:/" ;;
8600 esac
8601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8603 # if the path contains ";" then we assume it to be the separator
8604 # otherwise default to the standard path separator (i.e. ":") - it is
8605 # assumed that no part of a normal pathname contains ";" but that should
8606 # okay in the real world where ";" in dirpaths is itself problematic.
8607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8608 else
8609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8610 fi
8611 # Ok, now we have the path, separated by spaces, we can step through it
8612 # and add multilib dir if necessary.
8613 lt_tmp_lt_search_path_spec=
8614 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8615 for lt_sys_path in $lt_search_path_spec; do
8616 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8617 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8618 else
8619 test -d "$lt_sys_path" && \
8620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8621 fi
8622 done
8623 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8624 BEGIN {RS=" "; FS="/|\n";} {
8625 lt_foo="";
8626 lt_count=0;
8627 for (lt_i = NF; lt_i > 0; lt_i--) {
8628 if ($lt_i != "" && $lt_i != ".") {
8629 if ($lt_i == "..") {
8630 lt_count++;
8631 } else {
8632 if (lt_count == 0) {
8633 lt_foo="/" $lt_i lt_foo;
8634 } else {
8635 lt_count--;
8636 }
8637 }
8638 }
8639 }
8640 if (lt_foo != "") { lt_freq[lt_foo]++; }
8641 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8642 }'`
8643 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8644 else
8645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8646 fi
8647 library_names_spec=
8648 libname_spec='lib$name'
8649 soname_spec=
8650 shrext_cmds=".so"
8651 postinstall_cmds=
8652 postuninstall_cmds=
8653 finish_cmds=
8654 finish_eval=
8655 shlibpath_var=
8656 shlibpath_overrides_runpath=unknown
8657 version_type=none
8658 dynamic_linker="$host_os ld.so"
8659 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8660 need_lib_prefix=unknown
8661 hardcode_into_libs=no
8662
8663 # when you set need_version to no, make sure it does not cause -set_version
8664 # flags to be left without arguments
8665 need_version=unknown
8666
8667 case $host_os in
8668 aix3*)
8669 version_type=linux
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8671 shlibpath_var=LIBPATH
8672
8673 # AIX 3 has no versioning support, so we append a major version to the name.
8674 soname_spec='${libname}${release}${shared_ext}$major'
8675 ;;
8676
8677 aix[4-9]*)
8678 version_type=linux
8679 need_lib_prefix=no
8680 need_version=no
8681 hardcode_into_libs=yes
8682 if test "$host_cpu" = ia64; then
8683 # AIX 5 supports IA64
8684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8685 shlibpath_var=LD_LIBRARY_PATH
8686 else
8687 # With GCC up to 2.95.x, collect2 would create an import file
8688 # for dependence libraries. The import file would start with
8689 # the line `#! .'. This would cause the generated library to
8690 # depend on `.', always an invalid library. This was fixed in
8691 # development snapshots of GCC prior to 3.0.
8692 case $host_os in
8693 aix4 | aix4.[01] | aix4.[01].*)
8694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8695 echo ' yes '
8696 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8697 :
8698 else
8699 can_build_shared=no
8700 fi
8701 ;;
8702 esac
8703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8704 # soname into executable. Probably we can add versioning support to
8705 # collect2, so additional links can be useful in future.
8706 if test "$aix_use_runtimelinking" = yes; then
8707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8708 # instead of lib<name>.a to let people know that these are not
8709 # typical AIX shared libraries.
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711 else
8712 # We preserve .a as extension for shared libraries through AIX4.2
8713 # and later when we are not doing run time linking.
8714 library_names_spec='${libname}${release}.a $libname.a'
8715 soname_spec='${libname}${release}${shared_ext}$major'
8716 fi
8717 shlibpath_var=LIBPATH
8718 fi
8719 ;;
8720
8721 amigaos*)
8722 case $host_cpu in
8723 powerpc)
8724 # Since July 2007 AmigaOS4 officially supports .so libraries.
8725 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 ;;
8728 m68k)
8729 library_names_spec='$libname.ixlibrary $libname.a'
8730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8731 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'
8732 ;;
8733 esac
8734 ;;
8735
8736 beos*)
8737 library_names_spec='${libname}${shared_ext}'
8738 dynamic_linker="$host_os ld.so"
8739 shlibpath_var=LIBRARY_PATH
8740 ;;
8741
8742 bsdi[45]*)
8743 version_type=linux
8744 need_version=no
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8751 # the default ld.so.conf also contains /usr/contrib/lib and
8752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8753 # libtool to hard-code these into programs
8754 ;;
8755
8756 cygwin* | mingw* | pw32* | cegcc*)
8757 version_type=windows
8758 shrext_cmds=".dll"
8759 need_version=no
8760 need_lib_prefix=no
8761
8762 case $GCC,$host_os in
8763 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8764 library_names_spec='$libname.dll.a'
8765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8766 postinstall_cmds='base_file=`basename \${file}`~
8767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8768 dldir=$destdir/`dirname \$dlpath`~
8769 test -d \$dldir || mkdir -p \$dldir~
8770 $install_prog $dir/$dlname \$dldir/$dlname~
8771 chmod a+x \$dldir/$dlname~
8772 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8773 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8774 fi'
8775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8776 dlpath=$dir/\$dldll~
8777 $RM \$dlpath'
8778 shlibpath_overrides_runpath=yes
8779
8780 case $host_os in
8781 cygwin*)
8782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8785 ;;
8786 mingw* | cegcc*)
8787 # MinGW DLLs use traditional 'lib' prefix
8788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8789 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8791 # It is most probably a Windows format PATH printed by
8792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8793 # path with ; separators, and with drive letters. We can handle the
8794 # drive letters (cygwin fileutils understands them), so leave them,
8795 # especially as we might pass files found there to a mingw objdump,
8796 # which wouldn't understand a cygwinified path. Ahh.
8797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8798 else
8799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8800 fi
8801 ;;
8802 pw32*)
8803 # pw32 DLLs use 'pw' prefix rather than 'lib'
8804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8805 ;;
8806 esac
8807 ;;
8808
8809 *)
8810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8811 ;;
8812 esac
8813 dynamic_linker='Win32 ld.exe'
8814 # FIXME: first we should search . and the directory the executable is in
8815 shlibpath_var=PATH
8816 ;;
8817
8818 darwin* | rhapsody*)
8819 dynamic_linker="$host_os dyld"
8820 version_type=darwin
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8824 soname_spec='${libname}${release}${major}$shared_ext'
8825 shlibpath_overrides_runpath=yes
8826 shlibpath_var=DYLD_LIBRARY_PATH
8827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8828
8829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8831 ;;
8832
8833 dgux*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 ;;
8841
8842 freebsd1*)
8843 dynamic_linker=no
8844 ;;
8845
8846 freebsd* | dragonfly*)
8847 # DragonFly does not have aout. When/if they implement a new
8848 # versioning mechanism, adjust this.
8849 if test -x /usr/bin/objformat; then
8850 objformat=`/usr/bin/objformat`
8851 else
8852 case $host_os in
8853 freebsd[123]*) objformat=aout ;;
8854 *) objformat=elf ;;
8855 esac
8856 fi
8857 version_type=freebsd-$objformat
8858 case $version_type in
8859 freebsd-elf*)
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8861 need_version=no
8862 need_lib_prefix=no
8863 ;;
8864 freebsd-*)
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8866 need_version=yes
8867 ;;
8868 esac
8869 shlibpath_var=LD_LIBRARY_PATH
8870 case $host_os in
8871 freebsd2*)
8872 shlibpath_overrides_runpath=yes
8873 ;;
8874 freebsd3.[01]* | freebsdelf3.[01]*)
8875 shlibpath_overrides_runpath=yes
8876 hardcode_into_libs=yes
8877 ;;
8878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8880 shlibpath_overrides_runpath=no
8881 hardcode_into_libs=yes
8882 ;;
8883 *) # from 4.6 on, and DragonFly
8884 shlibpath_overrides_runpath=yes
8885 hardcode_into_libs=yes
8886 ;;
8887 esac
8888 ;;
8889
8890 gnu*)
8891 version_type=linux
8892 need_lib_prefix=no
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 hardcode_into_libs=yes
8898 ;;
8899
8900 hpux9* | hpux10* | hpux11*)
8901 # Give a soname corresponding to the major version so that dld.sl refuses to
8902 # link against other versions.
8903 version_type=sunos
8904 need_lib_prefix=no
8905 need_version=no
8906 case $host_cpu in
8907 ia64*)
8908 shrext_cmds='.so'
8909 hardcode_into_libs=yes
8910 dynamic_linker="$host_os dld.so"
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 if test "X$HPUX_IA64_MODE" = X32; then
8916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8917 else
8918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8919 fi
8920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8921 ;;
8922 hppa*64*)
8923 shrext_cmds='.sl'
8924 hardcode_into_libs=yes
8925 dynamic_linker="$host_os dld.sl"
8926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8932 ;;
8933 *)
8934 shrext_cmds='.sl'
8935 dynamic_linker="$host_os dld.sl"
8936 shlibpath_var=SHLIB_PATH
8937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 ;;
8941 esac
8942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8943 postinstall_cmds='chmod 555 $lib'
8944 ;;
8945
8946 interix[3-9]*)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 ;;
8957
8958 irix5* | irix6* | nonstopux*)
8959 case $host_os in
8960 nonstopux*) version_type=nonstopux ;;
8961 *)
8962 if test "$lt_cv_prog_gnu_ld" = yes; then
8963 version_type=linux
8964 else
8965 version_type=irix
8966 fi ;;
8967 esac
8968 need_lib_prefix=no
8969 need_version=no
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8972 case $host_os in
8973 irix5* | nonstopux*)
8974 libsuff= shlibsuff=
8975 ;;
8976 *)
8977 case $LD in # libtool.m4 will add one of these switches to LD
8978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8979 libsuff= shlibsuff= libmagic=32-bit;;
8980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8981 libsuff=32 shlibsuff=N32 libmagic=N32;;
8982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8984 *) libsuff= shlibsuff= libmagic=never-match;;
8985 esac
8986 ;;
8987 esac
8988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8989 shlibpath_overrides_runpath=no
8990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8992 hardcode_into_libs=yes
8993 ;;
8994
8995 # No shared lib support for Linux oldld, aout, or coff.
8996 linux*oldld* | linux*aout* | linux*coff*)
8997 dynamic_linker=no
8998 ;;
8999
9000 # This must be Linux ELF.
9001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=no
9010 # Some binutils ld are patched to set DT_RUNPATH
9011 save_LDFLAGS=$LDFLAGS
9012 save_libdir=$libdir
9013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017
9018 int
9019 main ()
9020 {
9021
9022 ;
9023 return 0;
9024 }
9025 _ACEOF
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9028 shlibpath_overrides_runpath=yes
9029 fi
9030 fi
9031 rm -f core conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033 LDFLAGS=$save_LDFLAGS
9034 libdir=$save_libdir
9035
9036 # This implies no fast_install, which is unacceptable.
9037 # Some rework will be needed to allow for fast_install
9038 # before this can be enabled.
9039 hardcode_into_libs=yes
9040
9041 # Append ld.so.conf contents to the search path
9042 if test -f /etc/ld.so.conf; then
9043 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' ' '`
9044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9045 fi
9046
9047 # We used to test for /lib/ld.so.1 and disable shared libraries on
9048 # powerpc, because MkLinux only supported shared libraries with the
9049 # GNU dynamic linker. Since this was broken with cross compilers,
9050 # most powerpc-linux boxes support dynamic linking these days and
9051 # people can always --disable-shared, the test was removed, and we
9052 # assume the GNU/Linux dynamic linker is in use.
9053 dynamic_linker='GNU/Linux ld.so'
9054 ;;
9055
9056 netbsdelf*-gnu)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 dynamic_linker='NetBSD ld.elf_so'
9066 ;;
9067
9068 netbsd*)
9069 version_type=sunos
9070 need_lib_prefix=no
9071 need_version=no
9072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 dynamic_linker='NetBSD (a.out) ld.so'
9076 else
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 dynamic_linker='NetBSD ld.elf_so'
9080 fi
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 hardcode_into_libs=yes
9084 ;;
9085
9086 newsos6)
9087 version_type=linux
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes
9091 ;;
9092
9093 *nto* | *qnx*)
9094 version_type=qnx
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=no
9101 hardcode_into_libs=yes
9102 dynamic_linker='ldqnx.so'
9103 ;;
9104
9105 openbsd*)
9106 version_type=sunos
9107 sys_lib_dlsearch_path_spec="/usr/lib"
9108 need_lib_prefix=no
9109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9110 case $host_os in
9111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9112 *) need_version=no ;;
9113 esac
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9118 case $host_os in
9119 openbsd2.[89] | openbsd2.[89].*)
9120 shlibpath_overrides_runpath=no
9121 ;;
9122 *)
9123 shlibpath_overrides_runpath=yes
9124 ;;
9125 esac
9126 else
9127 shlibpath_overrides_runpath=yes
9128 fi
9129 ;;
9130
9131 os2*)
9132 libname_spec='$name'
9133 shrext_cmds=".dll"
9134 need_lib_prefix=no
9135 library_names_spec='$libname${shared_ext} $libname.a'
9136 dynamic_linker='OS/2 ld.exe'
9137 shlibpath_var=LIBPATH
9138 ;;
9139
9140 osf3* | osf4* | osf5*)
9141 version_type=osf
9142 need_lib_prefix=no
9143 need_version=no
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9149 ;;
9150
9151 rdos*)
9152 dynamic_linker=no
9153 ;;
9154
9155 solaris*)
9156 version_type=linux
9157 need_lib_prefix=no
9158 need_version=no
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 shlibpath_overrides_runpath=yes
9163 hardcode_into_libs=yes
9164 # ldd complains unless libraries are executable
9165 postinstall_cmds='chmod +x $lib'
9166 ;;
9167
9168 sunos4*)
9169 version_type=sunos
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes
9174 if test "$with_gnu_ld" = yes; then
9175 need_lib_prefix=no
9176 fi
9177 need_version=yes
9178 ;;
9179
9180 sysv4 | sysv4.3*)
9181 version_type=linux
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 case $host_vendor in
9186 sni)
9187 shlibpath_overrides_runpath=no
9188 need_lib_prefix=no
9189 runpath_var=LD_RUN_PATH
9190 ;;
9191 siemens)
9192 need_lib_prefix=no
9193 ;;
9194 motorola)
9195 need_lib_prefix=no
9196 need_version=no
9197 shlibpath_overrides_runpath=no
9198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9199 ;;
9200 esac
9201 ;;
9202
9203 sysv4*MP*)
9204 if test -d /usr/nec ;then
9205 version_type=linux
9206 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9207 soname_spec='$libname${shared_ext}.$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 fi
9210 ;;
9211
9212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9213 version_type=freebsd-elf
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 hardcode_into_libs=yes
9221 if test "$with_gnu_ld" = yes; then
9222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9223 else
9224 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9225 case $host_os in
9226 sco3.2v5*)
9227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9228 ;;
9229 esac
9230 fi
9231 sys_lib_dlsearch_path_spec='/usr/lib'
9232 ;;
9233
9234 tpf*)
9235 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9236 version_type=linux
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=no
9242 hardcode_into_libs=yes
9243 ;;
9244
9245 uts4*)
9246 version_type=linux
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 ;;
9251
9252 *)
9253 dynamic_linker=no
9254 ;;
9255 esac
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9257 $as_echo "$dynamic_linker" >&6; }
9258 test "$dynamic_linker" = no && can_build_shared=no
9259
9260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9261 if test "$GCC" = yes; then
9262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9263 fi
9264
9265 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9266 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9267 fi
9268 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9269 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9270 fi
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9359 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9360 hardcode_action=
9361 if test -n "$hardcode_libdir_flag_spec" ||
9362 test -n "$runpath_var" ||
9363 test "X$hardcode_automatic" = "Xyes" ; then
9364
9365 # We can hardcode non-existent directories.
9366 if test "$hardcode_direct" != no &&
9367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9368 # have to relink, otherwise we might link with an installed library
9369 # when we should be linking with a yet-to-be-installed one
9370 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9371 test "$hardcode_minus_L" != no; then
9372 # Linking always hardcodes the temporary library directory.
9373 hardcode_action=relink
9374 else
9375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9376 hardcode_action=immediate
9377 fi
9378 else
9379 # We cannot hardcode anything, or else we can only hardcode existing
9380 # directories.
9381 hardcode_action=unsupported
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9384 $as_echo "$hardcode_action" >&6; }
9385
9386 if test "$hardcode_action" = relink ||
9387 test "$inherit_rpath" = yes; then
9388 # Fast installation is not supported
9389 enable_fast_install=no
9390 elif test "$shlibpath_overrides_runpath" = yes ||
9391 test "$enable_shared" = no; then
9392 # Fast installation is not necessary
9393 enable_fast_install=needless
9394 fi
9395
9396
9397
9398
9399
9400
9401 if test "x$enable_dlopen" != xyes; then
9402 enable_dlopen=unknown
9403 enable_dlopen_self=unknown
9404 enable_dlopen_self_static=unknown
9405 else
9406 lt_cv_dlopen=no
9407 lt_cv_dlopen_libs=
9408
9409 case $host_os in
9410 beos*)
9411 lt_cv_dlopen="load_add_on"
9412 lt_cv_dlopen_libs=
9413 lt_cv_dlopen_self=yes
9414 ;;
9415
9416 mingw* | pw32* | cegcc*)
9417 lt_cv_dlopen="LoadLibrary"
9418 lt_cv_dlopen_libs=
9419 ;;
9420
9421 cygwin*)
9422 lt_cv_dlopen="dlopen"
9423 lt_cv_dlopen_libs=
9424 ;;
9425
9426 darwin*)
9427 # if libdl is installed we need to link against it
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9429 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9430 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_check_lib_save_LIBS=$LIBS
9434 LIBS="-ldl $LIBS"
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437
9438 /* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 char dlopen ();
9445 int
9446 main ()
9447 {
9448 return dlopen ();
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 ac_cv_lib_dl_dlopen=yes
9455 else
9456 ac_cv_lib_dl_dlopen=no
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$ac_check_lib_save_LIBS
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9464 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9466 else
9467
9468 lt_cv_dlopen="dyld"
9469 lt_cv_dlopen_libs=
9470 lt_cv_dlopen_self=yes
9471
9472 fi
9473
9474 ;;
9475
9476 *)
9477 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9478 if test "x$ac_cv_func_shl_load" = x""yes; then :
9479 lt_cv_dlopen="shl_load"
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9482 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9483 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9485 else
9486 ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-ldld $LIBS"
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char shl_load ();
9498 int
9499 main ()
9500 {
9501 return shl_load ();
9502 ;
9503 return 0;
9504 }
9505 _ACEOF
9506 if ac_fn_c_try_link "$LINENO"; then :
9507 ac_cv_lib_dld_shl_load=yes
9508 else
9509 ac_cv_lib_dld_shl_load=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9514 fi
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9516 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9517 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9518 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9519 else
9520 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9521 if test "x$ac_cv_func_dlopen" = x""yes; then :
9522 lt_cv_dlopen="dlopen"
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-ldl $LIBS"
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char dlopen ();
9541 int
9542 main ()
9543 {
9544 return dlopen ();
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 ac_cv_lib_dl_dlopen=yes
9551 else
9552 ac_cv_lib_dl_dlopen=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9559 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9560 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9564 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9565 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 ac_check_lib_save_LIBS=$LIBS
9569 LIBS="-lsvld $LIBS"
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char dlopen ();
9580 int
9581 main ()
9582 {
9583 return dlopen ();
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 if ac_fn_c_try_link "$LINENO"; then :
9589 ac_cv_lib_svld_dlopen=yes
9590 else
9591 ac_cv_lib_svld_dlopen=no
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595 LIBS=$ac_check_lib_save_LIBS
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9598 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9599 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9603 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 ac_check_lib_save_LIBS=$LIBS
9608 LIBS="-ldld $LIBS"
9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 char dld_link ();
9619 int
9620 main ()
9621 {
9622 return dld_link ();
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628 ac_cv_lib_dld_dld_link=yes
9629 else
9630 ac_cv_lib_dld_dld_link=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9637 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9638 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9639 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9640 fi
9641
9642
9643 fi
9644
9645
9646 fi
9647
9648
9649 fi
9650
9651
9652 fi
9653
9654
9655 fi
9656
9657 ;;
9658 esac
9659
9660 if test "x$lt_cv_dlopen" != xno; then
9661 enable_dlopen=yes
9662 else
9663 enable_dlopen=no
9664 fi
9665
9666 case $lt_cv_dlopen in
9667 dlopen)
9668 save_CPPFLAGS="$CPPFLAGS"
9669 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9670
9671 save_LDFLAGS="$LDFLAGS"
9672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9673
9674 save_LIBS="$LIBS"
9675 LIBS="$lt_cv_dlopen_libs $LIBS"
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9678 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9679 if test "${lt_cv_dlopen_self+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 if test "$cross_compiling" = yes; then :
9683 lt_cv_dlopen_self=cross
9684 else
9685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9686 lt_status=$lt_dlunknown
9687 cat > conftest.$ac_ext <<_LT_EOF
9688 #line 9688 "configure"
9689 #include "confdefs.h"
9690
9691 #if HAVE_DLFCN_H
9692 #include <dlfcn.h>
9693 #endif
9694
9695 #include <stdio.h>
9696
9697 #ifdef RTLD_GLOBAL
9698 # define LT_DLGLOBAL RTLD_GLOBAL
9699 #else
9700 # ifdef DL_GLOBAL
9701 # define LT_DLGLOBAL DL_GLOBAL
9702 # else
9703 # define LT_DLGLOBAL 0
9704 # endif
9705 #endif
9706
9707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9708 find out it does not work in some platform. */
9709 #ifndef LT_DLLAZY_OR_NOW
9710 # ifdef RTLD_LAZY
9711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9712 # else
9713 # ifdef DL_LAZY
9714 # define LT_DLLAZY_OR_NOW DL_LAZY
9715 # else
9716 # ifdef RTLD_NOW
9717 # define LT_DLLAZY_OR_NOW RTLD_NOW
9718 # else
9719 # ifdef DL_NOW
9720 # define LT_DLLAZY_OR_NOW DL_NOW
9721 # else
9722 # define LT_DLLAZY_OR_NOW 0
9723 # endif
9724 # endif
9725 # endif
9726 # endif
9727 #endif
9728
9729 void fnord() { int i=42;}
9730 int main ()
9731 {
9732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9733 int status = $lt_dlunknown;
9734
9735 if (self)
9736 {
9737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9739 /* dlclose (self); */
9740 }
9741 else
9742 puts (dlerror ());
9743
9744 return status;
9745 }
9746 _LT_EOF
9747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9748 (eval $ac_link) 2>&5
9749 ac_status=$?
9750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9751 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9752 (./conftest; exit; ) >&5 2>/dev/null
9753 lt_status=$?
9754 case x$lt_status in
9755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9757 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9758 esac
9759 else :
9760 # compilation failed
9761 lt_cv_dlopen_self=no
9762 fi
9763 fi
9764 rm -fr conftest*
9765
9766
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9769 $as_echo "$lt_cv_dlopen_self" >&6; }
9770
9771 if test "x$lt_cv_dlopen_self" = xyes; then
9772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9774 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9775 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 if test "$cross_compiling" = yes; then :
9779 lt_cv_dlopen_self_static=cross
9780 else
9781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9782 lt_status=$lt_dlunknown
9783 cat > conftest.$ac_ext <<_LT_EOF
9784 #line 9784 "configure"
9785 #include "confdefs.h"
9786
9787 #if HAVE_DLFCN_H
9788 #include <dlfcn.h>
9789 #endif
9790
9791 #include <stdio.h>
9792
9793 #ifdef RTLD_GLOBAL
9794 # define LT_DLGLOBAL RTLD_GLOBAL
9795 #else
9796 # ifdef DL_GLOBAL
9797 # define LT_DLGLOBAL DL_GLOBAL
9798 # else
9799 # define LT_DLGLOBAL 0
9800 # endif
9801 #endif
9802
9803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9804 find out it does not work in some platform. */
9805 #ifndef LT_DLLAZY_OR_NOW
9806 # ifdef RTLD_LAZY
9807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9808 # else
9809 # ifdef DL_LAZY
9810 # define LT_DLLAZY_OR_NOW DL_LAZY
9811 # else
9812 # ifdef RTLD_NOW
9813 # define LT_DLLAZY_OR_NOW RTLD_NOW
9814 # else
9815 # ifdef DL_NOW
9816 # define LT_DLLAZY_OR_NOW DL_NOW
9817 # else
9818 # define LT_DLLAZY_OR_NOW 0
9819 # endif
9820 # endif
9821 # endif
9822 # endif
9823 #endif
9824
9825 void fnord() { int i=42;}
9826 int main ()
9827 {
9828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9829 int status = $lt_dlunknown;
9830
9831 if (self)
9832 {
9833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9835 /* dlclose (self); */
9836 }
9837 else
9838 puts (dlerror ());
9839
9840 return status;
9841 }
9842 _LT_EOF
9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9844 (eval $ac_link) 2>&5
9845 ac_status=$?
9846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9848 (./conftest; exit; ) >&5 2>/dev/null
9849 lt_status=$?
9850 case x$lt_status in
9851 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9852 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9853 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9854 esac
9855 else :
9856 # compilation failed
9857 lt_cv_dlopen_self_static=no
9858 fi
9859 fi
9860 rm -fr conftest*
9861
9862
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9865 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9866 fi
9867
9868 CPPFLAGS="$save_CPPFLAGS"
9869 LDFLAGS="$save_LDFLAGS"
9870 LIBS="$save_LIBS"
9871 ;;
9872 esac
9873
9874 case $lt_cv_dlopen_self in
9875 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9876 *) enable_dlopen_self=unknown ;;
9877 esac
9878
9879 case $lt_cv_dlopen_self_static in
9880 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9881 *) enable_dlopen_self_static=unknown ;;
9882 esac
9883 fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901 striplib=
9902 old_striplib=
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9904 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9905 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9906 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9907 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9909 $as_echo "yes" >&6; }
9910 else
9911 # FIXME - insert some real tests, host_os isn't really good enough
9912 case $host_os in
9913 darwin*)
9914 if test -n "$STRIP" ; then
9915 striplib="$STRIP -x"
9916 old_striplib="$STRIP -S"
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9918 $as_echo "yes" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922 fi
9923 ;;
9924 *)
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 ;;
9928 esac
9929 fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942 # Report which library types will actually be built
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9944 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9946 $as_echo "$can_build_shared" >&6; }
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9949 $as_echo_n "checking whether to build shared libraries... " >&6; }
9950 test "$can_build_shared" = "no" && enable_shared=no
9951
9952 # On AIX, shared libraries and static libraries use the same namespace, and
9953 # are all built from PIC.
9954 case $host_os in
9955 aix3*)
9956 test "$enable_shared" = yes && enable_static=no
9957 if test -n "$RANLIB"; then
9958 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9959 postinstall_cmds='$RANLIB $lib'
9960 fi
9961 ;;
9962
9963 aix[4-9]*)
9964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9965 test "$enable_shared" = yes && enable_static=no
9966 fi
9967 ;;
9968 esac
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9970 $as_echo "$enable_shared" >&6; }
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9973 $as_echo_n "checking whether to build static libraries... " >&6; }
9974 # Make sure either enable_shared or enable_static is yes.
9975 test "$enable_shared" = yes || enable_static=yes
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9977 $as_echo "$enable_static" >&6; }
9978
9979
9980
9981
9982 fi
9983 ac_ext=c
9984 ac_cpp='$CPP $CPPFLAGS'
9985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9988
9989 CC="$lt_save_CC"
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003 ac_config_commands="$ac_config_commands libtool"
10004
10005
10006
10007
10008 # Only expand once:
10009
10010
10011
10012
10013
10014
10015
10016
10017 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10018 if test -n "$ac_tool_prefix"; then
10019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10020 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 case $PKG_CONFIG in
10027 [\\/]* | ?:[\\/]*)
10028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10029 ;;
10030 *)
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 ;;
10047 esac
10048 fi
10049 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10050 if test -n "$PKG_CONFIG"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10052 $as_echo "$PKG_CONFIG" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057
10058
10059 fi
10060 if test -z "$ac_cv_path_PKG_CONFIG"; then
10061 ac_pt_PKG_CONFIG=$PKG_CONFIG
10062 # Extract the first word of "pkg-config", so it can be a program name with args.
10063 set dummy pkg-config; ac_word=$2
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 $as_echo_n "checking for $ac_word... " >&6; }
10066 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 case $ac_pt_PKG_CONFIG in
10070 [\\/]* | ?:[\\/]*)
10071 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10072 ;;
10073 *)
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085 done
10086 done
10087 IFS=$as_save_IFS
10088
10089 ;;
10090 esac
10091 fi
10092 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10093 if test -n "$ac_pt_PKG_CONFIG"; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10095 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10096 else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 fi
10100
10101 if test "x$ac_pt_PKG_CONFIG" = x; then
10102 PKG_CONFIG=""
10103 else
10104 case $cross_compiling:$ac_tool_warned in
10105 yes:)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10108 ac_tool_warned=yes ;;
10109 esac
10110 PKG_CONFIG=$ac_pt_PKG_CONFIG
10111 fi
10112 else
10113 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10114 fi
10115
10116 fi
10117 if test -n "$PKG_CONFIG"; then
10118 _pkg_min_version=0.22
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10120 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10121 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123 $as_echo "yes" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 PKG_CONFIG=""
10128 fi
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10131 $as_echo_n "checking for GNU make... " >&6; }
10132 if test "${_cv_gnu_make_command+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 _cv_gnu_make_command='' ;
10136 for a in "$MAKE" make gmake gnumake ; do
10137 if test -z "$a" ; then continue ; fi ;
10138 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10139 _cv_gnu_make_command=$a ;
10140 break;
10141 fi
10142 done ;
10143
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10146 $as_echo "$_cv_gnu_make_command" >&6; } ;
10147 if test "x$_cv_gnu_make_command" != "x" ; then
10148 ifGNUmake='' ;
10149 else
10150 ifGNUmake='#' ;
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10152 $as_echo "\"Not found\"" >&6; };
10153 fi
10154
10155
10156 GMAKE=$_cv_gnu_make_command
10157
10158
10159 if test "x$GMAKE" = x; then :
10160 as_fn_error $? "You need GNU make" "$LINENO" 5
10161 fi
10162 for ac_prog in bash
10163 do
10164 # Extract the first word of "$ac_prog", so it can be a program name with args.
10165 set dummy $ac_prog; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if test "${ac_cv_path__BASH+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 case $_BASH in
10172 [\\/]* | ?:[\\/]*)
10173 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
10174 ;;
10175 *)
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10178 do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10183 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187 done
10188 done
10189 IFS=$as_save_IFS
10190
10191 ;;
10192 esac
10193 fi
10194 _BASH=$ac_cv_path__BASH
10195 if test -n "$_BASH"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
10197 $as_echo "$_BASH" >&6; }
10198 else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10201 fi
10202
10203
10204 test -n "$_BASH" && break
10205 done
10206
10207 if test "x$_BASH" = x; then :
10208 as_fn_error $? "You need GNU bash" "$LINENO" 5
10209 fi
10210 for ac_prog in time
10211 do
10212 # Extract the first word of "$ac_prog", so it can be a program name with args.
10213 set dummy $ac_prog; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if test "${ac_cv_path_TIME+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 case $TIME in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10222 ;;
10223 *)
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10226 do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235 done
10236 done
10237 IFS=$as_save_IFS
10238
10239 ;;
10240 esac
10241 fi
10242 TIME=$ac_cv_path_TIME
10243 if test -n "$TIME"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10245 $as_echo "$TIME" >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250
10251
10252 test -n "$TIME" && break
10253 done
10254
10255
10256
10257
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
10259 $as_echo_n "checking for bison >= 2.3... " >&6; }
10260 if test -z "$BISON"; then
10261 ac_path_BISON_found=false
10262 # Loop through the user's path and test for each of PROGNAME-LIST
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10265 do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_prog in bison; do
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
10271 { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue
10272 as_awk_strverscmp='
10273 # Use only awk features that work with 7th edition Unix awk (1978).
10274 # My, what an old awk you have, Mr. Solaris!
10275 END {
10276 while (length(v1) && length(v2)) {
10277 # Set d1 to be the next thing to compare from v1, and likewise for d2.
10278 # Normally this is a single character, but if v1 and v2 contain digits,
10279 # compare them as integers and fractions as strverscmp does.
10280 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
10281 # Split v1 and v2 into their leading digit string components d1 and d2,
10282 # and advance v1 and v2 past the leading digit strings.
10283 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
10284 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
10285 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
10286 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
10287 if (d1 ~ /^0/) {
10288 if (d2 ~ /^0/) {
10289 # Compare two fractions.
10290 while (d1 ~ /^0/ && d2 ~ /^0/) {
10291 d1 = substr(d1, 2); len1--
10292 d2 = substr(d2, 2); len2--
10293 }
10294 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
10295 # The two components differ in length, and the common prefix
10296 # contains only leading zeros. Consider the longer to be less.
10297 d1 = -len1
10298 d2 = -len2
10299 } else {
10300 # Otherwise, compare as strings.
10301 d1 = "x" d1
10302 d2 = "x" d2
10303 }
10304 } else {
10305 # A fraction is less than an integer.
10306 exit 1
10307 }
10308 } else {
10309 if (d2 ~ /^0/) {
10310 # An integer is greater than a fraction.
10311 exit 2
10312 } else {
10313 # Compare two integers.
10314 d1 += 0
10315 d2 += 0
10316 }
10317 }
10318 } else {
10319 # The normal case, without worrying about digits.
10320 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
10321 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
10322 }
10323 if (d1 < d2) exit 1
10324 if (d1 > d2) exit 2
10325 }
10326 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
10327 # which mishandles some comparisons of empty strings to integers.
10328 if (length(v2)) exit 1
10329 if (length(v1)) exit 2
10330 }
10331 '
10332 as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
10333 as_arg_v2=2.3
10334 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10335 case $? in #(
10336 1) :
10337 ;; #(
10338 0) :
10339 ac_cv_path_BISON=$ac_path_BISON
10340 ;; #(
10341 2) :
10342 ac_cv_path_BISON=$ac_path_BISON
10343 ;; #(
10344 *) :
10345 ;;
10346 esac
10347
10348 $ac_path_BISON_found && break 3
10349 done
10350 done
10351 done
10352 IFS=$as_save_IFS
10353 if test -z "$ac_cv_path_BISON"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10356 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
10357
10358 fi
10359 else
10360 ac_cv_path_BISON=$BISON
10361 fi
10362
10363 BISON=$ac_cv_path_BISON
10364
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10366 $as_echo "$BISON" >&6; }
10367
10368
10369
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
10371 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
10372 if test -z "$FLEX"; then
10373 ac_path_FLEX_found=false
10374 # Loop through the user's path and test for each of PROGNAME-LIST
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10377 do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_prog in flex; do
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
10383 { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue
10384 as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10385 as_arg_v2=2.5.33
10386 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10387 case $? in #(
10388 1) :
10389 ;; #(
10390 0) :
10391 ac_cv_path_FLEX=$ac_path_FLEX
10392 ;; #(
10393 2) :
10394 ac_cv_path_FLEX=$ac_path_FLEX
10395 ;; #(
10396 *) :
10397 ;;
10398 esac
10399
10400 $ac_path_FLEX_found && break 3
10401 done
10402 done
10403 done
10404 IFS=$as_save_IFS
10405 if test -z "$ac_cv_path_FLEX"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10408 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
10409
10410 fi
10411 else
10412 ac_cv_path_FLEX=$FLEX
10413 fi
10414
10415 FLEX=$ac_cv_path_FLEX
10416
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10418 $as_echo "$FLEX" >&6; }
10419
10420
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
10423 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
10424 if test -z "$GPERF"; then
10425 ac_path_GPERF_found=false
10426 # Loop through the user's path and test for each of PROGNAME-LIST
10427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428 for as_dir in $PATH
10429 do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_prog in gperf; do
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
10435 { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue
10436 as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
10437 as_arg_v2=3.0.3
10438 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10439 case $? in #(
10440 1) :
10441 ;; #(
10442 0) :
10443 ac_cv_path_GPERF=$ac_path_GPERF
10444 ;; #(
10445 2) :
10446 ac_cv_path_GPERF=$ac_path_GPERF
10447 ;; #(
10448 *) :
10449 ;;
10450 esac
10451
10452 $ac_path_GPERF_found && break 3
10453 done
10454 done
10455 done
10456 IFS=$as_save_IFS
10457 if test -z "$ac_cv_path_GPERF"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
10461
10462 fi
10463 else
10464 ac_cv_path_GPERF=$GPERF
10465 fi
10466
10467 GPERF=$ac_cv_path_GPERF
10468
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
10470 $as_echo "$GPERF" >&6; }
10471
10472 # Find a good install program. We prefer a C program (faster),
10473 # so one script is as good as another. But avoid the broken or
10474 # incompatible versions:
10475 # SysV /etc/install, /usr/sbin/install
10476 # SunOS /usr/etc/install
10477 # IRIX /sbin/install
10478 # AIX /bin/install
10479 # AmigaOS /C/install, which installs bootblocks on floppy discs
10480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10483 # OS/2's system install, which has a completely different semantic
10484 # ./install, which can be erroneously created by make from ./install.sh.
10485 # Reject install programs that cannot install multiple files.
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10488 if test -z "$INSTALL"; then
10489 if test "${ac_cv_path_install+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10494 do
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 # Account for people who put trailing slashes in PATH elements.
10498 case $as_dir/ in #((
10499 ./ | .// | /[cC]/* | \
10500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10502 /usr/ucb/* ) ;;
10503 *)
10504 # OSF1 and SCO ODT 3.0 have their own names for install.
10505 # Don't use installbsd from OSF since it installs stuff as root
10506 # by default.
10507 for ac_prog in ginstall scoinst install; do
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10510 if test $ac_prog = install &&
10511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10512 # AIX install. It has an incompatible calling convention.
10513 :
10514 elif test $ac_prog = install &&
10515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10516 # program-specific install script used by HP pwplus--don't use.
10517 :
10518 else
10519 rm -rf conftest.one conftest.two conftest.dir
10520 echo one > conftest.one
10521 echo two > conftest.two
10522 mkdir conftest.dir
10523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10524 test -s conftest.one && test -s conftest.two &&
10525 test -s conftest.dir/conftest.one &&
10526 test -s conftest.dir/conftest.two
10527 then
10528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10529 break 3
10530 fi
10531 fi
10532 fi
10533 done
10534 done
10535 ;;
10536 esac
10537
10538 done
10539 IFS=$as_save_IFS
10540
10541 rm -rf conftest.one conftest.two conftest.dir
10542
10543 fi
10544 if test "${ac_cv_path_install+set}" = set; then
10545 INSTALL=$ac_cv_path_install
10546 else
10547 # As a last resort, use the slow shell script. Don't cache a
10548 # value for INSTALL within a source directory, because that will
10549 # break other packages using the cache if that directory is
10550 # removed, or if the value is a relative name.
10551 INSTALL=$ac_install_sh
10552 fi
10553 fi
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10555 $as_echo "$INSTALL" >&6; }
10556
10557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10558 # It thinks the first close brace ends the variable substitution.
10559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10560
10561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10562
10563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10564
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
10566 $as_echo_n "checking for GNU tar >=1.19... " >&6; }
10567 if test -z "$GNUTAR"; then
10568 ac_path_GNUTAR_found=false
10569 # Loop through the user's path and test for each of PROGNAME-LIST
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_prog in tar gtar gnutar; do
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
10578 { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue
10579
10580 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
10581
10582 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
10583 as_arg_v2=1.19
10584 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
10585 case $? in #(
10586 1) :
10587 ;; #(
10588 0) :
10589
10590 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10591 ;; #(
10592 2) :
10593
10594 ac_cv_path_GNUTAR=$ac_path_GNUTAR
10595 ;; #(
10596 *) :
10597 ;;
10598 esac
10599
10600 fi
10601
10602 $ac_path_GNUTAR_found && break 3
10603 done
10604 done
10605 done
10606 IFS=$as_save_IFS
10607 if test -z "$ac_cv_path_GNUTAR"; then
10608 :
10609 fi
10610 else
10611 ac_cv_path_GNUTAR=$GNUTAR
10612 fi
10613
10614 if test "x$ac_cv_path_GNUTAR" != x; then :
10615
10616 GNUTAR=$ac_cv_path_GNUTAR
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
10619 $as_echo "$GNUTAR" >&6; }
10620
10621 else
10622
10623 GNUTAR=:
10624
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10627
10628 fi
10629 for ac_prog in svn
10630 do
10631 # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_prog_SVN+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 if test -n "$SVN"; then
10639 ac_cv_prog_SVN="$SVN" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10643 do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_SVN="$ac_prog"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10651 fi
10652 done
10653 done
10654 IFS=$as_save_IFS
10655
10656 fi
10657 fi
10658 SVN=$ac_cv_prog_SVN
10659 if test -n "$SVN"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
10661 $as_echo "$SVN" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 fi
10666
10667
10668 test -n "$SVN" && break
10669 done
10670
10671 for ac_prog in svnversion
10672 do
10673 # Extract the first word of "$ac_prog", so it can be a program name with args.
10674 set dummy $ac_prog; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 if test -n "$SVNVERSION"; then
10681 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10690 ac_cv_prog_SVNVERSION="$ac_prog"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694 done
10695 done
10696 IFS=$as_save_IFS
10697
10698 fi
10699 fi
10700 SVNVERSION=$ac_cv_prog_SVNVERSION
10701 if test -n "$SVNVERSION"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
10703 $as_echo "$SVNVERSION" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708
10709
10710 test -n "$SVNVERSION" && break
10711 done
10712
10713 ac_ext=cpp
10714 ac_cpp='$CXXCPP $CPPFLAGS'
10715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10718 if test -z "$CXX"; then
10719 if test -n "$CCC"; then
10720 CXX=$CCC
10721 else
10722 if test -n "$ac_tool_prefix"; then
10723 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10724 do
10725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if test "${ac_cv_prog_CXX+set}" = set; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 if test -n "$CXX"; then
10733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10734 else
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10737 do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10745 fi
10746 done
10747 done
10748 IFS=$as_save_IFS
10749
10750 fi
10751 fi
10752 CXX=$ac_cv_prog_CXX
10753 if test -n "$CXX"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10755 $as_echo "$CXX" >&6; }
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10759 fi
10760
10761
10762 test -n "$CXX" && break
10763 done
10764 fi
10765 if test -z "$CXX"; then
10766 ac_ct_CXX=$CXX
10767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10768 do
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772 $as_echo_n "checking for $ac_word... " >&6; }
10773 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 if test -n "$ac_ct_CXX"; then
10777 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10778 else
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10781 do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_prog_ac_ct_CXX="$ac_prog"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790 done
10791 done
10792 IFS=$as_save_IFS
10793
10794 fi
10795 fi
10796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10797 if test -n "$ac_ct_CXX"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10799 $as_echo "$ac_ct_CXX" >&6; }
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 fi
10804
10805
10806 test -n "$ac_ct_CXX" && break
10807 done
10808
10809 if test "x$ac_ct_CXX" = x; then
10810 CXX="g++"
10811 else
10812 case $cross_compiling:$ac_tool_warned in
10813 yes:)
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10816 ac_tool_warned=yes ;;
10817 esac
10818 CXX=$ac_ct_CXX
10819 fi
10820 fi
10821
10822 fi
10823 fi
10824 # Provide some information about the compiler.
10825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10826 set X $ac_compile
10827 ac_compiler=$2
10828 for ac_option in --version -v -V -qversion; do
10829 { { ac_try="$ac_compiler $ac_option >&5"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833 esac
10834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10835 $as_echo "$ac_try_echo"; } >&5
10836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10837 ac_status=$?
10838 if test -s conftest.err; then
10839 sed '10a\
10840 ... rest of stderr output deleted ...
10841 10q' conftest.err >conftest.er1
10842 cat conftest.er1 >&5
10843 fi
10844 rm -f conftest.er1 conftest.err
10845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846 test $ac_status = 0; }
10847 done
10848
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10850 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10851 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856
10857 int
10858 main ()
10859 {
10860 #ifndef __GNUC__
10861 choke me
10862 #endif
10863
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_cxx_try_compile "$LINENO"; then :
10869 ac_compiler_gnu=yes
10870 else
10871 ac_compiler_gnu=no
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10875
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10878 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10879 if test $ac_compiler_gnu = yes; then
10880 GXX=yes
10881 else
10882 GXX=
10883 fi
10884 ac_test_CXXFLAGS=${CXXFLAGS+set}
10885 ac_save_CXXFLAGS=$CXXFLAGS
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10887 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10888 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10892 ac_cxx_werror_flag=yes
10893 ac_cv_prog_cxx_g=no
10894 CXXFLAGS="-g"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 int
10899 main ()
10900 {
10901
10902 ;
10903 return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_cxx_try_compile "$LINENO"; then :
10907 ac_cv_prog_cxx_g=yes
10908 else
10909 CXXFLAGS=""
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 int
10914 main ()
10915 {
10916
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_cxx_try_compile "$LINENO"; then :
10922
10923 else
10924 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10925 CXXFLAGS="-g"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 int
10930 main ()
10931 {
10932
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_cxx_try_compile "$LINENO"; then :
10938 ac_cv_prog_cxx_g=yes
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10946 fi
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10948 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10949 if test "$ac_test_CXXFLAGS" = set; then
10950 CXXFLAGS=$ac_save_CXXFLAGS
10951 elif test $ac_cv_prog_cxx_g = yes; then
10952 if test "$GXX" = yes; then
10953 CXXFLAGS="-g -O2"
10954 else
10955 CXXFLAGS="-g"
10956 fi
10957 else
10958 if test "$GXX" = yes; then
10959 CXXFLAGS="-O2"
10960 else
10961 CXXFLAGS=
10962 fi
10963 fi
10964 ac_ext=c
10965 ac_cpp='$CPP $CPPFLAGS'
10966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969
10970
10971 ac_ext=cpp
10972 ac_cpp='$CXXCPP $CPPFLAGS'
10973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10976 if test -z "$CXX"; then
10977 if test -n "$CCC"; then
10978 CXX=$CCC
10979 else
10980 if test -n "$ac_tool_prefix"; then
10981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10982 do
10983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if test "${ac_cv_prog_CXX+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test -n "$CXX"; then
10991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10992 else
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10995 do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004 done
11005 done
11006 IFS=$as_save_IFS
11007
11008 fi
11009 fi
11010 CXX=$ac_cv_prog_CXX
11011 if test -n "$CXX"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11013 $as_echo "$CXX" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11017 fi
11018
11019
11020 test -n "$CXX" && break
11021 done
11022 fi
11023 if test -z "$CXX"; then
11024 ac_ct_CXX=$CXX
11025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11026 do
11027 # Extract the first word of "$ac_prog", so it can be a program name with args.
11028 set dummy $ac_prog; ac_word=$2
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030 $as_echo_n "checking for $ac_word... " >&6; }
11031 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 if test -n "$ac_ct_CXX"; then
11035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11036 else
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11039 do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11044 ac_cv_prog_ac_ct_CXX="$ac_prog"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048 done
11049 done
11050 IFS=$as_save_IFS
11051
11052 fi
11053 fi
11054 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11055 if test -n "$ac_ct_CXX"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11057 $as_echo "$ac_ct_CXX" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11061 fi
11062
11063
11064 test -n "$ac_ct_CXX" && break
11065 done
11066
11067 if test "x$ac_ct_CXX" = x; then
11068 CXX="g++"
11069 else
11070 case $cross_compiling:$ac_tool_warned in
11071 yes:)
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11074 ac_tool_warned=yes ;;
11075 esac
11076 CXX=$ac_ct_CXX
11077 fi
11078 fi
11079
11080 fi
11081 fi
11082 # Provide some information about the compiler.
11083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11084 set X $ac_compile
11085 ac_compiler=$2
11086 for ac_option in --version -v -V -qversion; do
11087 { { ac_try="$ac_compiler $ac_option >&5"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11093 $as_echo "$ac_try_echo"; } >&5
11094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11095 ac_status=$?
11096 if test -s conftest.err; then
11097 sed '10a\
11098 ... rest of stderr output deleted ...
11099 10q' conftest.err >conftest.er1
11100 cat conftest.er1 >&5
11101 fi
11102 rm -f conftest.er1 conftest.err
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; }
11105 done
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11108 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11109 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114
11115 int
11116 main ()
11117 {
11118 #ifndef __GNUC__
11119 choke me
11120 #endif
11121
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_cxx_try_compile "$LINENO"; then :
11127 ac_compiler_gnu=yes
11128 else
11129 ac_compiler_gnu=no
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11133
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11136 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11137 if test $ac_compiler_gnu = yes; then
11138 GXX=yes
11139 else
11140 GXX=
11141 fi
11142 ac_test_CXXFLAGS=${CXXFLAGS+set}
11143 ac_save_CXXFLAGS=$CXXFLAGS
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11145 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11146 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11150 ac_cxx_werror_flag=yes
11151 ac_cv_prog_cxx_g=no
11152 CXXFLAGS="-g"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11155
11156 int
11157 main ()
11158 {
11159
11160 ;
11161 return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_cxx_try_compile "$LINENO"; then :
11165 ac_cv_prog_cxx_g=yes
11166 else
11167 CXXFLAGS=""
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11170
11171 int
11172 main ()
11173 {
11174
11175 ;
11176 return 0;
11177 }
11178 _ACEOF
11179 if ac_fn_cxx_try_compile "$LINENO"; then :
11180
11181 else
11182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11183 CXXFLAGS="-g"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186
11187 int
11188 main ()
11189 {
11190
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 if ac_fn_cxx_try_compile "$LINENO"; then :
11196 ac_cv_prog_cxx_g=yes
11197 fi
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11204 fi
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11206 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11207 if test "$ac_test_CXXFLAGS" = set; then
11208 CXXFLAGS=$ac_save_CXXFLAGS
11209 elif test $ac_cv_prog_cxx_g = yes; then
11210 if test "$GXX" = yes; then
11211 CXXFLAGS="-g -O2"
11212 else
11213 CXXFLAGS="-g"
11214 fi
11215 else
11216 if test "$GXX" = yes; then
11217 CXXFLAGS="-O2"
11218 else
11219 CXXFLAGS=
11220 fi
11221 fi
11222 ac_ext=c
11223 ac_cpp='$CPP $CPPFLAGS'
11224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11227
11228 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11229 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11230 (test "X$CXX" != "Xg++"))) ; then
11231 ac_ext=cpp
11232 ac_cpp='$CXXCPP $CPPFLAGS'
11233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11237 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11238 if test -z "$CXXCPP"; then
11239 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 # Double quotes because CXXCPP needs to be expanded
11243 for CXXCPP in "$CXX -E" "/lib/cpp"
11244 do
11245 ac_preproc_ok=false
11246 for ac_cxx_preproc_warn_flag in '' yes
11247 do
11248 # Use a header file that comes with gcc, so configuring glibc
11249 # with a fresh cross-compiler works.
11250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 # <limits.h> exists even on freestanding compilers.
11252 # On the NeXT, cc -E runs the code through the compiler's parser,
11253 # not just through cpp. "Syntax error" is here to catch this case.
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 #ifdef __STDC__
11257 # include <limits.h>
11258 #else
11259 # include <assert.h>
11260 #endif
11261 Syntax error
11262 _ACEOF
11263 if ac_fn_cxx_try_cpp "$LINENO"; then :
11264
11265 else
11266 # Broken: fails on valid input.
11267 continue
11268 fi
11269 rm -f conftest.err conftest.i conftest.$ac_ext
11270
11271 # OK, works on sane cases. Now check whether nonexistent headers
11272 # can be detected and how.
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275 #include <ac_nonexistent.h>
11276 _ACEOF
11277 if ac_fn_cxx_try_cpp "$LINENO"; then :
11278 # Broken: success on invalid input.
11279 continue
11280 else
11281 # Passes both tests.
11282 ac_preproc_ok=:
11283 break
11284 fi
11285 rm -f conftest.err conftest.i conftest.$ac_ext
11286
11287 done
11288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11289 rm -f conftest.i conftest.err conftest.$ac_ext
11290 if $ac_preproc_ok; then :
11291 break
11292 fi
11293
11294 done
11295 ac_cv_prog_CXXCPP=$CXXCPP
11296
11297 fi
11298 CXXCPP=$ac_cv_prog_CXXCPP
11299 else
11300 ac_cv_prog_CXXCPP=$CXXCPP
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11303 $as_echo "$CXXCPP" >&6; }
11304 ac_preproc_ok=false
11305 for ac_cxx_preproc_warn_flag in '' yes
11306 do
11307 # Use a header file that comes with gcc, so configuring glibc
11308 # with a fresh cross-compiler works.
11309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 # <limits.h> exists even on freestanding compilers.
11311 # On the NeXT, cc -E runs the code through the compiler's parser,
11312 # not just through cpp. "Syntax error" is here to catch this case.
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #ifdef __STDC__
11316 # include <limits.h>
11317 #else
11318 # include <assert.h>
11319 #endif
11320 Syntax error
11321 _ACEOF
11322 if ac_fn_cxx_try_cpp "$LINENO"; then :
11323
11324 else
11325 # Broken: fails on valid input.
11326 continue
11327 fi
11328 rm -f conftest.err conftest.i conftest.$ac_ext
11329
11330 # OK, works on sane cases. Now check whether nonexistent headers
11331 # can be detected and how.
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334 #include <ac_nonexistent.h>
11335 _ACEOF
11336 if ac_fn_cxx_try_cpp "$LINENO"; then :
11337 # Broken: success on invalid input.
11338 continue
11339 else
11340 # Passes both tests.
11341 ac_preproc_ok=:
11342 break
11343 fi
11344 rm -f conftest.err conftest.i conftest.$ac_ext
11345
11346 done
11347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11348 rm -f conftest.i conftest.err conftest.$ac_ext
11349 if $ac_preproc_ok; then :
11350
11351 else
11352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11354 _lt_caught_CXX_error=yes; }
11355 fi
11356
11357 ac_ext=c
11358 ac_cpp='$CPP $CPPFLAGS'
11359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11362
11363 else
11364 _lt_caught_CXX_error=yes
11365 fi
11366
11367
11368
11369
11370 ac_ext=cpp
11371 ac_cpp='$CXXCPP $CPPFLAGS'
11372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11375
11376 archive_cmds_need_lc_CXX=no
11377 allow_undefined_flag_CXX=
11378 always_export_symbols_CXX=no
11379 archive_expsym_cmds_CXX=
11380 compiler_needs_object_CXX=no
11381 export_dynamic_flag_spec_CXX=
11382 hardcode_direct_CXX=no
11383 hardcode_direct_absolute_CXX=no
11384 hardcode_libdir_flag_spec_CXX=
11385 hardcode_libdir_flag_spec_ld_CXX=
11386 hardcode_libdir_separator_CXX=
11387 hardcode_minus_L_CXX=no
11388 hardcode_shlibpath_var_CXX=unsupported
11389 hardcode_automatic_CXX=no
11390 inherit_rpath_CXX=no
11391 module_cmds_CXX=
11392 module_expsym_cmds_CXX=
11393 link_all_deplibs_CXX=unknown
11394 old_archive_cmds_CXX=$old_archive_cmds
11395 no_undefined_flag_CXX=
11396 whole_archive_flag_spec_CXX=
11397 enable_shared_with_static_runtimes_CXX=no
11398
11399 # Source file extension for C++ test sources.
11400 ac_ext=cpp
11401
11402 # Object file extension for compiled C++ test sources.
11403 objext=o
11404 objext_CXX=$objext
11405
11406 # No sense in running all these tests if we already determined that
11407 # the CXX compiler isn't working. Some variables (like enable_shared)
11408 # are currently assumed to apply to all compilers on this platform,
11409 # and will be corrupted by setting them based on a non-working compiler.
11410 if test "$_lt_caught_CXX_error" != yes; then
11411 # Code to be used in simple compile tests
11412 lt_simple_compile_test_code="int some_variable = 0;"
11413
11414 # Code to be used in simple link tests
11415 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11416
11417 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11418
11419
11420
11421
11422
11423
11424 # If no C compiler was specified, use CC.
11425 LTCC=${LTCC-"$CC"}
11426
11427 # If no C compiler flags were specified, use CFLAGS.
11428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11429
11430 # Allow CC to be a program name with arguments.
11431 compiler=$CC
11432
11433
11434 # save warnings/boilerplate of simple test code
11435 ac_outfile=conftest.$ac_objext
11436 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11438 _lt_compiler_boilerplate=`cat conftest.err`
11439 $RM conftest*
11440
11441 ac_outfile=conftest.$ac_objext
11442 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11444 _lt_linker_boilerplate=`cat conftest.err`
11445 $RM -r conftest*
11446
11447
11448 # Allow CC to be a program name with arguments.
11449 lt_save_CC=$CC
11450 lt_save_LD=$LD
11451 lt_save_GCC=$GCC
11452 GCC=$GXX
11453 lt_save_with_gnu_ld=$with_gnu_ld
11454 lt_save_path_LD=$lt_cv_path_LD
11455 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11456 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11457 else
11458 $as_unset lt_cv_prog_gnu_ld
11459 fi
11460 if test -n "${lt_cv_path_LDCXX+set}"; then
11461 lt_cv_path_LD=$lt_cv_path_LDCXX
11462 else
11463 $as_unset lt_cv_path_LD
11464 fi
11465 test -z "${LDCXX+set}" || LD=$LDCXX
11466 CC=${CXX-"c++"}
11467 compiler=$CC
11468 compiler_CXX=$CC
11469 for cc_temp in $compiler""; do
11470 case $cc_temp in
11471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11473 \-*) ;;
11474 *) break;;
11475 esac
11476 done
11477 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11478
11479
11480 if test -n "$compiler"; then
11481 # We don't want -fno-exception when compiling C++ code, so set the
11482 # no_builtin_flag separately
11483 if test "$GXX" = yes; then
11484 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11485 else
11486 lt_prog_compiler_no_builtin_flag_CXX=
11487 fi
11488
11489 if test "$GXX" = yes; then
11490 # Set up default GNU C++ configuration
11491
11492
11493
11494 # Check whether --with-gnu-ld was given.
11495 if test "${with_gnu_ld+set}" = set; then :
11496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11497 else
11498 with_gnu_ld=no
11499 fi
11500
11501 ac_prog=ld
11502 if test "$GCC" = yes; then
11503 # Check if gcc -print-prog-name=ld gives a path.
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11505 $as_echo_n "checking for ld used by $CC... " >&6; }
11506 case $host in
11507 *-*-mingw*)
11508 # gcc leaves a trailing carriage return which upsets mingw
11509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11510 *)
11511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11512 esac
11513 case $ac_prog in
11514 # Accept absolute paths.
11515 [\\/]* | ?:[\\/]*)
11516 re_direlt='/[^/][^/]*/\.\./'
11517 # Canonicalize the pathname of ld
11518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11521 done
11522 test -z "$LD" && LD="$ac_prog"
11523 ;;
11524 "")
11525 # If it fails, then pretend we aren't using GCC.
11526 ac_prog=ld
11527 ;;
11528 *)
11529 # If it is relative, then search for the first ld in PATH.
11530 with_gnu_ld=unknown
11531 ;;
11532 esac
11533 elif test "$with_gnu_ld" = yes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11535 $as_echo_n "checking for GNU ld... " >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11538 $as_echo_n "checking for non-GNU ld... " >&6; }
11539 fi
11540 if test "${lt_cv_path_LD+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test -z "$LD"; then
11544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11545 for ac_dir in $PATH; do
11546 IFS="$lt_save_ifs"
11547 test -z "$ac_dir" && ac_dir=.
11548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11549 lt_cv_path_LD="$ac_dir/$ac_prog"
11550 # Check to see if the program is GNU ld. I'd rather use --version,
11551 # but apparently some variants of GNU ld only accept -v.
11552 # Break only if it was the GNU/non-GNU ld that we prefer.
11553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11554 *GNU* | *'with BFD'*)
11555 test "$with_gnu_ld" != no && break
11556 ;;
11557 *)
11558 test "$with_gnu_ld" != yes && break
11559 ;;
11560 esac
11561 fi
11562 done
11563 IFS="$lt_save_ifs"
11564 else
11565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11566 fi
11567 fi
11568
11569 LD="$lt_cv_path_LD"
11570 if test -n "$LD"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11572 $as_echo "$LD" >&6; }
11573 else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11576 fi
11577 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11584 case `$LD -v 2>&1 </dev/null` in
11585 *GNU* | *'with BFD'*)
11586 lt_cv_prog_gnu_ld=yes
11587 ;;
11588 *)
11589 lt_cv_prog_gnu_ld=no
11590 ;;
11591 esac
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11595 with_gnu_ld=$lt_cv_prog_gnu_ld
11596
11597
11598
11599
11600
11601
11602
11603 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11604 # archiving commands below assume that GNU ld is being used.
11605 if test "$with_gnu_ld" = yes; then
11606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11607 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'
11608
11609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11611
11612 # If archive_cmds runs LD, not CC, wlarc should be empty
11613 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11614 # investigate it a little bit more. (MM)
11615 wlarc='${wl}'
11616
11617 # ancient GNU ld didn't support --whole-archive et. al.
11618 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11619 $GREP 'no-whole-archive' > /dev/null; then
11620 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11621 else
11622 whole_archive_flag_spec_CXX=
11623 fi
11624 else
11625 with_gnu_ld=no
11626 wlarc=
11627
11628 # A generic and very simple default shared library creation
11629 # command for GNU C++ for the case where it uses the native
11630 # linker, instead of GNU ld. If possible, this setting should
11631 # overridden to take advantage of the native linker features on
11632 # the platform it is being used on.
11633 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11634 fi
11635
11636 # Commands to make compiler produce verbose output that lists
11637 # what "hidden" libraries, object files and flags are used when
11638 # linking a shared library.
11639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11640
11641 else
11642 GXX=no
11643 with_gnu_ld=no
11644 wlarc=
11645 fi
11646
11647 # PORTME: fill in a description of your system's C++ link characteristics
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11649 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11650 ld_shlibs_CXX=yes
11651 case $host_os in
11652 aix3*)
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 aix[4-9]*)
11657 if test "$host_cpu" = ia64; then
11658 # On IA64, the linker does run time linking by default, so we don't
11659 # have to do anything special.
11660 aix_use_runtimelinking=no
11661 exp_sym_flag='-Bexport'
11662 no_entry_flag=""
11663 else
11664 aix_use_runtimelinking=no
11665
11666 # Test if we are trying to use run time linking or normal
11667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11668 # need to do runtime linking.
11669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11670 for ld_flag in $LDFLAGS; do
11671 case $ld_flag in
11672 *-brtl*)
11673 aix_use_runtimelinking=yes
11674 break
11675 ;;
11676 esac
11677 done
11678 ;;
11679 esac
11680
11681 exp_sym_flag='-bexport'
11682 no_entry_flag='-bnoentry'
11683 fi
11684
11685 # When large executables or shared objects are built, AIX ld can
11686 # have problems creating the table of contents. If linking a library
11687 # or program results in "error TOC overflow" add -mminimal-toc to
11688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11690
11691 archive_cmds_CXX=''
11692 hardcode_direct_CXX=yes
11693 hardcode_direct_absolute_CXX=yes
11694 hardcode_libdir_separator_CXX=':'
11695 link_all_deplibs_CXX=yes
11696 file_list_spec_CXX='${wl}-f,'
11697
11698 if test "$GXX" = yes; then
11699 case $host_os in aix4.[012]|aix4.[012].*)
11700 # We only want to do this on AIX 4.2 and lower, the check
11701 # below for broken collect2 doesn't work under 4.3+
11702 collect2name=`${CC} -print-prog-name=collect2`
11703 if test -f "$collect2name" &&
11704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11705 then
11706 # We have reworked collect2
11707 :
11708 else
11709 # We have old collect2
11710 hardcode_direct_CXX=unsupported
11711 # It fails to find uninstalled libraries when the uninstalled
11712 # path is not listed in the libpath. Setting hardcode_minus_L
11713 # to unsupported forces relinking
11714 hardcode_minus_L_CXX=yes
11715 hardcode_libdir_flag_spec_CXX='-L$libdir'
11716 hardcode_libdir_separator_CXX=
11717 fi
11718 esac
11719 shared_flag='-shared'
11720 if test "$aix_use_runtimelinking" = yes; then
11721 shared_flag="$shared_flag "'${wl}-G'
11722 fi
11723 else
11724 # not using gcc
11725 if test "$host_cpu" = ia64; then
11726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11727 # chokes on -Wl,-G. The following line is correct:
11728 shared_flag='-G'
11729 else
11730 if test "$aix_use_runtimelinking" = yes; then
11731 shared_flag='${wl}-G'
11732 else
11733 shared_flag='${wl}-bM:SRE'
11734 fi
11735 fi
11736 fi
11737
11738 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11739 # It seems that -bexpall does not export symbols beginning with
11740 # underscore (_), so it is better to generate a list of symbols to
11741 # export.
11742 always_export_symbols_CXX=yes
11743 if test "$aix_use_runtimelinking" = yes; then
11744 # Warning - without using the other runtime loading flags (-brtl),
11745 # -berok will link without error, but may produce a broken library.
11746 allow_undefined_flag_CXX='-berok'
11747 # Determine the default libpath from the value encoded in an empty
11748 # executable.
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 int
11753 main ()
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_cxx_try_link "$LINENO"; then :
11761
11762 lt_aix_libpath_sed='
11763 /Import File Strings/,/^$/ {
11764 /^0/ {
11765 s/^0 *\(.*\)$/\1/
11766 p
11767 }
11768 }'
11769 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11770 # Check for a 64-bit object if we didn't find anything.
11771 if test -z "$aix_libpath"; then
11772 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11773 fi
11774 fi
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11778
11779 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11780
11781 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"
11782 else
11783 if test "$host_cpu" = ia64; then
11784 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11785 allow_undefined_flag_CXX="-z nodefs"
11786 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"
11787 else
11788 # Determine the default libpath from the value encoded in an
11789 # empty executable.
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792
11793 int
11794 main ()
11795 {
11796
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 if ac_fn_cxx_try_link "$LINENO"; then :
11802
11803 lt_aix_libpath_sed='
11804 /Import File Strings/,/^$/ {
11805 /^0/ {
11806 s/^0 *\(.*\)$/\1/
11807 p
11808 }
11809 }'
11810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11811 # Check for a 64-bit object if we didn't find anything.
11812 if test -z "$aix_libpath"; then
11813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11814 fi
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11819
11820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11821 # Warning - without using the other run time loading flags,
11822 # -berok will link without error, but may produce a broken library.
11823 no_undefined_flag_CXX=' ${wl}-bernotok'
11824 allow_undefined_flag_CXX=' ${wl}-berok'
11825 # Exported symbols can be pulled into shared objects from archives
11826 whole_archive_flag_spec_CXX='$convenience'
11827 archive_cmds_need_lc_CXX=yes
11828 # This is similar to how AIX traditionally builds its shared
11829 # libraries.
11830 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'
11831 fi
11832 fi
11833 ;;
11834
11835 beos*)
11836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11837 allow_undefined_flag_CXX=unsupported
11838 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11839 # support --undefined. This deserves some investigation. FIXME
11840 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11841 else
11842 ld_shlibs_CXX=no
11843 fi
11844 ;;
11845
11846 chorus*)
11847 case $cc_basename in
11848 *)
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11851 ;;
11852 esac
11853 ;;
11854
11855 cygwin* | mingw* | pw32* | cegcc*)
11856 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11857 # as there is no search path for DLLs.
11858 hardcode_libdir_flag_spec_CXX='-L$libdir'
11859 allow_undefined_flag_CXX=unsupported
11860 always_export_symbols_CXX=no
11861 enable_shared_with_static_runtimes_CXX=yes
11862
11863 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11864 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'
11865 # If the export-symbols file already is a .def file (1st line
11866 # is EXPORTS), use it as is; otherwise, prepend...
11867 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11868 cp $export_symbols $output_objdir/$soname.def;
11869 else
11870 echo EXPORTS > $output_objdir/$soname.def;
11871 cat $export_symbols >> $output_objdir/$soname.def;
11872 fi~
11873 $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'
11874 else
11875 ld_shlibs_CXX=no
11876 fi
11877 ;;
11878 darwin* | rhapsody*)
11879
11880
11881 archive_cmds_need_lc_CXX=no
11882 hardcode_direct_CXX=no
11883 hardcode_automatic_CXX=yes
11884 hardcode_shlibpath_var_CXX=unsupported
11885 whole_archive_flag_spec_CXX=''
11886 link_all_deplibs_CXX=yes
11887 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11888 case $cc_basename in
11889 ifort*) _lt_dar_can_shared=yes ;;
11890 *) _lt_dar_can_shared=$GCC ;;
11891 esac
11892 if test "$_lt_dar_can_shared" = "yes"; then
11893 output_verbose_link_cmd=echo
11894 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}"
11895 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11896 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}"
11897 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}"
11898 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11899 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}"
11900 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}"
11901 fi
11902
11903 else
11904 ld_shlibs_CXX=no
11905 fi
11906
11907 ;;
11908
11909 dgux*)
11910 case $cc_basename in
11911 ec++*)
11912 # FIXME: insert proper C++ library support
11913 ld_shlibs_CXX=no
11914 ;;
11915 ghcx*)
11916 # Green Hills C++ Compiler
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11919 ;;
11920 *)
11921 # FIXME: insert proper C++ library support
11922 ld_shlibs_CXX=no
11923 ;;
11924 esac
11925 ;;
11926
11927 freebsd[12]*)
11928 # C++ shared libraries reported to be fairly broken before
11929 # switch to ELF
11930 ld_shlibs_CXX=no
11931 ;;
11932
11933 freebsd-elf*)
11934 archive_cmds_need_lc_CXX=no
11935 ;;
11936
11937 freebsd* | dragonfly*)
11938 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11939 # conventions
11940 ld_shlibs_CXX=yes
11941 ;;
11942
11943 gnu*)
11944 ;;
11945
11946 hpux9*)
11947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11948 hardcode_libdir_separator_CXX=:
11949 export_dynamic_flag_spec_CXX='${wl}-E'
11950 hardcode_direct_CXX=yes
11951 hardcode_minus_L_CXX=yes # Not in the search PATH,
11952 # but as the default
11953 # location of the library.
11954
11955 case $cc_basename in
11956 CC*)
11957 # FIXME: insert proper C++ library support
11958 ld_shlibs_CXX=no
11959 ;;
11960 aCC*)
11961 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'
11962 # Commands to make compiler produce verbose output that lists
11963 # what "hidden" libraries, object files and flags are used when
11964 # linking a shared library.
11965 #
11966 # There doesn't appear to be a way to prevent this compiler from
11967 # explicitly linking system object files so we need to strip them
11968 # from the output so that they don't get included in the library
11969 # dependencies.
11970 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'
11971 ;;
11972 *)
11973 if test "$GXX" = yes; then
11974 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'
11975 else
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 fi
11979 ;;
11980 esac
11981 ;;
11982
11983 hpux10*|hpux11*)
11984 if test $with_gnu_ld = no; then
11985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_separator_CXX=:
11987
11988 case $host_cpu in
11989 hppa*64*|ia64*)
11990 ;;
11991 *)
11992 export_dynamic_flag_spec_CXX='${wl}-E'
11993 ;;
11994 esac
11995 fi
11996 case $host_cpu in
11997 hppa*64*|ia64*)
11998 hardcode_direct_CXX=no
11999 hardcode_shlibpath_var_CXX=no
12000 ;;
12001 *)
12002 hardcode_direct_CXX=yes
12003 hardcode_direct_absolute_CXX=yes
12004 hardcode_minus_L_CXX=yes # Not in the search PATH,
12005 # but as the default
12006 # location of the library.
12007 ;;
12008 esac
12009
12010 case $cc_basename in
12011 CC*)
12012 # FIXME: insert proper C++ library support
12013 ld_shlibs_CXX=no
12014 ;;
12015 aCC*)
12016 case $host_cpu in
12017 hppa*64*)
12018 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12019 ;;
12020 ia64*)
12021 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12022 ;;
12023 *)
12024 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025 ;;
12026 esac
12027 # Commands to make compiler produce verbose output that lists
12028 # what "hidden" libraries, object files and flags are used when
12029 # linking a shared library.
12030 #
12031 # There doesn't appear to be a way to prevent this compiler from
12032 # explicitly linking system object files so we need to strip them
12033 # from the output so that they don't get included in the library
12034 # dependencies.
12035 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'
12036 ;;
12037 *)
12038 if test "$GXX" = yes; then
12039 if test $with_gnu_ld = no; then
12040 case $host_cpu in
12041 hppa*64*)
12042 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043 ;;
12044 ia64*)
12045 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12046 ;;
12047 *)
12048 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'
12049 ;;
12050 esac
12051 fi
12052 else
12053 # FIXME: insert proper C++ library support
12054 ld_shlibs_CXX=no
12055 fi
12056 ;;
12057 esac
12058 ;;
12059
12060 interix[3-9]*)
12061 hardcode_direct_CXX=no
12062 hardcode_shlibpath_var_CXX=no
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064 export_dynamic_flag_spec_CXX='${wl}-E'
12065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12066 # Instead, shared libraries are loaded at an image base (0x10000000 by
12067 # default) and relocated if they conflict, which is a slow very memory
12068 # consuming and fragmenting process. To avoid this, we pick a random,
12069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12071 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'
12072 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'
12073 ;;
12074 irix5* | irix6*)
12075 case $cc_basename in
12076 CC*)
12077 # SGI C++
12078 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'
12079
12080 # Archives containing C++ object files must be created using
12081 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12082 # necessary to make sure instantiated templates are included
12083 # in the archive.
12084 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12085 ;;
12086 *)
12087 if test "$GXX" = yes; then
12088 if test "$with_gnu_ld" = no; then
12089 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'
12090 else
12091 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'
12092 fi
12093 fi
12094 link_all_deplibs_CXX=yes
12095 ;;
12096 esac
12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12098 hardcode_libdir_separator_CXX=:
12099 inherit_rpath_CXX=yes
12100 ;;
12101
12102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12103 case $cc_basename in
12104 KCC*)
12105 # Kuck and Associates, Inc. (KAI) C++ Compiler
12106
12107 # KCC will only create a shared library if the output file
12108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12109 # to its proper name (with version) after linking.
12110 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'
12111 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'
12112 # Commands to make compiler produce verbose output that lists
12113 # what "hidden" libraries, object files and flags are used when
12114 # linking a shared library.
12115 #
12116 # There doesn't appear to be a way to prevent this compiler from
12117 # explicitly linking system object files so we need to strip them
12118 # from the output so that they don't get included in the library
12119 # dependencies.
12120 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'
12121
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12124
12125 # Archives containing C++ object files must be created using
12126 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12127 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12128 ;;
12129 icpc* | ecpc* )
12130 # Intel C++
12131 with_gnu_ld=yes
12132 # version 8.0 and above of icpc choke on multiply defined symbols
12133 # if we add $predep_objects and $postdep_objects, however 7.1 and
12134 # earlier do not add the objects themselves.
12135 case `$CC -V 2>&1` in
12136 *"Version 7."*)
12137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138 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'
12139 ;;
12140 *) # Version 8.0 or newer
12141 tmp_idyn=
12142 case $host_cpu in
12143 ia64*) tmp_idyn=' -i_dynamic';;
12144 esac
12145 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12146 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'
12147 ;;
12148 esac
12149 archive_cmds_need_lc_CXX=no
12150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12152 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12153 ;;
12154 pgCC* | pgcpp*)
12155 # Portland Group C++ compiler
12156 case `$CC -V` in
12157 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12158 prelink_cmds_CXX='tpldir=Template.dir~
12159 rm -rf $tpldir~
12160 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12161 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12162 old_archive_cmds_CXX='tpldir=Template.dir~
12163 rm -rf $tpldir~
12164 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12165 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12166 $RANLIB $oldlib'
12167 archive_cmds_CXX='tpldir=Template.dir~
12168 rm -rf $tpldir~
12169 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12170 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12171 archive_expsym_cmds_CXX='tpldir=Template.dir~
12172 rm -rf $tpldir~
12173 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12174 $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'
12175 ;;
12176 *) # Version 6 will use weak symbols
12177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12178 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'
12179 ;;
12180 esac
12181
12182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12184 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'
12185 ;;
12186 cxx*)
12187 # Compaq C++
12188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12189 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'
12190
12191 runpath_var=LD_RUN_PATH
12192 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12193 hardcode_libdir_separator_CXX=:
12194
12195 # Commands to make compiler produce verbose output that lists
12196 # what "hidden" libraries, object files and flags are used when
12197 # linking a shared library.
12198 #
12199 # There doesn't appear to be a way to prevent this compiler from
12200 # explicitly linking system object files so we need to strip them
12201 # from the output so that they don't get included in the library
12202 # dependencies.
12203 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'
12204 ;;
12205 xl*)
12206 # IBM XL 8.0 on PPC, with GNU ld
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12210 if test "x$supports_anon_versioning" = xyes; then
12211 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12213 echo "local: *; };" >> $output_objdir/$libname.ver~
12214 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12215 fi
12216 ;;
12217 *)
12218 case `$CC -V 2>&1 | sed 5q` in
12219 *Sun\ C*)
12220 # Sun C++ 5.9
12221 no_undefined_flag_CXX=' -zdefs'
12222 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12223 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'
12224 hardcode_libdir_flag_spec_CXX='-R$libdir'
12225 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'
12226 compiler_needs_object_CXX=yes
12227
12228 # Not sure whether something based on
12229 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12230 # would be better.
12231 output_verbose_link_cmd='echo'
12232
12233 # Archives containing C++ object files must be created using
12234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12235 # necessary to make sure instantiated templates are included
12236 # in the archive.
12237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12238 ;;
12239 esac
12240 ;;
12241 esac
12242 ;;
12243
12244 lynxos*)
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 ;;
12248
12249 m88k*)
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12252 ;;
12253
12254 mvs*)
12255 case $cc_basename in
12256 cxx*)
12257 # FIXME: insert proper C++ library support
12258 ld_shlibs_CXX=no
12259 ;;
12260 *)
12261 # FIXME: insert proper C++ library support
12262 ld_shlibs_CXX=no
12263 ;;
12264 esac
12265 ;;
12266
12267 netbsd*)
12268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12269 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12270 wlarc=
12271 hardcode_libdir_flag_spec_CXX='-R$libdir'
12272 hardcode_direct_CXX=yes
12273 hardcode_shlibpath_var_CXX=no
12274 fi
12275 # Workaround some broken pre-1.5 toolchains
12276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12277 ;;
12278
12279 *nto* | *qnx*)
12280 ld_shlibs_CXX=yes
12281 ;;
12282
12283 openbsd2*)
12284 # C++ shared libraries are fairly broken
12285 ld_shlibs_CXX=no
12286 ;;
12287
12288 openbsd*)
12289 if test -f /usr/libexec/ld.so; then
12290 hardcode_direct_CXX=yes
12291 hardcode_shlibpath_var_CXX=no
12292 hardcode_direct_absolute_CXX=yes
12293 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12296 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12297 export_dynamic_flag_spec_CXX='${wl}-E'
12298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12299 fi
12300 output_verbose_link_cmd=echo
12301 else
12302 ld_shlibs_CXX=no
12303 fi
12304 ;;
12305
12306 osf3* | osf4* | osf5*)
12307 case $cc_basename in
12308 KCC*)
12309 # Kuck and Associates, Inc. (KAI) C++ Compiler
12310
12311 # KCC will only create a shared library if the output file
12312 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12313 # to its proper name (with version) after linking.
12314 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'
12315
12316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12317 hardcode_libdir_separator_CXX=:
12318
12319 # Archives containing C++ object files must be created using
12320 # the KAI C++ compiler.
12321 case $host in
12322 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12323 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12324 esac
12325 ;;
12326 RCC*)
12327 # Rational C++ 2.4.1
12328 # FIXME: insert proper C++ library support
12329 ld_shlibs_CXX=no
12330 ;;
12331 cxx*)
12332 case $host in
12333 osf3*)
12334 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12335 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'
12336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12337 ;;
12338 *)
12339 allow_undefined_flag_CXX=' -expect_unresolved \*'
12340 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'
12341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12342 echo "-hidden">> $lib.exp~
12343 $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~
12344 $RM $lib.exp'
12345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12346 ;;
12347 esac
12348
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 #
12355 # There doesn't appear to be a way to prevent this compiler from
12356 # explicitly linking system object files so we need to strip them
12357 # from the output so that they don't get included in the library
12358 # dependencies.
12359 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'
12360 ;;
12361 *)
12362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12364 case $host in
12365 osf3*)
12366 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'
12367 ;;
12368 *)
12369 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'
12370 ;;
12371 esac
12372
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12374 hardcode_libdir_separator_CXX=:
12375
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12380
12381 else
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 fi
12385 ;;
12386 esac
12387 ;;
12388
12389 psos*)
12390 # FIXME: insert proper C++ library support
12391 ld_shlibs_CXX=no
12392 ;;
12393
12394 sunos4*)
12395 case $cc_basename in
12396 CC*)
12397 # Sun C++ 4.x
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12400 ;;
12401 lcc*)
12402 # Lucid
12403 # FIXME: insert proper C++ library support
12404 ld_shlibs_CXX=no
12405 ;;
12406 *)
12407 # FIXME: insert proper C++ library support
12408 ld_shlibs_CXX=no
12409 ;;
12410 esac
12411 ;;
12412
12413 solaris*)
12414 case $cc_basename in
12415 CC*)
12416 # Sun C++ 4.2, 5.x and Centerline C++
12417 archive_cmds_need_lc_CXX=yes
12418 no_undefined_flag_CXX=' -zdefs'
12419 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12421 $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'
12422
12423 hardcode_libdir_flag_spec_CXX='-R$libdir'
12424 hardcode_shlibpath_var_CXX=no
12425 case $host_os in
12426 solaris2.[0-5] | solaris2.[0-5].*) ;;
12427 *)
12428 # The compiler driver will combine and reorder linker options,
12429 # but understands `-z linker_flag'.
12430 # Supported since Solaris 2.6 (maybe 2.5.1?)
12431 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12432 ;;
12433 esac
12434 link_all_deplibs_CXX=yes
12435
12436 output_verbose_link_cmd='echo'
12437
12438 # Archives containing C++ object files must be created using
12439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12440 # necessary to make sure instantiated templates are included
12441 # in the archive.
12442 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12443 ;;
12444 gcx*)
12445 # Green Hills C++ Compiler
12446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12447
12448 # The C++ compiler must be used to create the archive.
12449 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12450 ;;
12451 *)
12452 # GNU C++ compiler with Solaris linker
12453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12455 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12456 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12458 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12459
12460 # Commands to make compiler produce verbose output that lists
12461 # what "hidden" libraries, object files and flags are used when
12462 # linking a shared library.
12463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12464 else
12465 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12466 # platform.
12467 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12470
12471 # Commands to make compiler produce verbose output that lists
12472 # what "hidden" libraries, object files and flags are used when
12473 # linking a shared library.
12474 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12475 fi
12476
12477 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12478 case $host_os in
12479 solaris2.[0-5] | solaris2.[0-5].*) ;;
12480 *)
12481 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12482 ;;
12483 esac
12484 fi
12485 ;;
12486 esac
12487 ;;
12488
12489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12490 no_undefined_flag_CXX='${wl}-z,text'
12491 archive_cmds_need_lc_CXX=no
12492 hardcode_shlibpath_var_CXX=no
12493 runpath_var='LD_RUN_PATH'
12494
12495 case $cc_basename in
12496 CC*)
12497 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12498 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 ;;
12500 *)
12501 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12502 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 ;;
12504 esac
12505 ;;
12506
12507 sysv5* | sco3.2v5* | sco5v6*)
12508 # Note: We can NOT use -z defs as we might desire, because we do not
12509 # link with -lc, and that would cause any symbols used from libc to
12510 # always be unresolved, which means just about no library would
12511 # ever link correctly. If we're not using GNU ld we use -z text
12512 # though, which does catch some bad symbols but isn't as heavy-handed
12513 # as -z defs.
12514 no_undefined_flag_CXX='${wl}-z,text'
12515 allow_undefined_flag_CXX='${wl}-z,nodefs'
12516 archive_cmds_need_lc_CXX=no
12517 hardcode_shlibpath_var_CXX=no
12518 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12519 hardcode_libdir_separator_CXX=':'
12520 link_all_deplibs_CXX=yes
12521 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12522 runpath_var='LD_RUN_PATH'
12523
12524 case $cc_basename in
12525 CC*)
12526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12528 ;;
12529 *)
12530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12532 ;;
12533 esac
12534 ;;
12535
12536 tandem*)
12537 case $cc_basename in
12538 NCC*)
12539 # NonStop-UX NCC 3.20
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12542 ;;
12543 *)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547 esac
12548 ;;
12549
12550 vxworks*)
12551 # FIXME: insert proper C++ library support
12552 ld_shlibs_CXX=no
12553 ;;
12554
12555 *)
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
12558 ;;
12559 esac
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12562 $as_echo "$ld_shlibs_CXX" >&6; }
12563 test "$ld_shlibs_CXX" = no && can_build_shared=no
12564
12565 GCC_CXX="$GXX"
12566 LD_CXX="$LD"
12567
12568 ## CAVEAT EMPTOR:
12569 ## There is no encapsulation within the following macros, do not change
12570 ## the running order or otherwise move them around unless you know exactly
12571 ## what you are doing...
12572 # Dependencies to place before and after the object being linked:
12573 predep_objects_CXX=
12574 postdep_objects_CXX=
12575 predeps_CXX=
12576 postdeps_CXX=
12577 compiler_lib_search_path_CXX=
12578
12579 cat > conftest.$ac_ext <<_LT_EOF
12580 class Foo
12581 {
12582 public:
12583 Foo (void) { a = 0; }
12584 private:
12585 int a;
12586 };
12587 _LT_EOF
12588
12589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12590 (eval $ac_compile) 2>&5
12591 ac_status=$?
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; }; then
12594 # Parse the compiler output and extract the necessary
12595 # objects, libraries and library flags.
12596
12597 # Sentinel used to keep track of whether or not we are before
12598 # the conftest object file.
12599 pre_test_object_deps_done=no
12600
12601 for p in `eval "$output_verbose_link_cmd"`; do
12602 case $p in
12603
12604 -L* | -R* | -l*)
12605 # Some compilers place space between "-{L,R}" and the path.
12606 # Remove the space.
12607 if test $p = "-L" ||
12608 test $p = "-R"; then
12609 prev=$p
12610 continue
12611 else
12612 prev=
12613 fi
12614
12615 if test "$pre_test_object_deps_done" = no; then
12616 case $p in
12617 -L* | -R*)
12618 # Internal compiler library paths should come after those
12619 # provided the user. The postdeps already come after the
12620 # user supplied libs so there is no need to process them.
12621 if test -z "$compiler_lib_search_path_CXX"; then
12622 compiler_lib_search_path_CXX="${prev}${p}"
12623 else
12624 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12625 fi
12626 ;;
12627 # The "-l" case would never come before the object being
12628 # linked, so don't bother handling this case.
12629 esac
12630 else
12631 if test -z "$postdeps_CXX"; then
12632 postdeps_CXX="${prev}${p}"
12633 else
12634 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12635 fi
12636 fi
12637 ;;
12638
12639 *.$objext)
12640 # This assumes that the test object file only shows up
12641 # once in the compiler output.
12642 if test "$p" = "conftest.$objext"; then
12643 pre_test_object_deps_done=yes
12644 continue
12645 fi
12646
12647 if test "$pre_test_object_deps_done" = no; then
12648 if test -z "$predep_objects_CXX"; then
12649 predep_objects_CXX="$p"
12650 else
12651 predep_objects_CXX="$predep_objects_CXX $p"
12652 fi
12653 else
12654 if test -z "$postdep_objects_CXX"; then
12655 postdep_objects_CXX="$p"
12656 else
12657 postdep_objects_CXX="$postdep_objects_CXX $p"
12658 fi
12659 fi
12660 ;;
12661
12662 *) ;; # Ignore the rest.
12663
12664 esac
12665 done
12666
12667 # Clean up.
12668 rm -f a.out a.exe
12669 else
12670 echo "libtool.m4: error: problem compiling CXX test program"
12671 fi
12672
12673 $RM -f confest.$objext
12674
12675 # PORTME: override above test on systems where it is broken
12676 case $host_os in
12677 interix[3-9]*)
12678 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12679 # hack all around it, let's just trust "g++" to DTRT.
12680 predep_objects_CXX=
12681 postdep_objects_CXX=
12682 postdeps_CXX=
12683 ;;
12684
12685 linux*)
12686 case `$CC -V 2>&1 | sed 5q` in
12687 *Sun\ C*)
12688 # Sun C++ 5.9
12689
12690 # The more standards-conforming stlport4 library is
12691 # incompatible with the Cstd library. Avoid specifying
12692 # it if it's in CXXFLAGS. Ignore libCrun as
12693 # -library=stlport4 depends on it.
12694 case " $CXX $CXXFLAGS " in
12695 *" -library=stlport4 "*)
12696 solaris_use_stlport4=yes
12697 ;;
12698 esac
12699
12700 if test "$solaris_use_stlport4" != yes; then
12701 postdeps_CXX='-library=Cstd -library=Crun'
12702 fi
12703 ;;
12704 esac
12705 ;;
12706
12707 solaris*)
12708 case $cc_basename in
12709 CC*)
12710 # The more standards-conforming stlport4 library is
12711 # incompatible with the Cstd library. Avoid specifying
12712 # it if it's in CXXFLAGS. Ignore libCrun as
12713 # -library=stlport4 depends on it.
12714 case " $CXX $CXXFLAGS " in
12715 *" -library=stlport4 "*)
12716 solaris_use_stlport4=yes
12717 ;;
12718 esac
12719
12720 # Adding this requires a known-good setup of shared libraries for
12721 # Sun compiler versions before 5.6, else PIC objects from an old
12722 # archive will be linked into the output, leading to subtle bugs.
12723 if test "$solaris_use_stlport4" != yes; then
12724 postdeps_CXX='-library=Cstd -library=Crun'
12725 fi
12726 ;;
12727 esac
12728 ;;
12729 esac
12730
12731
12732 case " $postdeps_CXX " in
12733 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12734 esac
12735 compiler_lib_search_dirs_CXX=
12736 if test -n "${compiler_lib_search_path_CXX}"; then
12737 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12738 fi
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770 lt_prog_compiler_wl_CXX=
12771 lt_prog_compiler_pic_CXX=
12772 lt_prog_compiler_static_CXX=
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12776
12777 # C++ specific cases for pic, static, wl, etc.
12778 if test "$GXX" = yes; then
12779 lt_prog_compiler_wl_CXX='-Wl,'
12780 lt_prog_compiler_static_CXX='-static'
12781
12782 case $host_os in
12783 aix*)
12784 # All AIX code is PIC.
12785 if test "$host_cpu" = ia64; then
12786 # AIX 5 now supports IA64 processor
12787 lt_prog_compiler_static_CXX='-Bstatic'
12788 fi
12789 ;;
12790
12791 amigaos*)
12792 case $host_cpu in
12793 powerpc)
12794 # see comment about AmigaOS4 .so support
12795 lt_prog_compiler_pic_CXX='-fPIC'
12796 ;;
12797 m68k)
12798 # FIXME: we need at least 68020 code to build shared libraries, but
12799 # adding the `-m68020' flag to GCC prevents building anything better,
12800 # like `-m68040'.
12801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12802 ;;
12803 esac
12804 ;;
12805
12806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12807 # PIC is the default for these OSes.
12808 ;;
12809 mingw* | cygwin* | os2* | pw32* | cegcc*)
12810 # This hack is so that the source file can tell whether it is being
12811 # built for inclusion in a dll (and should export symbols for example).
12812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12813 # (--disable-auto-import) libraries
12814 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12815 ;;
12816 darwin* | rhapsody*)
12817 # PIC is the default on this platform
12818 # Common symbols not allowed in MH_DYLIB files
12819 lt_prog_compiler_pic_CXX='-fno-common'
12820 ;;
12821 *djgpp*)
12822 # DJGPP does not support shared libraries at all
12823 lt_prog_compiler_pic_CXX=
12824 ;;
12825 interix[3-9]*)
12826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12827 # Instead, we relocate shared libraries at runtime.
12828 ;;
12829 sysv4*MP*)
12830 if test -d /usr/nec; then
12831 lt_prog_compiler_pic_CXX=-Kconform_pic
12832 fi
12833 ;;
12834 hpux*)
12835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12837 # sets the default TLS model and affects inlining.
12838 case $host_cpu in
12839 hppa*64*)
12840 ;;
12841 *)
12842 lt_prog_compiler_pic_CXX='-fPIC'
12843 ;;
12844 esac
12845 ;;
12846 *qnx* | *nto*)
12847 # QNX uses GNU C++, but need to define -shared option too, otherwise
12848 # it will coredump.
12849 lt_prog_compiler_pic_CXX='-fPIC -shared'
12850 ;;
12851 *)
12852 lt_prog_compiler_pic_CXX='-fPIC'
12853 ;;
12854 esac
12855 else
12856 case $host_os in
12857 aix[4-9]*)
12858 # All AIX code is PIC.
12859 if test "$host_cpu" = ia64; then
12860 # AIX 5 now supports IA64 processor
12861 lt_prog_compiler_static_CXX='-Bstatic'
12862 else
12863 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12864 fi
12865 ;;
12866 chorus*)
12867 case $cc_basename in
12868 cxch68*)
12869 # Green Hills C++ Compiler
12870 # _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"
12871 ;;
12872 esac
12873 ;;
12874 dgux*)
12875 case $cc_basename in
12876 ec++*)
12877 lt_prog_compiler_pic_CXX='-KPIC'
12878 ;;
12879 ghcx*)
12880 # Green Hills C++ Compiler
12881 lt_prog_compiler_pic_CXX='-pic'
12882 ;;
12883 *)
12884 ;;
12885 esac
12886 ;;
12887 freebsd* | dragonfly*)
12888 # FreeBSD uses GNU C++
12889 ;;
12890 hpux9* | hpux10* | hpux11*)
12891 case $cc_basename in
12892 CC*)
12893 lt_prog_compiler_wl_CXX='-Wl,'
12894 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12895 if test "$host_cpu" != ia64; then
12896 lt_prog_compiler_pic_CXX='+Z'
12897 fi
12898 ;;
12899 aCC*)
12900 lt_prog_compiler_wl_CXX='-Wl,'
12901 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12902 case $host_cpu in
12903 hppa*64*|ia64*)
12904 # +Z the default
12905 ;;
12906 *)
12907 lt_prog_compiler_pic_CXX='+Z'
12908 ;;
12909 esac
12910 ;;
12911 *)
12912 ;;
12913 esac
12914 ;;
12915 interix*)
12916 # This is c89, which is MS Visual C++ (no shared libs)
12917 # Anyone wants to do a port?
12918 ;;
12919 irix5* | irix6* | nonstopux*)
12920 case $cc_basename in
12921 CC*)
12922 lt_prog_compiler_wl_CXX='-Wl,'
12923 lt_prog_compiler_static_CXX='-non_shared'
12924 # CC pic flag -KPIC is the default.
12925 ;;
12926 *)
12927 ;;
12928 esac
12929 ;;
12930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12931 case $cc_basename in
12932 KCC*)
12933 # KAI C++ Compiler
12934 lt_prog_compiler_wl_CXX='--backend -Wl,'
12935 lt_prog_compiler_pic_CXX='-fPIC'
12936 ;;
12937 ecpc* )
12938 # old Intel C++ for x86_64 which still supported -KPIC.
12939 lt_prog_compiler_wl_CXX='-Wl,'
12940 lt_prog_compiler_pic_CXX='-KPIC'
12941 lt_prog_compiler_static_CXX='-static'
12942 ;;
12943 icpc* )
12944 # Intel C++, used to be incompatible with GCC.
12945 # ICC 10 doesn't accept -KPIC any more.
12946 lt_prog_compiler_wl_CXX='-Wl,'
12947 lt_prog_compiler_pic_CXX='-fPIC'
12948 lt_prog_compiler_static_CXX='-static'
12949 ;;
12950 pgCC* | pgcpp*)
12951 # Portland Group C++ compiler
12952 lt_prog_compiler_wl_CXX='-Wl,'
12953 lt_prog_compiler_pic_CXX='-fpic'
12954 lt_prog_compiler_static_CXX='-Bstatic'
12955 ;;
12956 cxx*)
12957 # Compaq C++
12958 # Make sure the PIC flag is empty. It appears that all Alpha
12959 # Linux and Compaq Tru64 Unix objects are PIC.
12960 lt_prog_compiler_pic_CXX=
12961 lt_prog_compiler_static_CXX='-non_shared'
12962 ;;
12963 xlc* | xlC*)
12964 # IBM XL 8.0 on PPC
12965 lt_prog_compiler_wl_CXX='-Wl,'
12966 lt_prog_compiler_pic_CXX='-qpic'
12967 lt_prog_compiler_static_CXX='-qstaticlink'
12968 ;;
12969 *)
12970 case `$CC -V 2>&1 | sed 5q` in
12971 *Sun\ C*)
12972 # Sun C++ 5.9
12973 lt_prog_compiler_pic_CXX='-KPIC'
12974 lt_prog_compiler_static_CXX='-Bstatic'
12975 lt_prog_compiler_wl_CXX='-Qoption ld '
12976 ;;
12977 esac
12978 ;;
12979 esac
12980 ;;
12981 lynxos*)
12982 ;;
12983 m88k*)
12984 ;;
12985 mvs*)
12986 case $cc_basename in
12987 cxx*)
12988 lt_prog_compiler_pic_CXX='-W c,exportall'
12989 ;;
12990 *)
12991 ;;
12992 esac
12993 ;;
12994 netbsd* | netbsdelf*-gnu)
12995 ;;
12996 *qnx* | *nto*)
12997 # QNX uses GNU C++, but need to define -shared option too, otherwise
12998 # it will coredump.
12999 lt_prog_compiler_pic_CXX='-fPIC -shared'
13000 ;;
13001 osf3* | osf4* | osf5*)
13002 case $cc_basename in
13003 KCC*)
13004 lt_prog_compiler_wl_CXX='--backend -Wl,'
13005 ;;
13006 RCC*)
13007 # Rational C++ 2.4.1
13008 lt_prog_compiler_pic_CXX='-pic'
13009 ;;
13010 cxx*)
13011 # Digital/Compaq C++
13012 lt_prog_compiler_wl_CXX='-Wl,'
13013 # Make sure the PIC flag is empty. It appears that all Alpha
13014 # Linux and Compaq Tru64 Unix objects are PIC.
13015 lt_prog_compiler_pic_CXX=
13016 lt_prog_compiler_static_CXX='-non_shared'
13017 ;;
13018 *)
13019 ;;
13020 esac
13021 ;;
13022 psos*)
13023 ;;
13024 solaris*)
13025 case $cc_basename in
13026 CC*)
13027 # Sun C++ 4.2, 5.x and Centerline C++
13028 lt_prog_compiler_pic_CXX='-KPIC'
13029 lt_prog_compiler_static_CXX='-Bstatic'
13030 lt_prog_compiler_wl_CXX='-Qoption ld '
13031 ;;
13032 gcx*)
13033 # Green Hills C++ Compiler
13034 lt_prog_compiler_pic_CXX='-PIC'
13035 ;;
13036 *)
13037 ;;
13038 esac
13039 ;;
13040 sunos4*)
13041 case $cc_basename in
13042 CC*)
13043 # Sun C++ 4.x
13044 lt_prog_compiler_pic_CXX='-pic'
13045 lt_prog_compiler_static_CXX='-Bstatic'
13046 ;;
13047 lcc*)
13048 # Lucid
13049 lt_prog_compiler_pic_CXX='-pic'
13050 ;;
13051 *)
13052 ;;
13053 esac
13054 ;;
13055 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13056 case $cc_basename in
13057 CC*)
13058 lt_prog_compiler_wl_CXX='-Wl,'
13059 lt_prog_compiler_pic_CXX='-KPIC'
13060 lt_prog_compiler_static_CXX='-Bstatic'
13061 ;;
13062 esac
13063 ;;
13064 tandem*)
13065 case $cc_basename in
13066 NCC*)
13067 # NonStop-UX NCC 3.20
13068 lt_prog_compiler_pic_CXX='-KPIC'
13069 ;;
13070 *)
13071 ;;
13072 esac
13073 ;;
13074 vxworks*)
13075 ;;
13076 *)
13077 lt_prog_compiler_can_build_shared_CXX=no
13078 ;;
13079 esac
13080 fi
13081
13082 case $host_os in
13083 # For platforms which do not support PIC, -DPIC is meaningless:
13084 *djgpp*)
13085 lt_prog_compiler_pic_CXX=
13086 ;;
13087 *)
13088 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13089 ;;
13090 esac
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13092 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13093
13094
13095
13096 #
13097 # Check to make sure the PIC flag actually works.
13098 #
13099 if test -n "$lt_prog_compiler_pic_CXX"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13102 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 lt_cv_prog_compiler_pic_works_CXX=no
13106 ac_outfile=conftest.$ac_objext
13107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13108 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13109 # Insert the option either (1) after the last *FLAGS variable, or
13110 # (2) before a word containing "conftest.", or (3) at the end.
13111 # Note that $ac_compile itself does not contain backslashes and begins
13112 # with a dollar sign (not a hyphen), so the echo should work correctly.
13113 # The option is referenced via a variable to avoid confusing sed.
13114 lt_compile=`echo "$ac_compile" | $SED \
13115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117 -e 's:$: $lt_compiler_flag:'`
13118 (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
13119 (eval "$lt_compile" 2>conftest.err)
13120 ac_status=$?
13121 cat conftest.err >&5
13122 echo "$as_me:13122: \$? = $ac_status" >&5
13123 if (exit $ac_status) && test -s "$ac_outfile"; then
13124 # The compiler can only warn and ignore the option if not recognized
13125 # So say no if there are warnings other than the usual output.
13126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13129 lt_cv_prog_compiler_pic_works_CXX=yes
13130 fi
13131 fi
13132 $RM conftest*
13133
13134 fi
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13136 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13137
13138 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13139 case $lt_prog_compiler_pic_CXX in
13140 "" | " "*) ;;
13141 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13142 esac
13143 else
13144 lt_prog_compiler_pic_CXX=
13145 lt_prog_compiler_can_build_shared_CXX=no
13146 fi
13147
13148 fi
13149
13150
13151
13152 #
13153 # Check to make sure the static flag actually works.
13154 #
13155 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13157 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13158 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 lt_cv_prog_compiler_static_works_CXX=no
13162 save_LDFLAGS="$LDFLAGS"
13163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13166 # The linker can only warn and ignore the option if not recognized
13167 # So say no if there are warnings
13168 if test -s conftest.err; then
13169 # Append any errors to the config.log.
13170 cat conftest.err 1>&5
13171 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13173 if diff conftest.exp conftest.er2 >/dev/null; then
13174 lt_cv_prog_compiler_static_works_CXX=yes
13175 fi
13176 else
13177 lt_cv_prog_compiler_static_works_CXX=yes
13178 fi
13179 fi
13180 $RM -r conftest*
13181 LDFLAGS="$save_LDFLAGS"
13182
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13185 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13186
13187 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13188 :
13189 else
13190 lt_prog_compiler_static_CXX=
13191 fi
13192
13193
13194
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13198 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 lt_cv_prog_compiler_c_o_CXX=no
13202 $RM -r conftest 2>/dev/null
13203 mkdir conftest
13204 cd conftest
13205 mkdir out
13206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13207
13208 lt_compiler_flag="-o out/conftest2.$ac_objext"
13209 # Insert the option either (1) after the last *FLAGS variable, or
13210 # (2) before a word containing "conftest.", or (3) at the end.
13211 # Note that $ac_compile itself does not contain backslashes and begins
13212 # with a dollar sign (not a hyphen), so the echo should work correctly.
13213 lt_compile=`echo "$ac_compile" | $SED \
13214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13216 -e 's:$: $lt_compiler_flag:'`
13217 (eval echo "\"\$as_me:13217: $lt_compile\"" >&5)
13218 (eval "$lt_compile" 2>out/conftest.err)
13219 ac_status=$?
13220 cat out/conftest.err >&5
13221 echo "$as_me:13221: \$? = $ac_status" >&5
13222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13223 then
13224 # The compiler can only warn and ignore the option if not recognized
13225 # So say no if there are warnings
13226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13229 lt_cv_prog_compiler_c_o_CXX=yes
13230 fi
13231 fi
13232 chmod u+w . 2>&5
13233 $RM conftest*
13234 # SGI C++ compiler will create directory out/ii_files/ for
13235 # template instantiation
13236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13237 $RM out/* && rmdir out
13238 cd ..
13239 $RM -r conftest
13240 $RM conftest*
13241
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13244 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13245
13246
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13250 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 lt_cv_prog_compiler_c_o_CXX=no
13254 $RM -r conftest 2>/dev/null
13255 mkdir conftest
13256 cd conftest
13257 mkdir out
13258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13259
13260 lt_compiler_flag="-o out/conftest2.$ac_objext"
13261 # Insert the option either (1) after the last *FLAGS variable, or
13262 # (2) before a word containing "conftest.", or (3) at the end.
13263 # Note that $ac_compile itself does not contain backslashes and begins
13264 # with a dollar sign (not a hyphen), so the echo should work correctly.
13265 lt_compile=`echo "$ac_compile" | $SED \
13266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13268 -e 's:$: $lt_compiler_flag:'`
13269 (eval echo "\"\$as_me:13269: $lt_compile\"" >&5)
13270 (eval "$lt_compile" 2>out/conftest.err)
13271 ac_status=$?
13272 cat out/conftest.err >&5
13273 echo "$as_me:13273: \$? = $ac_status" >&5
13274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13275 then
13276 # The compiler can only warn and ignore the option if not recognized
13277 # So say no if there are warnings
13278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13281 lt_cv_prog_compiler_c_o_CXX=yes
13282 fi
13283 fi
13284 chmod u+w . 2>&5
13285 $RM conftest*
13286 # SGI C++ compiler will create directory out/ii_files/ for
13287 # template instantiation
13288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13289 $RM out/* && rmdir out
13290 cd ..
13291 $RM -r conftest
13292 $RM conftest*
13293
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13296 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13297
13298
13299
13300
13301 hard_links="nottested"
13302 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13303 # do not overwrite the value of need_locks provided by the user
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13305 $as_echo_n "checking if we can lock with hard links... " >&6; }
13306 hard_links=yes
13307 $RM conftest*
13308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13309 touch conftest.a
13310 ln conftest.a conftest.b 2>&5 || hard_links=no
13311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13313 $as_echo "$hard_links" >&6; }
13314 if test "$hard_links" = no; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13317 need_locks=warn
13318 fi
13319 else
13320 need_locks=no
13321 fi
13322
13323
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13326 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13327
13328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13329 case $host_os in
13330 aix[4-9]*)
13331 # If we're using GNU nm, then we don't want the "-C" option.
13332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13333 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13334 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'
13335 else
13336 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'
13337 fi
13338 ;;
13339 pw32*)
13340 export_symbols_cmds_CXX="$ltdll_cmds"
13341 ;;
13342 cygwin* | mingw* | cegcc*)
13343 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'
13344 ;;
13345 linux* | k*bsd*-gnu)
13346 link_all_deplibs_CXX=no
13347 ;;
13348 *)
13349 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13350 ;;
13351 esac
13352 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13353
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13355 $as_echo "$ld_shlibs_CXX" >&6; }
13356 test "$ld_shlibs_CXX" = no && can_build_shared=no
13357
13358 with_gnu_ld_CXX=$with_gnu_ld
13359
13360
13361
13362
13363
13364
13365 #
13366 # Do we need to explicitly link libc?
13367 #
13368 case "x$archive_cmds_need_lc_CXX" in
13369 x|xyes)
13370 # Assume -lc should be added
13371 archive_cmds_need_lc_CXX=yes
13372
13373 if test "$enable_shared" = yes && test "$GCC" = yes; then
13374 case $archive_cmds_CXX in
13375 *'~'*)
13376 # FIXME: we may have to deal with multi-command sequences.
13377 ;;
13378 '$CC '*)
13379 # Test whether the compiler implicitly links with -lc since on some
13380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13381 # to ld, don't add -lc before -lgcc.
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13383 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13384 $RM conftest*
13385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13386
13387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13388 (eval $ac_compile) 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13391 test $ac_status = 0; } 2>conftest.err; then
13392 soname=conftest
13393 lib=conftest
13394 libobjs=conftest.$ac_objext
13395 deplibs=
13396 wl=$lt_prog_compiler_wl_CXX
13397 pic_flag=$lt_prog_compiler_pic_CXX
13398 compiler_flags=-v
13399 linker_flags=-v
13400 verstring=
13401 output_objdir=.
13402 libname=conftest
13403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13404 allow_undefined_flag_CXX=
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }
13410 then
13411 archive_cmds_need_lc_CXX=no
13412 else
13413 archive_cmds_need_lc_CXX=yes
13414 fi
13415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13416 else
13417 cat conftest.err 1>&5
13418 fi
13419 $RM conftest*
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13421 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13422 ;;
13423 esac
13424 fi
13425 ;;
13426 esac
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
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13492 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13493
13494 library_names_spec=
13495 libname_spec='lib$name'
13496 soname_spec=
13497 shrext_cmds=".so"
13498 postinstall_cmds=
13499 postuninstall_cmds=
13500 finish_cmds=
13501 finish_eval=
13502 shlibpath_var=
13503 shlibpath_overrides_runpath=unknown
13504 version_type=none
13505 dynamic_linker="$host_os ld.so"
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13507 need_lib_prefix=unknown
13508 hardcode_into_libs=no
13509
13510 # when you set need_version to no, make sure it does not cause -set_version
13511 # flags to be left without arguments
13512 need_version=unknown
13513
13514 case $host_os in
13515 aix3*)
13516 version_type=linux
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13518 shlibpath_var=LIBPATH
13519
13520 # AIX 3 has no versioning support, so we append a major version to the name.
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 ;;
13523
13524 aix[4-9]*)
13525 version_type=linux
13526 need_lib_prefix=no
13527 need_version=no
13528 hardcode_into_libs=yes
13529 if test "$host_cpu" = ia64; then
13530 # AIX 5 supports IA64
13531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 else
13534 # With GCC up to 2.95.x, collect2 would create an import file
13535 # for dependence libraries. The import file would start with
13536 # the line `#! .'. This would cause the generated library to
13537 # depend on `.', always an invalid library. This was fixed in
13538 # development snapshots of GCC prior to 3.0.
13539 case $host_os in
13540 aix4 | aix4.[01] | aix4.[01].*)
13541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13542 echo ' yes '
13543 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13544 :
13545 else
13546 can_build_shared=no
13547 fi
13548 ;;
13549 esac
13550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13551 # soname into executable. Probably we can add versioning support to
13552 # collect2, so additional links can be useful in future.
13553 if test "$aix_use_runtimelinking" = yes; then
13554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13555 # instead of lib<name>.a to let people know that these are not
13556 # typical AIX shared libraries.
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 else
13559 # We preserve .a as extension for shared libraries through AIX4.2
13560 # and later when we are not doing run time linking.
13561 library_names_spec='${libname}${release}.a $libname.a'
13562 soname_spec='${libname}${release}${shared_ext}$major'
13563 fi
13564 shlibpath_var=LIBPATH
13565 fi
13566 ;;
13567
13568 amigaos*)
13569 case $host_cpu in
13570 powerpc)
13571 # Since July 2007 AmigaOS4 officially supports .so libraries.
13572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 ;;
13575 m68k)
13576 library_names_spec='$libname.ixlibrary $libname.a'
13577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13578 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'
13579 ;;
13580 esac
13581 ;;
13582
13583 beos*)
13584 library_names_spec='${libname}${shared_ext}'
13585 dynamic_linker="$host_os ld.so"
13586 shlibpath_var=LIBRARY_PATH
13587 ;;
13588
13589 bsdi[45]*)
13590 version_type=linux
13591 need_version=no
13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13593 soname_spec='${libname}${release}${shared_ext}$major'
13594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13598 # the default ld.so.conf also contains /usr/contrib/lib and
13599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13600 # libtool to hard-code these into programs
13601 ;;
13602
13603 cygwin* | mingw* | pw32* | cegcc*)
13604 version_type=windows
13605 shrext_cmds=".dll"
13606 need_version=no
13607 need_lib_prefix=no
13608
13609 case $GCC,$host_os in
13610 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13611 library_names_spec='$libname.dll.a'
13612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13613 postinstall_cmds='base_file=`basename \${file}`~
13614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13615 dldir=$destdir/`dirname \$dlpath`~
13616 test -d \$dldir || mkdir -p \$dldir~
13617 $install_prog $dir/$dlname \$dldir/$dlname~
13618 chmod a+x \$dldir/$dlname~
13619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13621 fi'
13622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13623 dlpath=$dir/\$dldll~
13624 $RM \$dlpath'
13625 shlibpath_overrides_runpath=yes
13626
13627 case $host_os in
13628 cygwin*)
13629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13632 ;;
13633 mingw* | cegcc*)
13634 # MinGW DLLs use traditional 'lib' prefix
13635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13636 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13638 # It is most probably a Windows format PATH printed by
13639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13640 # path with ; separators, and with drive letters. We can handle the
13641 # drive letters (cygwin fileutils understands them), so leave them,
13642 # especially as we might pass files found there to a mingw objdump,
13643 # which wouldn't understand a cygwinified path. Ahh.
13644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13645 else
13646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13647 fi
13648 ;;
13649 pw32*)
13650 # pw32 DLLs use 'pw' prefix rather than 'lib'
13651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13652 ;;
13653 esac
13654 ;;
13655
13656 *)
13657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13658 ;;
13659 esac
13660 dynamic_linker='Win32 ld.exe'
13661 # FIXME: first we should search . and the directory the executable is in
13662 shlibpath_var=PATH
13663 ;;
13664
13665 darwin* | rhapsody*)
13666 dynamic_linker="$host_os dyld"
13667 version_type=darwin
13668 need_lib_prefix=no
13669 need_version=no
13670 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13671 soname_spec='${libname}${release}${major}$shared_ext'
13672 shlibpath_overrides_runpath=yes
13673 shlibpath_var=DYLD_LIBRARY_PATH
13674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13675
13676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13677 ;;
13678
13679 dgux*)
13680 version_type=linux
13681 need_lib_prefix=no
13682 need_version=no
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 ;;
13687
13688 freebsd1*)
13689 dynamic_linker=no
13690 ;;
13691
13692 freebsd* | dragonfly*)
13693 # DragonFly does not have aout. When/if they implement a new
13694 # versioning mechanism, adjust this.
13695 if test -x /usr/bin/objformat; then
13696 objformat=`/usr/bin/objformat`
13697 else
13698 case $host_os in
13699 freebsd[123]*) objformat=aout ;;
13700 *) objformat=elf ;;
13701 esac
13702 fi
13703 version_type=freebsd-$objformat
13704 case $version_type in
13705 freebsd-elf*)
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13707 need_version=no
13708 need_lib_prefix=no
13709 ;;
13710 freebsd-*)
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13712 need_version=yes
13713 ;;
13714 esac
13715 shlibpath_var=LD_LIBRARY_PATH
13716 case $host_os in
13717 freebsd2*)
13718 shlibpath_overrides_runpath=yes
13719 ;;
13720 freebsd3.[01]* | freebsdelf3.[01]*)
13721 shlibpath_overrides_runpath=yes
13722 hardcode_into_libs=yes
13723 ;;
13724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13726 shlibpath_overrides_runpath=no
13727 hardcode_into_libs=yes
13728 ;;
13729 *) # from 4.6 on, and DragonFly
13730 shlibpath_overrides_runpath=yes
13731 hardcode_into_libs=yes
13732 ;;
13733 esac
13734 ;;
13735
13736 gnu*)
13737 version_type=linux
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 hardcode_into_libs=yes
13744 ;;
13745
13746 hpux9* | hpux10* | hpux11*)
13747 # Give a soname corresponding to the major version so that dld.sl refuses to
13748 # link against other versions.
13749 version_type=sunos
13750 need_lib_prefix=no
13751 need_version=no
13752 case $host_cpu in
13753 ia64*)
13754 shrext_cmds='.so'
13755 hardcode_into_libs=yes
13756 dynamic_linker="$host_os dld.so"
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
13762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13763 else
13764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13765 fi
13766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13767 ;;
13768 hppa*64*)
13769 shrext_cmds='.sl'
13770 hardcode_into_libs=yes
13771 dynamic_linker="$host_os dld.sl"
13772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13778 ;;
13779 *)
13780 shrext_cmds='.sl'
13781 dynamic_linker="$host_os dld.sl"
13782 shlibpath_var=SHLIB_PATH
13783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 ;;
13787 esac
13788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13789 postinstall_cmds='chmod 555 $lib'
13790 ;;
13791
13792 interix[3-9]*)
13793 version_type=linux
13794 need_lib_prefix=no
13795 need_version=no
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 shlibpath_overrides_runpath=no
13801 hardcode_into_libs=yes
13802 ;;
13803
13804 irix5* | irix6* | nonstopux*)
13805 case $host_os in
13806 nonstopux*) version_type=nonstopux ;;
13807 *)
13808 if test "$lt_cv_prog_gnu_ld" = yes; then
13809 version_type=linux
13810 else
13811 version_type=irix
13812 fi ;;
13813 esac
13814 need_lib_prefix=no
13815 need_version=no
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13818 case $host_os in
13819 irix5* | nonstopux*)
13820 libsuff= shlibsuff=
13821 ;;
13822 *)
13823 case $LD in # libtool.m4 will add one of these switches to LD
13824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13825 libsuff= shlibsuff= libmagic=32-bit;;
13826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13827 libsuff=32 shlibsuff=N32 libmagic=N32;;
13828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13830 *) libsuff= shlibsuff= libmagic=never-match;;
13831 esac
13832 ;;
13833 esac
13834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13835 shlibpath_overrides_runpath=no
13836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13838 hardcode_into_libs=yes
13839 ;;
13840
13841 # No shared lib support for Linux oldld, aout, or coff.
13842 linux*oldld* | linux*aout* | linux*coff*)
13843 dynamic_linker=no
13844 ;;
13845
13846 # This must be Linux ELF.
13847 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13848 version_type=linux
13849 need_lib_prefix=no
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=no
13856 # Some binutils ld are patched to set DT_RUNPATH
13857 save_LDFLAGS=$LDFLAGS
13858 save_libdir=$libdir
13859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863
13864 int
13865 main ()
13866 {
13867
13868 ;
13869 return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_cxx_try_link "$LINENO"; then :
13873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13874 shlibpath_overrides_runpath=yes
13875 fi
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 LDFLAGS=$save_LDFLAGS
13880 libdir=$save_libdir
13881
13882 # This implies no fast_install, which is unacceptable.
13883 # Some rework will be needed to allow for fast_install
13884 # before this can be enabled.
13885 hardcode_into_libs=yes
13886
13887 # Append ld.so.conf contents to the search path
13888 if test -f /etc/ld.so.conf; then
13889 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' ' '`
13890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13891 fi
13892
13893 # We used to test for /lib/ld.so.1 and disable shared libraries on
13894 # powerpc, because MkLinux only supported shared libraries with the
13895 # GNU dynamic linker. Since this was broken with cross compilers,
13896 # most powerpc-linux boxes support dynamic linking these days and
13897 # people can always --disable-shared, the test was removed, and we
13898 # assume the GNU/Linux dynamic linker is in use.
13899 dynamic_linker='GNU/Linux ld.so'
13900 ;;
13901
13902 netbsdelf*-gnu)
13903 version_type=linux
13904 need_lib_prefix=no
13905 need_version=no
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 shlibpath_overrides_runpath=no
13910 hardcode_into_libs=yes
13911 dynamic_linker='NetBSD ld.elf_so'
13912 ;;
13913
13914 netbsd*)
13915 version_type=sunos
13916 need_lib_prefix=no
13917 need_version=no
13918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13921 dynamic_linker='NetBSD (a.out) ld.so'
13922 else
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 dynamic_linker='NetBSD ld.elf_so'
13926 fi
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=yes
13929 hardcode_into_libs=yes
13930 ;;
13931
13932 newsos6)
13933 version_type=linux
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=yes
13937 ;;
13938
13939 *nto* | *qnx*)
13940 version_type=qnx
13941 need_lib_prefix=no
13942 need_version=no
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=no
13947 hardcode_into_libs=yes
13948 dynamic_linker='ldqnx.so'
13949 ;;
13950
13951 openbsd*)
13952 version_type=sunos
13953 sys_lib_dlsearch_path_spec="/usr/lib"
13954 need_lib_prefix=no
13955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13956 case $host_os in
13957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13958 *) need_version=no ;;
13959 esac
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13964 case $host_os in
13965 openbsd2.[89] | openbsd2.[89].*)
13966 shlibpath_overrides_runpath=no
13967 ;;
13968 *)
13969 shlibpath_overrides_runpath=yes
13970 ;;
13971 esac
13972 else
13973 shlibpath_overrides_runpath=yes
13974 fi
13975 ;;
13976
13977 os2*)
13978 libname_spec='$name'
13979 shrext_cmds=".dll"
13980 need_lib_prefix=no
13981 library_names_spec='$libname${shared_ext} $libname.a'
13982 dynamic_linker='OS/2 ld.exe'
13983 shlibpath_var=LIBPATH
13984 ;;
13985
13986 osf3* | osf4* | osf5*)
13987 version_type=osf
13988 need_lib_prefix=no
13989 need_version=no
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13995 ;;
13996
13997 rdos*)
13998 dynamic_linker=no
13999 ;;
14000
14001 solaris*)
14002 version_type=linux
14003 need_lib_prefix=no
14004 need_version=no
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14008 shlibpath_overrides_runpath=yes
14009 hardcode_into_libs=yes
14010 # ldd complains unless libraries are executable
14011 postinstall_cmds='chmod +x $lib'
14012 ;;
14013
14014 sunos4*)
14015 version_type=sunos
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=yes
14020 if test "$with_gnu_ld" = yes; then
14021 need_lib_prefix=no
14022 fi
14023 need_version=yes
14024 ;;
14025
14026 sysv4 | sysv4.3*)
14027 version_type=linux
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 case $host_vendor in
14032 sni)
14033 shlibpath_overrides_runpath=no
14034 need_lib_prefix=no
14035 runpath_var=LD_RUN_PATH
14036 ;;
14037 siemens)
14038 need_lib_prefix=no
14039 ;;
14040 motorola)
14041 need_lib_prefix=no
14042 need_version=no
14043 shlibpath_overrides_runpath=no
14044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14045 ;;
14046 esac
14047 ;;
14048
14049 sysv4*MP*)
14050 if test -d /usr/nec ;then
14051 version_type=linux
14052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14053 soname_spec='$libname${shared_ext}.$major'
14054 shlibpath_var=LD_LIBRARY_PATH
14055 fi
14056 ;;
14057
14058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14059 version_type=freebsd-elf
14060 need_lib_prefix=no
14061 need_version=no
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14067 if test "$with_gnu_ld" = yes; then
14068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14069 else
14070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14071 case $host_os in
14072 sco3.2v5*)
14073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14074 ;;
14075 esac
14076 fi
14077 sys_lib_dlsearch_path_spec='/usr/lib'
14078 ;;
14079
14080 tpf*)
14081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14082 version_type=linux
14083 need_lib_prefix=no
14084 need_version=no
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 shlibpath_var=LD_LIBRARY_PATH
14087 shlibpath_overrides_runpath=no
14088 hardcode_into_libs=yes
14089 ;;
14090
14091 uts4*)
14092 version_type=linux
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 ;;
14097
14098 *)
14099 dynamic_linker=no
14100 ;;
14101 esac
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14103 $as_echo "$dynamic_linker" >&6; }
14104 test "$dynamic_linker" = no && can_build_shared=no
14105
14106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14107 if test "$GCC" = yes; then
14108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14109 fi
14110
14111 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14113 fi
14114 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14116 fi
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14155 hardcode_action_CXX=
14156 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14157 test -n "$runpath_var_CXX" ||
14158 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14159
14160 # We can hardcode non-existent directories.
14161 if test "$hardcode_direct_CXX" != no &&
14162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14163 # have to relink, otherwise we might link with an installed library
14164 # when we should be linking with a yet-to-be-installed one
14165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14166 test "$hardcode_minus_L_CXX" != no; then
14167 # Linking always hardcodes the temporary library directory.
14168 hardcode_action_CXX=relink
14169 else
14170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14171 hardcode_action_CXX=immediate
14172 fi
14173 else
14174 # We cannot hardcode anything, or else we can only hardcode existing
14175 # directories.
14176 hardcode_action_CXX=unsupported
14177 fi
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14179 $as_echo "$hardcode_action_CXX" >&6; }
14180
14181 if test "$hardcode_action_CXX" = relink ||
14182 test "$inherit_rpath_CXX" = yes; then
14183 # Fast installation is not supported
14184 enable_fast_install=no
14185 elif test "$shlibpath_overrides_runpath" = yes ||
14186 test "$enable_shared" = no; then
14187 # Fast installation is not necessary
14188 enable_fast_install=needless
14189 fi
14190
14191
14192
14193
14194
14195
14196
14197 fi # test -n "$compiler"
14198
14199 CC=$lt_save_CC
14200 LDCXX=$LD
14201 LD=$lt_save_LD
14202 GCC=$lt_save_GCC
14203 with_gnu_ld=$lt_save_with_gnu_ld
14204 lt_cv_path_LDCXX=$lt_cv_path_LD
14205 lt_cv_path_LD=$lt_save_path_LD
14206 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14207 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14208 fi # test "$_lt_caught_CXX_error" != yes
14209
14210 ac_ext=c
14211 ac_cpp='$CPP $CPPFLAGS'
14212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14215
14216
14217 ac_ext=mm
14218 ac_cpp='$OBJCXXCPP $CPPFLAGS'
14219 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14220 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14221 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14222 if test -n "$ac_tool_prefix"; then
14223 for ac_prog in g++ objc++ objcxx c++ CXX
14224 do
14225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 if test -n "$OBJCXX"; then
14233 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14242 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14245 fi
14246 done
14247 done
14248 IFS=$as_save_IFS
14249
14250 fi
14251 fi
14252 OBJCXX=$ac_cv_prog_OBJCXX
14253 if test -n "$OBJCXX"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
14255 $as_echo "$OBJCXX" >&6; }
14256 else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260
14261
14262 test -n "$OBJCXX" && break
14263 done
14264 fi
14265 if test -z "$OBJCXX"; then
14266 ac_ct_OBJCXX=$OBJCXX
14267 for ac_prog in g++ objc++ objcxx c++ CXX
14268 do
14269 # Extract the first word of "$ac_prog", so it can be a program name with args.
14270 set dummy $ac_prog; ac_word=$2
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14272 $as_echo_n "checking for $ac_word... " >&6; }
14273 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 if test -n "$ac_ct_OBJCXX"; then
14277 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
14278 else
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282 IFS=$as_save_IFS
14283 test -z "$as_dir" && as_dir=.
14284 for ac_exec_ext in '' $ac_executable_extensions; do
14285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14286 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
14287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288 break 2
14289 fi
14290 done
14291 done
14292 IFS=$as_save_IFS
14293
14294 fi
14295 fi
14296 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
14297 if test -n "$ac_ct_OBJCXX"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
14299 $as_echo "$ac_ct_OBJCXX" >&6; }
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14303 fi
14304
14305
14306 test -n "$ac_ct_OBJCXX" && break
14307 done
14308
14309 if test "x$ac_ct_OBJCXX" = x; then
14310 OBJCXX="g++"
14311 else
14312 case $cross_compiling:$ac_tool_warned in
14313 yes:)
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14316 ac_tool_warned=yes ;;
14317 esac
14318 OBJCXX=$ac_ct_OBJCXX
14319 fi
14320 fi
14321
14322 # Provide some information about the compiler.
14323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
14324 set X $ac_compile
14325 ac_compiler=$2
14326 for ac_option in --version -v -V -qversion; do
14327 { { ac_try="$ac_compiler $ac_option >&5"
14328 case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331 esac
14332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14333 $as_echo "$ac_try_echo"; } >&5
14334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14335 ac_status=$?
14336 if test -s conftest.err; then
14337 sed '10a\
14338 ... rest of stderr output deleted ...
14339 10q' conftest.err >conftest.er1
14340 cat conftest.er1 >&5
14341 fi
14342 rm -f conftest.er1 conftest.err
14343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14344 test $ac_status = 0; }
14345 done
14346
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
14348 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
14349 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354
14355 int
14356 main ()
14357 {
14358 #ifndef __GNUC__
14359 choke me
14360 #endif
14361
14362 ;
14363 return 0;
14364 }
14365 _ACEOF
14366 if ac_fn_objcxx_try_compile "$LINENO"; then :
14367 ac_compiler_gnu=yes
14368 else
14369 ac_compiler_gnu=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
14373
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
14376 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
14377 if test $ac_compiler_gnu = yes; then
14378 GOBJCXX=yes
14379 else
14380 GOBJCXX=
14381 fi
14382 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
14383 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
14385 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
14386 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
14390 ac_objcxx_werror_flag=yes
14391 ac_cv_prog_objcxx_g=no
14392 OBJCXXFLAGS="-g"
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395
14396 int
14397 main ()
14398 {
14399
14400 ;
14401 return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_objcxx_try_compile "$LINENO"; then :
14405 ac_cv_prog_objcxx_g=yes
14406 else
14407 OBJCXXFLAGS=""
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410
14411 int
14412 main ()
14413 {
14414
14415 ;
14416 return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_objcxx_try_compile "$LINENO"; then :
14420
14421 else
14422 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
14423 OBJCXXFLAGS="-g"
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426
14427 int
14428 main ()
14429 {
14430
14431 ;
14432 return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_objcxx_try_compile "$LINENO"; then :
14436 ac_cv_prog_objcxx_g=yes
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 fi
14440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
14444 fi
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
14446 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
14447 if test "$ac_test_OBJCXXFLAGS" = set; then
14448 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
14449 elif test $ac_cv_prog_objcxx_g = yes; then
14450 if test "$GOBJCXX" = yes; then
14451 OBJCXXFLAGS="-g -O2"
14452 else
14453 OBJCXXFLAGS="-g"
14454 fi
14455 else
14456 if test "$GOBJCXX" = yes; then
14457 OBJCXXFLAGS="-O2"
14458 else
14459 OBJCXXFLAGS=
14460 fi
14461 fi
14462 ac_ext=c
14463 ac_cpp='$CPP $CPPFLAGS'
14464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14467
14468 ac_ext=cpp
14469 ac_cpp='$CXXCPP $CPPFLAGS'
14470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14473
14474
14475 # Check whether --enable-universal-binary was given.
14476 if test "${enable_universal_binary+set}" = set; then :
14477 enableval=$enable_universal_binary;
14478 case $enableval in #(
14479 no) :
14480 ;; #(
14481 *) :
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
14484 $as_echo_n "checking for universal binary support... " >&6; }
14485 case $host_vendor in #(
14486 apple) :
14487
14488 case $host_cpu in #(
14489 armv6|i386|x86_64) :
14490
14491 for cy_arch in armv6 i386 x86_64; do
14492 cy_save_CXXFLAGS=$CXXFLAGS
14493
14494 for element in "-arch $cy_arch"; do
14495 haveit=
14496 for x in $CXXFLAGS; do
14497
14498 acl_save_prefix="$prefix"
14499 prefix="$acl_final_prefix"
14500 acl_save_exec_prefix="$exec_prefix"
14501 exec_prefix="$acl_final_exec_prefix"
14502 eval x=\"$x\"
14503 exec_prefix="$acl_save_exec_prefix"
14504 prefix="$acl_save_prefix"
14505
14506 if test "X$x" = "X$element"; then
14507 haveit=yes
14508 break
14509 fi
14510 done
14511 if test -z "$haveit"; then
14512 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14513 fi
14514 done
14515
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518
14519 int
14520 main ()
14521 {
14522
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_cxx_try_link "$LINENO"; then :
14528
14529
14530 for element in $cy_arch; do
14531 haveit=
14532 for x in $cy_arches; do
14533
14534 acl_save_prefix="$prefix"
14535 prefix="$acl_final_prefix"
14536 acl_save_exec_prefix="$exec_prefix"
14537 exec_prefix="$acl_final_exec_prefix"
14538 eval x=\"$x\"
14539 exec_prefix="$acl_save_exec_prefix"
14540 prefix="$acl_save_prefix"
14541
14542 if test "X$x" = "X$element"; then
14543 haveit=yes
14544 break
14545 fi
14546 done
14547 if test -z "$haveit"; then
14548 cy_arches="${cy_arches}${cy_arches:+ }$element"
14549 fi
14550 done
14551
14552
14553 for element in "-arch $cy_arch"; do
14554 haveit=
14555 for x in $CFLAGS; do
14556
14557 acl_save_prefix="$prefix"
14558 prefix="$acl_final_prefix"
14559 acl_save_exec_prefix="$exec_prefix"
14560 exec_prefix="$acl_final_exec_prefix"
14561 eval x=\"$x\"
14562 exec_prefix="$acl_save_exec_prefix"
14563 prefix="$acl_save_prefix"
14564
14565 if test "X$x" = "X$element"; then
14566 haveit=yes
14567 break
14568 fi
14569 done
14570 if test -z "$haveit"; then
14571 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14572 fi
14573 done
14574
14575
14576 for element in "-arch $cy_arch"; do
14577 haveit=
14578 for x in $LDFLAGS; do
14579
14580 acl_save_prefix="$prefix"
14581 prefix="$acl_final_prefix"
14582 acl_save_exec_prefix="$exec_prefix"
14583 exec_prefix="$acl_final_exec_prefix"
14584 eval x=\"$x\"
14585 exec_prefix="$acl_save_exec_prefix"
14586 prefix="$acl_save_prefix"
14587
14588 if test "X$x" = "X$element"; then
14589 haveit=yes
14590 break
14591 fi
14592 done
14593 if test -z "$haveit"; then
14594 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
14595 fi
14596 done
14597
14598
14599 for element in "-arch $cy_arch"; do
14600 haveit=
14601 for x in $OBJCXXFLAGS; do
14602
14603 acl_save_prefix="$prefix"
14604 prefix="$acl_final_prefix"
14605 acl_save_exec_prefix="$exec_prefix"
14606 exec_prefix="$acl_final_exec_prefix"
14607 eval x=\"$x\"
14608 exec_prefix="$acl_save_exec_prefix"
14609 prefix="$acl_save_prefix"
14610
14611 if test "X$x" = "X$element"; then
14612 haveit=yes
14613 break
14614 fi
14615 done
14616 if test -z "$haveit"; then
14617 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
14618 fi
14619 done
14620
14621
14622 else
14623
14624 CXXFLAGS=$cy_save_CXXFLAGS
14625
14626 fi
14627 rm -f core conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14629 done
14630 ;; #(
14631 *) :
14632 ;;
14633 esac
14634 ;; #(
14635 *) :
14636 ;;
14637 esac
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
14639 $as_echo "${cy_arches-no}" >&6; }
14640 ;;
14641 esac
14642
14643 else
14644
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
14646 $as_echo_n "checking for universal binary support... " >&6; }
14647 case $host_vendor in #(
14648 apple) :
14649
14650 case $host_cpu in #(
14651 armv6|i386|x86_64) :
14652
14653 for cy_arch in armv6 i386 x86_64; do
14654 cy_save_CXXFLAGS=$CXXFLAGS
14655
14656 for element in "-arch $cy_arch"; do
14657 haveit=
14658 for x in $CXXFLAGS; do
14659
14660 acl_save_prefix="$prefix"
14661 prefix="$acl_final_prefix"
14662 acl_save_exec_prefix="$exec_prefix"
14663 exec_prefix="$acl_final_exec_prefix"
14664 eval x=\"$x\"
14665 exec_prefix="$acl_save_exec_prefix"
14666 prefix="$acl_save_prefix"
14667
14668 if test "X$x" = "X$element"; then
14669 haveit=yes
14670 break
14671 fi
14672 done
14673 if test -z "$haveit"; then
14674 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14675 fi
14676 done
14677
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680
14681 int
14682 main ()
14683 {
14684
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_cxx_try_link "$LINENO"; then :
14690
14691
14692 for element in $cy_arch; do
14693 haveit=
14694 for x in $cy_arches; do
14695
14696 acl_save_prefix="$prefix"
14697 prefix="$acl_final_prefix"
14698 acl_save_exec_prefix="$exec_prefix"
14699 exec_prefix="$acl_final_exec_prefix"
14700 eval x=\"$x\"
14701 exec_prefix="$acl_save_exec_prefix"
14702 prefix="$acl_save_prefix"
14703
14704 if test "X$x" = "X$element"; then
14705 haveit=yes
14706 break
14707 fi
14708 done
14709 if test -z "$haveit"; then
14710 cy_arches="${cy_arches}${cy_arches:+ }$element"
14711 fi
14712 done
14713
14714
14715 for element in "-arch $cy_arch"; do
14716 haveit=
14717 for x in $CFLAGS; do
14718
14719 acl_save_prefix="$prefix"
14720 prefix="$acl_final_prefix"
14721 acl_save_exec_prefix="$exec_prefix"
14722 exec_prefix="$acl_final_exec_prefix"
14723 eval x=\"$x\"
14724 exec_prefix="$acl_save_exec_prefix"
14725 prefix="$acl_save_prefix"
14726
14727 if test "X$x" = "X$element"; then
14728 haveit=yes
14729 break
14730 fi
14731 done
14732 if test -z "$haveit"; then
14733 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14734 fi
14735 done
14736
14737
14738 for element in "-arch $cy_arch"; do
14739 haveit=
14740 for x in $LDFLAGS; do
14741
14742 acl_save_prefix="$prefix"
14743 prefix="$acl_final_prefix"
14744 acl_save_exec_prefix="$exec_prefix"
14745 exec_prefix="$acl_final_exec_prefix"
14746 eval x=\"$x\"
14747 exec_prefix="$acl_save_exec_prefix"
14748 prefix="$acl_save_prefix"
14749
14750 if test "X$x" = "X$element"; then
14751 haveit=yes
14752 break
14753 fi
14754 done
14755 if test -z "$haveit"; then
14756 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
14757 fi
14758 done
14759
14760
14761 for element in "-arch $cy_arch"; do
14762 haveit=
14763 for x in $OBJCXXFLAGS; do
14764
14765 acl_save_prefix="$prefix"
14766 prefix="$acl_final_prefix"
14767 acl_save_exec_prefix="$exec_prefix"
14768 exec_prefix="$acl_final_exec_prefix"
14769 eval x=\"$x\"
14770 exec_prefix="$acl_save_exec_prefix"
14771 prefix="$acl_save_prefix"
14772
14773 if test "X$x" = "X$element"; then
14774 haveit=yes
14775 break
14776 fi
14777 done
14778 if test -z "$haveit"; then
14779 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
14780 fi
14781 done
14782
14783
14784 else
14785
14786 CXXFLAGS=$cy_save_CXXFLAGS
14787
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 done
14792 ;; #(
14793 *) :
14794 ;;
14795 esac
14796 ;; #(
14797 *) :
14798 ;;
14799 esac
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
14801 $as_echo "${cy_arches-no}" >&6; }
14802
14803 fi
14804
14805
14806 # Check whether --with-frameworks was given.
14807 if test "${with_frameworks+set}" = set; then :
14808 withval=$with_frameworks;
14809 for cy_framework in $withval; do
14810
14811 for element in -F$cy_framework; do
14812 haveit=
14813 for x in $CFLAGS; do
14814
14815 acl_save_prefix="$prefix"
14816 prefix="$acl_final_prefix"
14817 acl_save_exec_prefix="$exec_prefix"
14818 exec_prefix="$acl_final_exec_prefix"
14819 eval x=\"$x\"
14820 exec_prefix="$acl_save_exec_prefix"
14821 prefix="$acl_save_prefix"
14822
14823 if test "X$x" = "X$element"; then
14824 haveit=yes
14825 break
14826 fi
14827 done
14828 if test -z "$haveit"; then
14829 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
14830 fi
14831 done
14832
14833
14834 for element in -F$cy_framework; do
14835 haveit=
14836 for x in $CXXFLAGS; do
14837
14838 acl_save_prefix="$prefix"
14839 prefix="$acl_final_prefix"
14840 acl_save_exec_prefix="$exec_prefix"
14841 exec_prefix="$acl_final_exec_prefix"
14842 eval x=\"$x\"
14843 exec_prefix="$acl_save_exec_prefix"
14844 prefix="$acl_save_prefix"
14845
14846 if test "X$x" = "X$element"; then
14847 haveit=yes
14848 break
14849 fi
14850 done
14851 if test -z "$haveit"; then
14852 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14853 fi
14854 done
14855
14856
14857 for element in -F$cy_framework; do
14858 haveit=
14859 for x in $OBJCCXXFLAGS; do
14860
14861 acl_save_prefix="$prefix"
14862 prefix="$acl_final_prefix"
14863 acl_save_exec_prefix="$exec_prefix"
14864 exec_prefix="$acl_final_exec_prefix"
14865 eval x=\"$x\"
14866 exec_prefix="$acl_save_exec_prefix"
14867 prefix="$acl_save_prefix"
14868
14869 if test "X$x" = "X$element"; then
14870 haveit=yes
14871 break
14872 fi
14873 done
14874 if test -z "$haveit"; then
14875 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14876 fi
14877 done
14878
14879 done
14880
14881 fi
14882
14883
14884 apr_found="no"
14885
14886 if test "$target_os" = "os2-emx"; then
14887 # Scripts don't pass test -x on OS/2
14888 TEST_X="test -f"
14889 else
14890 TEST_X="test -x"
14891 fi
14892
14893 acceptable_majors="1"
14894
14895 apr_temp_acceptable_apr_config=""
14896 for apr_temp_major in $acceptable_majors
14897 do
14898 case $apr_temp_major in
14899 0)
14900 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14901 ;;
14902 *)
14903 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14904 ;;
14905 esac
14906 done
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14909 $as_echo_n "checking for APR... " >&6; }
14910
14911 # Check whether --with-apr was given.
14912 if test "${with_apr+set}" = set; then :
14913 withval=$with_apr;
14914 if test "$withval" = "no" || test "$withval" = "yes"; then
14915 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
14916 fi
14917
14918 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14919 do
14920 for lookdir in "$withval/bin" "$withval"
14921 do
14922 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14923 apr_config="$lookdir/$apr_temp_apr_config_file"
14924
14925 apr_found="yes"
14926 break 2
14927 fi
14928 done
14929 done
14930
14931 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14932 apr_config="$withval"
14933 apr_found="yes"
14934 fi
14935
14936 if test "$apr_found" != "yes"; then
14937 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
14938 fi
14939
14940 else
14941
14942 if test -n "1" && test "1" = "1"; then
14943 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14944 do
14945 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14946 apr_config="$apr_temp_apr_config_file"
14947
14948 apr_found="yes"
14949 break
14950 else
14951 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14952 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14953 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14954
14955 apr_found="yes"
14956 break 2
14957 fi
14958 done
14959 fi
14960 done
14961 fi
14962 if test "$apr_found" = "no" && test -d ""; then
14963 apr_temp_abs_srcdir="`cd && pwd`"
14964 apr_found="reconfig"
14965 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14966 case $apr_bundled_major in
14967 "")
14968 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
14969 ;;
14970 0)
14971 apr_temp_apr_config_file="apr-config"
14972 ;;
14973 *)
14974 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14975 ;;
14976 esac
14977 if test -n ""; then
14978 apr_config="/$apr_temp_apr_config_file"
14979 else
14980 apr_config="/$apr_temp_apr_config_file"
14981 fi
14982 fi
14983
14984 fi
14985
14986
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14988 $as_echo "$apr_found" >&6; }
14989
14990 case $apr_found in #(
14991 yes) :
14992
14993
14994 for element in `$apr_config --includes`; do
14995 haveit=
14996 for x in $CPPFLAGS; do
14997
14998 acl_save_prefix="$prefix"
14999 prefix="$acl_final_prefix"
15000 acl_save_exec_prefix="$exec_prefix"
15001 exec_prefix="$acl_final_exec_prefix"
15002 eval x=\"$x\"
15003 exec_prefix="$acl_save_exec_prefix"
15004 prefix="$acl_save_prefix"
15005
15006 if test "X$x" = "X$element"; then
15007 haveit=yes
15008 break
15009 fi
15010 done
15011 if test -z "$haveit"; then
15012 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15013 fi
15014 done
15015
15016 LTLIBAPR=`$apr_config --link-libtool`
15017
15018 ;; #(
15019 *) :
15020 as_fn_error $? "You need apr" "$LINENO" 5 ;;
15021 esac
15022
15023
15024 # Check whether --enable-javascript was given.
15025 if test "${enable_javascript+set}" = set; then :
15026 enableval=$enable_javascript;
15027 case $enableval in #(
15028 yes) :
15029
15030
15031
15032 pkg_failed=no
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15034 $as_echo_n "checking for WEBKIT... " >&6; }
15035
15036 if test -n "$WEBKIT_CFLAGS"; then
15037 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15038 elif test -n "$PKG_CONFIG"; then
15039 if test -n "$PKG_CONFIG" && \
15040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15041 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15042 ac_status=$?
15043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15044 test $ac_status = 0; }; then
15045 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15046 else
15047 pkg_failed=yes
15048 fi
15049 else
15050 pkg_failed=untried
15051 fi
15052 if test -n "$WEBKIT_LIBS"; then
15053 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15054 elif test -n "$PKG_CONFIG"; then
15055 if test -n "$PKG_CONFIG" && \
15056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15057 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15058 ac_status=$?
15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060 test $ac_status = 0; }; then
15061 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15062 else
15063 pkg_failed=yes
15064 fi
15065 else
15066 pkg_failed=untried
15067 fi
15068
15069
15070
15071 if test $pkg_failed = yes; then
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15074
15075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15076 _pkg_short_errors_supported=yes
15077 else
15078 _pkg_short_errors_supported=no
15079 fi
15080 if test $_pkg_short_errors_supported = yes; then
15081 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
15082 else
15083 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
15084 fi
15085 # Put the nasty error message in config.log where it belongs
15086 echo "$WEBKIT_PKG_ERRORS" >&5
15087
15088
15089
15090 pkg_failed=no
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15092 $as_echo_n "checking for WEBKIT... " >&6; }
15093
15094 if test -n "$WEBKIT_CFLAGS"; then
15095 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15096 elif test -n "$PKG_CONFIG"; then
15097 if test -n "$PKG_CONFIG" && \
15098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15099 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15100 ac_status=$?
15101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15102 test $ac_status = 0; }; then
15103 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15104 else
15105 pkg_failed=yes
15106 fi
15107 else
15108 pkg_failed=untried
15109 fi
15110 if test -n "$WEBKIT_LIBS"; then
15111 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15112 elif test -n "$PKG_CONFIG"; then
15113 if test -n "$PKG_CONFIG" && \
15114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15115 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15118 test $ac_status = 0; }; then
15119 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15120 else
15121 pkg_failed=yes
15122 fi
15123 else
15124 pkg_failed=untried
15125 fi
15126
15127
15128
15129 if test $pkg_failed = yes; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131 $as_echo "no" >&6; }
15132
15133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15134 _pkg_short_errors_supported=yes
15135 else
15136 _pkg_short_errors_supported=no
15137 fi
15138 if test $_pkg_short_errors_supported = yes; then
15139 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
15140 else
15141 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
15142 fi
15143 # Put the nasty error message in config.log where it belongs
15144 echo "$WEBKIT_PKG_ERRORS" >&5
15145
15146
15147
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15149 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15150 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15152 else
15153
15154 ac_check_framework_save_LIBS=$LIBS
15155 LIBS="-framework JavaScriptCore $LIBS"
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158
15159 #include <JavaScriptCore/JSBase.h>
15160
15161 int
15162 main ()
15163 {
15164 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_cxx_try_link "$LINENO"; then :
15170
15171 ac_cv_framework_JavaScriptCore=yes
15172
15173 else
15174 ac_cv_framework_JavaScriptCore=no
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_framework_save_LIBS
15179
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15182 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15183 if test $ac_cv_framework_JavaScriptCore = yes; then :
15184
15185
15186 for element in "-framework JavaScriptCore $LIBS"; do
15187 haveit=
15188 for x in $LIBS; do
15189
15190 acl_save_prefix="$prefix"
15191 prefix="$acl_final_prefix"
15192 acl_save_exec_prefix="$exec_prefix"
15193 exec_prefix="$acl_final_exec_prefix"
15194 eval x=\"$x\"
15195 exec_prefix="$acl_save_exec_prefix"
15196 prefix="$acl_save_prefix"
15197
15198 if test "X$x" = "X$element"; then
15199 haveit=yes
15200 break
15201 fi
15202 done
15203 if test -z "$haveit"; then
15204 LIBS="${LIBS}${LIBS:+ }$element"
15205 fi
15206 done
15207
15208 CY_EXECUTE=1
15209
15210 fi
15211
15212 elif test $pkg_failed = untried; then
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214 $as_echo "no" >&6; }
15215
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15218 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15219 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222
15223 ac_check_framework_save_LIBS=$LIBS
15224 LIBS="-framework JavaScriptCore $LIBS"
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227
15228 #include <JavaScriptCore/JSBase.h>
15229
15230 int
15231 main ()
15232 {
15233 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15234 ;
15235 return 0;
15236 }
15237 _ACEOF
15238 if ac_fn_cxx_try_link "$LINENO"; then :
15239
15240 ac_cv_framework_JavaScriptCore=yes
15241
15242 else
15243 ac_cv_framework_JavaScriptCore=no
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247 LIBS=$ac_check_framework_save_LIBS
15248
15249 fi
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15251 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15252 if test $ac_cv_framework_JavaScriptCore = yes; then :
15253
15254
15255 for element in "-framework JavaScriptCore $LIBS"; do
15256 haveit=
15257 for x in $LIBS; do
15258
15259 acl_save_prefix="$prefix"
15260 prefix="$acl_final_prefix"
15261 acl_save_exec_prefix="$exec_prefix"
15262 exec_prefix="$acl_final_exec_prefix"
15263 eval x=\"$x\"
15264 exec_prefix="$acl_save_exec_prefix"
15265 prefix="$acl_save_prefix"
15266
15267 if test "X$x" = "X$element"; then
15268 haveit=yes
15269 break
15270 fi
15271 done
15272 if test -z "$haveit"; then
15273 LIBS="${LIBS}${LIBS:+ }$element"
15274 fi
15275 done
15276
15277 CY_EXECUTE=1
15278
15279 fi
15280
15281 else
15282 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15283 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285 $as_echo "yes" >&6; }
15286
15287 CY_EXECUTE=1
15288
15289 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15290 haveit=
15291 for x in $CXXFLAGS; do
15292
15293 acl_save_prefix="$prefix"
15294 prefix="$acl_final_prefix"
15295 acl_save_exec_prefix="$exec_prefix"
15296 exec_prefix="$acl_final_exec_prefix"
15297 eval x=\"$x\"
15298 exec_prefix="$acl_save_exec_prefix"
15299 prefix="$acl_save_prefix"
15300
15301 if test "X$x" = "X$element"; then
15302 haveit=yes
15303 break
15304 fi
15305 done
15306 if test -z "$haveit"; then
15307 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15308 fi
15309 done
15310
15311
15312 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15313 haveit=
15314 for x in $LIBS; do
15315
15316 acl_save_prefix="$prefix"
15317 prefix="$acl_final_prefix"
15318 acl_save_exec_prefix="$exec_prefix"
15319 exec_prefix="$acl_final_exec_prefix"
15320 eval x=\"$x\"
15321 exec_prefix="$acl_save_exec_prefix"
15322 prefix="$acl_save_prefix"
15323
15324 if test "X$x" = "X$element"; then
15325 haveit=yes
15326 break
15327 fi
15328 done
15329 if test -z "$haveit"; then
15330 LIBS="${LIBS}${LIBS:+ }$element"
15331 fi
15332 done
15333
15334
15335 fi
15336
15337 elif test $pkg_failed = untried; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339 $as_echo "no" >&6; }
15340
15341
15342 pkg_failed=no
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15344 $as_echo_n "checking for WEBKIT... " >&6; }
15345
15346 if test -n "$WEBKIT_CFLAGS"; then
15347 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15348 elif test -n "$PKG_CONFIG"; then
15349 if test -n "$PKG_CONFIG" && \
15350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15351 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15352 ac_status=$?
15353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15354 test $ac_status = 0; }; then
15355 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15356 else
15357 pkg_failed=yes
15358 fi
15359 else
15360 pkg_failed=untried
15361 fi
15362 if test -n "$WEBKIT_LIBS"; then
15363 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15364 elif test -n "$PKG_CONFIG"; then
15365 if test -n "$PKG_CONFIG" && \
15366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15367 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15368 ac_status=$?
15369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15370 test $ac_status = 0; }; then
15371 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15372 else
15373 pkg_failed=yes
15374 fi
15375 else
15376 pkg_failed=untried
15377 fi
15378
15379
15380
15381 if test $pkg_failed = yes; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15383 $as_echo "no" >&6; }
15384
15385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15386 _pkg_short_errors_supported=yes
15387 else
15388 _pkg_short_errors_supported=no
15389 fi
15390 if test $_pkg_short_errors_supported = yes; then
15391 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
15392 else
15393 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
15394 fi
15395 # Put the nasty error message in config.log where it belongs
15396 echo "$WEBKIT_PKG_ERRORS" >&5
15397
15398
15399
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15401 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15402 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405
15406 ac_check_framework_save_LIBS=$LIBS
15407 LIBS="-framework JavaScriptCore $LIBS"
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410
15411 #include <JavaScriptCore/JSBase.h>
15412
15413 int
15414 main ()
15415 {
15416 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_cxx_try_link "$LINENO"; then :
15422
15423 ac_cv_framework_JavaScriptCore=yes
15424
15425 else
15426 ac_cv_framework_JavaScriptCore=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 LIBS=$ac_check_framework_save_LIBS
15431
15432 fi
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15434 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15435 if test $ac_cv_framework_JavaScriptCore = yes; then :
15436
15437
15438 for element in "-framework JavaScriptCore $LIBS"; do
15439 haveit=
15440 for x in $LIBS; do
15441
15442 acl_save_prefix="$prefix"
15443 prefix="$acl_final_prefix"
15444 acl_save_exec_prefix="$exec_prefix"
15445 exec_prefix="$acl_final_exec_prefix"
15446 eval x=\"$x\"
15447 exec_prefix="$acl_save_exec_prefix"
15448 prefix="$acl_save_prefix"
15449
15450 if test "X$x" = "X$element"; then
15451 haveit=yes
15452 break
15453 fi
15454 done
15455 if test -z "$haveit"; then
15456 LIBS="${LIBS}${LIBS:+ }$element"
15457 fi
15458 done
15459
15460 CY_EXECUTE=1
15461
15462 fi
15463
15464 elif test $pkg_failed = untried; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466 $as_echo "no" >&6; }
15467
15468
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15470 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15471 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474
15475 ac_check_framework_save_LIBS=$LIBS
15476 LIBS="-framework JavaScriptCore $LIBS"
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479
15480 #include <JavaScriptCore/JSBase.h>
15481
15482 int
15483 main ()
15484 {
15485 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15486 ;
15487 return 0;
15488 }
15489 _ACEOF
15490 if ac_fn_cxx_try_link "$LINENO"; then :
15491
15492 ac_cv_framework_JavaScriptCore=yes
15493
15494 else
15495 ac_cv_framework_JavaScriptCore=no
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 LIBS=$ac_check_framework_save_LIBS
15500
15501 fi
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15503 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15504 if test $ac_cv_framework_JavaScriptCore = yes; then :
15505
15506
15507 for element in "-framework JavaScriptCore $LIBS"; do
15508 haveit=
15509 for x in $LIBS; do
15510
15511 acl_save_prefix="$prefix"
15512 prefix="$acl_final_prefix"
15513 acl_save_exec_prefix="$exec_prefix"
15514 exec_prefix="$acl_final_exec_prefix"
15515 eval x=\"$x\"
15516 exec_prefix="$acl_save_exec_prefix"
15517 prefix="$acl_save_prefix"
15518
15519 if test "X$x" = "X$element"; then
15520 haveit=yes
15521 break
15522 fi
15523 done
15524 if test -z "$haveit"; then
15525 LIBS="${LIBS}${LIBS:+ }$element"
15526 fi
15527 done
15528
15529 CY_EXECUTE=1
15530
15531 fi
15532
15533 else
15534 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15535 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15537 $as_echo "yes" >&6; }
15538
15539 CY_EXECUTE=1
15540
15541 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15542 haveit=
15543 for x in $CXXFLAGS; do
15544
15545 acl_save_prefix="$prefix"
15546 prefix="$acl_final_prefix"
15547 acl_save_exec_prefix="$exec_prefix"
15548 exec_prefix="$acl_final_exec_prefix"
15549 eval x=\"$x\"
15550 exec_prefix="$acl_save_exec_prefix"
15551 prefix="$acl_save_prefix"
15552
15553 if test "X$x" = "X$element"; then
15554 haveit=yes
15555 break
15556 fi
15557 done
15558 if test -z "$haveit"; then
15559 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15560 fi
15561 done
15562
15563
15564 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15565 haveit=
15566 for x in $LIBS; do
15567
15568 acl_save_prefix="$prefix"
15569 prefix="$acl_final_prefix"
15570 acl_save_exec_prefix="$exec_prefix"
15571 exec_prefix="$acl_final_exec_prefix"
15572 eval x=\"$x\"
15573 exec_prefix="$acl_save_exec_prefix"
15574 prefix="$acl_save_prefix"
15575
15576 if test "X$x" = "X$element"; then
15577 haveit=yes
15578 break
15579 fi
15580 done
15581 if test -z "$haveit"; then
15582 LIBS="${LIBS}${LIBS:+ }$element"
15583 fi
15584 done
15585
15586
15587 fi
15588
15589 else
15590 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15591 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15593 $as_echo "yes" >&6; }
15594
15595 CY_EXECUTE=1
15596
15597 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
15598 haveit=
15599 for x in $CXXFLAGS; do
15600
15601 acl_save_prefix="$prefix"
15602 prefix="$acl_final_prefix"
15603 acl_save_exec_prefix="$exec_prefix"
15604 exec_prefix="$acl_final_exec_prefix"
15605 eval x=\"$x\"
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
15608
15609 if test "X$x" = "X$element"; then
15610 haveit=yes
15611 break
15612 fi
15613 done
15614 if test -z "$haveit"; then
15615 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15616 fi
15617 done
15618
15619
15620 for element in `$PKG_CONFIG --libs webkit-1.0`; do
15621 haveit=
15622 for x in $LIBS; do
15623
15624 acl_save_prefix="$prefix"
15625 prefix="$acl_final_prefix"
15626 acl_save_exec_prefix="$exec_prefix"
15627 exec_prefix="$acl_final_exec_prefix"
15628 eval x=\"$x\"
15629 exec_prefix="$acl_save_exec_prefix"
15630 prefix="$acl_save_prefix"
15631
15632 if test "X$x" = "X$element"; then
15633 haveit=yes
15634 break
15635 fi
15636 done
15637 if test -z "$haveit"; then
15638 LIBS="${LIBS}${LIBS:+ }$element"
15639 fi
15640 done
15641
15642
15643 fi
15644
15645 ;; #(
15646 no) :
15647
15648 CY_EXECUTE=0
15649
15650 ;; #(
15651 JavaScriptCore) :
15652
15653
15654
15655 pkg_failed=no
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15657 $as_echo_n "checking for WEBKIT... " >&6; }
15658
15659 if test -n "$WEBKIT_CFLAGS"; then
15660 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15661 elif test -n "$PKG_CONFIG"; then
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_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15669 else
15670 pkg_failed=yes
15671 fi
15672 else
15673 pkg_failed=untried
15674 fi
15675 if test -n "$WEBKIT_LIBS"; then
15676 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15677 elif test -n "$PKG_CONFIG"; then
15678 if test -n "$PKG_CONFIG" && \
15679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15680 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15681 ac_status=$?
15682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15683 test $ac_status = 0; }; then
15684 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15685 else
15686 pkg_failed=yes
15687 fi
15688 else
15689 pkg_failed=untried
15690 fi
15691
15692
15693
15694 if test $pkg_failed = yes; then
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696 $as_echo "no" >&6; }
15697
15698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15699 _pkg_short_errors_supported=yes
15700 else
15701 _pkg_short_errors_supported=no
15702 fi
15703 if test $_pkg_short_errors_supported = yes; then
15704 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
15705 else
15706 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
15707 fi
15708 # Put the nasty error message in config.log where it belongs
15709 echo "$WEBKIT_PKG_ERRORS" >&5
15710
15711
15712
15713 pkg_failed=no
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15715 $as_echo_n "checking for WEBKIT... " >&6; }
15716
15717 if test -n "$WEBKIT_CFLAGS"; then
15718 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15719 elif test -n "$PKG_CONFIG"; then
15720 if test -n "$PKG_CONFIG" && \
15721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15722 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15723 ac_status=$?
15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725 test $ac_status = 0; }; then
15726 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15727 else
15728 pkg_failed=yes
15729 fi
15730 else
15731 pkg_failed=untried
15732 fi
15733 if test -n "$WEBKIT_LIBS"; then
15734 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15735 elif test -n "$PKG_CONFIG"; then
15736 if test -n "$PKG_CONFIG" && \
15737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15738 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15739 ac_status=$?
15740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15741 test $ac_status = 0; }; then
15742 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15743 else
15744 pkg_failed=yes
15745 fi
15746 else
15747 pkg_failed=untried
15748 fi
15749
15750
15751
15752 if test $pkg_failed = yes; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754 $as_echo "no" >&6; }
15755
15756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15757 _pkg_short_errors_supported=yes
15758 else
15759 _pkg_short_errors_supported=no
15760 fi
15761 if test $_pkg_short_errors_supported = yes; then
15762 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
15763 else
15764 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
15765 fi
15766 # Put the nasty error message in config.log where it belongs
15767 echo "$WEBKIT_PKG_ERRORS" >&5
15768
15769
15770
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15772 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15773 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15774 $as_echo_n "(cached) " >&6
15775 else
15776
15777 ac_check_framework_save_LIBS=$LIBS
15778 LIBS="-framework JavaScriptCore $LIBS"
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781
15782 #include <JavaScriptCore/JSBase.h>
15783
15784 int
15785 main ()
15786 {
15787 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15788 ;
15789 return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_cxx_try_link "$LINENO"; then :
15793
15794 ac_cv_framework_JavaScriptCore=yes
15795
15796 else
15797 ac_cv_framework_JavaScriptCore=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_framework_save_LIBS
15802
15803 fi
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15805 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15806 if test $ac_cv_framework_JavaScriptCore = yes; then :
15807
15808
15809 for element in "-framework JavaScriptCore $LIBS"; do
15810 haveit=
15811 for x in $LIBS; do
15812
15813 acl_save_prefix="$prefix"
15814 prefix="$acl_final_prefix"
15815 acl_save_exec_prefix="$exec_prefix"
15816 exec_prefix="$acl_final_exec_prefix"
15817 eval x=\"$x\"
15818 exec_prefix="$acl_save_exec_prefix"
15819 prefix="$acl_save_prefix"
15820
15821 if test "X$x" = "X$element"; then
15822 haveit=yes
15823 break
15824 fi
15825 done
15826 if test -z "$haveit"; then
15827 LIBS="${LIBS}${LIBS:+ }$element"
15828 fi
15829 done
15830
15831 CY_EXECUTE=1
15832
15833 fi
15834
15835 elif test $pkg_failed = untried; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 $as_echo "no" >&6; }
15838
15839
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15841 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15842 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15843 $as_echo_n "(cached) " >&6
15844 else
15845
15846 ac_check_framework_save_LIBS=$LIBS
15847 LIBS="-framework JavaScriptCore $LIBS"
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850
15851 #include <JavaScriptCore/JSBase.h>
15852
15853 int
15854 main ()
15855 {
15856 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15857 ;
15858 return 0;
15859 }
15860 _ACEOF
15861 if ac_fn_cxx_try_link "$LINENO"; then :
15862
15863 ac_cv_framework_JavaScriptCore=yes
15864
15865 else
15866 ac_cv_framework_JavaScriptCore=no
15867 fi
15868 rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_framework_save_LIBS
15871
15872 fi
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15874 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15875 if test $ac_cv_framework_JavaScriptCore = yes; then :
15876
15877
15878 for element in "-framework JavaScriptCore $LIBS"; do
15879 haveit=
15880 for x in $LIBS; do
15881
15882 acl_save_prefix="$prefix"
15883 prefix="$acl_final_prefix"
15884 acl_save_exec_prefix="$exec_prefix"
15885 exec_prefix="$acl_final_exec_prefix"
15886 eval x=\"$x\"
15887 exec_prefix="$acl_save_exec_prefix"
15888 prefix="$acl_save_prefix"
15889
15890 if test "X$x" = "X$element"; then
15891 haveit=yes
15892 break
15893 fi
15894 done
15895 if test -z "$haveit"; then
15896 LIBS="${LIBS}${LIBS:+ }$element"
15897 fi
15898 done
15899
15900 CY_EXECUTE=1
15901
15902 fi
15903
15904 else
15905 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
15906 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15908 $as_echo "yes" >&6; }
15909
15910 CY_EXECUTE=1
15911
15912 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
15913 haveit=
15914 for x in $CXXFLAGS; do
15915
15916 acl_save_prefix="$prefix"
15917 prefix="$acl_final_prefix"
15918 acl_save_exec_prefix="$exec_prefix"
15919 exec_prefix="$acl_final_exec_prefix"
15920 eval x=\"$x\"
15921 exec_prefix="$acl_save_exec_prefix"
15922 prefix="$acl_save_prefix"
15923
15924 if test "X$x" = "X$element"; then
15925 haveit=yes
15926 break
15927 fi
15928 done
15929 if test -z "$haveit"; then
15930 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15931 fi
15932 done
15933
15934
15935 for element in `$PKG_CONFIG --libs WebKitGtk`; do
15936 haveit=
15937 for x in $LIBS; do
15938
15939 acl_save_prefix="$prefix"
15940 prefix="$acl_final_prefix"
15941 acl_save_exec_prefix="$exec_prefix"
15942 exec_prefix="$acl_final_exec_prefix"
15943 eval x=\"$x\"
15944 exec_prefix="$acl_save_exec_prefix"
15945 prefix="$acl_save_prefix"
15946
15947 if test "X$x" = "X$element"; then
15948 haveit=yes
15949 break
15950 fi
15951 done
15952 if test -z "$haveit"; then
15953 LIBS="${LIBS}${LIBS:+ }$element"
15954 fi
15955 done
15956
15957
15958 fi
15959
15960 elif test $pkg_failed = untried; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962 $as_echo "no" >&6; }
15963
15964
15965 pkg_failed=no
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15967 $as_echo_n "checking for WEBKIT... " >&6; }
15968
15969 if test -n "$WEBKIT_CFLAGS"; then
15970 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15971 elif test -n "$PKG_CONFIG"; then
15972 if test -n "$PKG_CONFIG" && \
15973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15974 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15975 ac_status=$?
15976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977 test $ac_status = 0; }; then
15978 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15979 else
15980 pkg_failed=yes
15981 fi
15982 else
15983 pkg_failed=untried
15984 fi
15985 if test -n "$WEBKIT_LIBS"; then
15986 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15987 elif test -n "$PKG_CONFIG"; then
15988 if test -n "$PKG_CONFIG" && \
15989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15990 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15991 ac_status=$?
15992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15993 test $ac_status = 0; }; then
15994 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15995 else
15996 pkg_failed=yes
15997 fi
15998 else
15999 pkg_failed=untried
16000 fi
16001
16002
16003
16004 if test $pkg_failed = yes; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16006 $as_echo "no" >&6; }
16007
16008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16009 _pkg_short_errors_supported=yes
16010 else
16011 _pkg_short_errors_supported=no
16012 fi
16013 if test $_pkg_short_errors_supported = yes; then
16014 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
16015 else
16016 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
16017 fi
16018 # Put the nasty error message in config.log where it belongs
16019 echo "$WEBKIT_PKG_ERRORS" >&5
16020
16021
16022
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16024 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16025 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028
16029 ac_check_framework_save_LIBS=$LIBS
16030 LIBS="-framework JavaScriptCore $LIBS"
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033
16034 #include <JavaScriptCore/JSBase.h>
16035
16036 int
16037 main ()
16038 {
16039 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16040 ;
16041 return 0;
16042 }
16043 _ACEOF
16044 if ac_fn_cxx_try_link "$LINENO"; then :
16045
16046 ac_cv_framework_JavaScriptCore=yes
16047
16048 else
16049 ac_cv_framework_JavaScriptCore=no
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext \
16052 conftest$ac_exeext conftest.$ac_ext
16053 LIBS=$ac_check_framework_save_LIBS
16054
16055 fi
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16057 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16058 if test $ac_cv_framework_JavaScriptCore = yes; then :
16059
16060
16061 for element in "-framework JavaScriptCore $LIBS"; do
16062 haveit=
16063 for x in $LIBS; do
16064
16065 acl_save_prefix="$prefix"
16066 prefix="$acl_final_prefix"
16067 acl_save_exec_prefix="$exec_prefix"
16068 exec_prefix="$acl_final_exec_prefix"
16069 eval x=\"$x\"
16070 exec_prefix="$acl_save_exec_prefix"
16071 prefix="$acl_save_prefix"
16072
16073 if test "X$x" = "X$element"; then
16074 haveit=yes
16075 break
16076 fi
16077 done
16078 if test -z "$haveit"; then
16079 LIBS="${LIBS}${LIBS:+ }$element"
16080 fi
16081 done
16082
16083 CY_EXECUTE=1
16084
16085 fi
16086
16087 elif test $pkg_failed = untried; then
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089 $as_echo "no" >&6; }
16090
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16093 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16094 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16095 $as_echo_n "(cached) " >&6
16096 else
16097
16098 ac_check_framework_save_LIBS=$LIBS
16099 LIBS="-framework JavaScriptCore $LIBS"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102
16103 #include <JavaScriptCore/JSBase.h>
16104
16105 int
16106 main ()
16107 {
16108 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16109 ;
16110 return 0;
16111 }
16112 _ACEOF
16113 if ac_fn_cxx_try_link "$LINENO"; then :
16114
16115 ac_cv_framework_JavaScriptCore=yes
16116
16117 else
16118 ac_cv_framework_JavaScriptCore=no
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_check_framework_save_LIBS
16123
16124 fi
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16126 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16127 if test $ac_cv_framework_JavaScriptCore = yes; then :
16128
16129
16130 for element in "-framework JavaScriptCore $LIBS"; do
16131 haveit=
16132 for x in $LIBS; do
16133
16134 acl_save_prefix="$prefix"
16135 prefix="$acl_final_prefix"
16136 acl_save_exec_prefix="$exec_prefix"
16137 exec_prefix="$acl_final_exec_prefix"
16138 eval x=\"$x\"
16139 exec_prefix="$acl_save_exec_prefix"
16140 prefix="$acl_save_prefix"
16141
16142 if test "X$x" = "X$element"; then
16143 haveit=yes
16144 break
16145 fi
16146 done
16147 if test -z "$haveit"; then
16148 LIBS="${LIBS}${LIBS:+ }$element"
16149 fi
16150 done
16151
16152 CY_EXECUTE=1
16153
16154 fi
16155
16156 else
16157 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16158 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16160 $as_echo "yes" >&6; }
16161
16162 CY_EXECUTE=1
16163
16164 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16165 haveit=
16166 for x in $CXXFLAGS; do
16167
16168 acl_save_prefix="$prefix"
16169 prefix="$acl_final_prefix"
16170 acl_save_exec_prefix="$exec_prefix"
16171 exec_prefix="$acl_final_exec_prefix"
16172 eval x=\"$x\"
16173 exec_prefix="$acl_save_exec_prefix"
16174 prefix="$acl_save_prefix"
16175
16176 if test "X$x" = "X$element"; then
16177 haveit=yes
16178 break
16179 fi
16180 done
16181 if test -z "$haveit"; then
16182 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16183 fi
16184 done
16185
16186
16187 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16188 haveit=
16189 for x in $LIBS; do
16190
16191 acl_save_prefix="$prefix"
16192 prefix="$acl_final_prefix"
16193 acl_save_exec_prefix="$exec_prefix"
16194 exec_prefix="$acl_final_exec_prefix"
16195 eval x=\"$x\"
16196 exec_prefix="$acl_save_exec_prefix"
16197 prefix="$acl_save_prefix"
16198
16199 if test "X$x" = "X$element"; then
16200 haveit=yes
16201 break
16202 fi
16203 done
16204 if test -z "$haveit"; then
16205 LIBS="${LIBS}${LIBS:+ }$element"
16206 fi
16207 done
16208
16209
16210 fi
16211
16212 else
16213 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16214 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16216 $as_echo "yes" >&6; }
16217
16218 CY_EXECUTE=1
16219
16220 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16221 haveit=
16222 for x in $CXXFLAGS; do
16223
16224 acl_save_prefix="$prefix"
16225 prefix="$acl_final_prefix"
16226 acl_save_exec_prefix="$exec_prefix"
16227 exec_prefix="$acl_final_exec_prefix"
16228 eval x=\"$x\"
16229 exec_prefix="$acl_save_exec_prefix"
16230 prefix="$acl_save_prefix"
16231
16232 if test "X$x" = "X$element"; then
16233 haveit=yes
16234 break
16235 fi
16236 done
16237 if test -z "$haveit"; then
16238 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16239 fi
16240 done
16241
16242
16243 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16244 haveit=
16245 for x in $LIBS; do
16246
16247 acl_save_prefix="$prefix"
16248 prefix="$acl_final_prefix"
16249 acl_save_exec_prefix="$exec_prefix"
16250 exec_prefix="$acl_final_exec_prefix"
16251 eval x=\"$x\"
16252 exec_prefix="$acl_save_exec_prefix"
16253 prefix="$acl_save_prefix"
16254
16255 if test "X$x" = "X$element"; then
16256 haveit=yes
16257 break
16258 fi
16259 done
16260 if test -z "$haveit"; then
16261 LIBS="${LIBS}${LIBS:+ }$element"
16262 fi
16263 done
16264
16265
16266 fi
16267
16268 ;; #(
16269 *) :
16270 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
16271 esac
16272
16273 else
16274
16275
16276
16277 pkg_failed=no
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16279 $as_echo_n "checking for WEBKIT... " >&6; }
16280
16281 if test -n "$WEBKIT_CFLAGS"; then
16282 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16283 elif test -n "$PKG_CONFIG"; then
16284 if test -n "$PKG_CONFIG" && \
16285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16286 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16287 ac_status=$?
16288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289 test $ac_status = 0; }; then
16290 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16291 else
16292 pkg_failed=yes
16293 fi
16294 else
16295 pkg_failed=untried
16296 fi
16297 if test -n "$WEBKIT_LIBS"; then
16298 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16299 elif test -n "$PKG_CONFIG"; then
16300 if test -n "$PKG_CONFIG" && \
16301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16302 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16303 ac_status=$?
16304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16305 test $ac_status = 0; }; then
16306 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16307 else
16308 pkg_failed=yes
16309 fi
16310 else
16311 pkg_failed=untried
16312 fi
16313
16314
16315
16316 if test $pkg_failed = yes; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318 $as_echo "no" >&6; }
16319
16320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16321 _pkg_short_errors_supported=yes
16322 else
16323 _pkg_short_errors_supported=no
16324 fi
16325 if test $_pkg_short_errors_supported = yes; then
16326 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
16327 else
16328 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
16329 fi
16330 # Put the nasty error message in config.log where it belongs
16331 echo "$WEBKIT_PKG_ERRORS" >&5
16332
16333
16334
16335 pkg_failed=no
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16337 $as_echo_n "checking for WEBKIT... " >&6; }
16338
16339 if test -n "$WEBKIT_CFLAGS"; then
16340 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16341 elif test -n "$PKG_CONFIG"; then
16342 if test -n "$PKG_CONFIG" && \
16343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16344 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16345 ac_status=$?
16346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16347 test $ac_status = 0; }; then
16348 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16349 else
16350 pkg_failed=yes
16351 fi
16352 else
16353 pkg_failed=untried
16354 fi
16355 if test -n "$WEBKIT_LIBS"; then
16356 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16357 elif test -n "$PKG_CONFIG"; then
16358 if test -n "$PKG_CONFIG" && \
16359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16360 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16361 ac_status=$?
16362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16363 test $ac_status = 0; }; then
16364 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16365 else
16366 pkg_failed=yes
16367 fi
16368 else
16369 pkg_failed=untried
16370 fi
16371
16372
16373
16374 if test $pkg_failed = yes; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376 $as_echo "no" >&6; }
16377
16378 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16379 _pkg_short_errors_supported=yes
16380 else
16381 _pkg_short_errors_supported=no
16382 fi
16383 if test $_pkg_short_errors_supported = yes; then
16384 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
16385 else
16386 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
16387 fi
16388 # Put the nasty error message in config.log where it belongs
16389 echo "$WEBKIT_PKG_ERRORS" >&5
16390
16391
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16394 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16395 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16396 $as_echo_n "(cached) " >&6
16397 else
16398
16399 ac_check_framework_save_LIBS=$LIBS
16400 LIBS="-framework JavaScriptCore $LIBS"
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403
16404 #include <JavaScriptCore/JSBase.h>
16405
16406 int
16407 main ()
16408 {
16409 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16410 ;
16411 return 0;
16412 }
16413 _ACEOF
16414 if ac_fn_cxx_try_link "$LINENO"; then :
16415
16416 ac_cv_framework_JavaScriptCore=yes
16417
16418 else
16419 ac_cv_framework_JavaScriptCore=no
16420 fi
16421 rm -f core conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LIBS=$ac_check_framework_save_LIBS
16424
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16427 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16428 if test $ac_cv_framework_JavaScriptCore = yes; then :
16429
16430
16431 for element in "-framework JavaScriptCore $LIBS"; do
16432 haveit=
16433 for x in $LIBS; do
16434
16435 acl_save_prefix="$prefix"
16436 prefix="$acl_final_prefix"
16437 acl_save_exec_prefix="$exec_prefix"
16438 exec_prefix="$acl_final_exec_prefix"
16439 eval x=\"$x\"
16440 exec_prefix="$acl_save_exec_prefix"
16441 prefix="$acl_save_prefix"
16442
16443 if test "X$x" = "X$element"; then
16444 haveit=yes
16445 break
16446 fi
16447 done
16448 if test -z "$haveit"; then
16449 LIBS="${LIBS}${LIBS:+ }$element"
16450 fi
16451 done
16452
16453 CY_EXECUTE=1
16454
16455 fi
16456
16457 elif test $pkg_failed = untried; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16460
16461
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16463 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16464 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467
16468 ac_check_framework_save_LIBS=$LIBS
16469 LIBS="-framework JavaScriptCore $LIBS"
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472
16473 #include <JavaScriptCore/JSBase.h>
16474
16475 int
16476 main ()
16477 {
16478 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16479 ;
16480 return 0;
16481 }
16482 _ACEOF
16483 if ac_fn_cxx_try_link "$LINENO"; then :
16484
16485 ac_cv_framework_JavaScriptCore=yes
16486
16487 else
16488 ac_cv_framework_JavaScriptCore=no
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext \
16491 conftest$ac_exeext conftest.$ac_ext
16492 LIBS=$ac_check_framework_save_LIBS
16493
16494 fi
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16496 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16497 if test $ac_cv_framework_JavaScriptCore = yes; then :
16498
16499
16500 for element in "-framework JavaScriptCore $LIBS"; do
16501 haveit=
16502 for x in $LIBS; do
16503
16504 acl_save_prefix="$prefix"
16505 prefix="$acl_final_prefix"
16506 acl_save_exec_prefix="$exec_prefix"
16507 exec_prefix="$acl_final_exec_prefix"
16508 eval x=\"$x\"
16509 exec_prefix="$acl_save_exec_prefix"
16510 prefix="$acl_save_prefix"
16511
16512 if test "X$x" = "X$element"; then
16513 haveit=yes
16514 break
16515 fi
16516 done
16517 if test -z "$haveit"; then
16518 LIBS="${LIBS}${LIBS:+ }$element"
16519 fi
16520 done
16521
16522 CY_EXECUTE=1
16523
16524 fi
16525
16526 else
16527 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16528 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531
16532 CY_EXECUTE=1
16533
16534 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16535 haveit=
16536 for x in $CXXFLAGS; do
16537
16538 acl_save_prefix="$prefix"
16539 prefix="$acl_final_prefix"
16540 acl_save_exec_prefix="$exec_prefix"
16541 exec_prefix="$acl_final_exec_prefix"
16542 eval x=\"$x\"
16543 exec_prefix="$acl_save_exec_prefix"
16544 prefix="$acl_save_prefix"
16545
16546 if test "X$x" = "X$element"; then
16547 haveit=yes
16548 break
16549 fi
16550 done
16551 if test -z "$haveit"; then
16552 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16553 fi
16554 done
16555
16556
16557 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16558 haveit=
16559 for x in $LIBS; do
16560
16561 acl_save_prefix="$prefix"
16562 prefix="$acl_final_prefix"
16563 acl_save_exec_prefix="$exec_prefix"
16564 exec_prefix="$acl_final_exec_prefix"
16565 eval x=\"$x\"
16566 exec_prefix="$acl_save_exec_prefix"
16567 prefix="$acl_save_prefix"
16568
16569 if test "X$x" = "X$element"; then
16570 haveit=yes
16571 break
16572 fi
16573 done
16574 if test -z "$haveit"; then
16575 LIBS="${LIBS}${LIBS:+ }$element"
16576 fi
16577 done
16578
16579
16580 fi
16581
16582 elif test $pkg_failed = untried; then
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16584 $as_echo "no" >&6; }
16585
16586
16587 pkg_failed=no
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16589 $as_echo_n "checking for WEBKIT... " >&6; }
16590
16591 if test -n "$WEBKIT_CFLAGS"; then
16592 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16593 elif test -n "$PKG_CONFIG"; then
16594 if test -n "$PKG_CONFIG" && \
16595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16596 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16597 ac_status=$?
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; then
16600 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16601 else
16602 pkg_failed=yes
16603 fi
16604 else
16605 pkg_failed=untried
16606 fi
16607 if test -n "$WEBKIT_LIBS"; then
16608 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16609 elif test -n "$PKG_CONFIG"; then
16610 if test -n "$PKG_CONFIG" && \
16611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16612 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16613 ac_status=$?
16614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16615 test $ac_status = 0; }; then
16616 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16617 else
16618 pkg_failed=yes
16619 fi
16620 else
16621 pkg_failed=untried
16622 fi
16623
16624
16625
16626 if test $pkg_failed = yes; then
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628 $as_echo "no" >&6; }
16629
16630 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16631 _pkg_short_errors_supported=yes
16632 else
16633 _pkg_short_errors_supported=no
16634 fi
16635 if test $_pkg_short_errors_supported = yes; then
16636 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
16637 else
16638 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
16639 fi
16640 # Put the nasty error message in config.log where it belongs
16641 echo "$WEBKIT_PKG_ERRORS" >&5
16642
16643
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16646 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16647 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650
16651 ac_check_framework_save_LIBS=$LIBS
16652 LIBS="-framework JavaScriptCore $LIBS"
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655
16656 #include <JavaScriptCore/JSBase.h>
16657
16658 int
16659 main ()
16660 {
16661 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16662 ;
16663 return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_cxx_try_link "$LINENO"; then :
16667
16668 ac_cv_framework_JavaScriptCore=yes
16669
16670 else
16671 ac_cv_framework_JavaScriptCore=no
16672 fi
16673 rm -f core conftest.err conftest.$ac_objext \
16674 conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_framework_save_LIBS
16676
16677 fi
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16679 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16680 if test $ac_cv_framework_JavaScriptCore = yes; then :
16681
16682
16683 for element in "-framework JavaScriptCore $LIBS"; do
16684 haveit=
16685 for x in $LIBS; do
16686
16687 acl_save_prefix="$prefix"
16688 prefix="$acl_final_prefix"
16689 acl_save_exec_prefix="$exec_prefix"
16690 exec_prefix="$acl_final_exec_prefix"
16691 eval x=\"$x\"
16692 exec_prefix="$acl_save_exec_prefix"
16693 prefix="$acl_save_prefix"
16694
16695 if test "X$x" = "X$element"; then
16696 haveit=yes
16697 break
16698 fi
16699 done
16700 if test -z "$haveit"; then
16701 LIBS="${LIBS}${LIBS:+ }$element"
16702 fi
16703 done
16704
16705 CY_EXECUTE=1
16706
16707 fi
16708
16709 elif test $pkg_failed = untried; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712
16713
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16715 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16716 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719
16720 ac_check_framework_save_LIBS=$LIBS
16721 LIBS="-framework JavaScriptCore $LIBS"
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16724
16725 #include <JavaScriptCore/JSBase.h>
16726
16727 int
16728 main ()
16729 {
16730 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 if ac_fn_cxx_try_link "$LINENO"; then :
16736
16737 ac_cv_framework_JavaScriptCore=yes
16738
16739 else
16740 ac_cv_framework_JavaScriptCore=no
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_framework_save_LIBS
16745
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16748 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16749 if test $ac_cv_framework_JavaScriptCore = yes; then :
16750
16751
16752 for element in "-framework JavaScriptCore $LIBS"; do
16753 haveit=
16754 for x in $LIBS; do
16755
16756 acl_save_prefix="$prefix"
16757 prefix="$acl_final_prefix"
16758 acl_save_exec_prefix="$exec_prefix"
16759 exec_prefix="$acl_final_exec_prefix"
16760 eval x=\"$x\"
16761 exec_prefix="$acl_save_exec_prefix"
16762 prefix="$acl_save_prefix"
16763
16764 if test "X$x" = "X$element"; then
16765 haveit=yes
16766 break
16767 fi
16768 done
16769 if test -z "$haveit"; then
16770 LIBS="${LIBS}${LIBS:+ }$element"
16771 fi
16772 done
16773
16774 CY_EXECUTE=1
16775
16776 fi
16777
16778 else
16779 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16780 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782 $as_echo "yes" >&6; }
16783
16784 CY_EXECUTE=1
16785
16786 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16787 haveit=
16788 for x in $CXXFLAGS; do
16789
16790 acl_save_prefix="$prefix"
16791 prefix="$acl_final_prefix"
16792 acl_save_exec_prefix="$exec_prefix"
16793 exec_prefix="$acl_final_exec_prefix"
16794 eval x=\"$x\"
16795 exec_prefix="$acl_save_exec_prefix"
16796 prefix="$acl_save_prefix"
16797
16798 if test "X$x" = "X$element"; then
16799 haveit=yes
16800 break
16801 fi
16802 done
16803 if test -z "$haveit"; then
16804 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16805 fi
16806 done
16807
16808
16809 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16810 haveit=
16811 for x in $LIBS; do
16812
16813 acl_save_prefix="$prefix"
16814 prefix="$acl_final_prefix"
16815 acl_save_exec_prefix="$exec_prefix"
16816 exec_prefix="$acl_final_exec_prefix"
16817 eval x=\"$x\"
16818 exec_prefix="$acl_save_exec_prefix"
16819 prefix="$acl_save_prefix"
16820
16821 if test "X$x" = "X$element"; then
16822 haveit=yes
16823 break
16824 fi
16825 done
16826 if test -z "$haveit"; then
16827 LIBS="${LIBS}${LIBS:+ }$element"
16828 fi
16829 done
16830
16831
16832 fi
16833
16834 else
16835 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16836 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16838 $as_echo "yes" >&6; }
16839
16840 CY_EXECUTE=1
16841
16842 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16843 haveit=
16844 for x in $CXXFLAGS; do
16845
16846 acl_save_prefix="$prefix"
16847 prefix="$acl_final_prefix"
16848 acl_save_exec_prefix="$exec_prefix"
16849 exec_prefix="$acl_final_exec_prefix"
16850 eval x=\"$x\"
16851 exec_prefix="$acl_save_exec_prefix"
16852 prefix="$acl_save_prefix"
16853
16854 if test "X$x" = "X$element"; then
16855 haveit=yes
16856 break
16857 fi
16858 done
16859 if test -z "$haveit"; then
16860 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16861 fi
16862 done
16863
16864
16865 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16866 haveit=
16867 for x in $LIBS; do
16868
16869 acl_save_prefix="$prefix"
16870 prefix="$acl_final_prefix"
16871 acl_save_exec_prefix="$exec_prefix"
16872 exec_prefix="$acl_final_exec_prefix"
16873 eval x=\"$x\"
16874 exec_prefix="$acl_save_exec_prefix"
16875 prefix="$acl_save_prefix"
16876
16877 if test "X$x" = "X$element"; then
16878 haveit=yes
16879 break
16880 fi
16881 done
16882 if test -z "$haveit"; then
16883 LIBS="${LIBS}${LIBS:+ }$element"
16884 fi
16885 done
16886
16887
16888 fi
16889
16890
16891 fi
16892
16893
16894
16895
16896 case $CY_EXECUTE in #(
16897 1) :
16898
16899
16900 for ac_header in ffi.h ffi/ffi.h
16901 do :
16902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16903 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16905 cat >>confdefs.h <<_ACEOF
16906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16907 _ACEOF
16908 break
16909 fi
16910
16911 done
16912
16913 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16914
16915
16916
16917 pkg_failed=no
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16919 $as_echo_n "checking for LIBFFI... " >&6; }
16920
16921 if test -n "$LIBFFI_CFLAGS"; then
16922 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
16923 elif test -n "$PKG_CONFIG"; then
16924 if test -n "$PKG_CONFIG" && \
16925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16926 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16927 ac_status=$?
16928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16929 test $ac_status = 0; }; then
16930 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
16931 else
16932 pkg_failed=yes
16933 fi
16934 else
16935 pkg_failed=untried
16936 fi
16937 if test -n "$LIBFFI_LIBS"; then
16938 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
16939 elif test -n "$PKG_CONFIG"; then
16940 if test -n "$PKG_CONFIG" && \
16941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16942 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16943 ac_status=$?
16944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16945 test $ac_status = 0; }; then
16946 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
16947 else
16948 pkg_failed=yes
16949 fi
16950 else
16951 pkg_failed=untried
16952 fi
16953
16954
16955
16956 if test $pkg_failed = yes; then
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16958 $as_echo "no" >&6; }
16959
16960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16961 _pkg_short_errors_supported=yes
16962 else
16963 _pkg_short_errors_supported=no
16964 fi
16965 if test $_pkg_short_errors_supported = yes; then
16966 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
16967 else
16968 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
16969 fi
16970 # Put the nasty error message in config.log where it belongs
16971 echo "$LIBFFI_PKG_ERRORS" >&5
16972
16973
16974 as_fn_error $? "You need libffi" "$LINENO" 5
16975
16976 elif test $pkg_failed = untried; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978 $as_echo "no" >&6; }
16979
16980 as_fn_error $? "You need libffi" "$LINENO" 5
16981
16982 else
16983 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16984 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16986 $as_echo "yes" >&6; }
16987
16988
16989 for element in `$PKG_CONFIG --cflags libffi`; do
16990 haveit=
16991 for x in $CXXFLAGS; do
16992
16993 acl_save_prefix="$prefix"
16994 prefix="$acl_final_prefix"
16995 acl_save_exec_prefix="$exec_prefix"
16996 exec_prefix="$acl_final_exec_prefix"
16997 eval x=\"$x\"
16998 exec_prefix="$acl_save_exec_prefix"
16999 prefix="$acl_save_prefix"
17000
17001 if test "X$x" = "X$element"; then
17002 haveit=yes
17003 break
17004 fi
17005 done
17006 if test -z "$haveit"; then
17007 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17008 fi
17009 done
17010
17011
17012 for element in `$PKG_CONFIG --libs libffi`; do
17013 haveit=
17014 for x in $LIBS; do
17015
17016 acl_save_prefix="$prefix"
17017 prefix="$acl_final_prefix"
17018 acl_save_exec_prefix="$exec_prefix"
17019 exec_prefix="$acl_final_exec_prefix"
17020 eval x=\"$x\"
17021 exec_prefix="$acl_save_exec_prefix"
17022 prefix="$acl_save_prefix"
17023
17024 if test "X$x" = "X$element"; then
17025 haveit=yes
17026 break
17027 fi
17028 done
17029 if test -z "$haveit"; then
17030 LIBS="${LIBS}${LIBS:+ }$element"
17031 fi
17032 done
17033
17034
17035 fi
17036
17037
17038 else
17039
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17041 $as_echo_n "checking for library containing ffi_call... " >&6; }
17042 if test "${ac_cv_search_ffi_call+set}" = set; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 ac_func_search_save_LIBS=$LIBS
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17048
17049 /* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17052 #ifdef __cplusplus
17053 extern "C"
17054 #endif
17055 char ffi_call ();
17056 int
17057 main ()
17058 {
17059 return ffi_call ();
17060 ;
17061 return 0;
17062 }
17063 _ACEOF
17064 for ac_lib in '' ffi; do
17065 if test -z "$ac_lib"; then
17066 ac_res="none required"
17067 else
17068 ac_res=-l$ac_lib
17069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17070 fi
17071 if ac_fn_cxx_try_link "$LINENO"; then :
17072 ac_cv_search_ffi_call=$ac_res
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext
17076 if test "${ac_cv_search_ffi_call+set}" = set; then :
17077 break
17078 fi
17079 done
17080 if test "${ac_cv_search_ffi_call+set}" = set; then :
17081
17082 else
17083 ac_cv_search_ffi_call=no
17084 fi
17085 rm conftest.$ac_ext
17086 LIBS=$ac_func_search_save_LIBS
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17089 $as_echo "$ac_cv_search_ffi_call" >&6; }
17090 ac_res=$ac_cv_search_ffi_call
17091 if test "$ac_res" != no; then :
17092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17093
17094 fi
17095
17096 case $ac_cv_search_ffi_call in #(
17097 no) :
17098
17099
17100 pkg_failed=no
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17102 $as_echo_n "checking for LIBFFI... " >&6; }
17103
17104 if test -n "$LIBFFI_CFLAGS"; then
17105 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17106 elif test -n "$PKG_CONFIG"; then
17107 if test -n "$PKG_CONFIG" && \
17108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17109 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17112 test $ac_status = 0; }; then
17113 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17114 else
17115 pkg_failed=yes
17116 fi
17117 else
17118 pkg_failed=untried
17119 fi
17120 if test -n "$LIBFFI_LIBS"; then
17121 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17122 elif test -n "$PKG_CONFIG"; then
17123 if test -n "$PKG_CONFIG" && \
17124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17125 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17126 ac_status=$?
17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17128 test $ac_status = 0; }; then
17129 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17130 else
17131 pkg_failed=yes
17132 fi
17133 else
17134 pkg_failed=untried
17135 fi
17136
17137
17138
17139 if test $pkg_failed = yes; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141 $as_echo "no" >&6; }
17142
17143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17144 _pkg_short_errors_supported=yes
17145 else
17146 _pkg_short_errors_supported=no
17147 fi
17148 if test $_pkg_short_errors_supported = yes; then
17149 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
17150 else
17151 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
17152 fi
17153 # Put the nasty error message in config.log where it belongs
17154 echo "$LIBFFI_PKG_ERRORS" >&5
17155
17156
17157 as_fn_error $? "You need libffi" "$LINENO" 5
17158
17159 elif test $pkg_failed = untried; then
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161 $as_echo "no" >&6; }
17162
17163 as_fn_error $? "You need libffi" "$LINENO" 5
17164
17165 else
17166 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17167 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17169 $as_echo "yes" >&6; }
17170
17171
17172 for element in `$PKG_CONFIG --cflags libffi`; do
17173 haveit=
17174 for x in $CXXFLAGS; do
17175
17176 acl_save_prefix="$prefix"
17177 prefix="$acl_final_prefix"
17178 acl_save_exec_prefix="$exec_prefix"
17179 exec_prefix="$acl_final_exec_prefix"
17180 eval x=\"$x\"
17181 exec_prefix="$acl_save_exec_prefix"
17182 prefix="$acl_save_prefix"
17183
17184 if test "X$x" = "X$element"; then
17185 haveit=yes
17186 break
17187 fi
17188 done
17189 if test -z "$haveit"; then
17190 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17191 fi
17192 done
17193
17194
17195 for element in `$PKG_CONFIG --libs libffi`; do
17196 haveit=
17197 for x in $LIBS; do
17198
17199 acl_save_prefix="$prefix"
17200 prefix="$acl_final_prefix"
17201 acl_save_exec_prefix="$exec_prefix"
17202 exec_prefix="$acl_final_exec_prefix"
17203 eval x=\"$x\"
17204 exec_prefix="$acl_save_exec_prefix"
17205 prefix="$acl_save_prefix"
17206
17207 if test "X$x" = "X$element"; then
17208 haveit=yes
17209 break
17210 fi
17211 done
17212 if test -z "$haveit"; then
17213 LIBS="${LIBS}${LIBS:+ }$element"
17214 fi
17215 done
17216
17217
17218 fi
17219 ;; #(
17220 *) :
17221 ;;
17222 esac
17223
17224 fi
17225 ac_ext=mm
17226 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17227 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17228 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17229 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17230
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17232 $as_echo_n "checking if we really have Objective C++... " >&6; }
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17235
17236 // This space intentionally left blank
17237
17238 _ACEOF
17239 if ac_fn_objcxx_try_compile "$LINENO"; then :
17240
17241 CY_OBJECTIVEC=1
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17243 $as_echo "yes" >&6; }
17244
17245 else
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247 $as_echo "no" >&6; }
17248 fi
17249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 if test "x$CY_OBJECTIVEC" = x1; then :
17251
17252
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
17254 $as_echo_n "checking for framework CoreFoundation... " >&6; }
17255 if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
17256 $as_echo_n "(cached) " >&6
17257 else
17258
17259 ac_check_framework_save_LIBS=$LIBS
17260 LIBS="-framework CoreFoundation $LIBS"
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17263
17264 #include <CoreFoundation/CFBase.h>
17265
17266 int
17267 main ()
17268 {
17269 CFAllocatorGetDefault();
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_objcxx_try_link "$LINENO"; then :
17275
17276 ac_cv_framework_CoreFoundation=yes
17277
17278 else
17279 ac_cv_framework_CoreFoundation=no
17280 fi
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_framework_save_LIBS
17284
17285 fi
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
17287 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
17288 if test $ac_cv_framework_CoreFoundation = yes; then :
17289
17290
17291 for element in "-framework CoreFoundation $LIBS"; do
17292 haveit=
17293 for x in $LIBS; do
17294
17295 acl_save_prefix="$prefix"
17296 prefix="$acl_final_prefix"
17297 acl_save_exec_prefix="$exec_prefix"
17298 exec_prefix="$acl_final_exec_prefix"
17299 eval x=\"$x\"
17300 exec_prefix="$acl_save_exec_prefix"
17301 prefix="$acl_save_prefix"
17302
17303 if test "X$x" = "X$element"; then
17304 haveit=yes
17305 break
17306 fi
17307 done
17308 if test -z "$haveit"; then
17309 LIBS="${LIBS}${LIBS:+ }$element"
17310 fi
17311 done
17312
17313
17314
17315
17316
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
17318 $as_echo_n "checking for framework Foundation... " >&6; }
17319 if test "${ac_cv_framework_Foundation+set}" = set; then :
17320 $as_echo_n "(cached) " >&6
17321 else
17322
17323 ac_check_framework_save_LIBS=$LIBS
17324 LIBS="-framework Foundation $LIBS"
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327
17328 #include <Foundation/NSObject.h>
17329
17330 int
17331 main ()
17332 {
17333 [[NSObject alloc] init];
17334 ;
17335 return 0;
17336 }
17337 _ACEOF
17338 if ac_fn_objcxx_try_link "$LINENO"; then :
17339
17340 ac_cv_framework_Foundation=yes
17341
17342 else
17343 ac_cv_framework_Foundation=no
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_framework_save_LIBS
17348
17349 fi
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
17351 $as_echo "$ac_cv_framework_Foundation" >&6; }
17352 if test $ac_cv_framework_Foundation = yes; then :
17353
17354
17355 for element in "-framework Foundation $LIBS"; do
17356 haveit=
17357 for x in $LIBS; do
17358
17359 acl_save_prefix="$prefix"
17360 prefix="$acl_final_prefix"
17361 acl_save_exec_prefix="$exec_prefix"
17362 exec_prefix="$acl_final_exec_prefix"
17363 eval x=\"$x\"
17364 exec_prefix="$acl_save_exec_prefix"
17365 prefix="$acl_save_prefix"
17366
17367 if test "X$x" = "X$element"; then
17368 haveit=yes
17369 break
17370 fi
17371 done
17372 if test -z "$haveit"; then
17373 LIBS="${LIBS}${LIBS:+ }$element"
17374 fi
17375 done
17376
17377 cat >>confdefs.h <<_ACEOF
17378 #define HAVE_FRAMEWORK_FOUNDATION 1
17379 _ACEOF
17380
17381
17382 fi
17383
17384
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
17386 $as_echo_n "checking for framework WebKit... " >&6; }
17387 if test "${ac_cv_framework_WebKit+set}" = set; then :
17388 $as_echo_n "(cached) " >&6
17389 else
17390
17391 ac_check_framework_save_LIBS=$LIBS
17392 LIBS="-framework WebKit $LIBS"
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17395
17396 #include <WebKit/WebScriptObject.h>
17397
17398 int
17399 main ()
17400 {
17401 [[WebScriptObject alloc] init];
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_objcxx_try_link "$LINENO"; then :
17407
17408 ac_cv_framework_WebKit=yes
17409
17410 else
17411 ac_cv_framework_WebKit=no
17412 fi
17413 rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415 LIBS=$ac_check_framework_save_LIBS
17416
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
17419 $as_echo "$ac_cv_framework_WebKit" >&6; }
17420 if test $ac_cv_framework_WebKit = yes; then :
17421
17422
17423 for element in "-framework WebKit $LIBS"; do
17424 haveit=
17425 for x in $LIBS; do
17426
17427 acl_save_prefix="$prefix"
17428 prefix="$acl_final_prefix"
17429 acl_save_exec_prefix="$exec_prefix"
17430 exec_prefix="$acl_final_exec_prefix"
17431 eval x=\"$x\"
17432 exec_prefix="$acl_save_exec_prefix"
17433 prefix="$acl_save_prefix"
17434
17435 if test "X$x" = "X$element"; then
17436 haveit=yes
17437 break
17438 fi
17439 done
17440 if test -z "$haveit"; then
17441 LIBS="${LIBS}${LIBS:+ }$element"
17442 fi
17443 done
17444
17445 cat >>confdefs.h <<_ACEOF
17446 #define HAVE_FRAMEWORK_WEBKIT 1
17447 _ACEOF
17448
17449
17450 fi
17451
17452
17453 else
17454
17455
17456 for ac_prog in gnustep-config
17457 do
17458 # Extract the first word of "$ac_prog", so it can be a program name with args.
17459 set dummy $ac_prog; ac_word=$2
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17461 $as_echo_n "checking for $ac_word... " >&6; }
17462 if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17465 if test -n "$GNUSTEP_CONFIG"; then
17466 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
17467 else
17468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469 for as_dir in $PATH
17470 do
17471 IFS=$as_save_IFS
17472 test -z "$as_dir" && as_dir=.
17473 for ac_exec_ext in '' $ac_executable_extensions; do
17474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17475 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
17476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17477 break 2
17478 fi
17479 done
17480 done
17481 IFS=$as_save_IFS
17482
17483 fi
17484 fi
17485 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
17486 if test -n "$GNUSTEP_CONFIG"; then
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
17488 $as_echo "$GNUSTEP_CONFIG" >&6; }
17489 else
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 $as_echo "no" >&6; }
17492 fi
17493
17494
17495 test -n "$GNUSTEP_CONFIG" && break
17496 done
17497
17498 if test "x$GNUSTEP_CONFIG" != x; then :
17499
17500
17501
17502 for element in `$GNUSTEP_CONFIG --objc-flags`; do
17503 haveit=
17504 for x in $OBJCXXFLAGS; do
17505
17506 acl_save_prefix="$prefix"
17507 prefix="$acl_final_prefix"
17508 acl_save_exec_prefix="$exec_prefix"
17509 exec_prefix="$acl_final_exec_prefix"
17510 eval x=\"$x\"
17511 exec_prefix="$acl_save_exec_prefix"
17512 prefix="$acl_save_prefix"
17513
17514 if test "X$x" = "X$element"; then
17515 haveit=yes
17516 break
17517 fi
17518 done
17519 if test -z "$haveit"; then
17520 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17521 fi
17522 done
17523
17524
17525 for element in `$GNUSTEP_CONFIG --base-libs`; do
17526 haveit=
17527 for x in $LIBS; do
17528
17529 acl_save_prefix="$prefix"
17530 prefix="$acl_final_prefix"
17531 acl_save_exec_prefix="$exec_prefix"
17532 exec_prefix="$acl_final_exec_prefix"
17533 eval x=\"$x\"
17534 exec_prefix="$acl_save_exec_prefix"
17535 prefix="$acl_save_prefix"
17536
17537 if test "X$x" = "X$element"; then
17538 haveit=yes
17539 break
17540 fi
17541 done
17542 if test -z "$haveit"; then
17543 LIBS="${LIBS}${LIBS:+ }$element"
17544 fi
17545 done
17546
17547
17548 else
17549 CY_OBJECTIVEC=0
17550
17551 fi
17552
17553 fi
17554
17555 fi
17556 ac_ext=cpp
17557 ac_cpp='$CXXCPP $CPPFLAGS'
17558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17561
17562 ;; #(
17563 *) :
17564 ;;
17565 esac
17566
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
17568 $as_echo_n "checking for a readline compatible library... " >&6; }
17569 if test "${vl_cv_lib_readline+set}" = set; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572
17573 ORIG_LIBS="$LIBS"
17574 for readline_lib in readline edit editline; do
17575 for termcap_lib in "" termcap curses ncurses; do
17576 if test -z "$termcap_lib"; then
17577 TRY_LIB="-l$readline_lib"
17578 else
17579 TRY_LIB="-l$readline_lib -l$termcap_lib"
17580 fi
17581 LIBS="$ORIG_LIBS $TRY_LIB"
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h. */
17584
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588 #ifdef __cplusplus
17589 extern "C"
17590 #endif
17591 char readline ();
17592 int
17593 main ()
17594 {
17595 return readline ();
17596 ;
17597 return 0;
17598 }
17599 _ACEOF
17600 if ac_fn_cxx_try_link "$LINENO"; then :
17601 vl_cv_lib_readline="$TRY_LIB"
17602 fi
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 if test -n "$vl_cv_lib_readline"; then
17606 break
17607 fi
17608 done
17609 if test -n "$vl_cv_lib_readline"; then
17610 break
17611 fi
17612 done
17613 if test -z "$vl_cv_lib_readline"; then
17614 vl_cv_lib_readline="no"
17615 LIBS="$ORIG_LIBS"
17616 fi
17617
17618 fi
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
17620 $as_echo "$vl_cv_lib_readline" >&6; }
17621
17622 if test "$vl_cv_lib_readline" != "no"; then
17623
17624 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17625
17626 for ac_header in readline.h readline/readline.h
17627 do :
17628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17629 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17631 cat >>confdefs.h <<_ACEOF
17632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17633 _ACEOF
17634
17635 fi
17636
17637 done
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17640 $as_echo_n "checking whether readline supports history... " >&6; }
17641 if test "${vl_cv_lib_readline_history+set}" = set; then :
17642 $as_echo_n "(cached) " >&6
17643 else
17644
17645 vl_cv_lib_readline_history="no"
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648
17649 /* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17652 #ifdef __cplusplus
17653 extern "C"
17654 #endif
17655 char add_history ();
17656 int
17657 main ()
17658 {
17659 return add_history ();
17660 ;
17661 return 0;
17662 }
17663 _ACEOF
17664 if ac_fn_cxx_try_link "$LINENO"; then :
17665 vl_cv_lib_readline_history="yes"
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669
17670 fi
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
17672 $as_echo "$vl_cv_lib_readline_history" >&6; }
17673 if test "$vl_cv_lib_readline_history" = "yes"; then
17674
17675 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17676
17677 for ac_header in history.h readline/history.h
17678 do :
17679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17680 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17681 if eval test \"x\$"$as_ac_Header"\" = 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
17870 acl_libdirstem=lib
17871 acl_libdirstem2=
17872 case "$host_os" in
17873 solaris*)
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17875 $as_echo_n "checking for 64-bit host... " >&6; }
17876 if test "${gl_cv_solaris_64bit+set}" = set; then :
17877 $as_echo_n "(cached) " >&6
17878 else
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881
17882 #ifdef _LP64
17883 sixtyfour bits
17884 #endif
17885
17886 _ACEOF
17887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17888 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17889 gl_cv_solaris_64bit=yes
17890 else
17891 gl_cv_solaris_64bit=no
17892 fi
17893 rm -f conftest*
17894
17895
17896 fi
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17898 $as_echo "$gl_cv_solaris_64bit" >&6; }
17899 if test $gl_cv_solaris_64bit = yes; then
17900 acl_libdirstem=lib/64
17901 case "$host_cpu" in
17902 sparc*) acl_libdirstem2=lib/sparcv9 ;;
17903 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17904 esac
17905 fi
17906 ;;
17907 *)
17908 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17909 if test -n "$searchpath"; then
17910 acl_save_IFS="${IFS= }"; IFS=":"
17911 for searchdir in $searchpath; do
17912 if test -d "$searchdir"; then
17913 case "$searchdir" in
17914 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17915 */../ | */.. )
17916 # Better ignore directories of this form. They are misleading.
17917 ;;
17918 *) searchdir=`cd "$searchdir" && pwd`
17919 case "$searchdir" in
17920 */lib64 ) acl_libdirstem=lib64 ;;
17921 esac ;;
17922 esac
17923 fi
17924 done
17925 IFS="$acl_save_IFS"
17926 fi
17927 ;;
17928 esac
17929 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942 use_additional=yes
17943
17944 acl_save_prefix="$prefix"
17945 prefix="$acl_final_prefix"
17946 acl_save_exec_prefix="$exec_prefix"
17947 exec_prefix="$acl_final_exec_prefix"
17948
17949 eval additional_includedir=\"$includedir\"
17950 eval additional_libdir=\"$libdir\"
17951
17952 exec_prefix="$acl_save_exec_prefix"
17953 prefix="$acl_save_prefix"
17954
17955
17956 # Check whether --with-libiconv-prefix was given.
17957 if test "${with_libiconv_prefix+set}" = set; then :
17958 withval=$with_libiconv_prefix;
17959 if test "X$withval" = "Xno"; then
17960 use_additional=no
17961 else
17962 if test "X$withval" = "X"; then
17963
17964 acl_save_prefix="$prefix"
17965 prefix="$acl_final_prefix"
17966 acl_save_exec_prefix="$exec_prefix"
17967 exec_prefix="$acl_final_exec_prefix"
17968
17969 eval additional_includedir=\"$includedir\"
17970 eval additional_libdir=\"$libdir\"
17971
17972 exec_prefix="$acl_save_exec_prefix"
17973 prefix="$acl_save_prefix"
17974
17975 else
17976 additional_includedir="$withval/include"
17977 additional_libdir="$withval/$acl_libdirstem"
17978 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17979 && ! test -d "$withval/$acl_libdirstem"; then
17980 additional_libdir="$withval/$acl_libdirstem2"
17981 fi
17982 fi
17983 fi
17984
17985 fi
17986
17987 LIBICONV=
17988 LTLIBICONV=
17989 INCICONV=
17990 LIBICONV_PREFIX=
17991 HAVE_LIBICONV=
17992 rpathdirs=
17993 ltrpathdirs=
17994 names_already_handled=
17995 names_next_round='iconv '
17996 while test -n "$names_next_round"; do
17997 names_this_round="$names_next_round"
17998 names_next_round=
17999 for name in $names_this_round; do
18000 already_handled=
18001 for n in $names_already_handled; do
18002 if test "$n" = "$name"; then
18003 already_handled=yes
18004 break
18005 fi
18006 done
18007 if test -z "$already_handled"; then
18008 names_already_handled="$names_already_handled $name"
18009 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18010 eval value=\"\$HAVE_LIB$uppername\"
18011 if test -n "$value"; then
18012 if test "$value" = yes; then
18013 eval value=\"\$LIB$uppername\"
18014 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18015 eval value=\"\$LTLIB$uppername\"
18016 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18017 else
18018 :
18019 fi
18020 else
18021 found_dir=
18022 found_la=
18023 found_so=
18024 found_a=
18025 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18026 if test -n "$acl_shlibext"; then
18027 shrext=".$acl_shlibext" # typically: shrext=.so
18028 else
18029 shrext=
18030 fi
18031 if test $use_additional = yes; then
18032 dir="$additional_libdir"
18033 if test -n "$acl_shlibext"; then
18034 if test -f "$dir/$libname$shrext"; then
18035 found_dir="$dir"
18036 found_so="$dir/$libname$shrext"
18037 else
18038 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18039 ver=`(cd "$dir" && \
18040 for f in "$libname$shrext".*; do echo "$f"; done \
18041 | sed -e "s,^$libname$shrext\\\\.,," \
18042 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18043 | sed 1q ) 2>/dev/null`
18044 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18045 found_dir="$dir"
18046 found_so="$dir/$libname$shrext.$ver"
18047 fi
18048 else
18049 eval library_names=\"$acl_library_names_spec\"
18050 for f in $library_names; do
18051 if test -f "$dir/$f"; then
18052 found_dir="$dir"
18053 found_so="$dir/$f"
18054 break
18055 fi
18056 done
18057 fi
18058 fi
18059 fi
18060 if test "X$found_dir" = "X"; then
18061 if test -f "$dir/$libname.$acl_libext"; then
18062 found_dir="$dir"
18063 found_a="$dir/$libname.$acl_libext"
18064 fi
18065 fi
18066 if test "X$found_dir" != "X"; then
18067 if test -f "$dir/$libname.la"; then
18068 found_la="$dir/$libname.la"
18069 fi
18070 fi
18071 fi
18072 if test "X$found_dir" = "X"; then
18073 for x in $LDFLAGS $LTLIBICONV; do
18074
18075 acl_save_prefix="$prefix"
18076 prefix="$acl_final_prefix"
18077 acl_save_exec_prefix="$exec_prefix"
18078 exec_prefix="$acl_final_exec_prefix"
18079 eval x=\"$x\"
18080 exec_prefix="$acl_save_exec_prefix"
18081 prefix="$acl_save_prefix"
18082
18083 case "$x" in
18084 -L*)
18085 dir=`echo "X$x" | sed -e 's/^X-L//'`
18086 if test -n "$acl_shlibext"; then
18087 if test -f "$dir/$libname$shrext"; then
18088 found_dir="$dir"
18089 found_so="$dir/$libname$shrext"
18090 else
18091 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18092 ver=`(cd "$dir" && \
18093 for f in "$libname$shrext".*; do echo "$f"; done \
18094 | sed -e "s,^$libname$shrext\\\\.,," \
18095 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18096 | sed 1q ) 2>/dev/null`
18097 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18098 found_dir="$dir"
18099 found_so="$dir/$libname$shrext.$ver"
18100 fi
18101 else
18102 eval library_names=\"$acl_library_names_spec\"
18103 for f in $library_names; do
18104 if test -f "$dir/$f"; then
18105 found_dir="$dir"
18106 found_so="$dir/$f"
18107 break
18108 fi
18109 done
18110 fi
18111 fi
18112 fi
18113 if test "X$found_dir" = "X"; then
18114 if test -f "$dir/$libname.$acl_libext"; then
18115 found_dir="$dir"
18116 found_a="$dir/$libname.$acl_libext"
18117 fi
18118 fi
18119 if test "X$found_dir" != "X"; then
18120 if test -f "$dir/$libname.la"; then
18121 found_la="$dir/$libname.la"
18122 fi
18123 fi
18124 ;;
18125 esac
18126 if test "X$found_dir" != "X"; then
18127 break
18128 fi
18129 done
18130 fi
18131 if test "X$found_dir" != "X"; then
18132 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18133 if test "X$found_so" != "X"; then
18134 if test "$enable_rpath" = no \
18135 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18136 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18138 else
18139 haveit=
18140 for x in $ltrpathdirs; do
18141 if test "X$x" = "X$found_dir"; then
18142 haveit=yes
18143 break
18144 fi
18145 done
18146 if test -z "$haveit"; then
18147 ltrpathdirs="$ltrpathdirs $found_dir"
18148 fi
18149 if test "$acl_hardcode_direct" = yes; then
18150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18151 else
18152 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18153 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18154 haveit=
18155 for x in $rpathdirs; do
18156 if test "X$x" = "X$found_dir"; then
18157 haveit=yes
18158 break
18159 fi
18160 done
18161 if test -z "$haveit"; then
18162 rpathdirs="$rpathdirs $found_dir"
18163 fi
18164 else
18165 haveit=
18166 for x in $LDFLAGS $LIBICONV; do
18167
18168 acl_save_prefix="$prefix"
18169 prefix="$acl_final_prefix"
18170 acl_save_exec_prefix="$exec_prefix"
18171 exec_prefix="$acl_final_exec_prefix"
18172 eval x=\"$x\"
18173 exec_prefix="$acl_save_exec_prefix"
18174 prefix="$acl_save_prefix"
18175
18176 if test "X$x" = "X-L$found_dir"; then
18177 haveit=yes
18178 break
18179 fi
18180 done
18181 if test -z "$haveit"; then
18182 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18183 fi
18184 if test "$acl_hardcode_minus_L" != no; then
18185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18186 else
18187 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18188 fi
18189 fi
18190 fi
18191 fi
18192 else
18193 if test "X$found_a" != "X"; then
18194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18195 else
18196 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18197 fi
18198 fi
18199 additional_includedir=
18200 case "$found_dir" in
18201 */$acl_libdirstem | */$acl_libdirstem/)
18202 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18203 if test "$name" = 'iconv'; then
18204 LIBICONV_PREFIX="$basedir"
18205 fi
18206 additional_includedir="$basedir/include"
18207 ;;
18208 */$acl_libdirstem2 | */$acl_libdirstem2/)
18209 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18210 if test "$name" = 'iconv'; then
18211 LIBICONV_PREFIX="$basedir"
18212 fi
18213 additional_includedir="$basedir/include"
18214 ;;
18215 esac
18216 if test "X$additional_includedir" != "X"; then
18217 if test "X$additional_includedir" != "X/usr/include"; then
18218 haveit=
18219 if test "X$additional_includedir" = "X/usr/local/include"; then
18220 if test -n "$GCC"; then
18221 case $host_os in
18222 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18223 esac
18224 fi
18225 fi
18226 if test -z "$haveit"; then
18227 for x in $CPPFLAGS $INCICONV; do
18228
18229 acl_save_prefix="$prefix"
18230 prefix="$acl_final_prefix"
18231 acl_save_exec_prefix="$exec_prefix"
18232 exec_prefix="$acl_final_exec_prefix"
18233 eval x=\"$x\"
18234 exec_prefix="$acl_save_exec_prefix"
18235 prefix="$acl_save_prefix"
18236
18237 if test "X$x" = "X-I$additional_includedir"; then
18238 haveit=yes
18239 break
18240 fi
18241 done
18242 if test -z "$haveit"; then
18243 if test -d "$additional_includedir"; then
18244 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18245 fi
18246 fi
18247 fi
18248 fi
18249 fi
18250 if test -n "$found_la"; then
18251 save_libdir="$libdir"
18252 case "$found_la" in
18253 */* | *\\*) . "$found_la" ;;
18254 *) . "./$found_la" ;;
18255 esac
18256 libdir="$save_libdir"
18257 for dep in $dependency_libs; do
18258 case "$dep" in
18259 -L*)
18260 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18261 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18262 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18263 haveit=
18264 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18265 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18266 if test -n "$GCC"; then
18267 case $host_os in
18268 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18269 esac
18270 fi
18271 fi
18272 if test -z "$haveit"; then
18273 haveit=
18274 for x in $LDFLAGS $LIBICONV; do
18275
18276 acl_save_prefix="$prefix"
18277 prefix="$acl_final_prefix"
18278 acl_save_exec_prefix="$exec_prefix"
18279 exec_prefix="$acl_final_exec_prefix"
18280 eval x=\"$x\"
18281 exec_prefix="$acl_save_exec_prefix"
18282 prefix="$acl_save_prefix"
18283
18284 if test "X$x" = "X-L$additional_libdir"; then
18285 haveit=yes
18286 break
18287 fi
18288 done
18289 if test -z "$haveit"; then
18290 if test -d "$additional_libdir"; then
18291 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18292 fi
18293 fi
18294 haveit=
18295 for x in $LDFLAGS $LTLIBICONV; do
18296
18297 acl_save_prefix="$prefix"
18298 prefix="$acl_final_prefix"
18299 acl_save_exec_prefix="$exec_prefix"
18300 exec_prefix="$acl_final_exec_prefix"
18301 eval x=\"$x\"
18302 exec_prefix="$acl_save_exec_prefix"
18303 prefix="$acl_save_prefix"
18304
18305 if test "X$x" = "X-L$additional_libdir"; then
18306 haveit=yes
18307 break
18308 fi
18309 done
18310 if test -z "$haveit"; then
18311 if test -d "$additional_libdir"; then
18312 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18313 fi
18314 fi
18315 fi
18316 fi
18317 ;;
18318 -R*)
18319 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18320 if test "$enable_rpath" != no; then
18321 haveit=
18322 for x in $rpathdirs; do
18323 if test "X$x" = "X$dir"; then
18324 haveit=yes
18325 break
18326 fi
18327 done
18328 if test -z "$haveit"; then
18329 rpathdirs="$rpathdirs $dir"
18330 fi
18331 haveit=
18332 for x in $ltrpathdirs; do
18333 if test "X$x" = "X$dir"; then
18334 haveit=yes
18335 break
18336 fi
18337 done
18338 if test -z "$haveit"; then
18339 ltrpathdirs="$ltrpathdirs $dir"
18340 fi
18341 fi
18342 ;;
18343 -l*)
18344 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18345 ;;
18346 *.la)
18347 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18348 ;;
18349 *)
18350 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18352 ;;
18353 esac
18354 done
18355 fi
18356 else
18357 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18358 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18359 fi
18360 fi
18361 fi
18362 done
18363 done
18364 if test "X$rpathdirs" != "X"; then
18365 if test -n "$acl_hardcode_libdir_separator"; then
18366 alldirs=
18367 for found_dir in $rpathdirs; do
18368 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18369 done
18370 acl_save_libdir="$libdir"
18371 libdir="$alldirs"
18372 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18373 libdir="$acl_save_libdir"
18374 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18375 else
18376 for found_dir in $rpathdirs; do
18377 acl_save_libdir="$libdir"
18378 libdir="$found_dir"
18379 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18380 libdir="$acl_save_libdir"
18381 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18382 done
18383 fi
18384 fi
18385 if test "X$ltrpathdirs" != "X"; then
18386 for found_dir in $ltrpathdirs; do
18387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18388 done
18389 fi
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402 am_save_CPPFLAGS="$CPPFLAGS"
18403
18404 for element in $INCICONV; do
18405 haveit=
18406 for x in $CPPFLAGS; do
18407
18408 acl_save_prefix="$prefix"
18409 prefix="$acl_final_prefix"
18410 acl_save_exec_prefix="$exec_prefix"
18411 exec_prefix="$acl_final_exec_prefix"
18412 eval x=\"$x\"
18413 exec_prefix="$acl_save_exec_prefix"
18414 prefix="$acl_save_prefix"
18415
18416 if test "X$x" = "X$element"; then
18417 haveit=yes
18418 break
18419 fi
18420 done
18421 if test -z "$haveit"; then
18422 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18423 fi
18424 done
18425
18426
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18428 $as_echo_n "checking for iconv... " >&6; }
18429 if test "${am_cv_func_iconv+set}" = set; then :
18430 $as_echo_n "(cached) " >&6
18431 else
18432
18433 am_cv_func_iconv="no, consider installing GNU libiconv"
18434 am_cv_lib_iconv=no
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #include <stdlib.h>
18438 #include <iconv.h>
18439 int
18440 main ()
18441 {
18442 iconv_t cd = iconv_open("","");
18443 iconv(cd,NULL,NULL,NULL,NULL);
18444 iconv_close(cd);
18445 ;
18446 return 0;
18447 }
18448 _ACEOF
18449 if ac_fn_c_try_link "$LINENO"; then :
18450 am_cv_func_iconv=yes
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454 if test "$am_cv_func_iconv" != yes; then
18455 am_save_LIBS="$LIBS"
18456 LIBS="$LIBS $LIBICONV"
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459 #include <stdlib.h>
18460 #include <iconv.h>
18461 int
18462 main ()
18463 {
18464 iconv_t cd = iconv_open("","");
18465 iconv(cd,NULL,NULL,NULL,NULL);
18466 iconv_close(cd);
18467 ;
18468 return 0;
18469 }
18470 _ACEOF
18471 if ac_fn_c_try_link "$LINENO"; then :
18472 am_cv_lib_iconv=yes
18473 am_cv_func_iconv=yes
18474 fi
18475 rm -f core conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18477 LIBS="$am_save_LIBS"
18478 fi
18479
18480 fi
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18482 $as_echo "$am_cv_func_iconv" >&6; }
18483 if test "$am_cv_func_iconv" = yes; then
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18485 $as_echo_n "checking for working iconv... " >&6; }
18486 if test "${am_cv_func_iconv_works+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489
18490 am_save_LIBS="$LIBS"
18491 if test $am_cv_lib_iconv = yes; then
18492 LIBS="$LIBS $LIBICONV"
18493 fi
18494 if test "$cross_compiling" = yes; then :
18495 case "$host_os" in
18496 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18497 *) am_cv_func_iconv_works="guessing yes" ;;
18498 esac
18499 else
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502
18503 #include <iconv.h>
18504 #include <string.h>
18505 int main ()
18506 {
18507 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18508 returns. */
18509 {
18510 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18511 if (cd_utf8_to_88591 != (iconv_t)(-1))
18512 {
18513 static const char input[] = "\342\202\254"; /* EURO SIGN */
18514 char buf[10];
18515 const char *inptr = input;
18516 size_t inbytesleft = strlen (input);
18517 char *outptr = buf;
18518 size_t outbytesleft = sizeof (buf);
18519 size_t res = iconv (cd_utf8_to_88591,
18520 (char **) &inptr, &inbytesleft,
18521 &outptr, &outbytesleft);
18522 if (res == 0)
18523 return 1;
18524 }
18525 }
18526 /* Test against Solaris 10 bug: Failures are not distinguishable from
18527 successful returns. */
18528 {
18529 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18530 if (cd_ascii_to_88591 != (iconv_t)(-1))
18531 {
18532 static const char input[] = "\263";
18533 char buf[10];
18534 const char *inptr = input;
18535 size_t inbytesleft = strlen (input);
18536 char *outptr = buf;
18537 size_t outbytesleft = sizeof (buf);
18538 size_t res = iconv (cd_ascii_to_88591,
18539 (char **) &inptr, &inbytesleft,
18540 &outptr, &outbytesleft);
18541 if (res == 0)
18542 return 1;
18543 }
18544 }
18545 #if 0 /* This bug could be worked around by the caller. */
18546 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
18547 {
18548 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18549 if (cd_88591_to_utf8 != (iconv_t)(-1))
18550 {
18551 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18552 char buf[50];
18553 const char *inptr = input;
18554 size_t inbytesleft = strlen (input);
18555 char *outptr = buf;
18556 size_t outbytesleft = sizeof (buf);
18557 size_t res = iconv (cd_88591_to_utf8,
18558 (char **) &inptr, &inbytesleft,
18559 &outptr, &outbytesleft);
18560 if ((int)res > 0)
18561 return 1;
18562 }
18563 }
18564 #endif
18565 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18566 provided. */
18567 if (/* Try standardized names. */
18568 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18569 /* Try IRIX, OSF/1 names. */
18570 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18571 /* Try AIX names. */
18572 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18573 /* Try HP-UX names. */
18574 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18575 return 1;
18576 return 0;
18577 }
18578 _ACEOF
18579 if ac_fn_c_try_run "$LINENO"; then :
18580 am_cv_func_iconv_works=yes
18581 else
18582 am_cv_func_iconv_works=no
18583 fi
18584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18585 conftest.$ac_objext conftest.beam conftest.$ac_ext
18586 fi
18587
18588 LIBS="$am_save_LIBS"
18589
18590 fi
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18592 $as_echo "$am_cv_func_iconv_works" >&6; }
18593 case "$am_cv_func_iconv_works" in
18594 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18595 *) am_func_iconv=yes ;;
18596 esac
18597 else
18598 am_func_iconv=no am_cv_lib_iconv=no
18599 fi
18600 if test "$am_func_iconv" = yes; then
18601
18602 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18603
18604 fi
18605 if test "$am_cv_lib_iconv" = yes; then
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18607 $as_echo_n "checking how to link with libiconv... " >&6; }
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18609 $as_echo "$LIBICONV" >&6; }
18610 else
18611 CPPFLAGS="$am_save_CPPFLAGS"
18612 LIBICONV=
18613 LTLIBICONV=
18614 fi
18615
18616
18617
18618 if test "$am_cv_func_iconv" = yes; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18620 $as_echo_n "checking for iconv declaration... " >&6; }
18621 if test "${am_cv_proto_iconv+set}" = set; then :
18622 $as_echo_n "(cached) " >&6
18623 else
18624
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h. */
18627
18628 #include <stdlib.h>
18629 #include <iconv.h>
18630 extern
18631 #ifdef __cplusplus
18632 "C"
18633 #endif
18634 #if defined(__STDC__) || defined(__cplusplus)
18635 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18636 #else
18637 size_t iconv();
18638 #endif
18639
18640 int
18641 main ()
18642 {
18643
18644 ;
18645 return 0;
18646 }
18647 _ACEOF
18648 if ac_fn_c_try_compile "$LINENO"; then :
18649 am_cv_proto_iconv_arg1=""
18650 else
18651 am_cv_proto_iconv_arg1="const"
18652 fi
18653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 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);"
18655 fi
18656
18657 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18659 $am_cv_proto_iconv" >&5
18660 $as_echo "
18661 $am_cv_proto_iconv" >&6; }
18662
18663 cat >>confdefs.h <<_ACEOF
18664 #define ICONV_CONST $am_cv_proto_iconv_arg1
18665 _ACEOF
18666
18667 fi
18668
18669 case $am_cv_func_iconv in #(
18670 yes) :
18671 ;; #(
18672 *) :
18673
18674 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
18675 case $cy_iconv_prefix_arg in #(
18676 -I*) :
18677
18678
18679 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
18680 haveit=
18681 for x in $cy_iconv_prefixes; do
18682
18683 acl_save_prefix="$prefix"
18684 prefix="$acl_final_prefix"
18685 acl_save_exec_prefix="$exec_prefix"
18686 exec_prefix="$acl_final_exec_prefix"
18687 eval x=\"$x\"
18688 exec_prefix="$acl_save_exec_prefix"
18689 prefix="$acl_save_prefix"
18690
18691 if test "X$x" = "X$element"; then
18692 haveit=yes
18693 break
18694 fi
18695 done
18696 if test -z "$haveit"; then
18697 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18698 fi
18699 done
18700
18701 ;; #(
18702 -L*) :
18703
18704
18705 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
18706 haveit=
18707 for x in $cy_iconv_prefixes; do
18708
18709 acl_save_prefix="$prefix"
18710 prefix="$acl_final_prefix"
18711 acl_save_exec_prefix="$exec_prefix"
18712 exec_prefix="$acl_final_exec_prefix"
18713 eval x=\"$x\"
18714 exec_prefix="$acl_save_exec_prefix"
18715 prefix="$acl_save_prefix"
18716
18717 if test "X$x" = "X$element"; then
18718 haveit=yes
18719 break
18720 fi
18721 done
18722 if test -z "$haveit"; then
18723 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
18724 fi
18725 done
18726
18727 ;; #(
18728 *) :
18729 ;;
18730 esac
18731 done
18732 for with_libiconv_prefix in $cy_iconv_prefixes; do
18733 { am_cv_func_iconv=; unset am_cv_func_iconv;}
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745 use_additional=yes
18746
18747 acl_save_prefix="$prefix"
18748 prefix="$acl_final_prefix"
18749 acl_save_exec_prefix="$exec_prefix"
18750 exec_prefix="$acl_final_exec_prefix"
18751
18752 eval additional_includedir=\"$includedir\"
18753 eval additional_libdir=\"$libdir\"
18754
18755 exec_prefix="$acl_save_exec_prefix"
18756 prefix="$acl_save_prefix"
18757
18758
18759 # Check whether --with-libiconv-prefix was given.
18760 if test "${with_libiconv_prefix+set}" = set; then :
18761 withval=$with_libiconv_prefix;
18762 if test "X$withval" = "Xno"; then
18763 use_additional=no
18764 else
18765 if test "X$withval" = "X"; then
18766
18767 acl_save_prefix="$prefix"
18768 prefix="$acl_final_prefix"
18769 acl_save_exec_prefix="$exec_prefix"
18770 exec_prefix="$acl_final_exec_prefix"
18771
18772 eval additional_includedir=\"$includedir\"
18773 eval additional_libdir=\"$libdir\"
18774
18775 exec_prefix="$acl_save_exec_prefix"
18776 prefix="$acl_save_prefix"
18777
18778 else
18779 additional_includedir="$withval/include"
18780 additional_libdir="$withval/$acl_libdirstem"
18781 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18782 && ! test -d "$withval/$acl_libdirstem"; then
18783 additional_libdir="$withval/$acl_libdirstem2"
18784 fi
18785 fi
18786 fi
18787
18788 fi
18789
18790 LIBICONV=
18791 LTLIBICONV=
18792 INCICONV=
18793 LIBICONV_PREFIX=
18794 HAVE_LIBICONV=
18795 rpathdirs=
18796 ltrpathdirs=
18797 names_already_handled=
18798 names_next_round='iconv '
18799 while test -n "$names_next_round"; do
18800 names_this_round="$names_next_round"
18801 names_next_round=
18802 for name in $names_this_round; do
18803 already_handled=
18804 for n in $names_already_handled; do
18805 if test "$n" = "$name"; then
18806 already_handled=yes
18807 break
18808 fi
18809 done
18810 if test -z "$already_handled"; then
18811 names_already_handled="$names_already_handled $name"
18812 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18813 eval value=\"\$HAVE_LIB$uppername\"
18814 if test -n "$value"; then
18815 if test "$value" = yes; then
18816 eval value=\"\$LIB$uppername\"
18817 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18818 eval value=\"\$LTLIB$uppername\"
18819 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18820 else
18821 :
18822 fi
18823 else
18824 found_dir=
18825 found_la=
18826 found_so=
18827 found_a=
18828 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18829 if test -n "$acl_shlibext"; then
18830 shrext=".$acl_shlibext" # typically: shrext=.so
18831 else
18832 shrext=
18833 fi
18834 if test $use_additional = yes; then
18835 dir="$additional_libdir"
18836 if test -n "$acl_shlibext"; then
18837 if test -f "$dir/$libname$shrext"; then
18838 found_dir="$dir"
18839 found_so="$dir/$libname$shrext"
18840 else
18841 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18842 ver=`(cd "$dir" && \
18843 for f in "$libname$shrext".*; do echo "$f"; done \
18844 | sed -e "s,^$libname$shrext\\\\.,," \
18845 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18846 | sed 1q ) 2>/dev/null`
18847 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18848 found_dir="$dir"
18849 found_so="$dir/$libname$shrext.$ver"
18850 fi
18851 else
18852 eval library_names=\"$acl_library_names_spec\"
18853 for f in $library_names; do
18854 if test -f "$dir/$f"; then
18855 found_dir="$dir"
18856 found_so="$dir/$f"
18857 break
18858 fi
18859 done
18860 fi
18861 fi
18862 fi
18863 if test "X$found_dir" = "X"; then
18864 if test -f "$dir/$libname.$acl_libext"; then
18865 found_dir="$dir"
18866 found_a="$dir/$libname.$acl_libext"
18867 fi
18868 fi
18869 if test "X$found_dir" != "X"; then
18870 if test -f "$dir/$libname.la"; then
18871 found_la="$dir/$libname.la"
18872 fi
18873 fi
18874 fi
18875 if test "X$found_dir" = "X"; then
18876 for x in $LDFLAGS $LTLIBICONV; do
18877
18878 acl_save_prefix="$prefix"
18879 prefix="$acl_final_prefix"
18880 acl_save_exec_prefix="$exec_prefix"
18881 exec_prefix="$acl_final_exec_prefix"
18882 eval x=\"$x\"
18883 exec_prefix="$acl_save_exec_prefix"
18884 prefix="$acl_save_prefix"
18885
18886 case "$x" in
18887 -L*)
18888 dir=`echo "X$x" | sed -e 's/^X-L//'`
18889 if test -n "$acl_shlibext"; then
18890 if test -f "$dir/$libname$shrext"; then
18891 found_dir="$dir"
18892 found_so="$dir/$libname$shrext"
18893 else
18894 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18895 ver=`(cd "$dir" && \
18896 for f in "$libname$shrext".*; do echo "$f"; done \
18897 | sed -e "s,^$libname$shrext\\\\.,," \
18898 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18899 | sed 1q ) 2>/dev/null`
18900 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18901 found_dir="$dir"
18902 found_so="$dir/$libname$shrext.$ver"
18903 fi
18904 else
18905 eval library_names=\"$acl_library_names_spec\"
18906 for f in $library_names; do
18907 if test -f "$dir/$f"; then
18908 found_dir="$dir"
18909 found_so="$dir/$f"
18910 break
18911 fi
18912 done
18913 fi
18914 fi
18915 fi
18916 if test "X$found_dir" = "X"; then
18917 if test -f "$dir/$libname.$acl_libext"; then
18918 found_dir="$dir"
18919 found_a="$dir/$libname.$acl_libext"
18920 fi
18921 fi
18922 if test "X$found_dir" != "X"; then
18923 if test -f "$dir/$libname.la"; then
18924 found_la="$dir/$libname.la"
18925 fi
18926 fi
18927 ;;
18928 esac
18929 if test "X$found_dir" != "X"; then
18930 break
18931 fi
18932 done
18933 fi
18934 if test "X$found_dir" != "X"; then
18935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18936 if test "X$found_so" != "X"; then
18937 if test "$enable_rpath" = no \
18938 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18939 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18941 else
18942 haveit=
18943 for x in $ltrpathdirs; do
18944 if test "X$x" = "X$found_dir"; then
18945 haveit=yes
18946 break
18947 fi
18948 done
18949 if test -z "$haveit"; then
18950 ltrpathdirs="$ltrpathdirs $found_dir"
18951 fi
18952 if test "$acl_hardcode_direct" = yes; then
18953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18954 else
18955 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18956 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18957 haveit=
18958 for x in $rpathdirs; do
18959 if test "X$x" = "X$found_dir"; then
18960 haveit=yes
18961 break
18962 fi
18963 done
18964 if test -z "$haveit"; then
18965 rpathdirs="$rpathdirs $found_dir"
18966 fi
18967 else
18968 haveit=
18969 for x in $LDFLAGS $LIBICONV; do
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 if test "X$x" = "X-L$found_dir"; then
18980 haveit=yes
18981 break
18982 fi
18983 done
18984 if test -z "$haveit"; then
18985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18986 fi
18987 if test "$acl_hardcode_minus_L" != no; then
18988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18989 else
18990 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18991 fi
18992 fi
18993 fi
18994 fi
18995 else
18996 if test "X$found_a" != "X"; then
18997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18998 else
18999 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19000 fi
19001 fi
19002 additional_includedir=
19003 case "$found_dir" in
19004 */$acl_libdirstem | */$acl_libdirstem/)
19005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19006 if test "$name" = 'iconv'; then
19007 LIBICONV_PREFIX="$basedir"
19008 fi
19009 additional_includedir="$basedir/include"
19010 ;;
19011 */$acl_libdirstem2 | */$acl_libdirstem2/)
19012 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19013 if test "$name" = 'iconv'; then
19014 LIBICONV_PREFIX="$basedir"
19015 fi
19016 additional_includedir="$basedir/include"
19017 ;;
19018 esac
19019 if test "X$additional_includedir" != "X"; then
19020 if test "X$additional_includedir" != "X/usr/include"; then
19021 haveit=
19022 if test "X$additional_includedir" = "X/usr/local/include"; then
19023 if test -n "$GCC"; then
19024 case $host_os in
19025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19026 esac
19027 fi
19028 fi
19029 if test -z "$haveit"; then
19030 for x in $CPPFLAGS $INCICONV; do
19031
19032 acl_save_prefix="$prefix"
19033 prefix="$acl_final_prefix"
19034 acl_save_exec_prefix="$exec_prefix"
19035 exec_prefix="$acl_final_exec_prefix"
19036 eval x=\"$x\"
19037 exec_prefix="$acl_save_exec_prefix"
19038 prefix="$acl_save_prefix"
19039
19040 if test "X$x" = "X-I$additional_includedir"; then
19041 haveit=yes
19042 break
19043 fi
19044 done
19045 if test -z "$haveit"; then
19046 if test -d "$additional_includedir"; then
19047 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19048 fi
19049 fi
19050 fi
19051 fi
19052 fi
19053 if test -n "$found_la"; then
19054 save_libdir="$libdir"
19055 case "$found_la" in
19056 */* | *\\*) . "$found_la" ;;
19057 *) . "./$found_la" ;;
19058 esac
19059 libdir="$save_libdir"
19060 for dep in $dependency_libs; do
19061 case "$dep" in
19062 -L*)
19063 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19064 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19065 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19066 haveit=
19067 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19068 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19069 if test -n "$GCC"; then
19070 case $host_os in
19071 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19072 esac
19073 fi
19074 fi
19075 if test -z "$haveit"; then
19076 haveit=
19077 for x in $LDFLAGS $LIBICONV; do
19078
19079 acl_save_prefix="$prefix"
19080 prefix="$acl_final_prefix"
19081 acl_save_exec_prefix="$exec_prefix"
19082 exec_prefix="$acl_final_exec_prefix"
19083 eval x=\"$x\"
19084 exec_prefix="$acl_save_exec_prefix"
19085 prefix="$acl_save_prefix"
19086
19087 if test "X$x" = "X-L$additional_libdir"; then
19088 haveit=yes
19089 break
19090 fi
19091 done
19092 if test -z "$haveit"; then
19093 if test -d "$additional_libdir"; then
19094 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19095 fi
19096 fi
19097 haveit=
19098 for x in $LDFLAGS $LTLIBICONV; do
19099
19100 acl_save_prefix="$prefix"
19101 prefix="$acl_final_prefix"
19102 acl_save_exec_prefix="$exec_prefix"
19103 exec_prefix="$acl_final_exec_prefix"
19104 eval x=\"$x\"
19105 exec_prefix="$acl_save_exec_prefix"
19106 prefix="$acl_save_prefix"
19107
19108 if test "X$x" = "X-L$additional_libdir"; then
19109 haveit=yes
19110 break
19111 fi
19112 done
19113 if test -z "$haveit"; then
19114 if test -d "$additional_libdir"; then
19115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19116 fi
19117 fi
19118 fi
19119 fi
19120 ;;
19121 -R*)
19122 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19123 if test "$enable_rpath" != no; then
19124 haveit=
19125 for x in $rpathdirs; do
19126 if test "X$x" = "X$dir"; then
19127 haveit=yes
19128 break
19129 fi
19130 done
19131 if test -z "$haveit"; then
19132 rpathdirs="$rpathdirs $dir"
19133 fi
19134 haveit=
19135 for x in $ltrpathdirs; do
19136 if test "X$x" = "X$dir"; then
19137 haveit=yes
19138 break
19139 fi
19140 done
19141 if test -z "$haveit"; then
19142 ltrpathdirs="$ltrpathdirs $dir"
19143 fi
19144 fi
19145 ;;
19146 -l*)
19147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19148 ;;
19149 *.la)
19150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19151 ;;
19152 *)
19153 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19155 ;;
19156 esac
19157 done
19158 fi
19159 else
19160 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19161 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19162 fi
19163 fi
19164 fi
19165 done
19166 done
19167 if test "X$rpathdirs" != "X"; then
19168 if test -n "$acl_hardcode_libdir_separator"; then
19169 alldirs=
19170 for found_dir in $rpathdirs; do
19171 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19172 done
19173 acl_save_libdir="$libdir"
19174 libdir="$alldirs"
19175 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19176 libdir="$acl_save_libdir"
19177 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19178 else
19179 for found_dir in $rpathdirs; do
19180 acl_save_libdir="$libdir"
19181 libdir="$found_dir"
19182 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19183 libdir="$acl_save_libdir"
19184 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19185 done
19186 fi
19187 fi
19188 if test "X$ltrpathdirs" != "X"; then
19189 for found_dir in $ltrpathdirs; do
19190 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19191 done
19192 fi
19193
19194
19195
19196
19197
19198
19199
19200
19201 done
19202 ;;
19203 esac
19204 case $am_cv_func_iconv in #(
19205 yes) :
19206 ;; #(
19207 *) :
19208 as_fn_error $? "You need iconv" "$LINENO" 5 ;;
19209 esac
19210 ac_ext=cpp
19211 ac_cpp='$CXXCPP $CPPFLAGS'
19212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19215
19216 SO=$acl_shlibext
19217
19218 if test "x$CY_OBJECTIVEC" = x1; then :
19219
19220 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19221 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19222
19223 if test -n "$ac_tool_prefix"; then
19224 for ac_prog in otool
19225 do
19226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19229 $as_echo_n "checking for $ac_word... " >&6; }
19230 if test "${ac_cv_prog__OTOOL+set}" = set; then :
19231 $as_echo_n "(cached) " >&6
19232 else
19233 if test -n "$_OTOOL"; then
19234 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
19235 else
19236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19237 for as_dir in $PATH
19238 do
19239 IFS=$as_save_IFS
19240 test -z "$as_dir" && as_dir=.
19241 for ac_exec_ext in '' $ac_executable_extensions; do
19242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19243 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
19244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19245 break 2
19246 fi
19247 done
19248 done
19249 IFS=$as_save_IFS
19250
19251 fi
19252 fi
19253 _OTOOL=$ac_cv_prog__OTOOL
19254 if test -n "$_OTOOL"; then
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
19256 $as_echo "$_OTOOL" >&6; }
19257 else
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 $as_echo "no" >&6; }
19260 fi
19261
19262
19263 test -n "$_OTOOL" && break
19264 done
19265 fi
19266 if test -z "$_OTOOL"; then
19267 ac_ct__OTOOL=$_OTOOL
19268 for ac_prog in otool
19269 do
19270 # Extract the first word of "$ac_prog", so it can be a program name with args.
19271 set dummy $ac_prog; ac_word=$2
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19273 $as_echo_n "checking for $ac_word... " >&6; }
19274 if test "${ac_cv_prog_ac_ct__OTOOL+set}" = set; then :
19275 $as_echo_n "(cached) " >&6
19276 else
19277 if test -n "$ac_ct__OTOOL"; then
19278 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
19279 else
19280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19281 for as_dir in $PATH
19282 do
19283 IFS=$as_save_IFS
19284 test -z "$as_dir" && as_dir=.
19285 for ac_exec_ext in '' $ac_executable_extensions; do
19286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19287 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
19288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19289 break 2
19290 fi
19291 done
19292 done
19293 IFS=$as_save_IFS
19294
19295 fi
19296 fi
19297 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
19298 if test -n "$ac_ct__OTOOL"; then
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
19300 $as_echo "$ac_ct__OTOOL" >&6; }
19301 else
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19303 $as_echo "no" >&6; }
19304 fi
19305
19306
19307 test -n "$ac_ct__OTOOL" && break
19308 done
19309
19310 if test "x$ac_ct__OTOOL" = x; then
19311 _OTOOL=""
19312 else
19313 case $cross_compiling:$ac_tool_warned in
19314 yes:)
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19317 ac_tool_warned=yes ;;
19318 esac
19319 _OTOOL=$ac_ct__OTOOL
19320 fi
19321 fi
19322
19323 if test "x$_OTOOL" = x; then :
19324 as_fn_error $? "You need otool" "$LINENO" 5
19325 fi
19326 if test -n "$ac_tool_prefix"; then
19327 for ac_prog in lipo
19328 do
19329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19332 $as_echo_n "checking for $ac_word... " >&6; }
19333 if test "${ac_cv_prog__LIPO+set}" = set; then :
19334 $as_echo_n "(cached) " >&6
19335 else
19336 if test -n "$_LIPO"; then
19337 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
19338 else
19339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340 for as_dir in $PATH
19341 do
19342 IFS=$as_save_IFS
19343 test -z "$as_dir" && as_dir=.
19344 for ac_exec_ext in '' $ac_executable_extensions; do
19345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19346 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
19347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19348 break 2
19349 fi
19350 done
19351 done
19352 IFS=$as_save_IFS
19353
19354 fi
19355 fi
19356 _LIPO=$ac_cv_prog__LIPO
19357 if test -n "$_LIPO"; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
19359 $as_echo "$_LIPO" >&6; }
19360 else
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19362 $as_echo "no" >&6; }
19363 fi
19364
19365
19366 test -n "$_LIPO" && break
19367 done
19368 fi
19369 if test -z "$_LIPO"; then
19370 ac_ct__LIPO=$_LIPO
19371 for ac_prog in lipo
19372 do
19373 # Extract the first word of "$ac_prog", so it can be a program name with args.
19374 set dummy $ac_prog; ac_word=$2
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19376 $as_echo_n "checking for $ac_word... " >&6; }
19377 if test "${ac_cv_prog_ac_ct__LIPO+set}" = set; then :
19378 $as_echo_n "(cached) " >&6
19379 else
19380 if test -n "$ac_ct__LIPO"; then
19381 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
19382 else
19383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19384 for as_dir in $PATH
19385 do
19386 IFS=$as_save_IFS
19387 test -z "$as_dir" && as_dir=.
19388 for ac_exec_ext in '' $ac_executable_extensions; do
19389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19390 ac_cv_prog_ac_ct__LIPO="$ac_prog"
19391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19392 break 2
19393 fi
19394 done
19395 done
19396 IFS=$as_save_IFS
19397
19398 fi
19399 fi
19400 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
19401 if test -n "$ac_ct__LIPO"; then
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
19403 $as_echo "$ac_ct__LIPO" >&6; }
19404 else
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 $as_echo "no" >&6; }
19407 fi
19408
19409
19410 test -n "$ac_ct__LIPO" && break
19411 done
19412
19413 if test "x$ac_ct__LIPO" = x; then
19414 _LIPO=""
19415 else
19416 case $cross_compiling:$ac_tool_warned in
19417 yes:)
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19420 ac_tool_warned=yes ;;
19421 esac
19422 _LIPO=$ac_ct__LIPO
19423 fi
19424 fi
19425
19426 if test "x$_LIPO" = x; then :
19427 as_fn_error $? "You need lipo" "$LINENO" 5
19428 fi
19429 if test -n "$ac_tool_prefix"; then
19430 for ac_prog in nm
19431 do
19432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19435 $as_echo_n "checking for $ac_word... " >&6; }
19436 if test "${ac_cv_prog__NM+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
19438 else
19439 if test -n "$_NM"; then
19440 ac_cv_prog__NM="$_NM" # Let the user override the test.
19441 else
19442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 for as_dir in $PATH
19444 do
19445 IFS=$as_save_IFS
19446 test -z "$as_dir" && as_dir=.
19447 for ac_exec_ext in '' $ac_executable_extensions; do
19448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19449 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
19450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19451 break 2
19452 fi
19453 done
19454 done
19455 IFS=$as_save_IFS
19456
19457 fi
19458 fi
19459 _NM=$ac_cv_prog__NM
19460 if test -n "$_NM"; then
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
19462 $as_echo "$_NM" >&6; }
19463 else
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465 $as_echo "no" >&6; }
19466 fi
19467
19468
19469 test -n "$_NM" && break
19470 done
19471 fi
19472 if test -z "$_NM"; then
19473 ac_ct__NM=$_NM
19474 for ac_prog in nm
19475 do
19476 # Extract the first word of "$ac_prog", so it can be a program name with args.
19477 set dummy $ac_prog; ac_word=$2
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19479 $as_echo_n "checking for $ac_word... " >&6; }
19480 if test "${ac_cv_prog_ac_ct__NM+set}" = set; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 if test -n "$ac_ct__NM"; then
19484 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
19485 else
19486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19487 for as_dir in $PATH
19488 do
19489 IFS=$as_save_IFS
19490 test -z "$as_dir" && as_dir=.
19491 for ac_exec_ext in '' $ac_executable_extensions; do
19492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19493 ac_cv_prog_ac_ct__NM="$ac_prog"
19494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19495 break 2
19496 fi
19497 done
19498 done
19499 IFS=$as_save_IFS
19500
19501 fi
19502 fi
19503 ac_ct__NM=$ac_cv_prog_ac_ct__NM
19504 if test -n "$ac_ct__NM"; then
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
19506 $as_echo "$ac_ct__NM" >&6; }
19507 else
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19509 $as_echo "no" >&6; }
19510 fi
19511
19512
19513 test -n "$ac_ct__NM" && break
19514 done
19515
19516 if test "x$ac_ct__NM" = x; then
19517 _NM=""
19518 else
19519 case $cross_compiling:$ac_tool_warned in
19520 yes:)
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19523 ac_tool_warned=yes ;;
19524 esac
19525 _NM=$ac_ct__NM
19526 fi
19527 fi
19528
19529 if test "x$_NM" = x; then :
19530 as_fn_error $? "You need nm" "$LINENO" 5
19531 fi
19532 CY_OBJECTIVEC_MACH=1
19533
19534 CY_ATTACH_GROUP=procmod
19535
19536
19537 fi
19538
19539
19540
19541 fi
19542 if test "x$GMAKE" != xmake; then :
19543
19544 ac_config_files="$ac_config_files Makefile"
19545
19546
19547 fi
19548 ac_config_files="$ac_config_files GNUmakefile"
19549
19550 cat >confcache <<\_ACEOF
19551 # This file is a shell script that caches the results of configure
19552 # tests run on this system so they can be shared between configure
19553 # scripts and configure runs, see configure's option --config-cache.
19554 # It is not useful on other systems. If it contains results you don't
19555 # want to keep, you may remove or edit it.
19556 #
19557 # config.status only pays attention to the cache file if you give it
19558 # the --recheck option to rerun configure.
19559 #
19560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19562 # following values.
19563
19564 _ACEOF
19565
19566 # The following way of writing the cache mishandles newlines in values,
19567 # but we know of no workaround that is simple, portable, and efficient.
19568 # So, we kill variables containing newlines.
19569 # Ultrix sh set writes to stderr and can't be redirected directly,
19570 # and sets the high bit in the cache file unless we assign to the vars.
19571 (
19572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19573 eval ac_val=\$$ac_var
19574 case $ac_val in #(
19575 *${as_nl}*)
19576 case $ac_var in #(
19577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19579 esac
19580 case $ac_var in #(
19581 _ | IFS | as_nl) ;; #(
19582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19583 *) { eval $ac_var=; unset $ac_var;} ;;
19584 esac ;;
19585 esac
19586 done
19587
19588 (set) 2>&1 |
19589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19590 *${as_nl}ac_space=\ *)
19591 # `set' does not quote correctly, so add quotes: double-quote
19592 # substitution turns \\\\ into \\, and sed turns \\ into \.
19593 sed -n \
19594 "s/'/'\\\\''/g;
19595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19596 ;; #(
19597 *)
19598 # `set' quotes correctly as required by POSIX, so do not add quotes.
19599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19600 ;;
19601 esac |
19602 sort
19603 ) |
19604 sed '
19605 /^ac_cv_env_/b end
19606 t clear
19607 :clear
19608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19609 t end
19610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19611 :end' >>confcache
19612 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19613 if test -w "$cache_file"; then
19614 test "x$cache_file" != "x/dev/null" &&
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19616 $as_echo "$as_me: updating cache $cache_file" >&6;}
19617 cat confcache >$cache_file
19618 else
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19620 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19621 fi
19622 fi
19623 rm -f confcache
19624
19625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19626 # Let make expand exec_prefix.
19627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19628
19629 # Transform confdefs.h into DEFS.
19630 # Protect against shell expansion while executing Makefile rules.
19631 # Protect against Makefile macro expansion.
19632 #
19633 # If the first sed substitution is executed (which looks for macros that
19634 # take arguments), then branch to the quote section. Otherwise,
19635 # look for a macro that doesn't take arguments.
19636 ac_script='
19637 :mline
19638 /\\$/{
19639 N
19640 s,\\\n,,
19641 b mline
19642 }
19643 t clear
19644 :clear
19645 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19646 t quote
19647 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19648 t quote
19649 b any
19650 :quote
19651 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19652 s/\[/\\&/g
19653 s/\]/\\&/g
19654 s/\$/$$/g
19655 H
19656 :any
19657 ${
19658 g
19659 s/^\n//
19660 s/\n/ /g
19661 p
19662 }
19663 '
19664 DEFS=`sed -n "$ac_script" confdefs.h`
19665
19666
19667 ac_libobjs=
19668 ac_ltlibobjs=
19669 U=
19670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19671 # 1. Remove the extension, and $U if already installed.
19672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19675 # will be set to the directory where LIBOBJS objects are built.
19676 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19677 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19678 done
19679 LIBOBJS=$ac_libobjs
19680
19681 LTLIBOBJS=$ac_ltlibobjs
19682
19683
19684
19685 : ${CONFIG_STATUS=./config.status}
19686 ac_write_fail=0
19687 ac_clean_files_save=$ac_clean_files
19688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19690 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19691 as_write_fail=0
19692 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19693 #! $SHELL
19694 # Generated by $as_me.
19695 # Run this file to recreate the current configuration.
19696 # Compiler output produced by configure, useful for debugging
19697 # configure, is in config.log if it exists.
19698
19699 debug=false
19700 ac_cs_recheck=false
19701 ac_cs_silent=false
19702
19703 SHELL=\${CONFIG_SHELL-$SHELL}
19704 export SHELL
19705 _ASEOF
19706 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19707 ## -------------------- ##
19708 ## M4sh Initialization. ##
19709 ## -------------------- ##
19710
19711 # Be more Bourne compatible
19712 DUALCASE=1; export DUALCASE # for MKS sh
19713 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19714 emulate sh
19715 NULLCMD=:
19716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19717 # is contrary to our usage. Disable this feature.
19718 alias -g '${1+"$@"}'='"$@"'
19719 setopt NO_GLOB_SUBST
19720 else
19721 case `(set -o) 2>/dev/null` in #(
19722 *posix*) :
19723 set -o posix ;; #(
19724 *) :
19725 ;;
19726 esac
19727 fi
19728
19729
19730 as_nl='
19731 '
19732 export as_nl
19733 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19734 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19737 # Prefer a ksh shell builtin over an external printf program on Solaris,
19738 # but without wasting forks for bash or zsh.
19739 if test -z "$BASH_VERSION$ZSH_VERSION" \
19740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19741 as_echo='print -r --'
19742 as_echo_n='print -rn --'
19743 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19744 as_echo='printf %s\n'
19745 as_echo_n='printf %s'
19746 else
19747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19749 as_echo_n='/usr/ucb/echo -n'
19750 else
19751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19752 as_echo_n_body='eval
19753 arg=$1;
19754 case $arg in #(
19755 *"$as_nl"*)
19756 expr "X$arg" : "X\\(.*\\)$as_nl";
19757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19758 esac;
19759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19760 '
19761 export as_echo_n_body
19762 as_echo_n='sh -c $as_echo_n_body as_echo'
19763 fi
19764 export as_echo_body
19765 as_echo='sh -c $as_echo_body as_echo'
19766 fi
19767
19768 # The user is always right.
19769 if test "${PATH_SEPARATOR+set}" != set; then
19770 PATH_SEPARATOR=:
19771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19773 PATH_SEPARATOR=';'
19774 }
19775 fi
19776
19777
19778 # IFS
19779 # We need space, tab and new line, in precisely that order. Quoting is
19780 # there to prevent editors from complaining about space-tab.
19781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19782 # splitting by setting IFS to empty value.)
19783 IFS=" "" $as_nl"
19784
19785 # Find who we are. Look in the path if we contain no directory separator.
19786 case $0 in #((
19787 *[\\/]* ) as_myself=$0 ;;
19788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789 for as_dir in $PATH
19790 do
19791 IFS=$as_save_IFS
19792 test -z "$as_dir" && as_dir=.
19793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19794 done
19795 IFS=$as_save_IFS
19796
19797 ;;
19798 esac
19799 # We did not find ourselves, most probably we were run as `sh COMMAND'
19800 # in which case we are not to be found in the path.
19801 if test "x$as_myself" = x; then
19802 as_myself=$0
19803 fi
19804 if test ! -f "$as_myself"; then
19805 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19806 exit 1
19807 fi
19808
19809 # Unset variables that we do not need and which cause bugs (e.g. in
19810 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19811 # suppresses any "Segmentation fault" message there. '((' could
19812 # trigger a bug in pdksh 5.2.14.
19813 for as_var in BASH_ENV ENV MAIL MAILPATH
19814 do eval test x\${$as_var+set} = xset \
19815 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19816 done
19817 PS1='$ '
19818 PS2='> '
19819 PS4='+ '
19820
19821 # NLS nuisances.
19822 LC_ALL=C
19823 export LC_ALL
19824 LANGUAGE=C
19825 export LANGUAGE
19826
19827 # CDPATH.
19828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19829
19830
19831 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19832 # ----------------------------------------
19833 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19834 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19835 # script with STATUS, using 1 if that was 0.
19836 as_fn_error ()
19837 {
19838 as_status=$1; test $as_status -eq 0 && as_status=1
19839 if test "$4"; then
19840 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19841 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19842 fi
19843 $as_echo "$as_me: error: $2" >&2
19844 as_fn_exit $as_status
19845 } # as_fn_error
19846
19847
19848 # as_fn_set_status STATUS
19849 # -----------------------
19850 # Set $? to STATUS, without forking.
19851 as_fn_set_status ()
19852 {
19853 return $1
19854 } # as_fn_set_status
19855
19856 # as_fn_exit STATUS
19857 # -----------------
19858 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19859 as_fn_exit ()
19860 {
19861 set +e
19862 as_fn_set_status $1
19863 exit $1
19864 } # as_fn_exit
19865
19866 # as_fn_unset VAR
19867 # ---------------
19868 # Portably unset VAR.
19869 as_fn_unset ()
19870 {
19871 { eval $1=; unset $1;}
19872 }
19873 as_unset=as_fn_unset
19874 # as_fn_append VAR VALUE
19875 # ----------------------
19876 # Append the text in VALUE to the end of the definition contained in VAR. Take
19877 # advantage of any shell optimizations that allow amortized linear growth over
19878 # repeated appends, instead of the typical quadratic growth present in naive
19879 # implementations.
19880 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19881 eval 'as_fn_append ()
19882 {
19883 eval $1+=\$2
19884 }'
19885 else
19886 as_fn_append ()
19887 {
19888 eval $1=\$$1\$2
19889 }
19890 fi # as_fn_append
19891
19892 # as_fn_arith ARG...
19893 # ------------------
19894 # Perform arithmetic evaluation on the ARGs, and store the result in the
19895 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19896 # must be portable across $(()) and expr.
19897 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19898 eval 'as_fn_arith ()
19899 {
19900 as_val=$(( $* ))
19901 }'
19902 else
19903 as_fn_arith ()
19904 {
19905 as_val=`expr "$@" || test $? -eq 1`
19906 }
19907 fi # as_fn_arith
19908
19909
19910 if expr a : '\(a\)' >/dev/null 2>&1 &&
19911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19912 as_expr=expr
19913 else
19914 as_expr=false
19915 fi
19916
19917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19918 as_basename=basename
19919 else
19920 as_basename=false
19921 fi
19922
19923 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19924 as_dirname=dirname
19925 else
19926 as_dirname=false
19927 fi
19928
19929 as_me=`$as_basename -- "$0" ||
19930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19931 X"$0" : 'X\(//\)$' \| \
19932 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19933 $as_echo X/"$0" |
19934 sed '/^.*\/\([^/][^/]*\)\/*$/{
19935 s//\1/
19936 q
19937 }
19938 /^X\/\(\/\/\)$/{
19939 s//\1/
19940 q
19941 }
19942 /^X\/\(\/\).*/{
19943 s//\1/
19944 q
19945 }
19946 s/.*/./; q'`
19947
19948 # Avoid depending upon Character Ranges.
19949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19952 as_cr_digits='0123456789'
19953 as_cr_alnum=$as_cr_Letters$as_cr_digits
19954
19955 ECHO_C= ECHO_N= ECHO_T=
19956 case `echo -n x` in #(((((
19957 -n*)
19958 case `echo 'xy\c'` in
19959 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19960 xy) ECHO_C='\c';;
19961 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19962 ECHO_T=' ';;
19963 esac;;
19964 *)
19965 ECHO_N='-n';;
19966 esac
19967
19968 rm -f conf$$ conf$$.exe conf$$.file
19969 if test -d conf$$.dir; then
19970 rm -f conf$$.dir/conf$$.file
19971 else
19972 rm -f conf$$.dir
19973 mkdir conf$$.dir 2>/dev/null
19974 fi
19975 if (echo >conf$$.file) 2>/dev/null; then
19976 if ln -s conf$$.file conf$$ 2>/dev/null; then
19977 as_ln_s='ln -s'
19978 # ... but there are two gotchas:
19979 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19980 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19981 # In both cases, we have to default to `cp -p'.
19982 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19983 as_ln_s='cp -p'
19984 elif ln conf$$.file conf$$ 2>/dev/null; then
19985 as_ln_s=ln
19986 else
19987 as_ln_s='cp -p'
19988 fi
19989 else
19990 as_ln_s='cp -p'
19991 fi
19992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19993 rmdir conf$$.dir 2>/dev/null
19994
19995
19996 # as_fn_mkdir_p
19997 # -------------
19998 # Create "$as_dir" as a directory, including parents if necessary.
19999 as_fn_mkdir_p ()
20000 {
20001
20002 case $as_dir in #(
20003 -*) as_dir=./$as_dir;;
20004 esac
20005 test -d "$as_dir" || eval $as_mkdir_p || {
20006 as_dirs=
20007 while :; do
20008 case $as_dir in #(
20009 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20010 *) as_qdir=$as_dir;;
20011 esac
20012 as_dirs="'$as_qdir' $as_dirs"
20013 as_dir=`$as_dirname -- "$as_dir" ||
20014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20015 X"$as_dir" : 'X\(//\)[^/]' \| \
20016 X"$as_dir" : 'X\(//\)$' \| \
20017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20018 $as_echo X"$as_dir" |
20019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20020 s//\1/
20021 q
20022 }
20023 /^X\(\/\/\)[^/].*/{
20024 s//\1/
20025 q
20026 }
20027 /^X\(\/\/\)$/{
20028 s//\1/
20029 q
20030 }
20031 /^X\(\/\).*/{
20032 s//\1/
20033 q
20034 }
20035 s/.*/./; q'`
20036 test -d "$as_dir" && break
20037 done
20038 test -z "$as_dirs" || eval "mkdir $as_dirs"
20039 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20040
20041
20042 } # as_fn_mkdir_p
20043 if mkdir -p . 2>/dev/null; then
20044 as_mkdir_p='mkdir -p "$as_dir"'
20045 else
20046 test -d ./-p && rmdir ./-p
20047 as_mkdir_p=false
20048 fi
20049
20050 if test -x / >/dev/null 2>&1; then
20051 as_test_x='test -x'
20052 else
20053 if ls -dL / >/dev/null 2>&1; then
20054 as_ls_L_option=L
20055 else
20056 as_ls_L_option=
20057 fi
20058 as_test_x='
20059 eval sh -c '\''
20060 if test -d "$1"; then
20061 test -d "$1/.";
20062 else
20063 case $1 in #(
20064 -*)set "./$1";;
20065 esac;
20066 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20067 ???[sx]*):;;*)false;;esac;fi
20068 '\'' sh
20069 '
20070 fi
20071 as_executable_p=$as_test_x
20072
20073 # Sed expression to map a string onto a valid CPP name.
20074 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20075
20076 # Sed expression to map a string onto a valid variable name.
20077 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20078
20079
20080 exec 6>&1
20081 ## ----------------------------------- ##
20082 ## Main body of $CONFIG_STATUS script. ##
20083 ## ----------------------------------- ##
20084 _ASEOF
20085 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20086
20087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20088 # Save the log message, to keep $0 and so on meaningful, and to
20089 # report actual input values of CONFIG_FILES etc. instead of their
20090 # values after options handling.
20091 ac_log="
20092 This file was extended by Cycript $as_me 0.9, which was
20093 generated by GNU Autoconf 2.67. Invocation command line was
20094
20095 CONFIG_FILES = $CONFIG_FILES
20096 CONFIG_HEADERS = $CONFIG_HEADERS
20097 CONFIG_LINKS = $CONFIG_LINKS
20098 CONFIG_COMMANDS = $CONFIG_COMMANDS
20099 $ $0 $@
20100
20101 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20102 "
20103
20104 _ACEOF
20105
20106 case $ac_config_files in *"
20107 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20108 esac
20109
20110
20111
20112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20113 # Files that config.status was made for.
20114 config_files="$ac_config_files"
20115 config_commands="$ac_config_commands"
20116
20117 _ACEOF
20118
20119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20120 ac_cs_usage="\
20121 \`$as_me' instantiates files and other configuration actions
20122 from templates according to the current configuration. Unless the files
20123 and actions are specified as TAGs, all are instantiated by default.
20124
20125 Usage: $0 [OPTION]... [TAG]...
20126
20127 -h, --help print this help, then exit
20128 -V, --version print version number and configuration settings, then exit
20129 --config print configuration, then exit
20130 -q, --quiet, --silent
20131 do not print progress messages
20132 -d, --debug don't remove temporary files
20133 --recheck update $as_me by reconfiguring in the same conditions
20134 --file=FILE[:TEMPLATE]
20135 instantiate the configuration file FILE
20136
20137 Configuration files:
20138 $config_files
20139
20140 Configuration commands:
20141 $config_commands
20142
20143 Report bugs to <saurik@saurik.com>.
20144 Cycript home page: <http://www.cycript.org/>."
20145
20146 _ACEOF
20147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20148 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20149 ac_cs_version="\\
20150 Cycript config.status 0.9
20151 configured by $0, generated by GNU Autoconf 2.67,
20152 with options \\"\$ac_cs_config\\"
20153
20154 Copyright (C) 2010 Free Software Foundation, Inc.
20155 This config.status script is free software; the Free Software Foundation
20156 gives unlimited permission to copy, distribute and modify it."
20157
20158 ac_pwd='$ac_pwd'
20159 srcdir='$srcdir'
20160 INSTALL='$INSTALL'
20161 test -n "\$AWK" || AWK=awk
20162 _ACEOF
20163
20164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20165 # The default lists apply if the user does not specify any file.
20166 ac_need_defaults=:
20167 while test $# != 0
20168 do
20169 case $1 in
20170 --*=?*)
20171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20173 ac_shift=:
20174 ;;
20175 --*=)
20176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20177 ac_optarg=
20178 ac_shift=:
20179 ;;
20180 *)
20181 ac_option=$1
20182 ac_optarg=$2
20183 ac_shift=shift
20184 ;;
20185 esac
20186
20187 case $ac_option in
20188 # Handling of the options.
20189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20190 ac_cs_recheck=: ;;
20191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20192 $as_echo "$ac_cs_version"; exit ;;
20193 --config | --confi | --conf | --con | --co | --c )
20194 $as_echo "$ac_cs_config"; exit ;;
20195 --debug | --debu | --deb | --de | --d | -d )
20196 debug=: ;;
20197 --file | --fil | --fi | --f )
20198 $ac_shift
20199 case $ac_optarg in
20200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20201 '') as_fn_error $? "missing file argument" ;;
20202 esac
20203 as_fn_append CONFIG_FILES " '$ac_optarg'"
20204 ac_need_defaults=false;;
20205 --he | --h | --help | --hel | -h )
20206 $as_echo "$ac_cs_usage"; exit ;;
20207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20209 ac_cs_silent=: ;;
20210
20211 # This is an error.
20212 -*) as_fn_error $? "unrecognized option: \`$1'
20213 Try \`$0 --help' for more information." ;;
20214
20215 *) as_fn_append ac_config_targets " $1"
20216 ac_need_defaults=false ;;
20217
20218 esac
20219 shift
20220 done
20221
20222 ac_configure_extra_args=
20223
20224 if $ac_cs_silent; then
20225 exec 6>/dev/null
20226 ac_configure_extra_args="$ac_configure_extra_args --silent"
20227 fi
20228
20229 _ACEOF
20230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20231 if \$ac_cs_recheck; then
20232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20233 shift
20234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20235 CONFIG_SHELL='$SHELL'
20236 export CONFIG_SHELL
20237 exec "\$@"
20238 fi
20239
20240 _ACEOF
20241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20242 exec 5>>config.log
20243 {
20244 echo
20245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20246 ## Running $as_me. ##
20247 _ASBOX
20248 $as_echo "$ac_log"
20249 } >&5
20250
20251 _ACEOF
20252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20253 #
20254 # INIT-COMMANDS
20255 #
20256
20257
20258 # The HP-UX ksh and POSIX shell print the target directory to stdout
20259 # if CDPATH is set.
20260 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20261
20262 sed_quote_subst='$sed_quote_subst'
20263 double_quote_subst='$double_quote_subst'
20264 delay_variable_subst='$delay_variable_subst'
20265 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20266 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20267 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20268 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20269 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20270 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20271 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20272 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20273 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20274 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20275 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20276 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20277 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20278 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20279 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20280 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20281 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20282 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20283 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20284 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20285 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20286 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20287 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20288 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20289 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20290 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20291 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20292 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20293 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20294 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20295 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20296 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20297 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20298 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20299 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20300 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20301 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20302 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20303 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20304 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20305 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20306 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20307 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20308 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20309 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"`'
20310 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"`'
20311 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20312 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20313 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20314 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20315 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20316 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20317 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20318 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20319 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20320 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20321 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20322 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20323 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20324 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20325 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20326 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20327 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20328 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20329 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20330 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20331 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20332 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20333 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20334 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20335 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20336 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20337 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20338 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20339 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20340 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20341 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20342 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20343 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20344 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20345 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20346 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20347 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20348 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20349 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20350 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20351 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20352 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20353 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20354 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20355 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20356 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20357 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20358 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20359 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20360 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20361 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20362 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20363 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20364 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20365 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20366 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20367 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20368 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20369 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20370 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20371 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20372 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20373 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20374 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20375 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20376 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20377 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20378 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20379 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20380 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20381 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20382 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20383 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20384 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20385 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20386 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20387 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20388 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20389 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20390 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20391 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20392 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20393 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20394 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20395 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20396 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20397 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20398 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20399 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20400 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20401 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20402 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20403 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20404 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20405 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20406 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20407 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20408 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20409 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20410 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20411 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20412 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20413 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20414 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20415 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20416 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20417 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20418 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20419 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20420 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20421 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20422 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20423 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20424 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20425 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20426 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20427 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20428 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20429 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20430 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20431 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20432 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20433 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20434 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20435 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20436
20437 LTCC='$LTCC'
20438 LTCFLAGS='$LTCFLAGS'
20439 compiler='$compiler_DEFAULT'
20440
20441 # Quote evaled strings.
20442 for var in SED \
20443 GREP \
20444 EGREP \
20445 FGREP \
20446 LD \
20447 NM \
20448 LN_S \
20449 lt_SP2NL \
20450 lt_NL2SP \
20451 reload_flag \
20452 OBJDUMP \
20453 deplibs_check_method \
20454 file_magic_cmd \
20455 AR \
20456 AR_FLAGS \
20457 STRIP \
20458 RANLIB \
20459 CC \
20460 CFLAGS \
20461 compiler \
20462 lt_cv_sys_global_symbol_pipe \
20463 lt_cv_sys_global_symbol_to_cdecl \
20464 lt_cv_sys_global_symbol_to_c_name_address \
20465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20466 SHELL \
20467 ECHO \
20468 lt_prog_compiler_no_builtin_flag \
20469 lt_prog_compiler_wl \
20470 lt_prog_compiler_pic \
20471 lt_prog_compiler_static \
20472 lt_cv_prog_compiler_c_o \
20473 need_locks \
20474 DSYMUTIL \
20475 NMEDIT \
20476 LIPO \
20477 OTOOL \
20478 OTOOL64 \
20479 shrext_cmds \
20480 export_dynamic_flag_spec \
20481 whole_archive_flag_spec \
20482 compiler_needs_object \
20483 with_gnu_ld \
20484 allow_undefined_flag \
20485 no_undefined_flag \
20486 hardcode_libdir_flag_spec \
20487 hardcode_libdir_flag_spec_ld \
20488 hardcode_libdir_separator \
20489 fix_srcfile_path \
20490 exclude_expsyms \
20491 include_expsyms \
20492 file_list_spec \
20493 variables_saved_for_relink \
20494 libname_spec \
20495 library_names_spec \
20496 soname_spec \
20497 finish_eval \
20498 old_striplib \
20499 striplib \
20500 compiler_lib_search_dirs \
20501 predep_objects \
20502 postdep_objects \
20503 predeps \
20504 postdeps \
20505 compiler_lib_search_path \
20506 LD_CXX \
20507 compiler_CXX \
20508 lt_prog_compiler_no_builtin_flag_CXX \
20509 lt_prog_compiler_wl_CXX \
20510 lt_prog_compiler_pic_CXX \
20511 lt_prog_compiler_static_CXX \
20512 lt_cv_prog_compiler_c_o_CXX \
20513 export_dynamic_flag_spec_CXX \
20514 whole_archive_flag_spec_CXX \
20515 compiler_needs_object_CXX \
20516 with_gnu_ld_CXX \
20517 allow_undefined_flag_CXX \
20518 no_undefined_flag_CXX \
20519 hardcode_libdir_flag_spec_CXX \
20520 hardcode_libdir_flag_spec_ld_CXX \
20521 hardcode_libdir_separator_CXX \
20522 fix_srcfile_path_CXX \
20523 exclude_expsyms_CXX \
20524 include_expsyms_CXX \
20525 file_list_spec_CXX \
20526 compiler_lib_search_dirs_CXX \
20527 predep_objects_CXX \
20528 postdep_objects_CXX \
20529 predeps_CXX \
20530 postdeps_CXX \
20531 compiler_lib_search_path_CXX; do
20532 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20533 *[\\\\\\\`\\"\\\$]*)
20534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20535 ;;
20536 *)
20537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20538 ;;
20539 esac
20540 done
20541
20542 # Double-quote double-evaled strings.
20543 for var in reload_cmds \
20544 old_postinstall_cmds \
20545 old_postuninstall_cmds \
20546 old_archive_cmds \
20547 extract_expsyms_cmds \
20548 old_archive_from_new_cmds \
20549 old_archive_from_expsyms_cmds \
20550 archive_cmds \
20551 archive_expsym_cmds \
20552 module_cmds \
20553 module_expsym_cmds \
20554 export_symbols_cmds \
20555 prelink_cmds \
20556 postinstall_cmds \
20557 postuninstall_cmds \
20558 finish_cmds \
20559 sys_lib_search_path_spec \
20560 sys_lib_dlsearch_path_spec \
20561 old_archive_cmds_CXX \
20562 old_archive_from_new_cmds_CXX \
20563 old_archive_from_expsyms_cmds_CXX \
20564 archive_cmds_CXX \
20565 archive_expsym_cmds_CXX \
20566 module_cmds_CXX \
20567 module_expsym_cmds_CXX \
20568 export_symbols_cmds_CXX \
20569 prelink_cmds_CXX; do
20570 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20571 *[\\\\\\\`\\"\\\$]*)
20572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20573 ;;
20574 *)
20575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20576 ;;
20577 esac
20578 done
20579
20580 # Fix-up fallback echo if it was mangled by the above quoting rules.
20581 case \$lt_ECHO in
20582 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20583 ;;
20584 esac
20585
20586 ac_aux_dir='$ac_aux_dir'
20587 xsi_shell='$xsi_shell'
20588 lt_shell_append='$lt_shell_append'
20589
20590 # See if we are running on zsh, and set the options which allow our
20591 # commands through without removal of \ escapes INIT.
20592 if test -n "\${ZSH_VERSION+set}" ; then
20593 setopt NO_GLOB_SUBST
20594 fi
20595
20596
20597 PACKAGE='$PACKAGE'
20598 VERSION='$VERSION'
20599 TIMESTAMP='$TIMESTAMP'
20600 RM='$RM'
20601 ofile='$ofile'
20602
20603
20604
20605
20606
20607
20608 _ACEOF
20609
20610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20611
20612 # Handling of arguments.
20613 for ac_config_target in $ac_config_targets
20614 do
20615 case $ac_config_target in
20616 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20618 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
20619
20620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20621 esac
20622 done
20623
20624
20625 # If the user did not use the arguments to specify the items to instantiate,
20626 # then the envvar interface is used. Set only those that are not.
20627 # We use the long form for the default assignment because of an extremely
20628 # bizarre bug on SunOS 4.1.3.
20629 if $ac_need_defaults; then
20630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20631 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20632 fi
20633
20634 # Have a temporary directory for convenience. Make it in the build tree
20635 # simply because there is no reason against having it here, and in addition,
20636 # creating and moving files from /tmp can sometimes cause problems.
20637 # Hook for its removal unless debugging.
20638 # Note that there is a small window in which the directory will not be cleaned:
20639 # after its creation but before its name has been assigned to `$tmp'.
20640 $debug ||
20641 {
20642 tmp=
20643 trap 'exit_status=$?
20644 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20645 ' 0
20646 trap 'as_fn_exit 1' 1 2 13 15
20647 }
20648 # Create a (secure) tmp directory for tmp files.
20649
20650 {
20651 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20652 test -n "$tmp" && test -d "$tmp"
20653 } ||
20654 {
20655 tmp=./conf$$-$RANDOM
20656 (umask 077 && mkdir "$tmp")
20657 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20658
20659 # Set up the scripts for CONFIG_FILES section.
20660 # No need to generate them if there are no CONFIG_FILES.
20661 # This happens for instance with `./config.status config.h'.
20662 if test -n "$CONFIG_FILES"; then
20663
20664
20665 ac_cr=`echo X | tr X '\015'`
20666 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20667 # But we know of no other shell where ac_cr would be empty at this
20668 # point, so we can use a bashism as a fallback.
20669 if test "x$ac_cr" = x; then
20670 eval ac_cr=\$\'\\r\'
20671 fi
20672 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20673 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20674 ac_cs_awk_cr='\\r'
20675 else
20676 ac_cs_awk_cr=$ac_cr
20677 fi
20678
20679 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20680 _ACEOF
20681
20682
20683 {
20684 echo "cat >conf$$subs.awk <<_ACEOF" &&
20685 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20686 echo "_ACEOF"
20687 } >conf$$subs.sh ||
20688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20689 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20690 ac_delim='%!_!# '
20691 for ac_last_try in false false false false false :; do
20692 . ./conf$$subs.sh ||
20693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20694
20695 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20696 if test $ac_delim_n = $ac_delim_num; then
20697 break
20698 elif $ac_last_try; then
20699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20700 else
20701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20702 fi
20703 done
20704 rm -f conf$$subs.sh
20705
20706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20708 _ACEOF
20709 sed -n '
20710 h
20711 s/^/S["/; s/!.*/"]=/
20712 p
20713 g
20714 s/^[^!]*!//
20715 :repl
20716 t repl
20717 s/'"$ac_delim"'$//
20718 t delim
20719 :nl
20720 h
20721 s/\(.\{148\}\)..*/\1/
20722 t more1
20723 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20724 p
20725 n
20726 b repl
20727 :more1
20728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20729 p
20730 g
20731 s/.\{148\}//
20732 t nl
20733 :delim
20734 h
20735 s/\(.\{148\}\)..*/\1/
20736 t more2
20737 s/["\\]/\\&/g; s/^/"/; s/$/"/
20738 p
20739 b
20740 :more2
20741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20742 p
20743 g
20744 s/.\{148\}//
20745 t delim
20746 ' <conf$$subs.awk | sed '
20747 /^[^""]/{
20748 N
20749 s/\n//
20750 }
20751 ' >>$CONFIG_STATUS || ac_write_fail=1
20752 rm -f conf$$subs.awk
20753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20754 _ACAWK
20755 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20756 for (key in S) S_is_set[key] = 1
20757 FS = "\a"
20758
20759 }
20760 {
20761 line = $ 0
20762 nfields = split(line, field, "@")
20763 substed = 0
20764 len = length(field[1])
20765 for (i = 2; i < nfields; i++) {
20766 key = field[i]
20767 keylen = length(key)
20768 if (S_is_set[key]) {
20769 value = S[key]
20770 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20771 len += length(value) + length(field[++i])
20772 substed = 1
20773 } else
20774 len += 1 + keylen
20775 }
20776
20777 print line
20778 }
20779
20780 _ACAWK
20781 _ACEOF
20782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20783 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20784 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20785 else
20786 cat
20787 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20788 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20789 _ACEOF
20790
20791 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20792 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20793 # trailing colons and then remove the whole line if VPATH becomes empty
20794 # (actually we leave an empty line to preserve line numbers).
20795 if test "x$srcdir" = x.; then
20796 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20797 h
20798 s///
20799 s/^/:/
20800 s/[ ]*$/:/
20801 s/:\$(srcdir):/:/g
20802 s/:\${srcdir}:/:/g
20803 s/:@srcdir@:/:/g
20804 s/^:*//
20805 s/:*$//
20806 x
20807 s/\(=[ ]*\).*/\1/
20808 G
20809 s/\n//
20810 s/^[^=]*=[ ]*$//
20811 }'
20812 fi
20813
20814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20815 fi # test -n "$CONFIG_FILES"
20816
20817
20818 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20819 shift
20820 for ac_tag
20821 do
20822 case $ac_tag in
20823 :[FHLC]) ac_mode=$ac_tag; continue;;
20824 esac
20825 case $ac_mode$ac_tag in
20826 :[FHL]*:*);;
20827 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20828 :[FH]-) ac_tag=-:-;;
20829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20830 esac
20831 ac_save_IFS=$IFS
20832 IFS=:
20833 set x $ac_tag
20834 IFS=$ac_save_IFS
20835 shift
20836 ac_file=$1
20837 shift
20838
20839 case $ac_mode in
20840 :L) ac_source=$1;;
20841 :[FH])
20842 ac_file_inputs=
20843 for ac_f
20844 do
20845 case $ac_f in
20846 -) ac_f="$tmp/stdin";;
20847 *) # Look for the file first in the build tree, then in the source tree
20848 # (if the path is not absolute). The absolute path cannot be DOS-style,
20849 # because $ac_f cannot contain `:'.
20850 test -f "$ac_f" ||
20851 case $ac_f in
20852 [\\/$]*) false;;
20853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20854 esac ||
20855 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20856 esac
20857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20858 as_fn_append ac_file_inputs " '$ac_f'"
20859 done
20860
20861 # Let's still pretend it is `configure' which instantiates (i.e., don't
20862 # use $as_me), people would be surprised to read:
20863 # /* config.h. Generated by config.status. */
20864 configure_input='Generated from '`
20865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20866 `' by configure.'
20867 if test x"$ac_file" != x-; then
20868 configure_input="$ac_file. $configure_input"
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20870 $as_echo "$as_me: creating $ac_file" >&6;}
20871 fi
20872 # Neutralize special characters interpreted by sed in replacement strings.
20873 case $configure_input in #(
20874 *\&* | *\|* | *\\* )
20875 ac_sed_conf_input=`$as_echo "$configure_input" |
20876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20877 *) ac_sed_conf_input=$configure_input;;
20878 esac
20879
20880 case $ac_tag in
20881 *:-:* | *:-) cat >"$tmp/stdin" \
20882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20883 esac
20884 ;;
20885 esac
20886
20887 ac_dir=`$as_dirname -- "$ac_file" ||
20888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20889 X"$ac_file" : 'X\(//\)[^/]' \| \
20890 X"$ac_file" : 'X\(//\)$' \| \
20891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20892 $as_echo X"$ac_file" |
20893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20894 s//\1/
20895 q
20896 }
20897 /^X\(\/\/\)[^/].*/{
20898 s//\1/
20899 q
20900 }
20901 /^X\(\/\/\)$/{
20902 s//\1/
20903 q
20904 }
20905 /^X\(\/\).*/{
20906 s//\1/
20907 q
20908 }
20909 s/.*/./; q'`
20910 as_dir="$ac_dir"; as_fn_mkdir_p
20911 ac_builddir=.
20912
20913 case "$ac_dir" in
20914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20915 *)
20916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20917 # A ".." for each directory in $ac_dir_suffix.
20918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20919 case $ac_top_builddir_sub in
20920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20922 esac ;;
20923 esac
20924 ac_abs_top_builddir=$ac_pwd
20925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20926 # for backward compatibility:
20927 ac_top_builddir=$ac_top_build_prefix
20928
20929 case $srcdir in
20930 .) # We are building in place.
20931 ac_srcdir=.
20932 ac_top_srcdir=$ac_top_builddir_sub
20933 ac_abs_top_srcdir=$ac_pwd ;;
20934 [\\/]* | ?:[\\/]* ) # Absolute name.
20935 ac_srcdir=$srcdir$ac_dir_suffix;
20936 ac_top_srcdir=$srcdir
20937 ac_abs_top_srcdir=$srcdir ;;
20938 *) # Relative name.
20939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20940 ac_top_srcdir=$ac_top_build_prefix$srcdir
20941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20942 esac
20943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20944
20945
20946 case $ac_mode in
20947 :F)
20948 #
20949 # CONFIG_FILE
20950 #
20951
20952 case $INSTALL in
20953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20955 esac
20956 _ACEOF
20957
20958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20959 # If the template does not know about datarootdir, expand it.
20960 # FIXME: This hack should be removed a few years after 2.60.
20961 ac_datarootdir_hack=; ac_datarootdir_seen=
20962 ac_sed_dataroot='
20963 /datarootdir/ {
20964 p
20965 q
20966 }
20967 /@datadir@/p
20968 /@docdir@/p
20969 /@infodir@/p
20970 /@localedir@/p
20971 /@mandir@/p'
20972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20973 *datarootdir*) ac_datarootdir_seen=yes;;
20974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20977 _ACEOF
20978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20979 ac_datarootdir_hack='
20980 s&@datadir@&$datadir&g
20981 s&@docdir@&$docdir&g
20982 s&@infodir@&$infodir&g
20983 s&@localedir@&$localedir&g
20984 s&@mandir@&$mandir&g
20985 s&\\\${datarootdir}&$datarootdir&g' ;;
20986 esac
20987 _ACEOF
20988
20989 # Neutralize VPATH when `$srcdir' = `.'.
20990 # Shell code in configure.ac might set extrasub.
20991 # FIXME: do we really want to maintain this feature?
20992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20993 ac_sed_extra="$ac_vpsub
20994 $extrasub
20995 _ACEOF
20996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997 :t
20998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20999 s|@configure_input@|$ac_sed_conf_input|;t t
21000 s&@top_builddir@&$ac_top_builddir_sub&;t t
21001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21002 s&@srcdir@&$ac_srcdir&;t t
21003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21004 s&@top_srcdir@&$ac_top_srcdir&;t t
21005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21006 s&@builddir@&$ac_builddir&;t t
21007 s&@abs_builddir@&$ac_abs_builddir&;t t
21008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21009 s&@INSTALL@&$ac_INSTALL&;t t
21010 $ac_datarootdir_hack
21011 "
21012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21014
21015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21019 which seems to be undefined. Please make sure it is defined" >&5
21020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21021 which seems to be undefined. Please make sure it is defined" >&2;}
21022
21023 rm -f "$tmp/stdin"
21024 case $ac_file in
21025 -) cat "$tmp/out" && rm -f "$tmp/out";;
21026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21027 esac \
21028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21029 ;;
21030
21031
21032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21033 $as_echo "$as_me: executing $ac_file commands" >&6;}
21034 ;;
21035 esac
21036
21037
21038 case $ac_file$ac_mode in
21039 "libtool":C)
21040
21041 # See if we are running on zsh, and set the options which allow our
21042 # commands through without removal of \ escapes.
21043 if test -n "${ZSH_VERSION+set}" ; then
21044 setopt NO_GLOB_SUBST
21045 fi
21046
21047 cfgfile="${ofile}T"
21048 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21049 $RM "$cfgfile"
21050
21051 cat <<_LT_EOF >> "$cfgfile"
21052 #! $SHELL
21053
21054 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21055 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21056 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21057 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21058 #
21059 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21060 # 2006, 2007, 2008 Free Software Foundation, Inc.
21061 # Written by Gordon Matzigkeit, 1996
21062 #
21063 # This file is part of GNU Libtool.
21064 #
21065 # GNU Libtool is free software; you can redistribute it and/or
21066 # modify it under the terms of the GNU General Public License as
21067 # published by the Free Software Foundation; either version 2 of
21068 # the License, or (at your option) any later version.
21069 #
21070 # As a special exception to the GNU General Public License,
21071 # if you distribute this file as part of a program or library that
21072 # is built using GNU Libtool, you may include this file under the
21073 # same distribution terms that you use for the rest of that program.
21074 #
21075 # GNU Libtool is distributed in the hope that it will be useful,
21076 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21077 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21078 # GNU General Public License for more details.
21079 #
21080 # You should have received a copy of the GNU General Public License
21081 # along with GNU Libtool; see the file COPYING. If not, a copy
21082 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21083 # obtained by writing to the Free Software Foundation, Inc.,
21084 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21085
21086
21087 # The names of the tagged configurations supported by this script.
21088 available_tags="CXX "
21089
21090 # ### BEGIN LIBTOOL CONFIG
21091
21092 # Which release of libtool.m4 was used?
21093 macro_version=$macro_version
21094 macro_revision=$macro_revision
21095
21096 # Whether or not to build static libraries.
21097 build_old_libs=$enable_static
21098
21099 # Whether or not to build shared libraries.
21100 build_libtool_libs=$enable_shared
21101
21102 # What type of objects to build.
21103 pic_mode=$pic_mode
21104
21105 # Whether or not to optimize for fast installation.
21106 fast_install=$enable_fast_install
21107
21108 # The host system.
21109 host_alias=$host_alias
21110 host=$host
21111 host_os=$host_os
21112
21113 # The build system.
21114 build_alias=$build_alias
21115 build=$build
21116 build_os=$build_os
21117
21118 # A sed program that does not truncate output.
21119 SED=$lt_SED
21120
21121 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21122 Xsed="\$SED -e 1s/^X//"
21123
21124 # A grep program that handles long lines.
21125 GREP=$lt_GREP
21126
21127 # An ERE matcher.
21128 EGREP=$lt_EGREP
21129
21130 # A literal string matcher.
21131 FGREP=$lt_FGREP
21132
21133 # A BSD- or MS-compatible name lister.
21134 NM=$lt_NM
21135
21136 # Whether we need soft or hard links.
21137 LN_S=$lt_LN_S
21138
21139 # What is the maximum length of a command?
21140 max_cmd_len=$max_cmd_len
21141
21142 # Object file suffix (normally "o").
21143 objext=$ac_objext
21144
21145 # Executable file suffix (normally "").
21146 exeext=$exeext
21147
21148 # whether the shell understands "unset".
21149 lt_unset=$lt_unset
21150
21151 # turn spaces into newlines.
21152 SP2NL=$lt_lt_SP2NL
21153
21154 # turn newlines into spaces.
21155 NL2SP=$lt_lt_NL2SP
21156
21157 # How to create reloadable object files.
21158 reload_flag=$lt_reload_flag
21159 reload_cmds=$lt_reload_cmds
21160
21161 # An object symbol dumper.
21162 OBJDUMP=$lt_OBJDUMP
21163
21164 # Method to check whether dependent libraries are shared objects.
21165 deplibs_check_method=$lt_deplibs_check_method
21166
21167 # Command to use when deplibs_check_method == "file_magic".
21168 file_magic_cmd=$lt_file_magic_cmd
21169
21170 # The archiver.
21171 AR=$lt_AR
21172 AR_FLAGS=$lt_AR_FLAGS
21173
21174 # A symbol stripping program.
21175 STRIP=$lt_STRIP
21176
21177 # Commands used to install an old-style archive.
21178 RANLIB=$lt_RANLIB
21179 old_postinstall_cmds=$lt_old_postinstall_cmds
21180 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21181
21182 # A C compiler.
21183 LTCC=$lt_CC
21184
21185 # LTCC compiler flags.
21186 LTCFLAGS=$lt_CFLAGS
21187
21188 # Take the output of nm and produce a listing of raw symbols and C names.
21189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21190
21191 # Transform the output of nm in a proper C declaration.
21192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21193
21194 # Transform the output of nm in a C name address pair.
21195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21196
21197 # Transform the output of nm in a C name address pair when lib prefix is needed.
21198 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21199
21200 # The name of the directory that contains temporary libtool files.
21201 objdir=$objdir
21202
21203 # Shell to use when invoking shell scripts.
21204 SHELL=$lt_SHELL
21205
21206 # An echo program that does not interpret backslashes.
21207 ECHO=$lt_ECHO
21208
21209 # Used to examine libraries when file_magic_cmd begins with "file".
21210 MAGIC_CMD=$MAGIC_CMD
21211
21212 # Must we lock files when doing compilation?
21213 need_locks=$lt_need_locks
21214
21215 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21216 DSYMUTIL=$lt_DSYMUTIL
21217
21218 # Tool to change global to local symbols on Mac OS X.
21219 NMEDIT=$lt_NMEDIT
21220
21221 # Tool to manipulate fat objects and archives on Mac OS X.
21222 LIPO=$lt_LIPO
21223
21224 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21225 OTOOL=$lt_OTOOL
21226
21227 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21228 OTOOL64=$lt_OTOOL64
21229
21230 # Old archive suffix (normally "a").
21231 libext=$libext
21232
21233 # Shared library suffix (normally ".so").
21234 shrext_cmds=$lt_shrext_cmds
21235
21236 # The commands to extract the exported symbol list from a shared archive.
21237 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21238
21239 # Variables whose values should be saved in libtool wrapper scripts and
21240 # restored at link time.
21241 variables_saved_for_relink=$lt_variables_saved_for_relink
21242
21243 # Do we need the "lib" prefix for modules?
21244 need_lib_prefix=$need_lib_prefix
21245
21246 # Do we need a version for libraries?
21247 need_version=$need_version
21248
21249 # Library versioning type.
21250 version_type=$version_type
21251
21252 # Shared library runtime path variable.
21253 runpath_var=$runpath_var
21254
21255 # Shared library path variable.
21256 shlibpath_var=$shlibpath_var
21257
21258 # Is shlibpath searched before the hard-coded library search path?
21259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21260
21261 # Format of library name prefix.
21262 libname_spec=$lt_libname_spec
21263
21264 # List of archive names. First name is the real one, the rest are links.
21265 # The last name is the one that the linker finds with -lNAME
21266 library_names_spec=$lt_library_names_spec
21267
21268 # The coded name of the library, if different from the real name.
21269 soname_spec=$lt_soname_spec
21270
21271 # Command to use after installation of a shared archive.
21272 postinstall_cmds=$lt_postinstall_cmds
21273
21274 # Command to use after uninstallation of a shared archive.
21275 postuninstall_cmds=$lt_postuninstall_cmds
21276
21277 # Commands used to finish a libtool library installation in a directory.
21278 finish_cmds=$lt_finish_cmds
21279
21280 # As "finish_cmds", except a single script fragment to be evaled but
21281 # not shown.
21282 finish_eval=$lt_finish_eval
21283
21284 # Whether we should hardcode library paths into libraries.
21285 hardcode_into_libs=$hardcode_into_libs
21286
21287 # Compile-time system search path for libraries.
21288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21289
21290 # Run-time system search path for libraries.
21291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21292
21293 # Whether dlopen is supported.
21294 dlopen_support=$enable_dlopen
21295
21296 # Whether dlopen of programs is supported.
21297 dlopen_self=$enable_dlopen_self
21298
21299 # Whether dlopen of statically linked programs is supported.
21300 dlopen_self_static=$enable_dlopen_self_static
21301
21302 # Commands to strip libraries.
21303 old_striplib=$lt_old_striplib
21304 striplib=$lt_striplib
21305
21306
21307 # The linker used to build libraries.
21308 LD=$lt_LD
21309
21310 # Commands used to build an old-style archive.
21311 old_archive_cmds=$lt_old_archive_cmds
21312
21313 # A language specific compiler.
21314 CC=$lt_compiler
21315
21316 # Is the compiler the GNU compiler?
21317 with_gcc=$GCC
21318
21319 # Compiler flag to turn off builtin functions.
21320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21321
21322 # How to pass a linker flag through the compiler.
21323 wl=$lt_lt_prog_compiler_wl
21324
21325 # Additional compiler flags for building library objects.
21326 pic_flag=$lt_lt_prog_compiler_pic
21327
21328 # Compiler flag to prevent dynamic linking.
21329 link_static_flag=$lt_lt_prog_compiler_static
21330
21331 # Does compiler simultaneously support -c and -o options?
21332 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21333
21334 # Whether or not to add -lc for building shared libraries.
21335 build_libtool_need_lc=$archive_cmds_need_lc
21336
21337 # Whether or not to disallow shared libs when runtime libs are static.
21338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21339
21340 # Compiler flag to allow reflexive dlopens.
21341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21342
21343 # Compiler flag to generate shared objects directly from archives.
21344 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21345
21346 # Whether the compiler copes with passing no objects directly.
21347 compiler_needs_object=$lt_compiler_needs_object
21348
21349 # Create an old-style archive from a shared archive.
21350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21351
21352 # Create a temporary old-style archive to link instead of a shared archive.
21353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21354
21355 # Commands used to build a shared archive.
21356 archive_cmds=$lt_archive_cmds
21357 archive_expsym_cmds=$lt_archive_expsym_cmds
21358
21359 # Commands used to build a loadable module if different from building
21360 # a shared archive.
21361 module_cmds=$lt_module_cmds
21362 module_expsym_cmds=$lt_module_expsym_cmds
21363
21364 # Whether we are building with GNU ld or not.
21365 with_gnu_ld=$lt_with_gnu_ld
21366
21367 # Flag that allows shared libraries with undefined symbols to be built.
21368 allow_undefined_flag=$lt_allow_undefined_flag
21369
21370 # Flag that enforces no undefined symbols.
21371 no_undefined_flag=$lt_no_undefined_flag
21372
21373 # Flag to hardcode \$libdir into a binary during linking.
21374 # This must work even if \$libdir does not exist
21375 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21376
21377 # If ld is used when linking, flag to hardcode \$libdir into a binary
21378 # during linking. This must work even if \$libdir does not exist.
21379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21380
21381 # Whether we need a single "-rpath" flag with a separated argument.
21382 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21383
21384 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21385 # DIR into the resulting binary.
21386 hardcode_direct=$hardcode_direct
21387
21388 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21389 # DIR into the resulting binary and the resulting library dependency is
21390 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21391 # library is relocated.
21392 hardcode_direct_absolute=$hardcode_direct_absolute
21393
21394 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21395 # into the resulting binary.
21396 hardcode_minus_L=$hardcode_minus_L
21397
21398 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21399 # into the resulting binary.
21400 hardcode_shlibpath_var=$hardcode_shlibpath_var
21401
21402 # Set to "yes" if building a shared library automatically hardcodes DIR
21403 # into the library and all subsequent libraries and executables linked
21404 # against it.
21405 hardcode_automatic=$hardcode_automatic
21406
21407 # Set to yes if linker adds runtime paths of dependent libraries
21408 # to runtime path list.
21409 inherit_rpath=$inherit_rpath
21410
21411 # Whether libtool must link a program against all its dependency libraries.
21412 link_all_deplibs=$link_all_deplibs
21413
21414 # Fix the shell variable \$srcfile for the compiler.
21415 fix_srcfile_path=$lt_fix_srcfile_path
21416
21417 # Set to "yes" if exported symbols are required.
21418 always_export_symbols=$always_export_symbols
21419
21420 # The commands to list exported symbols.
21421 export_symbols_cmds=$lt_export_symbols_cmds
21422
21423 # Symbols that should not be listed in the preloaded symbols.
21424 exclude_expsyms=$lt_exclude_expsyms
21425
21426 # Symbols that must always be exported.
21427 include_expsyms=$lt_include_expsyms
21428
21429 # Commands necessary for linking programs (against libraries) with templates.
21430 prelink_cmds=$lt_prelink_cmds
21431
21432 # Specify filename containing input files.
21433 file_list_spec=$lt_file_list_spec
21434
21435 # How to hardcode a shared library path into an executable.
21436 hardcode_action=$hardcode_action
21437
21438 # The directories searched by this compiler when creating a shared library.
21439 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21440
21441 # Dependencies to place before and after the objects being linked to
21442 # create a shared library.
21443 predep_objects=$lt_predep_objects
21444 postdep_objects=$lt_postdep_objects
21445 predeps=$lt_predeps
21446 postdeps=$lt_postdeps
21447
21448 # The library search path used internally by the compiler when linking
21449 # a shared library.
21450 compiler_lib_search_path=$lt_compiler_lib_search_path
21451
21452 # ### END LIBTOOL CONFIG
21453
21454 _LT_EOF
21455
21456 case $host_os in
21457 aix3*)
21458 cat <<\_LT_EOF >> "$cfgfile"
21459 # AIX sometimes has problems with the GCC collect2 program. For some
21460 # reason, if we set the COLLECT_NAMES environment variable, the problems
21461 # vanish in a puff of smoke.
21462 if test "X${COLLECT_NAMES+set}" != Xset; then
21463 COLLECT_NAMES=
21464 export COLLECT_NAMES
21465 fi
21466 _LT_EOF
21467 ;;
21468 esac
21469
21470
21471 ltmain="$ac_aux_dir/ltmain.sh"
21472
21473
21474 # We use sed instead of cat because bash on DJGPP gets confused if
21475 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21476 # text mode, it properly converts lines to CR/LF. This bash problem
21477 # is reportedly fixed, but why not run on old versions too?
21478 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21479 || (rm -f "$cfgfile"; exit 1)
21480
21481 case $xsi_shell in
21482 yes)
21483 cat << \_LT_EOF >> "$cfgfile"
21484
21485 # func_dirname file append nondir_replacement
21486 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21487 # otherwise set result to NONDIR_REPLACEMENT.
21488 func_dirname ()
21489 {
21490 case ${1} in
21491 */*) func_dirname_result="${1%/*}${2}" ;;
21492 * ) func_dirname_result="${3}" ;;
21493 esac
21494 }
21495
21496 # func_basename file
21497 func_basename ()
21498 {
21499 func_basename_result="${1##*/}"
21500 }
21501
21502 # func_dirname_and_basename file append nondir_replacement
21503 # perform func_basename and func_dirname in a single function
21504 # call:
21505 # dirname: Compute the dirname of FILE. If nonempty,
21506 # add APPEND to the result, otherwise set result
21507 # to NONDIR_REPLACEMENT.
21508 # value returned in "$func_dirname_result"
21509 # basename: Compute filename of FILE.
21510 # value retuned in "$func_basename_result"
21511 # Implementation must be kept synchronized with func_dirname
21512 # and func_basename. For efficiency, we do not delegate to
21513 # those functions but instead duplicate the functionality here.
21514 func_dirname_and_basename ()
21515 {
21516 case ${1} in
21517 */*) func_dirname_result="${1%/*}${2}" ;;
21518 * ) func_dirname_result="${3}" ;;
21519 esac
21520 func_basename_result="${1##*/}"
21521 }
21522
21523 # func_stripname prefix suffix name
21524 # strip PREFIX and SUFFIX off of NAME.
21525 # PREFIX and SUFFIX must not contain globbing or regex special
21526 # characters, hashes, percent signs, but SUFFIX may contain a leading
21527 # dot (in which case that matches only a dot).
21528 func_stripname ()
21529 {
21530 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21531 # positional parameters, so assign one to ordinary parameter first.
21532 func_stripname_result=${3}
21533 func_stripname_result=${func_stripname_result#"${1}"}
21534 func_stripname_result=${func_stripname_result%"${2}"}
21535 }
21536
21537 # func_opt_split
21538 func_opt_split ()
21539 {
21540 func_opt_split_opt=${1%%=*}
21541 func_opt_split_arg=${1#*=}
21542 }
21543
21544 # func_lo2o object
21545 func_lo2o ()
21546 {
21547 case ${1} in
21548 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21549 *) func_lo2o_result=${1} ;;
21550 esac
21551 }
21552
21553 # func_xform libobj-or-source
21554 func_xform ()
21555 {
21556 func_xform_result=${1%.*}.lo
21557 }
21558
21559 # func_arith arithmetic-term...
21560 func_arith ()
21561 {
21562 func_arith_result=$(( $* ))
21563 }
21564
21565 # func_len string
21566 # STRING may not start with a hyphen.
21567 func_len ()
21568 {
21569 func_len_result=${#1}
21570 }
21571
21572 _LT_EOF
21573 ;;
21574 *) # Bourne compatible functions.
21575 cat << \_LT_EOF >> "$cfgfile"
21576
21577 # func_dirname file append nondir_replacement
21578 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21579 # otherwise set result to NONDIR_REPLACEMENT.
21580 func_dirname ()
21581 {
21582 # Extract subdirectory from the argument.
21583 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21584 if test "X$func_dirname_result" = "X${1}"; then
21585 func_dirname_result="${3}"
21586 else
21587 func_dirname_result="$func_dirname_result${2}"
21588 fi
21589 }
21590
21591 # func_basename file
21592 func_basename ()
21593 {
21594 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21595 }
21596
21597
21598 # func_stripname prefix suffix name
21599 # strip PREFIX and SUFFIX off of NAME.
21600 # PREFIX and SUFFIX must not contain globbing or regex special
21601 # characters, hashes, percent signs, but SUFFIX may contain a leading
21602 # dot (in which case that matches only a dot).
21603 # func_strip_suffix prefix name
21604 func_stripname ()
21605 {
21606 case ${2} in
21607 .*) func_stripname_result=`$ECHO "X${3}" \
21608 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21609 *) func_stripname_result=`$ECHO "X${3}" \
21610 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21611 esac
21612 }
21613
21614 # sed scripts:
21615 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21616 my_sed_long_arg='1s/^-[^=]*=//'
21617
21618 # func_opt_split
21619 func_opt_split ()
21620 {
21621 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21622 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21623 }
21624
21625 # func_lo2o object
21626 func_lo2o ()
21627 {
21628 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21629 }
21630
21631 # func_xform libobj-or-source
21632 func_xform ()
21633 {
21634 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21635 }
21636
21637 # func_arith arithmetic-term...
21638 func_arith ()
21639 {
21640 func_arith_result=`expr "$@"`
21641 }
21642
21643 # func_len string
21644 # STRING may not start with a hyphen.
21645 func_len ()
21646 {
21647 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21648 }
21649
21650 _LT_EOF
21651 esac
21652
21653 case $lt_shell_append in
21654 yes)
21655 cat << \_LT_EOF >> "$cfgfile"
21656
21657 # func_append var value
21658 # Append VALUE to the end of shell variable VAR.
21659 func_append ()
21660 {
21661 eval "$1+=\$2"
21662 }
21663 _LT_EOF
21664 ;;
21665 *)
21666 cat << \_LT_EOF >> "$cfgfile"
21667
21668 # func_append var value
21669 # Append VALUE to the end of shell variable VAR.
21670 func_append ()
21671 {
21672 eval "$1=\$$1\$2"
21673 }
21674
21675 _LT_EOF
21676 ;;
21677 esac
21678
21679
21680 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21681 || (rm -f "$cfgfile"; exit 1)
21682
21683 mv -f "$cfgfile" "$ofile" ||
21684 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21685 chmod +x "$ofile"
21686
21687
21688 cat <<_LT_EOF >> "$ofile"
21689
21690 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21691
21692 # The linker used to build libraries.
21693 LD=$lt_LD_CXX
21694
21695 # Commands used to build an old-style archive.
21696 old_archive_cmds=$lt_old_archive_cmds_CXX
21697
21698 # A language specific compiler.
21699 CC=$lt_compiler_CXX
21700
21701 # Is the compiler the GNU compiler?
21702 with_gcc=$GCC_CXX
21703
21704 # Compiler flag to turn off builtin functions.
21705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21706
21707 # How to pass a linker flag through the compiler.
21708 wl=$lt_lt_prog_compiler_wl_CXX
21709
21710 # Additional compiler flags for building library objects.
21711 pic_flag=$lt_lt_prog_compiler_pic_CXX
21712
21713 # Compiler flag to prevent dynamic linking.
21714 link_static_flag=$lt_lt_prog_compiler_static_CXX
21715
21716 # Does compiler simultaneously support -c and -o options?
21717 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21718
21719 # Whether or not to add -lc for building shared libraries.
21720 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21721
21722 # Whether or not to disallow shared libs when runtime libs are static.
21723 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21724
21725 # Compiler flag to allow reflexive dlopens.
21726 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21727
21728 # Compiler flag to generate shared objects directly from archives.
21729 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21730
21731 # Whether the compiler copes with passing no objects directly.
21732 compiler_needs_object=$lt_compiler_needs_object_CXX
21733
21734 # Create an old-style archive from a shared archive.
21735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21736
21737 # Create a temporary old-style archive to link instead of a shared archive.
21738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21739
21740 # Commands used to build a shared archive.
21741 archive_cmds=$lt_archive_cmds_CXX
21742 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21743
21744 # Commands used to build a loadable module if different from building
21745 # a shared archive.
21746 module_cmds=$lt_module_cmds_CXX
21747 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21748
21749 # Whether we are building with GNU ld or not.
21750 with_gnu_ld=$lt_with_gnu_ld_CXX
21751
21752 # Flag that allows shared libraries with undefined symbols to be built.
21753 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21754
21755 # Flag that enforces no undefined symbols.
21756 no_undefined_flag=$lt_no_undefined_flag_CXX
21757
21758 # Flag to hardcode \$libdir into a binary during linking.
21759 # This must work even if \$libdir does not exist
21760 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21761
21762 # If ld is used when linking, flag to hardcode \$libdir into a binary
21763 # during linking. This must work even if \$libdir does not exist.
21764 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21765
21766 # Whether we need a single "-rpath" flag with a separated argument.
21767 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21768
21769 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21770 # DIR into the resulting binary.
21771 hardcode_direct=$hardcode_direct_CXX
21772
21773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21774 # DIR into the resulting binary and the resulting library dependency is
21775 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21776 # library is relocated.
21777 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21778
21779 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21780 # into the resulting binary.
21781 hardcode_minus_L=$hardcode_minus_L_CXX
21782
21783 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21784 # into the resulting binary.
21785 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21786
21787 # Set to "yes" if building a shared library automatically hardcodes DIR
21788 # into the library and all subsequent libraries and executables linked
21789 # against it.
21790 hardcode_automatic=$hardcode_automatic_CXX
21791
21792 # Set to yes if linker adds runtime paths of dependent libraries
21793 # to runtime path list.
21794 inherit_rpath=$inherit_rpath_CXX
21795
21796 # Whether libtool must link a program against all its dependency libraries.
21797 link_all_deplibs=$link_all_deplibs_CXX
21798
21799 # Fix the shell variable \$srcfile for the compiler.
21800 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21801
21802 # Set to "yes" if exported symbols are required.
21803 always_export_symbols=$always_export_symbols_CXX
21804
21805 # The commands to list exported symbols.
21806 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21807
21808 # Symbols that should not be listed in the preloaded symbols.
21809 exclude_expsyms=$lt_exclude_expsyms_CXX
21810
21811 # Symbols that must always be exported.
21812 include_expsyms=$lt_include_expsyms_CXX
21813
21814 # Commands necessary for linking programs (against libraries) with templates.
21815 prelink_cmds=$lt_prelink_cmds_CXX
21816
21817 # Specify filename containing input files.
21818 file_list_spec=$lt_file_list_spec_CXX
21819
21820 # How to hardcode a shared library path into an executable.
21821 hardcode_action=$hardcode_action_CXX
21822
21823 # The directories searched by this compiler when creating a shared library.
21824 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21825
21826 # Dependencies to place before and after the objects being linked to
21827 # create a shared library.
21828 predep_objects=$lt_predep_objects_CXX
21829 postdep_objects=$lt_postdep_objects_CXX
21830 predeps=$lt_predeps_CXX
21831 postdeps=$lt_postdeps_CXX
21832
21833 # The library search path used internally by the compiler when linking
21834 # a shared library.
21835 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21836
21837 # ### END LIBTOOL TAG CONFIG: CXX
21838 _LT_EOF
21839
21840 ;;
21841
21842 esac
21843 done # for ac_tag
21844
21845
21846 as_fn_exit 0
21847 _ACEOF
21848 ac_clean_files=$ac_clean_files_save
21849
21850 test $ac_write_fail = 0 ||
21851 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21852
21853
21854 # configure is writing to config.log, and then calls config.status.
21855 # config.status does its own redirection, appending to config.log.
21856 # Unfortunately, on DOS this fails, as config.log is still kept open
21857 # by configure, so config.status won't be able to write to it; its
21858 # output is simply discarded. So we exec the FD to /dev/null,
21859 # effectively closing config.log, so it can be properly (re)opened and
21860 # appended to by config.status. When coming back to configure, we
21861 # need to make the FD available again.
21862 if test "$no_create" != yes; then
21863 ac_cs_success=:
21864 ac_config_status_args=
21865 test "$silent" = yes &&
21866 ac_config_status_args="$ac_config_status_args --quiet"
21867 exec 5>/dev/null
21868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21869 exec 5>>config.log
21870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21871 # would make configure fail if this is the last instruction.
21872 $ac_cs_success || as_fn_exit 1
21873 fi
21874 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21876 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21877 fi
21878