]> git.saurik.com Git - cycript.git/blob - configure
cb5ca0fffe05fef68327d26148ab2b8090e0fad0
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238 fi
239 exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266 return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464 *)
465 ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562 $*
563 _LT_EOF
564 exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680 as_awk_strverscmp='
681 # Use only awk features that work with 7th edition Unix awk (1978).
682 # My, what an old awk you have, Mr. Solaris!
683 END {
684 while (length(v1) && length(v2)) {
685 # Set d1 to be the next thing to compare from v1, and likewise for d2.
686 # Normally this is a single character, but if v1 and v2 contain digits,
687 # compare them as integers and fractions as strverscmp does.
688 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
689 # Split v1 and v2 into their leading digit string components d1 and d2,
690 # and advance v1 and v2 past the leading digit strings.
691 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
692 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
693 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
694 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
695 if (d1 ~ /^0/) {
696 if (d2 ~ /^0/) {
697 # Compare two fractions.
698 while (d1 ~ /^0/ && d2 ~ /^0/) {
699 d1 = substr(d1, 2); len1--
700 d2 = substr(d2, 2); len2--
701 }
702 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
703 # The two components differ in length, and the common prefix
704 # contains only leading zeros. Consider the longer to be less.
705 d1 = -len1
706 d2 = -len2
707 } else {
708 # Otherwise, compare as strings.
709 d1 = "x" d1
710 d2 = "x" d2
711 }
712 } else {
713 # A fraction is less than an integer.
714 exit 1
715 }
716 } else {
717 if (d2 ~ /^0/) {
718 # An integer is greater than a fraction.
719 exit 2
720 } else {
721 # Compare two integers.
722 d1 += 0
723 d2 += 0
724 }
725 }
726 } else {
727 # The normal case, without worrying about digits.
728 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
729 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
730 }
731 if (d1 < d2) exit 1
732 if (d1 > d2) exit 2
733 }
734 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
735 # which mishandles some comparisons of empty strings to integers.
736 if (length(v2)) exit 1
737 if (length(v1)) exit 2
738 }
739 '
740
741 test -n "$DJDIR" || exec 7<&0 </dev/null
742 exec 6>&1
743
744 # Name of the host.
745 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
746 # so uname gets run too.
747 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
748
749 #
750 # Initializations.
751 #
752 ac_default_prefix=/usr/local
753 ac_clean_files=
754 ac_config_libobj_dir=.
755 LIBOBJS=
756 cross_compiling=no
757 subdirs=
758 MFLAGS=
759 MAKEFLAGS=
760
761 # Identity of this package.
762 PACKAGE_NAME='Cycript'
763 PACKAGE_TARNAME='cycript'
764 PACKAGE_VERSION='0.9'
765 PACKAGE_STRING='Cycript 0.9'
766 PACKAGE_BUGREPORT='saurik@saurik.com'
767 PACKAGE_URL='http://www.cycript.org/'
768
769 ac_unique_file="Console.cpp"
770 # Factoring default headers for most tests.
771 ac_includes_default="\
772 #include <stdio.h>
773 #ifdef HAVE_SYS_TYPES_H
774 # include <sys/types.h>
775 #endif
776 #ifdef HAVE_SYS_STAT_H
777 # include <sys/stat.h>
778 #endif
779 #ifdef STDC_HEADERS
780 # include <stdlib.h>
781 # include <stddef.h>
782 #else
783 # ifdef HAVE_STDLIB_H
784 # include <stdlib.h>
785 # endif
786 #endif
787 #ifdef HAVE_STRING_H
788 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
789 # include <memory.h>
790 # endif
791 # include <string.h>
792 #endif
793 #ifdef HAVE_STRINGS_H
794 # include <strings.h>
795 #endif
796 #ifdef HAVE_INTTYPES_H
797 # include <inttypes.h>
798 #endif
799 #ifdef HAVE_STDINT_H
800 # include <stdint.h>
801 #endif
802 #ifdef HAVE_UNISTD_H
803 # include <unistd.h>
804 #endif"
805
806 ac_subst_vars='LTLIBOBJS
807 LIBOBJS
808 CY_OBJECTIVEC_MACH
809 GNUSTEP_CONFIG
810 CY_OBJECTIVEC
811 LIBFFI_LIBS
812 LIBFFI_CFLAGS
813 CY_EXECUTE
814 WEBKIT_LIBS
815 WEBKIT_CFLAGS
816 LTLIBICONV
817 LIBICONV
818 INSTALL_DATA
819 INSTALL_SCRIPT
820 INSTALL_PROGRAM
821 LTLIBAPR
822 TIME
823 GPERF
824 BASH
825 LEXLIB
826 LEX_OUTPUT_ROOT
827 LEX
828 FLEX
829 YFLAGS
830 YACC
831 BISON
832 ac_ct_OBJCXX
833 OBJCXXFLAGS
834 OBJCXX
835 CXXCPP
836 ac_ct_CXX
837 CXXFLAGS
838 CXX
839 GMAKE
840 ifGNUmake
841 PKG_CONFIG
842 CPP
843 OTOOL64
844 OTOOL
845 LIPO
846 NMEDIT
847 DSYMUTIL
848 lt_ECHO
849 RANLIB
850 STRIP
851 AR
852 OBJDUMP
853 LN_S
854 NM
855 ac_ct_DUMPBIN
856 DUMPBIN
857 LD
858 FGREP
859 EGREP
860 GREP
861 SED
862 OBJEXT
863 EXEEXT
864 ac_ct_CC
865 CPPFLAGS
866 LDFLAGS
867 CFLAGS
868 CC
869 host_os
870 host_vendor
871 host_cpu
872 host
873 build_os
874 build_vendor
875 build_cpu
876 build
877 LIBTOOL
878 target_alias
879 host_alias
880 build_alias
881 LIBS
882 ECHO_T
883 ECHO_N
884 ECHO_C
885 DEFS
886 mandir
887 localedir
888 libdir
889 psdir
890 pdfdir
891 dvidir
892 htmldir
893 infodir
894 docdir
895 oldincludedir
896 includedir
897 localstatedir
898 sharedstatedir
899 sysconfdir
900 datadir
901 datarootdir
902 libexecdir
903 sbindir
904 bindir
905 program_transform_name
906 prefix
907 exec_prefix
908 PACKAGE_URL
909 PACKAGE_BUGREPORT
910 PACKAGE_STRING
911 PACKAGE_VERSION
912 PACKAGE_TARNAME
913 PACKAGE_NAME
914 PATH_SEPARATOR
915 SHELL'
916 ac_subst_files=''
917 ac_user_opts='
918 enable_option_checking
919 enable_static
920 enable_shared
921 with_pic
922 enable_fast_install
923 with_gnu_ld
924 enable_libtool_lock
925 with_frameworks
926 with_apr
927 enable_rpath
928 with_libiconv_prefix
929 enable_javascript
930 '
931 ac_precious_vars='build_alias
932 host_alias
933 target_alias
934 CC
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
939 CPP
940 PKG_CONFIG
941 CXX
942 CXXFLAGS
943 CCC
944 CXXCPP
945 OBJCXX
946 OBJCXXFLAGS
947 BISON
948 YACC
949 YFLAGS
950 FLEX
951 GPERF
952 WEBKIT_CFLAGS
953 WEBKIT_LIBS
954 LIBFFI_CFLAGS
955 LIBFFI_LIBS
956 GNUSTEP_CONFIG'
957
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1086
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=\$ac_optarg ;;
1102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
1322
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1326
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1333
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1340
1341 -*) as_fn_error "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information."
1343 ;;
1344
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1351 esac
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1354
1355 *)
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361 ;;
1362
1363 esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error "missing argument to $ac_option"
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1384 do
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1399
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1406
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1414 cross_compiling=yes
1415 fi
1416 fi
1417
1418 ac_tool_prefix=
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421 test "$silent" = yes && exec 6>/dev/null
1422
1423
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error "working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error "pwd does not report name of working directory"
1430
1431
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)[^/].*/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\/\)$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\).*/{
1455 s//\1/
1456 q
1457 }
1458 s/.*/./; q'`
1459 srcdir=$ac_confdir
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 srcdir=..
1462 fi
1463 else
1464 ac_srcdir_defaulted=no
1465 fi
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469 fi
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1473 pwd)`
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 srcdir=.
1477 fi
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1481 case $srcdir in
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 esac
1484 for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 done
1490
1491 #
1492 # Report the --help message.
1493 #
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1497 cat <<_ACEOF
1498 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1499
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1501
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1504
1505 Defaults for the options are specified in brackets.
1506
1507 Configuration:
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 [PREFIX]
1523
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1528
1529 For better control, use the options below.
1530
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1551 _ACEOF
1552
1553 cat <<\_ACEOF
1554
1555 System types:
1556 --build=BUILD configure for building on BUILD [guessed]
1557 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 _ACEOF
1559 fi
1560
1561 if test -n "$ac_init_help"; then
1562 case $ac_init_help in
1563 short | recursive ) echo "Configuration of Cycript 0.9:";;
1564 esac
1565 cat <<\_ACEOF
1566
1567 Optional Features:
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-static[=PKGS] build static libraries [default=no]
1572 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-rpath do not hardcode runtime library paths
1577 --enable-javascript[=ENGINE]
1578 use a JavaScript runtime (currently the only
1579 available option for ENGINE is JavaScriptCore)
1580 [default=yes]
1581
1582 Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1588 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1589 path for frameworks with -F
1590 --with-apr=PATH prefix for installed APR or the full path to
1591 apr-config
1592 --with-gnu-ld assume the C compiler uses GNU ld default=no
1593 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1594 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1595
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1604 CPP C preprocessor
1605 PKG_CONFIG path to pkg-config utility
1606 CXX C++ compiler command
1607 CXXFLAGS C++ compiler flags
1608 CXXCPP C++ preprocessor
1609 OBJCXX Objective C++ compiler command
1610 OBJCXXFLAGS Objective C++ compiler flags
1611 BISON GNU Project parser generator (yacc replacement)
1612 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1613 the first program found out of: `bison -y', `byacc', `yacc'.
1614 YFLAGS The list of arguments that will be passed by default to $YACC.
1615 This script will default YFLAGS to the empty string to avoid a
1616 default value of `-d' given by some make applications.
1617 FLEX the fast lexical analyser generator
1618 GPERF perfect hash function generator
1619 WEBKIT_CFLAGS
1620 C compiler flags for WEBKIT, overriding pkg-config
1621 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1622 LIBFFI_CFLAGS
1623 C compiler flags for LIBFFI, overriding pkg-config
1624 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1625 GNUSTEP_CONFIG
1626 prints information about the current gnustep installation
1627
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1630
1631 Report bugs to <saurik@saurik.com>.
1632 Cycript home page: <http://www.cycript.org/>.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
1643 ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662 .) # We are building in place.
1663 ac_srcdir=.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1685 else
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1689 done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694 cat <<\_ACEOF
1695 Cycript configure 0.9
1696 generated by GNU Autoconf 2.65
1697
1698 Copyright (C) 2009 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702 exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 $as_test_x conftest$ac_exeext
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_link
1792
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_try_cpp LINENO
1825 # ----------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_cpp ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1843 fi
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } >/dev/null && {
1846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=1
1855 fi
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_cpp
1860
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=$ac_status
1896 fi
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_run
1902
1903 # ac_fn_c_check_func LINENO FUNC VAR
1904 # ----------------------------------
1905 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1906 ac_fn_c_check_func ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1918 #define $2 innocuous_$2
1919
1920 /* System header to define __stub macros and hopefully few prototypes,
1921 which can conflict with char $2 (); below.
1922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1923 <limits.h> exists even on freestanding compilers. */
1924
1925 #ifdef __STDC__
1926 # include <limits.h>
1927 #else
1928 # include <assert.h>
1929 #endif
1930
1931 #undef $2
1932
1933 /* Override any GCC internal prototype to avoid an error.
1934 Use char because int might match the return type of a GCC
1935 builtin and then its argument prototype would still apply. */
1936 #ifdef __cplusplus
1937 extern "C"
1938 #endif
1939 char $2 ();
1940 /* The GNU C library defines this for functions which it implements
1941 to always fail with ENOSYS. Some functions are actually named
1942 something starting with __ and the normal name is an alias. */
1943 #if defined __stub_$2 || defined __stub___$2
1944 choke me
1945 #endif
1946
1947 int
1948 main ()
1949 {
1950 return $2 ();
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_link "$LINENO"; then :
1956 eval "$3=yes"
1957 else
1958 eval "$3=no"
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext \
1961 conftest$ac_exeext conftest.$ac_ext
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967
1968 } # ac_fn_c_check_func
1969
1970 # ac_fn_cxx_try_compile LINENO
1971 # ----------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_compile ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext
1977 if { { ac_try="$ac_compile"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1990 fi
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 ac_retval=1
2002 fi
2003 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 as_fn_set_status $ac_retval
2005
2006 } # ac_fn_cxx_try_compile
2007
2008 # ac_fn_cxx_try_cpp LINENO
2009 # ------------------------
2010 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_cpp ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_cpp conftest.$ac_ext"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2027 fi
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } >/dev/null && {
2030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 ac_retval=1
2039 fi
2040 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2041 as_fn_set_status $ac_retval
2042
2043 } # ac_fn_cxx_try_cpp
2044
2045 # ac_fn_cxx_try_link LINENO
2046 # -------------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_cxx_try_link ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 $as_test_x conftest$ac_exeext
2073 }; then :
2074 ac_retval=0
2075 else
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=1
2080 fi
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087 as_fn_set_status $ac_retval
2088
2089 } # ac_fn_cxx_try_link
2090
2091 # ac_fn_objcxx_try_compile LINENO
2092 # -------------------------------
2093 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2094 ac_fn_objcxx_try_compile ()
2095 {
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 rm -f conftest.$ac_objext
2098 if { { ac_try="$ac_compile"
2099 case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102 esac
2103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104 $as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_compile") 2>conftest.err
2106 ac_status=$?
2107 if test -s conftest.err; then
2108 grep -v '^ *+' conftest.err >conftest.er1
2109 cat conftest.er1 >&5
2110 mv -f conftest.er1 conftest.err
2111 fi
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && {
2114 test -z "$ac_objcxx_werror_flag" ||
2115 test ! -s conftest.err
2116 } && test -s conftest.$ac_objext; then :
2117 ac_retval=0
2118 else
2119 $as_echo "$as_me: failed program was:" >&5
2120 sed 's/^/| /' conftest.$ac_ext >&5
2121
2122 ac_retval=1
2123 fi
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 as_fn_set_status $ac_retval
2126
2127 } # ac_fn_objcxx_try_compile
2128
2129 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2130 # ---------------------------------------------------------
2131 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2132 # the include files in INCLUDES and setting the cache variable VAR
2133 # accordingly.
2134 ac_fn_cxx_check_header_mongrel ()
2135 {
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2142 fi
2143 eval ac_res=\$$3
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 else
2147 # Is the header compilable?
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2149 $as_echo_n "checking $2 usability... " >&6; }
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_cxx_try_compile "$LINENO"; then :
2156 ac_header_compiler=yes
2157 else
2158 ac_header_compiler=no
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2162 $as_echo "$ac_header_compiler" >&6; }
2163
2164 # Is the header present?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2166 $as_echo_n "checking $2 presence... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 #include <$2>
2170 _ACEOF
2171 if ac_fn_cxx_try_cpp "$LINENO"; then :
2172 ac_header_preproc=yes
2173 else
2174 ac_header_preproc=no
2175 fi
2176 rm -f conftest.err conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178 $as_echo "$ac_header_preproc" >&6; }
2179
2180 # So? What about this header?
2181 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2182 yes:no: )
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2184 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187 ;;
2188 no:yes:* )
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2190 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2192 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2194 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2196 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 ( cat <<\_ASBOX
2200 ## -------------------------------- ##
2201 ## Report this to saurik@saurik.com ##
2202 ## -------------------------------- ##
2203 _ASBOX
2204 ) | sed "s/^/$as_me: WARNING: /" >&2
2205 ;;
2206 esac
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 eval "$3=\$ac_header_compiler"
2213 fi
2214 eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 fi
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219
2220 } # ac_fn_cxx_check_header_mongrel
2221
2222 # ac_fn_objcxx_try_link LINENO
2223 # ----------------------------
2224 # Try to link conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_objcxx_try_link ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 rm -f conftest.$ac_objext conftest$ac_exeext
2229 if { { ac_try="$ac_link"
2230 case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233 esac
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_link") 2>conftest.err
2237 ac_status=$?
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2242 fi
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && {
2245 test -z "$ac_objcxx_werror_flag" ||
2246 test ! -s conftest.err
2247 } && test -s conftest$ac_exeext && {
2248 test "$cross_compiling" = yes ||
2249 $as_test_x conftest$ac_exeext
2250 }; then :
2251 ac_retval=0
2252 else
2253 $as_echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_retval=1
2257 fi
2258 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2259 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2260 # interfere with the next link command; also delete a directory that is
2261 # left behind by Apple's compiler. We do this before executing the actions.
2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 as_fn_set_status $ac_retval
2265
2266 } # ac_fn_objcxx_try_link
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2270
2271 It was created by Cycript $as_me 0.9, which was
2272 generated by GNU Autoconf 2.65. Invocation command line was
2273
2274 $ $0 $@
2275
2276 _ACEOF
2277 exec 5>>config.log
2278 {
2279 cat <<_ASUNAME
2280 ## --------- ##
2281 ## Platform. ##
2282 ## --------- ##
2283
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2292
2293 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2300
2301 _ASUNAME
2302
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2309 done
2310 IFS=$as_save_IFS
2311
2312 } >&5
2313
2314 cat >&5 <<_ACEOF
2315
2316
2317 ## ----------- ##
2318 ## Core tests. ##
2319 ## ----------- ##
2320
2321 _ACEOF
2322
2323
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2329 ac_configure_args=
2330 ac_configure_args0=
2331 ac_configure_args1=
2332 ac_must_keep_next=false
2333 for ac_pass in 1 2
2334 do
2335 for ac_arg
2336 do
2337 case $ac_arg in
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2341 continue ;;
2342 *\'*)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 esac
2345 case $ac_pass in
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347 2)
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2351 else
2352 case $ac_arg in
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359 esac
2360 ;;
2361 -* ) ac_must_keep_next=true ;;
2362 esac
2363 fi
2364 as_fn_append ac_configure_args " '$ac_arg'"
2365 ;;
2366 esac
2367 done
2368 done
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2371
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log. We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2379 {
2380 echo
2381
2382 cat <<\_ASBOX
2383 ## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##
2386 _ASBOX
2387 echo
2388 # The following way of writing the cache mishandles newlines in values,
2389 (
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2392 case $ac_val in #(
2393 *${as_nl}*)
2394 case $ac_var in #(
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397 esac
2398 case $ac_var in #(
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2402 esac ;;
2403 esac
2404 done
2405 (set) 2>&1 |
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2408 sed -n \
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411 ;; #(
2412 *)
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414 ;;
2415 esac |
2416 sort
2417 )
2418 echo
2419
2420 cat <<\_ASBOX
2421 ## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##
2424 _ASBOX
2425 echo
2426 for ac_var in $ac_subst_vars
2427 do
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2435
2436 if test -n "$ac_subst_files"; then
2437 cat <<\_ASBOX
2438 ## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##
2441 _ASBOX
2442 echo
2443 for ac_var in $ac_subst_files
2444 do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 esac
2449 $as_echo "$ac_var='\''$ac_val'\''"
2450 done | sort
2451 echo
2452 fi
2453
2454 if test -s confdefs.h; then
2455 cat <<\_ASBOX
2456 ## ----------- ##
2457 ## confdefs.h. ##
2458 ## ----------- ##
2459 _ASBOX
2460 echo
2461 cat confdefs.h
2462 echo
2463 fi
2464 test "$ac_signal" != 0 &&
2465 $as_echo "$as_me: caught signal $ac_signal"
2466 $as_echo "$as_me: exit $exit_status"
2467 } >&5
2468 rm -f core *.core core.conftest.* &&
2469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2470 exit $exit_status
2471 ' 0
2472 for ac_signal in 1 2 13 15; do
2473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474 done
2475 ac_signal=0
2476
2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2478 rm -f -r conftest* confdefs.h
2479
2480 $as_echo "/* confdefs.h */" > confdefs.h
2481
2482 # Predefined preprocessor variables.
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_NAME "$PACKAGE_NAME"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2494 _ACEOF
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_STRING "$PACKAGE_STRING"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_URL "$PACKAGE_URL"
2506 _ACEOF
2507
2508
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2511 ac_site_file1=NONE
2512 ac_site_file2=NONE
2513 if test -n "$CONFIG_SITE"; then
2514 ac_site_file1=$CONFIG_SITE
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_file1=$prefix/share/config.site
2517 ac_site_file2=$prefix/etc/config.site
2518 else
2519 ac_site_file1=$ac_default_prefix/share/config.site
2520 ac_site_file2=$ac_default_prefix/etc/config.site
2521 fi
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 do
2524 test "x$ac_site_file" = xNONE && continue
2525 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528 sed 's/^/| /' "$ac_site_file" >&5
2529 . "$ac_site_file"
2530 fi
2531 done
2532
2533 if test -r "$cache_file"; then
2534 # Some versions of bash will fail to source /dev/null (special files
2535 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2536 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2539 case $cache_file in
2540 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541 *) . "./$cache_file";;
2542 esac
2543 fi
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2547 >$cache_file
2548 fi
2549
2550 # Check that the precious variables saved in the cache have kept the same
2551 # value.
2552 ac_cache_corrupted=false
2553 for ac_var in $ac_precious_vars; do
2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555 eval ac_new_set=\$ac_env_${ac_var}_set
2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557 eval ac_new_val=\$ac_env_${ac_var}_value
2558 case $ac_old_set,$ac_new_set in
2559 set,)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2563 ,set)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,);;
2568 *)
2569 if test "x$ac_old_val" != "x$ac_new_val"; then
2570 # differences in whitespace do not lead to failure.
2571 ac_old_val_w=`echo x $ac_old_val`
2572 ac_new_val_w=`echo x $ac_new_val`
2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576 ac_cache_corrupted=:
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580 eval $ac_var=\$ac_old_val
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2586 fi;;
2587 esac
2588 # Pass precious variables to config.status.
2589 if test "$ac_new_set" = set; then
2590 case $ac_new_val in
2591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592 *) ac_arg=$ac_var=$ac_new_val ;;
2593 esac
2594 case " $ac_configure_args " in
2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597 esac
2598 fi
2599 done
2600 if $ac_cache_corrupted; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 fi
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2610
2611 ac_ext=c
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616
2617
2618
2619 ac_aux_dir=
2620 for ac_dir in . "$srcdir"/.; do
2621 for ac_t in install-sh install.sh shtool; do
2622 if test -f "$ac_dir/$ac_t"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/$ac_t -c"
2625 break 2
2626 fi
2627 done
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2631 fi
2632
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640
2641
2642 case `pwd` in
2643 *\ * | *\ *)
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2645 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2646 esac
2647
2648
2649
2650 macro_version='2.2.6b'
2651 macro_revision='1.3017'
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665 ltmain="$ac_aux_dir/ltmain.sh"
2666
2667 # Make sure we can run config.sub.
2668 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2669 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2672 $as_echo_n "checking build system type... " >&6; }
2673 if test "${ac_cv_build+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 ac_build_alias=$build_alias
2677 test "x$ac_build_alias" = x &&
2678 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2679 test "x$ac_build_alias" = x &&
2680 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2681 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2682 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2683
2684 fi
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2686 $as_echo "$ac_cv_build" >&6; }
2687 case $ac_cv_build in
2688 *-*-*) ;;
2689 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2690 esac
2691 build=$ac_cv_build
2692 ac_save_IFS=$IFS; IFS='-'
2693 set x $ac_cv_build
2694 shift
2695 build_cpu=$1
2696 build_vendor=$2
2697 shift; shift
2698 # Remember, the first character of IFS is used to create $*,
2699 # except with old shells:
2700 build_os=$*
2701 IFS=$ac_save_IFS
2702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2703
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2706 $as_echo_n "checking host system type... " >&6; }
2707 if test "${ac_cv_host+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test "x$host_alias" = x; then
2711 ac_cv_host=$ac_cv_build
2712 else
2713 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2714 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2715 fi
2716
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2719 $as_echo "$ac_cv_host" >&6; }
2720 case $ac_cv_host in
2721 *-*-*) ;;
2722 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2723 esac
2724 host=$ac_cv_host
2725 ac_save_IFS=$IFS; IFS='-'
2726 set x $ac_cv_host
2727 shift
2728 host_cpu=$1
2729 host_vendor=$2
2730 shift; shift
2731 # Remember, the first character of IFS is used to create $*,
2732 # except with old shells:
2733 host_os=$*
2734 IFS=$ac_save_IFS
2735 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2736
2737
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if test "${ac_cv_prog_CC+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781 fi
2782 if test -z "$ac_cv_prog_CC"; then
2783 ac_ct_CC=$CC
2784 # Extract the first word of "gcc", so it can be a program name with args.
2785 set dummy gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_ac_ct_CC="gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820 if test "x$ac_ct_CC" = x; then
2821 CC=""
2822 else
2823 case $cross_compiling:$ac_tool_warned in
2824 yes:)
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829 CC=$ac_ct_CC
2830 fi
2831 else
2832 CC="$ac_cv_prog_CC"
2833 fi
2834
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 fi
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 ac_prog_rejected=no
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2897 continue
2898 fi
2899 ac_cv_prog_CC="cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2910 shift
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2915 shift
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2917 fi
2918 fi
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl.exe
2935 do
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2956 fi
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 fi
2971
2972
2973 test -n "$CC" && break
2974 done
2975 fi
2976 if test -z "$CC"; then
2977 ac_ct_CC=$CC
2978 for ac_prog in cl.exe
2979 do
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_ac_ct_CC="$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 test -n "$ac_ct_CC" && break
3018 done
3019
3020 if test "x$ac_ct_CC" = x; then
3021 CC=""
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029 CC=$ac_ct_CC
3030 fi
3031 fi
3032
3033 fi
3034
3035
3036 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error "no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." "$LINENO" 5; }
3040
3041 # Provide some information about the compiler.
3042 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3043 set X $ac_compile
3044 ac_compiler=$2
3045 for ac_option in --version -v -V -qversion; do
3046 { { ac_try="$ac_compiler $ac_option >&5"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054 ac_status=$?
3055 if test -s conftest.err; then
3056 sed '10a\
3057 ... rest of stderr output deleted ...
3058 10q' conftest.err >conftest.er1
3059 cat conftest.er1 >&5
3060 fi
3061 rm -f conftest.er1 conftest.err
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 done
3065
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068
3069 int
3070 main ()
3071 {
3072
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3081 # of exeext.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083 $as_echo_n "checking whether the C compiler works... " >&6; }
3084 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085
3086 # The possible output files:
3087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088
3089 ac_rmfiles=
3090 for ac_file in $ac_files
3091 do
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 esac
3096 done
3097 rm -f $ac_rmfiles
3098
3099 if { { ac_try="$ac_link_default"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link_default") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3113 # so that the user can short-circuit this test for compilers unknown to
3114 # Autoconf.
3115 for ac_file in $ac_files ''
3116 do
3117 test -f "$ac_file" || continue
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3120 ;;
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127 then :; else
3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3129 fi
3130 # We set ac_cv_exeext here because the later test for it is not
3131 # safe: cross compilers may not add the suffix if given an `-o'
3132 # argument, so we may need to know it at that point already.
3133 # Even if this section looks crufty: it has the advantage of
3134 # actually working.
3135 break;;
3136 * )
3137 break;;
3138 esac
3139 done
3140 test "$ac_cv_exeext" = no && ac_cv_exeext=
3141
3142 else
3143 ac_file=''
3144 fi
3145 if test -z "$ac_file"; then :
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
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_set_status 77
3154 as_fn_error "C compiler cannot create executables
3155 See \`config.log' for more details." "$LINENO" 5; }; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158 $as_echo "yes" >&6; }
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3161 $as_echo_n "checking for C compiler default output file name... " >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3163 $as_echo "$ac_file" >&6; }
3164 ac_exeext=$ac_cv_exeext
3165
3166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3167 ac_clean_files=$ac_clean_files_save
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3169 $as_echo_n "checking for suffix of executables... " >&6; }
3170 if { { ac_try="$ac_link"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_link") 2>&5
3178 ac_status=$?
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3183 # work properly (i.e., refer to `conftest.exe'), while it won't with
3184 # `rm'.
3185 for ac_file in conftest.exe conftest conftest.*; do
3186 test -f "$ac_file" || continue
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 break;;
3191 * ) break;;
3192 esac
3193 done
3194 else
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error "cannot compute suffix of executables: cannot compile and link
3198 See \`config.log' for more details." "$LINENO" 5; }
3199 fi
3200 rm -f conftest conftest$ac_cv_exeext
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3202 $as_echo "$ac_cv_exeext" >&6; }
3203
3204 rm -f conftest.$ac_ext
3205 EXEEXT=$ac_cv_exeext
3206 ac_exeext=$EXEEXT
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209 #include <stdio.h>
3210 int
3211 main ()
3212 {
3213 FILE *f = fopen ("conftest.out", "w");
3214 return ferror (f) || fclose (f) != 0;
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 ac_clean_files="$ac_clean_files conftest.out"
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3224 $as_echo_n "checking whether we are cross compiling... " >&6; }
3225 if test "$cross_compiling" != yes; then
3226 { { ac_try="$ac_link"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_link") 2>&5
3234 ac_status=$?
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }
3237 if { ac_try='./conftest$ac_cv_exeext'
3238 { { case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; }; then
3248 cross_compiling=no
3249 else
3250 if test "$cross_compiling" = maybe; then
3251 cross_compiling=yes
3252 else
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error "cannot run C compiled programs.
3256 If you meant to cross compile, use \`--host'.
3257 See \`config.log' for more details." "$LINENO" 5; }
3258 fi
3259 fi
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3262 $as_echo "$cross_compiling" >&6; }
3263
3264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3265 ac_clean_files=$ac_clean_files_save
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3267 $as_echo_n "checking for suffix of object files... " >&6; }
3268 if test "${ac_cv_objext+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273
3274 int
3275 main ()
3276 {
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.o conftest.obj
3283 if { { ac_try="$ac_compile"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_compile") 2>&5
3291 ac_status=$?
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; then :
3294 for ac_file in conftest.o conftest.obj conftest.*; do
3295 test -f "$ac_file" || continue;
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3299 break;;
3300 esac
3301 done
3302 else
3303 $as_echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error "cannot compute suffix of object files: cannot compile
3309 See \`config.log' for more details." "$LINENO" 5; }
3310 fi
3311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3314 $as_echo "$ac_cv_objext" >&6; }
3315 OBJEXT=$ac_cv_objext
3316 ac_objext=$OBJEXT
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3319 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324
3325 int
3326 main ()
3327 {
3328 #ifndef __GNUC__
3329 choke me
3330 #endif
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 if ac_fn_c_try_compile "$LINENO"; then :
3337 ac_compiler_gnu=yes
3338 else
3339 ac_compiler_gnu=no
3340 fi
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3343
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3347 if test $ac_compiler_gnu = yes; then
3348 GCC=yes
3349 else
3350 GCC=
3351 fi
3352 ac_test_CFLAGS=${CFLAGS+set}
3353 ac_save_CFLAGS=$CFLAGS
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3356 if test "${ac_cv_prog_cc_g+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 ac_save_c_werror_flag=$ac_c_werror_flag
3360 ac_c_werror_flag=yes
3361 ac_cv_prog_cc_g=no
3362 CFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365
3366 int
3367 main ()
3368 {
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_g=yes
3376 else
3377 CFLAGS=""
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380
3381 int
3382 main ()
3383 {
3384
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390
3391 else
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3393 CFLAGS="-g"
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396
3397 int
3398 main ()
3399 {
3400
3401 ;
3402 return 0;
3403 }
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"; then :
3406 ac_cv_prog_cc_g=yes
3407 fi
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 fi
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3416 $as_echo "$ac_cv_prog_cc_g" >&6; }
3417 if test "$ac_test_CFLAGS" = set; then
3418 CFLAGS=$ac_save_CFLAGS
3419 elif test $ac_cv_prog_cc_g = yes; then
3420 if test "$GCC" = yes; then
3421 CFLAGS="-g -O2"
3422 else
3423 CFLAGS="-g"
3424 fi
3425 else
3426 if test "$GCC" = yes; then
3427 CFLAGS="-O2"
3428 else
3429 CFLAGS=
3430 fi
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3434 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 ac_cv_prog_cc_c89=no
3438 ac_save_CC=$CC
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441 #include <stdarg.h>
3442 #include <stdio.h>
3443 #include <sys/types.h>
3444 #include <sys/stat.h>
3445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446 struct buf { int x; };
3447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448 static char *e (p, i)
3449 char **p;
3450 int i;
3451 {
3452 return p[i];
3453 }
3454 static char *f (char * (*g) (char **, int), char **p, ...)
3455 {
3456 char *s;
3457 va_list v;
3458 va_start (v,p);
3459 s = g (p, va_arg (v,int));
3460 va_end (v);
3461 return s;
3462 }
3463
3464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465 function prototypes and stuff, but not '\xHH' hex character constants.
3466 These don't provoke an error unfortunately, instead are silently treated
3467 as 'x'. The following induces an error, until -std is added to get
3468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469 array size at least. It's necessary to write '\x00'==0 to get something
3470 that's true only with -std. */
3471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472
3473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474 inside strings and character constants. */
3475 #define FOO(x) 'x'
3476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3477
3478 int test (int i, double x);
3479 struct s1 {int (*f) (int a);};
3480 struct s2 {int (*f) (double a);};
3481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482 int argc;
3483 char **argv;
3484 int
3485 main ()
3486 {
3487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494 do
3495 CC="$ac_save_CC $ac_arg"
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_prog_cc_c89=$ac_arg
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext
3500 test "x$ac_cv_prog_cc_c89" != "xno" && break
3501 done
3502 rm -f conftest.$ac_ext
3503 CC=$ac_save_CC
3504
3505 fi
3506 # AC_CACHE_VAL
3507 case "x$ac_cv_prog_cc_c89" in
3508 x)
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510 $as_echo "none needed" >&6; } ;;
3511 xno)
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513 $as_echo "unsupported" >&6; } ;;
3514 *)
3515 CC="$CC $ac_cv_prog_cc_c89"
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3518 esac
3519 if test "x$ac_cv_prog_cc_c89" != xno; then :
3520
3521 fi
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3530 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3531 if test "${ac_cv_path_SED+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3535 for ac_i in 1 2 3 4 5 6 7; do
3536 ac_script="$ac_script$as_nl$ac_script"
3537 done
3538 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3539 { ac_script=; unset ac_script;}
3540 if test -z "$SED"; then
3541 ac_path_SED_found=false
3542 # Loop through the user's path and test for each of PROGNAME-LIST
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_prog in sed gsed; do
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3551 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3552 # Check for GNU ac_path_SED and select it if it is found.
3553 # Check for GNU $ac_path_SED
3554 case `"$ac_path_SED" --version 2>&1` in
3555 *GNU*)
3556 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3557 *)
3558 ac_count=0
3559 $as_echo_n 0123456789 >"conftest.in"
3560 while :
3561 do
3562 cat "conftest.in" "conftest.in" >"conftest.tmp"
3563 mv "conftest.tmp" "conftest.in"
3564 cp "conftest.in" "conftest.nl"
3565 $as_echo '' >> "conftest.nl"
3566 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3568 as_fn_arith $ac_count + 1 && ac_count=$as_val
3569 if test $ac_count -gt ${ac_path_SED_max-0}; then
3570 # Best one so far, save it but keep looking for a better one
3571 ac_cv_path_SED="$ac_path_SED"
3572 ac_path_SED_max=$ac_count
3573 fi
3574 # 10*(2^10) chars as input seems more than enough
3575 test $ac_count -gt 10 && break
3576 done
3577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3578 esac
3579
3580 $ac_path_SED_found && break 3
3581 done
3582 done
3583 done
3584 IFS=$as_save_IFS
3585 if test -z "$ac_cv_path_SED"; then
3586 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3587 fi
3588 else
3589 ac_cv_path_SED=$SED
3590 fi
3591
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3594 $as_echo "$ac_cv_path_SED" >&6; }
3595 SED="$ac_cv_path_SED"
3596 rm -f conftest.sed
3597
3598 test -z "$SED" && SED=sed
3599 Xsed="$SED -e 1s/^X//"
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3612 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3613 if test "${ac_cv_path_GREP+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if test -z "$GREP"; then
3617 ac_path_GREP_found=false
3618 # Loop through the user's path and test for each of PROGNAME-LIST
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3621 do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_prog in grep ggrep; do
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3627 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3628 # Check for GNU ac_path_GREP and select it if it is found.
3629 # Check for GNU $ac_path_GREP
3630 case `"$ac_path_GREP" --version 2>&1` in
3631 *GNU*)
3632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3633 *)
3634 ac_count=0
3635 $as_echo_n 0123456789 >"conftest.in"
3636 while :
3637 do
3638 cat "conftest.in" "conftest.in" >"conftest.tmp"
3639 mv "conftest.tmp" "conftest.in"
3640 cp "conftest.in" "conftest.nl"
3641 $as_echo 'GREP' >> "conftest.nl"
3642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3644 as_fn_arith $ac_count + 1 && ac_count=$as_val
3645 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3646 # Best one so far, save it but keep looking for a better one
3647 ac_cv_path_GREP="$ac_path_GREP"
3648 ac_path_GREP_max=$ac_count
3649 fi
3650 # 10*(2^10) chars as input seems more than enough
3651 test $ac_count -gt 10 && break
3652 done
3653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 esac
3655
3656 $ac_path_GREP_found && break 3
3657 done
3658 done
3659 done
3660 IFS=$as_save_IFS
3661 if test -z "$ac_cv_path_GREP"; then
3662 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3663 fi
3664 else
3665 ac_cv_path_GREP=$GREP
3666 fi
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3670 $as_echo "$ac_cv_path_GREP" >&6; }
3671 GREP="$ac_cv_path_GREP"
3672
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3675 $as_echo_n "checking for egrep... " >&6; }
3676 if test "${ac_cv_path_EGREP+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3680 then ac_cv_path_EGREP="$GREP -E"
3681 else
3682 if test -z "$EGREP"; then
3683 ac_path_EGREP_found=false
3684 # Loop through the user's path and test for each of PROGNAME-LIST
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_prog in egrep; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3693 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3694 # Check for GNU ac_path_EGREP and select it if it is found.
3695 # Check for GNU $ac_path_EGREP
3696 case `"$ac_path_EGREP" --version 2>&1` in
3697 *GNU*)
3698 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3699 *)
3700 ac_count=0
3701 $as_echo_n 0123456789 >"conftest.in"
3702 while :
3703 do
3704 cat "conftest.in" "conftest.in" >"conftest.tmp"
3705 mv "conftest.tmp" "conftest.in"
3706 cp "conftest.in" "conftest.nl"
3707 $as_echo 'EGREP' >> "conftest.nl"
3708 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3710 as_fn_arith $ac_count + 1 && ac_count=$as_val
3711 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3712 # Best one so far, save it but keep looking for a better one
3713 ac_cv_path_EGREP="$ac_path_EGREP"
3714 ac_path_EGREP_max=$ac_count
3715 fi
3716 # 10*(2^10) chars as input seems more than enough
3717 test $ac_count -gt 10 && break
3718 done
3719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3720 esac
3721
3722 $ac_path_EGREP_found && break 3
3723 done
3724 done
3725 done
3726 IFS=$as_save_IFS
3727 if test -z "$ac_cv_path_EGREP"; then
3728 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3729 fi
3730 else
3731 ac_cv_path_EGREP=$EGREP
3732 fi
3733
3734 fi
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3737 $as_echo "$ac_cv_path_EGREP" >&6; }
3738 EGREP="$ac_cv_path_EGREP"
3739
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3742 $as_echo_n "checking for fgrep... " >&6; }
3743 if test "${ac_cv_path_FGREP+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3747 then ac_cv_path_FGREP="$GREP -F"
3748 else
3749 if test -z "$FGREP"; then
3750 ac_path_FGREP_found=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3754 do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in fgrep; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3760 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3761 # Check for GNU ac_path_FGREP and select it if it is found.
3762 # Check for GNU $ac_path_FGREP
3763 case `"$ac_path_FGREP" --version 2>&1` in
3764 *GNU*)
3765 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3766 *)
3767 ac_count=0
3768 $as_echo_n 0123456789 >"conftest.in"
3769 while :
3770 do
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 $as_echo 'FGREP' >> "conftest.nl"
3775 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3777 as_fn_arith $ac_count + 1 && ac_count=$as_val
3778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_FGREP="$ac_path_FGREP"
3781 ac_path_FGREP_max=$ac_count
3782 fi
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3785 done
3786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787 esac
3788
3789 $ac_path_FGREP_found && break 3
3790 done
3791 done
3792 done
3793 IFS=$as_save_IFS
3794 if test -z "$ac_cv_path_FGREP"; then
3795 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3796 fi
3797 else
3798 ac_cv_path_FGREP=$FGREP
3799 fi
3800
3801 fi
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3804 $as_echo "$ac_cv_path_FGREP" >&6; }
3805 FGREP="$ac_cv_path_FGREP"
3806
3807
3808 test -z "$GREP" && GREP=grep
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828 # Check whether --with-gnu-ld was given.
3829 if test "${with_gnu_ld+set}" = set; then :
3830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3831 else
3832 with_gnu_ld=no
3833 fi
3834
3835 ac_prog=ld
3836 if test "$GCC" = yes; then
3837 # Check if gcc -print-prog-name=ld gives a path.
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3839 $as_echo_n "checking for ld used by $CC... " >&6; }
3840 case $host in
3841 *-*-mingw*)
3842 # gcc leaves a trailing carriage return which upsets mingw
3843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3844 *)
3845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3846 esac
3847 case $ac_prog in
3848 # Accept absolute paths.
3849 [\\/]* | ?:[\\/]*)
3850 re_direlt='/[^/][^/]*/\.\./'
3851 # Canonicalize the pathname of ld
3852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3855 done
3856 test -z "$LD" && LD="$ac_prog"
3857 ;;
3858 "")
3859 # If it fails, then pretend we aren't using GCC.
3860 ac_prog=ld
3861 ;;
3862 *)
3863 # If it is relative, then search for the first ld in PATH.
3864 with_gnu_ld=unknown
3865 ;;
3866 esac
3867 elif test "$with_gnu_ld" = yes; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3869 $as_echo_n "checking for GNU ld... " >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3872 $as_echo_n "checking for non-GNU ld... " >&6; }
3873 fi
3874 if test "${lt_cv_path_LD+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 if test -z "$LD"; then
3878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3879 for ac_dir in $PATH; do
3880 IFS="$lt_save_ifs"
3881 test -z "$ac_dir" && ac_dir=.
3882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3883 lt_cv_path_LD="$ac_dir/$ac_prog"
3884 # Check to see if the program is GNU ld. I'd rather use --version,
3885 # but apparently some variants of GNU ld only accept -v.
3886 # Break only if it was the GNU/non-GNU ld that we prefer.
3887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3888 *GNU* | *'with BFD'*)
3889 test "$with_gnu_ld" != no && break
3890 ;;
3891 *)
3892 test "$with_gnu_ld" != yes && break
3893 ;;
3894 esac
3895 fi
3896 done
3897 IFS="$lt_save_ifs"
3898 else
3899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3900 fi
3901 fi
3902
3903 LD="$lt_cv_path_LD"
3904 if test -n "$LD"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3906 $as_echo "$LD" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3910 fi
3911 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3914 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3918 case `$LD -v 2>&1 </dev/null` in
3919 *GNU* | *'with BFD'*)
3920 lt_cv_prog_gnu_ld=yes
3921 ;;
3922 *)
3923 lt_cv_prog_gnu_ld=no
3924 ;;
3925 esac
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3929 with_gnu_ld=$lt_cv_prog_gnu_ld
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3940 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3941 if test "${lt_cv_path_NM+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test -n "$NM"; then
3945 # Let the user override the test.
3946 lt_cv_path_NM="$NM"
3947 else
3948 lt_nm_to_check="${ac_tool_prefix}nm"
3949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3950 lt_nm_to_check="$lt_nm_to_check nm"
3951 fi
3952 for lt_tmp_nm in $lt_nm_to_check; do
3953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3954 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3955 IFS="$lt_save_ifs"
3956 test -z "$ac_dir" && ac_dir=.
3957 tmp_nm="$ac_dir/$lt_tmp_nm"
3958 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3959 # Check to see if the nm accepts a BSD-compat flag.
3960 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3961 # nm: unknown option "B" ignored
3962 # Tru64's nm complains that /dev/null is an invalid object file
3963 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3964 */dev/null* | *'Invalid file or object type'*)
3965 lt_cv_path_NM="$tmp_nm -B"
3966 break
3967 ;;
3968 *)
3969 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3970 */dev/null*)
3971 lt_cv_path_NM="$tmp_nm -p"
3972 break
3973 ;;
3974 *)
3975 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3976 continue # so that we can try to find one that supports BSD flags
3977 ;;
3978 esac
3979 ;;
3980 esac
3981 fi
3982 done
3983 IFS="$lt_save_ifs"
3984 done
3985 : ${lt_cv_path_NM=no}
3986 fi
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3989 $as_echo "$lt_cv_path_NM" >&6; }
3990 if test "$lt_cv_path_NM" != "no"; then
3991 NM="$lt_cv_path_NM"
3992 else
3993 # Didn't find any BSD compatible name lister, look for dumpbin.
3994 if test -n "$ac_tool_prefix"; then
3995 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3996 do
3997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3998 set dummy $ac_tool_prefix$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_DUMPBIN+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$DUMPBIN"; then
4005 ac_cv_prog_DUMPBIN="$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_DUMPBIN="$ac_tool_prefix$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 DUMPBIN=$ac_cv_prog_DUMPBIN
4025 if test -n "$DUMPBIN"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4027 $as_echo "$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 "$DUMPBIN" && break
4035 done
4036 fi
4037 if test -z "$DUMPBIN"; then
4038 ac_ct_DUMPBIN=$DUMPBIN
4039 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4040 do
4041 # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -n "$ac_ct_DUMPBIN"; then
4049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4061 fi
4062 done
4063 done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4069 if test -n "$ac_ct_DUMPBIN"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4071 $as_echo "$ac_ct_DUMPBIN" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077
4078 test -n "$ac_ct_DUMPBIN" && break
4079 done
4080
4081 if test "x$ac_ct_DUMPBIN" = x; then
4082 DUMPBIN=":"
4083 else
4084 case $cross_compiling:$ac_tool_warned in
4085 yes:)
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4088 ac_tool_warned=yes ;;
4089 esac
4090 DUMPBIN=$ac_ct_DUMPBIN
4091 fi
4092 fi
4093
4094
4095 if test "$DUMPBIN" != ":"; then
4096 NM="$DUMPBIN"
4097 fi
4098 fi
4099 test -z "$NM" && NM=nm
4100
4101
4102
4103
4104
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4107 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4108 if test "${lt_cv_nm_interface+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 lt_cv_nm_interface="BSD nm"
4112 echo "int some_variable = 0;" > conftest.$ac_ext
4113 (eval echo "\"\$as_me:4113: $ac_compile\"" >&5)
4114 (eval "$ac_compile" 2>conftest.err)
4115 cat conftest.err >&5
4116 (eval echo "\"\$as_me:4116: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4118 cat conftest.err >&5
4119 (eval echo "\"\$as_me:4119: output\"" >&5)
4120 cat conftest.out >&5
4121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4122 lt_cv_nm_interface="MS dumpbin"
4123 fi
4124 rm -f conftest*
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4127 $as_echo "$lt_cv_nm_interface" >&6; }
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4130 $as_echo_n "checking whether ln -s works... " >&6; }
4131 LN_S=$as_ln_s
4132 if test "$LN_S" = "ln -s"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4134 $as_echo "yes" >&6; }
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4137 $as_echo "no, using $LN_S" >&6; }
4138 fi
4139
4140 # find the maximum length of command line arguments
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4142 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4143 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 i=0
4147 teststring="ABCD"
4148
4149 case $build_os in
4150 msdosdjgpp*)
4151 # On DJGPP, this test can blow up pretty badly due to problems in libc
4152 # (any single argument exceeding 2000 bytes causes a buffer overrun
4153 # during glob expansion). Even if it were fixed, the result of this
4154 # check would be larger than it should be.
4155 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4156 ;;
4157
4158 gnu*)
4159 # Under GNU Hurd, this test is not required because there is
4160 # no limit to the length of command line arguments.
4161 # Libtool will interpret -1 as no limit whatsoever
4162 lt_cv_sys_max_cmd_len=-1;
4163 ;;
4164
4165 cygwin* | mingw* | cegcc*)
4166 # On Win9x/ME, this test blows up -- it succeeds, but takes
4167 # about 5 minutes as the teststring grows exponentially.
4168 # Worse, since 9x/ME are not pre-emptively multitasking,
4169 # you end up with a "frozen" computer, even though with patience
4170 # the test eventually succeeds (with a max line length of 256k).
4171 # Instead, let's just punt: use the minimum linelength reported by
4172 # all of the supported platforms: 8192 (on NT/2K/XP).
4173 lt_cv_sys_max_cmd_len=8192;
4174 ;;
4175
4176 amigaos*)
4177 # On AmigaOS with pdksh, this test takes hours, literally.
4178 # So we just punt and use a minimum line length of 8192.
4179 lt_cv_sys_max_cmd_len=8192;
4180 ;;
4181
4182 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4183 # This has been around since 386BSD, at least. Likely further.
4184 if test -x /sbin/sysctl; then
4185 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4186 elif test -x /usr/sbin/sysctl; then
4187 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4188 else
4189 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4190 fi
4191 # And add a safety zone
4192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4194 ;;
4195
4196 interix*)
4197 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4198 lt_cv_sys_max_cmd_len=196608
4199 ;;
4200
4201 osf*)
4202 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4203 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4204 # nice to cause kernel panics so lets avoid the loop below.
4205 # First set a reasonable default.
4206 lt_cv_sys_max_cmd_len=16384
4207 #
4208 if test -x /sbin/sysconfig; then
4209 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4210 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4211 esac
4212 fi
4213 ;;
4214 sco3.2v5*)
4215 lt_cv_sys_max_cmd_len=102400
4216 ;;
4217 sysv5* | sco5v6* | sysv4.2uw2*)
4218 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4219 if test -n "$kargmax"; then
4220 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4221 else
4222 lt_cv_sys_max_cmd_len=32768
4223 fi
4224 ;;
4225 *)
4226 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4227 if test -n "$lt_cv_sys_max_cmd_len"; then
4228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4230 else
4231 # Make teststring a little bigger before we do anything with it.
4232 # a 1K string should be a reasonable start.
4233 for i in 1 2 3 4 5 6 7 8 ; do
4234 teststring=$teststring$teststring
4235 done
4236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4237 # If test is not a shell built-in, we'll probably end up computing a
4238 # maximum length that is only half of the actual maximum length, but
4239 # we can't tell.
4240 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4241 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4242 test $i != 17 # 1/2 MB should be enough
4243 do
4244 i=`expr $i + 1`
4245 teststring=$teststring$teststring
4246 done
4247 # Only check the string length outside the loop.
4248 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4249 teststring=
4250 # Add a significant safety factor because C++ compilers can tack on
4251 # massive amounts of additional arguments before passing them to the
4252 # linker. It appears as though 1/2 is a usable value.
4253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4254 fi
4255 ;;
4256 esac
4257
4258 fi
4259
4260 if test -n $lt_cv_sys_max_cmd_len ; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4262 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4265 $as_echo "none" >&6; }
4266 fi
4267 max_cmd_len=$lt_cv_sys_max_cmd_len
4268
4269
4270
4271
4272
4273
4274 : ${CP="cp -f"}
4275 : ${MV="mv -f"}
4276 : ${RM="rm -f"}
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4279 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4280 # Try some XSI features
4281 xsi_shell=no
4282 ( _lt_dummy="a/b/c"
4283 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4284 = c,a/b,, \
4285 && eval 'test $(( 1 + 1 )) -eq 2 \
4286 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4287 && xsi_shell=yes
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4289 $as_echo "$xsi_shell" >&6; }
4290
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4293 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4294 lt_shell_append=no
4295 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4296 >/dev/null 2>&1 \
4297 && lt_shell_append=yes
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4299 $as_echo "$lt_shell_append" >&6; }
4300
4301
4302 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4303 lt_unset=unset
4304 else
4305 lt_unset=false
4306 fi
4307
4308
4309
4310
4311
4312 # test EBCDIC or ASCII
4313 case `echo X|tr X '\101'` in
4314 A) # ASCII based system
4315 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4316 lt_SP2NL='tr \040 \012'
4317 lt_NL2SP='tr \015\012 \040\040'
4318 ;;
4319 *) # EBCDIC based system
4320 lt_SP2NL='tr \100 \n'
4321 lt_NL2SP='tr \r\n \100\100'
4322 ;;
4323 esac
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4334 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4335 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 lt_cv_ld_reload_flag='-r'
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4341 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4342 reload_flag=$lt_cv_ld_reload_flag
4343 case $reload_flag in
4344 "" | " "*) ;;
4345 *) reload_flag=" $reload_flag" ;;
4346 esac
4347 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4348 case $host_os in
4349 darwin*)
4350 if test "$GCC" = yes; then
4351 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4352 else
4353 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4354 fi
4355 ;;
4356 esac
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366 if test -n "$ac_tool_prefix"; then
4367 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4368 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -n "$OBJDUMP"; then
4375 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 fi
4393 fi
4394 OBJDUMP=$ac_cv_prog_OBJDUMP
4395 if test -n "$OBJDUMP"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4397 $as_echo "$OBJDUMP" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402
4403
4404 fi
4405 if test -z "$ac_cv_prog_OBJDUMP"; then
4406 ac_ct_OBJDUMP=$OBJDUMP
4407 # Extract the first word of "objdump", so it can be a program name with args.
4408 set dummy objdump; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -n "$ac_ct_OBJDUMP"; then
4415 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4435 if test -n "$ac_ct_OBJDUMP"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4437 $as_echo "$ac_ct_OBJDUMP" >&6; }
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443 if test "x$ac_ct_OBJDUMP" = x; then
4444 OBJDUMP="false"
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 OBJDUMP=$ac_ct_OBJDUMP
4453 fi
4454 else
4455 OBJDUMP="$ac_cv_prog_OBJDUMP"
4456 fi
4457
4458 test -z "$OBJDUMP" && OBJDUMP=objdump
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4469 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4470 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 lt_cv_file_magic_cmd='$MAGIC_CMD'
4474 lt_cv_file_magic_test_file=
4475 lt_cv_deplibs_check_method='unknown'
4476 # Need to set the preceding variable on all platforms that support
4477 # interlibrary dependencies.
4478 # 'none' -- dependencies not supported.
4479 # `unknown' -- same as none, but documents that we really don't know.
4480 # 'pass_all' -- all dependencies passed with no checks.
4481 # 'test_compile' -- check by making test program.
4482 # 'file_magic [[regex]]' -- check by looking for files in library path
4483 # which responds to the $file_magic_cmd with a given extended regex.
4484 # If you have `file' or equivalent on your system and you're not sure
4485 # whether `pass_all' will *always* work, you probably want this one.
4486
4487 case $host_os in
4488 aix[4-9]*)
4489 lt_cv_deplibs_check_method=pass_all
4490 ;;
4491
4492 beos*)
4493 lt_cv_deplibs_check_method=pass_all
4494 ;;
4495
4496 bsdi[45]*)
4497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4498 lt_cv_file_magic_cmd='/usr/bin/file -L'
4499 lt_cv_file_magic_test_file=/shlib/libc.so
4500 ;;
4501
4502 cygwin*)
4503 # func_win32_libid is a shell function defined in ltmain.sh
4504 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4505 lt_cv_file_magic_cmd='func_win32_libid'
4506 ;;
4507
4508 mingw* | pw32*)
4509 # Base MSYS/MinGW do not provide the 'file' command needed by
4510 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4511 # unless we find 'file', for example because we are cross-compiling.
4512 if ( file / ) >/dev/null 2>&1; then
4513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4514 lt_cv_file_magic_cmd='func_win32_libid'
4515 else
4516 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4517 lt_cv_file_magic_cmd='$OBJDUMP -f'
4518 fi
4519 ;;
4520
4521 cegcc)
4522 # use the weaker test based on 'objdump'. See mingw*.
4523 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4524 lt_cv_file_magic_cmd='$OBJDUMP -f'
4525 ;;
4526
4527 darwin* | rhapsody*)
4528 lt_cv_deplibs_check_method=pass_all
4529 ;;
4530
4531 freebsd* | dragonfly*)
4532 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4533 case $host_cpu in
4534 i*86 )
4535 # Not sure whether the presence of OpenBSD here was a mistake.
4536 # Let's accept both of them until this is cleared up.
4537 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4538 lt_cv_file_magic_cmd=/usr/bin/file
4539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4540 ;;
4541 esac
4542 else
4543 lt_cv_deplibs_check_method=pass_all
4544 fi
4545 ;;
4546
4547 gnu*)
4548 lt_cv_deplibs_check_method=pass_all
4549 ;;
4550
4551 hpux10.20* | hpux11*)
4552 lt_cv_file_magic_cmd=/usr/bin/file
4553 case $host_cpu in
4554 ia64*)
4555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4556 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4557 ;;
4558 hppa*64*)
4559 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]'
4560 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4561 ;;
4562 *)
4563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4564 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4565 ;;
4566 esac
4567 ;;
4568
4569 interix[3-9]*)
4570 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4572 ;;
4573
4574 irix5* | irix6* | nonstopux*)
4575 case $LD in
4576 *-32|*"-32 ") libmagic=32-bit;;
4577 *-n32|*"-n32 ") libmagic=N32;;
4578 *-64|*"-64 ") libmagic=64-bit;;
4579 *) libmagic=never-match;;
4580 esac
4581 lt_cv_deplibs_check_method=pass_all
4582 ;;
4583
4584 # This must be Linux ELF.
4585 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4586 lt_cv_deplibs_check_method=pass_all
4587 ;;
4588
4589 netbsd* | netbsdelf*-gnu)
4590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4592 else
4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4594 fi
4595 ;;
4596
4597 newos6*)
4598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4599 lt_cv_file_magic_cmd=/usr/bin/file
4600 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4601 ;;
4602
4603 *nto* | *qnx*)
4604 lt_cv_deplibs_check_method=pass_all
4605 ;;
4606
4607 openbsd*)
4608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4610 else
4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4612 fi
4613 ;;
4614
4615 osf3* | osf4* | osf5*)
4616 lt_cv_deplibs_check_method=pass_all
4617 ;;
4618
4619 rdos*)
4620 lt_cv_deplibs_check_method=pass_all
4621 ;;
4622
4623 solaris*)
4624 lt_cv_deplibs_check_method=pass_all
4625 ;;
4626
4627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4628 lt_cv_deplibs_check_method=pass_all
4629 ;;
4630
4631 sysv4 | sysv4.3*)
4632 case $host_vendor in
4633 motorola)
4634 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]'
4635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4636 ;;
4637 ncr)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640 sequent)
4641 lt_cv_file_magic_cmd='/bin/file'
4642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4643 ;;
4644 sni)
4645 lt_cv_file_magic_cmd='/bin/file'
4646 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4647 lt_cv_file_magic_test_file=/lib/libc.so
4648 ;;
4649 siemens)
4650 lt_cv_deplibs_check_method=pass_all
4651 ;;
4652 pc)
4653 lt_cv_deplibs_check_method=pass_all
4654 ;;
4655 esac
4656 ;;
4657
4658 tpf*)
4659 lt_cv_deplibs_check_method=pass_all
4660 ;;
4661 esac
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4665 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4666 file_magic_cmd=$lt_cv_file_magic_cmd
4667 deplibs_check_method=$lt_cv_deplibs_check_method
4668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}ar; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_AR+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$AR"; then
4690 ac_cv_prog_AR="$AR" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_AR="${ac_tool_prefix}ar"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 fi
4708 fi
4709 AR=$ac_cv_prog_AR
4710 if test -n "$AR"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4712 $as_echo "$AR" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718
4719 fi
4720 if test -z "$ac_cv_prog_AR"; then
4721 ac_ct_AR=$AR
4722 # Extract the first word of "ar", so it can be a program name with args.
4723 set dummy ar; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$ac_ct_AR"; then
4730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_ac_ct_AR="ar"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743 done
4744 done
4745 IFS=$as_save_IFS
4746
4747 fi
4748 fi
4749 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4750 if test -n "$ac_ct_AR"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4752 $as_echo "$ac_ct_AR" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757
4758 if test "x$ac_ct_AR" = x; then
4759 AR="false"
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4766 esac
4767 AR=$ac_ct_AR
4768 fi
4769 else
4770 AR="$ac_cv_prog_AR"
4771 fi
4772
4773 test -z "$AR" && AR=ar
4774 test -z "$AR_FLAGS" && AR_FLAGS=cru
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786 if test -n "$ac_tool_prefix"; then
4787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4788 set dummy ${ac_tool_prefix}strip; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_STRIP+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$STRIP"; then
4795 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 STRIP=$ac_cv_prog_STRIP
4815 if test -n "$STRIP"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4817 $as_echo "$STRIP" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824 fi
4825 if test -z "$ac_cv_prog_STRIP"; then
4826 ac_ct_STRIP=$STRIP
4827 # Extract the first word of "strip", so it can be a program name with args.
4828 set dummy strip; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$ac_ct_STRIP"; then
4835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_ac_ct_STRIP="strip"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4855 if test -n "$ac_ct_STRIP"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4857 $as_echo "$ac_ct_STRIP" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4861 fi
4862
4863 if test "x$ac_ct_STRIP" = x; then
4864 STRIP=":"
4865 else
4866 case $cross_compiling:$ac_tool_warned in
4867 yes:)
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870 ac_tool_warned=yes ;;
4871 esac
4872 STRIP=$ac_ct_STRIP
4873 fi
4874 else
4875 STRIP="$ac_cv_prog_STRIP"
4876 fi
4877
4878 test -z "$STRIP" && STRIP=:
4879
4880
4881
4882
4883
4884
4885 if test -n "$ac_tool_prefix"; then
4886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$RANLIB"; then
4894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 RANLIB=$ac_cv_prog_RANLIB
4914 if test -n "$RANLIB"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4916 $as_echo "$RANLIB" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923 fi
4924 if test -z "$ac_cv_prog_RANLIB"; then
4925 ac_ct_RANLIB=$RANLIB
4926 # Extract the first word of "ranlib", so it can be a program name with args.
4927 set dummy ranlib; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$ac_ct_RANLIB"; then
4934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_ac_ct_RANLIB="ranlib"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4954 if test -n "$ac_ct_RANLIB"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4956 $as_echo "$ac_ct_RANLIB" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962 if test "x$ac_ct_RANLIB" = x; then
4963 RANLIB=":"
4964 else
4965 case $cross_compiling:$ac_tool_warned in
4966 yes:)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971 RANLIB=$ac_ct_RANLIB
4972 fi
4973 else
4974 RANLIB="$ac_cv_prog_RANLIB"
4975 fi
4976
4977 test -z "$RANLIB" && RANLIB=:
4978
4979
4980
4981
4982
4983
4984 # Determine commands to create old-style static archives.
4985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4986 old_postinstall_cmds='chmod 644 $oldlib'
4987 old_postuninstall_cmds=
4988
4989 if test -n "$RANLIB"; then
4990 case $host_os in
4991 openbsd*)
4992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4993 ;;
4994 *)
4995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4996 ;;
4997 esac
4998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4999 fi
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 # If no C compiler was specified, use CC.
5035 LTCC=${LTCC-"$CC"}
5036
5037 # If no C compiler flags were specified, use CFLAGS.
5038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5039
5040 # Allow CC to be a program name with arguments.
5041 compiler=$CC
5042
5043
5044 # Check for command to grab the raw symbol name followed by C symbol from nm.
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5046 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5047 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050
5051 # These are sane defaults that work on at least a few old systems.
5052 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5053
5054 # Character class describing NM global symbol codes.
5055 symcode='[BCDEGRST]'
5056
5057 # Regexp to match symbols that can be accessed directly from C.
5058 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5059
5060 # Define system-specific variables.
5061 case $host_os in
5062 aix*)
5063 symcode='[BCDT]'
5064 ;;
5065 cygwin* | mingw* | pw32* | cegcc*)
5066 symcode='[ABCDGISTW]'
5067 ;;
5068 hpux*)
5069 if test "$host_cpu" = ia64; then
5070 symcode='[ABCDEGRST]'
5071 fi
5072 ;;
5073 irix* | nonstopux*)
5074 symcode='[BCDEGRST]'
5075 ;;
5076 osf*)
5077 symcode='[BCDEGQRST]'
5078 ;;
5079 solaris*)
5080 symcode='[BDRT]'
5081 ;;
5082 sco3.2v5*)
5083 symcode='[DT]'
5084 ;;
5085 sysv4.2uw2*)
5086 symcode='[DT]'
5087 ;;
5088 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5089 symcode='[ABDT]'
5090 ;;
5091 sysv4)
5092 symcode='[DFNSTU]'
5093 ;;
5094 esac
5095
5096 # If we're using GNU nm, then use its standard symbol codes.
5097 case `$NM -V 2>&1` in
5098 *GNU* | *'with BFD'*)
5099 symcode='[ABCDGIRSTW]' ;;
5100 esac
5101
5102 # Transform an extracted symbol line into a proper C declaration.
5103 # Some systems (esp. on ia64) link data and code symbols differently,
5104 # so use this general approach.
5105 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5106
5107 # Transform an extracted symbol line into symbol name and symbol address
5108 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5109 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'"
5110
5111 # Handle CRLF in mingw tool chain
5112 opt_cr=
5113 case $build_os in
5114 mingw*)
5115 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5116 ;;
5117 esac
5118
5119 # Try without a prefix underscore, then with it.
5120 for ac_symprfx in "" "_"; do
5121
5122 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5123 symxfrm="\\1 $ac_symprfx\\2 \\2"
5124
5125 # Write the raw and C identifiers.
5126 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5127 # Fake it for dumpbin and say T for any non-static function
5128 # and D for any global variable.
5129 # Also find C++ and __fastcall symbols from MSVC++,
5130 # which start with @ or ?.
5131 lt_cv_sys_global_symbol_pipe="$AWK '"\
5132 " {last_section=section; section=\$ 3};"\
5133 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5134 " \$ 0!~/External *\|/{next};"\
5135 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5136 " {if(hide[section]) next};"\
5137 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5138 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5139 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5140 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5141 " ' prfx=^$ac_symprfx"
5142 else
5143 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5144 fi
5145
5146 # Check to see that the pipe works correctly.
5147 pipe_works=no
5148
5149 rm -f conftest*
5150 cat > conftest.$ac_ext <<_LT_EOF
5151 #ifdef __cplusplus
5152 extern "C" {
5153 #endif
5154 char nm_test_var;
5155 void nm_test_func(void);
5156 void nm_test_func(void){}
5157 #ifdef __cplusplus
5158 }
5159 #endif
5160 int main(){nm_test_var='a';nm_test_func();return(0);}
5161 _LT_EOF
5162
5163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5164 (eval $ac_compile) 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then
5168 # Now try to grab the symbols.
5169 nlist=conftest.nm
5170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5171 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; } && test -s "$nlist"; then
5175 # Try sorting and uniquifying the output.
5176 if sort "$nlist" | uniq > "$nlist"T; then
5177 mv -f "$nlist"T "$nlist"
5178 else
5179 rm -f "$nlist"T
5180 fi
5181
5182 # Make sure that we snagged all the symbols we need.
5183 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5184 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5185 cat <<_LT_EOF > conftest.$ac_ext
5186 #ifdef __cplusplus
5187 extern "C" {
5188 #endif
5189
5190 _LT_EOF
5191 # Now generate the symbol file.
5192 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5193
5194 cat <<_LT_EOF >> conftest.$ac_ext
5195
5196 /* The mapping between symbol names and symbols. */
5197 const struct {
5198 const char *name;
5199 void *address;
5200 }
5201 lt__PROGRAM__LTX_preloaded_symbols[] =
5202 {
5203 { "@PROGRAM@", (void *) 0 },
5204 _LT_EOF
5205 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5206 cat <<\_LT_EOF >> conftest.$ac_ext
5207 {0, (void *) 0}
5208 };
5209
5210 /* This works around a problem in FreeBSD linker */
5211 #ifdef FREEBSD_WORKAROUND
5212 static const void *lt_preloaded_setup() {
5213 return lt__PROGRAM__LTX_preloaded_symbols;
5214 }
5215 #endif
5216
5217 #ifdef __cplusplus
5218 }
5219 #endif
5220 _LT_EOF
5221 # Now try linking the two files.
5222 mv conftest.$ac_objext conftstm.$ac_objext
5223 lt_save_LIBS="$LIBS"
5224 lt_save_CFLAGS="$CFLAGS"
5225 LIBS="conftstm.$ac_objext"
5226 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5228 (eval $ac_link) 2>&5
5229 ac_status=$?
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5232 pipe_works=yes
5233 fi
5234 LIBS="$lt_save_LIBS"
5235 CFLAGS="$lt_save_CFLAGS"
5236 else
5237 echo "cannot find nm_test_func in $nlist" >&5
5238 fi
5239 else
5240 echo "cannot find nm_test_var in $nlist" >&5
5241 fi
5242 else
5243 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5244 fi
5245 else
5246 echo "$progname: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5248 fi
5249 rm -rf conftest* conftst*
5250
5251 # Do not use the global_symbol_pipe unless it works.
5252 if test "$pipe_works" = yes; then
5253 break
5254 else
5255 lt_cv_sys_global_symbol_pipe=
5256 fi
5257 done
5258
5259 fi
5260
5261 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5262 lt_cv_sys_global_symbol_to_cdecl=
5263 fi
5264 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5266 $as_echo "failed" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5269 $as_echo "ok" >&6; }
5270 fi
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 # Check whether --enable-libtool-lock was given.
5295 if test "${enable_libtool_lock+set}" = set; then :
5296 enableval=$enable_libtool_lock;
5297 fi
5298
5299 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5300
5301 # Some flags need to be propagated to the compiler or linker for good
5302 # libtool support.
5303 case $host in
5304 ia64-*-hpux*)
5305 # Find out which ABI we are using.
5306 echo 'int i;' > conftest.$ac_ext
5307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5308 (eval $ac_compile) 2>&5
5309 ac_status=$?
5310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5311 test $ac_status = 0; }; then
5312 case `/usr/bin/file conftest.$ac_objext` in
5313 *ELF-32*)
5314 HPUX_IA64_MODE="32"
5315 ;;
5316 *ELF-64*)
5317 HPUX_IA64_MODE="64"
5318 ;;
5319 esac
5320 fi
5321 rm -rf conftest*
5322 ;;
5323 *-*-irix6*)
5324 # Find out which ABI we are using.
5325 echo '#line 5325 "configure"' > conftest.$ac_ext
5326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5327 (eval $ac_compile) 2>&5
5328 ac_status=$?
5329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330 test $ac_status = 0; }; then
5331 if test "$lt_cv_prog_gnu_ld" = yes; then
5332 case `/usr/bin/file conftest.$ac_objext` in
5333 *32-bit*)
5334 LD="${LD-ld} -melf32bsmip"
5335 ;;
5336 *N32*)
5337 LD="${LD-ld} -melf32bmipn32"
5338 ;;
5339 *64-bit*)
5340 LD="${LD-ld} -melf64bmip"
5341 ;;
5342 esac
5343 else
5344 case `/usr/bin/file conftest.$ac_objext` in
5345 *32-bit*)
5346 LD="${LD-ld} -32"
5347 ;;
5348 *N32*)
5349 LD="${LD-ld} -n32"
5350 ;;
5351 *64-bit*)
5352 LD="${LD-ld} -64"
5353 ;;
5354 esac
5355 fi
5356 fi
5357 rm -rf conftest*
5358 ;;
5359
5360 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5361 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5362 # Find out which ABI we are using.
5363 echo 'int i;' > conftest.$ac_ext
5364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5365 (eval $ac_compile) 2>&5
5366 ac_status=$?
5367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5368 test $ac_status = 0; }; then
5369 case `/usr/bin/file conftest.o` in
5370 *32-bit*)
5371 case $host in
5372 x86_64-*kfreebsd*-gnu)
5373 LD="${LD-ld} -m elf_i386_fbsd"
5374 ;;
5375 x86_64-*linux*)
5376 LD="${LD-ld} -m elf_i386"
5377 ;;
5378 ppc64-*linux*|powerpc64-*linux*)
5379 LD="${LD-ld} -m elf32ppclinux"
5380 ;;
5381 s390x-*linux*)
5382 LD="${LD-ld} -m elf_s390"
5383 ;;
5384 sparc64-*linux*)
5385 LD="${LD-ld} -m elf32_sparc"
5386 ;;
5387 esac
5388 ;;
5389 *64-bit*)
5390 case $host in
5391 x86_64-*kfreebsd*-gnu)
5392 LD="${LD-ld} -m elf_x86_64_fbsd"
5393 ;;
5394 x86_64-*linux*)
5395 LD="${LD-ld} -m elf_x86_64"
5396 ;;
5397 ppc*-*linux*|powerpc*-*linux*)
5398 LD="${LD-ld} -m elf64ppc"
5399 ;;
5400 s390*-*linux*|s390*-*tpf*)
5401 LD="${LD-ld} -m elf64_s390"
5402 ;;
5403 sparc*-*linux*)
5404 LD="${LD-ld} -m elf64_sparc"
5405 ;;
5406 esac
5407 ;;
5408 esac
5409 fi
5410 rm -rf conftest*
5411 ;;
5412
5413 *-*-sco3.2v5*)
5414 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5415 SAVE_CFLAGS="$CFLAGS"
5416 CFLAGS="$CFLAGS -belf"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5418 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5419 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 ac_ext=c
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430
5431 int
5432 main ()
5433 {
5434
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 if ac_fn_c_try_link "$LINENO"; then :
5440 lt_cv_cc_needs_belf=yes
5441 else
5442 lt_cv_cc_needs_belf=no
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext \
5445 conftest$ac_exeext conftest.$ac_ext
5446 ac_ext=c
5447 ac_cpp='$CPP $CPPFLAGS'
5448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5451
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5454 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5455 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5456 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5457 CFLAGS="$SAVE_CFLAGS"
5458 fi
5459 ;;
5460 sparc*-*solaris*)
5461 # Find out which ABI we are using.
5462 echo 'int i;' > conftest.$ac_ext
5463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5464 (eval $ac_compile) 2>&5
5465 ac_status=$?
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; }; then
5468 case `/usr/bin/file conftest.o` in
5469 *64-bit*)
5470 case $lt_cv_prog_gnu_ld in
5471 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5472 *)
5473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5474 LD="${LD-ld} -64"
5475 fi
5476 ;;
5477 esac
5478 ;;
5479 esac
5480 fi
5481 rm -rf conftest*
5482 ;;
5483 esac
5484
5485 need_locks="$enable_libtool_lock"
5486
5487
5488 case $host_os in
5489 rhapsody* | darwin*)
5490 if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$DSYMUTIL"; then
5499 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5519 if test -n "$DSYMUTIL"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5521 $as_echo "$DSYMUTIL" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527
5528 fi
5529 if test -z "$ac_cv_prog_DSYMUTIL"; then
5530 ac_ct_DSYMUTIL=$DSYMUTIL
5531 # Extract the first word of "dsymutil", so it can be a program name with args.
5532 set dummy dsymutil; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$ac_ct_DSYMUTIL"; then
5539 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5559 if test -n "$ac_ct_DSYMUTIL"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5561 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567 if test "x$ac_ct_DSYMUTIL" = x; then
5568 DSYMUTIL=":"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571 yes:)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574 ac_tool_warned=yes ;;
5575 esac
5576 DSYMUTIL=$ac_ct_DSYMUTIL
5577 fi
5578 else
5579 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5580 fi
5581
5582 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$NMEDIT"; then
5591 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 NMEDIT=$ac_cv_prog_NMEDIT
5611 if test -n "$NMEDIT"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5613 $as_echo "$NMEDIT" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619
5620 fi
5621 if test -z "$ac_cv_prog_NMEDIT"; then
5622 ac_ct_NMEDIT=$NMEDIT
5623 # Extract the first word of "nmedit", so it can be a program name with args.
5624 set dummy nmedit; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$ac_ct_NMEDIT"; then
5631 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5651 if test -n "$ac_ct_NMEDIT"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5653 $as_echo "$ac_ct_NMEDIT" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659 if test "x$ac_ct_NMEDIT" = x; then
5660 NMEDIT=":"
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668 NMEDIT=$ac_ct_NMEDIT
5669 fi
5670 else
5671 NMEDIT="$ac_cv_prog_NMEDIT"
5672 fi
5673
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if test "${ac_cv_prog_LIPO+set}" = set; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$LIPO"; then
5683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 LIPO=$ac_cv_prog_LIPO
5703 if test -n "$LIPO"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5705 $as_echo "$LIPO" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5709 fi
5710
5711
5712 fi
5713 if test -z "$ac_cv_prog_LIPO"; then
5714 ac_ct_LIPO=$LIPO
5715 # Extract the first word of "lipo", so it can be a program name with args.
5716 set dummy lipo; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ac_ct_LIPO"; then
5723 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_ac_ct_LIPO="lipo"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5743 if test -n "$ac_ct_LIPO"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5745 $as_echo "$ac_ct_LIPO" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751 if test "x$ac_ct_LIPO" = x; then
5752 LIPO=":"
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760 LIPO=$ac_ct_LIPO
5761 fi
5762 else
5763 LIPO="$ac_cv_prog_LIPO"
5764 fi
5765
5766 if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}otool; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$OTOOL"; then
5775 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 OTOOL=$ac_cv_prog_OTOOL
5795 if test -n "$OTOOL"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5797 $as_echo "$OTOOL" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803
5804 fi
5805 if test -z "$ac_cv_prog_OTOOL"; then
5806 ac_ct_OTOOL=$OTOOL
5807 # Extract the first word of "otool", so it can be a program name with args.
5808 set dummy otool; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$ac_ct_OTOOL"; then
5815 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_OTOOL="otool"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5835 if test -n "$ac_ct_OTOOL"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5837 $as_echo "$ac_ct_OTOOL" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843 if test "x$ac_ct_OTOOL" = x; then
5844 OTOOL=":"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850 ac_tool_warned=yes ;;
5851 esac
5852 OTOOL=$ac_ct_OTOOL
5853 fi
5854 else
5855 OTOOL="$ac_cv_prog_OTOOL"
5856 fi
5857
5858 if test -n "$ac_tool_prefix"; then
5859 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5860 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$OTOOL64"; then
5867 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 OTOOL64=$ac_cv_prog_OTOOL64
5887 if test -n "$OTOOL64"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5889 $as_echo "$OTOOL64" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895
5896 fi
5897 if test -z "$ac_cv_prog_OTOOL64"; then
5898 ac_ct_OTOOL64=$OTOOL64
5899 # Extract the first word of "otool64", so it can be a program name with args.
5900 set dummy otool64; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$ac_ct_OTOOL64"; then
5907 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_ac_ct_OTOOL64="otool64"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5927 if test -n "$ac_ct_OTOOL64"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5929 $as_echo "$ac_ct_OTOOL64" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935 if test "x$ac_ct_OTOOL64" = x; then
5936 OTOOL64=":"
5937 else
5938 case $cross_compiling:$ac_tool_warned in
5939 yes:)
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944 OTOOL64=$ac_ct_OTOOL64
5945 fi
5946 else
5947 OTOOL64="$ac_cv_prog_OTOOL64"
5948 fi
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5977 $as_echo_n "checking for -single_module linker flag... " >&6; }
5978 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 lt_cv_apple_cc_single_mod=no
5982 if test -z "${LT_MULTI_MODULE}"; then
5983 # By default we will add the -single_module flag. You can override
5984 # by either setting the environment variable LT_MULTI_MODULE
5985 # non-empty at configure time, or by adding -multi_module to the
5986 # link flags.
5987 rm -rf libconftest.dylib*
5988 echo "int foo(void){return 1;}" > conftest.c
5989 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5990 -dynamiclib -Wl,-single_module conftest.c" >&5
5991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5992 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5993 _lt_result=$?
5994 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5995 lt_cv_apple_cc_single_mod=yes
5996 else
5997 cat conftest.err >&5
5998 fi
5999 rm -rf libconftest.dylib*
6000 rm -f conftest.*
6001 fi
6002 fi
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6004 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6006 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6007 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 lt_cv_ld_exported_symbols_list=no
6011 save_LDFLAGS=$LDFLAGS
6012 echo "_main" > conftest.sym
6013 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016
6017 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026 lt_cv_ld_exported_symbols_list=yes
6027 else
6028 lt_cv_ld_exported_symbols_list=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 LDFLAGS="$save_LDFLAGS"
6033
6034 fi
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6036 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6037 case $host_os in
6038 rhapsody* | darwin1.[012])
6039 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6040 darwin1.*)
6041 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6042 darwin*) # darwin 5.x on
6043 # if running on 10.5 or later, the deployment target defaults
6044 # to the OS version, if on x86, and 10.4, the deployment
6045 # target defaults to 10.4. Don't you love it?
6046 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6047 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6048 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6049 10.[012]*)
6050 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6051 10.*)
6052 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6053 esac
6054 ;;
6055 esac
6056 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6057 _lt_dar_single_mod='$single_module'
6058 fi
6059 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6060 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6061 else
6062 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6063 fi
6064 if test "$DSYMUTIL" != ":"; then
6065 _lt_dsymutil='~$DSYMUTIL $lib || :'
6066 else
6067 _lt_dsymutil=
6068 fi
6069 ;;
6070 esac
6071
6072 ac_ext=c
6073 ac_cpp='$CPP $CPPFLAGS'
6074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6078 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6079 # On Suns, sometimes $CPP names a directory.
6080 if test -n "$CPP" && test -d "$CPP"; then
6081 CPP=
6082 fi
6083 if test -z "$CPP"; then
6084 if test "${ac_cv_prog_CPP+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 # Double quotes because CPP needs to be expanded
6088 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6089 do
6090 ac_preproc_ok=false
6091 for ac_c_preproc_warn_flag in '' yes
6092 do
6093 # Use a header file that comes with gcc, so configuring glibc
6094 # with a fresh cross-compiler works.
6095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6096 # <limits.h> exists even on freestanding compilers.
6097 # On the NeXT, cc -E runs the code through the compiler's parser,
6098 # not just through cpp. "Syntax error" is here to catch this case.
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #ifdef __STDC__
6102 # include <limits.h>
6103 #else
6104 # include <assert.h>
6105 #endif
6106 Syntax error
6107 _ACEOF
6108 if ac_fn_c_try_cpp "$LINENO"; then :
6109
6110 else
6111 # Broken: fails on valid input.
6112 continue
6113 fi
6114 rm -f conftest.err conftest.$ac_ext
6115
6116 # OK, works on sane cases. Now check whether nonexistent headers
6117 # can be detected and how.
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <ac_nonexistent.h>
6121 _ACEOF
6122 if ac_fn_c_try_cpp "$LINENO"; then :
6123 # Broken: success on invalid input.
6124 continue
6125 else
6126 # Passes both tests.
6127 ac_preproc_ok=:
6128 break
6129 fi
6130 rm -f conftest.err conftest.$ac_ext
6131
6132 done
6133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134 rm -f conftest.err conftest.$ac_ext
6135 if $ac_preproc_ok; then :
6136 break
6137 fi
6138
6139 done
6140 ac_cv_prog_CPP=$CPP
6141
6142 fi
6143 CPP=$ac_cv_prog_CPP
6144 else
6145 ac_cv_prog_CPP=$CPP
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6148 $as_echo "$CPP" >&6; }
6149 ac_preproc_ok=false
6150 for ac_c_preproc_warn_flag in '' yes
6151 do
6152 # Use a header file that comes with gcc, so configuring glibc
6153 # with a fresh cross-compiler works.
6154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155 # <limits.h> exists even on freestanding compilers.
6156 # On the NeXT, cc -E runs the code through the compiler's parser,
6157 # not just through cpp. "Syntax error" is here to catch this case.
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 #ifdef __STDC__
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6165 Syntax error
6166 _ACEOF
6167 if ac_fn_c_try_cpp "$LINENO"; then :
6168
6169 else
6170 # Broken: fails on valid input.
6171 continue
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 # OK, works on sane cases. Now check whether nonexistent headers
6176 # can be detected and how.
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <ac_nonexistent.h>
6180 _ACEOF
6181 if ac_fn_c_try_cpp "$LINENO"; then :
6182 # Broken: success on invalid input.
6183 continue
6184 else
6185 # Passes both tests.
6186 ac_preproc_ok=:
6187 break
6188 fi
6189 rm -f conftest.err conftest.$ac_ext
6190
6191 done
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then :
6195
6196 else
6197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6199 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6200 See \`config.log' for more details." "$LINENO" 5; }
6201 fi
6202
6203 ac_ext=c
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6211 $as_echo_n "checking for ANSI C header files... " >&6; }
6212 if test "${ac_cv_header_stdc+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <stdlib.h>
6218 #include <stdarg.h>
6219 #include <string.h>
6220 #include <float.h>
6221
6222 int
6223 main ()
6224 {
6225
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 ac_cv_header_stdc=yes
6232 else
6233 ac_cv_header_stdc=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236
6237 if test $ac_cv_header_stdc = yes; then
6238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 #include <string.h>
6242
6243 _ACEOF
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245 $EGREP "memchr" >/dev/null 2>&1; then :
6246
6247 else
6248 ac_cv_header_stdc=no
6249 fi
6250 rm -f conftest*
6251
6252 fi
6253
6254 if test $ac_cv_header_stdc = yes; then
6255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 #include <stdlib.h>
6259
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "free" >/dev/null 2>&1; then :
6263
6264 else
6265 ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest*
6268
6269 fi
6270
6271 if test $ac_cv_header_stdc = yes; then
6272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6273 if test "$cross_compiling" = yes; then :
6274 :
6275 else
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 #include <ctype.h>
6279 #include <stdlib.h>
6280 #if ((' ' & 0x0FF) == 0x020)
6281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6283 #else
6284 # define ISLOWER(c) \
6285 (('a' <= (c) && (c) <= 'i') \
6286 || ('j' <= (c) && (c) <= 'r') \
6287 || ('s' <= (c) && (c) <= 'z'))
6288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6289 #endif
6290
6291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6292 int
6293 main ()
6294 {
6295 int i;
6296 for (i = 0; i < 256; i++)
6297 if (XOR (islower (i), ISLOWER (i))
6298 || toupper (i) != TOUPPER (i))
6299 return 2;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_run "$LINENO"; then :
6304
6305 else
6306 ac_cv_header_stdc=no
6307 fi
6308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6309 conftest.$ac_objext conftest.beam conftest.$ac_ext
6310 fi
6311
6312 fi
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6315 $as_echo "$ac_cv_header_stdc" >&6; }
6316 if test $ac_cv_header_stdc = yes; then
6317
6318 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6319
6320 fi
6321
6322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6323 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6324 inttypes.h stdint.h unistd.h
6325 do :
6326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6328 "
6329 eval as_val=\$$as_ac_Header
6330 if test "x$as_val" = x""yes; then :
6331 cat >>confdefs.h <<_ACEOF
6332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 _ACEOF
6334
6335 fi
6336
6337 done
6338
6339
6340 for ac_header in dlfcn.h
6341 do :
6342 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6343 "
6344 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6345 cat >>confdefs.h <<_ACEOF
6346 #define HAVE_DLFCN_H 1
6347 _ACEOF
6348
6349 fi
6350
6351 done
6352
6353
6354
6355 # Set options
6356 # Check whether --enable-static was given.
6357 if test "${enable_static+set}" = set; then :
6358 enableval=$enable_static; p=${PACKAGE-default}
6359 case $enableval in
6360 yes) enable_static=yes ;;
6361 no) enable_static=no ;;
6362 *)
6363 enable_static=no
6364 # Look at the argument we got. We use all the common list separators.
6365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6366 for pkg in $enableval; do
6367 IFS="$lt_save_ifs"
6368 if test "X$pkg" = "X$p"; then
6369 enable_static=yes
6370 fi
6371 done
6372 IFS="$lt_save_ifs"
6373 ;;
6374 esac
6375 else
6376 enable_static=no
6377 fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 enable_dlopen=no
6389
6390
6391 enable_win32_dll=no
6392
6393
6394 # Check whether --enable-shared was given.
6395 if test "${enable_shared+set}" = set; then :
6396 enableval=$enable_shared; p=${PACKAGE-default}
6397 case $enableval in
6398 yes) enable_shared=yes ;;
6399 no) enable_shared=no ;;
6400 *)
6401 enable_shared=no
6402 # Look at the argument we got. We use all the common list separators.
6403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6404 for pkg in $enableval; do
6405 IFS="$lt_save_ifs"
6406 if test "X$pkg" = "X$p"; then
6407 enable_shared=yes
6408 fi
6409 done
6410 IFS="$lt_save_ifs"
6411 ;;
6412 esac
6413 else
6414 enable_shared=yes
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427 # Check whether --with-pic was given.
6428 if test "${with_pic+set}" = set; then :
6429 withval=$with_pic; pic_mode="$withval"
6430 else
6431 pic_mode=default
6432 fi
6433
6434
6435 test -z "$pic_mode" && pic_mode=default
6436
6437
6438
6439
6440
6441
6442
6443 # Check whether --enable-fast-install was given.
6444 if test "${enable_fast_install+set}" = set; then :
6445 enableval=$enable_fast_install; p=${PACKAGE-default}
6446 case $enableval in
6447 yes) enable_fast_install=yes ;;
6448 no) enable_fast_install=no ;;
6449 *)
6450 enable_fast_install=no
6451 # Look at the argument we got. We use all the common list separators.
6452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6453 for pkg in $enableval; do
6454 IFS="$lt_save_ifs"
6455 if test "X$pkg" = "X$p"; then
6456 enable_fast_install=yes
6457 fi
6458 done
6459 IFS="$lt_save_ifs"
6460 ;;
6461 esac
6462 else
6463 enable_fast_install=yes
6464 fi
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 # This can be used to rebuild libtool when needed
6477 LIBTOOL_DEPS="$ltmain"
6478
6479 # Always use our own libtool.
6480 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 test -z "$LN_S" && LN_S="ln -s"
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 if test -n "${ZSH_VERSION+set}" ; then
6522 setopt NO_GLOB_SUBST
6523 fi
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6526 $as_echo_n "checking for objdir... " >&6; }
6527 if test "${lt_cv_objdir+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 rm -f .libs 2>/dev/null
6531 mkdir .libs 2>/dev/null
6532 if test -d .libs; then
6533 lt_cv_objdir=.libs
6534 else
6535 # MS-DOS does not allow filenames that begin with a dot.
6536 lt_cv_objdir=_libs
6537 fi
6538 rmdir .libs 2>/dev/null
6539 fi
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6541 $as_echo "$lt_cv_objdir" >&6; }
6542 objdir=$lt_cv_objdir
6543
6544
6545
6546
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define LT_OBJDIR "$lt_cv_objdir/"
6550 _ACEOF
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 case $host_os in
6569 aix3*)
6570 # AIX sometimes has problems with the GCC collect2 program. For some
6571 # reason, if we set the COLLECT_NAMES environment variable, the problems
6572 # vanish in a puff of smoke.
6573 if test "X${COLLECT_NAMES+set}" != Xset; then
6574 COLLECT_NAMES=
6575 export COLLECT_NAMES
6576 fi
6577 ;;
6578 esac
6579
6580 # Sed substitution that helps us do robust quoting. It backslashifies
6581 # metacharacters that are still active within double-quoted strings.
6582 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6583
6584 # Same as above, but do not quote variable references.
6585 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6586
6587 # Sed substitution to delay expansion of an escaped shell variable in a
6588 # double_quote_subst'ed string.
6589 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6590
6591 # Sed substitution to delay expansion of an escaped single quote.
6592 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6593
6594 # Sed substitution to avoid accidental globbing in evaled expressions
6595 no_glob_subst='s/\*/\\\*/g'
6596
6597 # Global variables:
6598 ofile=libtool
6599 can_build_shared=yes
6600
6601 # All known linkers require a `.a' archive for static linking (except MSVC,
6602 # which needs '.lib').
6603 libext=a
6604
6605 with_gnu_ld="$lt_cv_prog_gnu_ld"
6606
6607 old_CC="$CC"
6608 old_CFLAGS="$CFLAGS"
6609
6610 # Set sane defaults for various variables
6611 test -z "$CC" && CC=cc
6612 test -z "$LTCC" && LTCC=$CC
6613 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6614 test -z "$LD" && LD=ld
6615 test -z "$ac_objext" && ac_objext=o
6616
6617 for cc_temp in $compiler""; do
6618 case $cc_temp in
6619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6621 \-*) ;;
6622 *) break;;
6623 esac
6624 done
6625 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6626
6627
6628 # Only perform the check for file, if the check method requires it
6629 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6630 case $deplibs_check_method in
6631 file_magic*)
6632 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6634 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6635 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 case $MAGIC_CMD in
6639 [\\/*] | ?:[\\/]*)
6640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6641 ;;
6642 *)
6643 lt_save_MAGIC_CMD="$MAGIC_CMD"
6644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6646 for ac_dir in $ac_dummy; do
6647 IFS="$lt_save_ifs"
6648 test -z "$ac_dir" && ac_dir=.
6649 if test -f $ac_dir/${ac_tool_prefix}file; then
6650 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6651 if test -n "$file_magic_test_file"; then
6652 case $deplibs_check_method in
6653 "file_magic "*)
6654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6657 $EGREP "$file_magic_regex" > /dev/null; then
6658 :
6659 else
6660 cat <<_LT_EOF 1>&2
6661
6662 *** Warning: the command libtool uses to detect shared libraries,
6663 *** $file_magic_cmd, produces output that libtool cannot recognize.
6664 *** The result is that libtool may fail to recognize shared libraries
6665 *** as such. This will affect the creation of libtool libraries that
6666 *** depend on shared libraries, but programs linked with such libtool
6667 *** libraries will work regardless of this problem. Nevertheless, you
6668 *** may want to report the problem to your system manager and/or to
6669 *** bug-libtool@gnu.org
6670
6671 _LT_EOF
6672 fi ;;
6673 esac
6674 fi
6675 break
6676 fi
6677 done
6678 IFS="$lt_save_ifs"
6679 MAGIC_CMD="$lt_save_MAGIC_CMD"
6680 ;;
6681 esac
6682 fi
6683
6684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6685 if test -n "$MAGIC_CMD"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6687 $as_echo "$MAGIC_CMD" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694
6695
6696
6697 if test -z "$lt_cv_path_MAGIC_CMD"; then
6698 if test -n "$ac_tool_prefix"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6700 $as_echo_n "checking for file... " >&6; }
6701 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 case $MAGIC_CMD in
6705 [\\/*] | ?:[\\/]*)
6706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6707 ;;
6708 *)
6709 lt_save_MAGIC_CMD="$MAGIC_CMD"
6710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6712 for ac_dir in $ac_dummy; do
6713 IFS="$lt_save_ifs"
6714 test -z "$ac_dir" && ac_dir=.
6715 if test -f $ac_dir/file; then
6716 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6717 if test -n "$file_magic_test_file"; then
6718 case $deplibs_check_method in
6719 "file_magic "*)
6720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6723 $EGREP "$file_magic_regex" > /dev/null; then
6724 :
6725 else
6726 cat <<_LT_EOF 1>&2
6727
6728 *** Warning: the command libtool uses to detect shared libraries,
6729 *** $file_magic_cmd, produces output that libtool cannot recognize.
6730 *** The result is that libtool may fail to recognize shared libraries
6731 *** as such. This will affect the creation of libtool libraries that
6732 *** depend on shared libraries, but programs linked with such libtool
6733 *** libraries will work regardless of this problem. Nevertheless, you
6734 *** may want to report the problem to your system manager and/or to
6735 *** bug-libtool@gnu.org
6736
6737 _LT_EOF
6738 fi ;;
6739 esac
6740 fi
6741 break
6742 fi
6743 done
6744 IFS="$lt_save_ifs"
6745 MAGIC_CMD="$lt_save_MAGIC_CMD"
6746 ;;
6747 esac
6748 fi
6749
6750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6751 if test -n "$MAGIC_CMD"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6753 $as_echo "$MAGIC_CMD" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 else
6761 MAGIC_CMD=:
6762 fi
6763 fi
6764
6765 fi
6766 ;;
6767 esac
6768
6769 # Use C for the default configuration in the libtool script
6770
6771 lt_save_CC="$CC"
6772 ac_ext=c
6773 ac_cpp='$CPP $CPPFLAGS'
6774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777
6778
6779 # Source file extension for C test sources.
6780 ac_ext=c
6781
6782 # Object file extension for compiled C test sources.
6783 objext=o
6784 objext=$objext
6785
6786 # Code to be used in simple compile tests
6787 lt_simple_compile_test_code="int some_variable = 0;"
6788
6789 # Code to be used in simple link tests
6790 lt_simple_link_test_code='int main(){return(0);}'
6791
6792
6793
6794
6795
6796
6797
6798 # If no C compiler was specified, use CC.
6799 LTCC=${LTCC-"$CC"}
6800
6801 # If no C compiler flags were specified, use CFLAGS.
6802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6803
6804 # Allow CC to be a program name with arguments.
6805 compiler=$CC
6806
6807 # Save the default compiler, since it gets overwritten when the other
6808 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6809 compiler_DEFAULT=$CC
6810
6811 # save warnings/boilerplate of simple test code
6812 ac_outfile=conftest.$ac_objext
6813 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6815 _lt_compiler_boilerplate=`cat conftest.err`
6816 $RM conftest*
6817
6818 ac_outfile=conftest.$ac_objext
6819 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6821 _lt_linker_boilerplate=`cat conftest.err`
6822 $RM -r conftest*
6823
6824
6825 if test -n "$compiler"; then
6826
6827 lt_prog_compiler_no_builtin_flag=
6828
6829 if test "$GCC" = yes; then
6830 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6831
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6833 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6834 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 lt_cv_prog_compiler_rtti_exceptions=no
6838 ac_outfile=conftest.$ac_objext
6839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6840 lt_compiler_flag="-fno-rtti -fno-exceptions"
6841 # Insert the option either (1) after the last *FLAGS variable, or
6842 # (2) before a word containing "conftest.", or (3) at the end.
6843 # Note that $ac_compile itself does not contain backslashes and begins
6844 # with a dollar sign (not a hyphen), so the echo should work correctly.
6845 # The option is referenced via a variable to avoid confusing sed.
6846 lt_compile=`echo "$ac_compile" | $SED \
6847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6849 -e 's:$: $lt_compiler_flag:'`
6850 (eval echo "\"\$as_me:6850: $lt_compile\"" >&5)
6851 (eval "$lt_compile" 2>conftest.err)
6852 ac_status=$?
6853 cat conftest.err >&5
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 if (exit $ac_status) && test -s "$ac_outfile"; then
6856 # The compiler can only warn and ignore the option if not recognized
6857 # So say no if there are warnings other than the usual output.
6858 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6861 lt_cv_prog_compiler_rtti_exceptions=yes
6862 fi
6863 fi
6864 $RM conftest*
6865
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6868 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6869
6870 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6871 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6872 else
6873 :
6874 fi
6875
6876 fi
6877
6878
6879
6880
6881
6882
6883 lt_prog_compiler_wl=
6884 lt_prog_compiler_pic=
6885 lt_prog_compiler_static=
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6888 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6889
6890 if test "$GCC" = yes; then
6891 lt_prog_compiler_wl='-Wl,'
6892 lt_prog_compiler_static='-static'
6893
6894 case $host_os in
6895 aix*)
6896 # All AIX code is PIC.
6897 if test "$host_cpu" = ia64; then
6898 # AIX 5 now supports IA64 processor
6899 lt_prog_compiler_static='-Bstatic'
6900 fi
6901 ;;
6902
6903 amigaos*)
6904 case $host_cpu in
6905 powerpc)
6906 # see comment about AmigaOS4 .so support
6907 lt_prog_compiler_pic='-fPIC'
6908 ;;
6909 m68k)
6910 # FIXME: we need at least 68020 code to build shared libraries, but
6911 # adding the `-m68020' flag to GCC prevents building anything better,
6912 # like `-m68040'.
6913 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6914 ;;
6915 esac
6916 ;;
6917
6918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6919 # PIC is the default for these OSes.
6920 ;;
6921
6922 mingw* | cygwin* | pw32* | os2* | cegcc*)
6923 # This hack is so that the source file can tell whether it is being
6924 # built for inclusion in a dll (and should export symbols for example).
6925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6926 # (--disable-auto-import) libraries
6927 lt_prog_compiler_pic='-DDLL_EXPORT'
6928 ;;
6929
6930 darwin* | rhapsody*)
6931 # PIC is the default on this platform
6932 # Common symbols not allowed in MH_DYLIB files
6933 lt_prog_compiler_pic='-fno-common'
6934 ;;
6935
6936 hpux*)
6937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6939 # sets the default TLS model and affects inlining.
6940 case $host_cpu in
6941 hppa*64*)
6942 # +Z the default
6943 ;;
6944 *)
6945 lt_prog_compiler_pic='-fPIC'
6946 ;;
6947 esac
6948 ;;
6949
6950 interix[3-9]*)
6951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6952 # Instead, we relocate shared libraries at runtime.
6953 ;;
6954
6955 msdosdjgpp*)
6956 # Just because we use GCC doesn't mean we suddenly get shared libraries
6957 # on systems that don't support them.
6958 lt_prog_compiler_can_build_shared=no
6959 enable_shared=no
6960 ;;
6961
6962 *nto* | *qnx*)
6963 # QNX uses GNU C++, but need to define -shared option too, otherwise
6964 # it will coredump.
6965 lt_prog_compiler_pic='-fPIC -shared'
6966 ;;
6967
6968 sysv4*MP*)
6969 if test -d /usr/nec; then
6970 lt_prog_compiler_pic=-Kconform_pic
6971 fi
6972 ;;
6973
6974 *)
6975 lt_prog_compiler_pic='-fPIC'
6976 ;;
6977 esac
6978 else
6979 # PORTME Check for flag to pass linker flags through the system compiler.
6980 case $host_os in
6981 aix*)
6982 lt_prog_compiler_wl='-Wl,'
6983 if test "$host_cpu" = ia64; then
6984 # AIX 5 now supports IA64 processor
6985 lt_prog_compiler_static='-Bstatic'
6986 else
6987 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6988 fi
6989 ;;
6990
6991 mingw* | cygwin* | pw32* | os2* | cegcc*)
6992 # This hack is so that the source file can tell whether it is being
6993 # built for inclusion in a dll (and should export symbols for example).
6994 lt_prog_compiler_pic='-DDLL_EXPORT'
6995 ;;
6996
6997 hpux9* | hpux10* | hpux11*)
6998 lt_prog_compiler_wl='-Wl,'
6999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7000 # not for PA HP-UX.
7001 case $host_cpu in
7002 hppa*64*|ia64*)
7003 # +Z the default
7004 ;;
7005 *)
7006 lt_prog_compiler_pic='+Z'
7007 ;;
7008 esac
7009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7010 lt_prog_compiler_static='${wl}-a ${wl}archive'
7011 ;;
7012
7013 irix5* | irix6* | nonstopux*)
7014 lt_prog_compiler_wl='-Wl,'
7015 # PIC (with -KPIC) is the default.
7016 lt_prog_compiler_static='-non_shared'
7017 ;;
7018
7019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7020 case $cc_basename in
7021 # old Intel for x86_64 which still supported -KPIC.
7022 ecc*)
7023 lt_prog_compiler_wl='-Wl,'
7024 lt_prog_compiler_pic='-KPIC'
7025 lt_prog_compiler_static='-static'
7026 ;;
7027 # icc used to be incompatible with GCC.
7028 # ICC 10 doesn't accept -KPIC any more.
7029 icc* | ifort*)
7030 lt_prog_compiler_wl='-Wl,'
7031 lt_prog_compiler_pic='-fPIC'
7032 lt_prog_compiler_static='-static'
7033 ;;
7034 # Lahey Fortran 8.1.
7035 lf95*)
7036 lt_prog_compiler_wl='-Wl,'
7037 lt_prog_compiler_pic='--shared'
7038 lt_prog_compiler_static='--static'
7039 ;;
7040 pgcc* | pgf77* | pgf90* | pgf95*)
7041 # Portland Group compilers (*not* the Pentium gcc compiler,
7042 # which looks to be a dead project)
7043 lt_prog_compiler_wl='-Wl,'
7044 lt_prog_compiler_pic='-fpic'
7045 lt_prog_compiler_static='-Bstatic'
7046 ;;
7047 ccc*)
7048 lt_prog_compiler_wl='-Wl,'
7049 # All Alpha code is PIC.
7050 lt_prog_compiler_static='-non_shared'
7051 ;;
7052 xl*)
7053 # IBM XL C 8.0/Fortran 10.1 on PPC
7054 lt_prog_compiler_wl='-Wl,'
7055 lt_prog_compiler_pic='-qpic'
7056 lt_prog_compiler_static='-qstaticlink'
7057 ;;
7058 *)
7059 case `$CC -V 2>&1 | sed 5q` in
7060 *Sun\ C*)
7061 # Sun C 5.9
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 lt_prog_compiler_wl='-Wl,'
7065 ;;
7066 *Sun\ F*)
7067 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7068 lt_prog_compiler_pic='-KPIC'
7069 lt_prog_compiler_static='-Bstatic'
7070 lt_prog_compiler_wl=''
7071 ;;
7072 esac
7073 ;;
7074 esac
7075 ;;
7076
7077 newsos6)
7078 lt_prog_compiler_pic='-KPIC'
7079 lt_prog_compiler_static='-Bstatic'
7080 ;;
7081
7082 *nto* | *qnx*)
7083 # QNX uses GNU C++, but need to define -shared option too, otherwise
7084 # it will coredump.
7085 lt_prog_compiler_pic='-fPIC -shared'
7086 ;;
7087
7088 osf3* | osf4* | osf5*)
7089 lt_prog_compiler_wl='-Wl,'
7090 # All OSF/1 code is PIC.
7091 lt_prog_compiler_static='-non_shared'
7092 ;;
7093
7094 rdos*)
7095 lt_prog_compiler_static='-non_shared'
7096 ;;
7097
7098 solaris*)
7099 lt_prog_compiler_pic='-KPIC'
7100 lt_prog_compiler_static='-Bstatic'
7101 case $cc_basename in
7102 f77* | f90* | f95*)
7103 lt_prog_compiler_wl='-Qoption ld ';;
7104 *)
7105 lt_prog_compiler_wl='-Wl,';;
7106 esac
7107 ;;
7108
7109 sunos4*)
7110 lt_prog_compiler_wl='-Qoption ld '
7111 lt_prog_compiler_pic='-PIC'
7112 lt_prog_compiler_static='-Bstatic'
7113 ;;
7114
7115 sysv4 | sysv4.2uw2* | sysv4.3*)
7116 lt_prog_compiler_wl='-Wl,'
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-Bstatic'
7119 ;;
7120
7121 sysv4*MP*)
7122 if test -d /usr/nec ;then
7123 lt_prog_compiler_pic='-Kconform_pic'
7124 lt_prog_compiler_static='-Bstatic'
7125 fi
7126 ;;
7127
7128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7129 lt_prog_compiler_wl='-Wl,'
7130 lt_prog_compiler_pic='-KPIC'
7131 lt_prog_compiler_static='-Bstatic'
7132 ;;
7133
7134 unicos*)
7135 lt_prog_compiler_wl='-Wl,'
7136 lt_prog_compiler_can_build_shared=no
7137 ;;
7138
7139 uts4*)
7140 lt_prog_compiler_pic='-pic'
7141 lt_prog_compiler_static='-Bstatic'
7142 ;;
7143
7144 *)
7145 lt_prog_compiler_can_build_shared=no
7146 ;;
7147 esac
7148 fi
7149
7150 case $host_os in
7151 # For platforms which do not support PIC, -DPIC is meaningless:
7152 *djgpp*)
7153 lt_prog_compiler_pic=
7154 ;;
7155 *)
7156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7157 ;;
7158 esac
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7160 $as_echo "$lt_prog_compiler_pic" >&6; }
7161
7162
7163
7164
7165
7166
7167 #
7168 # Check to make sure the PIC flag actually works.
7169 #
7170 if test -n "$lt_prog_compiler_pic"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7173 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 lt_cv_prog_compiler_pic_works=no
7177 ac_outfile=conftest.$ac_objext
7178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7179 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7180 # Insert the option either (1) after the last *FLAGS variable, or
7181 # (2) before a word containing "conftest.", or (3) at the end.
7182 # Note that $ac_compile itself does not contain backslashes and begins
7183 # with a dollar sign (not a hyphen), so the echo should work correctly.
7184 # The option is referenced via a variable to avoid confusing sed.
7185 lt_compile=`echo "$ac_compile" | $SED \
7186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7188 -e 's:$: $lt_compiler_flag:'`
7189 (eval echo "\"\$as_me:7189: $lt_compile\"" >&5)
7190 (eval "$lt_compile" 2>conftest.err)
7191 ac_status=$?
7192 cat conftest.err >&5
7193 echo "$as_me:7193: \$? = $ac_status" >&5
7194 if (exit $ac_status) && test -s "$ac_outfile"; then
7195 # The compiler can only warn and ignore the option if not recognized
7196 # So say no if there are warnings other than the usual output.
7197 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7200 lt_cv_prog_compiler_pic_works=yes
7201 fi
7202 fi
7203 $RM conftest*
7204
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7207 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7208
7209 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7210 case $lt_prog_compiler_pic in
7211 "" | " "*) ;;
7212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7213 esac
7214 else
7215 lt_prog_compiler_pic=
7216 lt_prog_compiler_can_build_shared=no
7217 fi
7218
7219 fi
7220
7221
7222
7223
7224
7225
7226 #
7227 # Check to make sure the static flag actually works.
7228 #
7229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7231 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7232 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 lt_cv_prog_compiler_static_works=no
7236 save_LDFLAGS="$LDFLAGS"
7237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7240 # The linker can only warn and ignore the option if not recognized
7241 # So say no if there are warnings
7242 if test -s conftest.err; then
7243 # Append any errors to the config.log.
7244 cat conftest.err 1>&5
7245 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7247 if diff conftest.exp conftest.er2 >/dev/null; then
7248 lt_cv_prog_compiler_static_works=yes
7249 fi
7250 else
7251 lt_cv_prog_compiler_static_works=yes
7252 fi
7253 fi
7254 $RM -r conftest*
7255 LDFLAGS="$save_LDFLAGS"
7256
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7259 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7260
7261 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7262 :
7263 else
7264 lt_prog_compiler_static=
7265 fi
7266
7267
7268
7269
7270
7271
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7274 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7275 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 lt_cv_prog_compiler_c_o=no
7279 $RM -r conftest 2>/dev/null
7280 mkdir conftest
7281 cd conftest
7282 mkdir out
7283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7284
7285 lt_compiler_flag="-o out/conftest2.$ac_objext"
7286 # Insert the option either (1) after the last *FLAGS variable, or
7287 # (2) before a word containing "conftest.", or (3) at the end.
7288 # Note that $ac_compile itself does not contain backslashes and begins
7289 # with a dollar sign (not a hyphen), so the echo should work correctly.
7290 lt_compile=`echo "$ac_compile" | $SED \
7291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7293 -e 's:$: $lt_compiler_flag:'`
7294 (eval echo "\"\$as_me:7294: $lt_compile\"" >&5)
7295 (eval "$lt_compile" 2>out/conftest.err)
7296 ac_status=$?
7297 cat out/conftest.err >&5
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7300 then
7301 # The compiler can only warn and ignore the option if not recognized
7302 # So say no if there are warnings
7303 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7306 lt_cv_prog_compiler_c_o=yes
7307 fi
7308 fi
7309 chmod u+w . 2>&5
7310 $RM conftest*
7311 # SGI C++ compiler will create directory out/ii_files/ for
7312 # template instantiation
7313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7314 $RM out/* && rmdir out
7315 cd ..
7316 $RM -r conftest
7317 $RM conftest*
7318
7319 fi
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7321 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7322
7323
7324
7325
7326
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 lt_cv_prog_compiler_c_o=no
7334 $RM -r conftest 2>/dev/null
7335 mkdir conftest
7336 cd conftest
7337 mkdir out
7338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7339
7340 lt_compiler_flag="-o out/conftest2.$ac_objext"
7341 # Insert the option either (1) after the last *FLAGS variable, or
7342 # (2) before a word containing "conftest.", or (3) at the end.
7343 # Note that $ac_compile itself does not contain backslashes and begins
7344 # with a dollar sign (not a hyphen), so the echo should work correctly.
7345 lt_compile=`echo "$ac_compile" | $SED \
7346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7348 -e 's:$: $lt_compiler_flag:'`
7349 (eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
7350 (eval "$lt_compile" 2>out/conftest.err)
7351 ac_status=$?
7352 cat out/conftest.err >&5
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7355 then
7356 # The compiler can only warn and ignore the option if not recognized
7357 # So say no if there are warnings
7358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7361 lt_cv_prog_compiler_c_o=yes
7362 fi
7363 fi
7364 chmod u+w . 2>&5
7365 $RM conftest*
7366 # SGI C++ compiler will create directory out/ii_files/ for
7367 # template instantiation
7368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7369 $RM out/* && rmdir out
7370 cd ..
7371 $RM -r conftest
7372 $RM conftest*
7373
7374 fi
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7376 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7377
7378
7379
7380
7381 hard_links="nottested"
7382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7383 # do not overwrite the value of need_locks provided by the user
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7385 $as_echo_n "checking if we can lock with hard links... " >&6; }
7386 hard_links=yes
7387 $RM conftest*
7388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7389 touch conftest.a
7390 ln conftest.a conftest.b 2>&5 || hard_links=no
7391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7393 $as_echo "$hard_links" >&6; }
7394 if test "$hard_links" = no; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7396 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7397 need_locks=warn
7398 fi
7399 else
7400 need_locks=no
7401 fi
7402
7403
7404
7405
7406
7407
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7409 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7410
7411 runpath_var=
7412 allow_undefined_flag=
7413 always_export_symbols=no
7414 archive_cmds=
7415 archive_expsym_cmds=
7416 compiler_needs_object=no
7417 enable_shared_with_static_runtimes=no
7418 export_dynamic_flag_spec=
7419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7420 hardcode_automatic=no
7421 hardcode_direct=no
7422 hardcode_direct_absolute=no
7423 hardcode_libdir_flag_spec=
7424 hardcode_libdir_flag_spec_ld=
7425 hardcode_libdir_separator=
7426 hardcode_minus_L=no
7427 hardcode_shlibpath_var=unsupported
7428 inherit_rpath=no
7429 link_all_deplibs=unknown
7430 module_cmds=
7431 module_expsym_cmds=
7432 old_archive_from_new_cmds=
7433 old_archive_from_expsyms_cmds=
7434 thread_safe_flag_spec=
7435 whole_archive_flag_spec=
7436 # include_expsyms should be a list of space-separated symbols to be *always*
7437 # included in the symbol list
7438 include_expsyms=
7439 # exclude_expsyms can be an extended regexp of symbols to exclude
7440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7442 # as well as any symbol that contains `d'.
7443 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7445 # platforms (ab)use it in PIC code, but their linkers get confused if
7446 # the symbol is explicitly referenced. Since portable code cannot
7447 # rely on this symbol name, it's probably fine to never include it in
7448 # preloaded symbol tables.
7449 # Exclude shared library initialization/finalization symbols.
7450 extract_expsyms_cmds=
7451
7452 case $host_os in
7453 cygwin* | mingw* | pw32* | cegcc*)
7454 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7455 # When not using gcc, we currently assume that we are using
7456 # Microsoft Visual C++.
7457 if test "$GCC" != yes; then
7458 with_gnu_ld=no
7459 fi
7460 ;;
7461 interix*)
7462 # we just hope/assume this is gcc and not c89 (= MSVC++)
7463 with_gnu_ld=yes
7464 ;;
7465 openbsd*)
7466 with_gnu_ld=no
7467 ;;
7468 linux* | k*bsd*-gnu)
7469 link_all_deplibs=no
7470 ;;
7471 esac
7472
7473 ld_shlibs=yes
7474 if test "$with_gnu_ld" = yes; then
7475 # If archive_cmds runs LD, not CC, wlarc should be empty
7476 wlarc='${wl}'
7477
7478 # Set some defaults for GNU ld with shared library support. These
7479 # are reset later if shared libraries are not supported. Putting them
7480 # here allows them to be overridden if necessary.
7481 runpath_var=LD_RUN_PATH
7482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7483 export_dynamic_flag_spec='${wl}--export-dynamic'
7484 # ancient GNU ld didn't support --whole-archive et. al.
7485 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7486 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7487 else
7488 whole_archive_flag_spec=
7489 fi
7490 supports_anon_versioning=no
7491 case `$LD -v 2>&1` in
7492 *GNU\ gold*) supports_anon_versioning=yes ;;
7493 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7494 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7495 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7496 *\ 2.11.*) ;; # other 2.11 versions
7497 *) supports_anon_versioning=yes ;;
7498 esac
7499
7500 # See if GNU ld supports shared libraries.
7501 case $host_os in
7502 aix[3-9]*)
7503 # On AIX/PPC, the GNU linker is very broken
7504 if test "$host_cpu" != ia64; then
7505 ld_shlibs=no
7506 cat <<_LT_EOF 1>&2
7507
7508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7509 *** to be unable to reliably create shared libraries on AIX.
7510 *** Therefore, libtool is disabling shared libraries support. If you
7511 *** really care for shared libraries, you may want to modify your PATH
7512 *** so that a non-GNU linker is found, and then restart.
7513
7514 _LT_EOF
7515 fi
7516 ;;
7517
7518 amigaos*)
7519 case $host_cpu in
7520 powerpc)
7521 # see comment about AmigaOS4 .so support
7522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523 archive_expsym_cmds=''
7524 ;;
7525 m68k)
7526 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)'
7527 hardcode_libdir_flag_spec='-L$libdir'
7528 hardcode_minus_L=yes
7529 ;;
7530 esac
7531 ;;
7532
7533 beos*)
7534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7535 allow_undefined_flag=unsupported
7536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7537 # support --undefined. This deserves some investigation. FIXME
7538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7539 else
7540 ld_shlibs=no
7541 fi
7542 ;;
7543
7544 cygwin* | mingw* | pw32* | cegcc*)
7545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7546 # as there is no search path for DLLs.
7547 hardcode_libdir_flag_spec='-L$libdir'
7548 allow_undefined_flag=unsupported
7549 always_export_symbols=no
7550 enable_shared_with_static_runtimes=yes
7551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7552
7553 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7555 # If the export-symbols file already is a .def file (1st line
7556 # is EXPORTS), use it as is; otherwise, prepend...
7557 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7558 cp $export_symbols $output_objdir/$soname.def;
7559 else
7560 echo EXPORTS > $output_objdir/$soname.def;
7561 cat $export_symbols >> $output_objdir/$soname.def;
7562 fi~
7563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7564 else
7565 ld_shlibs=no
7566 fi
7567 ;;
7568
7569 interix[3-9]*)
7570 hardcode_direct=no
7571 hardcode_shlibpath_var=no
7572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7573 export_dynamic_flag_spec='${wl}-E'
7574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7575 # Instead, shared libraries are loaded at an image base (0x10000000 by
7576 # default) and relocated if they conflict, which is a slow very memory
7577 # consuming and fragmenting process. To avoid this, we pick a random,
7578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7581 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'
7582 ;;
7583
7584 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7585 tmp_diet=no
7586 if test "$host_os" = linux-dietlibc; then
7587 case $cc_basename in
7588 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7589 esac
7590 fi
7591 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7592 && test "$tmp_diet" = no
7593 then
7594 tmp_addflag=
7595 tmp_sharedflag='-shared'
7596 case $cc_basename,$host_cpu in
7597 pgcc*) # Portland Group C compiler
7598 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'
7599 tmp_addflag=' $pic_flag'
7600 ;;
7601 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7602 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'
7603 tmp_addflag=' $pic_flag -Mnomain' ;;
7604 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7605 tmp_addflag=' -i_dynamic' ;;
7606 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7607 tmp_addflag=' -i_dynamic -nofor_main' ;;
7608 ifc* | ifort*) # Intel Fortran compiler
7609 tmp_addflag=' -nofor_main' ;;
7610 lf95*) # Lahey Fortran 8.1
7611 whole_archive_flag_spec=
7612 tmp_sharedflag='--shared' ;;
7613 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7614 tmp_sharedflag='-qmkshrobj'
7615 tmp_addflag= ;;
7616 esac
7617 case `$CC -V 2>&1 | sed 5q` in
7618 *Sun\ C*) # Sun C 5.9
7619 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'
7620 compiler_needs_object=yes
7621 tmp_sharedflag='-G' ;;
7622 *Sun\ F*) # Sun Fortran 8.3
7623 tmp_sharedflag='-G' ;;
7624 esac
7625 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7626
7627 if test "x$supports_anon_versioning" = xyes; then
7628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7630 echo "local: *; };" >> $output_objdir/$libname.ver~
7631 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7632 fi
7633
7634 case $cc_basename in
7635 xlf*)
7636 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7637 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7638 hardcode_libdir_flag_spec=
7639 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7640 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7641 if test "x$supports_anon_versioning" = xyes; then
7642 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7644 echo "local: *; };" >> $output_objdir/$libname.ver~
7645 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7646 fi
7647 ;;
7648 esac
7649 else
7650 ld_shlibs=no
7651 fi
7652 ;;
7653
7654 netbsd* | netbsdelf*-gnu)
7655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7656 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7657 wlarc=
7658 else
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 fi
7662 ;;
7663
7664 solaris*)
7665 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7666 ld_shlibs=no
7667 cat <<_LT_EOF 1>&2
7668
7669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7670 *** create shared libraries on Solaris systems. Therefore, libtool
7671 *** is disabling shared libraries support. We urge you to upgrade GNU
7672 *** binutils to release 2.9.1 or newer. Another option is to modify
7673 *** your PATH or compiler configuration so that the native linker is
7674 *** used, and then restart.
7675
7676 _LT_EOF
7677 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7680 else
7681 ld_shlibs=no
7682 fi
7683 ;;
7684
7685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7686 case `$LD -v 2>&1` in
7687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7688 ld_shlibs=no
7689 cat <<_LT_EOF 1>&2
7690
7691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7692 *** reliably create shared libraries on SCO systems. Therefore, libtool
7693 *** is disabling shared libraries support. We urge you to upgrade GNU
7694 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7695 *** your PATH or compiler configuration so that the native linker is
7696 *** used, and then restart.
7697
7698 _LT_EOF
7699 ;;
7700 *)
7701 # For security reasons, it is highly recommended that you always
7702 # use absolute paths for naming shared libraries, and exclude the
7703 # DT_RUNPATH tag from executables and libraries. But doing so
7704 # requires that you compile everything twice, which is a pain.
7705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7709 else
7710 ld_shlibs=no
7711 fi
7712 ;;
7713 esac
7714 ;;
7715
7716 sunos4*)
7717 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7718 wlarc=
7719 hardcode_direct=yes
7720 hardcode_shlibpath_var=no
7721 ;;
7722
7723 *)
7724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7727 else
7728 ld_shlibs=no
7729 fi
7730 ;;
7731 esac
7732
7733 if test "$ld_shlibs" = no; then
7734 runpath_var=
7735 hardcode_libdir_flag_spec=
7736 export_dynamic_flag_spec=
7737 whole_archive_flag_spec=
7738 fi
7739 else
7740 # PORTME fill in a description of your system's linker (not GNU ld)
7741 case $host_os in
7742 aix3*)
7743 allow_undefined_flag=unsupported
7744 always_export_symbols=yes
7745 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'
7746 # Note: this linker hardcodes the directories in LIBPATH if there
7747 # are no directories specified by -L.
7748 hardcode_minus_L=yes
7749 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7750 # Neither direct hardcoding nor static linking is supported with a
7751 # broken collect2.
7752 hardcode_direct=unsupported
7753 fi
7754 ;;
7755
7756 aix[4-9]*)
7757 if test "$host_cpu" = ia64; then
7758 # On IA64, the linker does run time linking by default, so we don't
7759 # have to do anything special.
7760 aix_use_runtimelinking=no
7761 exp_sym_flag='-Bexport'
7762 no_entry_flag=""
7763 else
7764 # If we're using GNU nm, then we don't want the "-C" option.
7765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7766 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7767 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'
7768 else
7769 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'
7770 fi
7771 aix_use_runtimelinking=no
7772
7773 # Test if we are trying to use run time linking or normal
7774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7775 # need to do runtime linking.
7776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7777 for ld_flag in $LDFLAGS; do
7778 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7779 aix_use_runtimelinking=yes
7780 break
7781 fi
7782 done
7783 ;;
7784 esac
7785
7786 exp_sym_flag='-bexport'
7787 no_entry_flag='-bnoentry'
7788 fi
7789
7790 # When large executables or shared objects are built, AIX ld can
7791 # have problems creating the table of contents. If linking a library
7792 # or program results in "error TOC overflow" add -mminimal-toc to
7793 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7794 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7795
7796 archive_cmds=''
7797 hardcode_direct=yes
7798 hardcode_direct_absolute=yes
7799 hardcode_libdir_separator=':'
7800 link_all_deplibs=yes
7801 file_list_spec='${wl}-f,'
7802
7803 if test "$GCC" = yes; then
7804 case $host_os in aix4.[012]|aix4.[012].*)
7805 # We only want to do this on AIX 4.2 and lower, the check
7806 # below for broken collect2 doesn't work under 4.3+
7807 collect2name=`${CC} -print-prog-name=collect2`
7808 if test -f "$collect2name" &&
7809 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7810 then
7811 # We have reworked collect2
7812 :
7813 else
7814 # We have old collect2
7815 hardcode_direct=unsupported
7816 # It fails to find uninstalled libraries when the uninstalled
7817 # path is not listed in the libpath. Setting hardcode_minus_L
7818 # to unsupported forces relinking
7819 hardcode_minus_L=yes
7820 hardcode_libdir_flag_spec='-L$libdir'
7821 hardcode_libdir_separator=
7822 fi
7823 ;;
7824 esac
7825 shared_flag='-shared'
7826 if test "$aix_use_runtimelinking" = yes; then
7827 shared_flag="$shared_flag "'${wl}-G'
7828 fi
7829 link_all_deplibs=no
7830 else
7831 # not using gcc
7832 if test "$host_cpu" = ia64; then
7833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7834 # chokes on -Wl,-G. The following line is correct:
7835 shared_flag='-G'
7836 else
7837 if test "$aix_use_runtimelinking" = yes; then
7838 shared_flag='${wl}-G'
7839 else
7840 shared_flag='${wl}-bM:SRE'
7841 fi
7842 fi
7843 fi
7844
7845 export_dynamic_flag_spec='${wl}-bexpall'
7846 # It seems that -bexpall does not export symbols beginning with
7847 # underscore (_), so it is better to generate a list of symbols to export.
7848 always_export_symbols=yes
7849 if test "$aix_use_runtimelinking" = yes; then
7850 # Warning - without using the other runtime loading flags (-brtl),
7851 # -berok will link without error, but may produce a broken library.
7852 allow_undefined_flag='-berok'
7853 # Determine the default libpath from the value encoded in an
7854 # empty executable.
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857
7858 int
7859 main ()
7860 {
7861
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_link "$LINENO"; then :
7867
7868 lt_aix_libpath_sed='
7869 /Import File Strings/,/^$/ {
7870 /^0/ {
7871 s/^0 *\(.*\)$/\1/
7872 p
7873 }
7874 }'
7875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7876 # Check for a 64-bit object if we didn't find anything.
7877 if test -z "$aix_libpath"; then
7878 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7879 fi
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7884
7885 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7886 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"
7887 else
7888 if test "$host_cpu" = ia64; then
7889 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7890 allow_undefined_flag="-z nodefs"
7891 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"
7892 else
7893 # Determine the default libpath from the value encoded in an
7894 # empty executable.
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897
7898 int
7899 main ()
7900 {
7901
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_link "$LINENO"; then :
7907
7908 lt_aix_libpath_sed='
7909 /Import File Strings/,/^$/ {
7910 /^0/ {
7911 s/^0 *\(.*\)$/\1/
7912 p
7913 }
7914 }'
7915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7916 # Check for a 64-bit object if we didn't find anything.
7917 if test -z "$aix_libpath"; then
7918 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7919 fi
7920 fi
7921 rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7924
7925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7926 # Warning - without using the other run time loading flags,
7927 # -berok will link without error, but may produce a broken library.
7928 no_undefined_flag=' ${wl}-bernotok'
7929 allow_undefined_flag=' ${wl}-berok'
7930 # Exported symbols can be pulled into shared objects from archives
7931 whole_archive_flag_spec='$convenience'
7932 archive_cmds_need_lc=yes
7933 # This is similar to how AIX traditionally builds its shared libraries.
7934 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'
7935 fi
7936 fi
7937 ;;
7938
7939 amigaos*)
7940 case $host_cpu in
7941 powerpc)
7942 # see comment about AmigaOS4 .so support
7943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944 archive_expsym_cmds=''
7945 ;;
7946 m68k)
7947 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)'
7948 hardcode_libdir_flag_spec='-L$libdir'
7949 hardcode_minus_L=yes
7950 ;;
7951 esac
7952 ;;
7953
7954 bsdi[45]*)
7955 export_dynamic_flag_spec=-rdynamic
7956 ;;
7957
7958 cygwin* | mingw* | pw32* | cegcc*)
7959 # When not using gcc, we currently assume that we are using
7960 # Microsoft Visual C++.
7961 # hardcode_libdir_flag_spec is actually meaningless, as there is
7962 # no search path for DLLs.
7963 hardcode_libdir_flag_spec=' '
7964 allow_undefined_flag=unsupported
7965 # Tell ltmain to make .lib files, not .a files.
7966 libext=lib
7967 # Tell ltmain to make .dll files, not .so files.
7968 shrext_cmds=".dll"
7969 # FIXME: Setting linknames here is a bad hack.
7970 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7971 # The linker will automatically build a .lib file if we build a DLL.
7972 old_archive_from_new_cmds='true'
7973 # FIXME: Should let the user specify the lib program.
7974 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7975 fix_srcfile_path='`cygpath -w "$srcfile"`'
7976 enable_shared_with_static_runtimes=yes
7977 ;;
7978
7979 darwin* | rhapsody*)
7980
7981
7982 archive_cmds_need_lc=no
7983 hardcode_direct=no
7984 hardcode_automatic=yes
7985 hardcode_shlibpath_var=unsupported
7986 whole_archive_flag_spec=''
7987 link_all_deplibs=yes
7988 allow_undefined_flag="$_lt_dar_allow_undefined"
7989 case $cc_basename in
7990 ifort*) _lt_dar_can_shared=yes ;;
7991 *) _lt_dar_can_shared=$GCC ;;
7992 esac
7993 if test "$_lt_dar_can_shared" = "yes"; then
7994 output_verbose_link_cmd=echo
7995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7997 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}"
7998 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}"
7999
8000 else
8001 ld_shlibs=no
8002 fi
8003
8004 ;;
8005
8006 dgux*)
8007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 hardcode_shlibpath_var=no
8010 ;;
8011
8012 freebsd1*)
8013 ld_shlibs=no
8014 ;;
8015
8016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8017 # support. Future versions do this automatically, but an explicit c++rt0.o
8018 # does not break anything, and helps significantly (at the cost of a little
8019 # extra space).
8020 freebsd2.2*)
8021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8022 hardcode_libdir_flag_spec='-R$libdir'
8023 hardcode_direct=yes
8024 hardcode_shlibpath_var=no
8025 ;;
8026
8027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8028 freebsd2*)
8029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8030 hardcode_direct=yes
8031 hardcode_minus_L=yes
8032 hardcode_shlibpath_var=no
8033 ;;
8034
8035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8036 freebsd* | dragonfly*)
8037 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8038 hardcode_libdir_flag_spec='-R$libdir'
8039 hardcode_direct=yes
8040 hardcode_shlibpath_var=no
8041 ;;
8042
8043 hpux9*)
8044 if test "$GCC" = yes; then
8045 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'
8046 else
8047 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'
8048 fi
8049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8050 hardcode_libdir_separator=:
8051 hardcode_direct=yes
8052
8053 # hardcode_minus_L: Not really in the search PATH,
8054 # but as the default location of the library.
8055 hardcode_minus_L=yes
8056 export_dynamic_flag_spec='${wl}-E'
8057 ;;
8058
8059 hpux10*)
8060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8062 else
8063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8064 fi
8065 if test "$with_gnu_ld" = no; then
8066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8067 hardcode_libdir_flag_spec_ld='+b $libdir'
8068 hardcode_libdir_separator=:
8069 hardcode_direct=yes
8070 hardcode_direct_absolute=yes
8071 export_dynamic_flag_spec='${wl}-E'
8072 # hardcode_minus_L: Not really in the search PATH,
8073 # but as the default location of the library.
8074 hardcode_minus_L=yes
8075 fi
8076 ;;
8077
8078 hpux11*)
8079 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8080 case $host_cpu in
8081 hppa*64*)
8082 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8083 ;;
8084 ia64*)
8085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8086 ;;
8087 *)
8088 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8089 ;;
8090 esac
8091 else
8092 case $host_cpu in
8093 hppa*64*)
8094 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8095 ;;
8096 ia64*)
8097 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8098 ;;
8099 *)
8100 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8101 ;;
8102 esac
8103 fi
8104 if test "$with_gnu_ld" = no; then
8105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8106 hardcode_libdir_separator=:
8107
8108 case $host_cpu in
8109 hppa*64*|ia64*)
8110 hardcode_direct=no
8111 hardcode_shlibpath_var=no
8112 ;;
8113 *)
8114 hardcode_direct=yes
8115 hardcode_direct_absolute=yes
8116 export_dynamic_flag_spec='${wl}-E'
8117
8118 # hardcode_minus_L: Not really in the search PATH,
8119 # but as the default location of the library.
8120 hardcode_minus_L=yes
8121 ;;
8122 esac
8123 fi
8124 ;;
8125
8126 irix5* | irix6* | nonstopux*)
8127 if test "$GCC" = yes; then
8128 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'
8129 # Try to use the -exported_symbol ld option, if it does not
8130 # work, assume that -exports_file does not work either and
8131 # implicitly export all symbols.
8132 save_LDFLAGS="$LDFLAGS"
8133 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int foo(void) {}
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 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'
8140
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 LDFLAGS="$save_LDFLAGS"
8145 else
8146 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'
8147 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'
8148 fi
8149 archive_cmds_need_lc='no'
8150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8151 hardcode_libdir_separator=:
8152 inherit_rpath=yes
8153 link_all_deplibs=yes
8154 ;;
8155
8156 netbsd* | netbsdelf*-gnu)
8157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8159 else
8160 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8161 fi
8162 hardcode_libdir_flag_spec='-R$libdir'
8163 hardcode_direct=yes
8164 hardcode_shlibpath_var=no
8165 ;;
8166
8167 newsos6)
8168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_direct=yes
8170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8171 hardcode_libdir_separator=:
8172 hardcode_shlibpath_var=no
8173 ;;
8174
8175 *nto* | *qnx*)
8176 ;;
8177
8178 openbsd*)
8179 if test -f /usr/libexec/ld.so; then
8180 hardcode_direct=yes
8181 hardcode_shlibpath_var=no
8182 hardcode_direct_absolute=yes
8183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8185 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8186 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8187 export_dynamic_flag_spec='${wl}-E'
8188 else
8189 case $host_os in
8190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8192 hardcode_libdir_flag_spec='-R$libdir'
8193 ;;
8194 *)
8195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8197 ;;
8198 esac
8199 fi
8200 else
8201 ld_shlibs=no
8202 fi
8203 ;;
8204
8205 os2*)
8206 hardcode_libdir_flag_spec='-L$libdir'
8207 hardcode_minus_L=yes
8208 allow_undefined_flag=unsupported
8209 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'
8210 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8211 ;;
8212
8213 osf3*)
8214 if test "$GCC" = yes; then
8215 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8216 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'
8217 else
8218 allow_undefined_flag=' -expect_unresolved \*'
8219 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'
8220 fi
8221 archive_cmds_need_lc='no'
8222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8223 hardcode_libdir_separator=:
8224 ;;
8225
8226 osf4* | osf5*) # as osf3* with the addition of -msym flag
8227 if test "$GCC" = yes; then
8228 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8229 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'
8230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8231 else
8232 allow_undefined_flag=' -expect_unresolved \*'
8233 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'
8234 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~
8235 $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'
8236
8237 # Both c and cxx compiler support -rpath directly
8238 hardcode_libdir_flag_spec='-rpath $libdir'
8239 fi
8240 archive_cmds_need_lc='no'
8241 hardcode_libdir_separator=:
8242 ;;
8243
8244 solaris*)
8245 no_undefined_flag=' -z defs'
8246 if test "$GCC" = yes; then
8247 wlarc='${wl}'
8248 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8249 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8250 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8251 else
8252 case `$CC -V 2>&1` in
8253 *"Compilers 5.0"*)
8254 wlarc=''
8255 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8258 ;;
8259 *)
8260 wlarc='${wl}'
8261 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8263 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8264 ;;
8265 esac
8266 fi
8267 hardcode_libdir_flag_spec='-R$libdir'
8268 hardcode_shlibpath_var=no
8269 case $host_os in
8270 solaris2.[0-5] | solaris2.[0-5].*) ;;
8271 *)
8272 # The compiler driver will combine and reorder linker options,
8273 # but understands `-z linker_flag'. GCC discards it without `$wl',
8274 # but is careful enough not to reorder.
8275 # Supported since Solaris 2.6 (maybe 2.5.1?)
8276 if test "$GCC" = yes; then
8277 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8278 else
8279 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8280 fi
8281 ;;
8282 esac
8283 link_all_deplibs=yes
8284 ;;
8285
8286 sunos4*)
8287 if test "x$host_vendor" = xsequent; then
8288 # Use $CC to link under sequent, because it throws in some extra .o
8289 # files that make .init and .fini sections work.
8290 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8291 else
8292 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8293 fi
8294 hardcode_libdir_flag_spec='-L$libdir'
8295 hardcode_direct=yes
8296 hardcode_minus_L=yes
8297 hardcode_shlibpath_var=no
8298 ;;
8299
8300 sysv4)
8301 case $host_vendor in
8302 sni)
8303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 hardcode_direct=yes # is this really true???
8305 ;;
8306 siemens)
8307 ## LD is ld it makes a PLAMLIB
8308 ## CC just makes a GrossModule.
8309 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8310 reload_cmds='$CC -r -o $output$reload_objs'
8311 hardcode_direct=no
8312 ;;
8313 motorola)
8314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8316 ;;
8317 esac
8318 runpath_var='LD_RUN_PATH'
8319 hardcode_shlibpath_var=no
8320 ;;
8321
8322 sysv4.3*)
8323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324 hardcode_shlibpath_var=no
8325 export_dynamic_flag_spec='-Bexport'
8326 ;;
8327
8328 sysv4*MP*)
8329 if test -d /usr/nec; then
8330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8331 hardcode_shlibpath_var=no
8332 runpath_var=LD_RUN_PATH
8333 hardcode_runpath_var=yes
8334 ld_shlibs=yes
8335 fi
8336 ;;
8337
8338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8339 no_undefined_flag='${wl}-z,text'
8340 archive_cmds_need_lc=no
8341 hardcode_shlibpath_var=no
8342 runpath_var='LD_RUN_PATH'
8343
8344 if test "$GCC" = yes; then
8345 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8347 else
8348 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8349 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8350 fi
8351 ;;
8352
8353 sysv5* | sco3.2v5* | sco5v6*)
8354 # Note: We can NOT use -z defs as we might desire, because we do not
8355 # link with -lc, and that would cause any symbols used from libc to
8356 # always be unresolved, which means just about no library would
8357 # ever link correctly. If we're not using GNU ld we use -z text
8358 # though, which does catch some bad symbols but isn't as heavy-handed
8359 # as -z defs.
8360 no_undefined_flag='${wl}-z,text'
8361 allow_undefined_flag='${wl}-z,nodefs'
8362 archive_cmds_need_lc=no
8363 hardcode_shlibpath_var=no
8364 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8365 hardcode_libdir_separator=':'
8366 link_all_deplibs=yes
8367 export_dynamic_flag_spec='${wl}-Bexport'
8368 runpath_var='LD_RUN_PATH'
8369
8370 if test "$GCC" = yes; then
8371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8373 else
8374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8376 fi
8377 ;;
8378
8379 uts4*)
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_libdir_flag_spec='-L$libdir'
8382 hardcode_shlibpath_var=no
8383 ;;
8384
8385 *)
8386 ld_shlibs=no
8387 ;;
8388 esac
8389
8390 if test x$host_vendor = xsni; then
8391 case $host in
8392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8393 export_dynamic_flag_spec='${wl}-Blargedynsym'
8394 ;;
8395 esac
8396 fi
8397 fi
8398
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8400 $as_echo "$ld_shlibs" >&6; }
8401 test "$ld_shlibs" = no && can_build_shared=no
8402
8403 with_gnu_ld=$with_gnu_ld
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419 #
8420 # Do we need to explicitly link libc?
8421 #
8422 case "x$archive_cmds_need_lc" in
8423 x|xyes)
8424 # Assume -lc should be added
8425 archive_cmds_need_lc=yes
8426
8427 if test "$enable_shared" = yes && test "$GCC" = yes; then
8428 case $archive_cmds in
8429 *'~'*)
8430 # FIXME: we may have to deal with multi-command sequences.
8431 ;;
8432 '$CC '*)
8433 # Test whether the compiler implicitly links with -lc since on some
8434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8435 # to ld, don't add -lc before -lgcc.
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8437 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8438 $RM conftest*
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440
8441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8442 (eval $ac_compile) 2>&5
8443 ac_status=$?
8444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8445 test $ac_status = 0; } 2>conftest.err; then
8446 soname=conftest
8447 lib=conftest
8448 libobjs=conftest.$ac_objext
8449 deplibs=
8450 wl=$lt_prog_compiler_wl
8451 pic_flag=$lt_prog_compiler_pic
8452 compiler_flags=-v
8453 linker_flags=-v
8454 verstring=
8455 output_objdir=.
8456 libname=conftest
8457 lt_save_allow_undefined_flag=$allow_undefined_flag
8458 allow_undefined_flag=
8459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8460 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8461 ac_status=$?
8462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8463 test $ac_status = 0; }
8464 then
8465 archive_cmds_need_lc=no
8466 else
8467 archive_cmds_need_lc=yes
8468 fi
8469 allow_undefined_flag=$lt_save_allow_undefined_flag
8470 else
8471 cat conftest.err 1>&5
8472 fi
8473 $RM conftest*
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8475 $as_echo "$archive_cmds_need_lc" >&6; }
8476 ;;
8477 esac
8478 fi
8479 ;;
8480 esac
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8639 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8640
8641 if test "$GCC" = yes; then
8642 case $host_os in
8643 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8644 *) lt_awk_arg="/^libraries:/" ;;
8645 esac
8646 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8647 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8648 # if the path contains ";" then we assume it to be the separator
8649 # otherwise default to the standard path separator (i.e. ":") - it is
8650 # assumed that no part of a normal pathname contains ";" but that should
8651 # okay in the real world where ";" in dirpaths is itself problematic.
8652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8653 else
8654 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8655 fi
8656 # Ok, now we have the path, separated by spaces, we can step through it
8657 # and add multilib dir if necessary.
8658 lt_tmp_lt_search_path_spec=
8659 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8660 for lt_sys_path in $lt_search_path_spec; do
8661 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8662 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8663 else
8664 test -d "$lt_sys_path" && \
8665 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8666 fi
8667 done
8668 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8669 BEGIN {RS=" "; FS="/|\n";} {
8670 lt_foo="";
8671 lt_count=0;
8672 for (lt_i = NF; lt_i > 0; lt_i--) {
8673 if ($lt_i != "" && $lt_i != ".") {
8674 if ($lt_i == "..") {
8675 lt_count++;
8676 } else {
8677 if (lt_count == 0) {
8678 lt_foo="/" $lt_i lt_foo;
8679 } else {
8680 lt_count--;
8681 }
8682 }
8683 }
8684 }
8685 if (lt_foo != "") { lt_freq[lt_foo]++; }
8686 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8687 }'`
8688 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8689 else
8690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8691 fi
8692 library_names_spec=
8693 libname_spec='lib$name'
8694 soname_spec=
8695 shrext_cmds=".so"
8696 postinstall_cmds=
8697 postuninstall_cmds=
8698 finish_cmds=
8699 finish_eval=
8700 shlibpath_var=
8701 shlibpath_overrides_runpath=unknown
8702 version_type=none
8703 dynamic_linker="$host_os ld.so"
8704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8705 need_lib_prefix=unknown
8706 hardcode_into_libs=no
8707
8708 # when you set need_version to no, make sure it does not cause -set_version
8709 # flags to be left without arguments
8710 need_version=unknown
8711
8712 case $host_os in
8713 aix3*)
8714 version_type=linux
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8716 shlibpath_var=LIBPATH
8717
8718 # AIX 3 has no versioning support, so we append a major version to the name.
8719 soname_spec='${libname}${release}${shared_ext}$major'
8720 ;;
8721
8722 aix[4-9]*)
8723 version_type=linux
8724 need_lib_prefix=no
8725 need_version=no
8726 hardcode_into_libs=yes
8727 if test "$host_cpu" = ia64; then
8728 # AIX 5 supports IA64
8729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8730 shlibpath_var=LD_LIBRARY_PATH
8731 else
8732 # With GCC up to 2.95.x, collect2 would create an import file
8733 # for dependence libraries. The import file would start with
8734 # the line `#! .'. This would cause the generated library to
8735 # depend on `.', always an invalid library. This was fixed in
8736 # development snapshots of GCC prior to 3.0.
8737 case $host_os in
8738 aix4 | aix4.[01] | aix4.[01].*)
8739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8740 echo ' yes '
8741 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8742 :
8743 else
8744 can_build_shared=no
8745 fi
8746 ;;
8747 esac
8748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8749 # soname into executable. Probably we can add versioning support to
8750 # collect2, so additional links can be useful in future.
8751 if test "$aix_use_runtimelinking" = yes; then
8752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8753 # instead of lib<name>.a to let people know that these are not
8754 # typical AIX shared libraries.
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 else
8757 # We preserve .a as extension for shared libraries through AIX4.2
8758 # and later when we are not doing run time linking.
8759 library_names_spec='${libname}${release}.a $libname.a'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 fi
8762 shlibpath_var=LIBPATH
8763 fi
8764 ;;
8765
8766 amigaos*)
8767 case $host_cpu in
8768 powerpc)
8769 # Since July 2007 AmigaOS4 officially supports .so libraries.
8770 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 ;;
8773 m68k)
8774 library_names_spec='$libname.ixlibrary $libname.a'
8775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8776 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'
8777 ;;
8778 esac
8779 ;;
8780
8781 beos*)
8782 library_names_spec='${libname}${shared_ext}'
8783 dynamic_linker="$host_os ld.so"
8784 shlibpath_var=LIBRARY_PATH
8785 ;;
8786
8787 bsdi[45]*)
8788 version_type=linux
8789 need_version=no
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8796 # the default ld.so.conf also contains /usr/contrib/lib and
8797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8798 # libtool to hard-code these into programs
8799 ;;
8800
8801 cygwin* | mingw* | pw32* | cegcc*)
8802 version_type=windows
8803 shrext_cmds=".dll"
8804 need_version=no
8805 need_lib_prefix=no
8806
8807 case $GCC,$host_os in
8808 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8809 library_names_spec='$libname.dll.a'
8810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8811 postinstall_cmds='base_file=`basename \${file}`~
8812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8813 dldir=$destdir/`dirname \$dlpath`~
8814 test -d \$dldir || mkdir -p \$dldir~
8815 $install_prog $dir/$dlname \$dldir/$dlname~
8816 chmod a+x \$dldir/$dlname~
8817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8819 fi'
8820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8821 dlpath=$dir/\$dldll~
8822 $RM \$dlpath'
8823 shlibpath_overrides_runpath=yes
8824
8825 case $host_os in
8826 cygwin*)
8827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8829 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8830 ;;
8831 mingw* | cegcc*)
8832 # MinGW DLLs use traditional 'lib' prefix
8833 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8834 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8835 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8836 # It is most probably a Windows format PATH printed by
8837 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8838 # path with ; separators, and with drive letters. We can handle the
8839 # drive letters (cygwin fileutils understands them), so leave them,
8840 # especially as we might pass files found there to a mingw objdump,
8841 # which wouldn't understand a cygwinified path. Ahh.
8842 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8843 else
8844 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8845 fi
8846 ;;
8847 pw32*)
8848 # pw32 DLLs use 'pw' prefix rather than 'lib'
8849 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850 ;;
8851 esac
8852 ;;
8853
8854 *)
8855 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8856 ;;
8857 esac
8858 dynamic_linker='Win32 ld.exe'
8859 # FIXME: first we should search . and the directory the executable is in
8860 shlibpath_var=PATH
8861 ;;
8862
8863 darwin* | rhapsody*)
8864 dynamic_linker="$host_os dyld"
8865 version_type=darwin
8866 need_lib_prefix=no
8867 need_version=no
8868 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8869 soname_spec='${libname}${release}${major}$shared_ext'
8870 shlibpath_overrides_runpath=yes
8871 shlibpath_var=DYLD_LIBRARY_PATH
8872 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8873
8874 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8876 ;;
8877
8878 dgux*)
8879 version_type=linux
8880 need_lib_prefix=no
8881 need_version=no
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 shlibpath_var=LD_LIBRARY_PATH
8885 ;;
8886
8887 freebsd1*)
8888 dynamic_linker=no
8889 ;;
8890
8891 freebsd* | dragonfly*)
8892 # DragonFly does not have aout. When/if they implement a new
8893 # versioning mechanism, adjust this.
8894 if test -x /usr/bin/objformat; then
8895 objformat=`/usr/bin/objformat`
8896 else
8897 case $host_os in
8898 freebsd[123]*) objformat=aout ;;
8899 *) objformat=elf ;;
8900 esac
8901 fi
8902 version_type=freebsd-$objformat
8903 case $version_type in
8904 freebsd-elf*)
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8906 need_version=no
8907 need_lib_prefix=no
8908 ;;
8909 freebsd-*)
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8911 need_version=yes
8912 ;;
8913 esac
8914 shlibpath_var=LD_LIBRARY_PATH
8915 case $host_os in
8916 freebsd2*)
8917 shlibpath_overrides_runpath=yes
8918 ;;
8919 freebsd3.[01]* | freebsdelf3.[01]*)
8920 shlibpath_overrides_runpath=yes
8921 hardcode_into_libs=yes
8922 ;;
8923 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8924 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8927 ;;
8928 *) # from 4.6 on, and DragonFly
8929 shlibpath_overrides_runpath=yes
8930 hardcode_into_libs=yes
8931 ;;
8932 esac
8933 ;;
8934
8935 gnu*)
8936 version_type=linux
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 hardcode_into_libs=yes
8943 ;;
8944
8945 hpux9* | hpux10* | hpux11*)
8946 # Give a soname corresponding to the major version so that dld.sl refuses to
8947 # link against other versions.
8948 version_type=sunos
8949 need_lib_prefix=no
8950 need_version=no
8951 case $host_cpu in
8952 ia64*)
8953 shrext_cmds='.so'
8954 hardcode_into_libs=yes
8955 dynamic_linker="$host_os dld.so"
8956 shlibpath_var=LD_LIBRARY_PATH
8957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 if test "X$HPUX_IA64_MODE" = X32; then
8961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8962 else
8963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8964 fi
8965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8966 ;;
8967 hppa*64*)
8968 shrext_cmds='.sl'
8969 hardcode_into_libs=yes
8970 dynamic_linker="$host_os dld.sl"
8971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8977 ;;
8978 *)
8979 shrext_cmds='.sl'
8980 dynamic_linker="$host_os dld.sl"
8981 shlibpath_var=SHLIB_PATH
8982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 ;;
8986 esac
8987 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8988 postinstall_cmds='chmod 555 $lib'
8989 ;;
8990
8991 interix[3-9]*)
8992 version_type=linux
8993 need_lib_prefix=no
8994 need_version=no
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=no
9000 hardcode_into_libs=yes
9001 ;;
9002
9003 irix5* | irix6* | nonstopux*)
9004 case $host_os in
9005 nonstopux*) version_type=nonstopux ;;
9006 *)
9007 if test "$lt_cv_prog_gnu_ld" = yes; then
9008 version_type=linux
9009 else
9010 version_type=irix
9011 fi ;;
9012 esac
9013 need_lib_prefix=no
9014 need_version=no
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9017 case $host_os in
9018 irix5* | nonstopux*)
9019 libsuff= shlibsuff=
9020 ;;
9021 *)
9022 case $LD in # libtool.m4 will add one of these switches to LD
9023 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9024 libsuff= shlibsuff= libmagic=32-bit;;
9025 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9026 libsuff=32 shlibsuff=N32 libmagic=N32;;
9027 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9028 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9029 *) libsuff= shlibsuff= libmagic=never-match;;
9030 esac
9031 ;;
9032 esac
9033 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9034 shlibpath_overrides_runpath=no
9035 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9036 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9037 hardcode_into_libs=yes
9038 ;;
9039
9040 # No shared lib support for Linux oldld, aout, or coff.
9041 linux*oldld* | linux*aout* | linux*coff*)
9042 dynamic_linker=no
9043 ;;
9044
9045 # This must be Linux ELF.
9046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9047 version_type=linux
9048 need_lib_prefix=no
9049 need_version=no
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=no
9055 # Some binutils ld are patched to set DT_RUNPATH
9056 save_LDFLAGS=$LDFLAGS
9057 save_libdir=$libdir
9058 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9059 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062
9063 int
9064 main ()
9065 {
9066
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9073 shlibpath_overrides_runpath=yes
9074 fi
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 LDFLAGS=$save_LDFLAGS
9079 libdir=$save_libdir
9080
9081 # This implies no fast_install, which is unacceptable.
9082 # Some rework will be needed to allow for fast_install
9083 # before this can be enabled.
9084 hardcode_into_libs=yes
9085
9086 # Append ld.so.conf contents to the search path
9087 if test -f /etc/ld.so.conf; then
9088 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' ' '`
9089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9090 fi
9091
9092 # We used to test for /lib/ld.so.1 and disable shared libraries on
9093 # powerpc, because MkLinux only supported shared libraries with the
9094 # GNU dynamic linker. Since this was broken with cross compilers,
9095 # most powerpc-linux boxes support dynamic linking these days and
9096 # people can always --disable-shared, the test was removed, and we
9097 # assume the GNU/Linux dynamic linker is in use.
9098 dynamic_linker='GNU/Linux ld.so'
9099 ;;
9100
9101 netbsdelf*-gnu)
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=no
9109 hardcode_into_libs=yes
9110 dynamic_linker='NetBSD ld.elf_so'
9111 ;;
9112
9113 netbsd*)
9114 version_type=sunos
9115 need_lib_prefix=no
9116 need_version=no
9117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9120 dynamic_linker='NetBSD (a.out) ld.so'
9121 else
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 dynamic_linker='NetBSD ld.elf_so'
9125 fi
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9129 ;;
9130
9131 newsos6)
9132 version_type=linux
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9136 ;;
9137
9138 *nto* | *qnx*)
9139 version_type=qnx
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9147 dynamic_linker='ldqnx.so'
9148 ;;
9149
9150 openbsd*)
9151 version_type=sunos
9152 sys_lib_dlsearch_path_spec="/usr/lib"
9153 need_lib_prefix=no
9154 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9155 case $host_os in
9156 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9157 *) need_version=no ;;
9158 esac
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9163 case $host_os in
9164 openbsd2.[89] | openbsd2.[89].*)
9165 shlibpath_overrides_runpath=no
9166 ;;
9167 *)
9168 shlibpath_overrides_runpath=yes
9169 ;;
9170 esac
9171 else
9172 shlibpath_overrides_runpath=yes
9173 fi
9174 ;;
9175
9176 os2*)
9177 libname_spec='$name'
9178 shrext_cmds=".dll"
9179 need_lib_prefix=no
9180 library_names_spec='$libname${shared_ext} $libname.a'
9181 dynamic_linker='OS/2 ld.exe'
9182 shlibpath_var=LIBPATH
9183 ;;
9184
9185 osf3* | osf4* | osf5*)
9186 version_type=osf
9187 need_lib_prefix=no
9188 need_version=no
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9194 ;;
9195
9196 rdos*)
9197 dynamic_linker=no
9198 ;;
9199
9200 solaris*)
9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=yes
9208 hardcode_into_libs=yes
9209 # ldd complains unless libraries are executable
9210 postinstall_cmds='chmod +x $lib'
9211 ;;
9212
9213 sunos4*)
9214 version_type=sunos
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 if test "$with_gnu_ld" = yes; then
9220 need_lib_prefix=no
9221 fi
9222 need_version=yes
9223 ;;
9224
9225 sysv4 | sysv4.3*)
9226 version_type=linux
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 case $host_vendor in
9231 sni)
9232 shlibpath_overrides_runpath=no
9233 need_lib_prefix=no
9234 runpath_var=LD_RUN_PATH
9235 ;;
9236 siemens)
9237 need_lib_prefix=no
9238 ;;
9239 motorola)
9240 need_lib_prefix=no
9241 need_version=no
9242 shlibpath_overrides_runpath=no
9243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9244 ;;
9245 esac
9246 ;;
9247
9248 sysv4*MP*)
9249 if test -d /usr/nec ;then
9250 version_type=linux
9251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9252 soname_spec='$libname${shared_ext}.$major'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 fi
9255 ;;
9256
9257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9258 version_type=freebsd-elf
9259 need_lib_prefix=no
9260 need_version=no
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=yes
9265 hardcode_into_libs=yes
9266 if test "$with_gnu_ld" = yes; then
9267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9268 else
9269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9270 case $host_os in
9271 sco3.2v5*)
9272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9273 ;;
9274 esac
9275 fi
9276 sys_lib_dlsearch_path_spec='/usr/lib'
9277 ;;
9278
9279 tpf*)
9280 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9281 version_type=linux
9282 need_lib_prefix=no
9283 need_version=no
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 ;;
9289
9290 uts4*)
9291 version_type=linux
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 ;;
9296
9297 *)
9298 dynamic_linker=no
9299 ;;
9300 esac
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9302 $as_echo "$dynamic_linker" >&6; }
9303 test "$dynamic_linker" = no && can_build_shared=no
9304
9305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9306 if test "$GCC" = yes; then
9307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9308 fi
9309
9310 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9311 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9312 fi
9313 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9314 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9315 fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9404 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9405 hardcode_action=
9406 if test -n "$hardcode_libdir_flag_spec" ||
9407 test -n "$runpath_var" ||
9408 test "X$hardcode_automatic" = "Xyes" ; then
9409
9410 # We can hardcode non-existent directories.
9411 if test "$hardcode_direct" != no &&
9412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9413 # have to relink, otherwise we might link with an installed library
9414 # when we should be linking with a yet-to-be-installed one
9415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9416 test "$hardcode_minus_L" != no; then
9417 # Linking always hardcodes the temporary library directory.
9418 hardcode_action=relink
9419 else
9420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9421 hardcode_action=immediate
9422 fi
9423 else
9424 # We cannot hardcode anything, or else we can only hardcode existing
9425 # directories.
9426 hardcode_action=unsupported
9427 fi
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9429 $as_echo "$hardcode_action" >&6; }
9430
9431 if test "$hardcode_action" = relink ||
9432 test "$inherit_rpath" = yes; then
9433 # Fast installation is not supported
9434 enable_fast_install=no
9435 elif test "$shlibpath_overrides_runpath" = yes ||
9436 test "$enable_shared" = no; then
9437 # Fast installation is not necessary
9438 enable_fast_install=needless
9439 fi
9440
9441
9442
9443
9444
9445
9446 if test "x$enable_dlopen" != xyes; then
9447 enable_dlopen=unknown
9448 enable_dlopen_self=unknown
9449 enable_dlopen_self_static=unknown
9450 else
9451 lt_cv_dlopen=no
9452 lt_cv_dlopen_libs=
9453
9454 case $host_os in
9455 beos*)
9456 lt_cv_dlopen="load_add_on"
9457 lt_cv_dlopen_libs=
9458 lt_cv_dlopen_self=yes
9459 ;;
9460
9461 mingw* | pw32* | cegcc*)
9462 lt_cv_dlopen="LoadLibrary"
9463 lt_cv_dlopen_libs=
9464 ;;
9465
9466 cygwin*)
9467 lt_cv_dlopen="dlopen"
9468 lt_cv_dlopen_libs=
9469 ;;
9470
9471 darwin*)
9472 # if libdl is installed we need to link against it
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 ac_check_lib_save_LIBS=$LIBS
9479 LIBS="-ldl $LIBS"
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char dlopen ();
9490 int
9491 main ()
9492 {
9493 return dlopen ();
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499 ac_cv_lib_dl_dlopen=yes
9500 else
9501 ac_cv_lib_dl_dlopen=no
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505 LIBS=$ac_check_lib_save_LIBS
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9509 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9511 else
9512
9513 lt_cv_dlopen="dyld"
9514 lt_cv_dlopen_libs=
9515 lt_cv_dlopen_self=yes
9516
9517 fi
9518
9519 ;;
9520
9521 *)
9522 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9523 if test "x$ac_cv_func_shl_load" = x""yes; then :
9524 lt_cv_dlopen="shl_load"
9525 else
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9527 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9528 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 ac_check_lib_save_LIBS=$LIBS
9532 LIBS="-ldld $LIBS"
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535
9536 /* Override any GCC internal prototype to avoid an error.
9537 Use char because int might match the return type of a GCC
9538 builtin and then its argument prototype would still apply. */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char shl_load ();
9543 int
9544 main ()
9545 {
9546 return shl_load ();
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"; then :
9552 ac_cv_lib_dld_shl_load=yes
9553 else
9554 ac_cv_lib_dld_shl_load=no
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 LIBS=$ac_check_lib_save_LIBS
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9561 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9562 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9564 else
9565 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9566 if test "x$ac_cv_func_dlopen" = x""yes; then :
9567 lt_cv_dlopen="dlopen"
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 ac_check_lib_save_LIBS=$LIBS
9575 LIBS="-ldl $LIBS"
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char dlopen ();
9586 int
9587 main ()
9588 {
9589 return dlopen ();
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"; then :
9595 ac_cv_lib_dl_dlopen=yes
9596 else
9597 ac_cv_lib_dl_dlopen=no
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 LIBS=$ac_check_lib_save_LIBS
9602 fi
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9605 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9607 else
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9609 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9610 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 ac_check_lib_save_LIBS=$LIBS
9614 LIBS="-lsvld $LIBS"
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char dlopen ();
9625 int
9626 main ()
9627 {
9628 return dlopen ();
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"; then :
9634 ac_cv_lib_svld_dlopen=yes
9635 else
9636 ac_cv_lib_svld_dlopen=no
9637 fi
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 LIBS=$ac_check_lib_save_LIBS
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9643 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9644 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9646 else
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9648 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9649 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-ldld $LIBS"
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 char dld_link ();
9664 int
9665 main ()
9666 {
9667 return dld_link ();
9668 ;
9669 return 0;
9670 }
9671 _ACEOF
9672 if ac_fn_c_try_link "$LINENO"; then :
9673 ac_cv_lib_dld_dld_link=yes
9674 else
9675 ac_cv_lib_dld_dld_link=no
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9682 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9683 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9684 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9685 fi
9686
9687
9688 fi
9689
9690
9691 fi
9692
9693
9694 fi
9695
9696
9697 fi
9698
9699
9700 fi
9701
9702 ;;
9703 esac
9704
9705 if test "x$lt_cv_dlopen" != xno; then
9706 enable_dlopen=yes
9707 else
9708 enable_dlopen=no
9709 fi
9710
9711 case $lt_cv_dlopen in
9712 dlopen)
9713 save_CPPFLAGS="$CPPFLAGS"
9714 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9715
9716 save_LDFLAGS="$LDFLAGS"
9717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9718
9719 save_LIBS="$LIBS"
9720 LIBS="$lt_cv_dlopen_libs $LIBS"
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9723 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9724 if test "${lt_cv_dlopen_self+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 if test "$cross_compiling" = yes; then :
9728 lt_cv_dlopen_self=cross
9729 else
9730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9731 lt_status=$lt_dlunknown
9732 cat > conftest.$ac_ext <<_LT_EOF
9733 #line 9733 "configure"
9734 #include "confdefs.h"
9735
9736 #if HAVE_DLFCN_H
9737 #include <dlfcn.h>
9738 #endif
9739
9740 #include <stdio.h>
9741
9742 #ifdef RTLD_GLOBAL
9743 # define LT_DLGLOBAL RTLD_GLOBAL
9744 #else
9745 # ifdef DL_GLOBAL
9746 # define LT_DLGLOBAL DL_GLOBAL
9747 # else
9748 # define LT_DLGLOBAL 0
9749 # endif
9750 #endif
9751
9752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9753 find out it does not work in some platform. */
9754 #ifndef LT_DLLAZY_OR_NOW
9755 # ifdef RTLD_LAZY
9756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9757 # else
9758 # ifdef DL_LAZY
9759 # define LT_DLLAZY_OR_NOW DL_LAZY
9760 # else
9761 # ifdef RTLD_NOW
9762 # define LT_DLLAZY_OR_NOW RTLD_NOW
9763 # else
9764 # ifdef DL_NOW
9765 # define LT_DLLAZY_OR_NOW DL_NOW
9766 # else
9767 # define LT_DLLAZY_OR_NOW 0
9768 # endif
9769 # endif
9770 # endif
9771 # endif
9772 #endif
9773
9774 void fnord() { int i=42;}
9775 int main ()
9776 {
9777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9778 int status = $lt_dlunknown;
9779
9780 if (self)
9781 {
9782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9783 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9784 /* dlclose (self); */
9785 }
9786 else
9787 puts (dlerror ());
9788
9789 return status;
9790 }
9791 _LT_EOF
9792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9793 (eval $ac_link) 2>&5
9794 ac_status=$?
9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9796 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9797 (./conftest; exit; ) >&5 2>/dev/null
9798 lt_status=$?
9799 case x$lt_status in
9800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9802 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9803 esac
9804 else :
9805 # compilation failed
9806 lt_cv_dlopen_self=no
9807 fi
9808 fi
9809 rm -fr conftest*
9810
9811
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9814 $as_echo "$lt_cv_dlopen_self" >&6; }
9815
9816 if test "x$lt_cv_dlopen_self" = xyes; then
9817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9819 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9820 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 if test "$cross_compiling" = yes; then :
9824 lt_cv_dlopen_self_static=cross
9825 else
9826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9827 lt_status=$lt_dlunknown
9828 cat > conftest.$ac_ext <<_LT_EOF
9829 #line 9829 "configure"
9830 #include "confdefs.h"
9831
9832 #if HAVE_DLFCN_H
9833 #include <dlfcn.h>
9834 #endif
9835
9836 #include <stdio.h>
9837
9838 #ifdef RTLD_GLOBAL
9839 # define LT_DLGLOBAL RTLD_GLOBAL
9840 #else
9841 # ifdef DL_GLOBAL
9842 # define LT_DLGLOBAL DL_GLOBAL
9843 # else
9844 # define LT_DLGLOBAL 0
9845 # endif
9846 #endif
9847
9848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9849 find out it does not work in some platform. */
9850 #ifndef LT_DLLAZY_OR_NOW
9851 # ifdef RTLD_LAZY
9852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9853 # else
9854 # ifdef DL_LAZY
9855 # define LT_DLLAZY_OR_NOW DL_LAZY
9856 # else
9857 # ifdef RTLD_NOW
9858 # define LT_DLLAZY_OR_NOW RTLD_NOW
9859 # else
9860 # ifdef DL_NOW
9861 # define LT_DLLAZY_OR_NOW DL_NOW
9862 # else
9863 # define LT_DLLAZY_OR_NOW 0
9864 # endif
9865 # endif
9866 # endif
9867 # endif
9868 #endif
9869
9870 void fnord() { int i=42;}
9871 int main ()
9872 {
9873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9874 int status = $lt_dlunknown;
9875
9876 if (self)
9877 {
9878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9880 /* dlclose (self); */
9881 }
9882 else
9883 puts (dlerror ());
9884
9885 return status;
9886 }
9887 _LT_EOF
9888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9889 (eval $ac_link) 2>&5
9890 ac_status=$?
9891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9893 (./conftest; exit; ) >&5 2>/dev/null
9894 lt_status=$?
9895 case x$lt_status in
9896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9898 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9899 esac
9900 else :
9901 # compilation failed
9902 lt_cv_dlopen_self_static=no
9903 fi
9904 fi
9905 rm -fr conftest*
9906
9907
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9910 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9911 fi
9912
9913 CPPFLAGS="$save_CPPFLAGS"
9914 LDFLAGS="$save_LDFLAGS"
9915 LIBS="$save_LIBS"
9916 ;;
9917 esac
9918
9919 case $lt_cv_dlopen_self in
9920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9921 *) enable_dlopen_self=unknown ;;
9922 esac
9923
9924 case $lt_cv_dlopen_self_static in
9925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9926 *) enable_dlopen_self_static=unknown ;;
9927 esac
9928 fi
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946 striplib=
9947 old_striplib=
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9949 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9950 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9951 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9952 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9954 $as_echo "yes" >&6; }
9955 else
9956 # FIXME - insert some real tests, host_os isn't really good enough
9957 case $host_os in
9958 darwin*)
9959 if test -n "$STRIP" ; then
9960 striplib="$STRIP -x"
9961 old_striplib="$STRIP -S"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9963 $as_echo "yes" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9967 fi
9968 ;;
9969 *)
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9972 ;;
9973 esac
9974 fi
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987 # Report which library types will actually be built
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9989 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9991 $as_echo "$can_build_shared" >&6; }
9992
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9994 $as_echo_n "checking whether to build shared libraries... " >&6; }
9995 test "$can_build_shared" = "no" && enable_shared=no
9996
9997 # On AIX, shared libraries and static libraries use the same namespace, and
9998 # are all built from PIC.
9999 case $host_os in
10000 aix3*)
10001 test "$enable_shared" = yes && enable_static=no
10002 if test -n "$RANLIB"; then
10003 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10004 postinstall_cmds='$RANLIB $lib'
10005 fi
10006 ;;
10007
10008 aix[4-9]*)
10009 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10010 test "$enable_shared" = yes && enable_static=no
10011 fi
10012 ;;
10013 esac
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10015 $as_echo "$enable_shared" >&6; }
10016
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10018 $as_echo_n "checking whether to build static libraries... " >&6; }
10019 # Make sure either enable_shared or enable_static is yes.
10020 test "$enable_shared" = yes || enable_static=yes
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10022 $as_echo "$enable_static" >&6; }
10023
10024
10025
10026
10027 fi
10028 ac_ext=c
10029 ac_cpp='$CPP $CPPFLAGS'
10030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10033
10034 CC="$lt_save_CC"
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 ac_config_commands="$ac_config_commands libtool"
10049
10050
10051
10052
10053 # Only expand once:
10054
10055
10056
10057
10058 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10059 if test -n "$ac_tool_prefix"; then
10060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10061 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 case $PKG_CONFIG in
10068 [\\/]* | ?:[\\/]*)
10069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10070 ;;
10071 *)
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10074 do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10082 fi
10083 done
10084 done
10085 IFS=$as_save_IFS
10086
10087 ;;
10088 esac
10089 fi
10090 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10091 if test -n "$PKG_CONFIG"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10093 $as_echo "$PKG_CONFIG" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10097 fi
10098
10099
10100 fi
10101 if test -z "$ac_cv_path_PKG_CONFIG"; then
10102 ac_pt_PKG_CONFIG=$PKG_CONFIG
10103 # Extract the first word of "pkg-config", so it can be a program name with args.
10104 set dummy pkg-config; ac_word=$2
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106 $as_echo_n "checking for $ac_word... " >&6; }
10107 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 case $ac_pt_PKG_CONFIG in
10111 [\\/]* | ?:[\\/]*)
10112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10113 ;;
10114 *)
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10117 do
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10125 fi
10126 done
10127 done
10128 IFS=$as_save_IFS
10129
10130 ;;
10131 esac
10132 fi
10133 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10134 if test -n "$ac_pt_PKG_CONFIG"; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10136 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10137 else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10140 fi
10141
10142 if test "x$ac_pt_PKG_CONFIG" = x; then
10143 PKG_CONFIG=""
10144 else
10145 case $cross_compiling:$ac_tool_warned in
10146 yes:)
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10149 ac_tool_warned=yes ;;
10150 esac
10151 PKG_CONFIG=$ac_pt_PKG_CONFIG
10152 fi
10153 else
10154 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10155 fi
10156
10157 fi
10158 if test -n "$PKG_CONFIG"; then
10159 _pkg_min_version=0.22
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10161 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10162 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10164 $as_echo "yes" >&6; }
10165 else
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 PKG_CONFIG=""
10169 fi
10170
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10173 $as_echo_n "checking for GNU make... " >&6; }
10174 if test "${_cv_gnu_make_command+set}" = set; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 _cv_gnu_make_command='' ;
10178 for a in "$MAKE" make gmake gnumake ; do
10179 if test -z "$a" ; then continue ; fi ;
10180 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10181 _cv_gnu_make_command=$a ;
10182 break;
10183 fi
10184 done ;
10185
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10188 $as_echo "$_cv_gnu_make_command" >&6; } ;
10189 if test "x$_cv_gnu_make_command" != "x" ; then
10190 ifGNUmake='' ;
10191 else
10192 ifGNUmake='#' ;
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10194 $as_echo "\"Not found\"" >&6; };
10195 fi
10196
10197
10198 GMAKE=$_cv_gnu_make_command
10199
10200 if test "x$GMAKE" = x; then :
10201 as_fn_error "You need GNU make" "$LINENO" 5
10202 fi
10203 ac_ext=cpp
10204 ac_cpp='$CXXCPP $CPPFLAGS'
10205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10208 if test -z "$CXX"; then
10209 if test -n "$CCC"; then
10210 CXX=$CCC
10211 else
10212 if test -n "$ac_tool_prefix"; then
10213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10214 do
10215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if test "${ac_cv_prog_CXX+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 if test -n "$CXX"; then
10223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10224 else
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10227 do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236 done
10237 done
10238 IFS=$as_save_IFS
10239
10240 fi
10241 fi
10242 CXX=$ac_cv_prog_CXX
10243 if test -n "$CXX"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10245 $as_echo "$CXX" >&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 "$CXX" && break
10253 done
10254 fi
10255 if test -z "$CXX"; then
10256 ac_ct_CXX=$CXX
10257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10258 do
10259 # Extract the first word of "$ac_prog", so it can be a program name with args.
10260 set dummy $ac_prog; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 if test -n "$ac_ct_CXX"; then
10267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10271 do
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276 ac_cv_prog_ac_ct_CXX="$ac_prog"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10279 fi
10280 done
10281 done
10282 IFS=$as_save_IFS
10283
10284 fi
10285 fi
10286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10287 if test -n "$ac_ct_CXX"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10289 $as_echo "$ac_ct_CXX" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10293 fi
10294
10295
10296 test -n "$ac_ct_CXX" && break
10297 done
10298
10299 if test "x$ac_ct_CXX" = x; then
10300 CXX="g++"
10301 else
10302 case $cross_compiling:$ac_tool_warned in
10303 yes:)
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10306 ac_tool_warned=yes ;;
10307 esac
10308 CXX=$ac_ct_CXX
10309 fi
10310 fi
10311
10312 fi
10313 fi
10314 # Provide some information about the compiler.
10315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10316 set X $ac_compile
10317 ac_compiler=$2
10318 for ac_option in --version -v -V -qversion; do
10319 { { ac_try="$ac_compiler $ac_option >&5"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10325 $as_echo "$ac_try_echo"; } >&5
10326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10327 ac_status=$?
10328 if test -s conftest.err; then
10329 sed '10a\
10330 ... rest of stderr output deleted ...
10331 10q' conftest.err >conftest.er1
10332 cat conftest.er1 >&5
10333 fi
10334 rm -f conftest.er1 conftest.err
10335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10336 test $ac_status = 0; }
10337 done
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10340 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10341 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346
10347 int
10348 main ()
10349 {
10350 #ifndef __GNUC__
10351 choke me
10352 #endif
10353
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_cxx_try_compile "$LINENO"; then :
10359 ac_compiler_gnu=yes
10360 else
10361 ac_compiler_gnu=no
10362 fi
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10365
10366 fi
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10368 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10369 if test $ac_compiler_gnu = yes; then
10370 GXX=yes
10371 else
10372 GXX=
10373 fi
10374 ac_test_CXXFLAGS=${CXXFLAGS+set}
10375 ac_save_CXXFLAGS=$CXXFLAGS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10377 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10378 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10382 ac_cxx_werror_flag=yes
10383 ac_cv_prog_cxx_g=no
10384 CXXFLAGS="-g"
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387
10388 int
10389 main ()
10390 {
10391
10392 ;
10393 return 0;
10394 }
10395 _ACEOF
10396 if ac_fn_cxx_try_compile "$LINENO"; then :
10397 ac_cv_prog_cxx_g=yes
10398 else
10399 CXXFLAGS=""
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402
10403 int
10404 main ()
10405 {
10406
10407 ;
10408 return 0;
10409 }
10410 _ACEOF
10411 if ac_fn_cxx_try_compile "$LINENO"; then :
10412
10413 else
10414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10415 CXXFLAGS="-g"
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418
10419 int
10420 main ()
10421 {
10422
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_cxx_try_compile "$LINENO"; then :
10428 ac_cv_prog_cxx_g=yes
10429 fi
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10436 fi
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10438 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10439 if test "$ac_test_CXXFLAGS" = set; then
10440 CXXFLAGS=$ac_save_CXXFLAGS
10441 elif test $ac_cv_prog_cxx_g = yes; then
10442 if test "$GXX" = yes; then
10443 CXXFLAGS="-g -O2"
10444 else
10445 CXXFLAGS="-g"
10446 fi
10447 else
10448 if test "$GXX" = yes; then
10449 CXXFLAGS="-O2"
10450 else
10451 CXXFLAGS=
10452 fi
10453 fi
10454 ac_ext=c
10455 ac_cpp='$CPP $CPPFLAGS'
10456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10459
10460
10461 ac_ext=cpp
10462 ac_cpp='$CXXCPP $CPPFLAGS'
10463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10466 if test -z "$CXX"; then
10467 if test -n "$CCC"; then
10468 CXX=$CCC
10469 else
10470 if test -n "$ac_tool_prefix"; then
10471 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10472 do
10473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if test "${ac_cv_prog_CXX+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 if test -n "$CXX"; then
10481 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10485 do
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10493 fi
10494 done
10495 done
10496 IFS=$as_save_IFS
10497
10498 fi
10499 fi
10500 CXX=$ac_cv_prog_CXX
10501 if test -n "$CXX"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10503 $as_echo "$CXX" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508
10509
10510 test -n "$CXX" && break
10511 done
10512 fi
10513 if test -z "$CXX"; then
10514 ac_ct_CXX=$CXX
10515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10516 do
10517 # Extract the first word of "$ac_prog", so it can be a program name with args.
10518 set dummy $ac_prog; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 if test -n "$ac_ct_CXX"; then
10525 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10529 do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_prog_ac_ct_CXX="$ac_prog"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538 done
10539 done
10540 IFS=$as_save_IFS
10541
10542 fi
10543 fi
10544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10545 if test -n "$ac_ct_CXX"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10547 $as_echo "$ac_ct_CXX" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552
10553
10554 test -n "$ac_ct_CXX" && break
10555 done
10556
10557 if test "x$ac_ct_CXX" = x; then
10558 CXX="g++"
10559 else
10560 case $cross_compiling:$ac_tool_warned in
10561 yes:)
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10564 ac_tool_warned=yes ;;
10565 esac
10566 CXX=$ac_ct_CXX
10567 fi
10568 fi
10569
10570 fi
10571 fi
10572 # Provide some information about the compiler.
10573 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10574 set X $ac_compile
10575 ac_compiler=$2
10576 for ac_option in --version -v -V -qversion; do
10577 { { ac_try="$ac_compiler $ac_option >&5"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10581 esac
10582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10583 $as_echo "$ac_try_echo"; } >&5
10584 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10585 ac_status=$?
10586 if test -s conftest.err; then
10587 sed '10a\
10588 ... rest of stderr output deleted ...
10589 10q' conftest.err >conftest.er1
10590 cat conftest.er1 >&5
10591 fi
10592 rm -f conftest.er1 conftest.err
10593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10594 test $ac_status = 0; }
10595 done
10596
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10598 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604
10605 int
10606 main ()
10607 {
10608 #ifndef __GNUC__
10609 choke me
10610 #endif
10611
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_cxx_try_compile "$LINENO"; then :
10617 ac_compiler_gnu=yes
10618 else
10619 ac_compiler_gnu=no
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10623
10624 fi
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10626 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10627 if test $ac_compiler_gnu = yes; then
10628 GXX=yes
10629 else
10630 GXX=
10631 fi
10632 ac_test_CXXFLAGS=${CXXFLAGS+set}
10633 ac_save_CXXFLAGS=$CXXFLAGS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10635 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10636 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10640 ac_cxx_werror_flag=yes
10641 ac_cv_prog_cxx_g=no
10642 CXXFLAGS="-g"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645
10646 int
10647 main ()
10648 {
10649
10650 ;
10651 return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_cxx_try_compile "$LINENO"; then :
10655 ac_cv_prog_cxx_g=yes
10656 else
10657 CXXFLAGS=""
10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10660
10661 int
10662 main ()
10663 {
10664
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_cxx_try_compile "$LINENO"; then :
10670
10671 else
10672 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10673 CXXFLAGS="-g"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676
10677 int
10678 main ()
10679 {
10680
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_cxx_try_compile "$LINENO"; then :
10686 ac_cv_prog_cxx_g=yes
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10696 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10697 if test "$ac_test_CXXFLAGS" = set; then
10698 CXXFLAGS=$ac_save_CXXFLAGS
10699 elif test $ac_cv_prog_cxx_g = yes; then
10700 if test "$GXX" = yes; then
10701 CXXFLAGS="-g -O2"
10702 else
10703 CXXFLAGS="-g"
10704 fi
10705 else
10706 if test "$GXX" = yes; then
10707 CXXFLAGS="-O2"
10708 else
10709 CXXFLAGS=
10710 fi
10711 fi
10712 ac_ext=c
10713 ac_cpp='$CPP $CPPFLAGS'
10714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10717
10718 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10719 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10720 (test "X$CXX" != "Xg++"))) ; then
10721 ac_ext=cpp
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10727 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10728 if test -z "$CXXCPP"; then
10729 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 # Double quotes because CXXCPP needs to be expanded
10733 for CXXCPP in "$CXX -E" "/lib/cpp"
10734 do
10735 ac_preproc_ok=false
10736 for ac_cxx_preproc_warn_flag in '' yes
10737 do
10738 # Use a header file that comes with gcc, so configuring glibc
10739 # with a fresh cross-compiler works.
10740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 # <limits.h> exists even on freestanding compilers.
10742 # On the NeXT, cc -E runs the code through the compiler's parser,
10743 # not just through cpp. "Syntax error" is here to catch this case.
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 #ifdef __STDC__
10747 # include <limits.h>
10748 #else
10749 # include <assert.h>
10750 #endif
10751 Syntax error
10752 _ACEOF
10753 if ac_fn_cxx_try_cpp "$LINENO"; then :
10754
10755 else
10756 # Broken: fails on valid input.
10757 continue
10758 fi
10759 rm -f conftest.err conftest.$ac_ext
10760
10761 # OK, works on sane cases. Now check whether nonexistent headers
10762 # can be detected and how.
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765 #include <ac_nonexistent.h>
10766 _ACEOF
10767 if ac_fn_cxx_try_cpp "$LINENO"; then :
10768 # Broken: success on invalid input.
10769 continue
10770 else
10771 # Passes both tests.
10772 ac_preproc_ok=:
10773 break
10774 fi
10775 rm -f conftest.err conftest.$ac_ext
10776
10777 done
10778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10779 rm -f conftest.err conftest.$ac_ext
10780 if $ac_preproc_ok; then :
10781 break
10782 fi
10783
10784 done
10785 ac_cv_prog_CXXCPP=$CXXCPP
10786
10787 fi
10788 CXXCPP=$ac_cv_prog_CXXCPP
10789 else
10790 ac_cv_prog_CXXCPP=$CXXCPP
10791 fi
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10793 $as_echo "$CXXCPP" >&6; }
10794 ac_preproc_ok=false
10795 for ac_cxx_preproc_warn_flag in '' yes
10796 do
10797 # Use a header file that comes with gcc, so configuring glibc
10798 # with a fresh cross-compiler works.
10799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10800 # <limits.h> exists even on freestanding compilers.
10801 # On the NeXT, cc -E runs the code through the compiler's parser,
10802 # not just through cpp. "Syntax error" is here to catch this case.
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10805 #ifdef __STDC__
10806 # include <limits.h>
10807 #else
10808 # include <assert.h>
10809 #endif
10810 Syntax error
10811 _ACEOF
10812 if ac_fn_cxx_try_cpp "$LINENO"; then :
10813
10814 else
10815 # Broken: fails on valid input.
10816 continue
10817 fi
10818 rm -f conftest.err conftest.$ac_ext
10819
10820 # OK, works on sane cases. Now check whether nonexistent headers
10821 # can be detected and how.
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #include <ac_nonexistent.h>
10825 _ACEOF
10826 if ac_fn_cxx_try_cpp "$LINENO"; then :
10827 # Broken: success on invalid input.
10828 continue
10829 else
10830 # Passes both tests.
10831 ac_preproc_ok=:
10832 break
10833 fi
10834 rm -f conftest.err conftest.$ac_ext
10835
10836 done
10837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10838 rm -f conftest.err conftest.$ac_ext
10839 if $ac_preproc_ok; then :
10840
10841 else
10842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10844 _lt_caught_CXX_error=yes; }
10845 fi
10846
10847 ac_ext=c
10848 ac_cpp='$CPP $CPPFLAGS'
10849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10852
10853 else
10854 _lt_caught_CXX_error=yes
10855 fi
10856
10857
10858
10859
10860 ac_ext=cpp
10861 ac_cpp='$CXXCPP $CPPFLAGS'
10862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10865
10866 archive_cmds_need_lc_CXX=no
10867 allow_undefined_flag_CXX=
10868 always_export_symbols_CXX=no
10869 archive_expsym_cmds_CXX=
10870 compiler_needs_object_CXX=no
10871 export_dynamic_flag_spec_CXX=
10872 hardcode_direct_CXX=no
10873 hardcode_direct_absolute_CXX=no
10874 hardcode_libdir_flag_spec_CXX=
10875 hardcode_libdir_flag_spec_ld_CXX=
10876 hardcode_libdir_separator_CXX=
10877 hardcode_minus_L_CXX=no
10878 hardcode_shlibpath_var_CXX=unsupported
10879 hardcode_automatic_CXX=no
10880 inherit_rpath_CXX=no
10881 module_cmds_CXX=
10882 module_expsym_cmds_CXX=
10883 link_all_deplibs_CXX=unknown
10884 old_archive_cmds_CXX=$old_archive_cmds
10885 no_undefined_flag_CXX=
10886 whole_archive_flag_spec_CXX=
10887 enable_shared_with_static_runtimes_CXX=no
10888
10889 # Source file extension for C++ test sources.
10890 ac_ext=cpp
10891
10892 # Object file extension for compiled C++ test sources.
10893 objext=o
10894 objext_CXX=$objext
10895
10896 # No sense in running all these tests if we already determined that
10897 # the CXX compiler isn't working. Some variables (like enable_shared)
10898 # are currently assumed to apply to all compilers on this platform,
10899 # and will be corrupted by setting them based on a non-working compiler.
10900 if test "$_lt_caught_CXX_error" != yes; then
10901 # Code to be used in simple compile tests
10902 lt_simple_compile_test_code="int some_variable = 0;"
10903
10904 # Code to be used in simple link tests
10905 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10906
10907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10908
10909
10910
10911
10912
10913
10914 # If no C compiler was specified, use CC.
10915 LTCC=${LTCC-"$CC"}
10916
10917 # If no C compiler flags were specified, use CFLAGS.
10918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10919
10920 # Allow CC to be a program name with arguments.
10921 compiler=$CC
10922
10923
10924 # save warnings/boilerplate of simple test code
10925 ac_outfile=conftest.$ac_objext
10926 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10928 _lt_compiler_boilerplate=`cat conftest.err`
10929 $RM conftest*
10930
10931 ac_outfile=conftest.$ac_objext
10932 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10934 _lt_linker_boilerplate=`cat conftest.err`
10935 $RM -r conftest*
10936
10937
10938 # Allow CC to be a program name with arguments.
10939 lt_save_CC=$CC
10940 lt_save_LD=$LD
10941 lt_save_GCC=$GCC
10942 GCC=$GXX
10943 lt_save_with_gnu_ld=$with_gnu_ld
10944 lt_save_path_LD=$lt_cv_path_LD
10945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10947 else
10948 $as_unset lt_cv_prog_gnu_ld
10949 fi
10950 if test -n "${lt_cv_path_LDCXX+set}"; then
10951 lt_cv_path_LD=$lt_cv_path_LDCXX
10952 else
10953 $as_unset lt_cv_path_LD
10954 fi
10955 test -z "${LDCXX+set}" || LD=$LDCXX
10956 CC=${CXX-"c++"}
10957 compiler=$CC
10958 compiler_CXX=$CC
10959 for cc_temp in $compiler""; do
10960 case $cc_temp in
10961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10963 \-*) ;;
10964 *) break;;
10965 esac
10966 done
10967 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10968
10969
10970 if test -n "$compiler"; then
10971 # We don't want -fno-exception when compiling C++ code, so set the
10972 # no_builtin_flag separately
10973 if test "$GXX" = yes; then
10974 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10975 else
10976 lt_prog_compiler_no_builtin_flag_CXX=
10977 fi
10978
10979 if test "$GXX" = yes; then
10980 # Set up default GNU C++ configuration
10981
10982
10983
10984 # Check whether --with-gnu-ld was given.
10985 if test "${with_gnu_ld+set}" = set; then :
10986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10987 else
10988 with_gnu_ld=no
10989 fi
10990
10991 ac_prog=ld
10992 if test "$GCC" = yes; then
10993 # Check if gcc -print-prog-name=ld gives a path.
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10995 $as_echo_n "checking for ld used by $CC... " >&6; }
10996 case $host in
10997 *-*-mingw*)
10998 # gcc leaves a trailing carriage return which upsets mingw
10999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11000 *)
11001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11002 esac
11003 case $ac_prog in
11004 # Accept absolute paths.
11005 [\\/]* | ?:[\\/]*)
11006 re_direlt='/[^/][^/]*/\.\./'
11007 # Canonicalize the pathname of ld
11008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11011 done
11012 test -z "$LD" && LD="$ac_prog"
11013 ;;
11014 "")
11015 # If it fails, then pretend we aren't using GCC.
11016 ac_prog=ld
11017 ;;
11018 *)
11019 # If it is relative, then search for the first ld in PATH.
11020 with_gnu_ld=unknown
11021 ;;
11022 esac
11023 elif test "$with_gnu_ld" = yes; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11025 $as_echo_n "checking for GNU ld... " >&6; }
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11028 $as_echo_n "checking for non-GNU ld... " >&6; }
11029 fi
11030 if test "${lt_cv_path_LD+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 if test -z "$LD"; then
11034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11035 for ac_dir in $PATH; do
11036 IFS="$lt_save_ifs"
11037 test -z "$ac_dir" && ac_dir=.
11038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11039 lt_cv_path_LD="$ac_dir/$ac_prog"
11040 # Check to see if the program is GNU ld. I'd rather use --version,
11041 # but apparently some variants of GNU ld only accept -v.
11042 # Break only if it was the GNU/non-GNU ld that we prefer.
11043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11044 *GNU* | *'with BFD'*)
11045 test "$with_gnu_ld" != no && break
11046 ;;
11047 *)
11048 test "$with_gnu_ld" != yes && break
11049 ;;
11050 esac
11051 fi
11052 done
11053 IFS="$lt_save_ifs"
11054 else
11055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11056 fi
11057 fi
11058
11059 LD="$lt_cv_path_LD"
11060 if test -n "$LD"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11062 $as_echo "$LD" >&6; }
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11066 fi
11067 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11070 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11074 case `$LD -v 2>&1 </dev/null` in
11075 *GNU* | *'with BFD'*)
11076 lt_cv_prog_gnu_ld=yes
11077 ;;
11078 *)
11079 lt_cv_prog_gnu_ld=no
11080 ;;
11081 esac
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11085 with_gnu_ld=$lt_cv_prog_gnu_ld
11086
11087
11088
11089
11090
11091
11092
11093 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11094 # archiving commands below assume that GNU ld is being used.
11095 if test "$with_gnu_ld" = yes; then
11096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097 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'
11098
11099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11101
11102 # If archive_cmds runs LD, not CC, wlarc should be empty
11103 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11104 # investigate it a little bit more. (MM)
11105 wlarc='${wl}'
11106
11107 # ancient GNU ld didn't support --whole-archive et. al.
11108 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11109 $GREP 'no-whole-archive' > /dev/null; then
11110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11111 else
11112 whole_archive_flag_spec_CXX=
11113 fi
11114 else
11115 with_gnu_ld=no
11116 wlarc=
11117
11118 # A generic and very simple default shared library creation
11119 # command for GNU C++ for the case where it uses the native
11120 # linker, instead of GNU ld. If possible, this setting should
11121 # overridden to take advantage of the native linker features on
11122 # the platform it is being used on.
11123 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11124 fi
11125
11126 # Commands to make compiler produce verbose output that lists
11127 # what "hidden" libraries, object files and flags are used when
11128 # linking a shared library.
11129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11130
11131 else
11132 GXX=no
11133 with_gnu_ld=no
11134 wlarc=
11135 fi
11136
11137 # PORTME: fill in a description of your system's C++ link characteristics
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11140 ld_shlibs_CXX=yes
11141 case $host_os in
11142 aix3*)
11143 # FIXME: insert proper C++ library support
11144 ld_shlibs_CXX=no
11145 ;;
11146 aix[4-9]*)
11147 if test "$host_cpu" = ia64; then
11148 # On IA64, the linker does run time linking by default, so we don't
11149 # have to do anything special.
11150 aix_use_runtimelinking=no
11151 exp_sym_flag='-Bexport'
11152 no_entry_flag=""
11153 else
11154 aix_use_runtimelinking=no
11155
11156 # Test if we are trying to use run time linking or normal
11157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11158 # need to do runtime linking.
11159 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11160 for ld_flag in $LDFLAGS; do
11161 case $ld_flag in
11162 *-brtl*)
11163 aix_use_runtimelinking=yes
11164 break
11165 ;;
11166 esac
11167 done
11168 ;;
11169 esac
11170
11171 exp_sym_flag='-bexport'
11172 no_entry_flag='-bnoentry'
11173 fi
11174
11175 # When large executables or shared objects are built, AIX ld can
11176 # have problems creating the table of contents. If linking a library
11177 # or program results in "error TOC overflow" add -mminimal-toc to
11178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11180
11181 archive_cmds_CXX=''
11182 hardcode_direct_CXX=yes
11183 hardcode_direct_absolute_CXX=yes
11184 hardcode_libdir_separator_CXX=':'
11185 link_all_deplibs_CXX=yes
11186 file_list_spec_CXX='${wl}-f,'
11187
11188 if test "$GXX" = yes; then
11189 case $host_os in aix4.[012]|aix4.[012].*)
11190 # We only want to do this on AIX 4.2 and lower, the check
11191 # below for broken collect2 doesn't work under 4.3+
11192 collect2name=`${CC} -print-prog-name=collect2`
11193 if test -f "$collect2name" &&
11194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11195 then
11196 # We have reworked collect2
11197 :
11198 else
11199 # We have old collect2
11200 hardcode_direct_CXX=unsupported
11201 # It fails to find uninstalled libraries when the uninstalled
11202 # path is not listed in the libpath. Setting hardcode_minus_L
11203 # to unsupported forces relinking
11204 hardcode_minus_L_CXX=yes
11205 hardcode_libdir_flag_spec_CXX='-L$libdir'
11206 hardcode_libdir_separator_CXX=
11207 fi
11208 esac
11209 shared_flag='-shared'
11210 if test "$aix_use_runtimelinking" = yes; then
11211 shared_flag="$shared_flag "'${wl}-G'
11212 fi
11213 else
11214 # not using gcc
11215 if test "$host_cpu" = ia64; then
11216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11217 # chokes on -Wl,-G. The following line is correct:
11218 shared_flag='-G'
11219 else
11220 if test "$aix_use_runtimelinking" = yes; then
11221 shared_flag='${wl}-G'
11222 else
11223 shared_flag='${wl}-bM:SRE'
11224 fi
11225 fi
11226 fi
11227
11228 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11229 # It seems that -bexpall does not export symbols beginning with
11230 # underscore (_), so it is better to generate a list of symbols to
11231 # export.
11232 always_export_symbols_CXX=yes
11233 if test "$aix_use_runtimelinking" = yes; then
11234 # Warning - without using the other runtime loading flags (-brtl),
11235 # -berok will link without error, but may produce a broken library.
11236 allow_undefined_flag_CXX='-berok'
11237 # Determine the default libpath from the value encoded in an empty
11238 # executable.
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241
11242 int
11243 main ()
11244 {
11245
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_cxx_try_link "$LINENO"; then :
11251
11252 lt_aix_libpath_sed='
11253 /Import File Strings/,/^$/ {
11254 /^0/ {
11255 s/^0 *\(.*\)$/\1/
11256 p
11257 }
11258 }'
11259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11260 # Check for a 64-bit object if we didn't find anything.
11261 if test -z "$aix_libpath"; then
11262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11263 fi
11264 fi
11265 rm -f core conftest.err conftest.$ac_objext \
11266 conftest$ac_exeext conftest.$ac_ext
11267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11268
11269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11270
11271 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"
11272 else
11273 if test "$host_cpu" = ia64; then
11274 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11275 allow_undefined_flag_CXX="-z nodefs"
11276 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"
11277 else
11278 # Determine the default libpath from the value encoded in an
11279 # empty executable.
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282
11283 int
11284 main ()
11285 {
11286
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_cxx_try_link "$LINENO"; then :
11292
11293 lt_aix_libpath_sed='
11294 /Import File Strings/,/^$/ {
11295 /^0/ {
11296 s/^0 *\(.*\)$/\1/
11297 p
11298 }
11299 }'
11300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11301 # Check for a 64-bit object if we didn't find anything.
11302 if test -z "$aix_libpath"; then
11303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11304 fi
11305 fi
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11309
11310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11311 # Warning - without using the other run time loading flags,
11312 # -berok will link without error, but may produce a broken library.
11313 no_undefined_flag_CXX=' ${wl}-bernotok'
11314 allow_undefined_flag_CXX=' ${wl}-berok'
11315 # Exported symbols can be pulled into shared objects from archives
11316 whole_archive_flag_spec_CXX='$convenience'
11317 archive_cmds_need_lc_CXX=yes
11318 # This is similar to how AIX traditionally builds its shared
11319 # libraries.
11320 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'
11321 fi
11322 fi
11323 ;;
11324
11325 beos*)
11326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11327 allow_undefined_flag_CXX=unsupported
11328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11329 # support --undefined. This deserves some investigation. FIXME
11330 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11331 else
11332 ld_shlibs_CXX=no
11333 fi
11334 ;;
11335
11336 chorus*)
11337 case $cc_basename in
11338 *)
11339 # FIXME: insert proper C++ library support
11340 ld_shlibs_CXX=no
11341 ;;
11342 esac
11343 ;;
11344
11345 cygwin* | mingw* | pw32* | cegcc*)
11346 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11347 # as there is no search path for DLLs.
11348 hardcode_libdir_flag_spec_CXX='-L$libdir'
11349 allow_undefined_flag_CXX=unsupported
11350 always_export_symbols_CXX=no
11351 enable_shared_with_static_runtimes_CXX=yes
11352
11353 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11354 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'
11355 # If the export-symbols file already is a .def file (1st line
11356 # is EXPORTS), use it as is; otherwise, prepend...
11357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11358 cp $export_symbols $output_objdir/$soname.def;
11359 else
11360 echo EXPORTS > $output_objdir/$soname.def;
11361 cat $export_symbols >> $output_objdir/$soname.def;
11362 fi~
11363 $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'
11364 else
11365 ld_shlibs_CXX=no
11366 fi
11367 ;;
11368 darwin* | rhapsody*)
11369
11370
11371 archive_cmds_need_lc_CXX=no
11372 hardcode_direct_CXX=no
11373 hardcode_automatic_CXX=yes
11374 hardcode_shlibpath_var_CXX=unsupported
11375 whole_archive_flag_spec_CXX=''
11376 link_all_deplibs_CXX=yes
11377 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11378 case $cc_basename in
11379 ifort*) _lt_dar_can_shared=yes ;;
11380 *) _lt_dar_can_shared=$GCC ;;
11381 esac
11382 if test "$_lt_dar_can_shared" = "yes"; then
11383 output_verbose_link_cmd=echo
11384 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}"
11385 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11386 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}"
11387 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}"
11388 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11389 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}"
11390 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}"
11391 fi
11392
11393 else
11394 ld_shlibs_CXX=no
11395 fi
11396
11397 ;;
11398
11399 dgux*)
11400 case $cc_basename in
11401 ec++*)
11402 # FIXME: insert proper C++ library support
11403 ld_shlibs_CXX=no
11404 ;;
11405 ghcx*)
11406 # Green Hills C++ Compiler
11407 # FIXME: insert proper C++ library support
11408 ld_shlibs_CXX=no
11409 ;;
11410 *)
11411 # FIXME: insert proper C++ library support
11412 ld_shlibs_CXX=no
11413 ;;
11414 esac
11415 ;;
11416
11417 freebsd[12]*)
11418 # C++ shared libraries reported to be fairly broken before
11419 # switch to ELF
11420 ld_shlibs_CXX=no
11421 ;;
11422
11423 freebsd-elf*)
11424 archive_cmds_need_lc_CXX=no
11425 ;;
11426
11427 freebsd* | dragonfly*)
11428 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11429 # conventions
11430 ld_shlibs_CXX=yes
11431 ;;
11432
11433 gnu*)
11434 ;;
11435
11436 hpux9*)
11437 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11438 hardcode_libdir_separator_CXX=:
11439 export_dynamic_flag_spec_CXX='${wl}-E'
11440 hardcode_direct_CXX=yes
11441 hardcode_minus_L_CXX=yes # Not in the search PATH,
11442 # but as the default
11443 # location of the library.
11444
11445 case $cc_basename in
11446 CC*)
11447 # FIXME: insert proper C++ library support
11448 ld_shlibs_CXX=no
11449 ;;
11450 aCC*)
11451 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'
11452 # Commands to make compiler produce verbose output that lists
11453 # what "hidden" libraries, object files and flags are used when
11454 # linking a shared library.
11455 #
11456 # There doesn't appear to be a way to prevent this compiler from
11457 # explicitly linking system object files so we need to strip them
11458 # from the output so that they don't get included in the library
11459 # dependencies.
11460 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'
11461 ;;
11462 *)
11463 if test "$GXX" = yes; then
11464 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'
11465 else
11466 # FIXME: insert proper C++ library support
11467 ld_shlibs_CXX=no
11468 fi
11469 ;;
11470 esac
11471 ;;
11472
11473 hpux10*|hpux11*)
11474 if test $with_gnu_ld = no; then
11475 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11476 hardcode_libdir_separator_CXX=:
11477
11478 case $host_cpu in
11479 hppa*64*|ia64*)
11480 ;;
11481 *)
11482 export_dynamic_flag_spec_CXX='${wl}-E'
11483 ;;
11484 esac
11485 fi
11486 case $host_cpu in
11487 hppa*64*|ia64*)
11488 hardcode_direct_CXX=no
11489 hardcode_shlibpath_var_CXX=no
11490 ;;
11491 *)
11492 hardcode_direct_CXX=yes
11493 hardcode_direct_absolute_CXX=yes
11494 hardcode_minus_L_CXX=yes # Not in the search PATH,
11495 # but as the default
11496 # location of the library.
11497 ;;
11498 esac
11499
11500 case $cc_basename in
11501 CC*)
11502 # FIXME: insert proper C++ library support
11503 ld_shlibs_CXX=no
11504 ;;
11505 aCC*)
11506 case $host_cpu in
11507 hppa*64*)
11508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11509 ;;
11510 ia64*)
11511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11512 ;;
11513 *)
11514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11515 ;;
11516 esac
11517 # Commands to make compiler produce verbose output that lists
11518 # what "hidden" libraries, object files and flags are used when
11519 # linking a shared library.
11520 #
11521 # There doesn't appear to be a way to prevent this compiler from
11522 # explicitly linking system object files so we need to strip them
11523 # from the output so that they don't get included in the library
11524 # dependencies.
11525 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'
11526 ;;
11527 *)
11528 if test "$GXX" = yes; then
11529 if test $with_gnu_ld = no; then
11530 case $host_cpu in
11531 hppa*64*)
11532 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11533 ;;
11534 ia64*)
11535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11536 ;;
11537 *)
11538 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'
11539 ;;
11540 esac
11541 fi
11542 else
11543 # FIXME: insert proper C++ library support
11544 ld_shlibs_CXX=no
11545 fi
11546 ;;
11547 esac
11548 ;;
11549
11550 interix[3-9]*)
11551 hardcode_direct_CXX=no
11552 hardcode_shlibpath_var_CXX=no
11553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11554 export_dynamic_flag_spec_CXX='${wl}-E'
11555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11556 # Instead, shared libraries are loaded at an image base (0x10000000 by
11557 # default) and relocated if they conflict, which is a slow very memory
11558 # consuming and fragmenting process. To avoid this, we pick a random,
11559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11561 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'
11562 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'
11563 ;;
11564 irix5* | irix6*)
11565 case $cc_basename in
11566 CC*)
11567 # SGI C++
11568 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'
11569
11570 # Archives containing C++ object files must be created using
11571 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11572 # necessary to make sure instantiated templates are included
11573 # in the archive.
11574 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11575 ;;
11576 *)
11577 if test "$GXX" = yes; then
11578 if test "$with_gnu_ld" = no; then
11579 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'
11580 else
11581 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'
11582 fi
11583 fi
11584 link_all_deplibs_CXX=yes
11585 ;;
11586 esac
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11588 hardcode_libdir_separator_CXX=:
11589 inherit_rpath_CXX=yes
11590 ;;
11591
11592 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11593 case $cc_basename in
11594 KCC*)
11595 # Kuck and Associates, Inc. (KAI) C++ Compiler
11596
11597 # KCC will only create a shared library if the output file
11598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11599 # to its proper name (with version) after linking.
11600 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'
11601 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'
11602 # Commands to make compiler produce verbose output that lists
11603 # what "hidden" libraries, object files and flags are used when
11604 # linking a shared library.
11605 #
11606 # There doesn't appear to be a way to prevent this compiler from
11607 # explicitly linking system object files so we need to strip them
11608 # from the output so that they don't get included in the library
11609 # dependencies.
11610 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'
11611
11612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11614
11615 # Archives containing C++ object files must be created using
11616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11617 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11618 ;;
11619 icpc* | ecpc* )
11620 # Intel C++
11621 with_gnu_ld=yes
11622 # version 8.0 and above of icpc choke on multiply defined symbols
11623 # if we add $predep_objects and $postdep_objects, however 7.1 and
11624 # earlier do not add the objects themselves.
11625 case `$CC -V 2>&1` in
11626 *"Version 7."*)
11627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11628 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'
11629 ;;
11630 *) # Version 8.0 or newer
11631 tmp_idyn=
11632 case $host_cpu in
11633 ia64*) tmp_idyn=' -i_dynamic';;
11634 esac
11635 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11636 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'
11637 ;;
11638 esac
11639 archive_cmds_need_lc_CXX=no
11640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11643 ;;
11644 pgCC* | pgcpp*)
11645 # Portland Group C++ compiler
11646 case `$CC -V` in
11647 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11648 prelink_cmds_CXX='tpldir=Template.dir~
11649 rm -rf $tpldir~
11650 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11651 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11652 old_archive_cmds_CXX='tpldir=Template.dir~
11653 rm -rf $tpldir~
11654 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11655 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11656 $RANLIB $oldlib'
11657 archive_cmds_CXX='tpldir=Template.dir~
11658 rm -rf $tpldir~
11659 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11660 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11661 archive_expsym_cmds_CXX='tpldir=Template.dir~
11662 rm -rf $tpldir~
11663 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11664 $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'
11665 ;;
11666 *) # Version 6 will use weak symbols
11667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11668 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'
11669 ;;
11670 esac
11671
11672 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11674 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'
11675 ;;
11676 cxx*)
11677 # Compaq C++
11678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11679 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'
11680
11681 runpath_var=LD_RUN_PATH
11682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11683 hardcode_libdir_separator_CXX=:
11684
11685 # Commands to make compiler produce verbose output that lists
11686 # what "hidden" libraries, object files and flags are used when
11687 # linking a shared library.
11688 #
11689 # There doesn't appear to be a way to prevent this compiler from
11690 # explicitly linking system object files so we need to strip them
11691 # from the output so that they don't get included in the library
11692 # dependencies.
11693 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'
11694 ;;
11695 xl*)
11696 # IBM XL 8.0 on PPC, with GNU ld
11697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11699 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11700 if test "x$supports_anon_versioning" = xyes; then
11701 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11703 echo "local: *; };" >> $output_objdir/$libname.ver~
11704 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11705 fi
11706 ;;
11707 *)
11708 case `$CC -V 2>&1 | sed 5q` in
11709 *Sun\ C*)
11710 # Sun C++ 5.9
11711 no_undefined_flag_CXX=' -zdefs'
11712 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713 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'
11714 hardcode_libdir_flag_spec_CXX='-R$libdir'
11715 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'
11716 compiler_needs_object_CXX=yes
11717
11718 # Not sure whether something based on
11719 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11720 # would be better.
11721 output_verbose_link_cmd='echo'
11722
11723 # Archives containing C++ object files must be created using
11724 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11725 # necessary to make sure instantiated templates are included
11726 # in the archive.
11727 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11728 ;;
11729 esac
11730 ;;
11731 esac
11732 ;;
11733
11734 lynxos*)
11735 # FIXME: insert proper C++ library support
11736 ld_shlibs_CXX=no
11737 ;;
11738
11739 m88k*)
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743
11744 mvs*)
11745 case $cc_basename in
11746 cxx*)
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 ;;
11750 *)
11751 # FIXME: insert proper C++ library support
11752 ld_shlibs_CXX=no
11753 ;;
11754 esac
11755 ;;
11756
11757 netbsd*)
11758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11759 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11760 wlarc=
11761 hardcode_libdir_flag_spec_CXX='-R$libdir'
11762 hardcode_direct_CXX=yes
11763 hardcode_shlibpath_var_CXX=no
11764 fi
11765 # Workaround some broken pre-1.5 toolchains
11766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11767 ;;
11768
11769 *nto* | *qnx*)
11770 ld_shlibs_CXX=yes
11771 ;;
11772
11773 openbsd2*)
11774 # C++ shared libraries are fairly broken
11775 ld_shlibs_CXX=no
11776 ;;
11777
11778 openbsd*)
11779 if test -f /usr/libexec/ld.so; then
11780 hardcode_direct_CXX=yes
11781 hardcode_shlibpath_var_CXX=no
11782 hardcode_direct_absolute_CXX=yes
11783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11786 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11787 export_dynamic_flag_spec_CXX='${wl}-E'
11788 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11789 fi
11790 output_verbose_link_cmd=echo
11791 else
11792 ld_shlibs_CXX=no
11793 fi
11794 ;;
11795
11796 osf3* | osf4* | osf5*)
11797 case $cc_basename in
11798 KCC*)
11799 # Kuck and Associates, Inc. (KAI) C++ Compiler
11800
11801 # KCC will only create a shared library if the output file
11802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11803 # to its proper name (with version) after linking.
11804 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'
11805
11806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11807 hardcode_libdir_separator_CXX=:
11808
11809 # Archives containing C++ object files must be created using
11810 # the KAI C++ compiler.
11811 case $host in
11812 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11813 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11814 esac
11815 ;;
11816 RCC*)
11817 # Rational C++ 2.4.1
11818 # FIXME: insert proper C++ library support
11819 ld_shlibs_CXX=no
11820 ;;
11821 cxx*)
11822 case $host in
11823 osf3*)
11824 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11825 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'
11826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11827 ;;
11828 *)
11829 allow_undefined_flag_CXX=' -expect_unresolved \*'
11830 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'
11831 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11832 echo "-hidden">> $lib.exp~
11833 $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~
11834 $RM $lib.exp'
11835 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11836 ;;
11837 esac
11838
11839 hardcode_libdir_separator_CXX=:
11840
11841 # Commands to make compiler produce verbose output that lists
11842 # what "hidden" libraries, object files and flags are used when
11843 # linking a shared library.
11844 #
11845 # There doesn't appear to be a way to prevent this compiler from
11846 # explicitly linking system object files so we need to strip them
11847 # from the output so that they don't get included in the library
11848 # dependencies.
11849 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'
11850 ;;
11851 *)
11852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11854 case $host in
11855 osf3*)
11856 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'
11857 ;;
11858 *)
11859 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'
11860 ;;
11861 esac
11862
11863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11864 hardcode_libdir_separator_CXX=:
11865
11866 # Commands to make compiler produce verbose output that lists
11867 # what "hidden" libraries, object files and flags are used when
11868 # linking a shared library.
11869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11870
11871 else
11872 # FIXME: insert proper C++ library support
11873 ld_shlibs_CXX=no
11874 fi
11875 ;;
11876 esac
11877 ;;
11878
11879 psos*)
11880 # FIXME: insert proper C++ library support
11881 ld_shlibs_CXX=no
11882 ;;
11883
11884 sunos4*)
11885 case $cc_basename in
11886 CC*)
11887 # Sun C++ 4.x
11888 # FIXME: insert proper C++ library support
11889 ld_shlibs_CXX=no
11890 ;;
11891 lcc*)
11892 # Lucid
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 *)
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11899 ;;
11900 esac
11901 ;;
11902
11903 solaris*)
11904 case $cc_basename in
11905 CC*)
11906 # Sun C++ 4.2, 5.x and Centerline C++
11907 archive_cmds_need_lc_CXX=yes
11908 no_undefined_flag_CXX=' -zdefs'
11909 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11911 $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'
11912
11913 hardcode_libdir_flag_spec_CXX='-R$libdir'
11914 hardcode_shlibpath_var_CXX=no
11915 case $host_os in
11916 solaris2.[0-5] | solaris2.[0-5].*) ;;
11917 *)
11918 # The compiler driver will combine and reorder linker options,
11919 # but understands `-z linker_flag'.
11920 # Supported since Solaris 2.6 (maybe 2.5.1?)
11921 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11922 ;;
11923 esac
11924 link_all_deplibs_CXX=yes
11925
11926 output_verbose_link_cmd='echo'
11927
11928 # Archives containing C++ object files must be created using
11929 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11930 # necessary to make sure instantiated templates are included
11931 # in the archive.
11932 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11933 ;;
11934 gcx*)
11935 # Green Hills C++ Compiler
11936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11937
11938 # The C++ compiler must be used to create the archive.
11939 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11940 ;;
11941 *)
11942 # GNU C++ compiler with Solaris linker
11943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11944 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11945 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11946 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11947 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11948 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11949
11950 # Commands to make compiler produce verbose output that lists
11951 # what "hidden" libraries, object files and flags are used when
11952 # linking a shared library.
11953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11954 else
11955 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11956 # platform.
11957 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11958 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11959 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11960
11961 # Commands to make compiler produce verbose output that lists
11962 # what "hidden" libraries, object files and flags are used when
11963 # linking a shared library.
11964 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11965 fi
11966
11967 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11968 case $host_os in
11969 solaris2.[0-5] | solaris2.[0-5].*) ;;
11970 *)
11971 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11972 ;;
11973 esac
11974 fi
11975 ;;
11976 esac
11977 ;;
11978
11979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11980 no_undefined_flag_CXX='${wl}-z,text'
11981 archive_cmds_need_lc_CXX=no
11982 hardcode_shlibpath_var_CXX=no
11983 runpath_var='LD_RUN_PATH'
11984
11985 case $cc_basename in
11986 CC*)
11987 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11989 ;;
11990 *)
11991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 ;;
11994 esac
11995 ;;
11996
11997 sysv5* | sco3.2v5* | sco5v6*)
11998 # Note: We can NOT use -z defs as we might desire, because we do not
11999 # link with -lc, and that would cause any symbols used from libc to
12000 # always be unresolved, which means just about no library would
12001 # ever link correctly. If we're not using GNU ld we use -z text
12002 # though, which does catch some bad symbols but isn't as heavy-handed
12003 # as -z defs.
12004 no_undefined_flag_CXX='${wl}-z,text'
12005 allow_undefined_flag_CXX='${wl}-z,nodefs'
12006 archive_cmds_need_lc_CXX=no
12007 hardcode_shlibpath_var_CXX=no
12008 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12009 hardcode_libdir_separator_CXX=':'
12010 link_all_deplibs_CXX=yes
12011 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12012 runpath_var='LD_RUN_PATH'
12013
12014 case $cc_basename in
12015 CC*)
12016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12018 ;;
12019 *)
12020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12022 ;;
12023 esac
12024 ;;
12025
12026 tandem*)
12027 case $cc_basename in
12028 NCC*)
12029 # NonStop-UX NCC 3.20
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12032 ;;
12033 *)
12034 # FIXME: insert proper C++ library support
12035 ld_shlibs_CXX=no
12036 ;;
12037 esac
12038 ;;
12039
12040 vxworks*)
12041 # FIXME: insert proper C++ library support
12042 ld_shlibs_CXX=no
12043 ;;
12044
12045 *)
12046 # FIXME: insert proper C++ library support
12047 ld_shlibs_CXX=no
12048 ;;
12049 esac
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12052 $as_echo "$ld_shlibs_CXX" >&6; }
12053 test "$ld_shlibs_CXX" = no && can_build_shared=no
12054
12055 GCC_CXX="$GXX"
12056 LD_CXX="$LD"
12057
12058 ## CAVEAT EMPTOR:
12059 ## There is no encapsulation within the following macros, do not change
12060 ## the running order or otherwise move them around unless you know exactly
12061 ## what you are doing...
12062 # Dependencies to place before and after the object being linked:
12063 predep_objects_CXX=
12064 postdep_objects_CXX=
12065 predeps_CXX=
12066 postdeps_CXX=
12067 compiler_lib_search_path_CXX=
12068
12069 cat > conftest.$ac_ext <<_LT_EOF
12070 class Foo
12071 {
12072 public:
12073 Foo (void) { a = 0; }
12074 private:
12075 int a;
12076 };
12077 _LT_EOF
12078
12079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12080 (eval $ac_compile) 2>&5
12081 ac_status=$?
12082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12083 test $ac_status = 0; }; then
12084 # Parse the compiler output and extract the necessary
12085 # objects, libraries and library flags.
12086
12087 # Sentinel used to keep track of whether or not we are before
12088 # the conftest object file.
12089 pre_test_object_deps_done=no
12090
12091 for p in `eval "$output_verbose_link_cmd"`; do
12092 case $p in
12093
12094 -L* | -R* | -l*)
12095 # Some compilers place space between "-{L,R}" and the path.
12096 # Remove the space.
12097 if test $p = "-L" ||
12098 test $p = "-R"; then
12099 prev=$p
12100 continue
12101 else
12102 prev=
12103 fi
12104
12105 if test "$pre_test_object_deps_done" = no; then
12106 case $p in
12107 -L* | -R*)
12108 # Internal compiler library paths should come after those
12109 # provided the user. The postdeps already come after the
12110 # user supplied libs so there is no need to process them.
12111 if test -z "$compiler_lib_search_path_CXX"; then
12112 compiler_lib_search_path_CXX="${prev}${p}"
12113 else
12114 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12115 fi
12116 ;;
12117 # The "-l" case would never come before the object being
12118 # linked, so don't bother handling this case.
12119 esac
12120 else
12121 if test -z "$postdeps_CXX"; then
12122 postdeps_CXX="${prev}${p}"
12123 else
12124 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12125 fi
12126 fi
12127 ;;
12128
12129 *.$objext)
12130 # This assumes that the test object file only shows up
12131 # once in the compiler output.
12132 if test "$p" = "conftest.$objext"; then
12133 pre_test_object_deps_done=yes
12134 continue
12135 fi
12136
12137 if test "$pre_test_object_deps_done" = no; then
12138 if test -z "$predep_objects_CXX"; then
12139 predep_objects_CXX="$p"
12140 else
12141 predep_objects_CXX="$predep_objects_CXX $p"
12142 fi
12143 else
12144 if test -z "$postdep_objects_CXX"; then
12145 postdep_objects_CXX="$p"
12146 else
12147 postdep_objects_CXX="$postdep_objects_CXX $p"
12148 fi
12149 fi
12150 ;;
12151
12152 *) ;; # Ignore the rest.
12153
12154 esac
12155 done
12156
12157 # Clean up.
12158 rm -f a.out a.exe
12159 else
12160 echo "libtool.m4: error: problem compiling CXX test program"
12161 fi
12162
12163 $RM -f confest.$objext
12164
12165 # PORTME: override above test on systems where it is broken
12166 case $host_os in
12167 interix[3-9]*)
12168 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12169 # hack all around it, let's just trust "g++" to DTRT.
12170 predep_objects_CXX=
12171 postdep_objects_CXX=
12172 postdeps_CXX=
12173 ;;
12174
12175 linux*)
12176 case `$CC -V 2>&1 | sed 5q` in
12177 *Sun\ C*)
12178 # Sun C++ 5.9
12179
12180 # The more standards-conforming stlport4 library is
12181 # incompatible with the Cstd library. Avoid specifying
12182 # it if it's in CXXFLAGS. Ignore libCrun as
12183 # -library=stlport4 depends on it.
12184 case " $CXX $CXXFLAGS " in
12185 *" -library=stlport4 "*)
12186 solaris_use_stlport4=yes
12187 ;;
12188 esac
12189
12190 if test "$solaris_use_stlport4" != yes; then
12191 postdeps_CXX='-library=Cstd -library=Crun'
12192 fi
12193 ;;
12194 esac
12195 ;;
12196
12197 solaris*)
12198 case $cc_basename in
12199 CC*)
12200 # The more standards-conforming stlport4 library is
12201 # incompatible with the Cstd library. Avoid specifying
12202 # it if it's in CXXFLAGS. Ignore libCrun as
12203 # -library=stlport4 depends on it.
12204 case " $CXX $CXXFLAGS " in
12205 *" -library=stlport4 "*)
12206 solaris_use_stlport4=yes
12207 ;;
12208 esac
12209
12210 # Adding this requires a known-good setup of shared libraries for
12211 # Sun compiler versions before 5.6, else PIC objects from an old
12212 # archive will be linked into the output, leading to subtle bugs.
12213 if test "$solaris_use_stlport4" != yes; then
12214 postdeps_CXX='-library=Cstd -library=Crun'
12215 fi
12216 ;;
12217 esac
12218 ;;
12219 esac
12220
12221
12222 case " $postdeps_CXX " in
12223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12224 esac
12225 compiler_lib_search_dirs_CXX=
12226 if test -n "${compiler_lib_search_path_CXX}"; then
12227 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12228 fi
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260 lt_prog_compiler_wl_CXX=
12261 lt_prog_compiler_pic_CXX=
12262 lt_prog_compiler_static_CXX=
12263
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12265 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12266
12267 # C++ specific cases for pic, static, wl, etc.
12268 if test "$GXX" = yes; then
12269 lt_prog_compiler_wl_CXX='-Wl,'
12270 lt_prog_compiler_static_CXX='-static'
12271
12272 case $host_os in
12273 aix*)
12274 # All AIX code is PIC.
12275 if test "$host_cpu" = ia64; then
12276 # AIX 5 now supports IA64 processor
12277 lt_prog_compiler_static_CXX='-Bstatic'
12278 fi
12279 ;;
12280
12281 amigaos*)
12282 case $host_cpu in
12283 powerpc)
12284 # see comment about AmigaOS4 .so support
12285 lt_prog_compiler_pic_CXX='-fPIC'
12286 ;;
12287 m68k)
12288 # FIXME: we need at least 68020 code to build shared libraries, but
12289 # adding the `-m68020' flag to GCC prevents building anything better,
12290 # like `-m68040'.
12291 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12292 ;;
12293 esac
12294 ;;
12295
12296 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12297 # PIC is the default for these OSes.
12298 ;;
12299 mingw* | cygwin* | os2* | pw32* | cegcc*)
12300 # This hack is so that the source file can tell whether it is being
12301 # built for inclusion in a dll (and should export symbols for example).
12302 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12303 # (--disable-auto-import) libraries
12304 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12305 ;;
12306 darwin* | rhapsody*)
12307 # PIC is the default on this platform
12308 # Common symbols not allowed in MH_DYLIB files
12309 lt_prog_compiler_pic_CXX='-fno-common'
12310 ;;
12311 *djgpp*)
12312 # DJGPP does not support shared libraries at all
12313 lt_prog_compiler_pic_CXX=
12314 ;;
12315 interix[3-9]*)
12316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12317 # Instead, we relocate shared libraries at runtime.
12318 ;;
12319 sysv4*MP*)
12320 if test -d /usr/nec; then
12321 lt_prog_compiler_pic_CXX=-Kconform_pic
12322 fi
12323 ;;
12324 hpux*)
12325 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12326 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12327 # sets the default TLS model and affects inlining.
12328 case $host_cpu in
12329 hppa*64*)
12330 ;;
12331 *)
12332 lt_prog_compiler_pic_CXX='-fPIC'
12333 ;;
12334 esac
12335 ;;
12336 *qnx* | *nto*)
12337 # QNX uses GNU C++, but need to define -shared option too, otherwise
12338 # it will coredump.
12339 lt_prog_compiler_pic_CXX='-fPIC -shared'
12340 ;;
12341 *)
12342 lt_prog_compiler_pic_CXX='-fPIC'
12343 ;;
12344 esac
12345 else
12346 case $host_os in
12347 aix[4-9]*)
12348 # All AIX code is PIC.
12349 if test "$host_cpu" = ia64; then
12350 # AIX 5 now supports IA64 processor
12351 lt_prog_compiler_static_CXX='-Bstatic'
12352 else
12353 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12354 fi
12355 ;;
12356 chorus*)
12357 case $cc_basename in
12358 cxch68*)
12359 # Green Hills C++ Compiler
12360 # _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"
12361 ;;
12362 esac
12363 ;;
12364 dgux*)
12365 case $cc_basename in
12366 ec++*)
12367 lt_prog_compiler_pic_CXX='-KPIC'
12368 ;;
12369 ghcx*)
12370 # Green Hills C++ Compiler
12371 lt_prog_compiler_pic_CXX='-pic'
12372 ;;
12373 *)
12374 ;;
12375 esac
12376 ;;
12377 freebsd* | dragonfly*)
12378 # FreeBSD uses GNU C++
12379 ;;
12380 hpux9* | hpux10* | hpux11*)
12381 case $cc_basename in
12382 CC*)
12383 lt_prog_compiler_wl_CXX='-Wl,'
12384 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12385 if test "$host_cpu" != ia64; then
12386 lt_prog_compiler_pic_CXX='+Z'
12387 fi
12388 ;;
12389 aCC*)
12390 lt_prog_compiler_wl_CXX='-Wl,'
12391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12392 case $host_cpu in
12393 hppa*64*|ia64*)
12394 # +Z the default
12395 ;;
12396 *)
12397 lt_prog_compiler_pic_CXX='+Z'
12398 ;;
12399 esac
12400 ;;
12401 *)
12402 ;;
12403 esac
12404 ;;
12405 interix*)
12406 # This is c89, which is MS Visual C++ (no shared libs)
12407 # Anyone wants to do a port?
12408 ;;
12409 irix5* | irix6* | nonstopux*)
12410 case $cc_basename in
12411 CC*)
12412 lt_prog_compiler_wl_CXX='-Wl,'
12413 lt_prog_compiler_static_CXX='-non_shared'
12414 # CC pic flag -KPIC is the default.
12415 ;;
12416 *)
12417 ;;
12418 esac
12419 ;;
12420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12421 case $cc_basename in
12422 KCC*)
12423 # KAI C++ Compiler
12424 lt_prog_compiler_wl_CXX='--backend -Wl,'
12425 lt_prog_compiler_pic_CXX='-fPIC'
12426 ;;
12427 ecpc* )
12428 # old Intel C++ for x86_64 which still supported -KPIC.
12429 lt_prog_compiler_wl_CXX='-Wl,'
12430 lt_prog_compiler_pic_CXX='-KPIC'
12431 lt_prog_compiler_static_CXX='-static'
12432 ;;
12433 icpc* )
12434 # Intel C++, used to be incompatible with GCC.
12435 # ICC 10 doesn't accept -KPIC any more.
12436 lt_prog_compiler_wl_CXX='-Wl,'
12437 lt_prog_compiler_pic_CXX='-fPIC'
12438 lt_prog_compiler_static_CXX='-static'
12439 ;;
12440 pgCC* | pgcpp*)
12441 # Portland Group C++ compiler
12442 lt_prog_compiler_wl_CXX='-Wl,'
12443 lt_prog_compiler_pic_CXX='-fpic'
12444 lt_prog_compiler_static_CXX='-Bstatic'
12445 ;;
12446 cxx*)
12447 # Compaq C++
12448 # Make sure the PIC flag is empty. It appears that all Alpha
12449 # Linux and Compaq Tru64 Unix objects are PIC.
12450 lt_prog_compiler_pic_CXX=
12451 lt_prog_compiler_static_CXX='-non_shared'
12452 ;;
12453 xlc* | xlC*)
12454 # IBM XL 8.0 on PPC
12455 lt_prog_compiler_wl_CXX='-Wl,'
12456 lt_prog_compiler_pic_CXX='-qpic'
12457 lt_prog_compiler_static_CXX='-qstaticlink'
12458 ;;
12459 *)
12460 case `$CC -V 2>&1 | sed 5q` in
12461 *Sun\ C*)
12462 # Sun C++ 5.9
12463 lt_prog_compiler_pic_CXX='-KPIC'
12464 lt_prog_compiler_static_CXX='-Bstatic'
12465 lt_prog_compiler_wl_CXX='-Qoption ld '
12466 ;;
12467 esac
12468 ;;
12469 esac
12470 ;;
12471 lynxos*)
12472 ;;
12473 m88k*)
12474 ;;
12475 mvs*)
12476 case $cc_basename in
12477 cxx*)
12478 lt_prog_compiler_pic_CXX='-W c,exportall'
12479 ;;
12480 *)
12481 ;;
12482 esac
12483 ;;
12484 netbsd* | netbsdelf*-gnu)
12485 ;;
12486 *qnx* | *nto*)
12487 # QNX uses GNU C++, but need to define -shared option too, otherwise
12488 # it will coredump.
12489 lt_prog_compiler_pic_CXX='-fPIC -shared'
12490 ;;
12491 osf3* | osf4* | osf5*)
12492 case $cc_basename in
12493 KCC*)
12494 lt_prog_compiler_wl_CXX='--backend -Wl,'
12495 ;;
12496 RCC*)
12497 # Rational C++ 2.4.1
12498 lt_prog_compiler_pic_CXX='-pic'
12499 ;;
12500 cxx*)
12501 # Digital/Compaq C++
12502 lt_prog_compiler_wl_CXX='-Wl,'
12503 # Make sure the PIC flag is empty. It appears that all Alpha
12504 # Linux and Compaq Tru64 Unix objects are PIC.
12505 lt_prog_compiler_pic_CXX=
12506 lt_prog_compiler_static_CXX='-non_shared'
12507 ;;
12508 *)
12509 ;;
12510 esac
12511 ;;
12512 psos*)
12513 ;;
12514 solaris*)
12515 case $cc_basename in
12516 CC*)
12517 # Sun C++ 4.2, 5.x and Centerline C++
12518 lt_prog_compiler_pic_CXX='-KPIC'
12519 lt_prog_compiler_static_CXX='-Bstatic'
12520 lt_prog_compiler_wl_CXX='-Qoption ld '
12521 ;;
12522 gcx*)
12523 # Green Hills C++ Compiler
12524 lt_prog_compiler_pic_CXX='-PIC'
12525 ;;
12526 *)
12527 ;;
12528 esac
12529 ;;
12530 sunos4*)
12531 case $cc_basename in
12532 CC*)
12533 # Sun C++ 4.x
12534 lt_prog_compiler_pic_CXX='-pic'
12535 lt_prog_compiler_static_CXX='-Bstatic'
12536 ;;
12537 lcc*)
12538 # Lucid
12539 lt_prog_compiler_pic_CXX='-pic'
12540 ;;
12541 *)
12542 ;;
12543 esac
12544 ;;
12545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12546 case $cc_basename in
12547 CC*)
12548 lt_prog_compiler_wl_CXX='-Wl,'
12549 lt_prog_compiler_pic_CXX='-KPIC'
12550 lt_prog_compiler_static_CXX='-Bstatic'
12551 ;;
12552 esac
12553 ;;
12554 tandem*)
12555 case $cc_basename in
12556 NCC*)
12557 # NonStop-UX NCC 3.20
12558 lt_prog_compiler_pic_CXX='-KPIC'
12559 ;;
12560 *)
12561 ;;
12562 esac
12563 ;;
12564 vxworks*)
12565 ;;
12566 *)
12567 lt_prog_compiler_can_build_shared_CXX=no
12568 ;;
12569 esac
12570 fi
12571
12572 case $host_os in
12573 # For platforms which do not support PIC, -DPIC is meaningless:
12574 *djgpp*)
12575 lt_prog_compiler_pic_CXX=
12576 ;;
12577 *)
12578 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12579 ;;
12580 esac
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12582 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12583
12584
12585
12586 #
12587 # Check to make sure the PIC flag actually works.
12588 #
12589 if test -n "$lt_prog_compiler_pic_CXX"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12591 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12592 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 lt_cv_prog_compiler_pic_works_CXX=no
12596 ac_outfile=conftest.$ac_objext
12597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12599 # Insert the option either (1) after the last *FLAGS variable, or
12600 # (2) before a word containing "conftest.", or (3) at the end.
12601 # Note that $ac_compile itself does not contain backslashes and begins
12602 # with a dollar sign (not a hyphen), so the echo should work correctly.
12603 # The option is referenced via a variable to avoid confusing sed.
12604 lt_compile=`echo "$ac_compile" | $SED \
12605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12607 -e 's:$: $lt_compiler_flag:'`
12608 (eval echo "\"\$as_me:12608: $lt_compile\"" >&5)
12609 (eval "$lt_compile" 2>conftest.err)
12610 ac_status=$?
12611 cat conftest.err >&5
12612 echo "$as_me:12612: \$? = $ac_status" >&5
12613 if (exit $ac_status) && test -s "$ac_outfile"; then
12614 # The compiler can only warn and ignore the option if not recognized
12615 # So say no if there are warnings other than the usual output.
12616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12619 lt_cv_prog_compiler_pic_works_CXX=yes
12620 fi
12621 fi
12622 $RM conftest*
12623
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12626 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12627
12628 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12629 case $lt_prog_compiler_pic_CXX in
12630 "" | " "*) ;;
12631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12632 esac
12633 else
12634 lt_prog_compiler_pic_CXX=
12635 lt_prog_compiler_can_build_shared_CXX=no
12636 fi
12637
12638 fi
12639
12640
12641
12642 #
12643 # Check to make sure the static flag actually works.
12644 #
12645 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12647 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12648 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 lt_cv_prog_compiler_static_works_CXX=no
12652 save_LDFLAGS="$LDFLAGS"
12653 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12656 # The linker can only warn and ignore the option if not recognized
12657 # So say no if there are warnings
12658 if test -s conftest.err; then
12659 # Append any errors to the config.log.
12660 cat conftest.err 1>&5
12661 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12663 if diff conftest.exp conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler_static_works_CXX=yes
12665 fi
12666 else
12667 lt_cv_prog_compiler_static_works_CXX=yes
12668 fi
12669 fi
12670 $RM -r conftest*
12671 LDFLAGS="$save_LDFLAGS"
12672
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12675 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12676
12677 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12678 :
12679 else
12680 lt_prog_compiler_static_CXX=
12681 fi
12682
12683
12684
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12688 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 lt_cv_prog_compiler_c_o_CXX=no
12692 $RM -r conftest 2>/dev/null
12693 mkdir conftest
12694 cd conftest
12695 mkdir out
12696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12697
12698 lt_compiler_flag="-o out/conftest2.$ac_objext"
12699 # Insert the option either (1) after the last *FLAGS variable, or
12700 # (2) before a word containing "conftest.", or (3) at the end.
12701 # Note that $ac_compile itself does not contain backslashes and begins
12702 # with a dollar sign (not a hyphen), so the echo should work correctly.
12703 lt_compile=`echo "$ac_compile" | $SED \
12704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706 -e 's:$: $lt_compiler_flag:'`
12707 (eval echo "\"\$as_me:12707: $lt_compile\"" >&5)
12708 (eval "$lt_compile" 2>out/conftest.err)
12709 ac_status=$?
12710 cat out/conftest.err >&5
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12713 then
12714 # The compiler can only warn and ignore the option if not recognized
12715 # So say no if there are warnings
12716 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12719 lt_cv_prog_compiler_c_o_CXX=yes
12720 fi
12721 fi
12722 chmod u+w . 2>&5
12723 $RM conftest*
12724 # SGI C++ compiler will create directory out/ii_files/ for
12725 # template instantiation
12726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12727 $RM out/* && rmdir out
12728 cd ..
12729 $RM -r conftest
12730 $RM conftest*
12731
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12734 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12735
12736
12737
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12740 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 lt_cv_prog_compiler_c_o_CXX=no
12744 $RM -r conftest 2>/dev/null
12745 mkdir conftest
12746 cd conftest
12747 mkdir out
12748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12749
12750 lt_compiler_flag="-o out/conftest2.$ac_objext"
12751 # Insert the option either (1) after the last *FLAGS variable, or
12752 # (2) before a word containing "conftest.", or (3) at the end.
12753 # Note that $ac_compile itself does not contain backslashes and begins
12754 # with a dollar sign (not a hyphen), so the echo should work correctly.
12755 lt_compile=`echo "$ac_compile" | $SED \
12756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12758 -e 's:$: $lt_compiler_flag:'`
12759 (eval echo "\"\$as_me:12759: $lt_compile\"" >&5)
12760 (eval "$lt_compile" 2>out/conftest.err)
12761 ac_status=$?
12762 cat out/conftest.err >&5
12763 echo "$as_me:12763: \$? = $ac_status" >&5
12764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12765 then
12766 # The compiler can only warn and ignore the option if not recognized
12767 # So say no if there are warnings
12768 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12771 lt_cv_prog_compiler_c_o_CXX=yes
12772 fi
12773 fi
12774 chmod u+w . 2>&5
12775 $RM conftest*
12776 # SGI C++ compiler will create directory out/ii_files/ for
12777 # template instantiation
12778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12779 $RM out/* && rmdir out
12780 cd ..
12781 $RM -r conftest
12782 $RM conftest*
12783
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12786 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12787
12788
12789
12790
12791 hard_links="nottested"
12792 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12793 # do not overwrite the value of need_locks provided by the user
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12795 $as_echo_n "checking if we can lock with hard links... " >&6; }
12796 hard_links=yes
12797 $RM conftest*
12798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12799 touch conftest.a
12800 ln conftest.a conftest.b 2>&5 || hard_links=no
12801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12803 $as_echo "$hard_links" >&6; }
12804 if test "$hard_links" = no; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12806 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12807 need_locks=warn
12808 fi
12809 else
12810 need_locks=no
12811 fi
12812
12813
12814
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12817
12818 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12819 case $host_os in
12820 aix[4-9]*)
12821 # If we're using GNU nm, then we don't want the "-C" option.
12822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12824 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'
12825 else
12826 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'
12827 fi
12828 ;;
12829 pw32*)
12830 export_symbols_cmds_CXX="$ltdll_cmds"
12831 ;;
12832 cygwin* | mingw* | cegcc*)
12833 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'
12834 ;;
12835 linux* | k*bsd*-gnu)
12836 link_all_deplibs_CXX=no
12837 ;;
12838 *)
12839 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12840 ;;
12841 esac
12842 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12845 $as_echo "$ld_shlibs_CXX" >&6; }
12846 test "$ld_shlibs_CXX" = no && can_build_shared=no
12847
12848 with_gnu_ld_CXX=$with_gnu_ld
12849
12850
12851
12852
12853
12854
12855 #
12856 # Do we need to explicitly link libc?
12857 #
12858 case "x$archive_cmds_need_lc_CXX" in
12859 x|xyes)
12860 # Assume -lc should be added
12861 archive_cmds_need_lc_CXX=yes
12862
12863 if test "$enable_shared" = yes && test "$GCC" = yes; then
12864 case $archive_cmds_CXX in
12865 *'~'*)
12866 # FIXME: we may have to deal with multi-command sequences.
12867 ;;
12868 '$CC '*)
12869 # Test whether the compiler implicitly links with -lc since on some
12870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12871 # to ld, don't add -lc before -lgcc.
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12874 $RM conftest*
12875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12876
12877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12878 (eval $ac_compile) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; } 2>conftest.err; then
12882 soname=conftest
12883 lib=conftest
12884 libobjs=conftest.$ac_objext
12885 deplibs=
12886 wl=$lt_prog_compiler_wl_CXX
12887 pic_flag=$lt_prog_compiler_pic_CXX
12888 compiler_flags=-v
12889 linker_flags=-v
12890 verstring=
12891 output_objdir=.
12892 libname=conftest
12893 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12894 allow_undefined_flag_CXX=
12895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12896 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899 test $ac_status = 0; }
12900 then
12901 archive_cmds_need_lc_CXX=no
12902 else
12903 archive_cmds_need_lc_CXX=yes
12904 fi
12905 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12906 else
12907 cat conftest.err 1>&5
12908 fi
12909 $RM conftest*
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12911 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12912 ;;
12913 esac
12914 fi
12915 ;;
12916 esac
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12983
12984 library_names_spec=
12985 libname_spec='lib$name'
12986 soname_spec=
12987 shrext_cmds=".so"
12988 postinstall_cmds=
12989 postuninstall_cmds=
12990 finish_cmds=
12991 finish_eval=
12992 shlibpath_var=
12993 shlibpath_overrides_runpath=unknown
12994 version_type=none
12995 dynamic_linker="$host_os ld.so"
12996 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12997 need_lib_prefix=unknown
12998 hardcode_into_libs=no
12999
13000 # when you set need_version to no, make sure it does not cause -set_version
13001 # flags to be left without arguments
13002 need_version=unknown
13003
13004 case $host_os in
13005 aix3*)
13006 version_type=linux
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13008 shlibpath_var=LIBPATH
13009
13010 # AIX 3 has no versioning support, so we append a major version to the name.
13011 soname_spec='${libname}${release}${shared_ext}$major'
13012 ;;
13013
13014 aix[4-9]*)
13015 version_type=linux
13016 need_lib_prefix=no
13017 need_version=no
13018 hardcode_into_libs=yes
13019 if test "$host_cpu" = ia64; then
13020 # AIX 5 supports IA64
13021 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 else
13024 # With GCC up to 2.95.x, collect2 would create an import file
13025 # for dependence libraries. The import file would start with
13026 # the line `#! .'. This would cause the generated library to
13027 # depend on `.', always an invalid library. This was fixed in
13028 # development snapshots of GCC prior to 3.0.
13029 case $host_os in
13030 aix4 | aix4.[01] | aix4.[01].*)
13031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13032 echo ' yes '
13033 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13034 :
13035 else
13036 can_build_shared=no
13037 fi
13038 ;;
13039 esac
13040 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13041 # soname into executable. Probably we can add versioning support to
13042 # collect2, so additional links can be useful in future.
13043 if test "$aix_use_runtimelinking" = yes; then
13044 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13045 # instead of lib<name>.a to let people know that these are not
13046 # typical AIX shared libraries.
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 else
13049 # We preserve .a as extension for shared libraries through AIX4.2
13050 # and later when we are not doing run time linking.
13051 library_names_spec='${libname}${release}.a $libname.a'
13052 soname_spec='${libname}${release}${shared_ext}$major'
13053 fi
13054 shlibpath_var=LIBPATH
13055 fi
13056 ;;
13057
13058 amigaos*)
13059 case $host_cpu in
13060 powerpc)
13061 # Since July 2007 AmigaOS4 officially supports .so libraries.
13062 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064 ;;
13065 m68k)
13066 library_names_spec='$libname.ixlibrary $libname.a'
13067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13068 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'
13069 ;;
13070 esac
13071 ;;
13072
13073 beos*)
13074 library_names_spec='${libname}${shared_ext}'
13075 dynamic_linker="$host_os ld.so"
13076 shlibpath_var=LIBRARY_PATH
13077 ;;
13078
13079 bsdi[45]*)
13080 version_type=linux
13081 need_version=no
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083 soname_spec='${libname}${release}${shared_ext}$major'
13084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13088 # the default ld.so.conf also contains /usr/contrib/lib and
13089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13090 # libtool to hard-code these into programs
13091 ;;
13092
13093 cygwin* | mingw* | pw32* | cegcc*)
13094 version_type=windows
13095 shrext_cmds=".dll"
13096 need_version=no
13097 need_lib_prefix=no
13098
13099 case $GCC,$host_os in
13100 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13101 library_names_spec='$libname.dll.a'
13102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13103 postinstall_cmds='base_file=`basename \${file}`~
13104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13105 dldir=$destdir/`dirname \$dlpath`~
13106 test -d \$dldir || mkdir -p \$dldir~
13107 $install_prog $dir/$dlname \$dldir/$dlname~
13108 chmod a+x \$dldir/$dlname~
13109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13111 fi'
13112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13113 dlpath=$dir/\$dldll~
13114 $RM \$dlpath'
13115 shlibpath_overrides_runpath=yes
13116
13117 case $host_os in
13118 cygwin*)
13119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13121 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13122 ;;
13123 mingw* | cegcc*)
13124 # MinGW DLLs use traditional 'lib' prefix
13125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13126 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13127 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13128 # It is most probably a Windows format PATH printed by
13129 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13130 # path with ; separators, and with drive letters. We can handle the
13131 # drive letters (cygwin fileutils understands them), so leave them,
13132 # especially as we might pass files found there to a mingw objdump,
13133 # which wouldn't understand a cygwinified path. Ahh.
13134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13135 else
13136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13137 fi
13138 ;;
13139 pw32*)
13140 # pw32 DLLs use 'pw' prefix rather than 'lib'
13141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13142 ;;
13143 esac
13144 ;;
13145
13146 *)
13147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13148 ;;
13149 esac
13150 dynamic_linker='Win32 ld.exe'
13151 # FIXME: first we should search . and the directory the executable is in
13152 shlibpath_var=PATH
13153 ;;
13154
13155 darwin* | rhapsody*)
13156 dynamic_linker="$host_os dyld"
13157 version_type=darwin
13158 need_lib_prefix=no
13159 need_version=no
13160 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13161 soname_spec='${libname}${release}${major}$shared_ext'
13162 shlibpath_overrides_runpath=yes
13163 shlibpath_var=DYLD_LIBRARY_PATH
13164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13165
13166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13167 ;;
13168
13169 dgux*)
13170 version_type=linux
13171 need_lib_prefix=no
13172 need_version=no
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13174 soname_spec='${libname}${release}${shared_ext}$major'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 ;;
13177
13178 freebsd1*)
13179 dynamic_linker=no
13180 ;;
13181
13182 freebsd* | dragonfly*)
13183 # DragonFly does not have aout. When/if they implement a new
13184 # versioning mechanism, adjust this.
13185 if test -x /usr/bin/objformat; then
13186 objformat=`/usr/bin/objformat`
13187 else
13188 case $host_os in
13189 freebsd[123]*) objformat=aout ;;
13190 *) objformat=elf ;;
13191 esac
13192 fi
13193 version_type=freebsd-$objformat
13194 case $version_type in
13195 freebsd-elf*)
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13197 need_version=no
13198 need_lib_prefix=no
13199 ;;
13200 freebsd-*)
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13202 need_version=yes
13203 ;;
13204 esac
13205 shlibpath_var=LD_LIBRARY_PATH
13206 case $host_os in
13207 freebsd2*)
13208 shlibpath_overrides_runpath=yes
13209 ;;
13210 freebsd3.[01]* | freebsdelf3.[01]*)
13211 shlibpath_overrides_runpath=yes
13212 hardcode_into_libs=yes
13213 ;;
13214 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13215 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13216 shlibpath_overrides_runpath=no
13217 hardcode_into_libs=yes
13218 ;;
13219 *) # from 4.6 on, and DragonFly
13220 shlibpath_overrides_runpath=yes
13221 hardcode_into_libs=yes
13222 ;;
13223 esac
13224 ;;
13225
13226 gnu*)
13227 version_type=linux
13228 need_lib_prefix=no
13229 need_version=no
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13231 soname_spec='${libname}${release}${shared_ext}$major'
13232 shlibpath_var=LD_LIBRARY_PATH
13233 hardcode_into_libs=yes
13234 ;;
13235
13236 hpux9* | hpux10* | hpux11*)
13237 # Give a soname corresponding to the major version so that dld.sl refuses to
13238 # link against other versions.
13239 version_type=sunos
13240 need_lib_prefix=no
13241 need_version=no
13242 case $host_cpu in
13243 ia64*)
13244 shrext_cmds='.so'
13245 hardcode_into_libs=yes
13246 dynamic_linker="$host_os dld.so"
13247 shlibpath_var=LD_LIBRARY_PATH
13248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 if test "X$HPUX_IA64_MODE" = X32; then
13252 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13253 else
13254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13255 fi
13256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13257 ;;
13258 hppa*64*)
13259 shrext_cmds='.sl'
13260 hardcode_into_libs=yes
13261 dynamic_linker="$host_os dld.sl"
13262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265 soname_spec='${libname}${release}${shared_ext}$major'
13266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13268 ;;
13269 *)
13270 shrext_cmds='.sl'
13271 dynamic_linker="$host_os dld.sl"
13272 shlibpath_var=SHLIB_PATH
13273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275 soname_spec='${libname}${release}${shared_ext}$major'
13276 ;;
13277 esac
13278 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13279 postinstall_cmds='chmod 555 $lib'
13280 ;;
13281
13282 interix[3-9]*)
13283 version_type=linux
13284 need_lib_prefix=no
13285 need_version=no
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath=no
13291 hardcode_into_libs=yes
13292 ;;
13293
13294 irix5* | irix6* | nonstopux*)
13295 case $host_os in
13296 nonstopux*) version_type=nonstopux ;;
13297 *)
13298 if test "$lt_cv_prog_gnu_ld" = yes; then
13299 version_type=linux
13300 else
13301 version_type=irix
13302 fi ;;
13303 esac
13304 need_lib_prefix=no
13305 need_version=no
13306 soname_spec='${libname}${release}${shared_ext}$major'
13307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13308 case $host_os in
13309 irix5* | nonstopux*)
13310 libsuff= shlibsuff=
13311 ;;
13312 *)
13313 case $LD in # libtool.m4 will add one of these switches to LD
13314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13315 libsuff= shlibsuff= libmagic=32-bit;;
13316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13317 libsuff=32 shlibsuff=N32 libmagic=N32;;
13318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13320 *) libsuff= shlibsuff= libmagic=never-match;;
13321 esac
13322 ;;
13323 esac
13324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13325 shlibpath_overrides_runpath=no
13326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13328 hardcode_into_libs=yes
13329 ;;
13330
13331 # No shared lib support for Linux oldld, aout, or coff.
13332 linux*oldld* | linux*aout* | linux*coff*)
13333 dynamic_linker=no
13334 ;;
13335
13336 # This must be Linux ELF.
13337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13338 version_type=linux
13339 need_lib_prefix=no
13340 need_version=no
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 shlibpath_overrides_runpath=no
13346 # Some binutils ld are patched to set DT_RUNPATH
13347 save_LDFLAGS=$LDFLAGS
13348 save_libdir=$libdir
13349 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13350 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353
13354 int
13355 main ()
13356 {
13357
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_cxx_try_link "$LINENO"; then :
13363 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13364 shlibpath_overrides_runpath=yes
13365 fi
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13369 LDFLAGS=$save_LDFLAGS
13370 libdir=$save_libdir
13371
13372 # This implies no fast_install, which is unacceptable.
13373 # Some rework will be needed to allow for fast_install
13374 # before this can be enabled.
13375 hardcode_into_libs=yes
13376
13377 # Append ld.so.conf contents to the search path
13378 if test -f /etc/ld.so.conf; then
13379 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' ' '`
13380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13381 fi
13382
13383 # We used to test for /lib/ld.so.1 and disable shared libraries on
13384 # powerpc, because MkLinux only supported shared libraries with the
13385 # GNU dynamic linker. Since this was broken with cross compilers,
13386 # most powerpc-linux boxes support dynamic linking these days and
13387 # people can always --disable-shared, the test was removed, and we
13388 # assume the GNU/Linux dynamic linker is in use.
13389 dynamic_linker='GNU/Linux ld.so'
13390 ;;
13391
13392 netbsdelf*-gnu)
13393 version_type=linux
13394 need_lib_prefix=no
13395 need_version=no
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 hardcode_into_libs=yes
13401 dynamic_linker='NetBSD ld.elf_so'
13402 ;;
13403
13404 netbsd*)
13405 version_type=sunos
13406 need_lib_prefix=no
13407 need_version=no
13408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13411 dynamic_linker='NetBSD (a.out) ld.so'
13412 else
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 dynamic_linker='NetBSD ld.elf_so'
13416 fi
13417 shlibpath_var=LD_LIBRARY_PATH
13418 shlibpath_overrides_runpath=yes
13419 hardcode_into_libs=yes
13420 ;;
13421
13422 newsos6)
13423 version_type=linux
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 shlibpath_overrides_runpath=yes
13427 ;;
13428
13429 *nto* | *qnx*)
13430 version_type=qnx
13431 need_lib_prefix=no
13432 need_version=no
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434 soname_spec='${libname}${release}${shared_ext}$major'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 shlibpath_overrides_runpath=no
13437 hardcode_into_libs=yes
13438 dynamic_linker='ldqnx.so'
13439 ;;
13440
13441 openbsd*)
13442 version_type=sunos
13443 sys_lib_dlsearch_path_spec="/usr/lib"
13444 need_lib_prefix=no
13445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13446 case $host_os in
13447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13448 *) need_version=no ;;
13449 esac
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13454 case $host_os in
13455 openbsd2.[89] | openbsd2.[89].*)
13456 shlibpath_overrides_runpath=no
13457 ;;
13458 *)
13459 shlibpath_overrides_runpath=yes
13460 ;;
13461 esac
13462 else
13463 shlibpath_overrides_runpath=yes
13464 fi
13465 ;;
13466
13467 os2*)
13468 libname_spec='$name'
13469 shrext_cmds=".dll"
13470 need_lib_prefix=no
13471 library_names_spec='$libname${shared_ext} $libname.a'
13472 dynamic_linker='OS/2 ld.exe'
13473 shlibpath_var=LIBPATH
13474 ;;
13475
13476 osf3* | osf4* | osf5*)
13477 version_type=osf
13478 need_lib_prefix=no
13479 need_version=no
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13485 ;;
13486
13487 rdos*)
13488 dynamic_linker=no
13489 ;;
13490
13491 solaris*)
13492 version_type=linux
13493 need_lib_prefix=no
13494 need_version=no
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 shlibpath_overrides_runpath=yes
13499 hardcode_into_libs=yes
13500 # ldd complains unless libraries are executable
13501 postinstall_cmds='chmod +x $lib'
13502 ;;
13503
13504 sunos4*)
13505 version_type=sunos
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 shlibpath_overrides_runpath=yes
13510 if test "$with_gnu_ld" = yes; then
13511 need_lib_prefix=no
13512 fi
13513 need_version=yes
13514 ;;
13515
13516 sysv4 | sysv4.3*)
13517 version_type=linux
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 shlibpath_var=LD_LIBRARY_PATH
13521 case $host_vendor in
13522 sni)
13523 shlibpath_overrides_runpath=no
13524 need_lib_prefix=no
13525 runpath_var=LD_RUN_PATH
13526 ;;
13527 siemens)
13528 need_lib_prefix=no
13529 ;;
13530 motorola)
13531 need_lib_prefix=no
13532 need_version=no
13533 shlibpath_overrides_runpath=no
13534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13535 ;;
13536 esac
13537 ;;
13538
13539 sysv4*MP*)
13540 if test -d /usr/nec ;then
13541 version_type=linux
13542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13543 soname_spec='$libname${shared_ext}.$major'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 fi
13546 ;;
13547
13548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13549 version_type=freebsd-elf
13550 need_lib_prefix=no
13551 need_version=no
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13553 soname_spec='${libname}${release}${shared_ext}$major'
13554 shlibpath_var=LD_LIBRARY_PATH
13555 shlibpath_overrides_runpath=yes
13556 hardcode_into_libs=yes
13557 if test "$with_gnu_ld" = yes; then
13558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13559 else
13560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13561 case $host_os in
13562 sco3.2v5*)
13563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13564 ;;
13565 esac
13566 fi
13567 sys_lib_dlsearch_path_spec='/usr/lib'
13568 ;;
13569
13570 tpf*)
13571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13572 version_type=linux
13573 need_lib_prefix=no
13574 need_version=no
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576 shlibpath_var=LD_LIBRARY_PATH
13577 shlibpath_overrides_runpath=no
13578 hardcode_into_libs=yes
13579 ;;
13580
13581 uts4*)
13582 version_type=linux
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 shlibpath_var=LD_LIBRARY_PATH
13586 ;;
13587
13588 *)
13589 dynamic_linker=no
13590 ;;
13591 esac
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13593 $as_echo "$dynamic_linker" >&6; }
13594 test "$dynamic_linker" = no && can_build_shared=no
13595
13596 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13597 if test "$GCC" = yes; then
13598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13599 fi
13600
13601 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13602 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13603 fi
13604 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13606 fi
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13644 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13645 hardcode_action_CXX=
13646 if test -n "$hardcode_libdir_flag_spec_CXX" ||
13647 test -n "$runpath_var_CXX" ||
13648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13649
13650 # We can hardcode non-existent directories.
13651 if test "$hardcode_direct_CXX" != no &&
13652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13653 # have to relink, otherwise we might link with an installed library
13654 # when we should be linking with a yet-to-be-installed one
13655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13656 test "$hardcode_minus_L_CXX" != no; then
13657 # Linking always hardcodes the temporary library directory.
13658 hardcode_action_CXX=relink
13659 else
13660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13661 hardcode_action_CXX=immediate
13662 fi
13663 else
13664 # We cannot hardcode anything, or else we can only hardcode existing
13665 # directories.
13666 hardcode_action_CXX=unsupported
13667 fi
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13669 $as_echo "$hardcode_action_CXX" >&6; }
13670
13671 if test "$hardcode_action_CXX" = relink ||
13672 test "$inherit_rpath_CXX" = yes; then
13673 # Fast installation is not supported
13674 enable_fast_install=no
13675 elif test "$shlibpath_overrides_runpath" = yes ||
13676 test "$enable_shared" = no; then
13677 # Fast installation is not necessary
13678 enable_fast_install=needless
13679 fi
13680
13681
13682
13683
13684
13685
13686
13687 fi # test -n "$compiler"
13688
13689 CC=$lt_save_CC
13690 LDCXX=$LD
13691 LD=$lt_save_LD
13692 GCC=$lt_save_GCC
13693 with_gnu_ld=$lt_save_with_gnu_ld
13694 lt_cv_path_LDCXX=$lt_cv_path_LD
13695 lt_cv_path_LD=$lt_save_path_LD
13696 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13697 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13698 fi # test "$_lt_caught_CXX_error" != yes
13699
13700 ac_ext=c
13701 ac_cpp='$CPP $CPPFLAGS'
13702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13705
13706
13707 ac_ext=mm
13708 ac_cpp='$OBJCXXCPP $CPPFLAGS'
13709 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
13712 if test -n "$ac_tool_prefix"; then
13713 for ac_prog in g++ objc++ objcxx c++ CXX
13714 do
13715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$OBJCXX"; then
13723 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13732 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736 done
13737 done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 OBJCXX=$ac_cv_prog_OBJCXX
13743 if test -n "$OBJCXX"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
13745 $as_echo "$OBJCXX" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752 test -n "$OBJCXX" && break
13753 done
13754 fi
13755 if test -z "$OBJCXX"; then
13756 ac_ct_OBJCXX=$OBJCXX
13757 for ac_prog in g++ objc++ objcxx c++ CXX
13758 do
13759 # Extract the first word of "$ac_prog", so it can be a program name with args.
13760 set dummy $ac_prog; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 if test -n "$ac_ct_OBJCXX"; then
13767 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
13768 else
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13771 do
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13776 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 break 2
13779 fi
13780 done
13781 done
13782 IFS=$as_save_IFS
13783
13784 fi
13785 fi
13786 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
13787 if test -n "$ac_ct_OBJCXX"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
13789 $as_echo "$ac_ct_OBJCXX" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 fi
13794
13795
13796 test -n "$ac_ct_OBJCXX" && break
13797 done
13798
13799 if test "x$ac_ct_OBJCXX" = x; then
13800 OBJCXX="g++"
13801 else
13802 case $cross_compiling:$ac_tool_warned in
13803 yes:)
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13806 ac_tool_warned=yes ;;
13807 esac
13808 OBJCXX=$ac_ct_OBJCXX
13809 fi
13810 fi
13811
13812 # Provide some information about the compiler.
13813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
13814 set X $ac_compile
13815 ac_compiler=$2
13816 for ac_option in --version -v -V -qversion; do
13817 { { ac_try="$ac_compiler $ac_option >&5"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13823 $as_echo "$ac_try_echo"; } >&5
13824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13825 ac_status=$?
13826 if test -s conftest.err; then
13827 sed '10a\
13828 ... rest of stderr output deleted ...
13829 10q' conftest.err >conftest.er1
13830 cat conftest.er1 >&5
13831 fi
13832 rm -f conftest.er1 conftest.err
13833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13834 test $ac_status = 0; }
13835 done
13836
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
13838 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
13839 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844
13845 int
13846 main ()
13847 {
13848 #ifndef __GNUC__
13849 choke me
13850 #endif
13851
13852 ;
13853 return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_objcxx_try_compile "$LINENO"; then :
13857 ac_compiler_gnu=yes
13858 else
13859 ac_compiler_gnu=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
13863
13864 fi
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
13866 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
13867 if test $ac_compiler_gnu = yes; then
13868 GOBJCXX=yes
13869 else
13870 GOBJCXX=
13871 fi
13872 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
13873 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
13875 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
13876 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
13880 ac_objcxx_werror_flag=yes
13881 ac_cv_prog_objcxx_g=no
13882 OBJCXXFLAGS="-g"
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885
13886 int
13887 main ()
13888 {
13889
13890 ;
13891 return 0;
13892 }
13893 _ACEOF
13894 if ac_fn_objcxx_try_compile "$LINENO"; then :
13895 ac_cv_prog_objcxx_g=yes
13896 else
13897 OBJCXXFLAGS=""
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900
13901 int
13902 main ()
13903 {
13904
13905 ;
13906 return 0;
13907 }
13908 _ACEOF
13909 if ac_fn_objcxx_try_compile "$LINENO"; then :
13910
13911 else
13912 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
13913 OBJCXXFLAGS="-g"
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916
13917 int
13918 main ()
13919 {
13920
13921 ;
13922 return 0;
13923 }
13924 _ACEOF
13925 if ac_fn_objcxx_try_compile "$LINENO"; then :
13926 ac_cv_prog_objcxx_g=yes
13927 fi
13928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
13934 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
13936 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
13937 if test "$ac_test_OBJCXXFLAGS" = set; then
13938 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
13939 elif test $ac_cv_prog_objcxx_g = yes; then
13940 if test "$GOBJCXX" = yes; then
13941 OBJCXXFLAGS="-g -O2"
13942 else
13943 OBJCXXFLAGS="-g"
13944 fi
13945 else
13946 if test "$GOBJCXX" = yes; then
13947 OBJCXXFLAGS="-O2"
13948 else
13949 OBJCXXFLAGS=
13950 fi
13951 fi
13952 ac_ext=c
13953 ac_cpp='$CPP $CPPFLAGS'
13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957
13958
13959 # Check whether --with-frameworks was given.
13960 if test "${with_frameworks+set}" = set; then :
13961 withval=$with_frameworks;
13962 for framework in $withval; do
13963
13964 for element in -F$framework; do
13965 haveit=
13966 for x in $CFLAGS; do
13967
13968 acl_save_prefix="$prefix"
13969 prefix="$acl_final_prefix"
13970 acl_save_exec_prefix="$exec_prefix"
13971 exec_prefix="$acl_final_exec_prefix"
13972 eval x=\"$x\"
13973 exec_prefix="$acl_save_exec_prefix"
13974 prefix="$acl_save_prefix"
13975
13976 if test "X$x" = "X$element"; then
13977 haveit=yes
13978 break
13979 fi
13980 done
13981 if test -z "$haveit"; then
13982 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
13983 fi
13984 done
13985
13986
13987 for element in -F$framework; do
13988 haveit=
13989 for x in $CXXFLAGS; do
13990
13991 acl_save_prefix="$prefix"
13992 prefix="$acl_final_prefix"
13993 acl_save_exec_prefix="$exec_prefix"
13994 exec_prefix="$acl_final_exec_prefix"
13995 eval x=\"$x\"
13996 exec_prefix="$acl_save_exec_prefix"
13997 prefix="$acl_save_prefix"
13998
13999 if test "X$x" = "X$element"; then
14000 haveit=yes
14001 break
14002 fi
14003 done
14004 if test -z "$haveit"; then
14005 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
14006 fi
14007 done
14008
14009
14010 for element in -F$framework; do
14011 haveit=
14012 for x in $OBJCCXXFLAGS; do
14013
14014 acl_save_prefix="$prefix"
14015 prefix="$acl_final_prefix"
14016 acl_save_exec_prefix="$exec_prefix"
14017 exec_prefix="$acl_final_exec_prefix"
14018 eval x=\"$x\"
14019 exec_prefix="$acl_save_exec_prefix"
14020 prefix="$acl_save_prefix"
14021
14022 if test "X$x" = "X$element"; then
14023 haveit=yes
14024 break
14025 fi
14026 done
14027 if test -z "$haveit"; then
14028 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14029 fi
14030 done
14031
14032 done
14033
14034 fi
14035
14036 ac_ext=cpp
14037 ac_cpp='$CXXCPP $CPPFLAGS'
14038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14041
14042
14043 for ac_prog in 'bison -y' byacc
14044 do
14045 # Extract the first word of "$ac_prog", so it can be a program name with args.
14046 set dummy $ac_prog; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048 $as_echo_n "checking for $ac_word... " >&6; }
14049 if test "${ac_cv_prog_YACC+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 if test -n "$YACC"; then
14053 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14054 else
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14057 do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14062 ac_cv_prog_YACC="$ac_prog"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066 done
14067 done
14068 IFS=$as_save_IFS
14069
14070 fi
14071 fi
14072 YACC=$ac_cv_prog_YACC
14073 if test -n "$YACC"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14075 $as_echo "$YACC" >&6; }
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14079 fi
14080
14081
14082 test -n "$YACC" && break
14083 done
14084 test -n "$YACC" || YACC="yacc"
14085
14086 if test "x$BISON" = x; then :
14087
14088
14089
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
14092 $as_echo_n "checking if bison is the parser generator... " >&6; }
14093 if test "${ax_cv_prog_bison+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096
14097 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
14098
14099 ax_cv_prog_bison=yes
14100
14101 else
14102
14103 ax_cv_prog_bison=no
14104
14105 fi
14106
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
14109 $as_echo "$ax_cv_prog_bison" >&6; }
14110 if test "$ax_cv_prog_bison" = yes; then :
14111
14112 :
14113
14114 BISON=`echo $YACC | $SED -e 's/ -y//'`
14115
14116
14117
14118 else
14119
14120 :
14121 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
14122
14123 fi
14124
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5
14127 $as_echo_n "checking if bison is >= 2.3... " >&6; }
14128 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
14129 as_arg_v1=$BISON_VERSION
14130 as_arg_v2=2.3
14131 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14132 case $? in #(
14133 1) :
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14137 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
14138 ;; #(
14139 0) :
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; } ;; #(
14142 2) :
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14144 $as_echo "yes" >&6; } ;; #(
14145 *) :
14146 ;;
14147 esac
14148
14149 # expand $ac_aux_dir to an absolute path
14150 am_aux_dir=`cd $ac_aux_dir && pwd`
14151
14152 if test x"${MISSING+set}" != xset; then
14153 case $am_aux_dir in
14154 *\ * | *\ *)
14155 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14156 *)
14157 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14158 esac
14159 fi
14160 # Use eval to expand $SHELL
14161 if eval "$MISSING --run true"; then
14162 am_missing_run="$MISSING --run "
14163 else
14164 am_missing_run=
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14166 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14167 fi
14168
14169 for ac_prog in flex lex
14170 do
14171 # Extract the first word of "$ac_prog", so it can be a program name with args.
14172 set dummy $ac_prog; ac_word=$2
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 $as_echo_n "checking for $ac_word... " >&6; }
14175 if test "${ac_cv_prog_LEX+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 if test -n "$LEX"; then
14179 ac_cv_prog_LEX="$LEX" # Let the user override the test.
14180 else
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14183 do
14184 IFS=$as_save_IFS
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_prog_LEX="$ac_prog"
14189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 break 2
14191 fi
14192 done
14193 done
14194 IFS=$as_save_IFS
14195
14196 fi
14197 fi
14198 LEX=$ac_cv_prog_LEX
14199 if test -n "$LEX"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14201 $as_echo "$LEX" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14205 fi
14206
14207
14208 test -n "$LEX" && break
14209 done
14210 test -n "$LEX" || LEX=":"
14211
14212 if test "x$LEX" != "x:"; then
14213 cat >conftest.l <<_ACEOF
14214 %%
14215 a { ECHO; }
14216 b { REJECT; }
14217 c { yymore (); }
14218 d { yyless (1); }
14219 e { yyless (input () != 0); }
14220 f { unput (yytext[0]); }
14221 . { BEGIN INITIAL; }
14222 %%
14223 #ifdef YYTEXT_POINTER
14224 extern char *yytext;
14225 #endif
14226 int
14227 main (void)
14228 {
14229 return ! yylex () + ! yywrap ();
14230 }
14231 _ACEOF
14232 { { ac_try="$LEX conftest.l"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14236 esac
14237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14238 $as_echo "$ac_try_echo"; } >&5
14239 (eval "$LEX conftest.l") 2>&5
14240 ac_status=$?
14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242 test $ac_status = 0; }
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14244 $as_echo_n "checking lex output file root... " >&6; }
14245 if test "${ac_cv_prog_lex_root+set}" = set; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248
14249 if test -f lex.yy.c; then
14250 ac_cv_prog_lex_root=lex.yy
14251 elif test -f lexyy.c; then
14252 ac_cv_prog_lex_root=lexyy
14253 else
14254 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
14255 fi
14256 fi
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14258 $as_echo "$ac_cv_prog_lex_root" >&6; }
14259 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14260
14261 if test -z "${LEXLIB+set}"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14263 $as_echo_n "checking lex library... " >&6; }
14264 if test "${ac_cv_lib_lex+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267
14268 ac_save_LIBS=$LIBS
14269 ac_cv_lib_lex='none needed'
14270 for ac_lib in '' -lfl -ll; do
14271 LIBS="$ac_lib $ac_save_LIBS"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 `cat $LEX_OUTPUT_ROOT.c`
14275 _ACEOF
14276 if ac_fn_cxx_try_link "$LINENO"; then :
14277 ac_cv_lib_lex=$ac_lib
14278 fi
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14281 test "$ac_cv_lib_lex" != 'none needed' && break
14282 done
14283 LIBS=$ac_save_LIBS
14284
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14287 $as_echo "$ac_cv_lib_lex" >&6; }
14288 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14289 fi
14290
14291
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14293 $as_echo_n "checking whether yytext is a pointer... " >&6; }
14294 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 # POSIX says lex can declare yytext either as a pointer or an array; the
14298 # default is implementation-dependent. Figure out which it is, since
14299 # not all implementations provide the %pointer and %array declarations.
14300 ac_cv_prog_lex_yytext_pointer=no
14301 ac_save_LIBS=$LIBS
14302 LIBS="$LEXLIB $ac_save_LIBS"
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 #define YYTEXT_POINTER 1
14306 `cat $LEX_OUTPUT_ROOT.c`
14307 _ACEOF
14308 if ac_fn_cxx_try_link "$LINENO"; then :
14309 ac_cv_prog_lex_yytext_pointer=yes
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_save_LIBS
14314
14315 fi
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14317 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14318 if test $ac_cv_prog_lex_yytext_pointer = yes; then
14319
14320 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14321
14322 fi
14323 rm -f conftest.l $LEX_OUTPUT_ROOT.c
14324
14325 fi
14326 if test "$LEX" = :; then
14327 LEX=${am_missing_run}flex
14328 fi
14329 if test "x$FLEX" = x; then :
14330
14331
14332
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
14335 $as_echo_n "checking if flex is the lexer generator... " >&6; }
14336 if test "${ax_cv_prog_flex+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339
14340 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
14341
14342 ax_cv_prog_flex=yes
14343
14344 else
14345
14346 ax_cv_prog_flex=no
14347
14348 fi
14349
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
14352 $as_echo "$ax_cv_prog_flex" >&6; }
14353 if test "$ax_cv_prog_flex" = yes; then :
14354
14355 :
14356
14357 FLEX=$LEX
14358
14359
14360
14361 else
14362
14363 :
14364 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14365
14366 fi
14367
14368 fi
14369 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
14371 $as_echo_n "checking if flex is >= 2.5.33... " >&6; }
14372 as_arg_v1=$FLEX_VERSION
14373 as_arg_v2=2.5.33
14374 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14375 case $? in #(
14376 1) :
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379 $as_echo "no" >&6; }
14380 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14381 ;; #(
14382 0) :
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14384 $as_echo "yes" >&6; } ;; #(
14385 2) :
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14387 $as_echo "yes" >&6; } ;; #(
14388 *) :
14389 ;;
14390 esac
14391 for ac_prog in bash
14392 do
14393 # Extract the first word of "$ac_prog", so it can be a program name with args.
14394 set dummy $ac_prog; ac_word=$2
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14396 $as_echo_n "checking for $ac_word... " >&6; }
14397 if test "${ac_cv_prog_BASH+set}" = set; then :
14398 $as_echo_n "(cached) " >&6
14399 else
14400 if test -n "$BASH"; then
14401 ac_cv_prog_BASH="$BASH" # Let the user override the test.
14402 else
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404 for as_dir in $PATH
14405 do
14406 IFS=$as_save_IFS
14407 test -z "$as_dir" && as_dir=.
14408 for ac_exec_ext in '' $ac_executable_extensions; do
14409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14410 ac_cv_prog_BASH="$ac_prog"
14411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14412 break 2
14413 fi
14414 done
14415 done
14416 IFS=$as_save_IFS
14417
14418 fi
14419 fi
14420 BASH=$ac_cv_prog_BASH
14421 if test -n "$BASH"; then
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
14423 $as_echo "$BASH" >&6; }
14424 else
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14427 fi
14428
14429
14430 test -n "$BASH" && break
14431 done
14432
14433
14434 for ac_prog in gperf
14435 do
14436 # Extract the first word of "$ac_prog", so it can be a program name with args.
14437 set dummy $ac_prog; ac_word=$2
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 $as_echo_n "checking for $ac_word... " >&6; }
14440 if test "${ac_cv_prog_GPERF+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 if test -n "$GPERF"; then
14444 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14445 else
14446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14448 do
14449 IFS=$as_save_IFS
14450 test -z "$as_dir" && as_dir=.
14451 for ac_exec_ext in '' $ac_executable_extensions; do
14452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14453 ac_cv_prog_GPERF="$ac_prog"
14454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 break 2
14456 fi
14457 done
14458 done
14459 IFS=$as_save_IFS
14460
14461 fi
14462 fi
14463 GPERF=$ac_cv_prog_GPERF
14464 if test -n "$GPERF"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14466 $as_echo "$GPERF" >&6; }
14467 else
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 fi
14471
14472
14473 test -n "$GPERF" && break
14474 done
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14477 $as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14478 GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14479 as_arg_v1=$GPERF_VERSION
14480 as_arg_v2=3.0.3
14481 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14482 case $? in #(
14483 1) :
14484
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14487 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14488 ;; #(
14489 0) :
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14491 $as_echo "yes" >&6; } ;; #(
14492 2) :
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 $as_echo "yes" >&6; } ;; #(
14495 *) :
14496 ;;
14497 esac
14498 for ac_prog in time
14499 do
14500 # Extract the first word of "$ac_prog", so it can be a program name with args.
14501 set dummy $ac_prog; ac_word=$2
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14503 $as_echo_n "checking for $ac_word... " >&6; }
14504 if test "${ac_cv_prog_TIME+set}" = set; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 if test -n "$TIME"; then
14508 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14509 else
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14512 do
14513 IFS=$as_save_IFS
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517 ac_cv_prog_TIME="$ac_prog"
14518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14519 break 2
14520 fi
14521 done
14522 done
14523 IFS=$as_save_IFS
14524
14525 fi
14526 fi
14527 TIME=$ac_cv_prog_TIME
14528 if test -n "$TIME"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14530 $as_echo "$TIME" >&6; }
14531 else
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534 fi
14535
14536
14537 test -n "$TIME" && break
14538 done
14539
14540
14541 apr_found="no"
14542
14543 if test "$target_os" = "os2-emx"; then
14544 # Scripts don't pass test -x on OS/2
14545 TEST_X="test -f"
14546 else
14547 TEST_X="test -x"
14548 fi
14549
14550 acceptable_majors="1"
14551
14552 apr_temp_acceptable_apr_config=""
14553 for apr_temp_major in $acceptable_majors
14554 do
14555 case $apr_temp_major in
14556 0)
14557 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14558 ;;
14559 *)
14560 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14561 ;;
14562 esac
14563 done
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14566 $as_echo_n "checking for APR... " >&6; }
14567
14568 # Check whether --with-apr was given.
14569 if test "${with_apr+set}" = set; then :
14570 withval=$with_apr;
14571 if test "$withval" = "no" || test "$withval" = "yes"; then
14572 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14573 fi
14574
14575 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14576 do
14577 for lookdir in "$withval/bin" "$withval"
14578 do
14579 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14580 apr_config="$lookdir/$apr_temp_apr_config_file"
14581
14582 apr_found="yes"
14583 break 2
14584 fi
14585 done
14586 done
14587
14588 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14589 apr_config="$withval"
14590 apr_found="yes"
14591 fi
14592
14593 if test "$apr_found" != "yes"; then
14594 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
14595 fi
14596
14597 else
14598
14599 if test -n "1" && test "1" = "1"; then
14600 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14601 do
14602 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14603 apr_config="$apr_temp_apr_config_file"
14604
14605 apr_found="yes"
14606 break
14607 else
14608 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14609 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14610 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14611
14612 apr_found="yes"
14613 break 2
14614 fi
14615 done
14616 fi
14617 done
14618 fi
14619 if test "$apr_found" = "no" && test -d ""; then
14620 apr_temp_abs_srcdir="`cd && pwd`"
14621 apr_found="reconfig"
14622 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14623 case $apr_bundled_major in
14624 "")
14625 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14626 ;;
14627 0)
14628 apr_temp_apr_config_file="apr-config"
14629 ;;
14630 *)
14631 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14632 ;;
14633 esac
14634 if test -n ""; then
14635 apr_config="/$apr_temp_apr_config_file"
14636 else
14637 apr_config="/$apr_temp_apr_config_file"
14638 fi
14639 fi
14640
14641 fi
14642
14643
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14645 $as_echo "$apr_found" >&6; }
14646
14647 case $apr_found in #(
14648 yes) :
14649
14650
14651 for element in `$apr_config --includes`; do
14652 haveit=
14653 for x in $CPPFLAGS; do
14654
14655 acl_save_prefix="$prefix"
14656 prefix="$acl_final_prefix"
14657 acl_save_exec_prefix="$exec_prefix"
14658 exec_prefix="$acl_final_exec_prefix"
14659 eval x=\"$x\"
14660 exec_prefix="$acl_save_exec_prefix"
14661 prefix="$acl_save_prefix"
14662
14663 if test "X$x" = "X$element"; then
14664 haveit=yes
14665 break
14666 fi
14667 done
14668 if test -z "$haveit"; then
14669 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14670 fi
14671 done
14672
14673 LTLIBAPR=`$apr_config --link-libtool`
14674
14675 ;; #(
14676 *) :
14677 as_fn_error "You need apr" "$LINENO" 5 ;;
14678 esac
14679
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14682 $as_echo_n "checking for a readline compatible library... " >&6; }
14683 if test "${vl_cv_lib_readline+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14685 else
14686
14687 ORIG_LIBS="$LIBS"
14688 for readline_lib in readline edit editline; do
14689 for termcap_lib in "" termcap curses ncurses; do
14690 if test -z "$termcap_lib"; then
14691 TRY_LIB="-l$readline_lib"
14692 else
14693 TRY_LIB="-l$readline_lib -l$termcap_lib"
14694 fi
14695 LIBS="$ORIG_LIBS $TRY_LIB"
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698
14699 /* Override any GCC internal prototype to avoid an error.
14700 Use char because int might match the return type of a GCC
14701 builtin and then its argument prototype would still apply. */
14702 #ifdef __cplusplus
14703 extern "C"
14704 #endif
14705 char readline ();
14706 int
14707 main ()
14708 {
14709 return readline ();
14710 ;
14711 return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_cxx_try_link "$LINENO"; then :
14715 vl_cv_lib_readline="$TRY_LIB"
14716 fi
14717 rm -f core conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 if test -n "$vl_cv_lib_readline"; then
14720 break
14721 fi
14722 done
14723 if test -n "$vl_cv_lib_readline"; then
14724 break
14725 fi
14726 done
14727 if test -z "$vl_cv_lib_readline"; then
14728 vl_cv_lib_readline="no"
14729 LIBS="$ORIG_LIBS"
14730 fi
14731
14732 fi
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14734 $as_echo "$vl_cv_lib_readline" >&6; }
14735
14736 if test "$vl_cv_lib_readline" != "no"; then
14737
14738 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14739
14740 for ac_header in readline.h readline/readline.h
14741 do :
14742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14743 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14744 eval as_val=\$$as_ac_Header
14745 if test "x$as_val" = x""yes; then :
14746 cat >>confdefs.h <<_ACEOF
14747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14748 _ACEOF
14749
14750 fi
14751
14752 done
14753
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14755 $as_echo_n "checking whether readline supports history... " >&6; }
14756 if test "${vl_cv_lib_readline_history+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759
14760 vl_cv_lib_readline_history="no"
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char add_history ();
14771 int
14772 main ()
14773 {
14774 return add_history ();
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_cxx_try_link "$LINENO"; then :
14780 vl_cv_lib_readline_history="yes"
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14787 $as_echo "$vl_cv_lib_readline_history" >&6; }
14788 if test "$vl_cv_lib_readline_history" = "yes"; then
14789
14790 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14791
14792 for ac_header in history.h readline/history.h
14793 do :
14794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14795 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14796 eval as_val=\$$as_ac_Header
14797 if test "x$as_val" = x""yes; then :
14798 cat >>confdefs.h <<_ACEOF
14799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14800 _ACEOF
14801
14802 fi
14803
14804 done
14805
14806 fi
14807 fi
14808
14809 # Find a good install program. We prefer a C program (faster),
14810 # so one script is as good as another. But avoid the broken or
14811 # incompatible versions:
14812 # SysV /etc/install, /usr/sbin/install
14813 # SunOS /usr/etc/install
14814 # IRIX /sbin/install
14815 # AIX /bin/install
14816 # AmigaOS /C/install, which installs bootblocks on floppy discs
14817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14820 # OS/2's system install, which has a completely different semantic
14821 # ./install, which can be erroneously created by make from ./install.sh.
14822 # Reject install programs that cannot install multiple files.
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14824 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14825 if test -z "$INSTALL"; then
14826 if test "${ac_cv_path_install+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14831 do
14832 IFS=$as_save_IFS
14833 test -z "$as_dir" && as_dir=.
14834 # Account for people who put trailing slashes in PATH elements.
14835 case $as_dir/ in #((
14836 ./ | .// | /[cC]/* | \
14837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14838 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14839 /usr/ucb/* ) ;;
14840 *)
14841 # OSF1 and SCO ODT 3.0 have their own names for install.
14842 # Don't use installbsd from OSF since it installs stuff as root
14843 # by default.
14844 for ac_prog in ginstall scoinst install; do
14845 for ac_exec_ext in '' $ac_executable_extensions; do
14846 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14847 if test $ac_prog = install &&
14848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14849 # AIX install. It has an incompatible calling convention.
14850 :
14851 elif test $ac_prog = install &&
14852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14853 # program-specific install script used by HP pwplus--don't use.
14854 :
14855 else
14856 rm -rf conftest.one conftest.two conftest.dir
14857 echo one > conftest.one
14858 echo two > conftest.two
14859 mkdir conftest.dir
14860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14861 test -s conftest.one && test -s conftest.two &&
14862 test -s conftest.dir/conftest.one &&
14863 test -s conftest.dir/conftest.two
14864 then
14865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14866 break 3
14867 fi
14868 fi
14869 fi
14870 done
14871 done
14872 ;;
14873 esac
14874
14875 done
14876 IFS=$as_save_IFS
14877
14878 rm -rf conftest.one conftest.two conftest.dir
14879
14880 fi
14881 if test "${ac_cv_path_install+set}" = set; then
14882 INSTALL=$ac_cv_path_install
14883 else
14884 # As a last resort, use the slow shell script. Don't cache a
14885 # value for INSTALL within a source directory, because that will
14886 # break other packages using the cache if that directory is
14887 # removed, or if the value is a relative name.
14888 INSTALL=$ac_install_sh
14889 fi
14890 fi
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14892 $as_echo "$INSTALL" >&6; }
14893
14894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14895 # It thinks the first close brace ends the variable substitution.
14896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14897
14898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14899
14900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14901
14902 ac_ext=c
14903 ac_cpp='$CPP $CPPFLAGS'
14904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14907
14908
14909 if test "X$prefix" = "XNONE"; then
14910 acl_final_prefix="$ac_default_prefix"
14911 else
14912 acl_final_prefix="$prefix"
14913 fi
14914 if test "X$exec_prefix" = "XNONE"; then
14915 acl_final_exec_prefix='${prefix}'
14916 else
14917 acl_final_exec_prefix="$exec_prefix"
14918 fi
14919 acl_save_prefix="$prefix"
14920 prefix="$acl_final_prefix"
14921 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14922 prefix="$acl_save_prefix"
14923
14924
14925 # Check whether --with-gnu-ld was given.
14926 if test "${with_gnu_ld+set}" = set; then :
14927 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14928 else
14929 with_gnu_ld=no
14930 fi
14931
14932 # Prepare PATH_SEPARATOR.
14933 # The user is always right.
14934 if test "${PATH_SEPARATOR+set}" != set; then
14935 echo "#! /bin/sh" >conf$$.sh
14936 echo "exit 0" >>conf$$.sh
14937 chmod +x conf$$.sh
14938 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14939 PATH_SEPARATOR=';'
14940 else
14941 PATH_SEPARATOR=:
14942 fi
14943 rm -f conf$$.sh
14944 fi
14945 ac_prog=ld
14946 if test "$GCC" = yes; then
14947 # Check if gcc -print-prog-name=ld gives a path.
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14949 $as_echo_n "checking for ld used by GCC... " >&6; }
14950 case $host in
14951 *-*-mingw*)
14952 # gcc leaves a trailing carriage return which upsets mingw
14953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14954 *)
14955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14956 esac
14957 case $ac_prog in
14958 # Accept absolute paths.
14959 [\\/]* | [A-Za-z]:[\\/]*)
14960 re_direlt='/[^/][^/]*/\.\./'
14961 # Canonicalize the path of ld
14962 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14964 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14965 done
14966 test -z "$LD" && LD="$ac_prog"
14967 ;;
14968 "")
14969 # If it fails, then pretend we aren't using GCC.
14970 ac_prog=ld
14971 ;;
14972 *)
14973 # If it is relative, then search for the first ld in PATH.
14974 with_gnu_ld=unknown
14975 ;;
14976 esac
14977 elif test "$with_gnu_ld" = yes; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14979 $as_echo_n "checking for GNU ld... " >&6; }
14980 else
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14982 $as_echo_n "checking for non-GNU ld... " >&6; }
14983 fi
14984 if test "${acl_cv_path_LD+set}" = set; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14987 if test -z "$LD"; then
14988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14989 for ac_dir in $PATH; do
14990 test -z "$ac_dir" && ac_dir=.
14991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14992 acl_cv_path_LD="$ac_dir/$ac_prog"
14993 # Check to see if the program is GNU ld. I'd rather use --version,
14994 # but apparently some GNU ld's only accept -v.
14995 # Break only if it was the GNU/non-GNU ld that we prefer.
14996 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14997 *GNU* | *'with BFD'*)
14998 test "$with_gnu_ld" != no && break ;;
14999 *)
15000 test "$with_gnu_ld" != yes && break ;;
15001 esac
15002 fi
15003 done
15004 IFS="$ac_save_ifs"
15005 else
15006 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15007 fi
15008 fi
15009
15010 LD="$acl_cv_path_LD"
15011 if test -n "$LD"; then
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15013 $as_echo "$LD" >&6; }
15014 else
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016 $as_echo "no" >&6; }
15017 fi
15018 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15020 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15021 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15025 case `$LD -v 2>&1 </dev/null` in
15026 *GNU* | *'with BFD'*)
15027 acl_cv_prog_gnu_ld=yes ;;
15028 *)
15029 acl_cv_prog_gnu_ld=no ;;
15030 esac
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15033 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15034 with_gnu_ld=$acl_cv_prog_gnu_ld
15035
15036
15037
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15040 $as_echo_n "checking for shared library run path origin... " >&6; }
15041 if test "${acl_cv_rpath+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044
15045 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15046 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15047 . ./conftest.sh
15048 rm -f ./conftest.sh
15049 acl_cv_rpath=done
15050
15051 fi
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15053 $as_echo "$acl_cv_rpath" >&6; }
15054 wl="$acl_cv_wl"
15055 acl_libext="$acl_cv_libext"
15056 acl_shlibext="$acl_cv_shlibext"
15057 acl_libname_spec="$acl_cv_libname_spec"
15058 acl_library_names_spec="$acl_cv_library_names_spec"
15059 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15060 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15061 acl_hardcode_direct="$acl_cv_hardcode_direct"
15062 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15063 # Check whether --enable-rpath was given.
15064 if test "${enable_rpath+set}" = set; then :
15065 enableval=$enable_rpath; :
15066 else
15067 enable_rpath=yes
15068 fi
15069
15070
15071
15072 acl_libdirstem=lib
15073 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15074 if test -n "$searchpath"; then
15075 acl_save_IFS="${IFS= }"; IFS=":"
15076 for searchdir in $searchpath; do
15077 if test -d "$searchdir"; then
15078 case "$searchdir" in
15079 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15080 *) searchdir=`cd "$searchdir" && pwd`
15081 case "$searchdir" in
15082 */lib64 ) acl_libdirstem=lib64 ;;
15083 esac ;;
15084 esac
15085 fi
15086 done
15087 IFS="$acl_save_IFS"
15088 fi
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098 use_additional=yes
15099
15100 acl_save_prefix="$prefix"
15101 prefix="$acl_final_prefix"
15102 acl_save_exec_prefix="$exec_prefix"
15103 exec_prefix="$acl_final_exec_prefix"
15104
15105 eval additional_includedir=\"$includedir\"
15106 eval additional_libdir=\"$libdir\"
15107
15108 exec_prefix="$acl_save_exec_prefix"
15109 prefix="$acl_save_prefix"
15110
15111
15112 # Check whether --with-libiconv-prefix was given.
15113 if test "${with_libiconv_prefix+set}" = set; then :
15114 withval=$with_libiconv_prefix;
15115 if test "X$withval" = "Xno"; then
15116 use_additional=no
15117 else
15118 if test "X$withval" = "X"; then
15119
15120 acl_save_prefix="$prefix"
15121 prefix="$acl_final_prefix"
15122 acl_save_exec_prefix="$exec_prefix"
15123 exec_prefix="$acl_final_exec_prefix"
15124
15125 eval additional_includedir=\"$includedir\"
15126 eval additional_libdir=\"$libdir\"
15127
15128 exec_prefix="$acl_save_exec_prefix"
15129 prefix="$acl_save_prefix"
15130
15131 else
15132 additional_includedir="$withval/include"
15133 additional_libdir="$withval/$acl_libdirstem"
15134 fi
15135 fi
15136
15137 fi
15138
15139 LIBICONV=
15140 LTLIBICONV=
15141 INCICONV=
15142 LIBICONV_PREFIX=
15143 rpathdirs=
15144 ltrpathdirs=
15145 names_already_handled=
15146 names_next_round='iconv '
15147 while test -n "$names_next_round"; do
15148 names_this_round="$names_next_round"
15149 names_next_round=
15150 for name in $names_this_round; do
15151 already_handled=
15152 for n in $names_already_handled; do
15153 if test "$n" = "$name"; then
15154 already_handled=yes
15155 break
15156 fi
15157 done
15158 if test -z "$already_handled"; then
15159 names_already_handled="$names_already_handled $name"
15160 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15161 eval value=\"\$HAVE_LIB$uppername\"
15162 if test -n "$value"; then
15163 if test "$value" = yes; then
15164 eval value=\"\$LIB$uppername\"
15165 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15166 eval value=\"\$LTLIB$uppername\"
15167 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15168 else
15169 :
15170 fi
15171 else
15172 found_dir=
15173 found_la=
15174 found_so=
15175 found_a=
15176 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15177 if test -n "$acl_shlibext"; then
15178 shrext=".$acl_shlibext" # typically: shrext=.so
15179 else
15180 shrext=
15181 fi
15182 if test $use_additional = yes; then
15183 dir="$additional_libdir"
15184 if test -n "$acl_shlibext"; then
15185 if test -f "$dir/$libname$shrext"; then
15186 found_dir="$dir"
15187 found_so="$dir/$libname$shrext"
15188 else
15189 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15190 ver=`(cd "$dir" && \
15191 for f in "$libname$shrext".*; do echo "$f"; done \
15192 | sed -e "s,^$libname$shrext\\\\.,," \
15193 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15194 | sed 1q ) 2>/dev/null`
15195 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15196 found_dir="$dir"
15197 found_so="$dir/$libname$shrext.$ver"
15198 fi
15199 else
15200 eval library_names=\"$acl_library_names_spec\"
15201 for f in $library_names; do
15202 if test -f "$dir/$f"; then
15203 found_dir="$dir"
15204 found_so="$dir/$f"
15205 break
15206 fi
15207 done
15208 fi
15209 fi
15210 fi
15211 if test "X$found_dir" = "X"; then
15212 if test -f "$dir/$libname.$acl_libext"; then
15213 found_dir="$dir"
15214 found_a="$dir/$libname.$acl_libext"
15215 fi
15216 fi
15217 if test "X$found_dir" != "X"; then
15218 if test -f "$dir/$libname.la"; then
15219 found_la="$dir/$libname.la"
15220 fi
15221 fi
15222 fi
15223 if test "X$found_dir" = "X"; then
15224 for x in $LDFLAGS $LTLIBICONV; do
15225
15226 acl_save_prefix="$prefix"
15227 prefix="$acl_final_prefix"
15228 acl_save_exec_prefix="$exec_prefix"
15229 exec_prefix="$acl_final_exec_prefix"
15230 eval x=\"$x\"
15231 exec_prefix="$acl_save_exec_prefix"
15232 prefix="$acl_save_prefix"
15233
15234 case "$x" in
15235 -L*)
15236 dir=`echo "X$x" | sed -e 's/^X-L//'`
15237 if test -n "$acl_shlibext"; then
15238 if test -f "$dir/$libname$shrext"; then
15239 found_dir="$dir"
15240 found_so="$dir/$libname$shrext"
15241 else
15242 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15243 ver=`(cd "$dir" && \
15244 for f in "$libname$shrext".*; do echo "$f"; done \
15245 | sed -e "s,^$libname$shrext\\\\.,," \
15246 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15247 | sed 1q ) 2>/dev/null`
15248 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15249 found_dir="$dir"
15250 found_so="$dir/$libname$shrext.$ver"
15251 fi
15252 else
15253 eval library_names=\"$acl_library_names_spec\"
15254 for f in $library_names; do
15255 if test -f "$dir/$f"; then
15256 found_dir="$dir"
15257 found_so="$dir/$f"
15258 break
15259 fi
15260 done
15261 fi
15262 fi
15263 fi
15264 if test "X$found_dir" = "X"; then
15265 if test -f "$dir/$libname.$acl_libext"; then
15266 found_dir="$dir"
15267 found_a="$dir/$libname.$acl_libext"
15268 fi
15269 fi
15270 if test "X$found_dir" != "X"; then
15271 if test -f "$dir/$libname.la"; then
15272 found_la="$dir/$libname.la"
15273 fi
15274 fi
15275 ;;
15276 esac
15277 if test "X$found_dir" != "X"; then
15278 break
15279 fi
15280 done
15281 fi
15282 if test "X$found_dir" != "X"; then
15283 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15284 if test "X$found_so" != "X"; then
15285 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15286 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15287 else
15288 haveit=
15289 for x in $ltrpathdirs; do
15290 if test "X$x" = "X$found_dir"; then
15291 haveit=yes
15292 break
15293 fi
15294 done
15295 if test -z "$haveit"; then
15296 ltrpathdirs="$ltrpathdirs $found_dir"
15297 fi
15298 if test "$acl_hardcode_direct" = yes; then
15299 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15300 else
15301 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15302 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15303 haveit=
15304 for x in $rpathdirs; do
15305 if test "X$x" = "X$found_dir"; then
15306 haveit=yes
15307 break
15308 fi
15309 done
15310 if test -z "$haveit"; then
15311 rpathdirs="$rpathdirs $found_dir"
15312 fi
15313 else
15314 haveit=
15315 for x in $LDFLAGS $LIBICONV; do
15316
15317 acl_save_prefix="$prefix"
15318 prefix="$acl_final_prefix"
15319 acl_save_exec_prefix="$exec_prefix"
15320 exec_prefix="$acl_final_exec_prefix"
15321 eval x=\"$x\"
15322 exec_prefix="$acl_save_exec_prefix"
15323 prefix="$acl_save_prefix"
15324
15325 if test "X$x" = "X-L$found_dir"; then
15326 haveit=yes
15327 break
15328 fi
15329 done
15330 if test -z "$haveit"; then
15331 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15332 fi
15333 if test "$acl_hardcode_minus_L" != no; then
15334 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15335 else
15336 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15337 fi
15338 fi
15339 fi
15340 fi
15341 else
15342 if test "X$found_a" != "X"; then
15343 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15344 else
15345 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15346 fi
15347 fi
15348 additional_includedir=
15349 case "$found_dir" in
15350 */$acl_libdirstem | */$acl_libdirstem/)
15351 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15352 LIBICONV_PREFIX="$basedir"
15353 additional_includedir="$basedir/include"
15354 ;;
15355 esac
15356 if test "X$additional_includedir" != "X"; then
15357 if test "X$additional_includedir" != "X/usr/include"; then
15358 haveit=
15359 if test "X$additional_includedir" = "X/usr/local/include"; then
15360 if test -n "$GCC"; then
15361 case $host_os in
15362 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15363 esac
15364 fi
15365 fi
15366 if test -z "$haveit"; then
15367 for x in $CPPFLAGS $INCICONV; do
15368
15369 acl_save_prefix="$prefix"
15370 prefix="$acl_final_prefix"
15371 acl_save_exec_prefix="$exec_prefix"
15372 exec_prefix="$acl_final_exec_prefix"
15373 eval x=\"$x\"
15374 exec_prefix="$acl_save_exec_prefix"
15375 prefix="$acl_save_prefix"
15376
15377 if test "X$x" = "X-I$additional_includedir"; then
15378 haveit=yes
15379 break
15380 fi
15381 done
15382 if test -z "$haveit"; then
15383 if test -d "$additional_includedir"; then
15384 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15385 fi
15386 fi
15387 fi
15388 fi
15389 fi
15390 if test -n "$found_la"; then
15391 save_libdir="$libdir"
15392 case "$found_la" in
15393 */* | *\\*) . "$found_la" ;;
15394 *) . "./$found_la" ;;
15395 esac
15396 libdir="$save_libdir"
15397 for dep in $dependency_libs; do
15398 case "$dep" in
15399 -L*)
15400 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15401 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15402 haveit=
15403 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15404 if test -n "$GCC"; then
15405 case $host_os in
15406 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15407 esac
15408 fi
15409 fi
15410 if test -z "$haveit"; then
15411 haveit=
15412 for x in $LDFLAGS $LIBICONV; do
15413
15414 acl_save_prefix="$prefix"
15415 prefix="$acl_final_prefix"
15416 acl_save_exec_prefix="$exec_prefix"
15417 exec_prefix="$acl_final_exec_prefix"
15418 eval x=\"$x\"
15419 exec_prefix="$acl_save_exec_prefix"
15420 prefix="$acl_save_prefix"
15421
15422 if test "X$x" = "X-L$additional_libdir"; then
15423 haveit=yes
15424 break
15425 fi
15426 done
15427 if test -z "$haveit"; then
15428 if test -d "$additional_libdir"; then
15429 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15430 fi
15431 fi
15432 haveit=
15433 for x in $LDFLAGS $LTLIBICONV; do
15434
15435 acl_save_prefix="$prefix"
15436 prefix="$acl_final_prefix"
15437 acl_save_exec_prefix="$exec_prefix"
15438 exec_prefix="$acl_final_exec_prefix"
15439 eval x=\"$x\"
15440 exec_prefix="$acl_save_exec_prefix"
15441 prefix="$acl_save_prefix"
15442
15443 if test "X$x" = "X-L$additional_libdir"; then
15444 haveit=yes
15445 break
15446 fi
15447 done
15448 if test -z "$haveit"; then
15449 if test -d "$additional_libdir"; then
15450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15451 fi
15452 fi
15453 fi
15454 fi
15455 ;;
15456 -R*)
15457 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15458 if test "$enable_rpath" != no; then
15459 haveit=
15460 for x in $rpathdirs; do
15461 if test "X$x" = "X$dir"; then
15462 haveit=yes
15463 break
15464 fi
15465 done
15466 if test -z "$haveit"; then
15467 rpathdirs="$rpathdirs $dir"
15468 fi
15469 haveit=
15470 for x in $ltrpathdirs; do
15471 if test "X$x" = "X$dir"; then
15472 haveit=yes
15473 break
15474 fi
15475 done
15476 if test -z "$haveit"; then
15477 ltrpathdirs="$ltrpathdirs $dir"
15478 fi
15479 fi
15480 ;;
15481 -l*)
15482 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15483 ;;
15484 *.la)
15485 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15486 ;;
15487 *)
15488 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15489 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15490 ;;
15491 esac
15492 done
15493 fi
15494 else
15495 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15496 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15497 fi
15498 fi
15499 fi
15500 done
15501 done
15502 if test "X$rpathdirs" != "X"; then
15503 if test -n "$acl_hardcode_libdir_separator"; then
15504 alldirs=
15505 for found_dir in $rpathdirs; do
15506 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15507 done
15508 acl_save_libdir="$libdir"
15509 libdir="$alldirs"
15510 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15511 libdir="$acl_save_libdir"
15512 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15513 else
15514 for found_dir in $rpathdirs; do
15515 acl_save_libdir="$libdir"
15516 libdir="$found_dir"
15517 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15518 libdir="$acl_save_libdir"
15519 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15520 done
15521 fi
15522 fi
15523 if test "X$ltrpathdirs" != "X"; then
15524 for found_dir in $ltrpathdirs; do
15525 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15526 done
15527 fi
15528
15529
15530
15531
15532
15533
15534
15535 am_save_CPPFLAGS="$CPPFLAGS"
15536
15537 for element in $INCICONV; do
15538 haveit=
15539 for x in $CPPFLAGS; do
15540
15541 acl_save_prefix="$prefix"
15542 prefix="$acl_final_prefix"
15543 acl_save_exec_prefix="$exec_prefix"
15544 exec_prefix="$acl_final_exec_prefix"
15545 eval x=\"$x\"
15546 exec_prefix="$acl_save_exec_prefix"
15547 prefix="$acl_save_prefix"
15548
15549 if test "X$x" = "X$element"; then
15550 haveit=yes
15551 break
15552 fi
15553 done
15554 if test -z "$haveit"; then
15555 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15556 fi
15557 done
15558
15559
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15561 $as_echo_n "checking for iconv... " >&6; }
15562 if test "${am_cv_func_iconv+set}" = set; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565
15566 am_cv_func_iconv="no, consider installing GNU libiconv"
15567 am_cv_lib_iconv=no
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 #include <stdlib.h>
15571 #include <iconv.h>
15572 int
15573 main ()
15574 {
15575 iconv_t cd = iconv_open("","");
15576 iconv(cd,NULL,NULL,NULL,NULL);
15577 iconv_close(cd);
15578 ;
15579 return 0;
15580 }
15581 _ACEOF
15582 if ac_fn_c_try_link "$LINENO"; then :
15583 am_cv_func_iconv=yes
15584 fi
15585 rm -f core conftest.err conftest.$ac_objext \
15586 conftest$ac_exeext conftest.$ac_ext
15587 if test "$am_cv_func_iconv" != yes; then
15588 am_save_LIBS="$LIBS"
15589 LIBS="$LIBS $LIBICONV"
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 #include <stdlib.h>
15593 #include <iconv.h>
15594 int
15595 main ()
15596 {
15597 iconv_t cd = iconv_open("","");
15598 iconv(cd,NULL,NULL,NULL,NULL);
15599 iconv_close(cd);
15600 ;
15601 return 0;
15602 }
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"; then :
15605 am_cv_lib_iconv=yes
15606 am_cv_func_iconv=yes
15607 fi
15608 rm -f core conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS="$am_save_LIBS"
15611 fi
15612
15613 fi
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15615 $as_echo "$am_cv_func_iconv" >&6; }
15616 if test "$am_cv_func_iconv" = yes; then
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15618 $as_echo_n "checking for working iconv... " >&6; }
15619 if test "${am_cv_func_iconv_works+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15621 else
15622
15623 am_save_LIBS="$LIBS"
15624 if test $am_cv_lib_iconv = yes; then
15625 LIBS="$LIBS $LIBICONV"
15626 fi
15627 if test "$cross_compiling" = yes; then :
15628 case "$host_os" in
15629 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15630 *) am_cv_func_iconv_works="guessing yes" ;;
15631 esac
15632 else
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635
15636 #include <iconv.h>
15637 #include <string.h>
15638 int main ()
15639 {
15640 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15641 returns. */
15642 {
15643 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15644 if (cd_utf8_to_88591 != (iconv_t)(-1))
15645 {
15646 static const char input[] = "\342\202\254"; /* EURO SIGN */
15647 char buf[10];
15648 const char *inptr = input;
15649 size_t inbytesleft = strlen (input);
15650 char *outptr = buf;
15651 size_t outbytesleft = sizeof (buf);
15652 size_t res = iconv (cd_utf8_to_88591,
15653 (char **) &inptr, &inbytesleft,
15654 &outptr, &outbytesleft);
15655 if (res == 0)
15656 return 1;
15657 }
15658 }
15659 #if 0 /* This bug could be worked around by the caller. */
15660 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15661 {
15662 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15663 if (cd_88591_to_utf8 != (iconv_t)(-1))
15664 {
15665 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15666 char buf[50];
15667 const char *inptr = input;
15668 size_t inbytesleft = strlen (input);
15669 char *outptr = buf;
15670 size_t outbytesleft = sizeof (buf);
15671 size_t res = iconv (cd_88591_to_utf8,
15672 (char **) &inptr, &inbytesleft,
15673 &outptr, &outbytesleft);
15674 if ((int)res > 0)
15675 return 1;
15676 }
15677 }
15678 #endif
15679 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15680 provided. */
15681 if (/* Try standardized names. */
15682 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15683 /* Try IRIX, OSF/1 names. */
15684 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15685 /* Try AIX names. */
15686 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15687 /* Try HP-UX names. */
15688 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15689 return 1;
15690 return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_run "$LINENO"; then :
15694 am_cv_func_iconv_works=yes
15695 else
15696 am_cv_func_iconv_works=no
15697 fi
15698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15699 conftest.$ac_objext conftest.beam conftest.$ac_ext
15700 fi
15701
15702 LIBS="$am_save_LIBS"
15703
15704 fi
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15706 $as_echo "$am_cv_func_iconv_works" >&6; }
15707 case "$am_cv_func_iconv_works" in
15708 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15709 *) am_func_iconv=yes ;;
15710 esac
15711 else
15712 am_func_iconv=no am_cv_lib_iconv=no
15713 fi
15714 if test "$am_func_iconv" = yes; then
15715
15716 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15717
15718 fi
15719 if test "$am_cv_lib_iconv" = yes; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15721 $as_echo_n "checking how to link with libiconv... " >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15723 $as_echo "$LIBICONV" >&6; }
15724 else
15725 CPPFLAGS="$am_save_CPPFLAGS"
15726 LIBICONV=
15727 LTLIBICONV=
15728 fi
15729
15730
15731
15732 if test "$am_cv_func_iconv" = yes; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15734 $as_echo_n "checking for iconv declaration... " >&6; }
15735 if test "${am_cv_proto_iconv+set}" = set; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15738
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741
15742 #include <stdlib.h>
15743 #include <iconv.h>
15744 extern
15745 #ifdef __cplusplus
15746 "C"
15747 #endif
15748 #if defined(__STDC__) || defined(__cplusplus)
15749 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15750 #else
15751 size_t iconv();
15752 #endif
15753
15754 int
15755 main ()
15756 {
15757
15758 ;
15759 return 0;
15760 }
15761 _ACEOF
15762 if ac_fn_c_try_compile "$LINENO"; then :
15763 am_cv_proto_iconv_arg1=""
15764 else
15765 am_cv_proto_iconv_arg1="const"
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 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);"
15769 fi
15770
15771 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15773 }$am_cv_proto_iconv" >&5
15774 $as_echo "${ac_t:-
15775 }$am_cv_proto_iconv" >&6; }
15776
15777 cat >>confdefs.h <<_ACEOF
15778 #define ICONV_CONST $am_cv_proto_iconv_arg1
15779 _ACEOF
15780
15781 fi
15782
15783 ac_ext=cpp
15784 ac_cpp='$CXXCPP $CPPFLAGS'
15785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15788
15789 case $am_cv_func_iconv in #(
15790 yes) :
15791 ;; #(
15792 *) :
15793 as_fn_error "You need iconv" "$LINENO" 5 ;;
15794 esac
15795
15796
15797 # Check whether --enable-javascript was given.
15798 if test "${enable_javascript+set}" = set; then :
15799 enableval=$enable_javascript;
15800 case $enableval in #(
15801 yes) :
15802
15803
15804
15805 pkg_failed=no
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15807 $as_echo_n "checking for WEBKIT... " >&6; }
15808
15809 if test -n "$PKG_CONFIG"; then
15810 if test -n "$WEBKIT_CFLAGS"; then
15811 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15812 else
15813 if test -n "$PKG_CONFIG" && \
15814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15815 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15816 ac_status=$?
15817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15818 test $ac_status = 0; }; then
15819 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15820 else
15821 pkg_failed=yes
15822 fi
15823 fi
15824 else
15825 pkg_failed=untried
15826 fi
15827 if test -n "$PKG_CONFIG"; then
15828 if test -n "$WEBKIT_LIBS"; then
15829 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15830 else
15831 if test -n "$PKG_CONFIG" && \
15832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15833 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15834 ac_status=$?
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; then
15837 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15838 else
15839 pkg_failed=yes
15840 fi
15841 fi
15842 else
15843 pkg_failed=untried
15844 fi
15845
15846
15847
15848 if test $pkg_failed = yes; then
15849
15850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15851 _pkg_short_errors_supported=yes
15852 else
15853 _pkg_short_errors_supported=no
15854 fi
15855 if test $_pkg_short_errors_supported = yes; then
15856 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15857 else
15858 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15859 fi
15860 # Put the nasty error message in config.log where it belongs
15861 echo "$WEBKIT_PKG_ERRORS" >&5
15862
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 $as_echo "no" >&6; }
15865
15866
15867 pkg_failed=no
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15869 $as_echo_n "checking for WEBKIT... " >&6; }
15870
15871 if test -n "$PKG_CONFIG"; then
15872 if test -n "$WEBKIT_CFLAGS"; then
15873 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15874 else
15875 if test -n "$PKG_CONFIG" && \
15876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15877 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15878 ac_status=$?
15879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15880 test $ac_status = 0; }; then
15881 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15882 else
15883 pkg_failed=yes
15884 fi
15885 fi
15886 else
15887 pkg_failed=untried
15888 fi
15889 if test -n "$PKG_CONFIG"; then
15890 if test -n "$WEBKIT_LIBS"; then
15891 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15892 else
15893 if test -n "$PKG_CONFIG" && \
15894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15895 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15896 ac_status=$?
15897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15898 test $ac_status = 0; }; then
15899 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15900 else
15901 pkg_failed=yes
15902 fi
15903 fi
15904 else
15905 pkg_failed=untried
15906 fi
15907
15908
15909
15910 if test $pkg_failed = yes; then
15911
15912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15913 _pkg_short_errors_supported=yes
15914 else
15915 _pkg_short_errors_supported=no
15916 fi
15917 if test $_pkg_short_errors_supported = yes; then
15918 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
15919 else
15920 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
15921 fi
15922 # Put the nasty error message in config.log where it belongs
15923 echo "$WEBKIT_PKG_ERRORS" >&5
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926 $as_echo "no" >&6; }
15927
15928
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15930 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15931 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15932 $as_echo_n "(cached) " >&6
15933 else
15934
15935 ac_check_framework_save_LIBS=$LIBS
15936 LIBS="-framework JavaScriptCore $LIBS"
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939
15940 #include <JavaScriptCore/JSBase.h>
15941
15942 int
15943 main ()
15944 {
15945 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15946 ;
15947 return 0;
15948 }
15949 _ACEOF
15950 if ac_fn_cxx_try_link "$LINENO"; then :
15951
15952 ac_cv_framework_JavaScriptCore=yes
15953
15954 else
15955 ac_cv_framework_JavaScriptCore=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15959 LIBS=$ac_check_framework_save_LIBS
15960
15961 fi
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15963 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15964 if test $ac_cv_framework_JavaScriptCore = yes; then :
15965
15966
15967 for element in "-framework JavaScriptCore $LIBS"; do
15968 haveit=
15969 for x in $LIBS; do
15970
15971 acl_save_prefix="$prefix"
15972 prefix="$acl_final_prefix"
15973 acl_save_exec_prefix="$exec_prefix"
15974 exec_prefix="$acl_final_exec_prefix"
15975 eval x=\"$x\"
15976 exec_prefix="$acl_save_exec_prefix"
15977 prefix="$acl_save_prefix"
15978
15979 if test "X$x" = "X$element"; then
15980 haveit=yes
15981 break
15982 fi
15983 done
15984 if test -z "$haveit"; then
15985 LIBS="${LIBS}${LIBS:+ }$element"
15986 fi
15987 done
15988
15989 CY_EXECUTE=1
15990
15991 fi
15992
15993 elif test $pkg_failed = untried; then
15994
15995
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15997 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15998 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16001
16002 ac_check_framework_save_LIBS=$LIBS
16003 LIBS="-framework JavaScriptCore $LIBS"
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006
16007 #include <JavaScriptCore/JSBase.h>
16008
16009 int
16010 main ()
16011 {
16012 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16013 ;
16014 return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_cxx_try_link "$LINENO"; then :
16018
16019 ac_cv_framework_JavaScriptCore=yes
16020
16021 else
16022 ac_cv_framework_JavaScriptCore=no
16023 fi
16024 rm -f core conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16026 LIBS=$ac_check_framework_save_LIBS
16027
16028 fi
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16030 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16031 if test $ac_cv_framework_JavaScriptCore = yes; then :
16032
16033
16034 for element in "-framework JavaScriptCore $LIBS"; do
16035 haveit=
16036 for x in $LIBS; do
16037
16038 acl_save_prefix="$prefix"
16039 prefix="$acl_final_prefix"
16040 acl_save_exec_prefix="$exec_prefix"
16041 exec_prefix="$acl_final_exec_prefix"
16042 eval x=\"$x\"
16043 exec_prefix="$acl_save_exec_prefix"
16044 prefix="$acl_save_prefix"
16045
16046 if test "X$x" = "X$element"; then
16047 haveit=yes
16048 break
16049 fi
16050 done
16051 if test -z "$haveit"; then
16052 LIBS="${LIBS}${LIBS:+ }$element"
16053 fi
16054 done
16055
16056 CY_EXECUTE=1
16057
16058 fi
16059
16060 else
16061 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16062 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16065
16066 CY_EXECUTE=1
16067
16068 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16069 haveit=
16070 for x in $CXXFLAGS; do
16071
16072 acl_save_prefix="$prefix"
16073 prefix="$acl_final_prefix"
16074 acl_save_exec_prefix="$exec_prefix"
16075 exec_prefix="$acl_final_exec_prefix"
16076 eval x=\"$x\"
16077 exec_prefix="$acl_save_exec_prefix"
16078 prefix="$acl_save_prefix"
16079
16080 if test "X$x" = "X$element"; then
16081 haveit=yes
16082 break
16083 fi
16084 done
16085 if test -z "$haveit"; then
16086 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16087 fi
16088 done
16089
16090
16091 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16092 haveit=
16093 for x in $LIBS; do
16094
16095 acl_save_prefix="$prefix"
16096 prefix="$acl_final_prefix"
16097 acl_save_exec_prefix="$exec_prefix"
16098 exec_prefix="$acl_final_exec_prefix"
16099 eval x=\"$x\"
16100 exec_prefix="$acl_save_exec_prefix"
16101 prefix="$acl_save_prefix"
16102
16103 if test "X$x" = "X$element"; then
16104 haveit=yes
16105 break
16106 fi
16107 done
16108 if test -z "$haveit"; then
16109 LIBS="${LIBS}${LIBS:+ }$element"
16110 fi
16111 done
16112
16113
16114 fi
16115
16116 elif test $pkg_failed = untried; then
16117
16118
16119 pkg_failed=no
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16121 $as_echo_n "checking for WEBKIT... " >&6; }
16122
16123 if test -n "$PKG_CONFIG"; then
16124 if test -n "$WEBKIT_CFLAGS"; then
16125 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16126 else
16127 if test -n "$PKG_CONFIG" && \
16128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16129 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16130 ac_status=$?
16131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16132 test $ac_status = 0; }; then
16133 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16134 else
16135 pkg_failed=yes
16136 fi
16137 fi
16138 else
16139 pkg_failed=untried
16140 fi
16141 if test -n "$PKG_CONFIG"; then
16142 if test -n "$WEBKIT_LIBS"; then
16143 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16144 else
16145 if test -n "$PKG_CONFIG" && \
16146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16147 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16148 ac_status=$?
16149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16150 test $ac_status = 0; }; then
16151 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16152 else
16153 pkg_failed=yes
16154 fi
16155 fi
16156 else
16157 pkg_failed=untried
16158 fi
16159
16160
16161
16162 if test $pkg_failed = yes; then
16163
16164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16165 _pkg_short_errors_supported=yes
16166 else
16167 _pkg_short_errors_supported=no
16168 fi
16169 if test $_pkg_short_errors_supported = yes; then
16170 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16171 else
16172 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16173 fi
16174 # Put the nasty error message in config.log where it belongs
16175 echo "$WEBKIT_PKG_ERRORS" >&5
16176
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16182 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16183 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16184 $as_echo_n "(cached) " >&6
16185 else
16186
16187 ac_check_framework_save_LIBS=$LIBS
16188 LIBS="-framework JavaScriptCore $LIBS"
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191
16192 #include <JavaScriptCore/JSBase.h>
16193
16194 int
16195 main ()
16196 {
16197 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_cxx_try_link "$LINENO"; then :
16203
16204 ac_cv_framework_JavaScriptCore=yes
16205
16206 else
16207 ac_cv_framework_JavaScriptCore=no
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_framework_save_LIBS
16212
16213 fi
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16215 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16216 if test $ac_cv_framework_JavaScriptCore = yes; then :
16217
16218
16219 for element in "-framework JavaScriptCore $LIBS"; do
16220 haveit=
16221 for x in $LIBS; do
16222
16223 acl_save_prefix="$prefix"
16224 prefix="$acl_final_prefix"
16225 acl_save_exec_prefix="$exec_prefix"
16226 exec_prefix="$acl_final_exec_prefix"
16227 eval x=\"$x\"
16228 exec_prefix="$acl_save_exec_prefix"
16229 prefix="$acl_save_prefix"
16230
16231 if test "X$x" = "X$element"; then
16232 haveit=yes
16233 break
16234 fi
16235 done
16236 if test -z "$haveit"; then
16237 LIBS="${LIBS}${LIBS:+ }$element"
16238 fi
16239 done
16240
16241 CY_EXECUTE=1
16242
16243 fi
16244
16245 elif test $pkg_failed = untried; then
16246
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16249 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16250 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253
16254 ac_check_framework_save_LIBS=$LIBS
16255 LIBS="-framework JavaScriptCore $LIBS"
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258
16259 #include <JavaScriptCore/JSBase.h>
16260
16261 int
16262 main ()
16263 {
16264 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16265 ;
16266 return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_cxx_try_link "$LINENO"; then :
16270
16271 ac_cv_framework_JavaScriptCore=yes
16272
16273 else
16274 ac_cv_framework_JavaScriptCore=no
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16278 LIBS=$ac_check_framework_save_LIBS
16279
16280 fi
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16282 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16283 if test $ac_cv_framework_JavaScriptCore = yes; then :
16284
16285
16286 for element in "-framework JavaScriptCore $LIBS"; do
16287 haveit=
16288 for x in $LIBS; do
16289
16290 acl_save_prefix="$prefix"
16291 prefix="$acl_final_prefix"
16292 acl_save_exec_prefix="$exec_prefix"
16293 exec_prefix="$acl_final_exec_prefix"
16294 eval x=\"$x\"
16295 exec_prefix="$acl_save_exec_prefix"
16296 prefix="$acl_save_prefix"
16297
16298 if test "X$x" = "X$element"; then
16299 haveit=yes
16300 break
16301 fi
16302 done
16303 if test -z "$haveit"; then
16304 LIBS="${LIBS}${LIBS:+ }$element"
16305 fi
16306 done
16307
16308 CY_EXECUTE=1
16309
16310 fi
16311
16312 else
16313 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16314 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16316 $as_echo "yes" >&6; }
16317
16318 CY_EXECUTE=1
16319
16320 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16321 haveit=
16322 for x in $CXXFLAGS; do
16323
16324 acl_save_prefix="$prefix"
16325 prefix="$acl_final_prefix"
16326 acl_save_exec_prefix="$exec_prefix"
16327 exec_prefix="$acl_final_exec_prefix"
16328 eval x=\"$x\"
16329 exec_prefix="$acl_save_exec_prefix"
16330 prefix="$acl_save_prefix"
16331
16332 if test "X$x" = "X$element"; then
16333 haveit=yes
16334 break
16335 fi
16336 done
16337 if test -z "$haveit"; then
16338 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16339 fi
16340 done
16341
16342
16343 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16344 haveit=
16345 for x in $LIBS; do
16346
16347 acl_save_prefix="$prefix"
16348 prefix="$acl_final_prefix"
16349 acl_save_exec_prefix="$exec_prefix"
16350 exec_prefix="$acl_final_exec_prefix"
16351 eval x=\"$x\"
16352 exec_prefix="$acl_save_exec_prefix"
16353 prefix="$acl_save_prefix"
16354
16355 if test "X$x" = "X$element"; then
16356 haveit=yes
16357 break
16358 fi
16359 done
16360 if test -z "$haveit"; then
16361 LIBS="${LIBS}${LIBS:+ }$element"
16362 fi
16363 done
16364
16365
16366 fi
16367
16368 else
16369 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16370 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16372 $as_echo "yes" >&6; }
16373
16374 CY_EXECUTE=1
16375
16376 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16377 haveit=
16378 for x in $CXXFLAGS; do
16379
16380 acl_save_prefix="$prefix"
16381 prefix="$acl_final_prefix"
16382 acl_save_exec_prefix="$exec_prefix"
16383 exec_prefix="$acl_final_exec_prefix"
16384 eval x=\"$x\"
16385 exec_prefix="$acl_save_exec_prefix"
16386 prefix="$acl_save_prefix"
16387
16388 if test "X$x" = "X$element"; then
16389 haveit=yes
16390 break
16391 fi
16392 done
16393 if test -z "$haveit"; then
16394 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16395 fi
16396 done
16397
16398
16399 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16400 haveit=
16401 for x in $LIBS; do
16402
16403 acl_save_prefix="$prefix"
16404 prefix="$acl_final_prefix"
16405 acl_save_exec_prefix="$exec_prefix"
16406 exec_prefix="$acl_final_exec_prefix"
16407 eval x=\"$x\"
16408 exec_prefix="$acl_save_exec_prefix"
16409 prefix="$acl_save_prefix"
16410
16411 if test "X$x" = "X$element"; then
16412 haveit=yes
16413 break
16414 fi
16415 done
16416 if test -z "$haveit"; then
16417 LIBS="${LIBS}${LIBS:+ }$element"
16418 fi
16419 done
16420
16421
16422 fi
16423
16424 ;; #(
16425 no) :
16426
16427 CY_EXECUTE=0
16428
16429 ;; #(
16430 JavaScriptCore) :
16431
16432
16433
16434 pkg_failed=no
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16436 $as_echo_n "checking for WEBKIT... " >&6; }
16437
16438 if test -n "$PKG_CONFIG"; then
16439 if test -n "$WEBKIT_CFLAGS"; then
16440 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16441 else
16442 if test -n "$PKG_CONFIG" && \
16443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16444 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16445 ac_status=$?
16446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16447 test $ac_status = 0; }; then
16448 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16449 else
16450 pkg_failed=yes
16451 fi
16452 fi
16453 else
16454 pkg_failed=untried
16455 fi
16456 if test -n "$PKG_CONFIG"; then
16457 if test -n "$WEBKIT_LIBS"; then
16458 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16459 else
16460 if test -n "$PKG_CONFIG" && \
16461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16462 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16463 ac_status=$?
16464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16465 test $ac_status = 0; }; then
16466 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16467 else
16468 pkg_failed=yes
16469 fi
16470 fi
16471 else
16472 pkg_failed=untried
16473 fi
16474
16475
16476
16477 if test $pkg_failed = yes; then
16478
16479 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16480 _pkg_short_errors_supported=yes
16481 else
16482 _pkg_short_errors_supported=no
16483 fi
16484 if test $_pkg_short_errors_supported = yes; then
16485 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
16486 else
16487 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
16488 fi
16489 # Put the nasty error message in config.log where it belongs
16490 echo "$WEBKIT_PKG_ERRORS" >&5
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493 $as_echo "no" >&6; }
16494
16495
16496 pkg_failed=no
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16498 $as_echo_n "checking for WEBKIT... " >&6; }
16499
16500 if test -n "$PKG_CONFIG"; then
16501 if test -n "$WEBKIT_CFLAGS"; then
16502 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16503 else
16504 if test -n "$PKG_CONFIG" && \
16505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16506 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16507 ac_status=$?
16508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16509 test $ac_status = 0; }; then
16510 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16511 else
16512 pkg_failed=yes
16513 fi
16514 fi
16515 else
16516 pkg_failed=untried
16517 fi
16518 if test -n "$PKG_CONFIG"; then
16519 if test -n "$WEBKIT_LIBS"; then
16520 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16521 else
16522 if test -n "$PKG_CONFIG" && \
16523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16524 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16525 ac_status=$?
16526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16527 test $ac_status = 0; }; then
16528 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16529 else
16530 pkg_failed=yes
16531 fi
16532 fi
16533 else
16534 pkg_failed=untried
16535 fi
16536
16537
16538
16539 if test $pkg_failed = yes; then
16540
16541 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16542 _pkg_short_errors_supported=yes
16543 else
16544 _pkg_short_errors_supported=no
16545 fi
16546 if test $_pkg_short_errors_supported = yes; then
16547 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16548 else
16549 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16550 fi
16551 # Put the nasty error message in config.log where it belongs
16552 echo "$WEBKIT_PKG_ERRORS" >&5
16553
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555 $as_echo "no" >&6; }
16556
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16559 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16560 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563
16564 ac_check_framework_save_LIBS=$LIBS
16565 LIBS="-framework JavaScriptCore $LIBS"
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16568
16569 #include <JavaScriptCore/JSBase.h>
16570
16571 int
16572 main ()
16573 {
16574 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16575 ;
16576 return 0;
16577 }
16578 _ACEOF
16579 if ac_fn_cxx_try_link "$LINENO"; then :
16580
16581 ac_cv_framework_JavaScriptCore=yes
16582
16583 else
16584 ac_cv_framework_JavaScriptCore=no
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext \
16587 conftest$ac_exeext conftest.$ac_ext
16588 LIBS=$ac_check_framework_save_LIBS
16589
16590 fi
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16592 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16593 if test $ac_cv_framework_JavaScriptCore = yes; then :
16594
16595
16596 for element in "-framework JavaScriptCore $LIBS"; do
16597 haveit=
16598 for x in $LIBS; do
16599
16600 acl_save_prefix="$prefix"
16601 prefix="$acl_final_prefix"
16602 acl_save_exec_prefix="$exec_prefix"
16603 exec_prefix="$acl_final_exec_prefix"
16604 eval x=\"$x\"
16605 exec_prefix="$acl_save_exec_prefix"
16606 prefix="$acl_save_prefix"
16607
16608 if test "X$x" = "X$element"; then
16609 haveit=yes
16610 break
16611 fi
16612 done
16613 if test -z "$haveit"; then
16614 LIBS="${LIBS}${LIBS:+ }$element"
16615 fi
16616 done
16617
16618 CY_EXECUTE=1
16619
16620 fi
16621
16622 elif test $pkg_failed = untried; then
16623
16624
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16626 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16627 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630
16631 ac_check_framework_save_LIBS=$LIBS
16632 LIBS="-framework JavaScriptCore $LIBS"
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16635
16636 #include <JavaScriptCore/JSBase.h>
16637
16638 int
16639 main ()
16640 {
16641 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16642 ;
16643 return 0;
16644 }
16645 _ACEOF
16646 if ac_fn_cxx_try_link "$LINENO"; then :
16647
16648 ac_cv_framework_JavaScriptCore=yes
16649
16650 else
16651 ac_cv_framework_JavaScriptCore=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655 LIBS=$ac_check_framework_save_LIBS
16656
16657 fi
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16659 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16660 if test $ac_cv_framework_JavaScriptCore = yes; then :
16661
16662
16663 for element in "-framework JavaScriptCore $LIBS"; do
16664 haveit=
16665 for x in $LIBS; do
16666
16667 acl_save_prefix="$prefix"
16668 prefix="$acl_final_prefix"
16669 acl_save_exec_prefix="$exec_prefix"
16670 exec_prefix="$acl_final_exec_prefix"
16671 eval x=\"$x\"
16672 exec_prefix="$acl_save_exec_prefix"
16673 prefix="$acl_save_prefix"
16674
16675 if test "X$x" = "X$element"; then
16676 haveit=yes
16677 break
16678 fi
16679 done
16680 if test -z "$haveit"; then
16681 LIBS="${LIBS}${LIBS:+ }$element"
16682 fi
16683 done
16684
16685 CY_EXECUTE=1
16686
16687 fi
16688
16689 else
16690 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16691 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16693 $as_echo "yes" >&6; }
16694
16695 CY_EXECUTE=1
16696
16697 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16698 haveit=
16699 for x in $CXXFLAGS; do
16700
16701 acl_save_prefix="$prefix"
16702 prefix="$acl_final_prefix"
16703 acl_save_exec_prefix="$exec_prefix"
16704 exec_prefix="$acl_final_exec_prefix"
16705 eval x=\"$x\"
16706 exec_prefix="$acl_save_exec_prefix"
16707 prefix="$acl_save_prefix"
16708
16709 if test "X$x" = "X$element"; then
16710 haveit=yes
16711 break
16712 fi
16713 done
16714 if test -z "$haveit"; then
16715 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16716 fi
16717 done
16718
16719
16720 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16721 haveit=
16722 for x in $LIBS; do
16723
16724 acl_save_prefix="$prefix"
16725 prefix="$acl_final_prefix"
16726 acl_save_exec_prefix="$exec_prefix"
16727 exec_prefix="$acl_final_exec_prefix"
16728 eval x=\"$x\"
16729 exec_prefix="$acl_save_exec_prefix"
16730 prefix="$acl_save_prefix"
16731
16732 if test "X$x" = "X$element"; then
16733 haveit=yes
16734 break
16735 fi
16736 done
16737 if test -z "$haveit"; then
16738 LIBS="${LIBS}${LIBS:+ }$element"
16739 fi
16740 done
16741
16742
16743 fi
16744
16745 elif test $pkg_failed = untried; then
16746
16747
16748 pkg_failed=no
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16750 $as_echo_n "checking for WEBKIT... " >&6; }
16751
16752 if test -n "$PKG_CONFIG"; then
16753 if test -n "$WEBKIT_CFLAGS"; then
16754 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16755 else
16756 if test -n "$PKG_CONFIG" && \
16757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16758 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16759 ac_status=$?
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }; then
16762 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16763 else
16764 pkg_failed=yes
16765 fi
16766 fi
16767 else
16768 pkg_failed=untried
16769 fi
16770 if test -n "$PKG_CONFIG"; then
16771 if test -n "$WEBKIT_LIBS"; then
16772 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16773 else
16774 if test -n "$PKG_CONFIG" && \
16775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16776 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16777 ac_status=$?
16778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16779 test $ac_status = 0; }; then
16780 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16781 else
16782 pkg_failed=yes
16783 fi
16784 fi
16785 else
16786 pkg_failed=untried
16787 fi
16788
16789
16790
16791 if test $pkg_failed = yes; then
16792
16793 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16794 _pkg_short_errors_supported=yes
16795 else
16796 _pkg_short_errors_supported=no
16797 fi
16798 if test $_pkg_short_errors_supported = yes; then
16799 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16800 else
16801 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16802 fi
16803 # Put the nasty error message in config.log where it belongs
16804 echo "$WEBKIT_PKG_ERRORS" >&5
16805
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16808
16809
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16811 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16812 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815
16816 ac_check_framework_save_LIBS=$LIBS
16817 LIBS="-framework JavaScriptCore $LIBS"
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16820
16821 #include <JavaScriptCore/JSBase.h>
16822
16823 int
16824 main ()
16825 {
16826 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16827 ;
16828 return 0;
16829 }
16830 _ACEOF
16831 if ac_fn_cxx_try_link "$LINENO"; then :
16832
16833 ac_cv_framework_JavaScriptCore=yes
16834
16835 else
16836 ac_cv_framework_JavaScriptCore=no
16837 fi
16838 rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840 LIBS=$ac_check_framework_save_LIBS
16841
16842 fi
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16844 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16845 if test $ac_cv_framework_JavaScriptCore = yes; then :
16846
16847
16848 for element in "-framework JavaScriptCore $LIBS"; do
16849 haveit=
16850 for x in $LIBS; do
16851
16852 acl_save_prefix="$prefix"
16853 prefix="$acl_final_prefix"
16854 acl_save_exec_prefix="$exec_prefix"
16855 exec_prefix="$acl_final_exec_prefix"
16856 eval x=\"$x\"
16857 exec_prefix="$acl_save_exec_prefix"
16858 prefix="$acl_save_prefix"
16859
16860 if test "X$x" = "X$element"; then
16861 haveit=yes
16862 break
16863 fi
16864 done
16865 if test -z "$haveit"; then
16866 LIBS="${LIBS}${LIBS:+ }$element"
16867 fi
16868 done
16869
16870 CY_EXECUTE=1
16871
16872 fi
16873
16874 elif test $pkg_failed = untried; then
16875
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16878 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16879 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16880 $as_echo_n "(cached) " >&6
16881 else
16882
16883 ac_check_framework_save_LIBS=$LIBS
16884 LIBS="-framework JavaScriptCore $LIBS"
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887
16888 #include <JavaScriptCore/JSBase.h>
16889
16890 int
16891 main ()
16892 {
16893 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16894 ;
16895 return 0;
16896 }
16897 _ACEOF
16898 if ac_fn_cxx_try_link "$LINENO"; then :
16899
16900 ac_cv_framework_JavaScriptCore=yes
16901
16902 else
16903 ac_cv_framework_JavaScriptCore=no
16904 fi
16905 rm -f core conftest.err conftest.$ac_objext \
16906 conftest$ac_exeext conftest.$ac_ext
16907 LIBS=$ac_check_framework_save_LIBS
16908
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16911 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16912 if test $ac_cv_framework_JavaScriptCore = yes; then :
16913
16914
16915 for element in "-framework JavaScriptCore $LIBS"; do
16916 haveit=
16917 for x in $LIBS; do
16918
16919 acl_save_prefix="$prefix"
16920 prefix="$acl_final_prefix"
16921 acl_save_exec_prefix="$exec_prefix"
16922 exec_prefix="$acl_final_exec_prefix"
16923 eval x=\"$x\"
16924 exec_prefix="$acl_save_exec_prefix"
16925 prefix="$acl_save_prefix"
16926
16927 if test "X$x" = "X$element"; then
16928 haveit=yes
16929 break
16930 fi
16931 done
16932 if test -z "$haveit"; then
16933 LIBS="${LIBS}${LIBS:+ }$element"
16934 fi
16935 done
16936
16937 CY_EXECUTE=1
16938
16939 fi
16940
16941 else
16942 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16943 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16945 $as_echo "yes" >&6; }
16946
16947 CY_EXECUTE=1
16948
16949 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16950 haveit=
16951 for x in $CXXFLAGS; do
16952
16953 acl_save_prefix="$prefix"
16954 prefix="$acl_final_prefix"
16955 acl_save_exec_prefix="$exec_prefix"
16956 exec_prefix="$acl_final_exec_prefix"
16957 eval x=\"$x\"
16958 exec_prefix="$acl_save_exec_prefix"
16959 prefix="$acl_save_prefix"
16960
16961 if test "X$x" = "X$element"; then
16962 haveit=yes
16963 break
16964 fi
16965 done
16966 if test -z "$haveit"; then
16967 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16968 fi
16969 done
16970
16971
16972 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16973 haveit=
16974 for x in $LIBS; do
16975
16976 acl_save_prefix="$prefix"
16977 prefix="$acl_final_prefix"
16978 acl_save_exec_prefix="$exec_prefix"
16979 exec_prefix="$acl_final_exec_prefix"
16980 eval x=\"$x\"
16981 exec_prefix="$acl_save_exec_prefix"
16982 prefix="$acl_save_prefix"
16983
16984 if test "X$x" = "X$element"; then
16985 haveit=yes
16986 break
16987 fi
16988 done
16989 if test -z "$haveit"; then
16990 LIBS="${LIBS}${LIBS:+ }$element"
16991 fi
16992 done
16993
16994
16995 fi
16996
16997 else
16998 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16999 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17001 $as_echo "yes" >&6; }
17002
17003 CY_EXECUTE=1
17004
17005 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17006 haveit=
17007 for x in $CXXFLAGS; do
17008
17009 acl_save_prefix="$prefix"
17010 prefix="$acl_final_prefix"
17011 acl_save_exec_prefix="$exec_prefix"
17012 exec_prefix="$acl_final_exec_prefix"
17013 eval x=\"$x\"
17014 exec_prefix="$acl_save_exec_prefix"
17015 prefix="$acl_save_prefix"
17016
17017 if test "X$x" = "X$element"; then
17018 haveit=yes
17019 break
17020 fi
17021 done
17022 if test -z "$haveit"; then
17023 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17024 fi
17025 done
17026
17027
17028 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17029 haveit=
17030 for x in $LIBS; do
17031
17032 acl_save_prefix="$prefix"
17033 prefix="$acl_final_prefix"
17034 acl_save_exec_prefix="$exec_prefix"
17035 exec_prefix="$acl_final_exec_prefix"
17036 eval x=\"$x\"
17037 exec_prefix="$acl_save_exec_prefix"
17038 prefix="$acl_save_prefix"
17039
17040 if test "X$x" = "X$element"; then
17041 haveit=yes
17042 break
17043 fi
17044 done
17045 if test -z "$haveit"; then
17046 LIBS="${LIBS}${LIBS:+ }$element"
17047 fi
17048 done
17049
17050
17051 fi
17052
17053 ;; #(
17054 *) :
17055 as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
17056 esac
17057
17058 else
17059
17060
17061
17062 pkg_failed=no
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17064 $as_echo_n "checking for WEBKIT... " >&6; }
17065
17066 if test -n "$PKG_CONFIG"; then
17067 if test -n "$WEBKIT_CFLAGS"; then
17068 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17069 else
17070 if test -n "$PKG_CONFIG" && \
17071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17072 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17073 ac_status=$?
17074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17075 test $ac_status = 0; }; then
17076 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17077 else
17078 pkg_failed=yes
17079 fi
17080 fi
17081 else
17082 pkg_failed=untried
17083 fi
17084 if test -n "$PKG_CONFIG"; then
17085 if test -n "$WEBKIT_LIBS"; then
17086 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17087 else
17088 if test -n "$PKG_CONFIG" && \
17089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17090 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17091 ac_status=$?
17092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093 test $ac_status = 0; }; then
17094 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17095 else
17096 pkg_failed=yes
17097 fi
17098 fi
17099 else
17100 pkg_failed=untried
17101 fi
17102
17103
17104
17105 if test $pkg_failed = yes; then
17106
17107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17108 _pkg_short_errors_supported=yes
17109 else
17110 _pkg_short_errors_supported=no
17111 fi
17112 if test $_pkg_short_errors_supported = yes; then
17113 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
17114 else
17115 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
17116 fi
17117 # Put the nasty error message in config.log where it belongs
17118 echo "$WEBKIT_PKG_ERRORS" >&5
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17121 $as_echo "no" >&6; }
17122
17123
17124 pkg_failed=no
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17126 $as_echo_n "checking for WEBKIT... " >&6; }
17127
17128 if test -n "$PKG_CONFIG"; then
17129 if test -n "$WEBKIT_CFLAGS"; then
17130 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17131 else
17132 if test -n "$PKG_CONFIG" && \
17133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17134 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17135 ac_status=$?
17136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137 test $ac_status = 0; }; then
17138 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17139 else
17140 pkg_failed=yes
17141 fi
17142 fi
17143 else
17144 pkg_failed=untried
17145 fi
17146 if test -n "$PKG_CONFIG"; then
17147 if test -n "$WEBKIT_LIBS"; then
17148 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17149 else
17150 if test -n "$PKG_CONFIG" && \
17151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17152 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17153 ac_status=$?
17154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17155 test $ac_status = 0; }; then
17156 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17157 else
17158 pkg_failed=yes
17159 fi
17160 fi
17161 else
17162 pkg_failed=untried
17163 fi
17164
17165
17166
17167 if test $pkg_failed = yes; then
17168
17169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17170 _pkg_short_errors_supported=yes
17171 else
17172 _pkg_short_errors_supported=no
17173 fi
17174 if test $_pkg_short_errors_supported = yes; then
17175 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
17176 else
17177 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
17178 fi
17179 # Put the nasty error message in config.log where it belongs
17180 echo "$WEBKIT_PKG_ERRORS" >&5
17181
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17184
17185
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17187 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17188 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17189 $as_echo_n "(cached) " >&6
17190 else
17191
17192 ac_check_framework_save_LIBS=$LIBS
17193 LIBS="-framework JavaScriptCore $LIBS"
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17196
17197 #include <JavaScriptCore/JSBase.h>
17198
17199 int
17200 main ()
17201 {
17202 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 if ac_fn_cxx_try_link "$LINENO"; then :
17208
17209 ac_cv_framework_JavaScriptCore=yes
17210
17211 else
17212 ac_cv_framework_JavaScriptCore=no
17213 fi
17214 rm -f core conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_framework_save_LIBS
17217
17218 fi
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17220 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17221 if test $ac_cv_framework_JavaScriptCore = yes; then :
17222
17223
17224 for element in "-framework JavaScriptCore $LIBS"; do
17225 haveit=
17226 for x in $LIBS; do
17227
17228 acl_save_prefix="$prefix"
17229 prefix="$acl_final_prefix"
17230 acl_save_exec_prefix="$exec_prefix"
17231 exec_prefix="$acl_final_exec_prefix"
17232 eval x=\"$x\"
17233 exec_prefix="$acl_save_exec_prefix"
17234 prefix="$acl_save_prefix"
17235
17236 if test "X$x" = "X$element"; then
17237 haveit=yes
17238 break
17239 fi
17240 done
17241 if test -z "$haveit"; then
17242 LIBS="${LIBS}${LIBS:+ }$element"
17243 fi
17244 done
17245
17246 CY_EXECUTE=1
17247
17248 fi
17249
17250 elif test $pkg_failed = untried; then
17251
17252
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17254 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17255 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17256 $as_echo_n "(cached) " >&6
17257 else
17258
17259 ac_check_framework_save_LIBS=$LIBS
17260 LIBS="-framework JavaScriptCore $LIBS"
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17263
17264 #include <JavaScriptCore/JSBase.h>
17265
17266 int
17267 main ()
17268 {
17269 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_cxx_try_link "$LINENO"; then :
17275
17276 ac_cv_framework_JavaScriptCore=yes
17277
17278 else
17279 ac_cv_framework_JavaScriptCore=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_JavaScriptCore" >&5
17287 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17288 if test $ac_cv_framework_JavaScriptCore = yes; then :
17289
17290
17291 for element in "-framework JavaScriptCore $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 CY_EXECUTE=1
17314
17315 fi
17316
17317 else
17318 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17319 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321 $as_echo "yes" >&6; }
17322
17323 CY_EXECUTE=1
17324
17325 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17326 haveit=
17327 for x in $CXXFLAGS; do
17328
17329 acl_save_prefix="$prefix"
17330 prefix="$acl_final_prefix"
17331 acl_save_exec_prefix="$exec_prefix"
17332 exec_prefix="$acl_final_exec_prefix"
17333 eval x=\"$x\"
17334 exec_prefix="$acl_save_exec_prefix"
17335 prefix="$acl_save_prefix"
17336
17337 if test "X$x" = "X$element"; then
17338 haveit=yes
17339 break
17340 fi
17341 done
17342 if test -z "$haveit"; then
17343 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17344 fi
17345 done
17346
17347
17348 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17349 haveit=
17350 for x in $LIBS; do
17351
17352 acl_save_prefix="$prefix"
17353 prefix="$acl_final_prefix"
17354 acl_save_exec_prefix="$exec_prefix"
17355 exec_prefix="$acl_final_exec_prefix"
17356 eval x=\"$x\"
17357 exec_prefix="$acl_save_exec_prefix"
17358 prefix="$acl_save_prefix"
17359
17360 if test "X$x" = "X$element"; then
17361 haveit=yes
17362 break
17363 fi
17364 done
17365 if test -z "$haveit"; then
17366 LIBS="${LIBS}${LIBS:+ }$element"
17367 fi
17368 done
17369
17370
17371 fi
17372
17373 elif test $pkg_failed = untried; then
17374
17375
17376 pkg_failed=no
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17378 $as_echo_n "checking for WEBKIT... " >&6; }
17379
17380 if test -n "$PKG_CONFIG"; then
17381 if test -n "$WEBKIT_CFLAGS"; then
17382 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17383 else
17384 if test -n "$PKG_CONFIG" && \
17385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17386 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17387 ac_status=$?
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; then
17390 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17391 else
17392 pkg_failed=yes
17393 fi
17394 fi
17395 else
17396 pkg_failed=untried
17397 fi
17398 if test -n "$PKG_CONFIG"; then
17399 if test -n "$WEBKIT_LIBS"; then
17400 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17401 else
17402 if test -n "$PKG_CONFIG" && \
17403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17404 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17405 ac_status=$?
17406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17407 test $ac_status = 0; }; then
17408 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17409 else
17410 pkg_failed=yes
17411 fi
17412 fi
17413 else
17414 pkg_failed=untried
17415 fi
17416
17417
17418
17419 if test $pkg_failed = yes; then
17420
17421 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17422 _pkg_short_errors_supported=yes
17423 else
17424 _pkg_short_errors_supported=no
17425 fi
17426 if test $_pkg_short_errors_supported = yes; then
17427 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
17428 else
17429 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
17430 fi
17431 # Put the nasty error message in config.log where it belongs
17432 echo "$WEBKIT_PKG_ERRORS" >&5
17433
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17435 $as_echo "no" >&6; }
17436
17437
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17439 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17440 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443
17444 ac_check_framework_save_LIBS=$LIBS
17445 LIBS="-framework JavaScriptCore $LIBS"
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17448
17449 #include <JavaScriptCore/JSBase.h>
17450
17451 int
17452 main ()
17453 {
17454 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17455 ;
17456 return 0;
17457 }
17458 _ACEOF
17459 if ac_fn_cxx_try_link "$LINENO"; then :
17460
17461 ac_cv_framework_JavaScriptCore=yes
17462
17463 else
17464 ac_cv_framework_JavaScriptCore=no
17465 fi
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_framework_save_LIBS
17469
17470 fi
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17472 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17473 if test $ac_cv_framework_JavaScriptCore = yes; then :
17474
17475
17476 for element in "-framework JavaScriptCore $LIBS"; do
17477 haveit=
17478 for x in $LIBS; do
17479
17480 acl_save_prefix="$prefix"
17481 prefix="$acl_final_prefix"
17482 acl_save_exec_prefix="$exec_prefix"
17483 exec_prefix="$acl_final_exec_prefix"
17484 eval x=\"$x\"
17485 exec_prefix="$acl_save_exec_prefix"
17486 prefix="$acl_save_prefix"
17487
17488 if test "X$x" = "X$element"; then
17489 haveit=yes
17490 break
17491 fi
17492 done
17493 if test -z "$haveit"; then
17494 LIBS="${LIBS}${LIBS:+ }$element"
17495 fi
17496 done
17497
17498 CY_EXECUTE=1
17499
17500 fi
17501
17502 elif test $pkg_failed = untried; then
17503
17504
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17506 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17507 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
17508 $as_echo_n "(cached) " >&6
17509 else
17510
17511 ac_check_framework_save_LIBS=$LIBS
17512 LIBS="-framework JavaScriptCore $LIBS"
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515
17516 #include <JavaScriptCore/JSBase.h>
17517
17518 int
17519 main ()
17520 {
17521 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17522 ;
17523 return 0;
17524 }
17525 _ACEOF
17526 if ac_fn_cxx_try_link "$LINENO"; then :
17527
17528 ac_cv_framework_JavaScriptCore=yes
17529
17530 else
17531 ac_cv_framework_JavaScriptCore=no
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535 LIBS=$ac_check_framework_save_LIBS
17536
17537 fi
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17539 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17540 if test $ac_cv_framework_JavaScriptCore = yes; then :
17541
17542
17543 for element in "-framework JavaScriptCore $LIBS"; do
17544 haveit=
17545 for x in $LIBS; do
17546
17547 acl_save_prefix="$prefix"
17548 prefix="$acl_final_prefix"
17549 acl_save_exec_prefix="$exec_prefix"
17550 exec_prefix="$acl_final_exec_prefix"
17551 eval x=\"$x\"
17552 exec_prefix="$acl_save_exec_prefix"
17553 prefix="$acl_save_prefix"
17554
17555 if test "X$x" = "X$element"; then
17556 haveit=yes
17557 break
17558 fi
17559 done
17560 if test -z "$haveit"; then
17561 LIBS="${LIBS}${LIBS:+ }$element"
17562 fi
17563 done
17564
17565 CY_EXECUTE=1
17566
17567 fi
17568
17569 else
17570 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17571 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17573 $as_echo "yes" >&6; }
17574
17575 CY_EXECUTE=1
17576
17577 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17578 haveit=
17579 for x in $CXXFLAGS; do
17580
17581 acl_save_prefix="$prefix"
17582 prefix="$acl_final_prefix"
17583 acl_save_exec_prefix="$exec_prefix"
17584 exec_prefix="$acl_final_exec_prefix"
17585 eval x=\"$x\"
17586 exec_prefix="$acl_save_exec_prefix"
17587 prefix="$acl_save_prefix"
17588
17589 if test "X$x" = "X$element"; then
17590 haveit=yes
17591 break
17592 fi
17593 done
17594 if test -z "$haveit"; then
17595 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17596 fi
17597 done
17598
17599
17600 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17601 haveit=
17602 for x in $LIBS; do
17603
17604 acl_save_prefix="$prefix"
17605 prefix="$acl_final_prefix"
17606 acl_save_exec_prefix="$exec_prefix"
17607 exec_prefix="$acl_final_exec_prefix"
17608 eval x=\"$x\"
17609 exec_prefix="$acl_save_exec_prefix"
17610 prefix="$acl_save_prefix"
17611
17612 if test "X$x" = "X$element"; then
17613 haveit=yes
17614 break
17615 fi
17616 done
17617 if test -z "$haveit"; then
17618 LIBS="${LIBS}${LIBS:+ }$element"
17619 fi
17620 done
17621
17622
17623 fi
17624
17625 else
17626 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17627 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17629 $as_echo "yes" >&6; }
17630
17631 CY_EXECUTE=1
17632
17633 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17634 haveit=
17635 for x in $CXXFLAGS; do
17636
17637 acl_save_prefix="$prefix"
17638 prefix="$acl_final_prefix"
17639 acl_save_exec_prefix="$exec_prefix"
17640 exec_prefix="$acl_final_exec_prefix"
17641 eval x=\"$x\"
17642 exec_prefix="$acl_save_exec_prefix"
17643 prefix="$acl_save_prefix"
17644
17645 if test "X$x" = "X$element"; then
17646 haveit=yes
17647 break
17648 fi
17649 done
17650 if test -z "$haveit"; then
17651 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17652 fi
17653 done
17654
17655
17656 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17657 haveit=
17658 for x in $LIBS; do
17659
17660 acl_save_prefix="$prefix"
17661 prefix="$acl_final_prefix"
17662 acl_save_exec_prefix="$exec_prefix"
17663 exec_prefix="$acl_final_exec_prefix"
17664 eval x=\"$x\"
17665 exec_prefix="$acl_save_exec_prefix"
17666 prefix="$acl_save_prefix"
17667
17668 if test "X$x" = "X$element"; then
17669 haveit=yes
17670 break
17671 fi
17672 done
17673 if test -z "$haveit"; then
17674 LIBS="${LIBS}${LIBS:+ }$element"
17675 fi
17676 done
17677
17678
17679 fi
17680
17681
17682 fi
17683
17684
17685 case $CY_EXECUTE in #(
17686 1) :
17687
17688
17689
17690 pkg_failed=no
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17692 $as_echo_n "checking for LIBFFI... " >&6; }
17693
17694 if test -n "$PKG_CONFIG"; then
17695 if test -n "$LIBFFI_CFLAGS"; then
17696 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17697 else
17698 if test -n "$PKG_CONFIG" && \
17699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17700 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17701 ac_status=$?
17702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17703 test $ac_status = 0; }; then
17704 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17705 else
17706 pkg_failed=yes
17707 fi
17708 fi
17709 else
17710 pkg_failed=untried
17711 fi
17712 if test -n "$PKG_CONFIG"; then
17713 if test -n "$LIBFFI_LIBS"; then
17714 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17715 else
17716 if test -n "$PKG_CONFIG" && \
17717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17718 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17719 ac_status=$?
17720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17721 test $ac_status = 0; }; then
17722 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17723 else
17724 pkg_failed=yes
17725 fi
17726 fi
17727 else
17728 pkg_failed=untried
17729 fi
17730
17731
17732
17733 if test $pkg_failed = yes; then
17734
17735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17736 _pkg_short_errors_supported=yes
17737 else
17738 _pkg_short_errors_supported=no
17739 fi
17740 if test $_pkg_short_errors_supported = yes; then
17741 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
17742 else
17743 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
17744 fi
17745 # Put the nasty error message in config.log where it belongs
17746 echo "$LIBFFI_PKG_ERRORS" >&5
17747
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17749 $as_echo "no" >&6; }
17750
17751 for ac_header in ffi.h ffi/ffi.h
17752 do :
17753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17754 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17755 eval as_val=\$$as_ac_Header
17756 if test "x$as_val" = x""yes; then :
17757 cat >>confdefs.h <<_ACEOF
17758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17759 _ACEOF
17760 break
17761 fi
17762
17763 done
17764
17765 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17766
17767 as_fn_error "You need libffi" "$LINENO" 5
17768
17769 fi
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17771 $as_echo_n "checking for library containing ffi_call... " >&6; }
17772 if test "${ac_cv_search_ffi_call+set}" = set; then :
17773 $as_echo_n "(cached) " >&6
17774 else
17775 ac_func_search_save_LIBS=$LIBS
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17778
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 char ffi_call ();
17786 int
17787 main ()
17788 {
17789 return ffi_call ();
17790 ;
17791 return 0;
17792 }
17793 _ACEOF
17794 for ac_lib in '' ffi; do
17795 if test -z "$ac_lib"; then
17796 ac_res="none required"
17797 else
17798 ac_res=-l$ac_lib
17799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17800 fi
17801 if ac_fn_cxx_try_link "$LINENO"; then :
17802 ac_cv_search_ffi_call=$ac_res
17803 fi
17804 rm -f core conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext
17806 if test "${ac_cv_search_ffi_call+set}" = set; then :
17807 break
17808 fi
17809 done
17810 if test "${ac_cv_search_ffi_call+set}" = set; then :
17811
17812 else
17813 ac_cv_search_ffi_call=no
17814 fi
17815 rm conftest.$ac_ext
17816 LIBS=$ac_func_search_save_LIBS
17817 fi
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17819 $as_echo "$ac_cv_search_ffi_call" >&6; }
17820 ac_res=$ac_cv_search_ffi_call
17821 if test "$ac_res" != no; then :
17822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17823
17824 fi
17825
17826 case $ac_cv_search_ffi_call in #(
17827 no) :
17828
17829 as_fn_error "You need libffi" "$LINENO" 5
17830 ;; #(
17831 *) :
17832 ;;
17833 esac
17834
17835 elif test $pkg_failed = untried; then
17836
17837 for ac_header in ffi.h ffi/ffi.h
17838 do :
17839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17840 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17841 eval as_val=\$$as_ac_Header
17842 if test "x$as_val" = x""yes; then :
17843 cat >>confdefs.h <<_ACEOF
17844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17845 _ACEOF
17846 break
17847 fi
17848
17849 done
17850
17851 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17852
17853 as_fn_error "You need libffi" "$LINENO" 5
17854
17855 fi
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17857 $as_echo_n "checking for library containing ffi_call... " >&6; }
17858 if test "${ac_cv_search_ffi_call+set}" = set; then :
17859 $as_echo_n "(cached) " >&6
17860 else
17861 ac_func_search_save_LIBS=$LIBS
17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17864
17865 /* Override any GCC internal prototype to avoid an error.
17866 Use char because int might match the return type of a GCC
17867 builtin and then its argument prototype would still apply. */
17868 #ifdef __cplusplus
17869 extern "C"
17870 #endif
17871 char ffi_call ();
17872 int
17873 main ()
17874 {
17875 return ffi_call ();
17876 ;
17877 return 0;
17878 }
17879 _ACEOF
17880 for ac_lib in '' ffi; do
17881 if test -z "$ac_lib"; then
17882 ac_res="none required"
17883 else
17884 ac_res=-l$ac_lib
17885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17886 fi
17887 if ac_fn_cxx_try_link "$LINENO"; then :
17888 ac_cv_search_ffi_call=$ac_res
17889 fi
17890 rm -f core conftest.err conftest.$ac_objext \
17891 conftest$ac_exeext
17892 if test "${ac_cv_search_ffi_call+set}" = set; then :
17893 break
17894 fi
17895 done
17896 if test "${ac_cv_search_ffi_call+set}" = set; then :
17897
17898 else
17899 ac_cv_search_ffi_call=no
17900 fi
17901 rm conftest.$ac_ext
17902 LIBS=$ac_func_search_save_LIBS
17903 fi
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17905 $as_echo "$ac_cv_search_ffi_call" >&6; }
17906 ac_res=$ac_cv_search_ffi_call
17907 if test "$ac_res" != no; then :
17908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17909
17910 fi
17911
17912 case $ac_cv_search_ffi_call in #(
17913 no) :
17914
17915 as_fn_error "You need libffi" "$LINENO" 5
17916 ;; #(
17917 *) :
17918 ;;
17919 esac
17920
17921 else
17922 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17923 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17925 $as_echo "yes" >&6; }
17926
17927
17928 for element in `$PKG_CONFIG --cflags libffi`; do
17929 haveit=
17930 for x in $CXXFLAGS; do
17931
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17936 eval x=\"$x\"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17939
17940 if test "X$x" = "X$element"; then
17941 haveit=yes
17942 break
17943 fi
17944 done
17945 if test -z "$haveit"; then
17946 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17947 fi
17948 done
17949
17950
17951 for element in `$PKG_CONFIG --libs libffi`; do
17952 haveit=
17953 for x in $LIBS; do
17954
17955 acl_save_prefix="$prefix"
17956 prefix="$acl_final_prefix"
17957 acl_save_exec_prefix="$exec_prefix"
17958 exec_prefix="$acl_final_exec_prefix"
17959 eval x=\"$x\"
17960 exec_prefix="$acl_save_exec_prefix"
17961 prefix="$acl_save_prefix"
17962
17963 if test "X$x" = "X$element"; then
17964 haveit=yes
17965 break
17966 fi
17967 done
17968 if test -z "$haveit"; then
17969 LIBS="${LIBS}${LIBS:+ }$element"
17970 fi
17971 done
17972
17973
17974 fi
17975 ac_ext=mm
17976 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17977 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17980
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17982 $as_echo_n "checking if we really have Objective C++... " >&6; }
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985
17986 // This space intentionally left blank
17987
17988 _ACEOF
17989 if ac_fn_objcxx_try_compile "$LINENO"; then :
17990
17991 CY_OBJECTIVEC=1
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17993 $as_echo "yes" >&6; }
17994
17995 else
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17997 $as_echo "no" >&6; }
17998 fi
17999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000 if test "x$CY_OBJECTIVEC" = x1; then :
18001
18002
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
18004 $as_echo_n "checking for framework CoreFoundation... " >&6; }
18005 if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
18006 $as_echo_n "(cached) " >&6
18007 else
18008
18009 ac_check_framework_save_LIBS=$LIBS
18010 LIBS="-framework CoreFoundation $LIBS"
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013
18014 #include <CoreFoundation/CFBase.h>
18015
18016 int
18017 main ()
18018 {
18019 CFAllocatorGetDefault();
18020 ;
18021 return 0;
18022 }
18023 _ACEOF
18024 if ac_fn_objcxx_try_link "$LINENO"; then :
18025
18026 ac_cv_framework_CoreFoundation=yes
18027
18028 else
18029 ac_cv_framework_CoreFoundation=no
18030 fi
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18033 LIBS=$ac_check_framework_save_LIBS
18034
18035 fi
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18037 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18038 if test $ac_cv_framework_CoreFoundation = yes; then :
18039
18040
18041 for element in "-framework CoreFoundation $LIBS"; do
18042 haveit=
18043 for x in $LIBS; do
18044
18045 acl_save_prefix="$prefix"
18046 prefix="$acl_final_prefix"
18047 acl_save_exec_prefix="$exec_prefix"
18048 exec_prefix="$acl_final_exec_prefix"
18049 eval x=\"$x\"
18050 exec_prefix="$acl_save_exec_prefix"
18051 prefix="$acl_save_prefix"
18052
18053 if test "X$x" = "X$element"; then
18054 haveit=yes
18055 break
18056 fi
18057 done
18058 if test -z "$haveit"; then
18059 LIBS="${LIBS}${LIBS:+ }$element"
18060 fi
18061 done
18062
18063
18064
18065
18066
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18068 $as_echo_n "checking for framework Foundation... " >&6; }
18069 if test "${ac_cv_framework_Foundation+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18071 else
18072
18073 ac_check_framework_save_LIBS=$LIBS
18074 LIBS="-framework Foundation $LIBS"
18075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18076 /* end confdefs.h. */
18077
18078 #include <Foundation/NSObject.h>
18079
18080 int
18081 main ()
18082 {
18083 [[NSObject alloc] init];
18084 ;
18085 return 0;
18086 }
18087 _ACEOF
18088 if ac_fn_objcxx_try_link "$LINENO"; then :
18089
18090 ac_cv_framework_Foundation=yes
18091
18092 else
18093 ac_cv_framework_Foundation=no
18094 fi
18095 rm -f core conftest.err conftest.$ac_objext \
18096 conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_framework_save_LIBS
18098
18099 fi
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18101 $as_echo "$ac_cv_framework_Foundation" >&6; }
18102 if test $ac_cv_framework_Foundation = yes; then :
18103
18104
18105 for element in "-framework Foundation $LIBS"; do
18106 haveit=
18107 for x in $LIBS; do
18108
18109 acl_save_prefix="$prefix"
18110 prefix="$acl_final_prefix"
18111 acl_save_exec_prefix="$exec_prefix"
18112 exec_prefix="$acl_final_exec_prefix"
18113 eval x=\"$x\"
18114 exec_prefix="$acl_save_exec_prefix"
18115 prefix="$acl_save_prefix"
18116
18117 if test "X$x" = "X$element"; then
18118 haveit=yes
18119 break
18120 fi
18121 done
18122 if test -z "$haveit"; then
18123 LIBS="${LIBS}${LIBS:+ }$element"
18124 fi
18125 done
18126
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_FRAMEWORK_FOUNDATION 1
18129 _ACEOF
18130
18131
18132 fi
18133
18134
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18136 $as_echo_n "checking for framework WebKit... " >&6; }
18137 if test "${ac_cv_framework_WebKit+set}" = set; then :
18138 $as_echo_n "(cached) " >&6
18139 else
18140
18141 ac_check_framework_save_LIBS=$LIBS
18142 LIBS="-framework WebKit $LIBS"
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18145
18146 #include <WebKit/WebScriptObject.h>
18147
18148 int
18149 main ()
18150 {
18151 [[WebScriptObject alloc] init];
18152 ;
18153 return 0;
18154 }
18155 _ACEOF
18156 if ac_fn_objcxx_try_link "$LINENO"; then :
18157
18158 ac_cv_framework_WebKit=yes
18159
18160 else
18161 ac_cv_framework_WebKit=no
18162 fi
18163 rm -f core conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_framework_save_LIBS
18166
18167 fi
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18169 $as_echo "$ac_cv_framework_WebKit" >&6; }
18170 if test $ac_cv_framework_WebKit = yes; then :
18171
18172
18173 for element in "-framework WebKit $LIBS"; do
18174 haveit=
18175 for x in $LIBS; do
18176
18177 acl_save_prefix="$prefix"
18178 prefix="$acl_final_prefix"
18179 acl_save_exec_prefix="$exec_prefix"
18180 exec_prefix="$acl_final_exec_prefix"
18181 eval x=\"$x\"
18182 exec_prefix="$acl_save_exec_prefix"
18183 prefix="$acl_save_prefix"
18184
18185 if test "X$x" = "X$element"; then
18186 haveit=yes
18187 break
18188 fi
18189 done
18190 if test -z "$haveit"; then
18191 LIBS="${LIBS}${LIBS:+ }$element"
18192 fi
18193 done
18194
18195 cat >>confdefs.h <<_ACEOF
18196 #define HAVE_FRAMEWORK_WEBKIT 1
18197 _ACEOF
18198
18199
18200 fi
18201
18202
18203 else
18204
18205
18206 for ac_prog in gnustep-config
18207 do
18208 # Extract the first word of "$ac_prog", so it can be a program name with args.
18209 set dummy $ac_prog; ac_word=$2
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18211 $as_echo_n "checking for $ac_word... " >&6; }
18212 if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
18213 $as_echo_n "(cached) " >&6
18214 else
18215 if test -n "$GNUSTEP_CONFIG"; then
18216 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18217 else
18218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18219 for as_dir in $PATH
18220 do
18221 IFS=$as_save_IFS
18222 test -z "$as_dir" && as_dir=.
18223 for ac_exec_ext in '' $ac_executable_extensions; do
18224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18225 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18227 break 2
18228 fi
18229 done
18230 done
18231 IFS=$as_save_IFS
18232
18233 fi
18234 fi
18235 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18236 if test -n "$GNUSTEP_CONFIG"; then
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18238 $as_echo "$GNUSTEP_CONFIG" >&6; }
18239 else
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18242 fi
18243
18244
18245 test -n "$GNUSTEP_CONFIG" && break
18246 done
18247
18248 if test "x$GNUSTEP_CONFIG" != x; then :
18249
18250
18251
18252 for element in `$GNUSTEP_CONFIG --objc-flags`; do
18253 haveit=
18254 for x in $OBJCXXFLAGS; do
18255
18256 acl_save_prefix="$prefix"
18257 prefix="$acl_final_prefix"
18258 acl_save_exec_prefix="$exec_prefix"
18259 exec_prefix="$acl_final_exec_prefix"
18260 eval x=\"$x\"
18261 exec_prefix="$acl_save_exec_prefix"
18262 prefix="$acl_save_prefix"
18263
18264 if test "X$x" = "X$element"; then
18265 haveit=yes
18266 break
18267 fi
18268 done
18269 if test -z "$haveit"; then
18270 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18271 fi
18272 done
18273
18274
18275 for element in `$GNUSTEP_CONFIG --base-libs`; do
18276 haveit=
18277 for x in $LIBS; do
18278
18279 acl_save_prefix="$prefix"
18280 prefix="$acl_final_prefix"
18281 acl_save_exec_prefix="$exec_prefix"
18282 exec_prefix="$acl_final_exec_prefix"
18283 eval x=\"$x\"
18284 exec_prefix="$acl_save_exec_prefix"
18285 prefix="$acl_save_prefix"
18286
18287 if test "X$x" = "X$element"; then
18288 haveit=yes
18289 break
18290 fi
18291 done
18292 if test -z "$haveit"; then
18293 LIBS="${LIBS}${LIBS:+ }$element"
18294 fi
18295 done
18296
18297
18298 else
18299 CY_OBJECTIVEC=0
18300
18301 fi
18302
18303 fi
18304
18305 fi
18306 ac_ext=cpp
18307 ac_cpp='$CXXCPP $CPPFLAGS'
18308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18311
18312 ;; #(
18313 *) :
18314 ;;
18315 esac
18316 if test "x$CY_OBJECTIVEC" = x1; then :
18317
18318 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18319 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18320
18321 case $OTOOL in #(
18322 :) :
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5
18324 $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #(
18325 *) :
18326 CY_OBJECTIVEC_MACH=1
18327 ;;
18328 esac
18329
18330 fi
18331
18332
18333
18334 fi
18335 if test "x$GMAKE" != xmake; then :
18336
18337 ac_config_files="$ac_config_files Makefile"
18338
18339
18340 fi
18341 ac_config_files="$ac_config_files GNUmakefile"
18342
18343 cat >confcache <<\_ACEOF
18344 # This file is a shell script that caches the results of configure
18345 # tests run on this system so they can be shared between configure
18346 # scripts and configure runs, see configure's option --config-cache.
18347 # It is not useful on other systems. If it contains results you don't
18348 # want to keep, you may remove or edit it.
18349 #
18350 # config.status only pays attention to the cache file if you give it
18351 # the --recheck option to rerun configure.
18352 #
18353 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18355 # following values.
18356
18357 _ACEOF
18358
18359 # The following way of writing the cache mishandles newlines in values,
18360 # but we know of no workaround that is simple, portable, and efficient.
18361 # So, we kill variables containing newlines.
18362 # Ultrix sh set writes to stderr and can't be redirected directly,
18363 # and sets the high bit in the cache file unless we assign to the vars.
18364 (
18365 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18366 eval ac_val=\$$ac_var
18367 case $ac_val in #(
18368 *${as_nl}*)
18369 case $ac_var in #(
18370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18372 esac
18373 case $ac_var in #(
18374 _ | IFS | as_nl) ;; #(
18375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18376 *) { eval $ac_var=; unset $ac_var;} ;;
18377 esac ;;
18378 esac
18379 done
18380
18381 (set) 2>&1 |
18382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18383 *${as_nl}ac_space=\ *)
18384 # `set' does not quote correctly, so add quotes: double-quote
18385 # substitution turns \\\\ into \\, and sed turns \\ into \.
18386 sed -n \
18387 "s/'/'\\\\''/g;
18388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18389 ;; #(
18390 *)
18391 # `set' quotes correctly as required by POSIX, so do not add quotes.
18392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18393 ;;
18394 esac |
18395 sort
18396 ) |
18397 sed '
18398 /^ac_cv_env_/b end
18399 t clear
18400 :clear
18401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18402 t end
18403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18404 :end' >>confcache
18405 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18406 if test -w "$cache_file"; then
18407 test "x$cache_file" != "x/dev/null" &&
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18409 $as_echo "$as_me: updating cache $cache_file" >&6;}
18410 cat confcache >$cache_file
18411 else
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18413 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18414 fi
18415 fi
18416 rm -f confcache
18417
18418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18419 # Let make expand exec_prefix.
18420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18421
18422 # Transform confdefs.h into DEFS.
18423 # Protect against shell expansion while executing Makefile rules.
18424 # Protect against Makefile macro expansion.
18425 #
18426 # If the first sed substitution is executed (which looks for macros that
18427 # take arguments), then branch to the quote section. Otherwise,
18428 # look for a macro that doesn't take arguments.
18429 ac_script='
18430 :mline
18431 /\\$/{
18432 N
18433 s,\\\n,,
18434 b mline
18435 }
18436 t clear
18437 :clear
18438 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18439 t quote
18440 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18441 t quote
18442 b any
18443 :quote
18444 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18445 s/\[/\\&/g
18446 s/\]/\\&/g
18447 s/\$/$$/g
18448 H
18449 :any
18450 ${
18451 g
18452 s/^\n//
18453 s/\n/ /g
18454 p
18455 }
18456 '
18457 DEFS=`sed -n "$ac_script" confdefs.h`
18458
18459
18460 ac_libobjs=
18461 ac_ltlibobjs=
18462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18463 # 1. Remove the extension, and $U if already installed.
18464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18465 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18467 # will be set to the directory where LIBOBJS objects are built.
18468 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18469 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18470 done
18471 LIBOBJS=$ac_libobjs
18472
18473 LTLIBOBJS=$ac_ltlibobjs
18474
18475
18476
18477 : ${CONFIG_STATUS=./config.status}
18478 ac_write_fail=0
18479 ac_clean_files_save=$ac_clean_files
18480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18483 as_write_fail=0
18484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18485 #! $SHELL
18486 # Generated by $as_me.
18487 # Run this file to recreate the current configuration.
18488 # Compiler output produced by configure, useful for debugging
18489 # configure, is in config.log if it exists.
18490
18491 debug=false
18492 ac_cs_recheck=false
18493 ac_cs_silent=false
18494
18495 SHELL=\${CONFIG_SHELL-$SHELL}
18496 export SHELL
18497 _ASEOF
18498 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18499 ## -------------------- ##
18500 ## M4sh Initialization. ##
18501 ## -------------------- ##
18502
18503 # Be more Bourne compatible
18504 DUALCASE=1; export DUALCASE # for MKS sh
18505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18506 emulate sh
18507 NULLCMD=:
18508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18509 # is contrary to our usage. Disable this feature.
18510 alias -g '${1+"$@"}'='"$@"'
18511 setopt NO_GLOB_SUBST
18512 else
18513 case `(set -o) 2>/dev/null` in #(
18514 *posix*) :
18515 set -o posix ;; #(
18516 *) :
18517 ;;
18518 esac
18519 fi
18520
18521
18522 as_nl='
18523 '
18524 export as_nl
18525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18526 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18529 # Prefer a ksh shell builtin over an external printf program on Solaris,
18530 # but without wasting forks for bash or zsh.
18531 if test -z "$BASH_VERSION$ZSH_VERSION" \
18532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18533 as_echo='print -r --'
18534 as_echo_n='print -rn --'
18535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18536 as_echo='printf %s\n'
18537 as_echo_n='printf %s'
18538 else
18539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18541 as_echo_n='/usr/ucb/echo -n'
18542 else
18543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18544 as_echo_n_body='eval
18545 arg=$1;
18546 case $arg in #(
18547 *"$as_nl"*)
18548 expr "X$arg" : "X\\(.*\\)$as_nl";
18549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18550 esac;
18551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18552 '
18553 export as_echo_n_body
18554 as_echo_n='sh -c $as_echo_n_body as_echo'
18555 fi
18556 export as_echo_body
18557 as_echo='sh -c $as_echo_body as_echo'
18558 fi
18559
18560 # The user is always right.
18561 if test "${PATH_SEPARATOR+set}" != set; then
18562 PATH_SEPARATOR=:
18563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18565 PATH_SEPARATOR=';'
18566 }
18567 fi
18568
18569
18570 # IFS
18571 # We need space, tab and new line, in precisely that order. Quoting is
18572 # there to prevent editors from complaining about space-tab.
18573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18574 # splitting by setting IFS to empty value.)
18575 IFS=" "" $as_nl"
18576
18577 # Find who we are. Look in the path if we contain no directory separator.
18578 case $0 in #((
18579 *[\\/]* ) as_myself=$0 ;;
18580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18581 for as_dir in $PATH
18582 do
18583 IFS=$as_save_IFS
18584 test -z "$as_dir" && as_dir=.
18585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18586 done
18587 IFS=$as_save_IFS
18588
18589 ;;
18590 esac
18591 # We did not find ourselves, most probably we were run as `sh COMMAND'
18592 # in which case we are not to be found in the path.
18593 if test "x$as_myself" = x; then
18594 as_myself=$0
18595 fi
18596 if test ! -f "$as_myself"; then
18597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18598 exit 1
18599 fi
18600
18601 # Unset variables that we do not need and which cause bugs (e.g. in
18602 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18603 # suppresses any "Segmentation fault" message there. '((' could
18604 # trigger a bug in pdksh 5.2.14.
18605 for as_var in BASH_ENV ENV MAIL MAILPATH
18606 do eval test x\${$as_var+set} = xset \
18607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18608 done
18609 PS1='$ '
18610 PS2='> '
18611 PS4='+ '
18612
18613 # NLS nuisances.
18614 LC_ALL=C
18615 export LC_ALL
18616 LANGUAGE=C
18617 export LANGUAGE
18618
18619 # CDPATH.
18620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18621
18622
18623 # as_fn_error ERROR [LINENO LOG_FD]
18624 # ---------------------------------
18625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18627 # script with status $?, using 1 if that was 0.
18628 as_fn_error ()
18629 {
18630 as_status=$?; test $as_status -eq 0 && as_status=1
18631 if test "$3"; then
18632 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18634 fi
18635 $as_echo "$as_me: error: $1" >&2
18636 as_fn_exit $as_status
18637 } # as_fn_error
18638
18639
18640 # as_fn_set_status STATUS
18641 # -----------------------
18642 # Set $? to STATUS, without forking.
18643 as_fn_set_status ()
18644 {
18645 return $1
18646 } # as_fn_set_status
18647
18648 # as_fn_exit STATUS
18649 # -----------------
18650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18651 as_fn_exit ()
18652 {
18653 set +e
18654 as_fn_set_status $1
18655 exit $1
18656 } # as_fn_exit
18657
18658 # as_fn_unset VAR
18659 # ---------------
18660 # Portably unset VAR.
18661 as_fn_unset ()
18662 {
18663 { eval $1=; unset $1;}
18664 }
18665 as_unset=as_fn_unset
18666 # as_fn_append VAR VALUE
18667 # ----------------------
18668 # Append the text in VALUE to the end of the definition contained in VAR. Take
18669 # advantage of any shell optimizations that allow amortized linear growth over
18670 # repeated appends, instead of the typical quadratic growth present in naive
18671 # implementations.
18672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18673 eval 'as_fn_append ()
18674 {
18675 eval $1+=\$2
18676 }'
18677 else
18678 as_fn_append ()
18679 {
18680 eval $1=\$$1\$2
18681 }
18682 fi # as_fn_append
18683
18684 # as_fn_arith ARG...
18685 # ------------------
18686 # Perform arithmetic evaluation on the ARGs, and store the result in the
18687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18688 # must be portable across $(()) and expr.
18689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18690 eval 'as_fn_arith ()
18691 {
18692 as_val=$(( $* ))
18693 }'
18694 else
18695 as_fn_arith ()
18696 {
18697 as_val=`expr "$@" || test $? -eq 1`
18698 }
18699 fi # as_fn_arith
18700
18701
18702 if expr a : '\(a\)' >/dev/null 2>&1 &&
18703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18704 as_expr=expr
18705 else
18706 as_expr=false
18707 fi
18708
18709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18710 as_basename=basename
18711 else
18712 as_basename=false
18713 fi
18714
18715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18716 as_dirname=dirname
18717 else
18718 as_dirname=false
18719 fi
18720
18721 as_me=`$as_basename -- "$0" ||
18722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18723 X"$0" : 'X\(//\)$' \| \
18724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18725 $as_echo X/"$0" |
18726 sed '/^.*\/\([^/][^/]*\)\/*$/{
18727 s//\1/
18728 q
18729 }
18730 /^X\/\(\/\/\)$/{
18731 s//\1/
18732 q
18733 }
18734 /^X\/\(\/\).*/{
18735 s//\1/
18736 q
18737 }
18738 s/.*/./; q'`
18739
18740 # Avoid depending upon Character Ranges.
18741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18744 as_cr_digits='0123456789'
18745 as_cr_alnum=$as_cr_Letters$as_cr_digits
18746
18747 ECHO_C= ECHO_N= ECHO_T=
18748 case `echo -n x` in #(((((
18749 -n*)
18750 case `echo 'xy\c'` in
18751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18752 xy) ECHO_C='\c';;
18753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18754 ECHO_T=' ';;
18755 esac;;
18756 *)
18757 ECHO_N='-n';;
18758 esac
18759
18760 rm -f conf$$ conf$$.exe conf$$.file
18761 if test -d conf$$.dir; then
18762 rm -f conf$$.dir/conf$$.file
18763 else
18764 rm -f conf$$.dir
18765 mkdir conf$$.dir 2>/dev/null
18766 fi
18767 if (echo >conf$$.file) 2>/dev/null; then
18768 if ln -s conf$$.file conf$$ 2>/dev/null; then
18769 as_ln_s='ln -s'
18770 # ... but there are two gotchas:
18771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18773 # In both cases, we have to default to `cp -p'.
18774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18775 as_ln_s='cp -p'
18776 elif ln conf$$.file conf$$ 2>/dev/null; then
18777 as_ln_s=ln
18778 else
18779 as_ln_s='cp -p'
18780 fi
18781 else
18782 as_ln_s='cp -p'
18783 fi
18784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18785 rmdir conf$$.dir 2>/dev/null
18786
18787
18788 # as_fn_mkdir_p
18789 # -------------
18790 # Create "$as_dir" as a directory, including parents if necessary.
18791 as_fn_mkdir_p ()
18792 {
18793
18794 case $as_dir in #(
18795 -*) as_dir=./$as_dir;;
18796 esac
18797 test -d "$as_dir" || eval $as_mkdir_p || {
18798 as_dirs=
18799 while :; do
18800 case $as_dir in #(
18801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18802 *) as_qdir=$as_dir;;
18803 esac
18804 as_dirs="'$as_qdir' $as_dirs"
18805 as_dir=`$as_dirname -- "$as_dir" ||
18806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18807 X"$as_dir" : 'X\(//\)[^/]' \| \
18808 X"$as_dir" : 'X\(//\)$' \| \
18809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18810 $as_echo X"$as_dir" |
18811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18812 s//\1/
18813 q
18814 }
18815 /^X\(\/\/\)[^/].*/{
18816 s//\1/
18817 q
18818 }
18819 /^X\(\/\/\)$/{
18820 s//\1/
18821 q
18822 }
18823 /^X\(\/\).*/{
18824 s//\1/
18825 q
18826 }
18827 s/.*/./; q'`
18828 test -d "$as_dir" && break
18829 done
18830 test -z "$as_dirs" || eval "mkdir $as_dirs"
18831 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18832
18833
18834 } # as_fn_mkdir_p
18835 if mkdir -p . 2>/dev/null; then
18836 as_mkdir_p='mkdir -p "$as_dir"'
18837 else
18838 test -d ./-p && rmdir ./-p
18839 as_mkdir_p=false
18840 fi
18841
18842 if test -x / >/dev/null 2>&1; then
18843 as_test_x='test -x'
18844 else
18845 if ls -dL / >/dev/null 2>&1; then
18846 as_ls_L_option=L
18847 else
18848 as_ls_L_option=
18849 fi
18850 as_test_x='
18851 eval sh -c '\''
18852 if test -d "$1"; then
18853 test -d "$1/.";
18854 else
18855 case $1 in #(
18856 -*)set "./$1";;
18857 esac;
18858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18859 ???[sx]*):;;*)false;;esac;fi
18860 '\'' sh
18861 '
18862 fi
18863 as_executable_p=$as_test_x
18864
18865 # Sed expression to map a string onto a valid CPP name.
18866 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18867
18868 # Sed expression to map a string onto a valid variable name.
18869 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18870
18871
18872 exec 6>&1
18873 ## ----------------------------------- ##
18874 ## Main body of $CONFIG_STATUS script. ##
18875 ## ----------------------------------- ##
18876 _ASEOF
18877 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18878
18879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18880 # Save the log message, to keep $0 and so on meaningful, and to
18881 # report actual input values of CONFIG_FILES etc. instead of their
18882 # values after options handling.
18883 ac_log="
18884 This file was extended by Cycript $as_me 0.9, which was
18885 generated by GNU Autoconf 2.65. Invocation command line was
18886
18887 CONFIG_FILES = $CONFIG_FILES
18888 CONFIG_HEADERS = $CONFIG_HEADERS
18889 CONFIG_LINKS = $CONFIG_LINKS
18890 CONFIG_COMMANDS = $CONFIG_COMMANDS
18891 $ $0 $@
18892
18893 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18894 "
18895
18896 _ACEOF
18897
18898 case $ac_config_files in *"
18899 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18900 esac
18901
18902
18903
18904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18905 # Files that config.status was made for.
18906 config_files="$ac_config_files"
18907 config_commands="$ac_config_commands"
18908
18909 _ACEOF
18910
18911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18912 ac_cs_usage="\
18913 \`$as_me' instantiates files and other configuration actions
18914 from templates according to the current configuration. Unless the files
18915 and actions are specified as TAGs, all are instantiated by default.
18916
18917 Usage: $0 [OPTION]... [TAG]...
18918
18919 -h, --help print this help, then exit
18920 -V, --version print version number and configuration settings, then exit
18921 --config print configuration, then exit
18922 -q, --quiet, --silent
18923 do not print progress messages
18924 -d, --debug don't remove temporary files
18925 --recheck update $as_me by reconfiguring in the same conditions
18926 --file=FILE[:TEMPLATE]
18927 instantiate the configuration file FILE
18928
18929 Configuration files:
18930 $config_files
18931
18932 Configuration commands:
18933 $config_commands
18934
18935 Report bugs to <saurik@saurik.com>.
18936 Cycript home page: <http://www.cycript.org/>."
18937
18938 _ACEOF
18939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18940 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18941 ac_cs_version="\\
18942 Cycript config.status 0.9
18943 configured by $0, generated by GNU Autoconf 2.65,
18944 with options \\"\$ac_cs_config\\"
18945
18946 Copyright (C) 2009 Free Software Foundation, Inc.
18947 This config.status script is free software; the Free Software Foundation
18948 gives unlimited permission to copy, distribute and modify it."
18949
18950 ac_pwd='$ac_pwd'
18951 srcdir='$srcdir'
18952 INSTALL='$INSTALL'
18953 test -n "\$AWK" || AWK=awk
18954 _ACEOF
18955
18956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18957 # The default lists apply if the user does not specify any file.
18958 ac_need_defaults=:
18959 while test $# != 0
18960 do
18961 case $1 in
18962 --*=*)
18963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18965 ac_shift=:
18966 ;;
18967 *)
18968 ac_option=$1
18969 ac_optarg=$2
18970 ac_shift=shift
18971 ;;
18972 esac
18973
18974 case $ac_option in
18975 # Handling of the options.
18976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18977 ac_cs_recheck=: ;;
18978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18979 $as_echo "$ac_cs_version"; exit ;;
18980 --config | --confi | --conf | --con | --co | --c )
18981 $as_echo "$ac_cs_config"; exit ;;
18982 --debug | --debu | --deb | --de | --d | -d )
18983 debug=: ;;
18984 --file | --fil | --fi | --f )
18985 $ac_shift
18986 case $ac_optarg in
18987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18988 esac
18989 as_fn_append CONFIG_FILES " '$ac_optarg'"
18990 ac_need_defaults=false;;
18991 --he | --h | --help | --hel | -h )
18992 $as_echo "$ac_cs_usage"; exit ;;
18993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18995 ac_cs_silent=: ;;
18996
18997 # This is an error.
18998 -*) as_fn_error "unrecognized option: \`$1'
18999 Try \`$0 --help' for more information." ;;
19000
19001 *) as_fn_append ac_config_targets " $1"
19002 ac_need_defaults=false ;;
19003
19004 esac
19005 shift
19006 done
19007
19008 ac_configure_extra_args=
19009
19010 if $ac_cs_silent; then
19011 exec 6>/dev/null
19012 ac_configure_extra_args="$ac_configure_extra_args --silent"
19013 fi
19014
19015 _ACEOF
19016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19017 if \$ac_cs_recheck; then
19018 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19019 shift
19020 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19021 CONFIG_SHELL='$SHELL'
19022 export CONFIG_SHELL
19023 exec "\$@"
19024 fi
19025
19026 _ACEOF
19027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19028 exec 5>>config.log
19029 {
19030 echo
19031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19032 ## Running $as_me. ##
19033 _ASBOX
19034 $as_echo "$ac_log"
19035 } >&5
19036
19037 _ACEOF
19038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19039 #
19040 # INIT-COMMANDS
19041 #
19042
19043
19044 # The HP-UX ksh and POSIX shell print the target directory to stdout
19045 # if CDPATH is set.
19046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19047
19048 sed_quote_subst='$sed_quote_subst'
19049 double_quote_subst='$double_quote_subst'
19050 delay_variable_subst='$delay_variable_subst'
19051 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19052 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19053 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19054 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19055 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19056 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19057 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19058 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19059 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19060 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19061 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19062 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19063 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19064 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19065 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19066 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19067 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19068 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19069 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19070 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19071 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19072 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19073 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19074 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19075 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19076 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19077 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19078 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19079 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19080 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19081 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19082 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19083 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19084 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19085 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19086 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19087 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19088 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19089 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19090 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19091 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19092 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19093 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19094 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19095 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"`'
19096 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"`'
19097 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19098 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19099 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19100 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19101 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19102 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19103 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19104 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19105 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19106 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19107 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19108 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19109 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19110 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19111 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19112 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19113 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19114 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19115 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19116 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19117 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19118 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19119 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19120 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19121 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19122 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19123 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19124 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19125 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19126 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19127 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19128 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19129 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19130 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19131 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19132 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19133 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19134 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19135 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19136 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19137 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19138 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19139 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19140 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19141 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19142 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19143 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19144 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19145 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19146 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19147 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19148 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19149 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19150 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19151 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19152 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19153 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19154 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19155 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19156 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19157 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19158 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19159 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19160 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19161 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19162 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19163 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19164 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19165 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19166 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19167 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19168 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19169 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19170 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19171 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19172 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19173 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19174 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19175 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19176 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19177 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19178 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19179 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19180 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19181 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19182 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19183 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19184 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19185 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19186 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19187 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19188 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19189 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19190 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19191 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19192 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19193 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19194 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19195 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19196 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19197 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19198 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19199 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19200 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19201 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19202 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19203 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19204 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19205 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19206 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19207 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19208 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19209 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19210 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19211 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19212 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19213 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19214 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19215 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19216 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19217 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19218 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19219 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19220 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19221 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19222
19223 LTCC='$LTCC'
19224 LTCFLAGS='$LTCFLAGS'
19225 compiler='$compiler_DEFAULT'
19226
19227 # Quote evaled strings.
19228 for var in SED \
19229 GREP \
19230 EGREP \
19231 FGREP \
19232 LD \
19233 NM \
19234 LN_S \
19235 lt_SP2NL \
19236 lt_NL2SP \
19237 reload_flag \
19238 OBJDUMP \
19239 deplibs_check_method \
19240 file_magic_cmd \
19241 AR \
19242 AR_FLAGS \
19243 STRIP \
19244 RANLIB \
19245 CC \
19246 CFLAGS \
19247 compiler \
19248 lt_cv_sys_global_symbol_pipe \
19249 lt_cv_sys_global_symbol_to_cdecl \
19250 lt_cv_sys_global_symbol_to_c_name_address \
19251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19252 SHELL \
19253 ECHO \
19254 lt_prog_compiler_no_builtin_flag \
19255 lt_prog_compiler_wl \
19256 lt_prog_compiler_pic \
19257 lt_prog_compiler_static \
19258 lt_cv_prog_compiler_c_o \
19259 need_locks \
19260 DSYMUTIL \
19261 NMEDIT \
19262 LIPO \
19263 OTOOL \
19264 OTOOL64 \
19265 shrext_cmds \
19266 export_dynamic_flag_spec \
19267 whole_archive_flag_spec \
19268 compiler_needs_object \
19269 with_gnu_ld \
19270 allow_undefined_flag \
19271 no_undefined_flag \
19272 hardcode_libdir_flag_spec \
19273 hardcode_libdir_flag_spec_ld \
19274 hardcode_libdir_separator \
19275 fix_srcfile_path \
19276 exclude_expsyms \
19277 include_expsyms \
19278 file_list_spec \
19279 variables_saved_for_relink \
19280 libname_spec \
19281 library_names_spec \
19282 soname_spec \
19283 finish_eval \
19284 old_striplib \
19285 striplib \
19286 compiler_lib_search_dirs \
19287 predep_objects \
19288 postdep_objects \
19289 predeps \
19290 postdeps \
19291 compiler_lib_search_path \
19292 LD_CXX \
19293 compiler_CXX \
19294 lt_prog_compiler_no_builtin_flag_CXX \
19295 lt_prog_compiler_wl_CXX \
19296 lt_prog_compiler_pic_CXX \
19297 lt_prog_compiler_static_CXX \
19298 lt_cv_prog_compiler_c_o_CXX \
19299 export_dynamic_flag_spec_CXX \
19300 whole_archive_flag_spec_CXX \
19301 compiler_needs_object_CXX \
19302 with_gnu_ld_CXX \
19303 allow_undefined_flag_CXX \
19304 no_undefined_flag_CXX \
19305 hardcode_libdir_flag_spec_CXX \
19306 hardcode_libdir_flag_spec_ld_CXX \
19307 hardcode_libdir_separator_CXX \
19308 fix_srcfile_path_CXX \
19309 exclude_expsyms_CXX \
19310 include_expsyms_CXX \
19311 file_list_spec_CXX \
19312 compiler_lib_search_dirs_CXX \
19313 predep_objects_CXX \
19314 postdep_objects_CXX \
19315 predeps_CXX \
19316 postdeps_CXX \
19317 compiler_lib_search_path_CXX; do
19318 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19319 *[\\\\\\\`\\"\\\$]*)
19320 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19321 ;;
19322 *)
19323 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19324 ;;
19325 esac
19326 done
19327
19328 # Double-quote double-evaled strings.
19329 for var in reload_cmds \
19330 old_postinstall_cmds \
19331 old_postuninstall_cmds \
19332 old_archive_cmds \
19333 extract_expsyms_cmds \
19334 old_archive_from_new_cmds \
19335 old_archive_from_expsyms_cmds \
19336 archive_cmds \
19337 archive_expsym_cmds \
19338 module_cmds \
19339 module_expsym_cmds \
19340 export_symbols_cmds \
19341 prelink_cmds \
19342 postinstall_cmds \
19343 postuninstall_cmds \
19344 finish_cmds \
19345 sys_lib_search_path_spec \
19346 sys_lib_dlsearch_path_spec \
19347 old_archive_cmds_CXX \
19348 old_archive_from_new_cmds_CXX \
19349 old_archive_from_expsyms_cmds_CXX \
19350 archive_cmds_CXX \
19351 archive_expsym_cmds_CXX \
19352 module_cmds_CXX \
19353 module_expsym_cmds_CXX \
19354 export_symbols_cmds_CXX \
19355 prelink_cmds_CXX; do
19356 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19357 *[\\\\\\\`\\"\\\$]*)
19358 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19359 ;;
19360 *)
19361 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19362 ;;
19363 esac
19364 done
19365
19366 # Fix-up fallback echo if it was mangled by the above quoting rules.
19367 case \$lt_ECHO in
19368 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19369 ;;
19370 esac
19371
19372 ac_aux_dir='$ac_aux_dir'
19373 xsi_shell='$xsi_shell'
19374 lt_shell_append='$lt_shell_append'
19375
19376 # See if we are running on zsh, and set the options which allow our
19377 # commands through without removal of \ escapes INIT.
19378 if test -n "\${ZSH_VERSION+set}" ; then
19379 setopt NO_GLOB_SUBST
19380 fi
19381
19382
19383 PACKAGE='$PACKAGE'
19384 VERSION='$VERSION'
19385 TIMESTAMP='$TIMESTAMP'
19386 RM='$RM'
19387 ofile='$ofile'
19388
19389
19390
19391
19392
19393
19394 _ACEOF
19395
19396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19397
19398 # Handling of arguments.
19399 for ac_config_target in $ac_config_targets
19400 do
19401 case $ac_config_target in
19402 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19404 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19405
19406 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19407 esac
19408 done
19409
19410
19411 # If the user did not use the arguments to specify the items to instantiate,
19412 # then the envvar interface is used. Set only those that are not.
19413 # We use the long form for the default assignment because of an extremely
19414 # bizarre bug on SunOS 4.1.3.
19415 if $ac_need_defaults; then
19416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19418 fi
19419
19420 # Have a temporary directory for convenience. Make it in the build tree
19421 # simply because there is no reason against having it here, and in addition,
19422 # creating and moving files from /tmp can sometimes cause problems.
19423 # Hook for its removal unless debugging.
19424 # Note that there is a small window in which the directory will not be cleaned:
19425 # after its creation but before its name has been assigned to `$tmp'.
19426 $debug ||
19427 {
19428 tmp=
19429 trap 'exit_status=$?
19430 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19431 ' 0
19432 trap 'as_fn_exit 1' 1 2 13 15
19433 }
19434 # Create a (secure) tmp directory for tmp files.
19435
19436 {
19437 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19438 test -n "$tmp" && test -d "$tmp"
19439 } ||
19440 {
19441 tmp=./conf$$-$RANDOM
19442 (umask 077 && mkdir "$tmp")
19443 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19444
19445 # Set up the scripts for CONFIG_FILES section.
19446 # No need to generate them if there are no CONFIG_FILES.
19447 # This happens for instance with `./config.status config.h'.
19448 if test -n "$CONFIG_FILES"; then
19449
19450
19451 ac_cr=`echo X | tr X '\015'`
19452 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19453 # But we know of no other shell where ac_cr would be empty at this
19454 # point, so we can use a bashism as a fallback.
19455 if test "x$ac_cr" = x; then
19456 eval ac_cr=\$\'\\r\'
19457 fi
19458 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19459 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19460 ac_cs_awk_cr='\r'
19461 else
19462 ac_cs_awk_cr=$ac_cr
19463 fi
19464
19465 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19466 _ACEOF
19467
19468
19469 {
19470 echo "cat >conf$$subs.awk <<_ACEOF" &&
19471 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19472 echo "_ACEOF"
19473 } >conf$$subs.sh ||
19474 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19475 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19476 ac_delim='%!_!# '
19477 for ac_last_try in false false false false false :; do
19478 . ./conf$$subs.sh ||
19479 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19480
19481 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19482 if test $ac_delim_n = $ac_delim_num; then
19483 break
19484 elif $ac_last_try; then
19485 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19486 else
19487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19488 fi
19489 done
19490 rm -f conf$$subs.sh
19491
19492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19493 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19494 _ACEOF
19495 sed -n '
19496 h
19497 s/^/S["/; s/!.*/"]=/
19498 p
19499 g
19500 s/^[^!]*!//
19501 :repl
19502 t repl
19503 s/'"$ac_delim"'$//
19504 t delim
19505 :nl
19506 h
19507 s/\(.\{148\}\)..*/\1/
19508 t more1
19509 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19510 p
19511 n
19512 b repl
19513 :more1
19514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19515 p
19516 g
19517 s/.\{148\}//
19518 t nl
19519 :delim
19520 h
19521 s/\(.\{148\}\)..*/\1/
19522 t more2
19523 s/["\\]/\\&/g; s/^/"/; s/$/"/
19524 p
19525 b
19526 :more2
19527 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19528 p
19529 g
19530 s/.\{148\}//
19531 t delim
19532 ' <conf$$subs.awk | sed '
19533 /^[^""]/{
19534 N
19535 s/\n//
19536 }
19537 ' >>$CONFIG_STATUS || ac_write_fail=1
19538 rm -f conf$$subs.awk
19539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540 _ACAWK
19541 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19542 for (key in S) S_is_set[key] = 1
19543 FS = "\a"
19544
19545 }
19546 {
19547 line = $ 0
19548 nfields = split(line, field, "@")
19549 substed = 0
19550 len = length(field[1])
19551 for (i = 2; i < nfields; i++) {
19552 key = field[i]
19553 keylen = length(key)
19554 if (S_is_set[key]) {
19555 value = S[key]
19556 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19557 len += length(value) + length(field[++i])
19558 substed = 1
19559 } else
19560 len += 1 + keylen
19561 }
19562
19563 print line
19564 }
19565
19566 _ACAWK
19567 _ACEOF
19568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19569 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19570 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19571 else
19572 cat
19573 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19574 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19575 _ACEOF
19576
19577 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19578 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19579 # trailing colons and then remove the whole line if VPATH becomes empty
19580 # (actually we leave an empty line to preserve line numbers).
19581 if test "x$srcdir" = x.; then
19582 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19583 s/:*\$(srcdir):*/:/
19584 s/:*\${srcdir}:*/:/
19585 s/:*@srcdir@:*/:/
19586 s/^\([^=]*=[ ]*\):*/\1/
19587 s/:*$//
19588 s/^[^=]*=[ ]*$//
19589 }'
19590 fi
19591
19592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19593 fi # test -n "$CONFIG_FILES"
19594
19595
19596 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19597 shift
19598 for ac_tag
19599 do
19600 case $ac_tag in
19601 :[FHLC]) ac_mode=$ac_tag; continue;;
19602 esac
19603 case $ac_mode$ac_tag in
19604 :[FHL]*:*);;
19605 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19606 :[FH]-) ac_tag=-:-;;
19607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19608 esac
19609 ac_save_IFS=$IFS
19610 IFS=:
19611 set x $ac_tag
19612 IFS=$ac_save_IFS
19613 shift
19614 ac_file=$1
19615 shift
19616
19617 case $ac_mode in
19618 :L) ac_source=$1;;
19619 :[FH])
19620 ac_file_inputs=
19621 for ac_f
19622 do
19623 case $ac_f in
19624 -) ac_f="$tmp/stdin";;
19625 *) # Look for the file first in the build tree, then in the source tree
19626 # (if the path is not absolute). The absolute path cannot be DOS-style,
19627 # because $ac_f cannot contain `:'.
19628 test -f "$ac_f" ||
19629 case $ac_f in
19630 [\\/$]*) false;;
19631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19632 esac ||
19633 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19634 esac
19635 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19636 as_fn_append ac_file_inputs " '$ac_f'"
19637 done
19638
19639 # Let's still pretend it is `configure' which instantiates (i.e., don't
19640 # use $as_me), people would be surprised to read:
19641 # /* config.h. Generated by config.status. */
19642 configure_input='Generated from '`
19643 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19644 `' by configure.'
19645 if test x"$ac_file" != x-; then
19646 configure_input="$ac_file. $configure_input"
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19648 $as_echo "$as_me: creating $ac_file" >&6;}
19649 fi
19650 # Neutralize special characters interpreted by sed in replacement strings.
19651 case $configure_input in #(
19652 *\&* | *\|* | *\\* )
19653 ac_sed_conf_input=`$as_echo "$configure_input" |
19654 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19655 *) ac_sed_conf_input=$configure_input;;
19656 esac
19657
19658 case $ac_tag in
19659 *:-:* | *:-) cat >"$tmp/stdin" \
19660 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19661 esac
19662 ;;
19663 esac
19664
19665 ac_dir=`$as_dirname -- "$ac_file" ||
19666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19667 X"$ac_file" : 'X\(//\)[^/]' \| \
19668 X"$ac_file" : 'X\(//\)$' \| \
19669 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19670 $as_echo X"$ac_file" |
19671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19672 s//\1/
19673 q
19674 }
19675 /^X\(\/\/\)[^/].*/{
19676 s//\1/
19677 q
19678 }
19679 /^X\(\/\/\)$/{
19680 s//\1/
19681 q
19682 }
19683 /^X\(\/\).*/{
19684 s//\1/
19685 q
19686 }
19687 s/.*/./; q'`
19688 as_dir="$ac_dir"; as_fn_mkdir_p
19689 ac_builddir=.
19690
19691 case "$ac_dir" in
19692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19693 *)
19694 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19695 # A ".." for each directory in $ac_dir_suffix.
19696 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19697 case $ac_top_builddir_sub in
19698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19700 esac ;;
19701 esac
19702 ac_abs_top_builddir=$ac_pwd
19703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19704 # for backward compatibility:
19705 ac_top_builddir=$ac_top_build_prefix
19706
19707 case $srcdir in
19708 .) # We are building in place.
19709 ac_srcdir=.
19710 ac_top_srcdir=$ac_top_builddir_sub
19711 ac_abs_top_srcdir=$ac_pwd ;;
19712 [\\/]* | ?:[\\/]* ) # Absolute name.
19713 ac_srcdir=$srcdir$ac_dir_suffix;
19714 ac_top_srcdir=$srcdir
19715 ac_abs_top_srcdir=$srcdir ;;
19716 *) # Relative name.
19717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19718 ac_top_srcdir=$ac_top_build_prefix$srcdir
19719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19720 esac
19721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19722
19723
19724 case $ac_mode in
19725 :F)
19726 #
19727 # CONFIG_FILE
19728 #
19729
19730 case $INSTALL in
19731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19732 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19733 esac
19734 _ACEOF
19735
19736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19737 # If the template does not know about datarootdir, expand it.
19738 # FIXME: This hack should be removed a few years after 2.60.
19739 ac_datarootdir_hack=; ac_datarootdir_seen=
19740 ac_sed_dataroot='
19741 /datarootdir/ {
19742 p
19743 q
19744 }
19745 /@datadir@/p
19746 /@docdir@/p
19747 /@infodir@/p
19748 /@localedir@/p
19749 /@mandir@/p'
19750 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19751 *datarootdir*) ac_datarootdir_seen=yes;;
19752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19754 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19755 _ACEOF
19756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19757 ac_datarootdir_hack='
19758 s&@datadir@&$datadir&g
19759 s&@docdir@&$docdir&g
19760 s&@infodir@&$infodir&g
19761 s&@localedir@&$localedir&g
19762 s&@mandir@&$mandir&g
19763 s&\\\${datarootdir}&$datarootdir&g' ;;
19764 esac
19765 _ACEOF
19766
19767 # Neutralize VPATH when `$srcdir' = `.'.
19768 # Shell code in configure.ac might set extrasub.
19769 # FIXME: do we really want to maintain this feature?
19770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19771 ac_sed_extra="$ac_vpsub
19772 $extrasub
19773 _ACEOF
19774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19775 :t
19776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19777 s|@configure_input@|$ac_sed_conf_input|;t t
19778 s&@top_builddir@&$ac_top_builddir_sub&;t t
19779 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19780 s&@srcdir@&$ac_srcdir&;t t
19781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19782 s&@top_srcdir@&$ac_top_srcdir&;t t
19783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19784 s&@builddir@&$ac_builddir&;t t
19785 s&@abs_builddir@&$ac_abs_builddir&;t t
19786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19787 s&@INSTALL@&$ac_INSTALL&;t t
19788 $ac_datarootdir_hack
19789 "
19790 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19791 || as_fn_error "could not create $ac_file" "$LINENO" 5
19792
19793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19794 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19797 which seems to be undefined. Please make sure it is defined." >&5
19798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19799 which seems to be undefined. Please make sure it is defined." >&2;}
19800
19801 rm -f "$tmp/stdin"
19802 case $ac_file in
19803 -) cat "$tmp/out" && rm -f "$tmp/out";;
19804 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19805 esac \
19806 || as_fn_error "could not create $ac_file" "$LINENO" 5
19807 ;;
19808
19809
19810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19811 $as_echo "$as_me: executing $ac_file commands" >&6;}
19812 ;;
19813 esac
19814
19815
19816 case $ac_file$ac_mode in
19817 "libtool":C)
19818
19819 # See if we are running on zsh, and set the options which allow our
19820 # commands through without removal of \ escapes.
19821 if test -n "${ZSH_VERSION+set}" ; then
19822 setopt NO_GLOB_SUBST
19823 fi
19824
19825 cfgfile="${ofile}T"
19826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19827 $RM "$cfgfile"
19828
19829 cat <<_LT_EOF >> "$cfgfile"
19830 #! $SHELL
19831
19832 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19833 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19835 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19836 #
19837 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19838 # 2006, 2007, 2008 Free Software Foundation, Inc.
19839 # Written by Gordon Matzigkeit, 1996
19840 #
19841 # This file is part of GNU Libtool.
19842 #
19843 # GNU Libtool is free software; you can redistribute it and/or
19844 # modify it under the terms of the GNU General Public License as
19845 # published by the Free Software Foundation; either version 2 of
19846 # the License, or (at your option) any later version.
19847 #
19848 # As a special exception to the GNU General Public License,
19849 # if you distribute this file as part of a program or library that
19850 # is built using GNU Libtool, you may include this file under the
19851 # same distribution terms that you use for the rest of that program.
19852 #
19853 # GNU Libtool is distributed in the hope that it will be useful,
19854 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19856 # GNU General Public License for more details.
19857 #
19858 # You should have received a copy of the GNU General Public License
19859 # along with GNU Libtool; see the file COPYING. If not, a copy
19860 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19861 # obtained by writing to the Free Software Foundation, Inc.,
19862 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19863
19864
19865 # The names of the tagged configurations supported by this script.
19866 available_tags="CXX "
19867
19868 # ### BEGIN LIBTOOL CONFIG
19869
19870 # Which release of libtool.m4 was used?
19871 macro_version=$macro_version
19872 macro_revision=$macro_revision
19873
19874 # Whether or not to build static libraries.
19875 build_old_libs=$enable_static
19876
19877 # Whether or not to build shared libraries.
19878 build_libtool_libs=$enable_shared
19879
19880 # What type of objects to build.
19881 pic_mode=$pic_mode
19882
19883 # Whether or not to optimize for fast installation.
19884 fast_install=$enable_fast_install
19885
19886 # The host system.
19887 host_alias=$host_alias
19888 host=$host
19889 host_os=$host_os
19890
19891 # The build system.
19892 build_alias=$build_alias
19893 build=$build
19894 build_os=$build_os
19895
19896 # A sed program that does not truncate output.
19897 SED=$lt_SED
19898
19899 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19900 Xsed="\$SED -e 1s/^X//"
19901
19902 # A grep program that handles long lines.
19903 GREP=$lt_GREP
19904
19905 # An ERE matcher.
19906 EGREP=$lt_EGREP
19907
19908 # A literal string matcher.
19909 FGREP=$lt_FGREP
19910
19911 # A BSD- or MS-compatible name lister.
19912 NM=$lt_NM
19913
19914 # Whether we need soft or hard links.
19915 LN_S=$lt_LN_S
19916
19917 # What is the maximum length of a command?
19918 max_cmd_len=$max_cmd_len
19919
19920 # Object file suffix (normally "o").
19921 objext=$ac_objext
19922
19923 # Executable file suffix (normally "").
19924 exeext=$exeext
19925
19926 # whether the shell understands "unset".
19927 lt_unset=$lt_unset
19928
19929 # turn spaces into newlines.
19930 SP2NL=$lt_lt_SP2NL
19931
19932 # turn newlines into spaces.
19933 NL2SP=$lt_lt_NL2SP
19934
19935 # How to create reloadable object files.
19936 reload_flag=$lt_reload_flag
19937 reload_cmds=$lt_reload_cmds
19938
19939 # An object symbol dumper.
19940 OBJDUMP=$lt_OBJDUMP
19941
19942 # Method to check whether dependent libraries are shared objects.
19943 deplibs_check_method=$lt_deplibs_check_method
19944
19945 # Command to use when deplibs_check_method == "file_magic".
19946 file_magic_cmd=$lt_file_magic_cmd
19947
19948 # The archiver.
19949 AR=$lt_AR
19950 AR_FLAGS=$lt_AR_FLAGS
19951
19952 # A symbol stripping program.
19953 STRIP=$lt_STRIP
19954
19955 # Commands used to install an old-style archive.
19956 RANLIB=$lt_RANLIB
19957 old_postinstall_cmds=$lt_old_postinstall_cmds
19958 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19959
19960 # A C compiler.
19961 LTCC=$lt_CC
19962
19963 # LTCC compiler flags.
19964 LTCFLAGS=$lt_CFLAGS
19965
19966 # Take the output of nm and produce a listing of raw symbols and C names.
19967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19968
19969 # Transform the output of nm in a proper C declaration.
19970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19971
19972 # Transform the output of nm in a C name address pair.
19973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19974
19975 # Transform the output of nm in a C name address pair when lib prefix is needed.
19976 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19977
19978 # The name of the directory that contains temporary libtool files.
19979 objdir=$objdir
19980
19981 # Shell to use when invoking shell scripts.
19982 SHELL=$lt_SHELL
19983
19984 # An echo program that does not interpret backslashes.
19985 ECHO=$lt_ECHO
19986
19987 # Used to examine libraries when file_magic_cmd begins with "file".
19988 MAGIC_CMD=$MAGIC_CMD
19989
19990 # Must we lock files when doing compilation?
19991 need_locks=$lt_need_locks
19992
19993 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19994 DSYMUTIL=$lt_DSYMUTIL
19995
19996 # Tool to change global to local symbols on Mac OS X.
19997 NMEDIT=$lt_NMEDIT
19998
19999 # Tool to manipulate fat objects and archives on Mac OS X.
20000 LIPO=$lt_LIPO
20001
20002 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20003 OTOOL=$lt_OTOOL
20004
20005 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20006 OTOOL64=$lt_OTOOL64
20007
20008 # Old archive suffix (normally "a").
20009 libext=$libext
20010
20011 # Shared library suffix (normally ".so").
20012 shrext_cmds=$lt_shrext_cmds
20013
20014 # The commands to extract the exported symbol list from a shared archive.
20015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20016
20017 # Variables whose values should be saved in libtool wrapper scripts and
20018 # restored at link time.
20019 variables_saved_for_relink=$lt_variables_saved_for_relink
20020
20021 # Do we need the "lib" prefix for modules?
20022 need_lib_prefix=$need_lib_prefix
20023
20024 # Do we need a version for libraries?
20025 need_version=$need_version
20026
20027 # Library versioning type.
20028 version_type=$version_type
20029
20030 # Shared library runtime path variable.
20031 runpath_var=$runpath_var
20032
20033 # Shared library path variable.
20034 shlibpath_var=$shlibpath_var
20035
20036 # Is shlibpath searched before the hard-coded library search path?
20037 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20038
20039 # Format of library name prefix.
20040 libname_spec=$lt_libname_spec
20041
20042 # List of archive names. First name is the real one, the rest are links.
20043 # The last name is the one that the linker finds with -lNAME
20044 library_names_spec=$lt_library_names_spec
20045
20046 # The coded name of the library, if different from the real name.
20047 soname_spec=$lt_soname_spec
20048
20049 # Command to use after installation of a shared archive.
20050 postinstall_cmds=$lt_postinstall_cmds
20051
20052 # Command to use after uninstallation of a shared archive.
20053 postuninstall_cmds=$lt_postuninstall_cmds
20054
20055 # Commands used to finish a libtool library installation in a directory.
20056 finish_cmds=$lt_finish_cmds
20057
20058 # As "finish_cmds", except a single script fragment to be evaled but
20059 # not shown.
20060 finish_eval=$lt_finish_eval
20061
20062 # Whether we should hardcode library paths into libraries.
20063 hardcode_into_libs=$hardcode_into_libs
20064
20065 # Compile-time system search path for libraries.
20066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20067
20068 # Run-time system search path for libraries.
20069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20070
20071 # Whether dlopen is supported.
20072 dlopen_support=$enable_dlopen
20073
20074 # Whether dlopen of programs is supported.
20075 dlopen_self=$enable_dlopen_self
20076
20077 # Whether dlopen of statically linked programs is supported.
20078 dlopen_self_static=$enable_dlopen_self_static
20079
20080 # Commands to strip libraries.
20081 old_striplib=$lt_old_striplib
20082 striplib=$lt_striplib
20083
20084
20085 # The linker used to build libraries.
20086 LD=$lt_LD
20087
20088 # Commands used to build an old-style archive.
20089 old_archive_cmds=$lt_old_archive_cmds
20090
20091 # A language specific compiler.
20092 CC=$lt_compiler
20093
20094 # Is the compiler the GNU compiler?
20095 with_gcc=$GCC
20096
20097 # Compiler flag to turn off builtin functions.
20098 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20099
20100 # How to pass a linker flag through the compiler.
20101 wl=$lt_lt_prog_compiler_wl
20102
20103 # Additional compiler flags for building library objects.
20104 pic_flag=$lt_lt_prog_compiler_pic
20105
20106 # Compiler flag to prevent dynamic linking.
20107 link_static_flag=$lt_lt_prog_compiler_static
20108
20109 # Does compiler simultaneously support -c and -o options?
20110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20111
20112 # Whether or not to add -lc for building shared libraries.
20113 build_libtool_need_lc=$archive_cmds_need_lc
20114
20115 # Whether or not to disallow shared libs when runtime libs are static.
20116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20117
20118 # Compiler flag to allow reflexive dlopens.
20119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20120
20121 # Compiler flag to generate shared objects directly from archives.
20122 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20123
20124 # Whether the compiler copes with passing no objects directly.
20125 compiler_needs_object=$lt_compiler_needs_object
20126
20127 # Create an old-style archive from a shared archive.
20128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20129
20130 # Create a temporary old-style archive to link instead of a shared archive.
20131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20132
20133 # Commands used to build a shared archive.
20134 archive_cmds=$lt_archive_cmds
20135 archive_expsym_cmds=$lt_archive_expsym_cmds
20136
20137 # Commands used to build a loadable module if different from building
20138 # a shared archive.
20139 module_cmds=$lt_module_cmds
20140 module_expsym_cmds=$lt_module_expsym_cmds
20141
20142 # Whether we are building with GNU ld or not.
20143 with_gnu_ld=$lt_with_gnu_ld
20144
20145 # Flag that allows shared libraries with undefined symbols to be built.
20146 allow_undefined_flag=$lt_allow_undefined_flag
20147
20148 # Flag that enforces no undefined symbols.
20149 no_undefined_flag=$lt_no_undefined_flag
20150
20151 # Flag to hardcode \$libdir into a binary during linking.
20152 # This must work even if \$libdir does not exist
20153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20154
20155 # If ld is used when linking, flag to hardcode \$libdir into a binary
20156 # during linking. This must work even if \$libdir does not exist.
20157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20158
20159 # Whether we need a single "-rpath" flag with a separated argument.
20160 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20161
20162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20163 # DIR into the resulting binary.
20164 hardcode_direct=$hardcode_direct
20165
20166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20167 # DIR into the resulting binary and the resulting library dependency is
20168 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20169 # library is relocated.
20170 hardcode_direct_absolute=$hardcode_direct_absolute
20171
20172 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20173 # into the resulting binary.
20174 hardcode_minus_L=$hardcode_minus_L
20175
20176 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20177 # into the resulting binary.
20178 hardcode_shlibpath_var=$hardcode_shlibpath_var
20179
20180 # Set to "yes" if building a shared library automatically hardcodes DIR
20181 # into the library and all subsequent libraries and executables linked
20182 # against it.
20183 hardcode_automatic=$hardcode_automatic
20184
20185 # Set to yes if linker adds runtime paths of dependent libraries
20186 # to runtime path list.
20187 inherit_rpath=$inherit_rpath
20188
20189 # Whether libtool must link a program against all its dependency libraries.
20190 link_all_deplibs=$link_all_deplibs
20191
20192 # Fix the shell variable \$srcfile for the compiler.
20193 fix_srcfile_path=$lt_fix_srcfile_path
20194
20195 # Set to "yes" if exported symbols are required.
20196 always_export_symbols=$always_export_symbols
20197
20198 # The commands to list exported symbols.
20199 export_symbols_cmds=$lt_export_symbols_cmds
20200
20201 # Symbols that should not be listed in the preloaded symbols.
20202 exclude_expsyms=$lt_exclude_expsyms
20203
20204 # Symbols that must always be exported.
20205 include_expsyms=$lt_include_expsyms
20206
20207 # Commands necessary for linking programs (against libraries) with templates.
20208 prelink_cmds=$lt_prelink_cmds
20209
20210 # Specify filename containing input files.
20211 file_list_spec=$lt_file_list_spec
20212
20213 # How to hardcode a shared library path into an executable.
20214 hardcode_action=$hardcode_action
20215
20216 # The directories searched by this compiler when creating a shared library.
20217 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20218
20219 # Dependencies to place before and after the objects being linked to
20220 # create a shared library.
20221 predep_objects=$lt_predep_objects
20222 postdep_objects=$lt_postdep_objects
20223 predeps=$lt_predeps
20224 postdeps=$lt_postdeps
20225
20226 # The library search path used internally by the compiler when linking
20227 # a shared library.
20228 compiler_lib_search_path=$lt_compiler_lib_search_path
20229
20230 # ### END LIBTOOL CONFIG
20231
20232 _LT_EOF
20233
20234 case $host_os in
20235 aix3*)
20236 cat <<\_LT_EOF >> "$cfgfile"
20237 # AIX sometimes has problems with the GCC collect2 program. For some
20238 # reason, if we set the COLLECT_NAMES environment variable, the problems
20239 # vanish in a puff of smoke.
20240 if test "X${COLLECT_NAMES+set}" != Xset; then
20241 COLLECT_NAMES=
20242 export COLLECT_NAMES
20243 fi
20244 _LT_EOF
20245 ;;
20246 esac
20247
20248
20249 ltmain="$ac_aux_dir/ltmain.sh"
20250
20251
20252 # We use sed instead of cat because bash on DJGPP gets confused if
20253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20254 # text mode, it properly converts lines to CR/LF. This bash problem
20255 # is reportedly fixed, but why not run on old versions too?
20256 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20257 || (rm -f "$cfgfile"; exit 1)
20258
20259 case $xsi_shell in
20260 yes)
20261 cat << \_LT_EOF >> "$cfgfile"
20262
20263 # func_dirname file append nondir_replacement
20264 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20265 # otherwise set result to NONDIR_REPLACEMENT.
20266 func_dirname ()
20267 {
20268 case ${1} in
20269 */*) func_dirname_result="${1%/*}${2}" ;;
20270 * ) func_dirname_result="${3}" ;;
20271 esac
20272 }
20273
20274 # func_basename file
20275 func_basename ()
20276 {
20277 func_basename_result="${1##*/}"
20278 }
20279
20280 # func_dirname_and_basename file append nondir_replacement
20281 # perform func_basename and func_dirname in a single function
20282 # call:
20283 # dirname: Compute the dirname of FILE. If nonempty,
20284 # add APPEND to the result, otherwise set result
20285 # to NONDIR_REPLACEMENT.
20286 # value returned in "$func_dirname_result"
20287 # basename: Compute filename of FILE.
20288 # value retuned in "$func_basename_result"
20289 # Implementation must be kept synchronized with func_dirname
20290 # and func_basename. For efficiency, we do not delegate to
20291 # those functions but instead duplicate the functionality here.
20292 func_dirname_and_basename ()
20293 {
20294 case ${1} in
20295 */*) func_dirname_result="${1%/*}${2}" ;;
20296 * ) func_dirname_result="${3}" ;;
20297 esac
20298 func_basename_result="${1##*/}"
20299 }
20300
20301 # func_stripname prefix suffix name
20302 # strip PREFIX and SUFFIX off of NAME.
20303 # PREFIX and SUFFIX must not contain globbing or regex special
20304 # characters, hashes, percent signs, but SUFFIX may contain a leading
20305 # dot (in which case that matches only a dot).
20306 func_stripname ()
20307 {
20308 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20309 # positional parameters, so assign one to ordinary parameter first.
20310 func_stripname_result=${3}
20311 func_stripname_result=${func_stripname_result#"${1}"}
20312 func_stripname_result=${func_stripname_result%"${2}"}
20313 }
20314
20315 # func_opt_split
20316 func_opt_split ()
20317 {
20318 func_opt_split_opt=${1%%=*}
20319 func_opt_split_arg=${1#*=}
20320 }
20321
20322 # func_lo2o object
20323 func_lo2o ()
20324 {
20325 case ${1} in
20326 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20327 *) func_lo2o_result=${1} ;;
20328 esac
20329 }
20330
20331 # func_xform libobj-or-source
20332 func_xform ()
20333 {
20334 func_xform_result=${1%.*}.lo
20335 }
20336
20337 # func_arith arithmetic-term...
20338 func_arith ()
20339 {
20340 func_arith_result=$(( $* ))
20341 }
20342
20343 # func_len string
20344 # STRING may not start with a hyphen.
20345 func_len ()
20346 {
20347 func_len_result=${#1}
20348 }
20349
20350 _LT_EOF
20351 ;;
20352 *) # Bourne compatible functions.
20353 cat << \_LT_EOF >> "$cfgfile"
20354
20355 # func_dirname file append nondir_replacement
20356 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20357 # otherwise set result to NONDIR_REPLACEMENT.
20358 func_dirname ()
20359 {
20360 # Extract subdirectory from the argument.
20361 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20362 if test "X$func_dirname_result" = "X${1}"; then
20363 func_dirname_result="${3}"
20364 else
20365 func_dirname_result="$func_dirname_result${2}"
20366 fi
20367 }
20368
20369 # func_basename file
20370 func_basename ()
20371 {
20372 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20373 }
20374
20375
20376 # func_stripname prefix suffix name
20377 # strip PREFIX and SUFFIX off of NAME.
20378 # PREFIX and SUFFIX must not contain globbing or regex special
20379 # characters, hashes, percent signs, but SUFFIX may contain a leading
20380 # dot (in which case that matches only a dot).
20381 # func_strip_suffix prefix name
20382 func_stripname ()
20383 {
20384 case ${2} in
20385 .*) func_stripname_result=`$ECHO "X${3}" \
20386 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20387 *) func_stripname_result=`$ECHO "X${3}" \
20388 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20389 esac
20390 }
20391
20392 # sed scripts:
20393 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20394 my_sed_long_arg='1s/^-[^=]*=//'
20395
20396 # func_opt_split
20397 func_opt_split ()
20398 {
20399 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20400 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20401 }
20402
20403 # func_lo2o object
20404 func_lo2o ()
20405 {
20406 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20407 }
20408
20409 # func_xform libobj-or-source
20410 func_xform ()
20411 {
20412 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20413 }
20414
20415 # func_arith arithmetic-term...
20416 func_arith ()
20417 {
20418 func_arith_result=`expr "$@"`
20419 }
20420
20421 # func_len string
20422 # STRING may not start with a hyphen.
20423 func_len ()
20424 {
20425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20426 }
20427
20428 _LT_EOF
20429 esac
20430
20431 case $lt_shell_append in
20432 yes)
20433 cat << \_LT_EOF >> "$cfgfile"
20434
20435 # func_append var value
20436 # Append VALUE to the end of shell variable VAR.
20437 func_append ()
20438 {
20439 eval "$1+=\$2"
20440 }
20441 _LT_EOF
20442 ;;
20443 *)
20444 cat << \_LT_EOF >> "$cfgfile"
20445
20446 # func_append var value
20447 # Append VALUE to the end of shell variable VAR.
20448 func_append ()
20449 {
20450 eval "$1=\$$1\$2"
20451 }
20452
20453 _LT_EOF
20454 ;;
20455 esac
20456
20457
20458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20459 || (rm -f "$cfgfile"; exit 1)
20460
20461 mv -f "$cfgfile" "$ofile" ||
20462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20463 chmod +x "$ofile"
20464
20465
20466 cat <<_LT_EOF >> "$ofile"
20467
20468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20469
20470 # The linker used to build libraries.
20471 LD=$lt_LD_CXX
20472
20473 # Commands used to build an old-style archive.
20474 old_archive_cmds=$lt_old_archive_cmds_CXX
20475
20476 # A language specific compiler.
20477 CC=$lt_compiler_CXX
20478
20479 # Is the compiler the GNU compiler?
20480 with_gcc=$GCC_CXX
20481
20482 # Compiler flag to turn off builtin functions.
20483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20484
20485 # How to pass a linker flag through the compiler.
20486 wl=$lt_lt_prog_compiler_wl_CXX
20487
20488 # Additional compiler flags for building library objects.
20489 pic_flag=$lt_lt_prog_compiler_pic_CXX
20490
20491 # Compiler flag to prevent dynamic linking.
20492 link_static_flag=$lt_lt_prog_compiler_static_CXX
20493
20494 # Does compiler simultaneously support -c and -o options?
20495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20496
20497 # Whether or not to add -lc for building shared libraries.
20498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20499
20500 # Whether or not to disallow shared libs when runtime libs are static.
20501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20502
20503 # Compiler flag to allow reflexive dlopens.
20504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20505
20506 # Compiler flag to generate shared objects directly from archives.
20507 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20508
20509 # Whether the compiler copes with passing no objects directly.
20510 compiler_needs_object=$lt_compiler_needs_object_CXX
20511
20512 # Create an old-style archive from a shared archive.
20513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20514
20515 # Create a temporary old-style archive to link instead of a shared archive.
20516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20517
20518 # Commands used to build a shared archive.
20519 archive_cmds=$lt_archive_cmds_CXX
20520 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20521
20522 # Commands used to build a loadable module if different from building
20523 # a shared archive.
20524 module_cmds=$lt_module_cmds_CXX
20525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20526
20527 # Whether we are building with GNU ld or not.
20528 with_gnu_ld=$lt_with_gnu_ld_CXX
20529
20530 # Flag that allows shared libraries with undefined symbols to be built.
20531 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20532
20533 # Flag that enforces no undefined symbols.
20534 no_undefined_flag=$lt_no_undefined_flag_CXX
20535
20536 # Flag to hardcode \$libdir into a binary during linking.
20537 # This must work even if \$libdir does not exist
20538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20539
20540 # If ld is used when linking, flag to hardcode \$libdir into a binary
20541 # during linking. This must work even if \$libdir does not exist.
20542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20543
20544 # Whether we need a single "-rpath" flag with a separated argument.
20545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20546
20547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20548 # DIR into the resulting binary.
20549 hardcode_direct=$hardcode_direct_CXX
20550
20551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20552 # DIR into the resulting binary and the resulting library dependency is
20553 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20554 # library is relocated.
20555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20556
20557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20558 # into the resulting binary.
20559 hardcode_minus_L=$hardcode_minus_L_CXX
20560
20561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20562 # into the resulting binary.
20563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20564
20565 # Set to "yes" if building a shared library automatically hardcodes DIR
20566 # into the library and all subsequent libraries and executables linked
20567 # against it.
20568 hardcode_automatic=$hardcode_automatic_CXX
20569
20570 # Set to yes if linker adds runtime paths of dependent libraries
20571 # to runtime path list.
20572 inherit_rpath=$inherit_rpath_CXX
20573
20574 # Whether libtool must link a program against all its dependency libraries.
20575 link_all_deplibs=$link_all_deplibs_CXX
20576
20577 # Fix the shell variable \$srcfile for the compiler.
20578 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20579
20580 # Set to "yes" if exported symbols are required.
20581 always_export_symbols=$always_export_symbols_CXX
20582
20583 # The commands to list exported symbols.
20584 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20585
20586 # Symbols that should not be listed in the preloaded symbols.
20587 exclude_expsyms=$lt_exclude_expsyms_CXX
20588
20589 # Symbols that must always be exported.
20590 include_expsyms=$lt_include_expsyms_CXX
20591
20592 # Commands necessary for linking programs (against libraries) with templates.
20593 prelink_cmds=$lt_prelink_cmds_CXX
20594
20595 # Specify filename containing input files.
20596 file_list_spec=$lt_file_list_spec_CXX
20597
20598 # How to hardcode a shared library path into an executable.
20599 hardcode_action=$hardcode_action_CXX
20600
20601 # The directories searched by this compiler when creating a shared library.
20602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20603
20604 # Dependencies to place before and after the objects being linked to
20605 # create a shared library.
20606 predep_objects=$lt_predep_objects_CXX
20607 postdep_objects=$lt_postdep_objects_CXX
20608 predeps=$lt_predeps_CXX
20609 postdeps=$lt_postdeps_CXX
20610
20611 # The library search path used internally by the compiler when linking
20612 # a shared library.
20613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20614
20615 # ### END LIBTOOL TAG CONFIG: CXX
20616 _LT_EOF
20617
20618 ;;
20619
20620 esac
20621 done # for ac_tag
20622
20623
20624 as_fn_exit 0
20625 _ACEOF
20626 ac_clean_files=$ac_clean_files_save
20627
20628 test $ac_write_fail = 0 ||
20629 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20630
20631
20632 # configure is writing to config.log, and then calls config.status.
20633 # config.status does its own redirection, appending to config.log.
20634 # Unfortunately, on DOS this fails, as config.log is still kept open
20635 # by configure, so config.status won't be able to write to it; its
20636 # output is simply discarded. So we exec the FD to /dev/null,
20637 # effectively closing config.log, so it can be properly (re)opened and
20638 # appended to by config.status. When coming back to configure, we
20639 # need to make the FD available again.
20640 if test "$no_create" != yes; then
20641 ac_cs_success=:
20642 ac_config_status_args=
20643 test "$silent" = yes &&
20644 ac_config_status_args="$ac_config_status_args --quiet"
20645 exec 5>/dev/null
20646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20647 exec 5>>config.log
20648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20649 # would make configure fail if this is the last instruction.
20650 $ac_cs_success || as_fn_exit $?
20651 fi
20652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20655 fi
20656