]> git.saurik.com Git - cycript.git/blob - configure
With framework argument to configure.
[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 FLEX
826 LEXLIB
827 LEX_OUTPUT_ROOT
828 LEX
829 BISON
830 AWK
831 YFLAGS
832 YACC
833 ac_ct_OBJCXX
834 OBJCXXFLAGS
835 OBJCXX
836 CXXCPP
837 ac_ct_CXX
838 CXXFLAGS
839 CXX
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 '
930 ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CPP
939 PKG_CONFIG
940 CXX
941 CXXFLAGS
942 CCC
943 CXXCPP
944 OBJCXX
945 OBJCXXFLAGS
946 YACC
947 YFLAGS
948 GPERF
949 WEBKIT_CFLAGS
950 WEBKIT_LIBS
951 LIBFFI_CFLAGS
952 LIBFFI_LIBS'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1002
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1006 do
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1012 fi
1013
1014 case $ac_option in
1015 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *) ac_optarg=yes ;;
1017 esac
1018
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1020
1021 case $ac_dashdash$ac_option in
1022 --)
1023 ac_dashdash=yes ;;
1024
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1029
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1034
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1041
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1044
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1049
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1056
1057 -disable-* | --disable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=no ;;
1072
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1077
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1082
1083 -enable-* | --enable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=\$ac_optarg ;;
1098
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1107
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1110 with_gas=yes ;;
1111
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1118
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1123
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 ac_prev=htmldir ;;
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 | --ht=*)
1128 htmldir=$ac_optarg ;;
1129
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1136
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 ac_prev=infodir ;;
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1141
1142 -libdir | --libdir | --libdi | --libd)
1143 ac_prev=libdir ;;
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1146
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1153
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1158
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1165
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 ac_prev=mandir ;;
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1170
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1173 with_fp=no ;;
1174
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1177 no_create=yes ;;
1178
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 no_recursion=yes ;;
1182
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1191
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 ac_prev=prefix ;;
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1196
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1203
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1210
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1227
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 ac_prev=pdfdir ;;
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1232
1233 -psdir | --psdir | --psdi | --psd | --ps)
1234 ac_prev=psdir ;;
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 psdir=$ac_optarg ;;
1237
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 silent=yes ;;
1241
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 ac_prev=sbindir ;;
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 | --sbi=* | --sb=*)
1246 sbindir=$ac_optarg ;;
1247
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1251 | --sha | --sh)
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 | --sha=* | --sh=*)
1257 sharedstatedir=$ac_optarg ;;
1258
1259 -site | --site | --sit)
1260 ac_prev=site ;;
1261 -site=* | --site=* | --sit=*)
1262 site=$ac_optarg ;;
1263
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 ac_prev=srcdir ;;
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1268
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1275
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1280
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 verbose=yes ;;
1283
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1286
1287 -with-* | --with-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1295 *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=\$ac_optarg ;;
1302
1303 -without-* | --without-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1311 *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=no ;;
1318
1319 --x)
1320 # Obsolete; use --with-x.
1321 with_x=yes ;;
1322
1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324 | --x-incl | --x-inc | --x-in | --x-i)
1325 ac_prev=x_includes ;;
1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328 x_includes=$ac_optarg ;;
1329
1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332 ac_prev=x_libraries ;;
1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335 x_libraries=$ac_optarg ;;
1336
1337 -*) as_fn_error "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information."
1339 ;;
1340
1341 *=*)
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 case $ac_envvar in #(
1345 '' | [0-9]* | *[!_$as_cr_alnum]* )
1346 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1347 esac
1348 eval $ac_envvar=\$ac_optarg
1349 export $ac_envvar ;;
1350
1351 *)
1352 # FIXME: should be removed in autoconf 3.0.
1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 ;;
1358
1359 esac
1360 done
1361
1362 if test -n "$ac_prev"; then
1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364 as_fn_error "missing argument to $ac_option"
1365 fi
1366
1367 if test -n "$ac_unrecognized_opts"; then
1368 case $enable_option_checking in
1369 no) ;;
1370 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1373 fi
1374
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1380 do
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
1389 case $ac_val in
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 esac
1393 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1395
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1402
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405 if test "x$build_alias" = x; then
1406 cross_compiling=maybe
1407 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1408 If a cross compiler is detected then cross compile mode will be used." >&2
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1411 fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)$/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\).*/{
1451 s//\1/
1452 q
1453 }
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1458 fi
1459 else
1460 ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1547 _ACEOF
1548
1549 cat <<\_ACEOF
1550
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1555 fi
1556
1557 if test -n "$ac_init_help"; then
1558 case $ac_init_help in
1559 short | recursive ) echo "Configuration of Cycript 0.9:";;
1560 esac
1561 cat <<\_ACEOF
1562
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-static[=PKGS] build static libraries [default=no]
1568 --enable-shared[=PKGS] build shared libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --disable-rpath do not hardcode runtime library paths
1573
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1578 both]
1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1581 path for frameworks with -F
1582 --with-apr=PATH prefix for installed APR or the full path to
1583 apr-config
1584 --with-gnu-ld assume the C compiler uses GNU ld default=no
1585 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1586 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1587
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597 PKG_CONFIG path to pkg-config utility
1598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
1600 CXXCPP C++ preprocessor
1601 OBJCXX Objective C++ compiler command
1602 OBJCXXFLAGS Objective C++ compiler flags
1603 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1604 the first program found out of: `bison -y', `byacc', `yacc'.
1605 YFLAGS The list of arguments that will be passed by default to $YACC.
1606 This script will default YFLAGS to the empty string to avoid a
1607 default value of `-d' given by some make applications.
1608 GPERF perfect hash function generator
1609 WEBKIT_CFLAGS
1610 C compiler flags for WEBKIT, overriding pkg-config
1611 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1612 LIBFFI_CFLAGS
1613 C compiler flags for LIBFFI, overriding pkg-config
1614 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1615
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1618
1619 Report bugs to <saurik@saurik.com>.
1620 Cycript home page: <http://www.cycript.org/>.
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1632
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1648
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 Cycript configure 0.9
1684 generated by GNU Autoconf 2.65
1685
1686 Copyright (C) 2009 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1691 fi
1692
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1696
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_compile
1734
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770 fi
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_link
1780
1781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists and can be compiled using the include files in
1784 # INCLUDES, setting the cache variable VAR accordingly.
1785 ac_fn_c_check_header_compile ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 $4
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810 } # ac_fn_c_check_header_compile
1811
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_cpp ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 as_fn_set_status $ac_retval
1846
1847 } # ac_fn_c_try_cpp
1848
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=$ac_status
1884 fi
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_run
1890
1891 # ac_fn_c_check_func LINENO FUNC VAR
1892 # ----------------------------------
1893 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1894 ac_fn_c_check_func ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1906 #define $2 innocuous_$2
1907
1908 /* System header to define __stub macros and hopefully few prototypes,
1909 which can conflict with char $2 (); below.
1910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911 <limits.h> exists even on freestanding compilers. */
1912
1913 #ifdef __STDC__
1914 # include <limits.h>
1915 #else
1916 # include <assert.h>
1917 #endif
1918
1919 #undef $2
1920
1921 /* Override any GCC internal prototype to avoid an error.
1922 Use char because int might match the return type of a GCC
1923 builtin and then its argument prototype would still apply. */
1924 #ifdef __cplusplus
1925 extern "C"
1926 #endif
1927 char $2 ();
1928 /* The GNU C library defines this for functions which it implements
1929 to always fail with ENOSYS. Some functions are actually named
1930 something starting with __ and the normal name is an alias. */
1931 #if defined __stub_$2 || defined __stub___$2
1932 choke me
1933 #endif
1934
1935 int
1936 main ()
1937 {
1938 return $2 ();
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_link "$LINENO"; then :
1944 eval "$3=yes"
1945 else
1946 eval "$3=no"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext \
1949 conftest$ac_exeext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_func
1957
1958 # ac_fn_cxx_try_compile LINENO
1959 # ----------------------------
1960 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_cxx_try_compile ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext
1965 if { { ac_try="$ac_compile"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_compile") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_cxx_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest.$ac_objext; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 as_fn_set_status $ac_retval
1993
1994 } # ac_fn_cxx_try_compile
1995
1996 # ac_fn_cxx_try_cpp LINENO
1997 # ------------------------
1998 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1999 ac_fn_cxx_try_cpp ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_cpp conftest.$ac_ext"
2003 case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2010 ac_status=$?
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2015 fi
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } >/dev/null && {
2018 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2019 test ! -s conftest.err
2020 }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 as_fn_set_status $ac_retval
2030
2031 } # ac_fn_cxx_try_cpp
2032
2033 # ac_fn_cxx_try_link LINENO
2034 # -------------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_cxx_try_link ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 rm -f conftest.$ac_objext conftest$ac_exeext
2040 if { { ac_try="$ac_link"
2041 case "(($ac_try" in
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2044 esac
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>conftest.err
2048 ac_status=$?
2049 if test -s conftest.err; then
2050 grep -v '^ *+' conftest.err >conftest.er1
2051 cat conftest.er1 >&5
2052 mv -f conftest.er1 conftest.err
2053 fi
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && {
2056 test -z "$ac_cxx_werror_flag" ||
2057 test ! -s conftest.err
2058 } && test -s conftest$ac_exeext && {
2059 test "$cross_compiling" = yes ||
2060 $as_test_x conftest$ac_exeext
2061 }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 ac_retval=1
2068 fi
2069 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071 # interfere with the next link command; also delete a directory that is
2072 # left behind by Apple's compiler. We do this before executing the actions.
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075 as_fn_set_status $ac_retval
2076
2077 } # ac_fn_cxx_try_link
2078
2079 # ac_fn_objcxx_try_compile LINENO
2080 # -------------------------------
2081 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2082 ac_fn_objcxx_try_compile ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext
2086 if { { ac_try="$ac_compile"
2087 case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_compile") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2099 fi
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_objcxx_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest.$ac_objext; then :
2105 ac_retval=0
2106 else
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111 fi
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113 as_fn_set_status $ac_retval
2114
2115 } # ac_fn_objcxx_try_compile
2116
2117 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2118 # ---------------------------------------------------------
2119 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120 # the include files in INCLUDES and setting the cache variable VAR
2121 # accordingly.
2122 ac_fn_cxx_check_header_mongrel ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129 $as_echo_n "(cached) " >&6
2130 fi
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 else
2135 # Is the header compilable?
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137 $as_echo_n "checking $2 usability... " >&6; }
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $4
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_cxx_try_compile "$LINENO"; then :
2144 ac_header_compiler=yes
2145 else
2146 ac_header_compiler=no
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150 $as_echo "$ac_header_compiler" >&6; }
2151
2152 # Is the header present?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154 $as_echo_n "checking $2 presence... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_cxx_try_cpp "$LINENO"; then :
2160 ac_header_preproc=yes
2161 else
2162 ac_header_preproc=no
2163 fi
2164 rm -f conftest.err conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166 $as_echo "$ac_header_preproc" >&6; }
2167
2168 # So? What about this header?
2169 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2170 yes:no: )
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175 ;;
2176 no:yes:* )
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2180 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2184 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ( cat <<\_ASBOX
2188 ## -------------------------------- ##
2189 ## Report this to saurik@saurik.com ##
2190 ## -------------------------------- ##
2191 _ASBOX
2192 ) | sed "s/^/$as_me: WARNING: /" >&2
2193 ;;
2194 esac
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 eval "$3=\$ac_header_compiler"
2201 fi
2202 eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 fi
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207
2208 } # ac_fn_cxx_check_header_mongrel
2209
2210 # ac_fn_objcxx_try_link LINENO
2211 # ----------------------------
2212 # Try to link conftest.$ac_ext, and return whether this succeeded.
2213 ac_fn_objcxx_try_link ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 rm -f conftest.$ac_objext conftest$ac_exeext
2217 if { { ac_try="$ac_link"
2218 case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_link") 2>conftest.err
2225 ac_status=$?
2226 if test -s conftest.err; then
2227 grep -v '^ *+' conftest.err >conftest.er1
2228 cat conftest.er1 >&5
2229 mv -f conftest.er1 conftest.err
2230 fi
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; } && {
2233 test -z "$ac_objcxx_werror_flag" ||
2234 test ! -s conftest.err
2235 } && test -s conftest$ac_exeext && {
2236 test "$cross_compiling" = yes ||
2237 $as_test_x conftest$ac_exeext
2238 }; then :
2239 ac_retval=0
2240 else
2241 $as_echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2243
2244 ac_retval=1
2245 fi
2246 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2247 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2248 # interfere with the next link command; also delete a directory that is
2249 # left behind by Apple's compiler. We do this before executing the actions.
2250 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 as_fn_set_status $ac_retval
2253
2254 } # ac_fn_objcxx_try_link
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2258
2259 It was created by Cycript $as_me 0.9, which was
2260 generated by GNU Autoconf 2.65. Invocation command line was
2261
2262 $ $0 $@
2263
2264 _ACEOF
2265 exec 5>>config.log
2266 {
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2271
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288
2289 _ASUNAME
2290
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298 IFS=$as_save_IFS
2299
2300 } >&5
2301
2302 cat >&5 <<_ACEOF
2303
2304
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2308
2309 _ACEOF
2310
2311
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_configure_args=
2318 ac_configure_args0=
2319 ac_configure_args1=
2320 ac_must_keep_next=false
2321 for ac_pass in 1 2
2322 do
2323 for ac_arg
2324 do
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 2)
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2348 ;;
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2351 fi
2352 as_fn_append ac_configure_args " '$ac_arg'"
2353 ;;
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2359
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2367 {
2368 echo
2369
2370 cat <<\_ASBOX
2371 ## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##
2374 _ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377 (
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405 )
2406 echo
2407
2408 cat <<\_ASBOX
2409 ## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2415 do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2423
2424 if test -n "$ac_subst_files"; then
2425 cat <<\_ASBOX
2426 ## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##
2429 _ASBOX
2430 echo
2431 for ac_var in $ac_subst_files
2432 do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2440 fi
2441
2442 if test -s confdefs.h; then
2443 cat <<\_ASBOX
2444 ## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##
2447 _ASBOX
2448 echo
2449 cat confdefs.h
2450 echo
2451 fi
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2459 ' 0
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2464
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2467
2468 $as_echo "/* confdefs.h */" > confdefs.h
2469
2470 # Predefined preprocessor variables.
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2495
2496
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 ac_site_file1=$CONFIG_SITE
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2509 fi
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 do
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file"
2518 fi
2519 done
2520
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special files
2523 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2524 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2531 fi
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2536 fi
2537
2538 # Check that the precious variables saved in the cache have kept the same
2539 # value.
2540 ac_cache_corrupted=false
2541 for ac_var in $ac_precious_vars; do
2542 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2543 eval ac_new_set=\$ac_env_${ac_var}_set
2544 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2545 eval ac_new_val=\$ac_env_${ac_var}_value
2546 case $ac_old_set,$ac_new_set in
2547 set,)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2551 ,set)
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2553 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2555 ,);;
2556 *)
2557 if test "x$ac_old_val" != "x$ac_new_val"; then
2558 # differences in whitespace do not lead to failure.
2559 ac_old_val_w=`echo x $ac_old_val`
2560 ac_new_val_w=`echo x $ac_new_val`
2561 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2563 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2564 ac_cache_corrupted=:
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2567 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2568 eval $ac_var=\$ac_old_val
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2571 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2573 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2574 fi;;
2575 esac
2576 # Pass precious variables to config.status.
2577 if test "$ac_new_set" = set; then
2578 case $ac_new_val in
2579 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2580 *) ac_arg=$ac_var=$ac_new_val ;;
2581 esac
2582 case " $ac_configure_args " in
2583 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2584 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2585 esac
2586 fi
2587 done
2588 if $ac_cache_corrupted; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2592 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2593 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 fi
2595 ## -------------------- ##
2596 ## Main body of script. ##
2597 ## -------------------- ##
2598
2599 ac_ext=c
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604
2605
2606
2607 ac_aux_dir=
2608 for ac_dir in . "$srcdir"/.; do
2609 for ac_t in install-sh install.sh shtool; do
2610 if test -f "$ac_dir/$ac_t"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/$ac_t -c"
2613 break 2
2614 fi
2615 done
2616 done
2617 if test -z "$ac_aux_dir"; then
2618 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2619 fi
2620
2621 # These three variables are undocumented and unsupported,
2622 # and are intended to be withdrawn in a future Autoconf release.
2623 # They can cause serious problems if a builder's source tree is in a directory
2624 # whose full name contains unusual characters.
2625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628
2629
2630 case `pwd` in
2631 *\ * | *\ *)
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2633 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2634 esac
2635
2636
2637
2638 macro_version='2.2.6b'
2639 macro_revision='1.3017'
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653 ltmain="$ac_aux_dir/ltmain.sh"
2654
2655 # Make sure we can run config.sub.
2656 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2657 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2660 $as_echo_n "checking build system type... " >&6; }
2661 if test "${ac_cv_build+set}" = set; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 ac_build_alias=$build_alias
2665 test "x$ac_build_alias" = x &&
2666 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2667 test "x$ac_build_alias" = x &&
2668 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2670 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2671
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2674 $as_echo "$ac_cv_build" >&6; }
2675 case $ac_cv_build in
2676 *-*-*) ;;
2677 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2678 esac
2679 build=$ac_cv_build
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_build
2682 shift
2683 build_cpu=$1
2684 build_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 build_os=$*
2689 IFS=$ac_save_IFS
2690 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2691
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2694 $as_echo_n "checking host system type... " >&6; }
2695 if test "${ac_cv_host+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test "x$host_alias" = x; then
2699 ac_cv_host=$ac_cv_build
2700 else
2701 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2702 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2703 fi
2704
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2707 $as_echo "$ac_cv_host" >&6; }
2708 case $ac_cv_host in
2709 *-*-*) ;;
2710 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2711 esac
2712 host=$ac_cv_host
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_host
2715 shift
2716 host_cpu=$1
2717 host_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 host_os=$*
2722 IFS=$ac_save_IFS
2723 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2724
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if test -z "$ac_cv_prog_CC"; then
2771 ac_ct_CC=$CC
2772 # Extract the first word of "gcc", so it can be a program name with args.
2773 set dummy gcc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_ac_ct_CC="gcc"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 $as_echo "$ac_ct_CC" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2818 fi
2819 else
2820 CC="$ac_cv_prog_CC"
2821 fi
2822
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826 set dummy ${ac_tool_prefix}cc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CC="${ac_tool_prefix}cc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 $as_echo "$CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 fi
2860
2861
2862 fi
2863 fi
2864 if test -z "$CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 ac_prog_rejected=no
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884 ac_prog_rejected=yes
2885 continue
2886 fi
2887 ac_cv_prog_CC="cc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 if test $ac_prog_rejected = yes; then
2896 # We found a bogon in the path, so make sure we never use it.
2897 set dummy $ac_cv_prog_CC
2898 shift
2899 if test $# != 0; then
2900 # We chose a different compiler from the bogus one.
2901 # However, it has the same basename, so the bogon will be chosen
2902 # first if we set CC to just the basename; use the full file name.
2903 shift
2904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 fi
2906 fi
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 test -n "$CC" && break
2962 done
2963 fi
2964 if test -z "$CC"; then
2965 ac_ct_CC=$CC
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_CC="$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 test -n "$ac_ct_CC" && break
3006 done
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3018 fi
3019 fi
3020
3021 fi
3022
3023
3024 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 as_fn_error "no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." "$LINENO" 5; }
3028
3029 # Provide some information about the compiler.
3030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3031 set X $ac_compile
3032 ac_compiler=$2
3033 for ac_option in --version -v -V -qversion; do
3034 { { ac_try="$ac_compiler $ac_option >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 ac_status=$?
3043 if test -s conftest.err; then
3044 sed '10a\
3045 ... rest of stderr output deleted ...
3046 10q' conftest.err >conftest.er1
3047 cat conftest.er1 >&5
3048 fi
3049 rm -f conftest.er1 conftest.err
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 done
3053
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 ac_clean_files_save=$ac_clean_files
3066 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067 # Try to create an executable without -o first, disregard a.out.
3068 # It will help us diagnose broken compilers, and finding out an intuition
3069 # of exeext.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3071 $as_echo_n "checking whether the C compiler works... " >&6; }
3072 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073
3074 # The possible output files:
3075 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3076
3077 ac_rmfiles=
3078 for ac_file in $ac_files
3079 do
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 esac
3084 done
3085 rm -f $ac_rmfiles
3086
3087 if { { ac_try="$ac_link_default"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link_default") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3102 # Autoconf.
3103 for ac_file in $ac_files ''
3104 do
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3108 ;;
3109 [ab].out )
3110 # We found the default executable, but exeext='' is most
3111 # certainly right.
3112 break;;
3113 *.* )
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 then :; else
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 fi
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3122 # actually working.
3123 break;;
3124 * )
3125 break;;
3126 esac
3127 done
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3129
3130 else
3131 ac_file=''
3132 fi
3133 if test -z "$ac_file"; then :
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { as_fn_set_status 77
3142 as_fn_error "C compiler cannot create executables
3143 See \`config.log' for more details." "$LINENO" 5; }; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 $as_echo "yes" >&6; }
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3149 $as_echo_n "checking for C compiler default output file name... " >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3151 $as_echo "$ac_file" >&6; }
3152 ac_exeext=$ac_cv_exeext
3153
3154 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3157 $as_echo_n "checking for suffix of executables... " >&6; }
3158 if { { ac_try="$ac_link"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3171 # work properly (i.e., refer to `conftest.exe'), while it won't with
3172 # `rm'.
3173 for ac_file in conftest.exe conftest conftest.*; do
3174 test -f "$ac_file" || continue
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 break;;
3179 * ) break;;
3180 esac
3181 done
3182 else
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error "cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." "$LINENO" 5; }
3187 fi
3188 rm -f conftest conftest$ac_cv_exeext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3190 $as_echo "$ac_cv_exeext" >&6; }
3191
3192 rm -f conftest.$ac_ext
3193 EXEEXT=$ac_cv_exeext
3194 ac_exeext=$EXEEXT
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3197 #include <stdio.h>
3198 int
3199 main ()
3200 {
3201 FILE *f = fopen ("conftest.out", "w");
3202 return ferror (f) || fclose (f) != 0;
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 ac_clean_files="$ac_clean_files conftest.out"
3209 # Check that the compiler produces executables we can run. If not, either
3210 # the compiler is broken, or we cross compile.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3212 $as_echo_n "checking whether we are cross compiling... " >&6; }
3213 if test "$cross_compiling" != yes; then
3214 { { ac_try="$ac_link"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_link") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }
3225 if { ac_try='./conftest$ac_cv_exeext'
3226 { { case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_try") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; }; then
3236 cross_compiling=no
3237 else
3238 if test "$cross_compiling" = maybe; then
3239 cross_compiling=yes
3240 else
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error "cannot run C compiled programs.
3244 If you meant to cross compile, use \`--host'.
3245 See \`config.log' for more details." "$LINENO" 5; }
3246 fi
3247 fi
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3250 $as_echo "$cross_compiling" >&6; }
3251
3252 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3253 ac_clean_files=$ac_clean_files_save
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3255 $as_echo_n "checking for suffix of object files... " >&6; }
3256 if test "${ac_cv_objext+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.o conftest.obj
3271 if { { ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_compile") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 for ac_file in conftest.o conftest.obj conftest.*; do
3283 test -f "$ac_file" || continue;
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289 done
3290 else
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error "cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details." "$LINENO" 5; }
3298 fi
3299 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3302 $as_echo "$ac_cv_objext" >&6; }
3303 OBJEXT=$ac_cv_objext
3304 ac_objext=$OBJEXT
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3306 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3307 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316 #ifndef __GNUC__
3317 choke me
3318 #endif
3319
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325 ac_compiler_gnu=yes
3326 else
3327 ac_compiler_gnu=no
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3331
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3334 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3335 if test $ac_compiler_gnu = yes; then
3336 GCC=yes
3337 else
3338 GCC=
3339 fi
3340 ac_test_CFLAGS=${CFLAGS+set}
3341 ac_save_CFLAGS=$CFLAGS
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3343 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3344 if test "${ac_cv_prog_cc_g+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 ac_save_c_werror_flag=$ac_c_werror_flag
3348 ac_c_werror_flag=yes
3349 ac_cv_prog_cc_g=no
3350 CFLAGS="-g"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3353
3354 int
3355 main ()
3356 {
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363 ac_cv_prog_cc_g=yes
3364 else
3365 CFLAGS=""
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378
3379 else
3380 ac_c_werror_flag=$ac_save_c_werror_flag
3381 CFLAGS="-g"
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3384
3385 int
3386 main ()
3387 {
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_cv_prog_cc_g=yes
3395 fi
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 fi
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3404 $as_echo "$ac_cv_prog_cc_g" >&6; }
3405 if test "$ac_test_CFLAGS" = set; then
3406 CFLAGS=$ac_save_CFLAGS
3407 elif test $ac_cv_prog_cc_g = yes; then
3408 if test "$GCC" = yes; then
3409 CFLAGS="-g -O2"
3410 else
3411 CFLAGS="-g"
3412 fi
3413 else
3414 if test "$GCC" = yes; then
3415 CFLAGS="-O2"
3416 else
3417 CFLAGS=
3418 fi
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3421 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3422 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 ac_cv_prog_cc_c89=no
3426 ac_save_CC=$CC
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429 #include <stdarg.h>
3430 #include <stdio.h>
3431 #include <sys/types.h>
3432 #include <sys/stat.h>
3433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3434 struct buf { int x; };
3435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3436 static char *e (p, i)
3437 char **p;
3438 int i;
3439 {
3440 return p[i];
3441 }
3442 static char *f (char * (*g) (char **, int), char **p, ...)
3443 {
3444 char *s;
3445 va_list v;
3446 va_start (v,p);
3447 s = g (p, va_arg (v,int));
3448 va_end (v);
3449 return s;
3450 }
3451
3452 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3453 function prototypes and stuff, but not '\xHH' hex character constants.
3454 These don't provoke an error unfortunately, instead are silently treated
3455 as 'x'. The following induces an error, until -std is added to get
3456 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3457 array size at least. It's necessary to write '\x00'==0 to get something
3458 that's true only with -std. */
3459 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3460
3461 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3462 inside strings and character constants. */
3463 #define FOO(x) 'x'
3464 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3465
3466 int test (int i, double x);
3467 struct s1 {int (*f) (int a);};
3468 struct s2 {int (*f) (double a);};
3469 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3470 int argc;
3471 char **argv;
3472 int
3473 main ()
3474 {
3475 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3481 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3482 do
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_c89=$ac_arg
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext
3488 test "x$ac_cv_prog_cc_c89" != "xno" && break
3489 done
3490 rm -f conftest.$ac_ext
3491 CC=$ac_save_CC
3492
3493 fi
3494 # AC_CACHE_VAL
3495 case "x$ac_cv_prog_cc_c89" in
3496 x)
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3498 $as_echo "none needed" >&6; } ;;
3499 xno)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501 $as_echo "unsupported" >&6; } ;;
3502 *)
3503 CC="$CC $ac_cv_prog_cc_c89"
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3505 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3506 esac
3507 if test "x$ac_cv_prog_cc_c89" != xno; then :
3508
3509 fi
3510
3511 ac_ext=c
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3518 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3519 if test "${ac_cv_path_SED+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3523 for ac_i in 1 2 3 4 5 6 7; do
3524 ac_script="$ac_script$as_nl$ac_script"
3525 done
3526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3527 { ac_script=; unset ac_script;}
3528 if test -z "$SED"; then
3529 ac_path_SED_found=false
3530 # Loop through the user's path and test for each of PROGNAME-LIST
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_prog in sed gsed; do
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3540 # Check for GNU ac_path_SED and select it if it is found.
3541 # Check for GNU $ac_path_SED
3542 case `"$ac_path_SED" --version 2>&1` in
3543 *GNU*)
3544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3545 *)
3546 ac_count=0
3547 $as_echo_n 0123456789 >"conftest.in"
3548 while :
3549 do
3550 cat "conftest.in" "conftest.in" >"conftest.tmp"
3551 mv "conftest.tmp" "conftest.in"
3552 cp "conftest.in" "conftest.nl"
3553 $as_echo '' >> "conftest.nl"
3554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3556 as_fn_arith $ac_count + 1 && ac_count=$as_val
3557 if test $ac_count -gt ${ac_path_SED_max-0}; then
3558 # Best one so far, save it but keep looking for a better one
3559 ac_cv_path_SED="$ac_path_SED"
3560 ac_path_SED_max=$ac_count
3561 fi
3562 # 10*(2^10) chars as input seems more than enough
3563 test $ac_count -gt 10 && break
3564 done
3565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3566 esac
3567
3568 $ac_path_SED_found && break 3
3569 done
3570 done
3571 done
3572 IFS=$as_save_IFS
3573 if test -z "$ac_cv_path_SED"; then
3574 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3575 fi
3576 else
3577 ac_cv_path_SED=$SED
3578 fi
3579
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3582 $as_echo "$ac_cv_path_SED" >&6; }
3583 SED="$ac_cv_path_SED"
3584 rm -f conftest.sed
3585
3586 test -z "$SED" && SED=sed
3587 Xsed="$SED -e 1s/^X//"
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3601 if test "${ac_cv_path_GREP+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -z "$GREP"; then
3605 ac_path_GREP_found=false
3606 # Loop through the user's path and test for each of PROGNAME-LIST
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3609 do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_prog in grep ggrep; do
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3615 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3616 # Check for GNU ac_path_GREP and select it if it is found.
3617 # Check for GNU $ac_path_GREP
3618 case `"$ac_path_GREP" --version 2>&1` in
3619 *GNU*)
3620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3621 *)
3622 ac_count=0
3623 $as_echo_n 0123456789 >"conftest.in"
3624 while :
3625 do
3626 cat "conftest.in" "conftest.in" >"conftest.tmp"
3627 mv "conftest.tmp" "conftest.in"
3628 cp "conftest.in" "conftest.nl"
3629 $as_echo 'GREP' >> "conftest.nl"
3630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3632 as_fn_arith $ac_count + 1 && ac_count=$as_val
3633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3634 # Best one so far, save it but keep looking for a better one
3635 ac_cv_path_GREP="$ac_path_GREP"
3636 ac_path_GREP_max=$ac_count
3637 fi
3638 # 10*(2^10) chars as input seems more than enough
3639 test $ac_count -gt 10 && break
3640 done
3641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3642 esac
3643
3644 $ac_path_GREP_found && break 3
3645 done
3646 done
3647 done
3648 IFS=$as_save_IFS
3649 if test -z "$ac_cv_path_GREP"; then
3650 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3651 fi
3652 else
3653 ac_cv_path_GREP=$GREP
3654 fi
3655
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3658 $as_echo "$ac_cv_path_GREP" >&6; }
3659 GREP="$ac_cv_path_GREP"
3660
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3663 $as_echo_n "checking for egrep... " >&6; }
3664 if test "${ac_cv_path_EGREP+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668 then ac_cv_path_EGREP="$GREP -E"
3669 else
3670 if test -z "$EGREP"; then
3671 ac_path_EGREP_found=false
3672 # Loop through the user's path and test for each of PROGNAME-LIST
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_prog in egrep; do
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3681 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3682 # Check for GNU ac_path_EGREP and select it if it is found.
3683 # Check for GNU $ac_path_EGREP
3684 case `"$ac_path_EGREP" --version 2>&1` in
3685 *GNU*)
3686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3687 *)
3688 ac_count=0
3689 $as_echo_n 0123456789 >"conftest.in"
3690 while :
3691 do
3692 cat "conftest.in" "conftest.in" >"conftest.tmp"
3693 mv "conftest.tmp" "conftest.in"
3694 cp "conftest.in" "conftest.nl"
3695 $as_echo 'EGREP' >> "conftest.nl"
3696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698 as_fn_arith $ac_count + 1 && ac_count=$as_val
3699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3700 # Best one so far, save it but keep looking for a better one
3701 ac_cv_path_EGREP="$ac_path_EGREP"
3702 ac_path_EGREP_max=$ac_count
3703 fi
3704 # 10*(2^10) chars as input seems more than enough
3705 test $ac_count -gt 10 && break
3706 done
3707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708 esac
3709
3710 $ac_path_EGREP_found && break 3
3711 done
3712 done
3713 done
3714 IFS=$as_save_IFS
3715 if test -z "$ac_cv_path_EGREP"; then
3716 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3717 fi
3718 else
3719 ac_cv_path_EGREP=$EGREP
3720 fi
3721
3722 fi
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3725 $as_echo "$ac_cv_path_EGREP" >&6; }
3726 EGREP="$ac_cv_path_EGREP"
3727
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3730 $as_echo_n "checking for fgrep... " >&6; }
3731 if test "${ac_cv_path_FGREP+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3735 then ac_cv_path_FGREP="$GREP -F"
3736 else
3737 if test -z "$FGREP"; then
3738 ac_path_FGREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_prog in fgrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3749 # Check for GNU ac_path_FGREP and select it if it is found.
3750 # Check for GNU $ac_path_FGREP
3751 case `"$ac_path_FGREP" --version 2>&1` in
3752 *GNU*)
3753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3754 *)
3755 ac_count=0
3756 $as_echo_n 0123456789 >"conftest.in"
3757 while :
3758 do
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 $as_echo 'FGREP' >> "conftest.nl"
3763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765 as_fn_arith $ac_count + 1 && ac_count=$as_val
3766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_FGREP="$ac_path_FGREP"
3769 ac_path_FGREP_max=$ac_count
3770 fi
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775 esac
3776
3777 $ac_path_FGREP_found && break 3
3778 done
3779 done
3780 done
3781 IFS=$as_save_IFS
3782 if test -z "$ac_cv_path_FGREP"; then
3783 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3784 fi
3785 else
3786 ac_cv_path_FGREP=$FGREP
3787 fi
3788
3789 fi
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3792 $as_echo "$ac_cv_path_FGREP" >&6; }
3793 FGREP="$ac_cv_path_FGREP"
3794
3795
3796 test -z "$GREP" && GREP=grep
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816 # Check whether --with-gnu-ld was given.
3817 if test "${with_gnu_ld+set}" = set; then :
3818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3819 else
3820 with_gnu_ld=no
3821 fi
3822
3823 ac_prog=ld
3824 if test "$GCC" = yes; then
3825 # Check if gcc -print-prog-name=ld gives a path.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3827 $as_echo_n "checking for ld used by $CC... " >&6; }
3828 case $host in
3829 *-*-mingw*)
3830 # gcc leaves a trailing carriage return which upsets mingw
3831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3832 *)
3833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3834 esac
3835 case $ac_prog in
3836 # Accept absolute paths.
3837 [\\/]* | ?:[\\/]*)
3838 re_direlt='/[^/][^/]*/\.\./'
3839 # Canonicalize the pathname of ld
3840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3843 done
3844 test -z "$LD" && LD="$ac_prog"
3845 ;;
3846 "")
3847 # If it fails, then pretend we aren't using GCC.
3848 ac_prog=ld
3849 ;;
3850 *)
3851 # If it is relative, then search for the first ld in PATH.
3852 with_gnu_ld=unknown
3853 ;;
3854 esac
3855 elif test "$with_gnu_ld" = yes; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3857 $as_echo_n "checking for GNU ld... " >&6; }
3858 else
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3860 $as_echo_n "checking for non-GNU ld... " >&6; }
3861 fi
3862 if test "${lt_cv_path_LD+set}" = set; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -z "$LD"; then
3866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3867 for ac_dir in $PATH; do
3868 IFS="$lt_save_ifs"
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3871 lt_cv_path_LD="$ac_dir/$ac_prog"
3872 # Check to see if the program is GNU ld. I'd rather use --version,
3873 # but apparently some variants of GNU ld only accept -v.
3874 # Break only if it was the GNU/non-GNU ld that we prefer.
3875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3876 *GNU* | *'with BFD'*)
3877 test "$with_gnu_ld" != no && break
3878 ;;
3879 *)
3880 test "$with_gnu_ld" != yes && break
3881 ;;
3882 esac
3883 fi
3884 done
3885 IFS="$lt_save_ifs"
3886 else
3887 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3888 fi
3889 fi
3890
3891 LD="$lt_cv_path_LD"
3892 if test -n "$LD"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3894 $as_echo "$LD" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3899 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3902 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3906 case `$LD -v 2>&1 </dev/null` in
3907 *GNU* | *'with BFD'*)
3908 lt_cv_prog_gnu_ld=yes
3909 ;;
3910 *)
3911 lt_cv_prog_gnu_ld=no
3912 ;;
3913 esac
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3917 with_gnu_ld=$lt_cv_prog_gnu_ld
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3929 if test "${lt_cv_path_NM+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$NM"; then
3933 # Let the user override the test.
3934 lt_cv_path_NM="$NM"
3935 else
3936 lt_nm_to_check="${ac_tool_prefix}nm"
3937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3938 lt_nm_to_check="$lt_nm_to_check nm"
3939 fi
3940 for lt_tmp_nm in $lt_nm_to_check; do
3941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3943 IFS="$lt_save_ifs"
3944 test -z "$ac_dir" && ac_dir=.
3945 tmp_nm="$ac_dir/$lt_tmp_nm"
3946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3947 # Check to see if the nm accepts a BSD-compat flag.
3948 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3949 # nm: unknown option "B" ignored
3950 # Tru64's nm complains that /dev/null is an invalid object file
3951 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3952 */dev/null* | *'Invalid file or object type'*)
3953 lt_cv_path_NM="$tmp_nm -B"
3954 break
3955 ;;
3956 *)
3957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3958 */dev/null*)
3959 lt_cv_path_NM="$tmp_nm -p"
3960 break
3961 ;;
3962 *)
3963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3964 continue # so that we can try to find one that supports BSD flags
3965 ;;
3966 esac
3967 ;;
3968 esac
3969 fi
3970 done
3971 IFS="$lt_save_ifs"
3972 done
3973 : ${lt_cv_path_NM=no}
3974 fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3977 $as_echo "$lt_cv_path_NM" >&6; }
3978 if test "$lt_cv_path_NM" != "no"; then
3979 NM="$lt_cv_path_NM"
3980 else
3981 # Didn't find any BSD compatible name lister, look for dumpbin.
3982 if test -n "$ac_tool_prefix"; then
3983 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3984 do
3985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$DUMPBIN"; then
3993 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006 done
4007 done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 DUMPBIN=$ac_cv_prog_DUMPBIN
4013 if test -n "$DUMPBIN"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4015 $as_echo "$DUMPBIN" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021
4022 test -n "$DUMPBIN" && break
4023 done
4024 fi
4025 if test -z "$DUMPBIN"; then
4026 ac_ct_DUMPBIN=$DUMPBIN
4027 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4028 do
4029 # Extract the first word of "$ac_prog", so it can be a program name with args.
4030 set dummy $ac_prog; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_DUMPBIN"; then
4037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4057 if test -n "$ac_ct_DUMPBIN"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4059 $as_echo "$ac_ct_DUMPBIN" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065
4066 test -n "$ac_ct_DUMPBIN" && break
4067 done
4068
4069 if test "x$ac_ct_DUMPBIN" = x; then
4070 DUMPBIN=":"
4071 else
4072 case $cross_compiling:$ac_tool_warned in
4073 yes:)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4077 esac
4078 DUMPBIN=$ac_ct_DUMPBIN
4079 fi
4080 fi
4081
4082
4083 if test "$DUMPBIN" != ":"; then
4084 NM="$DUMPBIN"
4085 fi
4086 fi
4087 test -z "$NM" && NM=nm
4088
4089
4090
4091
4092
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4095 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4096 if test "${lt_cv_nm_interface+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 lt_cv_nm_interface="BSD nm"
4100 echo "int some_variable = 0;" > conftest.$ac_ext
4101 (eval echo "\"\$as_me:4101: $ac_compile\"" >&5)
4102 (eval "$ac_compile" 2>conftest.err)
4103 cat conftest.err >&5
4104 (eval echo "\"\$as_me:4104: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4105 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4106 cat conftest.err >&5
4107 (eval echo "\"\$as_me:4107: output\"" >&5)
4108 cat conftest.out >&5
4109 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4110 lt_cv_nm_interface="MS dumpbin"
4111 fi
4112 rm -f conftest*
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4115 $as_echo "$lt_cv_nm_interface" >&6; }
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4118 $as_echo_n "checking whether ln -s works... " >&6; }
4119 LN_S=$as_ln_s
4120 if test "$LN_S" = "ln -s"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122 $as_echo "yes" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4125 $as_echo "no, using $LN_S" >&6; }
4126 fi
4127
4128 # find the maximum length of command line arguments
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4130 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4131 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 i=0
4135 teststring="ABCD"
4136
4137 case $build_os in
4138 msdosdjgpp*)
4139 # On DJGPP, this test can blow up pretty badly due to problems in libc
4140 # (any single argument exceeding 2000 bytes causes a buffer overrun
4141 # during glob expansion). Even if it were fixed, the result of this
4142 # check would be larger than it should be.
4143 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4144 ;;
4145
4146 gnu*)
4147 # Under GNU Hurd, this test is not required because there is
4148 # no limit to the length of command line arguments.
4149 # Libtool will interpret -1 as no limit whatsoever
4150 lt_cv_sys_max_cmd_len=-1;
4151 ;;
4152
4153 cygwin* | mingw* | cegcc*)
4154 # On Win9x/ME, this test blows up -- it succeeds, but takes
4155 # about 5 minutes as the teststring grows exponentially.
4156 # Worse, since 9x/ME are not pre-emptively multitasking,
4157 # you end up with a "frozen" computer, even though with patience
4158 # the test eventually succeeds (with a max line length of 256k).
4159 # Instead, let's just punt: use the minimum linelength reported by
4160 # all of the supported platforms: 8192 (on NT/2K/XP).
4161 lt_cv_sys_max_cmd_len=8192;
4162 ;;
4163
4164 amigaos*)
4165 # On AmigaOS with pdksh, this test takes hours, literally.
4166 # So we just punt and use a minimum line length of 8192.
4167 lt_cv_sys_max_cmd_len=8192;
4168 ;;
4169
4170 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4171 # This has been around since 386BSD, at least. Likely further.
4172 if test -x /sbin/sysctl; then
4173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4174 elif test -x /usr/sbin/sysctl; then
4175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4176 else
4177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4178 fi
4179 # And add a safety zone
4180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4182 ;;
4183
4184 interix*)
4185 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4186 lt_cv_sys_max_cmd_len=196608
4187 ;;
4188
4189 osf*)
4190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4192 # nice to cause kernel panics so lets avoid the loop below.
4193 # First set a reasonable default.
4194 lt_cv_sys_max_cmd_len=16384
4195 #
4196 if test -x /sbin/sysconfig; then
4197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4199 esac
4200 fi
4201 ;;
4202 sco3.2v5*)
4203 lt_cv_sys_max_cmd_len=102400
4204 ;;
4205 sysv5* | sco5v6* | sysv4.2uw2*)
4206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4207 if test -n "$kargmax"; then
4208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4209 else
4210 lt_cv_sys_max_cmd_len=32768
4211 fi
4212 ;;
4213 *)
4214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4215 if test -n "$lt_cv_sys_max_cmd_len"; then
4216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4218 else
4219 # Make teststring a little bigger before we do anything with it.
4220 # a 1K string should be a reasonable start.
4221 for i in 1 2 3 4 5 6 7 8 ; do
4222 teststring=$teststring$teststring
4223 done
4224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4225 # If test is not a shell built-in, we'll probably end up computing a
4226 # maximum length that is only half of the actual maximum length, but
4227 # we can't tell.
4228 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4229 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4230 test $i != 17 # 1/2 MB should be enough
4231 do
4232 i=`expr $i + 1`
4233 teststring=$teststring$teststring
4234 done
4235 # Only check the string length outside the loop.
4236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4237 teststring=
4238 # Add a significant safety factor because C++ compilers can tack on
4239 # massive amounts of additional arguments before passing them to the
4240 # linker. It appears as though 1/2 is a usable value.
4241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4242 fi
4243 ;;
4244 esac
4245
4246 fi
4247
4248 if test -n $lt_cv_sys_max_cmd_len ; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4253 $as_echo "none" >&6; }
4254 fi
4255 max_cmd_len=$lt_cv_sys_max_cmd_len
4256
4257
4258
4259
4260
4261
4262 : ${CP="cp -f"}
4263 : ${MV="mv -f"}
4264 : ${RM="rm -f"}
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4268 # Try some XSI features
4269 xsi_shell=no
4270 ( _lt_dummy="a/b/c"
4271 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4272 = c,a/b,, \
4273 && eval 'test $(( 1 + 1 )) -eq 2 \
4274 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4275 && xsi_shell=yes
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4277 $as_echo "$xsi_shell" >&6; }
4278
4279
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4282 lt_shell_append=no
4283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4284 >/dev/null 2>&1 \
4285 && lt_shell_append=yes
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4287 $as_echo "$lt_shell_append" >&6; }
4288
4289
4290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4291 lt_unset=unset
4292 else
4293 lt_unset=false
4294 fi
4295
4296
4297
4298
4299
4300 # test EBCDIC or ASCII
4301 case `echo X|tr X '\101'` in
4302 A) # ASCII based system
4303 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4304 lt_SP2NL='tr \040 \012'
4305 lt_NL2SP='tr \015\012 \040\040'
4306 ;;
4307 *) # EBCDIC based system
4308 lt_SP2NL='tr \100 \n'
4309 lt_NL2SP='tr \r\n \100\100'
4310 ;;
4311 esac
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4322 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4323 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 lt_cv_ld_reload_flag='-r'
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4329 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4330 reload_flag=$lt_cv_ld_reload_flag
4331 case $reload_flag in
4332 "" | " "*) ;;
4333 *) reload_flag=" $reload_flag" ;;
4334 esac
4335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4336 case $host_os in
4337 darwin*)
4338 if test "$GCC" = yes; then
4339 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4340 else
4341 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4342 fi
4343 ;;
4344 esac
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4356 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$OBJDUMP"; then
4363 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 OBJDUMP=$ac_cv_prog_OBJDUMP
4383 if test -n "$OBJDUMP"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4385 $as_echo "$OBJDUMP" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 fi
4393 if test -z "$ac_cv_prog_OBJDUMP"; then
4394 ac_ct_OBJDUMP=$OBJDUMP
4395 # Extract the first word of "objdump", so it can be a program name with args.
4396 set dummy objdump; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$ac_ct_OBJDUMP"; then
4403 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4423 if test -n "$ac_ct_OBJDUMP"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4425 $as_echo "$ac_ct_OBJDUMP" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431 if test "x$ac_ct_OBJDUMP" = x; then
4432 OBJDUMP="false"
4433 else
4434 case $cross_compiling:$ac_tool_warned in
4435 yes:)
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438 ac_tool_warned=yes ;;
4439 esac
4440 OBJDUMP=$ac_ct_OBJDUMP
4441 fi
4442 else
4443 OBJDUMP="$ac_cv_prog_OBJDUMP"
4444 fi
4445
4446 test -z "$OBJDUMP" && OBJDUMP=objdump
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4457 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4458 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 lt_cv_file_magic_cmd='$MAGIC_CMD'
4462 lt_cv_file_magic_test_file=
4463 lt_cv_deplibs_check_method='unknown'
4464 # Need to set the preceding variable on all platforms that support
4465 # interlibrary dependencies.
4466 # 'none' -- dependencies not supported.
4467 # `unknown' -- same as none, but documents that we really don't know.
4468 # 'pass_all' -- all dependencies passed with no checks.
4469 # 'test_compile' -- check by making test program.
4470 # 'file_magic [[regex]]' -- check by looking for files in library path
4471 # which responds to the $file_magic_cmd with a given extended regex.
4472 # If you have `file' or equivalent on your system and you're not sure
4473 # whether `pass_all' will *always* work, you probably want this one.
4474
4475 case $host_os in
4476 aix[4-9]*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
4479
4480 beos*)
4481 lt_cv_deplibs_check_method=pass_all
4482 ;;
4483
4484 bsdi[45]*)
4485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4486 lt_cv_file_magic_cmd='/usr/bin/file -L'
4487 lt_cv_file_magic_test_file=/shlib/libc.so
4488 ;;
4489
4490 cygwin*)
4491 # func_win32_libid is a shell function defined in ltmain.sh
4492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4493 lt_cv_file_magic_cmd='func_win32_libid'
4494 ;;
4495
4496 mingw* | pw32*)
4497 # Base MSYS/MinGW do not provide the 'file' command needed by
4498 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4499 # unless we find 'file', for example because we are cross-compiling.
4500 if ( file / ) >/dev/null 2>&1; then
4501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4502 lt_cv_file_magic_cmd='func_win32_libid'
4503 else
4504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4505 lt_cv_file_magic_cmd='$OBJDUMP -f'
4506 fi
4507 ;;
4508
4509 cegcc)
4510 # use the weaker test based on 'objdump'. See mingw*.
4511 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4512 lt_cv_file_magic_cmd='$OBJDUMP -f'
4513 ;;
4514
4515 darwin* | rhapsody*)
4516 lt_cv_deplibs_check_method=pass_all
4517 ;;
4518
4519 freebsd* | dragonfly*)
4520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4521 case $host_cpu in
4522 i*86 )
4523 # Not sure whether the presence of OpenBSD here was a mistake.
4524 # Let's accept both of them until this is cleared up.
4525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4526 lt_cv_file_magic_cmd=/usr/bin/file
4527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4528 ;;
4529 esac
4530 else
4531 lt_cv_deplibs_check_method=pass_all
4532 fi
4533 ;;
4534
4535 gnu*)
4536 lt_cv_deplibs_check_method=pass_all
4537 ;;
4538
4539 hpux10.20* | hpux11*)
4540 lt_cv_file_magic_cmd=/usr/bin/file
4541 case $host_cpu in
4542 ia64*)
4543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4545 ;;
4546 hppa*64*)
4547 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]'
4548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4549 ;;
4550 *)
4551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4553 ;;
4554 esac
4555 ;;
4556
4557 interix[3-9]*)
4558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4560 ;;
4561
4562 irix5* | irix6* | nonstopux*)
4563 case $LD in
4564 *-32|*"-32 ") libmagic=32-bit;;
4565 *-n32|*"-n32 ") libmagic=N32;;
4566 *-64|*"-64 ") libmagic=64-bit;;
4567 *) libmagic=never-match;;
4568 esac
4569 lt_cv_deplibs_check_method=pass_all
4570 ;;
4571
4572 # This must be Linux ELF.
4573 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4574 lt_cv_deplibs_check_method=pass_all
4575 ;;
4576
4577 netbsd* | netbsdelf*-gnu)
4578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4580 else
4581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4582 fi
4583 ;;
4584
4585 newos6*)
4586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4587 lt_cv_file_magic_cmd=/usr/bin/file
4588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4589 ;;
4590
4591 *nto* | *qnx*)
4592 lt_cv_deplibs_check_method=pass_all
4593 ;;
4594
4595 openbsd*)
4596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4598 else
4599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4600 fi
4601 ;;
4602
4603 osf3* | osf4* | osf5*)
4604 lt_cv_deplibs_check_method=pass_all
4605 ;;
4606
4607 rdos*)
4608 lt_cv_deplibs_check_method=pass_all
4609 ;;
4610
4611 solaris*)
4612 lt_cv_deplibs_check_method=pass_all
4613 ;;
4614
4615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4616 lt_cv_deplibs_check_method=pass_all
4617 ;;
4618
4619 sysv4 | sysv4.3*)
4620 case $host_vendor in
4621 motorola)
4622 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]'
4623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4624 ;;
4625 ncr)
4626 lt_cv_deplibs_check_method=pass_all
4627 ;;
4628 sequent)
4629 lt_cv_file_magic_cmd='/bin/file'
4630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4631 ;;
4632 sni)
4633 lt_cv_file_magic_cmd='/bin/file'
4634 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4635 lt_cv_file_magic_test_file=/lib/libc.so
4636 ;;
4637 siemens)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640 pc)
4641 lt_cv_deplibs_check_method=pass_all
4642 ;;
4643 esac
4644 ;;
4645
4646 tpf*)
4647 lt_cv_deplibs_check_method=pass_all
4648 ;;
4649 esac
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4653 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4654 file_magic_cmd=$lt_cv_file_magic_cmd
4655 deplibs_check_method=$lt_cv_deplibs_check_method
4656 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}ar; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_AR+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$AR"; then
4678 ac_cv_prog_AR="$AR" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_AR="${ac_tool_prefix}ar"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 AR=$ac_cv_prog_AR
4698 if test -n "$AR"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4700 $as_echo "$AR" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706
4707 fi
4708 if test -z "$ac_cv_prog_AR"; then
4709 ac_ct_AR=$AR
4710 # Extract the first word of "ar", so it can be a program name with args.
4711 set dummy ar; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$ac_ct_AR"; then
4718 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_ac_ct_AR="ar"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731 done
4732 done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4738 if test -n "$ac_ct_AR"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4740 $as_echo "$ac_ct_AR" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746 if test "x$ac_ct_AR" = x; then
4747 AR="false"
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750 yes:)
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753 ac_tool_warned=yes ;;
4754 esac
4755 AR=$ac_ct_AR
4756 fi
4757 else
4758 AR="$ac_cv_prog_AR"
4759 fi
4760
4761 test -z "$AR" && AR=ar
4762 test -z "$AR_FLAGS" && AR_FLAGS=cru
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}strip; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_STRIP+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$STRIP"; then
4783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 STRIP=$ac_cv_prog_STRIP
4803 if test -n "$STRIP"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4805 $as_echo "$STRIP" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 fi
4813 if test -z "$ac_cv_prog_STRIP"; then
4814 ac_ct_STRIP=$STRIP
4815 # Extract the first word of "strip", so it can be a program name with args.
4816 set dummy strip; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$ac_ct_STRIP"; then
4823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_STRIP="strip"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4843 if test -n "$ac_ct_STRIP"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4845 $as_echo "$ac_ct_STRIP" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851 if test "x$ac_ct_STRIP" = x; then
4852 STRIP=":"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 STRIP=$ac_ct_STRIP
4861 fi
4862 else
4863 STRIP="$ac_cv_prog_STRIP"
4864 fi
4865
4866 test -z "$STRIP" && STRIP=:
4867
4868
4869
4870
4871
4872
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$RANLIB"; then
4882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 fi
4900 fi
4901 RANLIB=$ac_cv_prog_RANLIB
4902 if test -n "$RANLIB"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4904 $as_echo "$RANLIB" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909
4910
4911 fi
4912 if test -z "$ac_cv_prog_RANLIB"; then
4913 ac_ct_RANLIB=$RANLIB
4914 # Extract the first word of "ranlib", so it can be a program name with args.
4915 set dummy ranlib; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$ac_ct_RANLIB"; then
4922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_RANLIB="ranlib"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4942 if test -n "$ac_ct_RANLIB"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4944 $as_echo "$ac_ct_RANLIB" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950 if test "x$ac_ct_RANLIB" = x; then
4951 RANLIB=":"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954 yes:)
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned=yes ;;
4958 esac
4959 RANLIB=$ac_ct_RANLIB
4960 fi
4961 else
4962 RANLIB="$ac_cv_prog_RANLIB"
4963 fi
4964
4965 test -z "$RANLIB" && RANLIB=:
4966
4967
4968
4969
4970
4971
4972 # Determine commands to create old-style static archives.
4973 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4974 old_postinstall_cmds='chmod 644 $oldlib'
4975 old_postuninstall_cmds=
4976
4977 if test -n "$RANLIB"; then
4978 case $host_os in
4979 openbsd*)
4980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4981 ;;
4982 *)
4983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4984 ;;
4985 esac
4986 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4987 fi
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 # If no C compiler was specified, use CC.
5023 LTCC=${LTCC-"$CC"}
5024
5025 # If no C compiler flags were specified, use CFLAGS.
5026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5027
5028 # Allow CC to be a program name with arguments.
5029 compiler=$CC
5030
5031
5032 # Check for command to grab the raw symbol name followed by C symbol from nm.
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5034 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5035 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038
5039 # These are sane defaults that work on at least a few old systems.
5040 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5041
5042 # Character class describing NM global symbol codes.
5043 symcode='[BCDEGRST]'
5044
5045 # Regexp to match symbols that can be accessed directly from C.
5046 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5047
5048 # Define system-specific variables.
5049 case $host_os in
5050 aix*)
5051 symcode='[BCDT]'
5052 ;;
5053 cygwin* | mingw* | pw32* | cegcc*)
5054 symcode='[ABCDGISTW]'
5055 ;;
5056 hpux*)
5057 if test "$host_cpu" = ia64; then
5058 symcode='[ABCDEGRST]'
5059 fi
5060 ;;
5061 irix* | nonstopux*)
5062 symcode='[BCDEGRST]'
5063 ;;
5064 osf*)
5065 symcode='[BCDEGQRST]'
5066 ;;
5067 solaris*)
5068 symcode='[BDRT]'
5069 ;;
5070 sco3.2v5*)
5071 symcode='[DT]'
5072 ;;
5073 sysv4.2uw2*)
5074 symcode='[DT]'
5075 ;;
5076 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5077 symcode='[ABDT]'
5078 ;;
5079 sysv4)
5080 symcode='[DFNSTU]'
5081 ;;
5082 esac
5083
5084 # If we're using GNU nm, then use its standard symbol codes.
5085 case `$NM -V 2>&1` in
5086 *GNU* | *'with BFD'*)
5087 symcode='[ABCDGIRSTW]' ;;
5088 esac
5089
5090 # Transform an extracted symbol line into a proper C declaration.
5091 # Some systems (esp. on ia64) link data and code symbols differently,
5092 # so use this general approach.
5093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5094
5095 # Transform an extracted symbol line into symbol name and symbol address
5096 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5097 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'"
5098
5099 # Handle CRLF in mingw tool chain
5100 opt_cr=
5101 case $build_os in
5102 mingw*)
5103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5104 ;;
5105 esac
5106
5107 # Try without a prefix underscore, then with it.
5108 for ac_symprfx in "" "_"; do
5109
5110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5111 symxfrm="\\1 $ac_symprfx\\2 \\2"
5112
5113 # Write the raw and C identifiers.
5114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5115 # Fake it for dumpbin and say T for any non-static function
5116 # and D for any global variable.
5117 # Also find C++ and __fastcall symbols from MSVC++,
5118 # which start with @ or ?.
5119 lt_cv_sys_global_symbol_pipe="$AWK '"\
5120 " {last_section=section; section=\$ 3};"\
5121 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5122 " \$ 0!~/External *\|/{next};"\
5123 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5124 " {if(hide[section]) next};"\
5125 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5126 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5127 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5128 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5129 " ' prfx=^$ac_symprfx"
5130 else
5131 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5132 fi
5133
5134 # Check to see that the pipe works correctly.
5135 pipe_works=no
5136
5137 rm -f conftest*
5138 cat > conftest.$ac_ext <<_LT_EOF
5139 #ifdef __cplusplus
5140 extern "C" {
5141 #endif
5142 char nm_test_var;
5143 void nm_test_func(void);
5144 void nm_test_func(void){}
5145 #ifdef __cplusplus
5146 }
5147 #endif
5148 int main(){nm_test_var='a';nm_test_func();return(0);}
5149 _LT_EOF
5150
5151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5152 (eval $ac_compile) 2>&5
5153 ac_status=$?
5154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5155 test $ac_status = 0; }; then
5156 # Now try to grab the symbols.
5157 nlist=conftest.nm
5158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5159 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5160 ac_status=$?
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; } && test -s "$nlist"; then
5163 # Try sorting and uniquifying the output.
5164 if sort "$nlist" | uniq > "$nlist"T; then
5165 mv -f "$nlist"T "$nlist"
5166 else
5167 rm -f "$nlist"T
5168 fi
5169
5170 # Make sure that we snagged all the symbols we need.
5171 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5172 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5173 cat <<_LT_EOF > conftest.$ac_ext
5174 #ifdef __cplusplus
5175 extern "C" {
5176 #endif
5177
5178 _LT_EOF
5179 # Now generate the symbol file.
5180 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5181
5182 cat <<_LT_EOF >> conftest.$ac_ext
5183
5184 /* The mapping between symbol names and symbols. */
5185 const struct {
5186 const char *name;
5187 void *address;
5188 }
5189 lt__PROGRAM__LTX_preloaded_symbols[] =
5190 {
5191 { "@PROGRAM@", (void *) 0 },
5192 _LT_EOF
5193 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5194 cat <<\_LT_EOF >> conftest.$ac_ext
5195 {0, (void *) 0}
5196 };
5197
5198 /* This works around a problem in FreeBSD linker */
5199 #ifdef FREEBSD_WORKAROUND
5200 static const void *lt_preloaded_setup() {
5201 return lt__PROGRAM__LTX_preloaded_symbols;
5202 }
5203 #endif
5204
5205 #ifdef __cplusplus
5206 }
5207 #endif
5208 _LT_EOF
5209 # Now try linking the two files.
5210 mv conftest.$ac_objext conftstm.$ac_objext
5211 lt_save_LIBS="$LIBS"
5212 lt_save_CFLAGS="$CFLAGS"
5213 LIBS="conftstm.$ac_objext"
5214 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5216 (eval $ac_link) 2>&5
5217 ac_status=$?
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5220 pipe_works=yes
5221 fi
5222 LIBS="$lt_save_LIBS"
5223 CFLAGS="$lt_save_CFLAGS"
5224 else
5225 echo "cannot find nm_test_func in $nlist" >&5
5226 fi
5227 else
5228 echo "cannot find nm_test_var in $nlist" >&5
5229 fi
5230 else
5231 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5232 fi
5233 else
5234 echo "$progname: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5236 fi
5237 rm -rf conftest* conftst*
5238
5239 # Do not use the global_symbol_pipe unless it works.
5240 if test "$pipe_works" = yes; then
5241 break
5242 else
5243 lt_cv_sys_global_symbol_pipe=
5244 fi
5245 done
5246
5247 fi
5248
5249 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5250 lt_cv_sys_global_symbol_to_cdecl=
5251 fi
5252 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5254 $as_echo "failed" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5257 $as_echo "ok" >&6; }
5258 fi
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 # Check whether --enable-libtool-lock was given.
5283 if test "${enable_libtool_lock+set}" = set; then :
5284 enableval=$enable_libtool_lock;
5285 fi
5286
5287 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5288
5289 # Some flags need to be propagated to the compiler or linker for good
5290 # libtool support.
5291 case $host in
5292 ia64-*-hpux*)
5293 # Find out which ABI we are using.
5294 echo 'int i;' > conftest.$ac_ext
5295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5296 (eval $ac_compile) 2>&5
5297 ac_status=$?
5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299 test $ac_status = 0; }; then
5300 case `/usr/bin/file conftest.$ac_objext` in
5301 *ELF-32*)
5302 HPUX_IA64_MODE="32"
5303 ;;
5304 *ELF-64*)
5305 HPUX_IA64_MODE="64"
5306 ;;
5307 esac
5308 fi
5309 rm -rf conftest*
5310 ;;
5311 *-*-irix6*)
5312 # Find out which ABI we are using.
5313 echo '#line 5313 "configure"' > conftest.$ac_ext
5314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5315 (eval $ac_compile) 2>&5
5316 ac_status=$?
5317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318 test $ac_status = 0; }; then
5319 if test "$lt_cv_prog_gnu_ld" = yes; then
5320 case `/usr/bin/file conftest.$ac_objext` in
5321 *32-bit*)
5322 LD="${LD-ld} -melf32bsmip"
5323 ;;
5324 *N32*)
5325 LD="${LD-ld} -melf32bmipn32"
5326 ;;
5327 *64-bit*)
5328 LD="${LD-ld} -melf64bmip"
5329 ;;
5330 esac
5331 else
5332 case `/usr/bin/file conftest.$ac_objext` in
5333 *32-bit*)
5334 LD="${LD-ld} -32"
5335 ;;
5336 *N32*)
5337 LD="${LD-ld} -n32"
5338 ;;
5339 *64-bit*)
5340 LD="${LD-ld} -64"
5341 ;;
5342 esac
5343 fi
5344 fi
5345 rm -rf conftest*
5346 ;;
5347
5348 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5349 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5350 # Find out which ABI we are using.
5351 echo 'int i;' > conftest.$ac_ext
5352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5353 (eval $ac_compile) 2>&5
5354 ac_status=$?
5355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5356 test $ac_status = 0; }; then
5357 case `/usr/bin/file conftest.o` in
5358 *32-bit*)
5359 case $host in
5360 x86_64-*kfreebsd*-gnu)
5361 LD="${LD-ld} -m elf_i386_fbsd"
5362 ;;
5363 x86_64-*linux*)
5364 LD="${LD-ld} -m elf_i386"
5365 ;;
5366 ppc64-*linux*|powerpc64-*linux*)
5367 LD="${LD-ld} -m elf32ppclinux"
5368 ;;
5369 s390x-*linux*)
5370 LD="${LD-ld} -m elf_s390"
5371 ;;
5372 sparc64-*linux*)
5373 LD="${LD-ld} -m elf32_sparc"
5374 ;;
5375 esac
5376 ;;
5377 *64-bit*)
5378 case $host in
5379 x86_64-*kfreebsd*-gnu)
5380 LD="${LD-ld} -m elf_x86_64_fbsd"
5381 ;;
5382 x86_64-*linux*)
5383 LD="${LD-ld} -m elf_x86_64"
5384 ;;
5385 ppc*-*linux*|powerpc*-*linux*)
5386 LD="${LD-ld} -m elf64ppc"
5387 ;;
5388 s390*-*linux*|s390*-*tpf*)
5389 LD="${LD-ld} -m elf64_s390"
5390 ;;
5391 sparc*-*linux*)
5392 LD="${LD-ld} -m elf64_sparc"
5393 ;;
5394 esac
5395 ;;
5396 esac
5397 fi
5398 rm -rf conftest*
5399 ;;
5400
5401 *-*-sco3.2v5*)
5402 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5403 SAVE_CFLAGS="$CFLAGS"
5404 CFLAGS="$CFLAGS -belf"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5406 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5407 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 ac_ext=c
5411 ac_cpp='$CPP $CPPFLAGS'
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418
5419 int
5420 main ()
5421 {
5422
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_link "$LINENO"; then :
5428 lt_cv_cc_needs_belf=yes
5429 else
5430 lt_cv_cc_needs_belf=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext \
5433 conftest$ac_exeext conftest.$ac_ext
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5442 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5443 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5444 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5445 CFLAGS="$SAVE_CFLAGS"
5446 fi
5447 ;;
5448 sparc*-*solaris*)
5449 # Find out which ABI we are using.
5450 echo 'int i;' > conftest.$ac_ext
5451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5452 (eval $ac_compile) 2>&5
5453 ac_status=$?
5454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455 test $ac_status = 0; }; then
5456 case `/usr/bin/file conftest.o` in
5457 *64-bit*)
5458 case $lt_cv_prog_gnu_ld in
5459 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5460 *)
5461 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5462 LD="${LD-ld} -64"
5463 fi
5464 ;;
5465 esac
5466 ;;
5467 esac
5468 fi
5469 rm -rf conftest*
5470 ;;
5471 esac
5472
5473 need_locks="$enable_libtool_lock"
5474
5475
5476 case $host_os in
5477 rhapsody* | darwin*)
5478 if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if test -n "$DSYMUTIL"; then
5487 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500 done
5501 done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5507 if test -n "$DSYMUTIL"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5509 $as_echo "$DSYMUTIL" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516 fi
5517 if test -z "$ac_cv_prog_DSYMUTIL"; then
5518 ac_ct_DSYMUTIL=$DSYMUTIL
5519 # Extract the first word of "dsymutil", so it can be a program name with args.
5520 set dummy dsymutil; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$ac_ct_DSYMUTIL"; then
5527 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5547 if test -n "$ac_ct_DSYMUTIL"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5549 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555 if test "x$ac_ct_DSYMUTIL" = x; then
5556 DSYMUTIL=":"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564 DSYMUTIL=$ac_ct_DSYMUTIL
5565 fi
5566 else
5567 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5568 fi
5569
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$NMEDIT"; then
5579 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 NMEDIT=$ac_cv_prog_NMEDIT
5599 if test -n "$NMEDIT"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5601 $as_echo "$NMEDIT" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 fi
5609 if test -z "$ac_cv_prog_NMEDIT"; then
5610 ac_ct_NMEDIT=$NMEDIT
5611 # Extract the first word of "nmedit", so it can be a program name with args.
5612 set dummy nmedit; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$ac_ct_NMEDIT"; then
5619 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632 done
5633 done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5639 if test -n "$ac_ct_NMEDIT"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5641 $as_echo "$ac_ct_NMEDIT" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647 if test "x$ac_ct_NMEDIT" = x; then
5648 NMEDIT=":"
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651 yes:)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5655 esac
5656 NMEDIT=$ac_ct_NMEDIT
5657 fi
5658 else
5659 NMEDIT="$ac_cv_prog_NMEDIT"
5660 fi
5661
5662 if test -n "$ac_tool_prefix"; then
5663 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5664 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_LIPO+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$LIPO"; then
5671 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684 done
5685 done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 LIPO=$ac_cv_prog_LIPO
5691 if test -n "$LIPO"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5693 $as_echo "$LIPO" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699
5700 fi
5701 if test -z "$ac_cv_prog_LIPO"; then
5702 ac_ct_LIPO=$LIPO
5703 # Extract the first word of "lipo", so it can be a program name with args.
5704 set dummy lipo; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if test -n "$ac_ct_LIPO"; then
5711 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_ac_ct_LIPO="lipo"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724 done
5725 done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5731 if test -n "$ac_ct_LIPO"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5733 $as_echo "$ac_ct_LIPO" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739 if test "x$ac_ct_LIPO" = x; then
5740 LIPO=":"
5741 else
5742 case $cross_compiling:$ac_tool_warned in
5743 yes:)
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5746 ac_tool_warned=yes ;;
5747 esac
5748 LIPO=$ac_ct_LIPO
5749 fi
5750 else
5751 LIPO="$ac_cv_prog_LIPO"
5752 fi
5753
5754 if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}otool; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$OTOOL"; then
5763 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 OTOOL=$ac_cv_prog_OTOOL
5783 if test -n "$OTOOL"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5785 $as_echo "$OTOOL" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791
5792 fi
5793 if test -z "$ac_cv_prog_OTOOL"; then
5794 ac_ct_OTOOL=$OTOOL
5795 # Extract the first word of "otool", so it can be a program name with args.
5796 set dummy otool; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$ac_ct_OTOOL"; then
5803 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_ac_ct_OTOOL="otool"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5823 if test -n "$ac_ct_OTOOL"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5825 $as_echo "$ac_ct_OTOOL" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831 if test "x$ac_ct_OTOOL" = x; then
5832 OTOOL=":"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840 OTOOL=$ac_ct_OTOOL
5841 fi
5842 else
5843 OTOOL="$ac_cv_prog_OTOOL"
5844 fi
5845
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$OTOOL64"; then
5855 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 OTOOL64=$ac_cv_prog_OTOOL64
5875 if test -n "$OTOOL64"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5877 $as_echo "$OTOOL64" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883
5884 fi
5885 if test -z "$ac_cv_prog_OTOOL64"; then
5886 ac_ct_OTOOL64=$OTOOL64
5887 # Extract the first word of "otool64", so it can be a program name with args.
5888 set dummy otool64; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$ac_ct_OTOOL64"; then
5895 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_ac_ct_OTOOL64="otool64"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5915 if test -n "$ac_ct_OTOOL64"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5917 $as_echo "$ac_ct_OTOOL64" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923 if test "x$ac_ct_OTOOL64" = x; then
5924 OTOOL64=":"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930 ac_tool_warned=yes ;;
5931 esac
5932 OTOOL64=$ac_ct_OTOOL64
5933 fi
5934 else
5935 OTOOL64="$ac_cv_prog_OTOOL64"
5936 fi
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5965 $as_echo_n "checking for -single_module linker flag... " >&6; }
5966 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 lt_cv_apple_cc_single_mod=no
5970 if test -z "${LT_MULTI_MODULE}"; then
5971 # By default we will add the -single_module flag. You can override
5972 # by either setting the environment variable LT_MULTI_MODULE
5973 # non-empty at configure time, or by adding -multi_module to the
5974 # link flags.
5975 rm -rf libconftest.dylib*
5976 echo "int foo(void){return 1;}" > conftest.c
5977 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5978 -dynamiclib -Wl,-single_module conftest.c" >&5
5979 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5980 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5981 _lt_result=$?
5982 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5983 lt_cv_apple_cc_single_mod=yes
5984 else
5985 cat conftest.err >&5
5986 fi
5987 rm -rf libconftest.dylib*
5988 rm -f conftest.*
5989 fi
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5992 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5994 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5995 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 lt_cv_ld_exported_symbols_list=no
5999 save_LDFLAGS=$LDFLAGS
6000 echo "_main" > conftest.sym
6001 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 lt_cv_ld_exported_symbols_list=yes
6015 else
6016 lt_cv_ld_exported_symbols_list=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 LDFLAGS="$save_LDFLAGS"
6021
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6024 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6025 case $host_os in
6026 rhapsody* | darwin1.[012])
6027 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6028 darwin1.*)
6029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6030 darwin*) # darwin 5.x on
6031 # if running on 10.5 or later, the deployment target defaults
6032 # to the OS version, if on x86, and 10.4, the deployment
6033 # target defaults to 10.4. Don't you love it?
6034 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6035 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6037 10.[012]*)
6038 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6039 10.*)
6040 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6041 esac
6042 ;;
6043 esac
6044 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6045 _lt_dar_single_mod='$single_module'
6046 fi
6047 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6048 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6049 else
6050 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6051 fi
6052 if test "$DSYMUTIL" != ":"; then
6053 _lt_dsymutil='~$DSYMUTIL $lib || :'
6054 else
6055 _lt_dsymutil=
6056 fi
6057 ;;
6058 esac
6059
6060 ac_ext=c
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6066 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6067 # On Suns, sometimes $CPP names a directory.
6068 if test -n "$CPP" && test -d "$CPP"; then
6069 CPP=
6070 fi
6071 if test -z "$CPP"; then
6072 if test "${ac_cv_prog_CPP+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 # Double quotes because CPP needs to be expanded
6076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6077 do
6078 ac_preproc_ok=false
6079 for ac_c_preproc_warn_flag in '' yes
6080 do
6081 # Use a header file that comes with gcc, so configuring glibc
6082 # with a fresh cross-compiler works.
6083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6084 # <limits.h> exists even on freestanding compilers.
6085 # On the NeXT, cc -E runs the code through the compiler's parser,
6086 # not just through cpp. "Syntax error" is here to catch this case.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 #ifdef __STDC__
6090 # include <limits.h>
6091 #else
6092 # include <assert.h>
6093 #endif
6094 Syntax error
6095 _ACEOF
6096 if ac_fn_c_try_cpp "$LINENO"; then :
6097
6098 else
6099 # Broken: fails on valid input.
6100 continue
6101 fi
6102 rm -f conftest.err conftest.$ac_ext
6103
6104 # OK, works on sane cases. Now check whether nonexistent headers
6105 # can be detected and how.
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 #include <ac_nonexistent.h>
6109 _ACEOF
6110 if ac_fn_c_try_cpp "$LINENO"; then :
6111 # Broken: success on invalid input.
6112 continue
6113 else
6114 # Passes both tests.
6115 ac_preproc_ok=:
6116 break
6117 fi
6118 rm -f conftest.err conftest.$ac_ext
6119
6120 done
6121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6122 rm -f conftest.err conftest.$ac_ext
6123 if $ac_preproc_ok; then :
6124 break
6125 fi
6126
6127 done
6128 ac_cv_prog_CPP=$CPP
6129
6130 fi
6131 CPP=$ac_cv_prog_CPP
6132 else
6133 ac_cv_prog_CPP=$CPP
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6136 $as_echo "$CPP" >&6; }
6137 ac_preproc_ok=false
6138 for ac_c_preproc_warn_flag in '' yes
6139 do
6140 # Use a header file that comes with gcc, so configuring glibc
6141 # with a fresh cross-compiler works.
6142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143 # <limits.h> exists even on freestanding compilers.
6144 # On the NeXT, cc -E runs the code through the compiler's parser,
6145 # not just through cpp. "Syntax error" is here to catch this case.
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148 #ifdef __STDC__
6149 # include <limits.h>
6150 #else
6151 # include <assert.h>
6152 #endif
6153 Syntax error
6154 _ACEOF
6155 if ac_fn_c_try_cpp "$LINENO"; then :
6156
6157 else
6158 # Broken: fails on valid input.
6159 continue
6160 fi
6161 rm -f conftest.err conftest.$ac_ext
6162
6163 # OK, works on sane cases. Now check whether nonexistent headers
6164 # can be detected and how.
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #include <ac_nonexistent.h>
6168 _ACEOF
6169 if ac_fn_c_try_cpp "$LINENO"; then :
6170 # Broken: success on invalid input.
6171 continue
6172 else
6173 # Passes both tests.
6174 ac_preproc_ok=:
6175 break
6176 fi
6177 rm -f conftest.err conftest.$ac_ext
6178
6179 done
6180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6181 rm -f conftest.err conftest.$ac_ext
6182 if $ac_preproc_ok; then :
6183
6184 else
6185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6187 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6188 See \`config.log' for more details." "$LINENO" 5; }
6189 fi
6190
6191 ac_ext=c
6192 ac_cpp='$CPP $CPPFLAGS'
6193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6199 $as_echo_n "checking for ANSI C header files... " >&6; }
6200 if test "${ac_cv_header_stdc+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 #include <stdlib.h>
6206 #include <stdarg.h>
6207 #include <string.h>
6208 #include <float.h>
6209
6210 int
6211 main ()
6212 {
6213
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 ac_cv_header_stdc=yes
6220 else
6221 ac_cv_header_stdc=no
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224
6225 if test $ac_cv_header_stdc = yes; then
6226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #include <string.h>
6230
6231 _ACEOF
6232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233 $EGREP "memchr" >/dev/null 2>&1; then :
6234
6235 else
6236 ac_cv_header_stdc=no
6237 fi
6238 rm -f conftest*
6239
6240 fi
6241
6242 if test $ac_cv_header_stdc = yes; then
6243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <stdlib.h>
6247
6248 _ACEOF
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "free" >/dev/null 2>&1; then :
6251
6252 else
6253 ac_cv_header_stdc=no
6254 fi
6255 rm -f conftest*
6256
6257 fi
6258
6259 if test $ac_cv_header_stdc = yes; then
6260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6261 if test "$cross_compiling" = yes; then :
6262 :
6263 else
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <ctype.h>
6267 #include <stdlib.h>
6268 #if ((' ' & 0x0FF) == 0x020)
6269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6271 #else
6272 # define ISLOWER(c) \
6273 (('a' <= (c) && (c) <= 'i') \
6274 || ('j' <= (c) && (c) <= 'r') \
6275 || ('s' <= (c) && (c) <= 'z'))
6276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6277 #endif
6278
6279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6280 int
6281 main ()
6282 {
6283 int i;
6284 for (i = 0; i < 256; i++)
6285 if (XOR (islower (i), ISLOWER (i))
6286 || toupper (i) != TOUPPER (i))
6287 return 2;
6288 return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_run "$LINENO"; then :
6292
6293 else
6294 ac_cv_header_stdc=no
6295 fi
6296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6297 conftest.$ac_objext conftest.beam conftest.$ac_ext
6298 fi
6299
6300 fi
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6303 $as_echo "$ac_cv_header_stdc" >&6; }
6304 if test $ac_cv_header_stdc = yes; then
6305
6306 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6307
6308 fi
6309
6310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6312 inttypes.h stdint.h unistd.h
6313 do :
6314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6315 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6316 "
6317 eval as_val=\$$as_ac_Header
6318 if test "x$as_val" = x""yes; then :
6319 cat >>confdefs.h <<_ACEOF
6320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6321 _ACEOF
6322
6323 fi
6324
6325 done
6326
6327
6328 for ac_header in dlfcn.h
6329 do :
6330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6331 "
6332 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6333 cat >>confdefs.h <<_ACEOF
6334 #define HAVE_DLFCN_H 1
6335 _ACEOF
6336
6337 fi
6338
6339 done
6340
6341
6342
6343 # Set options
6344 # Check whether --enable-static was given.
6345 if test "${enable_static+set}" = set; then :
6346 enableval=$enable_static; p=${PACKAGE-default}
6347 case $enableval in
6348 yes) enable_static=yes ;;
6349 no) enable_static=no ;;
6350 *)
6351 enable_static=no
6352 # Look at the argument we got. We use all the common list separators.
6353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6354 for pkg in $enableval; do
6355 IFS="$lt_save_ifs"
6356 if test "X$pkg" = "X$p"; then
6357 enable_static=yes
6358 fi
6359 done
6360 IFS="$lt_save_ifs"
6361 ;;
6362 esac
6363 else
6364 enable_static=no
6365 fi
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 enable_dlopen=no
6377
6378
6379 enable_win32_dll=no
6380
6381
6382 # Check whether --enable-shared was given.
6383 if test "${enable_shared+set}" = set; then :
6384 enableval=$enable_shared; p=${PACKAGE-default}
6385 case $enableval in
6386 yes) enable_shared=yes ;;
6387 no) enable_shared=no ;;
6388 *)
6389 enable_shared=no
6390 # Look at the argument we got. We use all the common list separators.
6391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6392 for pkg in $enableval; do
6393 IFS="$lt_save_ifs"
6394 if test "X$pkg" = "X$p"; then
6395 enable_shared=yes
6396 fi
6397 done
6398 IFS="$lt_save_ifs"
6399 ;;
6400 esac
6401 else
6402 enable_shared=yes
6403 fi
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415 # Check whether --with-pic was given.
6416 if test "${with_pic+set}" = set; then :
6417 withval=$with_pic; pic_mode="$withval"
6418 else
6419 pic_mode=default
6420 fi
6421
6422
6423 test -z "$pic_mode" && pic_mode=default
6424
6425
6426
6427
6428
6429
6430
6431 # Check whether --enable-fast-install was given.
6432 if test "${enable_fast_install+set}" = set; then :
6433 enableval=$enable_fast_install; p=${PACKAGE-default}
6434 case $enableval in
6435 yes) enable_fast_install=yes ;;
6436 no) enable_fast_install=no ;;
6437 *)
6438 enable_fast_install=no
6439 # Look at the argument we got. We use all the common list separators.
6440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6441 for pkg in $enableval; do
6442 IFS="$lt_save_ifs"
6443 if test "X$pkg" = "X$p"; then
6444 enable_fast_install=yes
6445 fi
6446 done
6447 IFS="$lt_save_ifs"
6448 ;;
6449 esac
6450 else
6451 enable_fast_install=yes
6452 fi
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464 # This can be used to rebuild libtool when needed
6465 LIBTOOL_DEPS="$ltmain"
6466
6467 # Always use our own libtool.
6468 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 test -z "$LN_S" && LN_S="ln -s"
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 if test -n "${ZSH_VERSION+set}" ; then
6510 setopt NO_GLOB_SUBST
6511 fi
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6514 $as_echo_n "checking for objdir... " >&6; }
6515 if test "${lt_cv_objdir+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 rm -f .libs 2>/dev/null
6519 mkdir .libs 2>/dev/null
6520 if test -d .libs; then
6521 lt_cv_objdir=.libs
6522 else
6523 # MS-DOS does not allow filenames that begin with a dot.
6524 lt_cv_objdir=_libs
6525 fi
6526 rmdir .libs 2>/dev/null
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6529 $as_echo "$lt_cv_objdir" >&6; }
6530 objdir=$lt_cv_objdir
6531
6532
6533
6534
6535
6536 cat >>confdefs.h <<_ACEOF
6537 #define LT_OBJDIR "$lt_cv_objdir/"
6538 _ACEOF
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 case $host_os in
6557 aix3*)
6558 # AIX sometimes has problems with the GCC collect2 program. For some
6559 # reason, if we set the COLLECT_NAMES environment variable, the problems
6560 # vanish in a puff of smoke.
6561 if test "X${COLLECT_NAMES+set}" != Xset; then
6562 COLLECT_NAMES=
6563 export COLLECT_NAMES
6564 fi
6565 ;;
6566 esac
6567
6568 # Sed substitution that helps us do robust quoting. It backslashifies
6569 # metacharacters that are still active within double-quoted strings.
6570 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6571
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6574
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
6579 # Sed substitution to delay expansion of an escaped single quote.
6580 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6581
6582 # Sed substitution to avoid accidental globbing in evaled expressions
6583 no_glob_subst='s/\*/\\\*/g'
6584
6585 # Global variables:
6586 ofile=libtool
6587 can_build_shared=yes
6588
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6591 libext=a
6592
6593 with_gnu_ld="$lt_cv_prog_gnu_ld"
6594
6595 old_CC="$CC"
6596 old_CFLAGS="$CFLAGS"
6597
6598 # Set sane defaults for various variables
6599 test -z "$CC" && CC=cc
6600 test -z "$LTCC" && LTCC=$CC
6601 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6602 test -z "$LD" && LD=ld
6603 test -z "$ac_objext" && ac_objext=o
6604
6605 for cc_temp in $compiler""; do
6606 case $cc_temp in
6607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6609 \-*) ;;
6610 *) break;;
6611 esac
6612 done
6613 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6614
6615
6616 # Only perform the check for file, if the check method requires it
6617 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6618 case $deplibs_check_method in
6619 file_magic*)
6620 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6622 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6623 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 case $MAGIC_CMD in
6627 [\\/*] | ?:[\\/]*)
6628 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6629 ;;
6630 *)
6631 lt_save_MAGIC_CMD="$MAGIC_CMD"
6632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6634 for ac_dir in $ac_dummy; do
6635 IFS="$lt_save_ifs"
6636 test -z "$ac_dir" && ac_dir=.
6637 if test -f $ac_dir/${ac_tool_prefix}file; then
6638 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6639 if test -n "$file_magic_test_file"; then
6640 case $deplibs_check_method in
6641 "file_magic "*)
6642 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6644 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6645 $EGREP "$file_magic_regex" > /dev/null; then
6646 :
6647 else
6648 cat <<_LT_EOF 1>&2
6649
6650 *** Warning: the command libtool uses to detect shared libraries,
6651 *** $file_magic_cmd, produces output that libtool cannot recognize.
6652 *** The result is that libtool may fail to recognize shared libraries
6653 *** as such. This will affect the creation of libtool libraries that
6654 *** depend on shared libraries, but programs linked with such libtool
6655 *** libraries will work regardless of this problem. Nevertheless, you
6656 *** may want to report the problem to your system manager and/or to
6657 *** bug-libtool@gnu.org
6658
6659 _LT_EOF
6660 fi ;;
6661 esac
6662 fi
6663 break
6664 fi
6665 done
6666 IFS="$lt_save_ifs"
6667 MAGIC_CMD="$lt_save_MAGIC_CMD"
6668 ;;
6669 esac
6670 fi
6671
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if test -n "$MAGIC_CMD"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6675 $as_echo "$MAGIC_CMD" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682
6683
6684
6685 if test -z "$lt_cv_path_MAGIC_CMD"; then
6686 if test -n "$ac_tool_prefix"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6688 $as_echo_n "checking for file... " >&6; }
6689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 case $MAGIC_CMD in
6693 [\\/*] | ?:[\\/]*)
6694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 lt_save_MAGIC_CMD="$MAGIC_CMD"
6698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6700 for ac_dir in $ac_dummy; do
6701 IFS="$lt_save_ifs"
6702 test -z "$ac_dir" && ac_dir=.
6703 if test -f $ac_dir/file; then
6704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6705 if test -n "$file_magic_test_file"; then
6706 case $deplibs_check_method in
6707 "file_magic "*)
6708 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6711 $EGREP "$file_magic_regex" > /dev/null; then
6712 :
6713 else
6714 cat <<_LT_EOF 1>&2
6715
6716 *** Warning: the command libtool uses to detect shared libraries,
6717 *** $file_magic_cmd, produces output that libtool cannot recognize.
6718 *** The result is that libtool may fail to recognize shared libraries
6719 *** as such. This will affect the creation of libtool libraries that
6720 *** depend on shared libraries, but programs linked with such libtool
6721 *** libraries will work regardless of this problem. Nevertheless, you
6722 *** may want to report the problem to your system manager and/or to
6723 *** bug-libtool@gnu.org
6724
6725 _LT_EOF
6726 fi ;;
6727 esac
6728 fi
6729 break
6730 fi
6731 done
6732 IFS="$lt_save_ifs"
6733 MAGIC_CMD="$lt_save_MAGIC_CMD"
6734 ;;
6735 esac
6736 fi
6737
6738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6739 if test -n "$MAGIC_CMD"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6741 $as_echo "$MAGIC_CMD" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 else
6749 MAGIC_CMD=:
6750 fi
6751 fi
6752
6753 fi
6754 ;;
6755 esac
6756
6757 # Use C for the default configuration in the libtool script
6758
6759 lt_save_CC="$CC"
6760 ac_ext=c
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766
6767 # Source file extension for C test sources.
6768 ac_ext=c
6769
6770 # Object file extension for compiled C test sources.
6771 objext=o
6772 objext=$objext
6773
6774 # Code to be used in simple compile tests
6775 lt_simple_compile_test_code="int some_variable = 0;"
6776
6777 # Code to be used in simple link tests
6778 lt_simple_link_test_code='int main(){return(0);}'
6779
6780
6781
6782
6783
6784
6785
6786 # If no C compiler was specified, use CC.
6787 LTCC=${LTCC-"$CC"}
6788
6789 # If no C compiler flags were specified, use CFLAGS.
6790 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6791
6792 # Allow CC to be a program name with arguments.
6793 compiler=$CC
6794
6795 # Save the default compiler, since it gets overwritten when the other
6796 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6797 compiler_DEFAULT=$CC
6798
6799 # save warnings/boilerplate of simple test code
6800 ac_outfile=conftest.$ac_objext
6801 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6802 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803 _lt_compiler_boilerplate=`cat conftest.err`
6804 $RM conftest*
6805
6806 ac_outfile=conftest.$ac_objext
6807 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6808 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6809 _lt_linker_boilerplate=`cat conftest.err`
6810 $RM -r conftest*
6811
6812
6813 if test -n "$compiler"; then
6814
6815 lt_prog_compiler_no_builtin_flag=
6816
6817 if test "$GCC" = yes; then
6818 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6821 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6822 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 lt_cv_prog_compiler_rtti_exceptions=no
6826 ac_outfile=conftest.$ac_objext
6827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6828 lt_compiler_flag="-fno-rtti -fno-exceptions"
6829 # Insert the option either (1) after the last *FLAGS variable, or
6830 # (2) before a word containing "conftest.", or (3) at the end.
6831 # Note that $ac_compile itself does not contain backslashes and begins
6832 # with a dollar sign (not a hyphen), so the echo should work correctly.
6833 # The option is referenced via a variable to avoid confusing sed.
6834 lt_compile=`echo "$ac_compile" | $SED \
6835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6837 -e 's:$: $lt_compiler_flag:'`
6838 (eval echo "\"\$as_me:6838: $lt_compile\"" >&5)
6839 (eval "$lt_compile" 2>conftest.err)
6840 ac_status=$?
6841 cat conftest.err >&5
6842 echo "$as_me:6842: \$? = $ac_status" >&5
6843 if (exit $ac_status) && test -s "$ac_outfile"; then
6844 # The compiler can only warn and ignore the option if not recognized
6845 # So say no if there are warnings other than the usual output.
6846 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6849 lt_cv_prog_compiler_rtti_exceptions=yes
6850 fi
6851 fi
6852 $RM conftest*
6853
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6856 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6857
6858 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6860 else
6861 :
6862 fi
6863
6864 fi
6865
6866
6867
6868
6869
6870
6871 lt_prog_compiler_wl=
6872 lt_prog_compiler_pic=
6873 lt_prog_compiler_static=
6874
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6876 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6877
6878 if test "$GCC" = yes; then
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_static='-static'
6881
6882 case $host_os in
6883 aix*)
6884 # All AIX code is PIC.
6885 if test "$host_cpu" = ia64; then
6886 # AIX 5 now supports IA64 processor
6887 lt_prog_compiler_static='-Bstatic'
6888 fi
6889 ;;
6890
6891 amigaos*)
6892 case $host_cpu in
6893 powerpc)
6894 # see comment about AmigaOS4 .so support
6895 lt_prog_compiler_pic='-fPIC'
6896 ;;
6897 m68k)
6898 # FIXME: we need at least 68020 code to build shared libraries, but
6899 # adding the `-m68020' flag to GCC prevents building anything better,
6900 # like `-m68040'.
6901 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6902 ;;
6903 esac
6904 ;;
6905
6906 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6907 # PIC is the default for these OSes.
6908 ;;
6909
6910 mingw* | cygwin* | pw32* | os2* | cegcc*)
6911 # This hack is so that the source file can tell whether it is being
6912 # built for inclusion in a dll (and should export symbols for example).
6913 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6914 # (--disable-auto-import) libraries
6915 lt_prog_compiler_pic='-DDLL_EXPORT'
6916 ;;
6917
6918 darwin* | rhapsody*)
6919 # PIC is the default on this platform
6920 # Common symbols not allowed in MH_DYLIB files
6921 lt_prog_compiler_pic='-fno-common'
6922 ;;
6923
6924 hpux*)
6925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6927 # sets the default TLS model and affects inlining.
6928 case $host_cpu in
6929 hppa*64*)
6930 # +Z the default
6931 ;;
6932 *)
6933 lt_prog_compiler_pic='-fPIC'
6934 ;;
6935 esac
6936 ;;
6937
6938 interix[3-9]*)
6939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6940 # Instead, we relocate shared libraries at runtime.
6941 ;;
6942
6943 msdosdjgpp*)
6944 # Just because we use GCC doesn't mean we suddenly get shared libraries
6945 # on systems that don't support them.
6946 lt_prog_compiler_can_build_shared=no
6947 enable_shared=no
6948 ;;
6949
6950 *nto* | *qnx*)
6951 # QNX uses GNU C++, but need to define -shared option too, otherwise
6952 # it will coredump.
6953 lt_prog_compiler_pic='-fPIC -shared'
6954 ;;
6955
6956 sysv4*MP*)
6957 if test -d /usr/nec; then
6958 lt_prog_compiler_pic=-Kconform_pic
6959 fi
6960 ;;
6961
6962 *)
6963 lt_prog_compiler_pic='-fPIC'
6964 ;;
6965 esac
6966 else
6967 # PORTME Check for flag to pass linker flags through the system compiler.
6968 case $host_os in
6969 aix*)
6970 lt_prog_compiler_wl='-Wl,'
6971 if test "$host_cpu" = ia64; then
6972 # AIX 5 now supports IA64 processor
6973 lt_prog_compiler_static='-Bstatic'
6974 else
6975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6976 fi
6977 ;;
6978
6979 mingw* | cygwin* | pw32* | os2* | cegcc*)
6980 # This hack is so that the source file can tell whether it is being
6981 # built for inclusion in a dll (and should export symbols for example).
6982 lt_prog_compiler_pic='-DDLL_EXPORT'
6983 ;;
6984
6985 hpux9* | hpux10* | hpux11*)
6986 lt_prog_compiler_wl='-Wl,'
6987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6988 # not for PA HP-UX.
6989 case $host_cpu in
6990 hppa*64*|ia64*)
6991 # +Z the default
6992 ;;
6993 *)
6994 lt_prog_compiler_pic='+Z'
6995 ;;
6996 esac
6997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6998 lt_prog_compiler_static='${wl}-a ${wl}archive'
6999 ;;
7000
7001 irix5* | irix6* | nonstopux*)
7002 lt_prog_compiler_wl='-Wl,'
7003 # PIC (with -KPIC) is the default.
7004 lt_prog_compiler_static='-non_shared'
7005 ;;
7006
7007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7008 case $cc_basename in
7009 # old Intel for x86_64 which still supported -KPIC.
7010 ecc*)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-static'
7014 ;;
7015 # icc used to be incompatible with GCC.
7016 # ICC 10 doesn't accept -KPIC any more.
7017 icc* | ifort*)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='-fPIC'
7020 lt_prog_compiler_static='-static'
7021 ;;
7022 # Lahey Fortran 8.1.
7023 lf95*)
7024 lt_prog_compiler_wl='-Wl,'
7025 lt_prog_compiler_pic='--shared'
7026 lt_prog_compiler_static='--static'
7027 ;;
7028 pgcc* | pgf77* | pgf90* | pgf95*)
7029 # Portland Group compilers (*not* the Pentium gcc compiler,
7030 # which looks to be a dead project)
7031 lt_prog_compiler_wl='-Wl,'
7032 lt_prog_compiler_pic='-fpic'
7033 lt_prog_compiler_static='-Bstatic'
7034 ;;
7035 ccc*)
7036 lt_prog_compiler_wl='-Wl,'
7037 # All Alpha code is PIC.
7038 lt_prog_compiler_static='-non_shared'
7039 ;;
7040 xl*)
7041 # IBM XL C 8.0/Fortran 10.1 on PPC
7042 lt_prog_compiler_wl='-Wl,'
7043 lt_prog_compiler_pic='-qpic'
7044 lt_prog_compiler_static='-qstaticlink'
7045 ;;
7046 *)
7047 case `$CC -V 2>&1 | sed 5q` in
7048 *Sun\ C*)
7049 # Sun C 5.9
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 lt_prog_compiler_wl='-Wl,'
7053 ;;
7054 *Sun\ F*)
7055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7056 lt_prog_compiler_pic='-KPIC'
7057 lt_prog_compiler_static='-Bstatic'
7058 lt_prog_compiler_wl=''
7059 ;;
7060 esac
7061 ;;
7062 esac
7063 ;;
7064
7065 newsos6)
7066 lt_prog_compiler_pic='-KPIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 *nto* | *qnx*)
7071 # QNX uses GNU C++, but need to define -shared option too, otherwise
7072 # it will coredump.
7073 lt_prog_compiler_pic='-fPIC -shared'
7074 ;;
7075
7076 osf3* | osf4* | osf5*)
7077 lt_prog_compiler_wl='-Wl,'
7078 # All OSF/1 code is PIC.
7079 lt_prog_compiler_static='-non_shared'
7080 ;;
7081
7082 rdos*)
7083 lt_prog_compiler_static='-non_shared'
7084 ;;
7085
7086 solaris*)
7087 lt_prog_compiler_pic='-KPIC'
7088 lt_prog_compiler_static='-Bstatic'
7089 case $cc_basename in
7090 f77* | f90* | f95*)
7091 lt_prog_compiler_wl='-Qoption ld ';;
7092 *)
7093 lt_prog_compiler_wl='-Wl,';;
7094 esac
7095 ;;
7096
7097 sunos4*)
7098 lt_prog_compiler_wl='-Qoption ld '
7099 lt_prog_compiler_pic='-PIC'
7100 lt_prog_compiler_static='-Bstatic'
7101 ;;
7102
7103 sysv4 | sysv4.2uw2* | sysv4.3*)
7104 lt_prog_compiler_wl='-Wl,'
7105 lt_prog_compiler_pic='-KPIC'
7106 lt_prog_compiler_static='-Bstatic'
7107 ;;
7108
7109 sysv4*MP*)
7110 if test -d /usr/nec ;then
7111 lt_prog_compiler_pic='-Kconform_pic'
7112 lt_prog_compiler_static='-Bstatic'
7113 fi
7114 ;;
7115
7116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-Bstatic'
7120 ;;
7121
7122 unicos*)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_can_build_shared=no
7125 ;;
7126
7127 uts4*)
7128 lt_prog_compiler_pic='-pic'
7129 lt_prog_compiler_static='-Bstatic'
7130 ;;
7131
7132 *)
7133 lt_prog_compiler_can_build_shared=no
7134 ;;
7135 esac
7136 fi
7137
7138 case $host_os in
7139 # For platforms which do not support PIC, -DPIC is meaningless:
7140 *djgpp*)
7141 lt_prog_compiler_pic=
7142 ;;
7143 *)
7144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7145 ;;
7146 esac
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7148 $as_echo "$lt_prog_compiler_pic" >&6; }
7149
7150
7151
7152
7153
7154
7155 #
7156 # Check to make sure the PIC flag actually works.
7157 #
7158 if test -n "$lt_prog_compiler_pic"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7161 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 lt_cv_prog_compiler_pic_works=no
7165 ac_outfile=conftest.$ac_objext
7166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 # The option is referenced via a variable to avoid confusing sed.
7173 lt_compile=`echo "$ac_compile" | $SED \
7174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7176 -e 's:$: $lt_compiler_flag:'`
7177 (eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
7178 (eval "$lt_compile" 2>conftest.err)
7179 ac_status=$?
7180 cat conftest.err >&5
7181 echo "$as_me:7181: \$? = $ac_status" >&5
7182 if (exit $ac_status) && test -s "$ac_outfile"; then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings other than the usual output.
7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7188 lt_cv_prog_compiler_pic_works=yes
7189 fi
7190 fi
7191 $RM conftest*
7192
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7195 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7196
7197 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7198 case $lt_prog_compiler_pic in
7199 "" | " "*) ;;
7200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7201 esac
7202 else
7203 lt_prog_compiler_pic=
7204 lt_prog_compiler_can_build_shared=no
7205 fi
7206
7207 fi
7208
7209
7210
7211
7212
7213
7214 #
7215 # Check to make sure the static flag actually works.
7216 #
7217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7220 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 lt_cv_prog_compiler_static_works=no
7224 save_LDFLAGS="$LDFLAGS"
7225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7228 # The linker can only warn and ignore the option if not recognized
7229 # So say no if there are warnings
7230 if test -s conftest.err; then
7231 # Append any errors to the config.log.
7232 cat conftest.err 1>&5
7233 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7235 if diff conftest.exp conftest.er2 >/dev/null; then
7236 lt_cv_prog_compiler_static_works=yes
7237 fi
7238 else
7239 lt_cv_prog_compiler_static_works=yes
7240 fi
7241 fi
7242 $RM -r conftest*
7243 LDFLAGS="$save_LDFLAGS"
7244
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7248
7249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7250 :
7251 else
7252 lt_prog_compiler_static=
7253 fi
7254
7255
7256
7257
7258
7259
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7263 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_prog_compiler_c_o=no
7267 $RM -r conftest 2>/dev/null
7268 mkdir conftest
7269 cd conftest
7270 mkdir out
7271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272
7273 lt_compiler_flag="-o out/conftest2.$ac_objext"
7274 # Insert the option either (1) after the last *FLAGS variable, or
7275 # (2) before a word containing "conftest.", or (3) at the end.
7276 # Note that $ac_compile itself does not contain backslashes and begins
7277 # with a dollar sign (not a hyphen), so the echo should work correctly.
7278 lt_compile=`echo "$ac_compile" | $SED \
7279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
7282 (eval echo "\"\$as_me:7282: $lt_compile\"" >&5)
7283 (eval "$lt_compile" 2>out/conftest.err)
7284 ac_status=$?
7285 cat out/conftest.err >&5
7286 echo "$as_me:7286: \$? = $ac_status" >&5
7287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7288 then
7289 # The compiler can only warn and ignore the option if not recognized
7290 # So say no if there are warnings
7291 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7294 lt_cv_prog_compiler_c_o=yes
7295 fi
7296 fi
7297 chmod u+w . 2>&5
7298 $RM conftest*
7299 # SGI C++ compiler will create directory out/ii_files/ for
7300 # template instantiation
7301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7302 $RM out/* && rmdir out
7303 cd ..
7304 $RM -r conftest
7305 $RM conftest*
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7310
7311
7312
7313
7314
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7318 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 lt_cv_prog_compiler_c_o=no
7322 $RM -r conftest 2>/dev/null
7323 mkdir conftest
7324 cd conftest
7325 mkdir out
7326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7327
7328 lt_compiler_flag="-o out/conftest2.$ac_objext"
7329 # Insert the option either (1) after the last *FLAGS variable, or
7330 # (2) before a word containing "conftest.", or (3) at the end.
7331 # Note that $ac_compile itself does not contain backslashes and begins
7332 # with a dollar sign (not a hyphen), so the echo should work correctly.
7333 lt_compile=`echo "$ac_compile" | $SED \
7334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7336 -e 's:$: $lt_compiler_flag:'`
7337 (eval echo "\"\$as_me:7337: $lt_compile\"" >&5)
7338 (eval "$lt_compile" 2>out/conftest.err)
7339 ac_status=$?
7340 cat out/conftest.err >&5
7341 echo "$as_me:7341: \$? = $ac_status" >&5
7342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7343 then
7344 # The compiler can only warn and ignore the option if not recognized
7345 # So say no if there are warnings
7346 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7349 lt_cv_prog_compiler_c_o=yes
7350 fi
7351 fi
7352 chmod u+w . 2>&5
7353 $RM conftest*
7354 # SGI C++ compiler will create directory out/ii_files/ for
7355 # template instantiation
7356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7357 $RM out/* && rmdir out
7358 cd ..
7359 $RM -r conftest
7360 $RM conftest*
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7365
7366
7367
7368
7369 hard_links="nottested"
7370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7371 # do not overwrite the value of need_locks provided by the user
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7373 $as_echo_n "checking if we can lock with hard links... " >&6; }
7374 hard_links=yes
7375 $RM conftest*
7376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7377 touch conftest.a
7378 ln conftest.a conftest.b 2>&5 || hard_links=no
7379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7381 $as_echo "$hard_links" >&6; }
7382 if test "$hard_links" = no; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7385 need_locks=warn
7386 fi
7387 else
7388 need_locks=no
7389 fi
7390
7391
7392
7393
7394
7395
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7398
7399 runpath_var=
7400 allow_undefined_flag=
7401 always_export_symbols=no
7402 archive_cmds=
7403 archive_expsym_cmds=
7404 compiler_needs_object=no
7405 enable_shared_with_static_runtimes=no
7406 export_dynamic_flag_spec=
7407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7408 hardcode_automatic=no
7409 hardcode_direct=no
7410 hardcode_direct_absolute=no
7411 hardcode_libdir_flag_spec=
7412 hardcode_libdir_flag_spec_ld=
7413 hardcode_libdir_separator=
7414 hardcode_minus_L=no
7415 hardcode_shlibpath_var=unsupported
7416 inherit_rpath=no
7417 link_all_deplibs=unknown
7418 module_cmds=
7419 module_expsym_cmds=
7420 old_archive_from_new_cmds=
7421 old_archive_from_expsyms_cmds=
7422 thread_safe_flag_spec=
7423 whole_archive_flag_spec=
7424 # include_expsyms should be a list of space-separated symbols to be *always*
7425 # included in the symbol list
7426 include_expsyms=
7427 # exclude_expsyms can be an extended regexp of symbols to exclude
7428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7430 # as well as any symbol that contains `d'.
7431 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7433 # platforms (ab)use it in PIC code, but their linkers get confused if
7434 # the symbol is explicitly referenced. Since portable code cannot
7435 # rely on this symbol name, it's probably fine to never include it in
7436 # preloaded symbol tables.
7437 # Exclude shared library initialization/finalization symbols.
7438 extract_expsyms_cmds=
7439
7440 case $host_os in
7441 cygwin* | mingw* | pw32* | cegcc*)
7442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7443 # When not using gcc, we currently assume that we are using
7444 # Microsoft Visual C++.
7445 if test "$GCC" != yes; then
7446 with_gnu_ld=no
7447 fi
7448 ;;
7449 interix*)
7450 # we just hope/assume this is gcc and not c89 (= MSVC++)
7451 with_gnu_ld=yes
7452 ;;
7453 openbsd*)
7454 with_gnu_ld=no
7455 ;;
7456 linux* | k*bsd*-gnu)
7457 link_all_deplibs=no
7458 ;;
7459 esac
7460
7461 ld_shlibs=yes
7462 if test "$with_gnu_ld" = yes; then
7463 # If archive_cmds runs LD, not CC, wlarc should be empty
7464 wlarc='${wl}'
7465
7466 # Set some defaults for GNU ld with shared library support. These
7467 # are reset later if shared libraries are not supported. Putting them
7468 # here allows them to be overridden if necessary.
7469 runpath_var=LD_RUN_PATH
7470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7471 export_dynamic_flag_spec='${wl}--export-dynamic'
7472 # ancient GNU ld didn't support --whole-archive et. al.
7473 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7474 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7475 else
7476 whole_archive_flag_spec=
7477 fi
7478 supports_anon_versioning=no
7479 case `$LD -v 2>&1` in
7480 *GNU\ gold*) supports_anon_versioning=yes ;;
7481 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7482 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7483 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7484 *\ 2.11.*) ;; # other 2.11 versions
7485 *) supports_anon_versioning=yes ;;
7486 esac
7487
7488 # See if GNU ld supports shared libraries.
7489 case $host_os in
7490 aix[3-9]*)
7491 # On AIX/PPC, the GNU linker is very broken
7492 if test "$host_cpu" != ia64; then
7493 ld_shlibs=no
7494 cat <<_LT_EOF 1>&2
7495
7496 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7497 *** to be unable to reliably create shared libraries on AIX.
7498 *** Therefore, libtool is disabling shared libraries support. If you
7499 *** really care for shared libraries, you may want to modify your PATH
7500 *** so that a non-GNU linker is found, and then restart.
7501
7502 _LT_EOF
7503 fi
7504 ;;
7505
7506 amigaos*)
7507 case $host_cpu in
7508 powerpc)
7509 # see comment about AmigaOS4 .so support
7510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7511 archive_expsym_cmds=''
7512 ;;
7513 m68k)
7514 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)'
7515 hardcode_libdir_flag_spec='-L$libdir'
7516 hardcode_minus_L=yes
7517 ;;
7518 esac
7519 ;;
7520
7521 beos*)
7522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7523 allow_undefined_flag=unsupported
7524 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7525 # support --undefined. This deserves some investigation. FIXME
7526 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7527 else
7528 ld_shlibs=no
7529 fi
7530 ;;
7531
7532 cygwin* | mingw* | pw32* | cegcc*)
7533 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7534 # as there is no search path for DLLs.
7535 hardcode_libdir_flag_spec='-L$libdir'
7536 allow_undefined_flag=unsupported
7537 always_export_symbols=no
7538 enable_shared_with_static_runtimes=yes
7539 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7540
7541 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7543 # If the export-symbols file already is a .def file (1st line
7544 # is EXPORTS), use it as is; otherwise, prepend...
7545 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7546 cp $export_symbols $output_objdir/$soname.def;
7547 else
7548 echo EXPORTS > $output_objdir/$soname.def;
7549 cat $export_symbols >> $output_objdir/$soname.def;
7550 fi~
7551 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7552 else
7553 ld_shlibs=no
7554 fi
7555 ;;
7556
7557 interix[3-9]*)
7558 hardcode_direct=no
7559 hardcode_shlibpath_var=no
7560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7561 export_dynamic_flag_spec='${wl}-E'
7562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7563 # Instead, shared libraries are loaded at an image base (0x10000000 by
7564 # default) and relocated if they conflict, which is a slow very memory
7565 # consuming and fragmenting process. To avoid this, we pick a random,
7566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7569 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'
7570 ;;
7571
7572 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7573 tmp_diet=no
7574 if test "$host_os" = linux-dietlibc; then
7575 case $cc_basename in
7576 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7577 esac
7578 fi
7579 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7580 && test "$tmp_diet" = no
7581 then
7582 tmp_addflag=
7583 tmp_sharedflag='-shared'
7584 case $cc_basename,$host_cpu in
7585 pgcc*) # Portland Group C compiler
7586 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'
7587 tmp_addflag=' $pic_flag'
7588 ;;
7589 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7590 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'
7591 tmp_addflag=' $pic_flag -Mnomain' ;;
7592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7593 tmp_addflag=' -i_dynamic' ;;
7594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7595 tmp_addflag=' -i_dynamic -nofor_main' ;;
7596 ifc* | ifort*) # Intel Fortran compiler
7597 tmp_addflag=' -nofor_main' ;;
7598 lf95*) # Lahey Fortran 8.1
7599 whole_archive_flag_spec=
7600 tmp_sharedflag='--shared' ;;
7601 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7602 tmp_sharedflag='-qmkshrobj'
7603 tmp_addflag= ;;
7604 esac
7605 case `$CC -V 2>&1 | sed 5q` in
7606 *Sun\ C*) # Sun C 5.9
7607 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'
7608 compiler_needs_object=yes
7609 tmp_sharedflag='-G' ;;
7610 *Sun\ F*) # Sun Fortran 8.3
7611 tmp_sharedflag='-G' ;;
7612 esac
7613 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7614
7615 if test "x$supports_anon_versioning" = xyes; then
7616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7618 echo "local: *; };" >> $output_objdir/$libname.ver~
7619 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7620 fi
7621
7622 case $cc_basename in
7623 xlf*)
7624 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7625 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7626 hardcode_libdir_flag_spec=
7627 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7628 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7629 if test "x$supports_anon_versioning" = xyes; then
7630 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7632 echo "local: *; };" >> $output_objdir/$libname.ver~
7633 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7634 fi
7635 ;;
7636 esac
7637 else
7638 ld_shlibs=no
7639 fi
7640 ;;
7641
7642 netbsd* | netbsdelf*-gnu)
7643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7644 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7645 wlarc=
7646 else
7647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7649 fi
7650 ;;
7651
7652 solaris*)
7653 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7654 ld_shlibs=no
7655 cat <<_LT_EOF 1>&2
7656
7657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7658 *** create shared libraries on Solaris systems. Therefore, libtool
7659 *** is disabling shared libraries support. We urge you to upgrade GNU
7660 *** binutils to release 2.9.1 or newer. Another option is to modify
7661 *** your PATH or compiler configuration so that the native linker is
7662 *** used, and then restart.
7663
7664 _LT_EOF
7665 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7668 else
7669 ld_shlibs=no
7670 fi
7671 ;;
7672
7673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7674 case `$LD -v 2>&1` in
7675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7676 ld_shlibs=no
7677 cat <<_LT_EOF 1>&2
7678
7679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7680 *** reliably create shared libraries on SCO systems. Therefore, libtool
7681 *** is disabling shared libraries support. We urge you to upgrade GNU
7682 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7683 *** your PATH or compiler configuration so that the native linker is
7684 *** used, and then restart.
7685
7686 _LT_EOF
7687 ;;
7688 *)
7689 # For security reasons, it is highly recommended that you always
7690 # use absolute paths for naming shared libraries, and exclude the
7691 # DT_RUNPATH tag from executables and libraries. But doing so
7692 # requires that you compile everything twice, which is a pain.
7693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7697 else
7698 ld_shlibs=no
7699 fi
7700 ;;
7701 esac
7702 ;;
7703
7704 sunos4*)
7705 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7706 wlarc=
7707 hardcode_direct=yes
7708 hardcode_shlibpath_var=no
7709 ;;
7710
7711 *)
7712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7715 else
7716 ld_shlibs=no
7717 fi
7718 ;;
7719 esac
7720
7721 if test "$ld_shlibs" = no; then
7722 runpath_var=
7723 hardcode_libdir_flag_spec=
7724 export_dynamic_flag_spec=
7725 whole_archive_flag_spec=
7726 fi
7727 else
7728 # PORTME fill in a description of your system's linker (not GNU ld)
7729 case $host_os in
7730 aix3*)
7731 allow_undefined_flag=unsupported
7732 always_export_symbols=yes
7733 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'
7734 # Note: this linker hardcodes the directories in LIBPATH if there
7735 # are no directories specified by -L.
7736 hardcode_minus_L=yes
7737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7738 # Neither direct hardcoding nor static linking is supported with a
7739 # broken collect2.
7740 hardcode_direct=unsupported
7741 fi
7742 ;;
7743
7744 aix[4-9]*)
7745 if test "$host_cpu" = ia64; then
7746 # On IA64, the linker does run time linking by default, so we don't
7747 # have to do anything special.
7748 aix_use_runtimelinking=no
7749 exp_sym_flag='-Bexport'
7750 no_entry_flag=""
7751 else
7752 # If we're using GNU nm, then we don't want the "-C" option.
7753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7755 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'
7756 else
7757 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'
7758 fi
7759 aix_use_runtimelinking=no
7760
7761 # Test if we are trying to use run time linking or normal
7762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7763 # need to do runtime linking.
7764 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7765 for ld_flag in $LDFLAGS; do
7766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7767 aix_use_runtimelinking=yes
7768 break
7769 fi
7770 done
7771 ;;
7772 esac
7773
7774 exp_sym_flag='-bexport'
7775 no_entry_flag='-bnoentry'
7776 fi
7777
7778 # When large executables or shared objects are built, AIX ld can
7779 # have problems creating the table of contents. If linking a library
7780 # or program results in "error TOC overflow" add -mminimal-toc to
7781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7783
7784 archive_cmds=''
7785 hardcode_direct=yes
7786 hardcode_direct_absolute=yes
7787 hardcode_libdir_separator=':'
7788 link_all_deplibs=yes
7789 file_list_spec='${wl}-f,'
7790
7791 if test "$GCC" = yes; then
7792 case $host_os in aix4.[012]|aix4.[012].*)
7793 # We only want to do this on AIX 4.2 and lower, the check
7794 # below for broken collect2 doesn't work under 4.3+
7795 collect2name=`${CC} -print-prog-name=collect2`
7796 if test -f "$collect2name" &&
7797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7798 then
7799 # We have reworked collect2
7800 :
7801 else
7802 # We have old collect2
7803 hardcode_direct=unsupported
7804 # It fails to find uninstalled libraries when the uninstalled
7805 # path is not listed in the libpath. Setting hardcode_minus_L
7806 # to unsupported forces relinking
7807 hardcode_minus_L=yes
7808 hardcode_libdir_flag_spec='-L$libdir'
7809 hardcode_libdir_separator=
7810 fi
7811 ;;
7812 esac
7813 shared_flag='-shared'
7814 if test "$aix_use_runtimelinking" = yes; then
7815 shared_flag="$shared_flag "'${wl}-G'
7816 fi
7817 link_all_deplibs=no
7818 else
7819 # not using gcc
7820 if test "$host_cpu" = ia64; then
7821 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7822 # chokes on -Wl,-G. The following line is correct:
7823 shared_flag='-G'
7824 else
7825 if test "$aix_use_runtimelinking" = yes; then
7826 shared_flag='${wl}-G'
7827 else
7828 shared_flag='${wl}-bM:SRE'
7829 fi
7830 fi
7831 fi
7832
7833 export_dynamic_flag_spec='${wl}-bexpall'
7834 # It seems that -bexpall does not export symbols beginning with
7835 # underscore (_), so it is better to generate a list of symbols to export.
7836 always_export_symbols=yes
7837 if test "$aix_use_runtimelinking" = yes; then
7838 # Warning - without using the other runtime loading flags (-brtl),
7839 # -berok will link without error, but may produce a broken library.
7840 allow_undefined_flag='-berok'
7841 # Determine the default libpath from the value encoded in an
7842 # empty executable.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845
7846 int
7847 main ()
7848 {
7849
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855
7856 lt_aix_libpath_sed='
7857 /Import File Strings/,/^$/ {
7858 /^0/ {
7859 s/^0 *\(.*\)$/\1/
7860 p
7861 }
7862 }'
7863 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7864 # Check for a 64-bit object if we didn't find anything.
7865 if test -z "$aix_libpath"; then
7866 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7867 fi
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7872
7873 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7874 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"
7875 else
7876 if test "$host_cpu" = ia64; then
7877 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7878 allow_undefined_flag="-z nodefs"
7879 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"
7880 else
7881 # Determine the default libpath from the value encoded in an
7882 # empty executable.
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885
7886 int
7887 main ()
7888 {
7889
7890 ;
7891 return 0;
7892 }
7893 _ACEOF
7894 if ac_fn_c_try_link "$LINENO"; then :
7895
7896 lt_aix_libpath_sed='
7897 /Import File Strings/,/^$/ {
7898 /^0/ {
7899 s/^0 *\(.*\)$/\1/
7900 p
7901 }
7902 }'
7903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7904 # Check for a 64-bit object if we didn't find anything.
7905 if test -z "$aix_libpath"; then
7906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7907 fi
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7912
7913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7914 # Warning - without using the other run time loading flags,
7915 # -berok will link without error, but may produce a broken library.
7916 no_undefined_flag=' ${wl}-bernotok'
7917 allow_undefined_flag=' ${wl}-berok'
7918 # Exported symbols can be pulled into shared objects from archives
7919 whole_archive_flag_spec='$convenience'
7920 archive_cmds_need_lc=yes
7921 # This is similar to how AIX traditionally builds its shared libraries.
7922 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'
7923 fi
7924 fi
7925 ;;
7926
7927 amigaos*)
7928 case $host_cpu in
7929 powerpc)
7930 # see comment about AmigaOS4 .so support
7931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7932 archive_expsym_cmds=''
7933 ;;
7934 m68k)
7935 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)'
7936 hardcode_libdir_flag_spec='-L$libdir'
7937 hardcode_minus_L=yes
7938 ;;
7939 esac
7940 ;;
7941
7942 bsdi[45]*)
7943 export_dynamic_flag_spec=-rdynamic
7944 ;;
7945
7946 cygwin* | mingw* | pw32* | cegcc*)
7947 # When not using gcc, we currently assume that we are using
7948 # Microsoft Visual C++.
7949 # hardcode_libdir_flag_spec is actually meaningless, as there is
7950 # no search path for DLLs.
7951 hardcode_libdir_flag_spec=' '
7952 allow_undefined_flag=unsupported
7953 # Tell ltmain to make .lib files, not .a files.
7954 libext=lib
7955 # Tell ltmain to make .dll files, not .so files.
7956 shrext_cmds=".dll"
7957 # FIXME: Setting linknames here is a bad hack.
7958 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7959 # The linker will automatically build a .lib file if we build a DLL.
7960 old_archive_from_new_cmds='true'
7961 # FIXME: Should let the user specify the lib program.
7962 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7963 fix_srcfile_path='`cygpath -w "$srcfile"`'
7964 enable_shared_with_static_runtimes=yes
7965 ;;
7966
7967 darwin* | rhapsody*)
7968
7969
7970 archive_cmds_need_lc=no
7971 hardcode_direct=no
7972 hardcode_automatic=yes
7973 hardcode_shlibpath_var=unsupported
7974 whole_archive_flag_spec=''
7975 link_all_deplibs=yes
7976 allow_undefined_flag="$_lt_dar_allow_undefined"
7977 case $cc_basename in
7978 ifort*) _lt_dar_can_shared=yes ;;
7979 *) _lt_dar_can_shared=$GCC ;;
7980 esac
7981 if test "$_lt_dar_can_shared" = "yes"; then
7982 output_verbose_link_cmd=echo
7983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7985 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}"
7986 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}"
7987
7988 else
7989 ld_shlibs=no
7990 fi
7991
7992 ;;
7993
7994 dgux*)
7995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7996 hardcode_libdir_flag_spec='-L$libdir'
7997 hardcode_shlibpath_var=no
7998 ;;
7999
8000 freebsd1*)
8001 ld_shlibs=no
8002 ;;
8003
8004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8005 # support. Future versions do this automatically, but an explicit c++rt0.o
8006 # does not break anything, and helps significantly (at the cost of a little
8007 # extra space).
8008 freebsd2.2*)
8009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8010 hardcode_libdir_flag_spec='-R$libdir'
8011 hardcode_direct=yes
8012 hardcode_shlibpath_var=no
8013 ;;
8014
8015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8016 freebsd2*)
8017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8018 hardcode_direct=yes
8019 hardcode_minus_L=yes
8020 hardcode_shlibpath_var=no
8021 ;;
8022
8023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8024 freebsd* | dragonfly*)
8025 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8026 hardcode_libdir_flag_spec='-R$libdir'
8027 hardcode_direct=yes
8028 hardcode_shlibpath_var=no
8029 ;;
8030
8031 hpux9*)
8032 if test "$GCC" = yes; then
8033 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'
8034 else
8035 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'
8036 fi
8037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8038 hardcode_libdir_separator=:
8039 hardcode_direct=yes
8040
8041 # hardcode_minus_L: Not really in the search PATH,
8042 # but as the default location of the library.
8043 hardcode_minus_L=yes
8044 export_dynamic_flag_spec='${wl}-E'
8045 ;;
8046
8047 hpux10*)
8048 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8050 else
8051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8052 fi
8053 if test "$with_gnu_ld" = no; then
8054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8055 hardcode_libdir_flag_spec_ld='+b $libdir'
8056 hardcode_libdir_separator=:
8057 hardcode_direct=yes
8058 hardcode_direct_absolute=yes
8059 export_dynamic_flag_spec='${wl}-E'
8060 # hardcode_minus_L: Not really in the search PATH,
8061 # but as the default location of the library.
8062 hardcode_minus_L=yes
8063 fi
8064 ;;
8065
8066 hpux11*)
8067 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8068 case $host_cpu in
8069 hppa*64*)
8070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071 ;;
8072 ia64*)
8073 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8074 ;;
8075 *)
8076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8077 ;;
8078 esac
8079 else
8080 case $host_cpu in
8081 hppa*64*)
8082 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8083 ;;
8084 ia64*)
8085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8086 ;;
8087 *)
8088 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8089 ;;
8090 esac
8091 fi
8092 if test "$with_gnu_ld" = no; then
8093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8094 hardcode_libdir_separator=:
8095
8096 case $host_cpu in
8097 hppa*64*|ia64*)
8098 hardcode_direct=no
8099 hardcode_shlibpath_var=no
8100 ;;
8101 *)
8102 hardcode_direct=yes
8103 hardcode_direct_absolute=yes
8104 export_dynamic_flag_spec='${wl}-E'
8105
8106 # hardcode_minus_L: Not really in the search PATH,
8107 # but as the default location of the library.
8108 hardcode_minus_L=yes
8109 ;;
8110 esac
8111 fi
8112 ;;
8113
8114 irix5* | irix6* | nonstopux*)
8115 if test "$GCC" = yes; then
8116 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'
8117 # Try to use the -exported_symbol ld option, if it does not
8118 # work, assume that -exports_file does not work either and
8119 # implicitly export all symbols.
8120 save_LDFLAGS="$LDFLAGS"
8121 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 int foo(void) {}
8125 _ACEOF
8126 if ac_fn_c_try_link "$LINENO"; then :
8127 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'
8128
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext \
8131 conftest$ac_exeext conftest.$ac_ext
8132 LDFLAGS="$save_LDFLAGS"
8133 else
8134 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'
8135 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'
8136 fi
8137 archive_cmds_need_lc='no'
8138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8139 hardcode_libdir_separator=:
8140 inherit_rpath=yes
8141 link_all_deplibs=yes
8142 ;;
8143
8144 netbsd* | netbsdelf*-gnu)
8145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8147 else
8148 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8149 fi
8150 hardcode_libdir_flag_spec='-R$libdir'
8151 hardcode_direct=yes
8152 hardcode_shlibpath_var=no
8153 ;;
8154
8155 newsos6)
8156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157 hardcode_direct=yes
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 hardcode_libdir_separator=:
8160 hardcode_shlibpath_var=no
8161 ;;
8162
8163 *nto* | *qnx*)
8164 ;;
8165
8166 openbsd*)
8167 if test -f /usr/libexec/ld.so; then
8168 hardcode_direct=yes
8169 hardcode_shlibpath_var=no
8170 hardcode_direct_absolute=yes
8171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8173 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175 export_dynamic_flag_spec='${wl}-E'
8176 else
8177 case $host_os in
8178 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8180 hardcode_libdir_flag_spec='-R$libdir'
8181 ;;
8182 *)
8183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8185 ;;
8186 esac
8187 fi
8188 else
8189 ld_shlibs=no
8190 fi
8191 ;;
8192
8193 os2*)
8194 hardcode_libdir_flag_spec='-L$libdir'
8195 hardcode_minus_L=yes
8196 allow_undefined_flag=unsupported
8197 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'
8198 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8199 ;;
8200
8201 osf3*)
8202 if test "$GCC" = yes; then
8203 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8204 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'
8205 else
8206 allow_undefined_flag=' -expect_unresolved \*'
8207 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'
8208 fi
8209 archive_cmds_need_lc='no'
8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211 hardcode_libdir_separator=:
8212 ;;
8213
8214 osf4* | osf5*) # as osf3* with the addition of -msym flag
8215 if test "$GCC" = yes; then
8216 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8217 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'
8218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219 else
8220 allow_undefined_flag=' -expect_unresolved \*'
8221 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'
8222 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~
8223 $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'
8224
8225 # Both c and cxx compiler support -rpath directly
8226 hardcode_libdir_flag_spec='-rpath $libdir'
8227 fi
8228 archive_cmds_need_lc='no'
8229 hardcode_libdir_separator=:
8230 ;;
8231
8232 solaris*)
8233 no_undefined_flag=' -z defs'
8234 if test "$GCC" = yes; then
8235 wlarc='${wl}'
8236 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8238 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8239 else
8240 case `$CC -V 2>&1` in
8241 *"Compilers 5.0"*)
8242 wlarc=''
8243 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8245 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8246 ;;
8247 *)
8248 wlarc='${wl}'
8249 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8251 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8252 ;;
8253 esac
8254 fi
8255 hardcode_libdir_flag_spec='-R$libdir'
8256 hardcode_shlibpath_var=no
8257 case $host_os in
8258 solaris2.[0-5] | solaris2.[0-5].*) ;;
8259 *)
8260 # The compiler driver will combine and reorder linker options,
8261 # but understands `-z linker_flag'. GCC discards it without `$wl',
8262 # but is careful enough not to reorder.
8263 # Supported since Solaris 2.6 (maybe 2.5.1?)
8264 if test "$GCC" = yes; then
8265 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8266 else
8267 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8268 fi
8269 ;;
8270 esac
8271 link_all_deplibs=yes
8272 ;;
8273
8274 sunos4*)
8275 if test "x$host_vendor" = xsequent; then
8276 # Use $CC to link under sequent, because it throws in some extra .o
8277 # files that make .init and .fini sections work.
8278 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8279 else
8280 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8281 fi
8282 hardcode_libdir_flag_spec='-L$libdir'
8283 hardcode_direct=yes
8284 hardcode_minus_L=yes
8285 hardcode_shlibpath_var=no
8286 ;;
8287
8288 sysv4)
8289 case $host_vendor in
8290 sni)
8291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8292 hardcode_direct=yes # is this really true???
8293 ;;
8294 siemens)
8295 ## LD is ld it makes a PLAMLIB
8296 ## CC just makes a GrossModule.
8297 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8298 reload_cmds='$CC -r -o $output$reload_objs'
8299 hardcode_direct=no
8300 ;;
8301 motorola)
8302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8304 ;;
8305 esac
8306 runpath_var='LD_RUN_PATH'
8307 hardcode_shlibpath_var=no
8308 ;;
8309
8310 sysv4.3*)
8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_shlibpath_var=no
8313 export_dynamic_flag_spec='-Bexport'
8314 ;;
8315
8316 sysv4*MP*)
8317 if test -d /usr/nec; then
8318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8319 hardcode_shlibpath_var=no
8320 runpath_var=LD_RUN_PATH
8321 hardcode_runpath_var=yes
8322 ld_shlibs=yes
8323 fi
8324 ;;
8325
8326 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8327 no_undefined_flag='${wl}-z,text'
8328 archive_cmds_need_lc=no
8329 hardcode_shlibpath_var=no
8330 runpath_var='LD_RUN_PATH'
8331
8332 if test "$GCC" = yes; then
8333 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8334 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8335 else
8336 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8337 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8338 fi
8339 ;;
8340
8341 sysv5* | sco3.2v5* | sco5v6*)
8342 # Note: We can NOT use -z defs as we might desire, because we do not
8343 # link with -lc, and that would cause any symbols used from libc to
8344 # always be unresolved, which means just about no library would
8345 # ever link correctly. If we're not using GNU ld we use -z text
8346 # though, which does catch some bad symbols but isn't as heavy-handed
8347 # as -z defs.
8348 no_undefined_flag='${wl}-z,text'
8349 allow_undefined_flag='${wl}-z,nodefs'
8350 archive_cmds_need_lc=no
8351 hardcode_shlibpath_var=no
8352 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8353 hardcode_libdir_separator=':'
8354 link_all_deplibs=yes
8355 export_dynamic_flag_spec='${wl}-Bexport'
8356 runpath_var='LD_RUN_PATH'
8357
8358 if test "$GCC" = yes; then
8359 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8361 else
8362 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8363 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8364 fi
8365 ;;
8366
8367 uts4*)
8368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_shlibpath_var=no
8371 ;;
8372
8373 *)
8374 ld_shlibs=no
8375 ;;
8376 esac
8377
8378 if test x$host_vendor = xsni; then
8379 case $host in
8380 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8381 export_dynamic_flag_spec='${wl}-Blargedynsym'
8382 ;;
8383 esac
8384 fi
8385 fi
8386
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8388 $as_echo "$ld_shlibs" >&6; }
8389 test "$ld_shlibs" = no && can_build_shared=no
8390
8391 with_gnu_ld=$with_gnu_ld
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 #
8408 # Do we need to explicitly link libc?
8409 #
8410 case "x$archive_cmds_need_lc" in
8411 x|xyes)
8412 # Assume -lc should be added
8413 archive_cmds_need_lc=yes
8414
8415 if test "$enable_shared" = yes && test "$GCC" = yes; then
8416 case $archive_cmds in
8417 *'~'*)
8418 # FIXME: we may have to deal with multi-command sequences.
8419 ;;
8420 '$CC '*)
8421 # Test whether the compiler implicitly links with -lc since on some
8422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8423 # to ld, don't add -lc before -lgcc.
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8425 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8426 $RM conftest*
8427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428
8429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8430 (eval $ac_compile) 2>&5
8431 ac_status=$?
8432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8433 test $ac_status = 0; } 2>conftest.err; then
8434 soname=conftest
8435 lib=conftest
8436 libobjs=conftest.$ac_objext
8437 deplibs=
8438 wl=$lt_prog_compiler_wl
8439 pic_flag=$lt_prog_compiler_pic
8440 compiler_flags=-v
8441 linker_flags=-v
8442 verstring=
8443 output_objdir=.
8444 libname=conftest
8445 lt_save_allow_undefined_flag=$allow_undefined_flag
8446 allow_undefined_flag=
8447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8448 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8449 ac_status=$?
8450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8451 test $ac_status = 0; }
8452 then
8453 archive_cmds_need_lc=no
8454 else
8455 archive_cmds_need_lc=yes
8456 fi
8457 allow_undefined_flag=$lt_save_allow_undefined_flag
8458 else
8459 cat conftest.err 1>&5
8460 fi
8461 $RM conftest*
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8463 $as_echo "$archive_cmds_need_lc" >&6; }
8464 ;;
8465 esac
8466 fi
8467 ;;
8468 esac
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8628
8629 if test "$GCC" = yes; then
8630 case $host_os in
8631 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8632 *) lt_awk_arg="/^libraries:/" ;;
8633 esac
8634 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8636 # if the path contains ";" then we assume it to be the separator
8637 # otherwise default to the standard path separator (i.e. ":") - it is
8638 # assumed that no part of a normal pathname contains ";" but that should
8639 # okay in the real world where ";" in dirpaths is itself problematic.
8640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8641 else
8642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8643 fi
8644 # Ok, now we have the path, separated by spaces, we can step through it
8645 # and add multilib dir if necessary.
8646 lt_tmp_lt_search_path_spec=
8647 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8648 for lt_sys_path in $lt_search_path_spec; do
8649 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8651 else
8652 test -d "$lt_sys_path" && \
8653 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8654 fi
8655 done
8656 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8657 BEGIN {RS=" "; FS="/|\n";} {
8658 lt_foo="";
8659 lt_count=0;
8660 for (lt_i = NF; lt_i > 0; lt_i--) {
8661 if ($lt_i != "" && $lt_i != ".") {
8662 if ($lt_i == "..") {
8663 lt_count++;
8664 } else {
8665 if (lt_count == 0) {
8666 lt_foo="/" $lt_i lt_foo;
8667 } else {
8668 lt_count--;
8669 }
8670 }
8671 }
8672 }
8673 if (lt_foo != "") { lt_freq[lt_foo]++; }
8674 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8675 }'`
8676 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8677 else
8678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8679 fi
8680 library_names_spec=
8681 libname_spec='lib$name'
8682 soname_spec=
8683 shrext_cmds=".so"
8684 postinstall_cmds=
8685 postuninstall_cmds=
8686 finish_cmds=
8687 finish_eval=
8688 shlibpath_var=
8689 shlibpath_overrides_runpath=unknown
8690 version_type=none
8691 dynamic_linker="$host_os ld.so"
8692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8693 need_lib_prefix=unknown
8694 hardcode_into_libs=no
8695
8696 # when you set need_version to no, make sure it does not cause -set_version
8697 # flags to be left without arguments
8698 need_version=unknown
8699
8700 case $host_os in
8701 aix3*)
8702 version_type=linux
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8704 shlibpath_var=LIBPATH
8705
8706 # AIX 3 has no versioning support, so we append a major version to the name.
8707 soname_spec='${libname}${release}${shared_ext}$major'
8708 ;;
8709
8710 aix[4-9]*)
8711 version_type=linux
8712 need_lib_prefix=no
8713 need_version=no
8714 hardcode_into_libs=yes
8715 if test "$host_cpu" = ia64; then
8716 # AIX 5 supports IA64
8717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8718 shlibpath_var=LD_LIBRARY_PATH
8719 else
8720 # With GCC up to 2.95.x, collect2 would create an import file
8721 # for dependence libraries. The import file would start with
8722 # the line `#! .'. This would cause the generated library to
8723 # depend on `.', always an invalid library. This was fixed in
8724 # development snapshots of GCC prior to 3.0.
8725 case $host_os in
8726 aix4 | aix4.[01] | aix4.[01].*)
8727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8728 echo ' yes '
8729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8730 :
8731 else
8732 can_build_shared=no
8733 fi
8734 ;;
8735 esac
8736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8737 # soname into executable. Probably we can add versioning support to
8738 # collect2, so additional links can be useful in future.
8739 if test "$aix_use_runtimelinking" = yes; then
8740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8741 # instead of lib<name>.a to let people know that these are not
8742 # typical AIX shared libraries.
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8744 else
8745 # We preserve .a as extension for shared libraries through AIX4.2
8746 # and later when we are not doing run time linking.
8747 library_names_spec='${libname}${release}.a $libname.a'
8748 soname_spec='${libname}${release}${shared_ext}$major'
8749 fi
8750 shlibpath_var=LIBPATH
8751 fi
8752 ;;
8753
8754 amigaos*)
8755 case $host_cpu in
8756 powerpc)
8757 # Since July 2007 AmigaOS4 officially supports .so libraries.
8758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 ;;
8761 m68k)
8762 library_names_spec='$libname.ixlibrary $libname.a'
8763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8764 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'
8765 ;;
8766 esac
8767 ;;
8768
8769 beos*)
8770 library_names_spec='${libname}${shared_ext}'
8771 dynamic_linker="$host_os ld.so"
8772 shlibpath_var=LIBRARY_PATH
8773 ;;
8774
8775 bsdi[45]*)
8776 version_type=linux
8777 need_version=no
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8779 soname_spec='${libname}${release}${shared_ext}$major'
8780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8784 # the default ld.so.conf also contains /usr/contrib/lib and
8785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8786 # libtool to hard-code these into programs
8787 ;;
8788
8789 cygwin* | mingw* | pw32* | cegcc*)
8790 version_type=windows
8791 shrext_cmds=".dll"
8792 need_version=no
8793 need_lib_prefix=no
8794
8795 case $GCC,$host_os in
8796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8797 library_names_spec='$libname.dll.a'
8798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8799 postinstall_cmds='base_file=`basename \${file}`~
8800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8801 dldir=$destdir/`dirname \$dlpath`~
8802 test -d \$dldir || mkdir -p \$dldir~
8803 $install_prog $dir/$dlname \$dldir/$dlname~
8804 chmod a+x \$dldir/$dlname~
8805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8807 fi'
8808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8809 dlpath=$dir/\$dldll~
8810 $RM \$dlpath'
8811 shlibpath_overrides_runpath=yes
8812
8813 case $host_os in
8814 cygwin*)
8815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8818 ;;
8819 mingw* | cegcc*)
8820 # MinGW DLLs use traditional 'lib' prefix
8821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8822 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8823 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8824 # It is most probably a Windows format PATH printed by
8825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8826 # path with ; separators, and with drive letters. We can handle the
8827 # drive letters (cygwin fileutils understands them), so leave them,
8828 # especially as we might pass files found there to a mingw objdump,
8829 # which wouldn't understand a cygwinified path. Ahh.
8830 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8831 else
8832 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8833 fi
8834 ;;
8835 pw32*)
8836 # pw32 DLLs use 'pw' prefix rather than 'lib'
8837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8838 ;;
8839 esac
8840 ;;
8841
8842 *)
8843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8844 ;;
8845 esac
8846 dynamic_linker='Win32 ld.exe'
8847 # FIXME: first we should search . and the directory the executable is in
8848 shlibpath_var=PATH
8849 ;;
8850
8851 darwin* | rhapsody*)
8852 dynamic_linker="$host_os dyld"
8853 version_type=darwin
8854 need_lib_prefix=no
8855 need_version=no
8856 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8857 soname_spec='${libname}${release}${major}$shared_ext'
8858 shlibpath_overrides_runpath=yes
8859 shlibpath_var=DYLD_LIBRARY_PATH
8860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8861
8862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8863 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8864 ;;
8865
8866 dgux*)
8867 version_type=linux
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 ;;
8874
8875 freebsd1*)
8876 dynamic_linker=no
8877 ;;
8878
8879 freebsd* | dragonfly*)
8880 # DragonFly does not have aout. When/if they implement a new
8881 # versioning mechanism, adjust this.
8882 if test -x /usr/bin/objformat; then
8883 objformat=`/usr/bin/objformat`
8884 else
8885 case $host_os in
8886 freebsd[123]*) objformat=aout ;;
8887 *) objformat=elf ;;
8888 esac
8889 fi
8890 version_type=freebsd-$objformat
8891 case $version_type in
8892 freebsd-elf*)
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8894 need_version=no
8895 need_lib_prefix=no
8896 ;;
8897 freebsd-*)
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8899 need_version=yes
8900 ;;
8901 esac
8902 shlibpath_var=LD_LIBRARY_PATH
8903 case $host_os in
8904 freebsd2*)
8905 shlibpath_overrides_runpath=yes
8906 ;;
8907 freebsd3.[01]* | freebsdelf3.[01]*)
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8910 ;;
8911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8913 shlibpath_overrides_runpath=no
8914 hardcode_into_libs=yes
8915 ;;
8916 *) # from 4.6 on, and DragonFly
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8919 ;;
8920 esac
8921 ;;
8922
8923 gnu*)
8924 version_type=linux
8925 need_lib_prefix=no
8926 need_version=no
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 hardcode_into_libs=yes
8931 ;;
8932
8933 hpux9* | hpux10* | hpux11*)
8934 # Give a soname corresponding to the major version so that dld.sl refuses to
8935 # link against other versions.
8936 version_type=sunos
8937 need_lib_prefix=no
8938 need_version=no
8939 case $host_cpu in
8940 ia64*)
8941 shrext_cmds='.so'
8942 hardcode_into_libs=yes
8943 dynamic_linker="$host_os dld.so"
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 if test "X$HPUX_IA64_MODE" = X32; then
8949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8950 else
8951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8952 fi
8953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954 ;;
8955 hppa*64*)
8956 shrext_cmds='.sl'
8957 hardcode_into_libs=yes
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8965 ;;
8966 *)
8967 shrext_cmds='.sl'
8968 dynamic_linker="$host_os dld.sl"
8969 shlibpath_var=SHLIB_PATH
8970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 ;;
8974 esac
8975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8976 postinstall_cmds='chmod 555 $lib'
8977 ;;
8978
8979 interix[3-9]*)
8980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8989 ;;
8990
8991 irix5* | irix6* | nonstopux*)
8992 case $host_os in
8993 nonstopux*) version_type=nonstopux ;;
8994 *)
8995 if test "$lt_cv_prog_gnu_ld" = yes; then
8996 version_type=linux
8997 else
8998 version_type=irix
8999 fi ;;
9000 esac
9001 need_lib_prefix=no
9002 need_version=no
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 case $host_os in
9006 irix5* | nonstopux*)
9007 libsuff= shlibsuff=
9008 ;;
9009 *)
9010 case $LD in # libtool.m4 will add one of these switches to LD
9011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9012 libsuff= shlibsuff= libmagic=32-bit;;
9013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9014 libsuff=32 shlibsuff=N32 libmagic=N32;;
9015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9017 *) libsuff= shlibsuff= libmagic=never-match;;
9018 esac
9019 ;;
9020 esac
9021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9022 shlibpath_overrides_runpath=no
9023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9025 hardcode_into_libs=yes
9026 ;;
9027
9028 # No shared lib support for Linux oldld, aout, or coff.
9029 linux*oldld* | linux*aout* | linux*coff*)
9030 dynamic_linker=no
9031 ;;
9032
9033 # This must be Linux ELF.
9034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 # Some binutils ld are patched to set DT_RUNPATH
9044 save_LDFLAGS=$LDFLAGS
9045 save_libdir=$libdir
9046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050
9051 int
9052 main ()
9053 {
9054
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 if ac_fn_c_try_link "$LINENO"; then :
9060 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9061 shlibpath_overrides_runpath=yes
9062 fi
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 LDFLAGS=$save_LDFLAGS
9067 libdir=$save_libdir
9068
9069 # This implies no fast_install, which is unacceptable.
9070 # Some rework will be needed to allow for fast_install
9071 # before this can be enabled.
9072 hardcode_into_libs=yes
9073
9074 # Append ld.so.conf contents to the search path
9075 if test -f /etc/ld.so.conf; then
9076 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' ' '`
9077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9078 fi
9079
9080 # We used to test for /lib/ld.so.1 and disable shared libraries on
9081 # powerpc, because MkLinux only supported shared libraries with the
9082 # GNU dynamic linker. Since this was broken with cross compilers,
9083 # most powerpc-linux boxes support dynamic linking these days and
9084 # people can always --disable-shared, the test was removed, and we
9085 # assume the GNU/Linux dynamic linker is in use.
9086 dynamic_linker='GNU/Linux ld.so'
9087 ;;
9088
9089 netbsdelf*-gnu)
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=no
9097 hardcode_into_libs=yes
9098 dynamic_linker='NetBSD ld.elf_so'
9099 ;;
9100
9101 netbsd*)
9102 version_type=sunos
9103 need_lib_prefix=no
9104 need_version=no
9105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9108 dynamic_linker='NetBSD (a.out) ld.so'
9109 else
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 dynamic_linker='NetBSD ld.elf_so'
9113 fi
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes
9116 hardcode_into_libs=yes
9117 ;;
9118
9119 newsos6)
9120 version_type=linux
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=yes
9124 ;;
9125
9126 *nto* | *qnx*)
9127 version_type=qnx
9128 need_lib_prefix=no
9129 need_version=no
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=no
9134 hardcode_into_libs=yes
9135 dynamic_linker='ldqnx.so'
9136 ;;
9137
9138 openbsd*)
9139 version_type=sunos
9140 sys_lib_dlsearch_path_spec="/usr/lib"
9141 need_lib_prefix=no
9142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9143 case $host_os in
9144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9145 *) need_version=no ;;
9146 esac
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9151 case $host_os in
9152 openbsd2.[89] | openbsd2.[89].*)
9153 shlibpath_overrides_runpath=no
9154 ;;
9155 *)
9156 shlibpath_overrides_runpath=yes
9157 ;;
9158 esac
9159 else
9160 shlibpath_overrides_runpath=yes
9161 fi
9162 ;;
9163
9164 os2*)
9165 libname_spec='$name'
9166 shrext_cmds=".dll"
9167 need_lib_prefix=no
9168 library_names_spec='$libname${shared_ext} $libname.a'
9169 dynamic_linker='OS/2 ld.exe'
9170 shlibpath_var=LIBPATH
9171 ;;
9172
9173 osf3* | osf4* | osf5*)
9174 version_type=osf
9175 need_lib_prefix=no
9176 need_version=no
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9182 ;;
9183
9184 rdos*)
9185 dynamic_linker=no
9186 ;;
9187
9188 solaris*)
9189 version_type=linux
9190 need_lib_prefix=no
9191 need_version=no
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 shlibpath_overrides_runpath=yes
9196 hardcode_into_libs=yes
9197 # ldd complains unless libraries are executable
9198 postinstall_cmds='chmod +x $lib'
9199 ;;
9200
9201 sunos4*)
9202 version_type=sunos
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=yes
9207 if test "$with_gnu_ld" = yes; then
9208 need_lib_prefix=no
9209 fi
9210 need_version=yes
9211 ;;
9212
9213 sysv4 | sysv4.3*)
9214 version_type=linux
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 case $host_vendor in
9219 sni)
9220 shlibpath_overrides_runpath=no
9221 need_lib_prefix=no
9222 runpath_var=LD_RUN_PATH
9223 ;;
9224 siemens)
9225 need_lib_prefix=no
9226 ;;
9227 motorola)
9228 need_lib_prefix=no
9229 need_version=no
9230 shlibpath_overrides_runpath=no
9231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9232 ;;
9233 esac
9234 ;;
9235
9236 sysv4*MP*)
9237 if test -d /usr/nec ;then
9238 version_type=linux
9239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9240 soname_spec='$libname${shared_ext}.$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 fi
9243 ;;
9244
9245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9246 version_type=freebsd-elf
9247 need_lib_prefix=no
9248 need_version=no
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 hardcode_into_libs=yes
9254 if test "$with_gnu_ld" = yes; then
9255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9256 else
9257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9258 case $host_os in
9259 sco3.2v5*)
9260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9261 ;;
9262 esac
9263 fi
9264 sys_lib_dlsearch_path_spec='/usr/lib'
9265 ;;
9266
9267 tpf*)
9268 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9269 version_type=linux
9270 need_lib_prefix=no
9271 need_version=no
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=no
9275 hardcode_into_libs=yes
9276 ;;
9277
9278 uts4*)
9279 version_type=linux
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 ;;
9284
9285 *)
9286 dynamic_linker=no
9287 ;;
9288 esac
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9290 $as_echo "$dynamic_linker" >&6; }
9291 test "$dynamic_linker" = no && can_build_shared=no
9292
9293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9294 if test "$GCC" = yes; then
9295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9296 fi
9297
9298 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9299 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9300 fi
9301 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9302 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9303 fi
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9392 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9393 hardcode_action=
9394 if test -n "$hardcode_libdir_flag_spec" ||
9395 test -n "$runpath_var" ||
9396 test "X$hardcode_automatic" = "Xyes" ; then
9397
9398 # We can hardcode non-existent directories.
9399 if test "$hardcode_direct" != no &&
9400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9401 # have to relink, otherwise we might link with an installed library
9402 # when we should be linking with a yet-to-be-installed one
9403 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9404 test "$hardcode_minus_L" != no; then
9405 # Linking always hardcodes the temporary library directory.
9406 hardcode_action=relink
9407 else
9408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9409 hardcode_action=immediate
9410 fi
9411 else
9412 # We cannot hardcode anything, or else we can only hardcode existing
9413 # directories.
9414 hardcode_action=unsupported
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9417 $as_echo "$hardcode_action" >&6; }
9418
9419 if test "$hardcode_action" = relink ||
9420 test "$inherit_rpath" = yes; then
9421 # Fast installation is not supported
9422 enable_fast_install=no
9423 elif test "$shlibpath_overrides_runpath" = yes ||
9424 test "$enable_shared" = no; then
9425 # Fast installation is not necessary
9426 enable_fast_install=needless
9427 fi
9428
9429
9430
9431
9432
9433
9434 if test "x$enable_dlopen" != xyes; then
9435 enable_dlopen=unknown
9436 enable_dlopen_self=unknown
9437 enable_dlopen_self_static=unknown
9438 else
9439 lt_cv_dlopen=no
9440 lt_cv_dlopen_libs=
9441
9442 case $host_os in
9443 beos*)
9444 lt_cv_dlopen="load_add_on"
9445 lt_cv_dlopen_libs=
9446 lt_cv_dlopen_self=yes
9447 ;;
9448
9449 mingw* | pw32* | cegcc*)
9450 lt_cv_dlopen="LoadLibrary"
9451 lt_cv_dlopen_libs=
9452 ;;
9453
9454 cygwin*)
9455 lt_cv_dlopen="dlopen"
9456 lt_cv_dlopen_libs=
9457 ;;
9458
9459 darwin*)
9460 # if libdl is installed we need to link against it
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9462 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl $LIBS"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char dlopen ();
9478 int
9479 main ()
9480 {
9481 return dlopen ();
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 ac_cv_lib_dl_dlopen=yes
9488 else
9489 ac_cv_lib_dl_dlopen=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9497 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9499 else
9500
9501 lt_cv_dlopen="dyld"
9502 lt_cv_dlopen_libs=
9503 lt_cv_dlopen_self=yes
9504
9505 fi
9506
9507 ;;
9508
9509 *)
9510 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9511 if test "x$ac_cv_func_shl_load" = x""yes; then :
9512 lt_cv_dlopen="shl_load"
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9515 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9516 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 ac_check_lib_save_LIBS=$LIBS
9520 LIBS="-ldld $LIBS"
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char shl_load ();
9531 int
9532 main ()
9533 {
9534 return shl_load ();
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 ac_cv_lib_dld_shl_load=yes
9541 else
9542 ac_cv_lib_dld_shl_load=no
9543 fi
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9549 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9550 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9551 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9552 else
9553 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9554 if test "x$ac_cv_func_dlopen" = x""yes; then :
9555 lt_cv_dlopen="dlopen"
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9558 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9559 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 ac_check_lib_save_LIBS=$LIBS
9563 LIBS="-ldl $LIBS"
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char dlopen ();
9574 int
9575 main ()
9576 {
9577 return dlopen ();
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 if ac_fn_c_try_link "$LINENO"; then :
9583 ac_cv_lib_dl_dlopen=yes
9584 else
9585 ac_cv_lib_dl_dlopen=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9593 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9595 else
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9597 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9598 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9600 else
9601 ac_check_lib_save_LIBS=$LIBS
9602 LIBS="-lsvld $LIBS"
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char dlopen ();
9613 int
9614 main ()
9615 {
9616 return dlopen ();
9617 ;
9618 return 0;
9619 }
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 ac_cv_lib_svld_dlopen=yes
9623 else
9624 ac_cv_lib_svld_dlopen=no
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9631 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9632 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9636 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9637 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-ldld $LIBS"
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 char dld_link ();
9652 int
9653 main ()
9654 {
9655 return dld_link ();
9656 ;
9657 return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_c_try_link "$LINENO"; then :
9661 ac_cv_lib_dld_dld_link=yes
9662 else
9663 ac_cv_lib_dld_dld_link=no
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9668 fi
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9670 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9671 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9672 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9673 fi
9674
9675
9676 fi
9677
9678
9679 fi
9680
9681
9682 fi
9683
9684
9685 fi
9686
9687
9688 fi
9689
9690 ;;
9691 esac
9692
9693 if test "x$lt_cv_dlopen" != xno; then
9694 enable_dlopen=yes
9695 else
9696 enable_dlopen=no
9697 fi
9698
9699 case $lt_cv_dlopen in
9700 dlopen)
9701 save_CPPFLAGS="$CPPFLAGS"
9702 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9703
9704 save_LDFLAGS="$LDFLAGS"
9705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9706
9707 save_LIBS="$LIBS"
9708 LIBS="$lt_cv_dlopen_libs $LIBS"
9709
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9711 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9712 if test "${lt_cv_dlopen_self+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 if test "$cross_compiling" = yes; then :
9716 lt_cv_dlopen_self=cross
9717 else
9718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9719 lt_status=$lt_dlunknown
9720 cat > conftest.$ac_ext <<_LT_EOF
9721 #line 9721 "configure"
9722 #include "confdefs.h"
9723
9724 #if HAVE_DLFCN_H
9725 #include <dlfcn.h>
9726 #endif
9727
9728 #include <stdio.h>
9729
9730 #ifdef RTLD_GLOBAL
9731 # define LT_DLGLOBAL RTLD_GLOBAL
9732 #else
9733 # ifdef DL_GLOBAL
9734 # define LT_DLGLOBAL DL_GLOBAL
9735 # else
9736 # define LT_DLGLOBAL 0
9737 # endif
9738 #endif
9739
9740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9741 find out it does not work in some platform. */
9742 #ifndef LT_DLLAZY_OR_NOW
9743 # ifdef RTLD_LAZY
9744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9745 # else
9746 # ifdef DL_LAZY
9747 # define LT_DLLAZY_OR_NOW DL_LAZY
9748 # else
9749 # ifdef RTLD_NOW
9750 # define LT_DLLAZY_OR_NOW RTLD_NOW
9751 # else
9752 # ifdef DL_NOW
9753 # define LT_DLLAZY_OR_NOW DL_NOW
9754 # else
9755 # define LT_DLLAZY_OR_NOW 0
9756 # endif
9757 # endif
9758 # endif
9759 # endif
9760 #endif
9761
9762 void fnord() { int i=42;}
9763 int main ()
9764 {
9765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9766 int status = $lt_dlunknown;
9767
9768 if (self)
9769 {
9770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9772 /* dlclose (self); */
9773 }
9774 else
9775 puts (dlerror ());
9776
9777 return status;
9778 }
9779 _LT_EOF
9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9781 (eval $ac_link) 2>&5
9782 ac_status=$?
9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9785 (./conftest; exit; ) >&5 2>/dev/null
9786 lt_status=$?
9787 case x$lt_status in
9788 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9789 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9790 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9791 esac
9792 else :
9793 # compilation failed
9794 lt_cv_dlopen_self=no
9795 fi
9796 fi
9797 rm -fr conftest*
9798
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9802 $as_echo "$lt_cv_dlopen_self" >&6; }
9803
9804 if test "x$lt_cv_dlopen_self" = xyes; then
9805 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9807 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9808 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test "$cross_compiling" = yes; then :
9812 lt_cv_dlopen_self_static=cross
9813 else
9814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9815 lt_status=$lt_dlunknown
9816 cat > conftest.$ac_ext <<_LT_EOF
9817 #line 9817 "configure"
9818 #include "confdefs.h"
9819
9820 #if HAVE_DLFCN_H
9821 #include <dlfcn.h>
9822 #endif
9823
9824 #include <stdio.h>
9825
9826 #ifdef RTLD_GLOBAL
9827 # define LT_DLGLOBAL RTLD_GLOBAL
9828 #else
9829 # ifdef DL_GLOBAL
9830 # define LT_DLGLOBAL DL_GLOBAL
9831 # else
9832 # define LT_DLGLOBAL 0
9833 # endif
9834 #endif
9835
9836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9837 find out it does not work in some platform. */
9838 #ifndef LT_DLLAZY_OR_NOW
9839 # ifdef RTLD_LAZY
9840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9841 # else
9842 # ifdef DL_LAZY
9843 # define LT_DLLAZY_OR_NOW DL_LAZY
9844 # else
9845 # ifdef RTLD_NOW
9846 # define LT_DLLAZY_OR_NOW RTLD_NOW
9847 # else
9848 # ifdef DL_NOW
9849 # define LT_DLLAZY_OR_NOW DL_NOW
9850 # else
9851 # define LT_DLLAZY_OR_NOW 0
9852 # endif
9853 # endif
9854 # endif
9855 # endif
9856 #endif
9857
9858 void fnord() { int i=42;}
9859 int main ()
9860 {
9861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9862 int status = $lt_dlunknown;
9863
9864 if (self)
9865 {
9866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9868 /* dlclose (self); */
9869 }
9870 else
9871 puts (dlerror ());
9872
9873 return status;
9874 }
9875 _LT_EOF
9876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9877 (eval $ac_link) 2>&5
9878 ac_status=$?
9879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9880 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9881 (./conftest; exit; ) >&5 2>/dev/null
9882 lt_status=$?
9883 case x$lt_status in
9884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9887 esac
9888 else :
9889 # compilation failed
9890 lt_cv_dlopen_self_static=no
9891 fi
9892 fi
9893 rm -fr conftest*
9894
9895
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9898 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9899 fi
9900
9901 CPPFLAGS="$save_CPPFLAGS"
9902 LDFLAGS="$save_LDFLAGS"
9903 LIBS="$save_LIBS"
9904 ;;
9905 esac
9906
9907 case $lt_cv_dlopen_self in
9908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9909 *) enable_dlopen_self=unknown ;;
9910 esac
9911
9912 case $lt_cv_dlopen_self_static in
9913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9914 *) enable_dlopen_self_static=unknown ;;
9915 esac
9916 fi
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934 striplib=
9935 old_striplib=
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9937 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9938 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9939 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9940 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9942 $as_echo "yes" >&6; }
9943 else
9944 # FIXME - insert some real tests, host_os isn't really good enough
9945 case $host_os in
9946 darwin*)
9947 if test -n "$STRIP" ; then
9948 striplib="$STRIP -x"
9949 old_striplib="$STRIP -S"
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9955 fi
9956 ;;
9957 *)
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9960 ;;
9961 esac
9962 fi
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975 # Report which library types will actually be built
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9977 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9979 $as_echo "$can_build_shared" >&6; }
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9982 $as_echo_n "checking whether to build shared libraries... " >&6; }
9983 test "$can_build_shared" = "no" && enable_shared=no
9984
9985 # On AIX, shared libraries and static libraries use the same namespace, and
9986 # are all built from PIC.
9987 case $host_os in
9988 aix3*)
9989 test "$enable_shared" = yes && enable_static=no
9990 if test -n "$RANLIB"; then
9991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9992 postinstall_cmds='$RANLIB $lib'
9993 fi
9994 ;;
9995
9996 aix[4-9]*)
9997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9998 test "$enable_shared" = yes && enable_static=no
9999 fi
10000 ;;
10001 esac
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10003 $as_echo "$enable_shared" >&6; }
10004
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10006 $as_echo_n "checking whether to build static libraries... " >&6; }
10007 # Make sure either enable_shared or enable_static is yes.
10008 test "$enable_shared" = yes || enable_static=yes
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10010 $as_echo "$enable_static" >&6; }
10011
10012
10013
10014
10015 fi
10016 ac_ext=c
10017 ac_cpp='$CPP $CPPFLAGS'
10018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10021
10022 CC="$lt_save_CC"
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036 ac_config_commands="$ac_config_commands libtool"
10037
10038
10039
10040
10041 # Only expand once:
10042
10043
10044
10045
10046 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10047 if test -n "$ac_tool_prefix"; then
10048 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10049 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 case $PKG_CONFIG in
10056 [\\/]* | ?:[\\/]*)
10057 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10058 ;;
10059 *)
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071 done
10072 done
10073 IFS=$as_save_IFS
10074
10075 ;;
10076 esac
10077 fi
10078 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10079 if test -n "$PKG_CONFIG"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10081 $as_echo "$PKG_CONFIG" >&6; }
10082 else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10085 fi
10086
10087
10088 fi
10089 if test -z "$ac_cv_path_PKG_CONFIG"; then
10090 ac_pt_PKG_CONFIG=$PKG_CONFIG
10091 # Extract the first word of "pkg-config", so it can be a program name with args.
10092 set dummy pkg-config; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 case $ac_pt_PKG_CONFIG in
10099 [\\/]* | ?:[\\/]*)
10100 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10101 ;;
10102 *)
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10110 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114 done
10115 done
10116 IFS=$as_save_IFS
10117
10118 ;;
10119 esac
10120 fi
10121 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10122 if test -n "$ac_pt_PKG_CONFIG"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10124 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10128 fi
10129
10130 if test "x$ac_pt_PKG_CONFIG" = x; then
10131 PKG_CONFIG=""
10132 else
10133 case $cross_compiling:$ac_tool_warned in
10134 yes:)
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10137 ac_tool_warned=yes ;;
10138 esac
10139 PKG_CONFIG=$ac_pt_PKG_CONFIG
10140 fi
10141 else
10142 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10143 fi
10144
10145 fi
10146 if test -n "$PKG_CONFIG"; then
10147 _pkg_min_version=0.22
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10149 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10150 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10156 PKG_CONFIG=""
10157 fi
10158
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10161 $as_echo_n "checking for GNU make... " >&6; }
10162 if test "${_cv_gnu_make_command+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 _cv_gnu_make_command='' ;
10166 for a in "$MAKE" make gmake gnumake ; do
10167 if test -z "$a" ; then continue ; fi ;
10168 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10169 _cv_gnu_make_command=$a ;
10170 break;
10171 fi
10172 done ;
10173
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10176 $as_echo "$_cv_gnu_make_command" >&6; } ;
10177 if test "x$_cv_gnu_make_command" != "x" ; then
10178 ifGNUmake='' ;
10179 else
10180 ifGNUmake='#' ;
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10182 $as_echo "\"Not found\"" >&6; };
10183 fi
10184
10185
10186 if test "x$_cv_gnu_make_command" = x; then :
10187 as_fn_error "You need GNU make" "$LINENO" 5
10188 fi
10189 ac_ext=cpp
10190 ac_cpp='$CXXCPP $CPPFLAGS'
10191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10194 if test -z "$CXX"; then
10195 if test -n "$CCC"; then
10196 CXX=$CCC
10197 else
10198 if test -n "$ac_tool_prefix"; then
10199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10200 do
10201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if test "${ac_cv_prog_CXX+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 if test -n "$CXX"; then
10209 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10210 else
10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10213 do
10214 IFS=$as_save_IFS
10215 test -z "$as_dir" && as_dir=.
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10218 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 break 2
10221 fi
10222 done
10223 done
10224 IFS=$as_save_IFS
10225
10226 fi
10227 fi
10228 CXX=$ac_cv_prog_CXX
10229 if test -n "$CXX"; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10231 $as_echo "$CXX" >&6; }
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 fi
10236
10237
10238 test -n "$CXX" && break
10239 done
10240 fi
10241 if test -z "$CXX"; then
10242 ac_ct_CXX=$CXX
10243 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10244 do
10245 # Extract the first word of "$ac_prog", so it can be a program name with args.
10246 set dummy $ac_prog; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 if test -n "$ac_ct_CXX"; then
10253 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10254 else
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262 ac_cv_prog_ac_ct_CXX="$ac_prog"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 break 2
10265 fi
10266 done
10267 done
10268 IFS=$as_save_IFS
10269
10270 fi
10271 fi
10272 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10273 if test -n "$ac_ct_CXX"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10275 $as_echo "$ac_ct_CXX" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 fi
10280
10281
10282 test -n "$ac_ct_CXX" && break
10283 done
10284
10285 if test "x$ac_ct_CXX" = x; then
10286 CXX="g++"
10287 else
10288 case $cross_compiling:$ac_tool_warned in
10289 yes:)
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10292 ac_tool_warned=yes ;;
10293 esac
10294 CXX=$ac_ct_CXX
10295 fi
10296 fi
10297
10298 fi
10299 fi
10300 # Provide some information about the compiler.
10301 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10302 set X $ac_compile
10303 ac_compiler=$2
10304 for ac_option in --version -v -V -qversion; do
10305 { { ac_try="$ac_compiler $ac_option >&5"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10311 $as_echo "$ac_try_echo"; } >&5
10312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10313 ac_status=$?
10314 if test -s conftest.err; then
10315 sed '10a\
10316 ... rest of stderr output deleted ...
10317 10q' conftest.err >conftest.er1
10318 cat conftest.er1 >&5
10319 fi
10320 rm -f conftest.er1 conftest.err
10321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10322 test $ac_status = 0; }
10323 done
10324
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10326 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10327 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332
10333 int
10334 main ()
10335 {
10336 #ifndef __GNUC__
10337 choke me
10338 #endif
10339
10340 ;
10341 return 0;
10342 }
10343 _ACEOF
10344 if ac_fn_cxx_try_compile "$LINENO"; then :
10345 ac_compiler_gnu=yes
10346 else
10347 ac_compiler_gnu=no
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10351
10352 fi
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10354 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10355 if test $ac_compiler_gnu = yes; then
10356 GXX=yes
10357 else
10358 GXX=
10359 fi
10360 ac_test_CXXFLAGS=${CXXFLAGS+set}
10361 ac_save_CXXFLAGS=$CXXFLAGS
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10363 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10364 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10368 ac_cxx_werror_flag=yes
10369 ac_cv_prog_cxx_g=no
10370 CXXFLAGS="-g"
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10373
10374 int
10375 main ()
10376 {
10377
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 if ac_fn_cxx_try_compile "$LINENO"; then :
10383 ac_cv_prog_cxx_g=yes
10384 else
10385 CXXFLAGS=""
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388
10389 int
10390 main ()
10391 {
10392
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_cxx_try_compile "$LINENO"; then :
10398
10399 else
10400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10401 CXXFLAGS="-g"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404
10405 int
10406 main ()
10407 {
10408
10409 ;
10410 return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_cxx_try_compile "$LINENO"; then :
10414 ac_cv_prog_cxx_g=yes
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 fi
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10422 fi
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10424 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10425 if test "$ac_test_CXXFLAGS" = set; then
10426 CXXFLAGS=$ac_save_CXXFLAGS
10427 elif test $ac_cv_prog_cxx_g = yes; then
10428 if test "$GXX" = yes; then
10429 CXXFLAGS="-g -O2"
10430 else
10431 CXXFLAGS="-g"
10432 fi
10433 else
10434 if test "$GXX" = yes; then
10435 CXXFLAGS="-O2"
10436 else
10437 CXXFLAGS=
10438 fi
10439 fi
10440 ac_ext=c
10441 ac_cpp='$CPP $CPPFLAGS'
10442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445
10446
10447 ac_ext=cpp
10448 ac_cpp='$CXXCPP $CPPFLAGS'
10449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10452 if test -z "$CXX"; then
10453 if test -n "$CCC"; then
10454 CXX=$CCC
10455 else
10456 if test -n "$ac_tool_prefix"; then
10457 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10458 do
10459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462 $as_echo_n "checking for $ac_word... " >&6; }
10463 if test "${ac_cv_prog_CXX+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10465 else
10466 if test -n "$CXX"; then
10467 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10468 else
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10476 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10479 fi
10480 done
10481 done
10482 IFS=$as_save_IFS
10483
10484 fi
10485 fi
10486 CXX=$ac_cv_prog_CXX
10487 if test -n "$CXX"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10489 $as_echo "$CXX" >&6; }
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10493 fi
10494
10495
10496 test -n "$CXX" && break
10497 done
10498 fi
10499 if test -z "$CXX"; then
10500 ac_ct_CXX=$CXX
10501 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10502 do
10503 # Extract the first word of "$ac_prog", so it can be a program name with args.
10504 set dummy $ac_prog; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 if test -n "$ac_ct_CXX"; then
10511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_prog_ac_ct_CXX="$ac_prog"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524 done
10525 done
10526 IFS=$as_save_IFS
10527
10528 fi
10529 fi
10530 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10531 if test -n "$ac_ct_CXX"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10533 $as_echo "$ac_ct_CXX" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 fi
10538
10539
10540 test -n "$ac_ct_CXX" && break
10541 done
10542
10543 if test "x$ac_ct_CXX" = x; then
10544 CXX="g++"
10545 else
10546 case $cross_compiling:$ac_tool_warned in
10547 yes:)
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10550 ac_tool_warned=yes ;;
10551 esac
10552 CXX=$ac_ct_CXX
10553 fi
10554 fi
10555
10556 fi
10557 fi
10558 # Provide some information about the compiler.
10559 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10560 set X $ac_compile
10561 ac_compiler=$2
10562 for ac_option in --version -v -V -qversion; do
10563 { { ac_try="$ac_compiler $ac_option >&5"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567 esac
10568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10569 $as_echo "$ac_try_echo"; } >&5
10570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10571 ac_status=$?
10572 if test -s conftest.err; then
10573 sed '10a\
10574 ... rest of stderr output deleted ...
10575 10q' conftest.err >conftest.er1
10576 cat conftest.er1 >&5
10577 fi
10578 rm -f conftest.er1 conftest.err
10579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10580 test $ac_status = 0; }
10581 done
10582
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10584 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590
10591 int
10592 main ()
10593 {
10594 #ifndef __GNUC__
10595 choke me
10596 #endif
10597
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_cxx_try_compile "$LINENO"; then :
10603 ac_compiler_gnu=yes
10604 else
10605 ac_compiler_gnu=no
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10609
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10612 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10613 if test $ac_compiler_gnu = yes; then
10614 GXX=yes
10615 else
10616 GXX=
10617 fi
10618 ac_test_CXXFLAGS=${CXXFLAGS+set}
10619 ac_save_CXXFLAGS=$CXXFLAGS
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10621 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10622 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10626 ac_cxx_werror_flag=yes
10627 ac_cv_prog_cxx_g=no
10628 CXXFLAGS="-g"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631
10632 int
10633 main ()
10634 {
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_cxx_try_compile "$LINENO"; then :
10641 ac_cv_prog_cxx_g=yes
10642 else
10643 CXXFLAGS=""
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646
10647 int
10648 main ()
10649 {
10650
10651 ;
10652 return 0;
10653 }
10654 _ACEOF
10655 if ac_fn_cxx_try_compile "$LINENO"; then :
10656
10657 else
10658 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10659 CXXFLAGS="-g"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662
10663 int
10664 main ()
10665 {
10666
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_cxx_try_compile "$LINENO"; then :
10672 ac_cv_prog_cxx_g=yes
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 fi
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 fi
10678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10680 fi
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10682 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10683 if test "$ac_test_CXXFLAGS" = set; then
10684 CXXFLAGS=$ac_save_CXXFLAGS
10685 elif test $ac_cv_prog_cxx_g = yes; then
10686 if test "$GXX" = yes; then
10687 CXXFLAGS="-g -O2"
10688 else
10689 CXXFLAGS="-g"
10690 fi
10691 else
10692 if test "$GXX" = yes; then
10693 CXXFLAGS="-O2"
10694 else
10695 CXXFLAGS=
10696 fi
10697 fi
10698 ac_ext=c
10699 ac_cpp='$CPP $CPPFLAGS'
10700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10703
10704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10706 (test "X$CXX" != "Xg++"))) ; then
10707 ac_ext=cpp
10708 ac_cpp='$CXXCPP $CPPFLAGS'
10709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10713 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10714 if test -z "$CXXCPP"; then
10715 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 # Double quotes because CXXCPP needs to be expanded
10719 for CXXCPP in "$CXX -E" "/lib/cpp"
10720 do
10721 ac_preproc_ok=false
10722 for ac_cxx_preproc_warn_flag in '' yes
10723 do
10724 # Use a header file that comes with gcc, so configuring glibc
10725 # with a fresh cross-compiler works.
10726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10727 # <limits.h> exists even on freestanding compilers.
10728 # On the NeXT, cc -E runs the code through the compiler's parser,
10729 # not just through cpp. "Syntax error" is here to catch this case.
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 #ifdef __STDC__
10733 # include <limits.h>
10734 #else
10735 # include <assert.h>
10736 #endif
10737 Syntax error
10738 _ACEOF
10739 if ac_fn_cxx_try_cpp "$LINENO"; then :
10740
10741 else
10742 # Broken: fails on valid input.
10743 continue
10744 fi
10745 rm -f conftest.err conftest.$ac_ext
10746
10747 # OK, works on sane cases. Now check whether nonexistent headers
10748 # can be detected and how.
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751 #include <ac_nonexistent.h>
10752 _ACEOF
10753 if ac_fn_cxx_try_cpp "$LINENO"; then :
10754 # Broken: success on invalid input.
10755 continue
10756 else
10757 # Passes both tests.
10758 ac_preproc_ok=:
10759 break
10760 fi
10761 rm -f conftest.err conftest.$ac_ext
10762
10763 done
10764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10765 rm -f conftest.err conftest.$ac_ext
10766 if $ac_preproc_ok; then :
10767 break
10768 fi
10769
10770 done
10771 ac_cv_prog_CXXCPP=$CXXCPP
10772
10773 fi
10774 CXXCPP=$ac_cv_prog_CXXCPP
10775 else
10776 ac_cv_prog_CXXCPP=$CXXCPP
10777 fi
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10779 $as_echo "$CXXCPP" >&6; }
10780 ac_preproc_ok=false
10781 for ac_cxx_preproc_warn_flag in '' yes
10782 do
10783 # Use a header file that comes with gcc, so configuring glibc
10784 # with a fresh cross-compiler works.
10785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10786 # <limits.h> exists even on freestanding compilers.
10787 # On the NeXT, cc -E runs the code through the compiler's parser,
10788 # not just through cpp. "Syntax error" is here to catch this case.
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 #ifdef __STDC__
10792 # include <limits.h>
10793 #else
10794 # include <assert.h>
10795 #endif
10796 Syntax error
10797 _ACEOF
10798 if ac_fn_cxx_try_cpp "$LINENO"; then :
10799
10800 else
10801 # Broken: fails on valid input.
10802 continue
10803 fi
10804 rm -f conftest.err conftest.$ac_ext
10805
10806 # OK, works on sane cases. Now check whether nonexistent headers
10807 # can be detected and how.
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810 #include <ac_nonexistent.h>
10811 _ACEOF
10812 if ac_fn_cxx_try_cpp "$LINENO"; then :
10813 # Broken: success on invalid input.
10814 continue
10815 else
10816 # Passes both tests.
10817 ac_preproc_ok=:
10818 break
10819 fi
10820 rm -f conftest.err conftest.$ac_ext
10821
10822 done
10823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10824 rm -f conftest.err conftest.$ac_ext
10825 if $ac_preproc_ok; then :
10826
10827 else
10828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10830 _lt_caught_CXX_error=yes; }
10831 fi
10832
10833 ac_ext=c
10834 ac_cpp='$CPP $CPPFLAGS'
10835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10838
10839 else
10840 _lt_caught_CXX_error=yes
10841 fi
10842
10843
10844
10845
10846 ac_ext=cpp
10847 ac_cpp='$CXXCPP $CPPFLAGS'
10848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10851
10852 archive_cmds_need_lc_CXX=no
10853 allow_undefined_flag_CXX=
10854 always_export_symbols_CXX=no
10855 archive_expsym_cmds_CXX=
10856 compiler_needs_object_CXX=no
10857 export_dynamic_flag_spec_CXX=
10858 hardcode_direct_CXX=no
10859 hardcode_direct_absolute_CXX=no
10860 hardcode_libdir_flag_spec_CXX=
10861 hardcode_libdir_flag_spec_ld_CXX=
10862 hardcode_libdir_separator_CXX=
10863 hardcode_minus_L_CXX=no
10864 hardcode_shlibpath_var_CXX=unsupported
10865 hardcode_automatic_CXX=no
10866 inherit_rpath_CXX=no
10867 module_cmds_CXX=
10868 module_expsym_cmds_CXX=
10869 link_all_deplibs_CXX=unknown
10870 old_archive_cmds_CXX=$old_archive_cmds
10871 no_undefined_flag_CXX=
10872 whole_archive_flag_spec_CXX=
10873 enable_shared_with_static_runtimes_CXX=no
10874
10875 # Source file extension for C++ test sources.
10876 ac_ext=cpp
10877
10878 # Object file extension for compiled C++ test sources.
10879 objext=o
10880 objext_CXX=$objext
10881
10882 # No sense in running all these tests if we already determined that
10883 # the CXX compiler isn't working. Some variables (like enable_shared)
10884 # are currently assumed to apply to all compilers on this platform,
10885 # and will be corrupted by setting them based on a non-working compiler.
10886 if test "$_lt_caught_CXX_error" != yes; then
10887 # Code to be used in simple compile tests
10888 lt_simple_compile_test_code="int some_variable = 0;"
10889
10890 # Code to be used in simple link tests
10891 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10892
10893 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10894
10895
10896
10897
10898
10899
10900 # If no C compiler was specified, use CC.
10901 LTCC=${LTCC-"$CC"}
10902
10903 # If no C compiler flags were specified, use CFLAGS.
10904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10905
10906 # Allow CC to be a program name with arguments.
10907 compiler=$CC
10908
10909
10910 # save warnings/boilerplate of simple test code
10911 ac_outfile=conftest.$ac_objext
10912 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10913 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10914 _lt_compiler_boilerplate=`cat conftest.err`
10915 $RM conftest*
10916
10917 ac_outfile=conftest.$ac_objext
10918 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10919 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10920 _lt_linker_boilerplate=`cat conftest.err`
10921 $RM -r conftest*
10922
10923
10924 # Allow CC to be a program name with arguments.
10925 lt_save_CC=$CC
10926 lt_save_LD=$LD
10927 lt_save_GCC=$GCC
10928 GCC=$GXX
10929 lt_save_with_gnu_ld=$with_gnu_ld
10930 lt_save_path_LD=$lt_cv_path_LD
10931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10933 else
10934 $as_unset lt_cv_prog_gnu_ld
10935 fi
10936 if test -n "${lt_cv_path_LDCXX+set}"; then
10937 lt_cv_path_LD=$lt_cv_path_LDCXX
10938 else
10939 $as_unset lt_cv_path_LD
10940 fi
10941 test -z "${LDCXX+set}" || LD=$LDCXX
10942 CC=${CXX-"c++"}
10943 compiler=$CC
10944 compiler_CXX=$CC
10945 for cc_temp in $compiler""; do
10946 case $cc_temp in
10947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10949 \-*) ;;
10950 *) break;;
10951 esac
10952 done
10953 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10954
10955
10956 if test -n "$compiler"; then
10957 # We don't want -fno-exception when compiling C++ code, so set the
10958 # no_builtin_flag separately
10959 if test "$GXX" = yes; then
10960 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10961 else
10962 lt_prog_compiler_no_builtin_flag_CXX=
10963 fi
10964
10965 if test "$GXX" = yes; then
10966 # Set up default GNU C++ configuration
10967
10968
10969
10970 # Check whether --with-gnu-ld was given.
10971 if test "${with_gnu_ld+set}" = set; then :
10972 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10973 else
10974 with_gnu_ld=no
10975 fi
10976
10977 ac_prog=ld
10978 if test "$GCC" = yes; then
10979 # Check if gcc -print-prog-name=ld gives a path.
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10981 $as_echo_n "checking for ld used by $CC... " >&6; }
10982 case $host in
10983 *-*-mingw*)
10984 # gcc leaves a trailing carriage return which upsets mingw
10985 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10986 *)
10987 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10988 esac
10989 case $ac_prog in
10990 # Accept absolute paths.
10991 [\\/]* | ?:[\\/]*)
10992 re_direlt='/[^/][^/]*/\.\./'
10993 # Canonicalize the pathname of ld
10994 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10995 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10996 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10997 done
10998 test -z "$LD" && LD="$ac_prog"
10999 ;;
11000 "")
11001 # If it fails, then pretend we aren't using GCC.
11002 ac_prog=ld
11003 ;;
11004 *)
11005 # If it is relative, then search for the first ld in PATH.
11006 with_gnu_ld=unknown
11007 ;;
11008 esac
11009 elif test "$with_gnu_ld" = yes; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11011 $as_echo_n "checking for GNU ld... " >&6; }
11012 else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11014 $as_echo_n "checking for non-GNU ld... " >&6; }
11015 fi
11016 if test "${lt_cv_path_LD+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 if test -z "$LD"; then
11020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11021 for ac_dir in $PATH; do
11022 IFS="$lt_save_ifs"
11023 test -z "$ac_dir" && ac_dir=.
11024 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11025 lt_cv_path_LD="$ac_dir/$ac_prog"
11026 # Check to see if the program is GNU ld. I'd rather use --version,
11027 # but apparently some variants of GNU ld only accept -v.
11028 # Break only if it was the GNU/non-GNU ld that we prefer.
11029 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11030 *GNU* | *'with BFD'*)
11031 test "$with_gnu_ld" != no && break
11032 ;;
11033 *)
11034 test "$with_gnu_ld" != yes && break
11035 ;;
11036 esac
11037 fi
11038 done
11039 IFS="$lt_save_ifs"
11040 else
11041 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11042 fi
11043 fi
11044
11045 LD="$lt_cv_path_LD"
11046 if test -n "$LD"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11048 $as_echo "$LD" >&6; }
11049 else
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11052 fi
11053 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11055 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11056 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11060 case `$LD -v 2>&1 </dev/null` in
11061 *GNU* | *'with BFD'*)
11062 lt_cv_prog_gnu_ld=yes
11063 ;;
11064 *)
11065 lt_cv_prog_gnu_ld=no
11066 ;;
11067 esac
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11070 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11071 with_gnu_ld=$lt_cv_prog_gnu_ld
11072
11073
11074
11075
11076
11077
11078
11079 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11080 # archiving commands below assume that GNU ld is being used.
11081 if test "$with_gnu_ld" = yes; then
11082 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083 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'
11084
11085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11087
11088 # If archive_cmds runs LD, not CC, wlarc should be empty
11089 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11090 # investigate it a little bit more. (MM)
11091 wlarc='${wl}'
11092
11093 # ancient GNU ld didn't support --whole-archive et. al.
11094 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11095 $GREP 'no-whole-archive' > /dev/null; then
11096 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11097 else
11098 whole_archive_flag_spec_CXX=
11099 fi
11100 else
11101 with_gnu_ld=no
11102 wlarc=
11103
11104 # A generic and very simple default shared library creation
11105 # command for GNU C++ for the case where it uses the native
11106 # linker, instead of GNU ld. If possible, this setting should
11107 # overridden to take advantage of the native linker features on
11108 # the platform it is being used on.
11109 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11110 fi
11111
11112 # Commands to make compiler produce verbose output that lists
11113 # what "hidden" libraries, object files and flags are used when
11114 # linking a shared library.
11115 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11116
11117 else
11118 GXX=no
11119 with_gnu_ld=no
11120 wlarc=
11121 fi
11122
11123 # PORTME: fill in a description of your system's C++ link characteristics
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11125 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11126 ld_shlibs_CXX=yes
11127 case $host_os in
11128 aix3*)
11129 # FIXME: insert proper C++ library support
11130 ld_shlibs_CXX=no
11131 ;;
11132 aix[4-9]*)
11133 if test "$host_cpu" = ia64; then
11134 # On IA64, the linker does run time linking by default, so we don't
11135 # have to do anything special.
11136 aix_use_runtimelinking=no
11137 exp_sym_flag='-Bexport'
11138 no_entry_flag=""
11139 else
11140 aix_use_runtimelinking=no
11141
11142 # Test if we are trying to use run time linking or normal
11143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11144 # need to do runtime linking.
11145 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11146 for ld_flag in $LDFLAGS; do
11147 case $ld_flag in
11148 *-brtl*)
11149 aix_use_runtimelinking=yes
11150 break
11151 ;;
11152 esac
11153 done
11154 ;;
11155 esac
11156
11157 exp_sym_flag='-bexport'
11158 no_entry_flag='-bnoentry'
11159 fi
11160
11161 # When large executables or shared objects are built, AIX ld can
11162 # have problems creating the table of contents. If linking a library
11163 # or program results in "error TOC overflow" add -mminimal-toc to
11164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11166
11167 archive_cmds_CXX=''
11168 hardcode_direct_CXX=yes
11169 hardcode_direct_absolute_CXX=yes
11170 hardcode_libdir_separator_CXX=':'
11171 link_all_deplibs_CXX=yes
11172 file_list_spec_CXX='${wl}-f,'
11173
11174 if test "$GXX" = yes; then
11175 case $host_os in aix4.[012]|aix4.[012].*)
11176 # We only want to do this on AIX 4.2 and lower, the check
11177 # below for broken collect2 doesn't work under 4.3+
11178 collect2name=`${CC} -print-prog-name=collect2`
11179 if test -f "$collect2name" &&
11180 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11181 then
11182 # We have reworked collect2
11183 :
11184 else
11185 # We have old collect2
11186 hardcode_direct_CXX=unsupported
11187 # It fails to find uninstalled libraries when the uninstalled
11188 # path is not listed in the libpath. Setting hardcode_minus_L
11189 # to unsupported forces relinking
11190 hardcode_minus_L_CXX=yes
11191 hardcode_libdir_flag_spec_CXX='-L$libdir'
11192 hardcode_libdir_separator_CXX=
11193 fi
11194 esac
11195 shared_flag='-shared'
11196 if test "$aix_use_runtimelinking" = yes; then
11197 shared_flag="$shared_flag "'${wl}-G'
11198 fi
11199 else
11200 # not using gcc
11201 if test "$host_cpu" = ia64; then
11202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11203 # chokes on -Wl,-G. The following line is correct:
11204 shared_flag='-G'
11205 else
11206 if test "$aix_use_runtimelinking" = yes; then
11207 shared_flag='${wl}-G'
11208 else
11209 shared_flag='${wl}-bM:SRE'
11210 fi
11211 fi
11212 fi
11213
11214 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11215 # It seems that -bexpall does not export symbols beginning with
11216 # underscore (_), so it is better to generate a list of symbols to
11217 # export.
11218 always_export_symbols_CXX=yes
11219 if test "$aix_use_runtimelinking" = yes; then
11220 # Warning - without using the other runtime loading flags (-brtl),
11221 # -berok will link without error, but may produce a broken library.
11222 allow_undefined_flag_CXX='-berok'
11223 # Determine the default libpath from the value encoded in an empty
11224 # executable.
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227
11228 int
11229 main ()
11230 {
11231
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_cxx_try_link "$LINENO"; then :
11237
11238 lt_aix_libpath_sed='
11239 /Import File Strings/,/^$/ {
11240 /^0/ {
11241 s/^0 *\(.*\)$/\1/
11242 p
11243 }
11244 }'
11245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11246 # Check for a 64-bit object if we didn't find anything.
11247 if test -z "$aix_libpath"; then
11248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11249 fi
11250 fi
11251 rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11254
11255 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11256
11257 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"
11258 else
11259 if test "$host_cpu" = ia64; then
11260 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11261 allow_undefined_flag_CXX="-z nodefs"
11262 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"
11263 else
11264 # Determine the default libpath from the value encoded in an
11265 # empty executable.
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 int
11270 main ()
11271 {
11272
11273 ;
11274 return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_cxx_try_link "$LINENO"; then :
11278
11279 lt_aix_libpath_sed='
11280 /Import File Strings/,/^$/ {
11281 /^0/ {
11282 s/^0 *\(.*\)$/\1/
11283 p
11284 }
11285 }'
11286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11287 # Check for a 64-bit object if we didn't find anything.
11288 if test -z "$aix_libpath"; then
11289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11290 fi
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11295
11296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11297 # Warning - without using the other run time loading flags,
11298 # -berok will link without error, but may produce a broken library.
11299 no_undefined_flag_CXX=' ${wl}-bernotok'
11300 allow_undefined_flag_CXX=' ${wl}-berok'
11301 # Exported symbols can be pulled into shared objects from archives
11302 whole_archive_flag_spec_CXX='$convenience'
11303 archive_cmds_need_lc_CXX=yes
11304 # This is similar to how AIX traditionally builds its shared
11305 # libraries.
11306 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'
11307 fi
11308 fi
11309 ;;
11310
11311 beos*)
11312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11313 allow_undefined_flag_CXX=unsupported
11314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11315 # support --undefined. This deserves some investigation. FIXME
11316 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317 else
11318 ld_shlibs_CXX=no
11319 fi
11320 ;;
11321
11322 chorus*)
11323 case $cc_basename in
11324 *)
11325 # FIXME: insert proper C++ library support
11326 ld_shlibs_CXX=no
11327 ;;
11328 esac
11329 ;;
11330
11331 cygwin* | mingw* | pw32* | cegcc*)
11332 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11333 # as there is no search path for DLLs.
11334 hardcode_libdir_flag_spec_CXX='-L$libdir'
11335 allow_undefined_flag_CXX=unsupported
11336 always_export_symbols_CXX=no
11337 enable_shared_with_static_runtimes_CXX=yes
11338
11339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11340 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'
11341 # If the export-symbols file already is a .def file (1st line
11342 # is EXPORTS), use it as is; otherwise, prepend...
11343 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11344 cp $export_symbols $output_objdir/$soname.def;
11345 else
11346 echo EXPORTS > $output_objdir/$soname.def;
11347 cat $export_symbols >> $output_objdir/$soname.def;
11348 fi~
11349 $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'
11350 else
11351 ld_shlibs_CXX=no
11352 fi
11353 ;;
11354 darwin* | rhapsody*)
11355
11356
11357 archive_cmds_need_lc_CXX=no
11358 hardcode_direct_CXX=no
11359 hardcode_automatic_CXX=yes
11360 hardcode_shlibpath_var_CXX=unsupported
11361 whole_archive_flag_spec_CXX=''
11362 link_all_deplibs_CXX=yes
11363 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11364 case $cc_basename in
11365 ifort*) _lt_dar_can_shared=yes ;;
11366 *) _lt_dar_can_shared=$GCC ;;
11367 esac
11368 if test "$_lt_dar_can_shared" = "yes"; then
11369 output_verbose_link_cmd=echo
11370 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}"
11371 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11372 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}"
11373 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}"
11374 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11375 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}"
11376 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}"
11377 fi
11378
11379 else
11380 ld_shlibs_CXX=no
11381 fi
11382
11383 ;;
11384
11385 dgux*)
11386 case $cc_basename in
11387 ec++*)
11388 # FIXME: insert proper C++ library support
11389 ld_shlibs_CXX=no
11390 ;;
11391 ghcx*)
11392 # Green Hills C++ Compiler
11393 # FIXME: insert proper C++ library support
11394 ld_shlibs_CXX=no
11395 ;;
11396 *)
11397 # FIXME: insert proper C++ library support
11398 ld_shlibs_CXX=no
11399 ;;
11400 esac
11401 ;;
11402
11403 freebsd[12]*)
11404 # C++ shared libraries reported to be fairly broken before
11405 # switch to ELF
11406 ld_shlibs_CXX=no
11407 ;;
11408
11409 freebsd-elf*)
11410 archive_cmds_need_lc_CXX=no
11411 ;;
11412
11413 freebsd* | dragonfly*)
11414 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11415 # conventions
11416 ld_shlibs_CXX=yes
11417 ;;
11418
11419 gnu*)
11420 ;;
11421
11422 hpux9*)
11423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11424 hardcode_libdir_separator_CXX=:
11425 export_dynamic_flag_spec_CXX='${wl}-E'
11426 hardcode_direct_CXX=yes
11427 hardcode_minus_L_CXX=yes # Not in the search PATH,
11428 # but as the default
11429 # location of the library.
11430
11431 case $cc_basename in
11432 CC*)
11433 # FIXME: insert proper C++ library support
11434 ld_shlibs_CXX=no
11435 ;;
11436 aCC*)
11437 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'
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11441 #
11442 # There doesn't appear to be a way to prevent this compiler from
11443 # explicitly linking system object files so we need to strip them
11444 # from the output so that they don't get included in the library
11445 # dependencies.
11446 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'
11447 ;;
11448 *)
11449 if test "$GXX" = yes; then
11450 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'
11451 else
11452 # FIXME: insert proper C++ library support
11453 ld_shlibs_CXX=no
11454 fi
11455 ;;
11456 esac
11457 ;;
11458
11459 hpux10*|hpux11*)
11460 if test $with_gnu_ld = no; then
11461 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11462 hardcode_libdir_separator_CXX=:
11463
11464 case $host_cpu in
11465 hppa*64*|ia64*)
11466 ;;
11467 *)
11468 export_dynamic_flag_spec_CXX='${wl}-E'
11469 ;;
11470 esac
11471 fi
11472 case $host_cpu in
11473 hppa*64*|ia64*)
11474 hardcode_direct_CXX=no
11475 hardcode_shlibpath_var_CXX=no
11476 ;;
11477 *)
11478 hardcode_direct_CXX=yes
11479 hardcode_direct_absolute_CXX=yes
11480 hardcode_minus_L_CXX=yes # Not in the search PATH,
11481 # but as the default
11482 # location of the library.
11483 ;;
11484 esac
11485
11486 case $cc_basename in
11487 CC*)
11488 # FIXME: insert proper C++ library support
11489 ld_shlibs_CXX=no
11490 ;;
11491 aCC*)
11492 case $host_cpu in
11493 hppa*64*)
11494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11495 ;;
11496 ia64*)
11497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11498 ;;
11499 *)
11500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11501 ;;
11502 esac
11503 # Commands to make compiler produce verbose output that lists
11504 # what "hidden" libraries, object files and flags are used when
11505 # linking a shared library.
11506 #
11507 # There doesn't appear to be a way to prevent this compiler from
11508 # explicitly linking system object files so we need to strip them
11509 # from the output so that they don't get included in the library
11510 # dependencies.
11511 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'
11512 ;;
11513 *)
11514 if test "$GXX" = yes; then
11515 if test $with_gnu_ld = no; then
11516 case $host_cpu in
11517 hppa*64*)
11518 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519 ;;
11520 ia64*)
11521 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522 ;;
11523 *)
11524 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'
11525 ;;
11526 esac
11527 fi
11528 else
11529 # FIXME: insert proper C++ library support
11530 ld_shlibs_CXX=no
11531 fi
11532 ;;
11533 esac
11534 ;;
11535
11536 interix[3-9]*)
11537 hardcode_direct_CXX=no
11538 hardcode_shlibpath_var_CXX=no
11539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11540 export_dynamic_flag_spec_CXX='${wl}-E'
11541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11542 # Instead, shared libraries are loaded at an image base (0x10000000 by
11543 # default) and relocated if they conflict, which is a slow very memory
11544 # consuming and fragmenting process. To avoid this, we pick a random,
11545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11547 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'
11548 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'
11549 ;;
11550 irix5* | irix6*)
11551 case $cc_basename in
11552 CC*)
11553 # SGI C++
11554 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'
11555
11556 # Archives containing C++ object files must be created using
11557 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11558 # necessary to make sure instantiated templates are included
11559 # in the archive.
11560 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11561 ;;
11562 *)
11563 if test "$GXX" = yes; then
11564 if test "$with_gnu_ld" = no; then
11565 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'
11566 else
11567 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'
11568 fi
11569 fi
11570 link_all_deplibs_CXX=yes
11571 ;;
11572 esac
11573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11574 hardcode_libdir_separator_CXX=:
11575 inherit_rpath_CXX=yes
11576 ;;
11577
11578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11579 case $cc_basename in
11580 KCC*)
11581 # Kuck and Associates, Inc. (KAI) C++ Compiler
11582
11583 # KCC will only create a shared library if the output file
11584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11585 # to its proper name (with version) after linking.
11586 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'
11587 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'
11588 # Commands to make compiler produce verbose output that lists
11589 # what "hidden" libraries, object files and flags are used when
11590 # linking a shared library.
11591 #
11592 # There doesn't appear to be a way to prevent this compiler from
11593 # explicitly linking system object files so we need to strip them
11594 # from the output so that they don't get included in the library
11595 # dependencies.
11596 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'
11597
11598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11600
11601 # Archives containing C++ object files must be created using
11602 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11603 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11604 ;;
11605 icpc* | ecpc* )
11606 # Intel C++
11607 with_gnu_ld=yes
11608 # version 8.0 and above of icpc choke on multiply defined symbols
11609 # if we add $predep_objects and $postdep_objects, however 7.1 and
11610 # earlier do not add the objects themselves.
11611 case `$CC -V 2>&1` in
11612 *"Version 7."*)
11613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614 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'
11615 ;;
11616 *) # Version 8.0 or newer
11617 tmp_idyn=
11618 case $host_cpu in
11619 ia64*) tmp_idyn=' -i_dynamic';;
11620 esac
11621 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622 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'
11623 ;;
11624 esac
11625 archive_cmds_need_lc_CXX=no
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11628 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11629 ;;
11630 pgCC* | pgcpp*)
11631 # Portland Group C++ compiler
11632 case `$CC -V` in
11633 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11634 prelink_cmds_CXX='tpldir=Template.dir~
11635 rm -rf $tpldir~
11636 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11637 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11638 old_archive_cmds_CXX='tpldir=Template.dir~
11639 rm -rf $tpldir~
11640 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11641 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11642 $RANLIB $oldlib'
11643 archive_cmds_CXX='tpldir=Template.dir~
11644 rm -rf $tpldir~
11645 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11646 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11647 archive_expsym_cmds_CXX='tpldir=Template.dir~
11648 rm -rf $tpldir~
11649 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11650 $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'
11651 ;;
11652 *) # Version 6 will use weak symbols
11653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11654 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'
11655 ;;
11656 esac
11657
11658 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11660 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'
11661 ;;
11662 cxx*)
11663 # Compaq C++
11664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11665 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'
11666
11667 runpath_var=LD_RUN_PATH
11668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11669 hardcode_libdir_separator_CXX=:
11670
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11674 #
11675 # There doesn't appear to be a way to prevent this compiler from
11676 # explicitly linking system object files so we need to strip them
11677 # from the output so that they don't get included in the library
11678 # dependencies.
11679 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'
11680 ;;
11681 xl*)
11682 # IBM XL 8.0 on PPC, with GNU ld
11683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11685 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11686 if test "x$supports_anon_versioning" = xyes; then
11687 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11689 echo "local: *; };" >> $output_objdir/$libname.ver~
11690 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11691 fi
11692 ;;
11693 *)
11694 case `$CC -V 2>&1 | sed 5q` in
11695 *Sun\ C*)
11696 # Sun C++ 5.9
11697 no_undefined_flag_CXX=' -zdefs'
11698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699 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'
11700 hardcode_libdir_flag_spec_CXX='-R$libdir'
11701 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'
11702 compiler_needs_object_CXX=yes
11703
11704 # Not sure whether something based on
11705 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11706 # would be better.
11707 output_verbose_link_cmd='echo'
11708
11709 # Archives containing C++ object files must be created using
11710 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11711 # necessary to make sure instantiated templates are included
11712 # in the archive.
11713 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11714 ;;
11715 esac
11716 ;;
11717 esac
11718 ;;
11719
11720 lynxos*)
11721 # FIXME: insert proper C++ library support
11722 ld_shlibs_CXX=no
11723 ;;
11724
11725 m88k*)
11726 # FIXME: insert proper C++ library support
11727 ld_shlibs_CXX=no
11728 ;;
11729
11730 mvs*)
11731 case $cc_basename in
11732 cxx*)
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 ;;
11736 *)
11737 # FIXME: insert proper C++ library support
11738 ld_shlibs_CXX=no
11739 ;;
11740 esac
11741 ;;
11742
11743 netbsd*)
11744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11745 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11746 wlarc=
11747 hardcode_libdir_flag_spec_CXX='-R$libdir'
11748 hardcode_direct_CXX=yes
11749 hardcode_shlibpath_var_CXX=no
11750 fi
11751 # Workaround some broken pre-1.5 toolchains
11752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11753 ;;
11754
11755 *nto* | *qnx*)
11756 ld_shlibs_CXX=yes
11757 ;;
11758
11759 openbsd2*)
11760 # C++ shared libraries are fairly broken
11761 ld_shlibs_CXX=no
11762 ;;
11763
11764 openbsd*)
11765 if test -f /usr/libexec/ld.so; then
11766 hardcode_direct_CXX=yes
11767 hardcode_shlibpath_var_CXX=no
11768 hardcode_direct_absolute_CXX=yes
11769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11772 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11773 export_dynamic_flag_spec_CXX='${wl}-E'
11774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11775 fi
11776 output_verbose_link_cmd=echo
11777 else
11778 ld_shlibs_CXX=no
11779 fi
11780 ;;
11781
11782 osf3* | osf4* | osf5*)
11783 case $cc_basename in
11784 KCC*)
11785 # Kuck and Associates, Inc. (KAI) C++ Compiler
11786
11787 # KCC will only create a shared library if the output file
11788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789 # to its proper name (with version) after linking.
11790 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'
11791
11792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11793 hardcode_libdir_separator_CXX=:
11794
11795 # Archives containing C++ object files must be created using
11796 # the KAI C++ compiler.
11797 case $host in
11798 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11799 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11800 esac
11801 ;;
11802 RCC*)
11803 # Rational C++ 2.4.1
11804 # FIXME: insert proper C++ library support
11805 ld_shlibs_CXX=no
11806 ;;
11807 cxx*)
11808 case $host in
11809 osf3*)
11810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11811 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'
11812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11813 ;;
11814 *)
11815 allow_undefined_flag_CXX=' -expect_unresolved \*'
11816 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'
11817 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11818 echo "-hidden">> $lib.exp~
11819 $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~
11820 $RM $lib.exp'
11821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11822 ;;
11823 esac
11824
11825 hardcode_libdir_separator_CXX=:
11826
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11830 #
11831 # There doesn't appear to be a way to prevent this compiler from
11832 # explicitly linking system object files so we need to strip them
11833 # from the output so that they don't get included in the library
11834 # dependencies.
11835 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'
11836 ;;
11837 *)
11838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11840 case $host in
11841 osf3*)
11842 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'
11843 ;;
11844 *)
11845 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'
11846 ;;
11847 esac
11848
11849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11850 hardcode_libdir_separator_CXX=:
11851
11852 # Commands to make compiler produce verbose output that lists
11853 # what "hidden" libraries, object files and flags are used when
11854 # linking a shared library.
11855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11856
11857 else
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 fi
11861 ;;
11862 esac
11863 ;;
11864
11865 psos*)
11866 # FIXME: insert proper C++ library support
11867 ld_shlibs_CXX=no
11868 ;;
11869
11870 sunos4*)
11871 case $cc_basename in
11872 CC*)
11873 # Sun C++ 4.x
11874 # FIXME: insert proper C++ library support
11875 ld_shlibs_CXX=no
11876 ;;
11877 lcc*)
11878 # Lucid
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 ;;
11882 *)
11883 # FIXME: insert proper C++ library support
11884 ld_shlibs_CXX=no
11885 ;;
11886 esac
11887 ;;
11888
11889 solaris*)
11890 case $cc_basename in
11891 CC*)
11892 # Sun C++ 4.2, 5.x and Centerline C++
11893 archive_cmds_need_lc_CXX=yes
11894 no_undefined_flag_CXX=' -zdefs'
11895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11896 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11897 $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'
11898
11899 hardcode_libdir_flag_spec_CXX='-R$libdir'
11900 hardcode_shlibpath_var_CXX=no
11901 case $host_os in
11902 solaris2.[0-5] | solaris2.[0-5].*) ;;
11903 *)
11904 # The compiler driver will combine and reorder linker options,
11905 # but understands `-z linker_flag'.
11906 # Supported since Solaris 2.6 (maybe 2.5.1?)
11907 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11908 ;;
11909 esac
11910 link_all_deplibs_CXX=yes
11911
11912 output_verbose_link_cmd='echo'
11913
11914 # Archives containing C++ object files must be created using
11915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11916 # necessary to make sure instantiated templates are included
11917 # in the archive.
11918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11919 ;;
11920 gcx*)
11921 # Green Hills C++ Compiler
11922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11923
11924 # The C++ compiler must be used to create the archive.
11925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11926 ;;
11927 *)
11928 # GNU C++ compiler with Solaris linker
11929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11931 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11932 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11933 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11934 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11935
11936 # Commands to make compiler produce verbose output that lists
11937 # what "hidden" libraries, object files and flags are used when
11938 # linking a shared library.
11939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11940 else
11941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11942 # platform.
11943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11944 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11946
11947 # Commands to make compiler produce verbose output that lists
11948 # what "hidden" libraries, object files and flags are used when
11949 # linking a shared library.
11950 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11951 fi
11952
11953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11954 case $host_os in
11955 solaris2.[0-5] | solaris2.[0-5].*) ;;
11956 *)
11957 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11958 ;;
11959 esac
11960 fi
11961 ;;
11962 esac
11963 ;;
11964
11965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11966 no_undefined_flag_CXX='${wl}-z,text'
11967 archive_cmds_need_lc_CXX=no
11968 hardcode_shlibpath_var_CXX=no
11969 runpath_var='LD_RUN_PATH'
11970
11971 case $cc_basename in
11972 CC*)
11973 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11975 ;;
11976 *)
11977 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11978 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11979 ;;
11980 esac
11981 ;;
11982
11983 sysv5* | sco3.2v5* | sco5v6*)
11984 # Note: We can NOT use -z defs as we might desire, because we do not
11985 # link with -lc, and that would cause any symbols used from libc to
11986 # always be unresolved, which means just about no library would
11987 # ever link correctly. If we're not using GNU ld we use -z text
11988 # though, which does catch some bad symbols but isn't as heavy-handed
11989 # as -z defs.
11990 no_undefined_flag_CXX='${wl}-z,text'
11991 allow_undefined_flag_CXX='${wl}-z,nodefs'
11992 archive_cmds_need_lc_CXX=no
11993 hardcode_shlibpath_var_CXX=no
11994 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
11995 hardcode_libdir_separator_CXX=':'
11996 link_all_deplibs_CXX=yes
11997 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11998 runpath_var='LD_RUN_PATH'
11999
12000 case $cc_basename in
12001 CC*)
12002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12004 ;;
12005 *)
12006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12008 ;;
12009 esac
12010 ;;
12011
12012 tandem*)
12013 case $cc_basename in
12014 NCC*)
12015 # NonStop-UX NCC 3.20
12016 # FIXME: insert proper C++ library support
12017 ld_shlibs_CXX=no
12018 ;;
12019 *)
12020 # FIXME: insert proper C++ library support
12021 ld_shlibs_CXX=no
12022 ;;
12023 esac
12024 ;;
12025
12026 vxworks*)
12027 # FIXME: insert proper C++ library support
12028 ld_shlibs_CXX=no
12029 ;;
12030
12031 *)
12032 # FIXME: insert proper C++ library support
12033 ld_shlibs_CXX=no
12034 ;;
12035 esac
12036
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12038 $as_echo "$ld_shlibs_CXX" >&6; }
12039 test "$ld_shlibs_CXX" = no && can_build_shared=no
12040
12041 GCC_CXX="$GXX"
12042 LD_CXX="$LD"
12043
12044 ## CAVEAT EMPTOR:
12045 ## There is no encapsulation within the following macros, do not change
12046 ## the running order or otherwise move them around unless you know exactly
12047 ## what you are doing...
12048 # Dependencies to place before and after the object being linked:
12049 predep_objects_CXX=
12050 postdep_objects_CXX=
12051 predeps_CXX=
12052 postdeps_CXX=
12053 compiler_lib_search_path_CXX=
12054
12055 cat > conftest.$ac_ext <<_LT_EOF
12056 class Foo
12057 {
12058 public:
12059 Foo (void) { a = 0; }
12060 private:
12061 int a;
12062 };
12063 _LT_EOF
12064
12065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12066 (eval $ac_compile) 2>&5
12067 ac_status=$?
12068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12069 test $ac_status = 0; }; then
12070 # Parse the compiler output and extract the necessary
12071 # objects, libraries and library flags.
12072
12073 # Sentinel used to keep track of whether or not we are before
12074 # the conftest object file.
12075 pre_test_object_deps_done=no
12076
12077 for p in `eval "$output_verbose_link_cmd"`; do
12078 case $p in
12079
12080 -L* | -R* | -l*)
12081 # Some compilers place space between "-{L,R}" and the path.
12082 # Remove the space.
12083 if test $p = "-L" ||
12084 test $p = "-R"; then
12085 prev=$p
12086 continue
12087 else
12088 prev=
12089 fi
12090
12091 if test "$pre_test_object_deps_done" = no; then
12092 case $p in
12093 -L* | -R*)
12094 # Internal compiler library paths should come after those
12095 # provided the user. The postdeps already come after the
12096 # user supplied libs so there is no need to process them.
12097 if test -z "$compiler_lib_search_path_CXX"; then
12098 compiler_lib_search_path_CXX="${prev}${p}"
12099 else
12100 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12101 fi
12102 ;;
12103 # The "-l" case would never come before the object being
12104 # linked, so don't bother handling this case.
12105 esac
12106 else
12107 if test -z "$postdeps_CXX"; then
12108 postdeps_CXX="${prev}${p}"
12109 else
12110 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12111 fi
12112 fi
12113 ;;
12114
12115 *.$objext)
12116 # This assumes that the test object file only shows up
12117 # once in the compiler output.
12118 if test "$p" = "conftest.$objext"; then
12119 pre_test_object_deps_done=yes
12120 continue
12121 fi
12122
12123 if test "$pre_test_object_deps_done" = no; then
12124 if test -z "$predep_objects_CXX"; then
12125 predep_objects_CXX="$p"
12126 else
12127 predep_objects_CXX="$predep_objects_CXX $p"
12128 fi
12129 else
12130 if test -z "$postdep_objects_CXX"; then
12131 postdep_objects_CXX="$p"
12132 else
12133 postdep_objects_CXX="$postdep_objects_CXX $p"
12134 fi
12135 fi
12136 ;;
12137
12138 *) ;; # Ignore the rest.
12139
12140 esac
12141 done
12142
12143 # Clean up.
12144 rm -f a.out a.exe
12145 else
12146 echo "libtool.m4: error: problem compiling CXX test program"
12147 fi
12148
12149 $RM -f confest.$objext
12150
12151 # PORTME: override above test on systems where it is broken
12152 case $host_os in
12153 interix[3-9]*)
12154 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12155 # hack all around it, let's just trust "g++" to DTRT.
12156 predep_objects_CXX=
12157 postdep_objects_CXX=
12158 postdeps_CXX=
12159 ;;
12160
12161 linux*)
12162 case `$CC -V 2>&1 | sed 5q` in
12163 *Sun\ C*)
12164 # Sun C++ 5.9
12165
12166 # The more standards-conforming stlport4 library is
12167 # incompatible with the Cstd library. Avoid specifying
12168 # it if it's in CXXFLAGS. Ignore libCrun as
12169 # -library=stlport4 depends on it.
12170 case " $CXX $CXXFLAGS " in
12171 *" -library=stlport4 "*)
12172 solaris_use_stlport4=yes
12173 ;;
12174 esac
12175
12176 if test "$solaris_use_stlport4" != yes; then
12177 postdeps_CXX='-library=Cstd -library=Crun'
12178 fi
12179 ;;
12180 esac
12181 ;;
12182
12183 solaris*)
12184 case $cc_basename in
12185 CC*)
12186 # The more standards-conforming stlport4 library is
12187 # incompatible with the Cstd library. Avoid specifying
12188 # it if it's in CXXFLAGS. Ignore libCrun as
12189 # -library=stlport4 depends on it.
12190 case " $CXX $CXXFLAGS " in
12191 *" -library=stlport4 "*)
12192 solaris_use_stlport4=yes
12193 ;;
12194 esac
12195
12196 # Adding this requires a known-good setup of shared libraries for
12197 # Sun compiler versions before 5.6, else PIC objects from an old
12198 # archive will be linked into the output, leading to subtle bugs.
12199 if test "$solaris_use_stlport4" != yes; then
12200 postdeps_CXX='-library=Cstd -library=Crun'
12201 fi
12202 ;;
12203 esac
12204 ;;
12205 esac
12206
12207
12208 case " $postdeps_CXX " in
12209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12210 esac
12211 compiler_lib_search_dirs_CXX=
12212 if test -n "${compiler_lib_search_path_CXX}"; then
12213 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12214 fi
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246 lt_prog_compiler_wl_CXX=
12247 lt_prog_compiler_pic_CXX=
12248 lt_prog_compiler_static_CXX=
12249
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12251 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12252
12253 # C++ specific cases for pic, static, wl, etc.
12254 if test "$GXX" = yes; then
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_static_CXX='-static'
12257
12258 case $host_os in
12259 aix*)
12260 # All AIX code is PIC.
12261 if test "$host_cpu" = ia64; then
12262 # AIX 5 now supports IA64 processor
12263 lt_prog_compiler_static_CXX='-Bstatic'
12264 fi
12265 ;;
12266
12267 amigaos*)
12268 case $host_cpu in
12269 powerpc)
12270 # see comment about AmigaOS4 .so support
12271 lt_prog_compiler_pic_CXX='-fPIC'
12272 ;;
12273 m68k)
12274 # FIXME: we need at least 68020 code to build shared libraries, but
12275 # adding the `-m68020' flag to GCC prevents building anything better,
12276 # like `-m68040'.
12277 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12278 ;;
12279 esac
12280 ;;
12281
12282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12283 # PIC is the default for these OSes.
12284 ;;
12285 mingw* | cygwin* | os2* | pw32* | cegcc*)
12286 # This hack is so that the source file can tell whether it is being
12287 # built for inclusion in a dll (and should export symbols for example).
12288 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12289 # (--disable-auto-import) libraries
12290 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12291 ;;
12292 darwin* | rhapsody*)
12293 # PIC is the default on this platform
12294 # Common symbols not allowed in MH_DYLIB files
12295 lt_prog_compiler_pic_CXX='-fno-common'
12296 ;;
12297 *djgpp*)
12298 # DJGPP does not support shared libraries at all
12299 lt_prog_compiler_pic_CXX=
12300 ;;
12301 interix[3-9]*)
12302 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12303 # Instead, we relocate shared libraries at runtime.
12304 ;;
12305 sysv4*MP*)
12306 if test -d /usr/nec; then
12307 lt_prog_compiler_pic_CXX=-Kconform_pic
12308 fi
12309 ;;
12310 hpux*)
12311 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12312 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12313 # sets the default TLS model and affects inlining.
12314 case $host_cpu in
12315 hppa*64*)
12316 ;;
12317 *)
12318 lt_prog_compiler_pic_CXX='-fPIC'
12319 ;;
12320 esac
12321 ;;
12322 *qnx* | *nto*)
12323 # QNX uses GNU C++, but need to define -shared option too, otherwise
12324 # it will coredump.
12325 lt_prog_compiler_pic_CXX='-fPIC -shared'
12326 ;;
12327 *)
12328 lt_prog_compiler_pic_CXX='-fPIC'
12329 ;;
12330 esac
12331 else
12332 case $host_os in
12333 aix[4-9]*)
12334 # All AIX code is PIC.
12335 if test "$host_cpu" = ia64; then
12336 # AIX 5 now supports IA64 processor
12337 lt_prog_compiler_static_CXX='-Bstatic'
12338 else
12339 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12340 fi
12341 ;;
12342 chorus*)
12343 case $cc_basename in
12344 cxch68*)
12345 # Green Hills C++ Compiler
12346 # _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"
12347 ;;
12348 esac
12349 ;;
12350 dgux*)
12351 case $cc_basename in
12352 ec++*)
12353 lt_prog_compiler_pic_CXX='-KPIC'
12354 ;;
12355 ghcx*)
12356 # Green Hills C++ Compiler
12357 lt_prog_compiler_pic_CXX='-pic'
12358 ;;
12359 *)
12360 ;;
12361 esac
12362 ;;
12363 freebsd* | dragonfly*)
12364 # FreeBSD uses GNU C++
12365 ;;
12366 hpux9* | hpux10* | hpux11*)
12367 case $cc_basename in
12368 CC*)
12369 lt_prog_compiler_wl_CXX='-Wl,'
12370 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12371 if test "$host_cpu" != ia64; then
12372 lt_prog_compiler_pic_CXX='+Z'
12373 fi
12374 ;;
12375 aCC*)
12376 lt_prog_compiler_wl_CXX='-Wl,'
12377 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12378 case $host_cpu in
12379 hppa*64*|ia64*)
12380 # +Z the default
12381 ;;
12382 *)
12383 lt_prog_compiler_pic_CXX='+Z'
12384 ;;
12385 esac
12386 ;;
12387 *)
12388 ;;
12389 esac
12390 ;;
12391 interix*)
12392 # This is c89, which is MS Visual C++ (no shared libs)
12393 # Anyone wants to do a port?
12394 ;;
12395 irix5* | irix6* | nonstopux*)
12396 case $cc_basename in
12397 CC*)
12398 lt_prog_compiler_wl_CXX='-Wl,'
12399 lt_prog_compiler_static_CXX='-non_shared'
12400 # CC pic flag -KPIC is the default.
12401 ;;
12402 *)
12403 ;;
12404 esac
12405 ;;
12406 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12407 case $cc_basename in
12408 KCC*)
12409 # KAI C++ Compiler
12410 lt_prog_compiler_wl_CXX='--backend -Wl,'
12411 lt_prog_compiler_pic_CXX='-fPIC'
12412 ;;
12413 ecpc* )
12414 # old Intel C++ for x86_64 which still supported -KPIC.
12415 lt_prog_compiler_wl_CXX='-Wl,'
12416 lt_prog_compiler_pic_CXX='-KPIC'
12417 lt_prog_compiler_static_CXX='-static'
12418 ;;
12419 icpc* )
12420 # Intel C++, used to be incompatible with GCC.
12421 # ICC 10 doesn't accept -KPIC any more.
12422 lt_prog_compiler_wl_CXX='-Wl,'
12423 lt_prog_compiler_pic_CXX='-fPIC'
12424 lt_prog_compiler_static_CXX='-static'
12425 ;;
12426 pgCC* | pgcpp*)
12427 # Portland Group C++ compiler
12428 lt_prog_compiler_wl_CXX='-Wl,'
12429 lt_prog_compiler_pic_CXX='-fpic'
12430 lt_prog_compiler_static_CXX='-Bstatic'
12431 ;;
12432 cxx*)
12433 # Compaq C++
12434 # Make sure the PIC flag is empty. It appears that all Alpha
12435 # Linux and Compaq Tru64 Unix objects are PIC.
12436 lt_prog_compiler_pic_CXX=
12437 lt_prog_compiler_static_CXX='-non_shared'
12438 ;;
12439 xlc* | xlC*)
12440 # IBM XL 8.0 on PPC
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_pic_CXX='-qpic'
12443 lt_prog_compiler_static_CXX='-qstaticlink'
12444 ;;
12445 *)
12446 case `$CC -V 2>&1 | sed 5q` in
12447 *Sun\ C*)
12448 # Sun C++ 5.9
12449 lt_prog_compiler_pic_CXX='-KPIC'
12450 lt_prog_compiler_static_CXX='-Bstatic'
12451 lt_prog_compiler_wl_CXX='-Qoption ld '
12452 ;;
12453 esac
12454 ;;
12455 esac
12456 ;;
12457 lynxos*)
12458 ;;
12459 m88k*)
12460 ;;
12461 mvs*)
12462 case $cc_basename in
12463 cxx*)
12464 lt_prog_compiler_pic_CXX='-W c,exportall'
12465 ;;
12466 *)
12467 ;;
12468 esac
12469 ;;
12470 netbsd* | netbsdelf*-gnu)
12471 ;;
12472 *qnx* | *nto*)
12473 # QNX uses GNU C++, but need to define -shared option too, otherwise
12474 # it will coredump.
12475 lt_prog_compiler_pic_CXX='-fPIC -shared'
12476 ;;
12477 osf3* | osf4* | osf5*)
12478 case $cc_basename in
12479 KCC*)
12480 lt_prog_compiler_wl_CXX='--backend -Wl,'
12481 ;;
12482 RCC*)
12483 # Rational C++ 2.4.1
12484 lt_prog_compiler_pic_CXX='-pic'
12485 ;;
12486 cxx*)
12487 # Digital/Compaq C++
12488 lt_prog_compiler_wl_CXX='-Wl,'
12489 # Make sure the PIC flag is empty. It appears that all Alpha
12490 # Linux and Compaq Tru64 Unix objects are PIC.
12491 lt_prog_compiler_pic_CXX=
12492 lt_prog_compiler_static_CXX='-non_shared'
12493 ;;
12494 *)
12495 ;;
12496 esac
12497 ;;
12498 psos*)
12499 ;;
12500 solaris*)
12501 case $cc_basename in
12502 CC*)
12503 # Sun C++ 4.2, 5.x and Centerline C++
12504 lt_prog_compiler_pic_CXX='-KPIC'
12505 lt_prog_compiler_static_CXX='-Bstatic'
12506 lt_prog_compiler_wl_CXX='-Qoption ld '
12507 ;;
12508 gcx*)
12509 # Green Hills C++ Compiler
12510 lt_prog_compiler_pic_CXX='-PIC'
12511 ;;
12512 *)
12513 ;;
12514 esac
12515 ;;
12516 sunos4*)
12517 case $cc_basename in
12518 CC*)
12519 # Sun C++ 4.x
12520 lt_prog_compiler_pic_CXX='-pic'
12521 lt_prog_compiler_static_CXX='-Bstatic'
12522 ;;
12523 lcc*)
12524 # Lucid
12525 lt_prog_compiler_pic_CXX='-pic'
12526 ;;
12527 *)
12528 ;;
12529 esac
12530 ;;
12531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12532 case $cc_basename in
12533 CC*)
12534 lt_prog_compiler_wl_CXX='-Wl,'
12535 lt_prog_compiler_pic_CXX='-KPIC'
12536 lt_prog_compiler_static_CXX='-Bstatic'
12537 ;;
12538 esac
12539 ;;
12540 tandem*)
12541 case $cc_basename in
12542 NCC*)
12543 # NonStop-UX NCC 3.20
12544 lt_prog_compiler_pic_CXX='-KPIC'
12545 ;;
12546 *)
12547 ;;
12548 esac
12549 ;;
12550 vxworks*)
12551 ;;
12552 *)
12553 lt_prog_compiler_can_build_shared_CXX=no
12554 ;;
12555 esac
12556 fi
12557
12558 case $host_os in
12559 # For platforms which do not support PIC, -DPIC is meaningless:
12560 *djgpp*)
12561 lt_prog_compiler_pic_CXX=
12562 ;;
12563 *)
12564 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12565 ;;
12566 esac
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12568 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12569
12570
12571
12572 #
12573 # Check to make sure the PIC flag actually works.
12574 #
12575 if test -n "$lt_prog_compiler_pic_CXX"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12577 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12578 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 lt_cv_prog_compiler_pic_works_CXX=no
12582 ac_outfile=conftest.$ac_objext
12583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12584 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12585 # Insert the option either (1) after the last *FLAGS variable, or
12586 # (2) before a word containing "conftest.", or (3) at the end.
12587 # Note that $ac_compile itself does not contain backslashes and begins
12588 # with a dollar sign (not a hyphen), so the echo should work correctly.
12589 # The option is referenced via a variable to avoid confusing sed.
12590 lt_compile=`echo "$ac_compile" | $SED \
12591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12593 -e 's:$: $lt_compiler_flag:'`
12594 (eval echo "\"\$as_me:12594: $lt_compile\"" >&5)
12595 (eval "$lt_compile" 2>conftest.err)
12596 ac_status=$?
12597 cat conftest.err >&5
12598 echo "$as_me:12598: \$? = $ac_status" >&5
12599 if (exit $ac_status) && test -s "$ac_outfile"; then
12600 # The compiler can only warn and ignore the option if not recognized
12601 # So say no if there are warnings other than the usual output.
12602 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12605 lt_cv_prog_compiler_pic_works_CXX=yes
12606 fi
12607 fi
12608 $RM conftest*
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12612 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12613
12614 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12615 case $lt_prog_compiler_pic_CXX in
12616 "" | " "*) ;;
12617 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12618 esac
12619 else
12620 lt_prog_compiler_pic_CXX=
12621 lt_prog_compiler_can_build_shared_CXX=no
12622 fi
12623
12624 fi
12625
12626
12627
12628 #
12629 # Check to make sure the static flag actually works.
12630 #
12631 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12633 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12634 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 lt_cv_prog_compiler_static_works_CXX=no
12638 save_LDFLAGS="$LDFLAGS"
12639 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12640 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12642 # The linker can only warn and ignore the option if not recognized
12643 # So say no if there are warnings
12644 if test -s conftest.err; then
12645 # Append any errors to the config.log.
12646 cat conftest.err 1>&5
12647 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12649 if diff conftest.exp conftest.er2 >/dev/null; then
12650 lt_cv_prog_compiler_static_works_CXX=yes
12651 fi
12652 else
12653 lt_cv_prog_compiler_static_works_CXX=yes
12654 fi
12655 fi
12656 $RM -r conftest*
12657 LDFLAGS="$save_LDFLAGS"
12658
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12661 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12662
12663 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12664 :
12665 else
12666 lt_prog_compiler_static_CXX=
12667 fi
12668
12669
12670
12671
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12674 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 lt_cv_prog_compiler_c_o_CXX=no
12678 $RM -r conftest 2>/dev/null
12679 mkdir conftest
12680 cd conftest
12681 mkdir out
12682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12683
12684 lt_compiler_flag="-o out/conftest2.$ac_objext"
12685 # Insert the option either (1) after the last *FLAGS variable, or
12686 # (2) before a word containing "conftest.", or (3) at the end.
12687 # Note that $ac_compile itself does not contain backslashes and begins
12688 # with a dollar sign (not a hyphen), so the echo should work correctly.
12689 lt_compile=`echo "$ac_compile" | $SED \
12690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12692 -e 's:$: $lt_compiler_flag:'`
12693 (eval echo "\"\$as_me:12693: $lt_compile\"" >&5)
12694 (eval "$lt_compile" 2>out/conftest.err)
12695 ac_status=$?
12696 cat out/conftest.err >&5
12697 echo "$as_me:12697: \$? = $ac_status" >&5
12698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12699 then
12700 # The compiler can only warn and ignore the option if not recognized
12701 # So say no if there are warnings
12702 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12705 lt_cv_prog_compiler_c_o_CXX=yes
12706 fi
12707 fi
12708 chmod u+w . 2>&5
12709 $RM conftest*
12710 # SGI C++ compiler will create directory out/ii_files/ for
12711 # template instantiation
12712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12713 $RM out/* && rmdir out
12714 cd ..
12715 $RM -r conftest
12716 $RM conftest*
12717
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12720 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12721
12722
12723
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12726 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 lt_cv_prog_compiler_c_o_CXX=no
12730 $RM -r conftest 2>/dev/null
12731 mkdir conftest
12732 cd conftest
12733 mkdir out
12734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12735
12736 lt_compiler_flag="-o out/conftest2.$ac_objext"
12737 # Insert the option either (1) after the last *FLAGS variable, or
12738 # (2) before a word containing "conftest.", or (3) at the end.
12739 # Note that $ac_compile itself does not contain backslashes and begins
12740 # with a dollar sign (not a hyphen), so the echo should work correctly.
12741 lt_compile=`echo "$ac_compile" | $SED \
12742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12744 -e 's:$: $lt_compiler_flag:'`
12745 (eval echo "\"\$as_me:12745: $lt_compile\"" >&5)
12746 (eval "$lt_compile" 2>out/conftest.err)
12747 ac_status=$?
12748 cat out/conftest.err >&5
12749 echo "$as_me:12749: \$? = $ac_status" >&5
12750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12751 then
12752 # The compiler can only warn and ignore the option if not recognized
12753 # So say no if there are warnings
12754 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12757 lt_cv_prog_compiler_c_o_CXX=yes
12758 fi
12759 fi
12760 chmod u+w . 2>&5
12761 $RM conftest*
12762 # SGI C++ compiler will create directory out/ii_files/ for
12763 # template instantiation
12764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12765 $RM out/* && rmdir out
12766 cd ..
12767 $RM -r conftest
12768 $RM conftest*
12769
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12772 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12773
12774
12775
12776
12777 hard_links="nottested"
12778 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12779 # do not overwrite the value of need_locks provided by the user
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12781 $as_echo_n "checking if we can lock with hard links... " >&6; }
12782 hard_links=yes
12783 $RM conftest*
12784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12785 touch conftest.a
12786 ln conftest.a conftest.b 2>&5 || hard_links=no
12787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12789 $as_echo "$hard_links" >&6; }
12790 if test "$hard_links" = no; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12793 need_locks=warn
12794 fi
12795 else
12796 need_locks=no
12797 fi
12798
12799
12800
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12803
12804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12805 case $host_os in
12806 aix[4-9]*)
12807 # If we're using GNU nm, then we don't want the "-C" option.
12808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12810 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'
12811 else
12812 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'
12813 fi
12814 ;;
12815 pw32*)
12816 export_symbols_cmds_CXX="$ltdll_cmds"
12817 ;;
12818 cygwin* | mingw* | cegcc*)
12819 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'
12820 ;;
12821 linux* | k*bsd*-gnu)
12822 link_all_deplibs_CXX=no
12823 ;;
12824 *)
12825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12826 ;;
12827 esac
12828 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12831 $as_echo "$ld_shlibs_CXX" >&6; }
12832 test "$ld_shlibs_CXX" = no && can_build_shared=no
12833
12834 with_gnu_ld_CXX=$with_gnu_ld
12835
12836
12837
12838
12839
12840
12841 #
12842 # Do we need to explicitly link libc?
12843 #
12844 case "x$archive_cmds_need_lc_CXX" in
12845 x|xyes)
12846 # Assume -lc should be added
12847 archive_cmds_need_lc_CXX=yes
12848
12849 if test "$enable_shared" = yes && test "$GCC" = yes; then
12850 case $archive_cmds_CXX in
12851 *'~'*)
12852 # FIXME: we may have to deal with multi-command sequences.
12853 ;;
12854 '$CC '*)
12855 # Test whether the compiler implicitly links with -lc since on some
12856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12857 # to ld, don't add -lc before -lgcc.
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12859 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12860 $RM conftest*
12861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12862
12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12864 (eval $ac_compile) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; } 2>conftest.err; then
12868 soname=conftest
12869 lib=conftest
12870 libobjs=conftest.$ac_objext
12871 deplibs=
12872 wl=$lt_prog_compiler_wl_CXX
12873 pic_flag=$lt_prog_compiler_pic_CXX
12874 compiler_flags=-v
12875 linker_flags=-v
12876 verstring=
12877 output_objdir=.
12878 libname=conftest
12879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12880 allow_undefined_flag_CXX=
12881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12882 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12883 ac_status=$?
12884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12885 test $ac_status = 0; }
12886 then
12887 archive_cmds_need_lc_CXX=no
12888 else
12889 archive_cmds_need_lc_CXX=yes
12890 fi
12891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12892 else
12893 cat conftest.err 1>&5
12894 fi
12895 $RM conftest*
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12897 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12898 ;;
12899 esac
12900 fi
12901 ;;
12902 esac
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12969
12970 library_names_spec=
12971 libname_spec='lib$name'
12972 soname_spec=
12973 shrext_cmds=".so"
12974 postinstall_cmds=
12975 postuninstall_cmds=
12976 finish_cmds=
12977 finish_eval=
12978 shlibpath_var=
12979 shlibpath_overrides_runpath=unknown
12980 version_type=none
12981 dynamic_linker="$host_os ld.so"
12982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12983 need_lib_prefix=unknown
12984 hardcode_into_libs=no
12985
12986 # when you set need_version to no, make sure it does not cause -set_version
12987 # flags to be left without arguments
12988 need_version=unknown
12989
12990 case $host_os in
12991 aix3*)
12992 version_type=linux
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12994 shlibpath_var=LIBPATH
12995
12996 # AIX 3 has no versioning support, so we append a major version to the name.
12997 soname_spec='${libname}${release}${shared_ext}$major'
12998 ;;
12999
13000 aix[4-9]*)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 hardcode_into_libs=yes
13005 if test "$host_cpu" = ia64; then
13006 # AIX 5 supports IA64
13007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 else
13010 # With GCC up to 2.95.x, collect2 would create an import file
13011 # for dependence libraries. The import file would start with
13012 # the line `#! .'. This would cause the generated library to
13013 # depend on `.', always an invalid library. This was fixed in
13014 # development snapshots of GCC prior to 3.0.
13015 case $host_os in
13016 aix4 | aix4.[01] | aix4.[01].*)
13017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13018 echo ' yes '
13019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13020 :
13021 else
13022 can_build_shared=no
13023 fi
13024 ;;
13025 esac
13026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13027 # soname into executable. Probably we can add versioning support to
13028 # collect2, so additional links can be useful in future.
13029 if test "$aix_use_runtimelinking" = yes; then
13030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13031 # instead of lib<name>.a to let people know that these are not
13032 # typical AIX shared libraries.
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034 else
13035 # We preserve .a as extension for shared libraries through AIX4.2
13036 # and later when we are not doing run time linking.
13037 library_names_spec='${libname}${release}.a $libname.a'
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 fi
13040 shlibpath_var=LIBPATH
13041 fi
13042 ;;
13043
13044 amigaos*)
13045 case $host_cpu in
13046 powerpc)
13047 # Since July 2007 AmigaOS4 officially supports .so libraries.
13048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 ;;
13051 m68k)
13052 library_names_spec='$libname.ixlibrary $libname.a'
13053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13054 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'
13055 ;;
13056 esac
13057 ;;
13058
13059 beos*)
13060 library_names_spec='${libname}${shared_ext}'
13061 dynamic_linker="$host_os ld.so"
13062 shlibpath_var=LIBRARY_PATH
13063 ;;
13064
13065 bsdi[45]*)
13066 version_type=linux
13067 need_version=no
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069 soname_spec='${libname}${release}${shared_ext}$major'
13070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13074 # the default ld.so.conf also contains /usr/contrib/lib and
13075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13076 # libtool to hard-code these into programs
13077 ;;
13078
13079 cygwin* | mingw* | pw32* | cegcc*)
13080 version_type=windows
13081 shrext_cmds=".dll"
13082 need_version=no
13083 need_lib_prefix=no
13084
13085 case $GCC,$host_os in
13086 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13087 library_names_spec='$libname.dll.a'
13088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13089 postinstall_cmds='base_file=`basename \${file}`~
13090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13091 dldir=$destdir/`dirname \$dlpath`~
13092 test -d \$dldir || mkdir -p \$dldir~
13093 $install_prog $dir/$dlname \$dldir/$dlname~
13094 chmod a+x \$dldir/$dlname~
13095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13097 fi'
13098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13099 dlpath=$dir/\$dldll~
13100 $RM \$dlpath'
13101 shlibpath_overrides_runpath=yes
13102
13103 case $host_os in
13104 cygwin*)
13105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13107 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13108 ;;
13109 mingw* | cegcc*)
13110 # MinGW DLLs use traditional 'lib' prefix
13111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13112 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13113 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13114 # It is most probably a Windows format PATH printed by
13115 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13116 # path with ; separators, and with drive letters. We can handle the
13117 # drive letters (cygwin fileutils understands them), so leave them,
13118 # especially as we might pass files found there to a mingw objdump,
13119 # which wouldn't understand a cygwinified path. Ahh.
13120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13121 else
13122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13123 fi
13124 ;;
13125 pw32*)
13126 # pw32 DLLs use 'pw' prefix rather than 'lib'
13127 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13128 ;;
13129 esac
13130 ;;
13131
13132 *)
13133 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13134 ;;
13135 esac
13136 dynamic_linker='Win32 ld.exe'
13137 # FIXME: first we should search . and the directory the executable is in
13138 shlibpath_var=PATH
13139 ;;
13140
13141 darwin* | rhapsody*)
13142 dynamic_linker="$host_os dyld"
13143 version_type=darwin
13144 need_lib_prefix=no
13145 need_version=no
13146 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13147 soname_spec='${libname}${release}${major}$shared_ext'
13148 shlibpath_overrides_runpath=yes
13149 shlibpath_var=DYLD_LIBRARY_PATH
13150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13151
13152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13153 ;;
13154
13155 dgux*)
13156 version_type=linux
13157 need_lib_prefix=no
13158 need_version=no
13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13160 soname_spec='${libname}${release}${shared_ext}$major'
13161 shlibpath_var=LD_LIBRARY_PATH
13162 ;;
13163
13164 freebsd1*)
13165 dynamic_linker=no
13166 ;;
13167
13168 freebsd* | dragonfly*)
13169 # DragonFly does not have aout. When/if they implement a new
13170 # versioning mechanism, adjust this.
13171 if test -x /usr/bin/objformat; then
13172 objformat=`/usr/bin/objformat`
13173 else
13174 case $host_os in
13175 freebsd[123]*) objformat=aout ;;
13176 *) objformat=elf ;;
13177 esac
13178 fi
13179 version_type=freebsd-$objformat
13180 case $version_type in
13181 freebsd-elf*)
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13183 need_version=no
13184 need_lib_prefix=no
13185 ;;
13186 freebsd-*)
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13188 need_version=yes
13189 ;;
13190 esac
13191 shlibpath_var=LD_LIBRARY_PATH
13192 case $host_os in
13193 freebsd2*)
13194 shlibpath_overrides_runpath=yes
13195 ;;
13196 freebsd3.[01]* | freebsdelf3.[01]*)
13197 shlibpath_overrides_runpath=yes
13198 hardcode_into_libs=yes
13199 ;;
13200 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13201 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13202 shlibpath_overrides_runpath=no
13203 hardcode_into_libs=yes
13204 ;;
13205 *) # from 4.6 on, and DragonFly
13206 shlibpath_overrides_runpath=yes
13207 hardcode_into_libs=yes
13208 ;;
13209 esac
13210 ;;
13211
13212 gnu*)
13213 version_type=linux
13214 need_lib_prefix=no
13215 need_version=no
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13217 soname_spec='${libname}${release}${shared_ext}$major'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 hardcode_into_libs=yes
13220 ;;
13221
13222 hpux9* | hpux10* | hpux11*)
13223 # Give a soname corresponding to the major version so that dld.sl refuses to
13224 # link against other versions.
13225 version_type=sunos
13226 need_lib_prefix=no
13227 need_version=no
13228 case $host_cpu in
13229 ia64*)
13230 shrext_cmds='.so'
13231 hardcode_into_libs=yes
13232 dynamic_linker="$host_os dld.so"
13233 shlibpath_var=LD_LIBRARY_PATH
13234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13237 if test "X$HPUX_IA64_MODE" = X32; then
13238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13239 else
13240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13241 fi
13242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13243 ;;
13244 hppa*64*)
13245 shrext_cmds='.sl'
13246 hardcode_into_libs=yes
13247 dynamic_linker="$host_os dld.sl"
13248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13254 ;;
13255 *)
13256 shrext_cmds='.sl'
13257 dynamic_linker="$host_os dld.sl"
13258 shlibpath_var=SHLIB_PATH
13259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 ;;
13263 esac
13264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13265 postinstall_cmds='chmod 555 $lib'
13266 ;;
13267
13268 interix[3-9]*)
13269 version_type=linux
13270 need_lib_prefix=no
13271 need_version=no
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273 soname_spec='${libname}${release}${shared_ext}$major'
13274 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13275 shlibpath_var=LD_LIBRARY_PATH
13276 shlibpath_overrides_runpath=no
13277 hardcode_into_libs=yes
13278 ;;
13279
13280 irix5* | irix6* | nonstopux*)
13281 case $host_os in
13282 nonstopux*) version_type=nonstopux ;;
13283 *)
13284 if test "$lt_cv_prog_gnu_ld" = yes; then
13285 version_type=linux
13286 else
13287 version_type=irix
13288 fi ;;
13289 esac
13290 need_lib_prefix=no
13291 need_version=no
13292 soname_spec='${libname}${release}${shared_ext}$major'
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13294 case $host_os in
13295 irix5* | nonstopux*)
13296 libsuff= shlibsuff=
13297 ;;
13298 *)
13299 case $LD in # libtool.m4 will add one of these switches to LD
13300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13301 libsuff= shlibsuff= libmagic=32-bit;;
13302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13303 libsuff=32 shlibsuff=N32 libmagic=N32;;
13304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13305 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13306 *) libsuff= shlibsuff= libmagic=never-match;;
13307 esac
13308 ;;
13309 esac
13310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13311 shlibpath_overrides_runpath=no
13312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13314 hardcode_into_libs=yes
13315 ;;
13316
13317 # No shared lib support for Linux oldld, aout, or coff.
13318 linux*oldld* | linux*aout* | linux*coff*)
13319 dynamic_linker=no
13320 ;;
13321
13322 # This must be Linux ELF.
13323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13324 version_type=linux
13325 need_lib_prefix=no
13326 need_version=no
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=no
13332 # Some binutils ld are patched to set DT_RUNPATH
13333 save_LDFLAGS=$LDFLAGS
13334 save_libdir=$libdir
13335 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13336 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339
13340 int
13341 main ()
13342 {
13343
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_cxx_try_link "$LINENO"; then :
13349 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13350 shlibpath_overrides_runpath=yes
13351 fi
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LDFLAGS=$save_LDFLAGS
13356 libdir=$save_libdir
13357
13358 # This implies no fast_install, which is unacceptable.
13359 # Some rework will be needed to allow for fast_install
13360 # before this can be enabled.
13361 hardcode_into_libs=yes
13362
13363 # Append ld.so.conf contents to the search path
13364 if test -f /etc/ld.so.conf; then
13365 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' ' '`
13366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13367 fi
13368
13369 # We used to test for /lib/ld.so.1 and disable shared libraries on
13370 # powerpc, because MkLinux only supported shared libraries with the
13371 # GNU dynamic linker. Since this was broken with cross compilers,
13372 # most powerpc-linux boxes support dynamic linking these days and
13373 # people can always --disable-shared, the test was removed, and we
13374 # assume the GNU/Linux dynamic linker is in use.
13375 dynamic_linker='GNU/Linux ld.so'
13376 ;;
13377
13378 netbsdelf*-gnu)
13379 version_type=linux
13380 need_lib_prefix=no
13381 need_version=no
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 shlibpath_overrides_runpath=no
13386 hardcode_into_libs=yes
13387 dynamic_linker='NetBSD ld.elf_so'
13388 ;;
13389
13390 netbsd*)
13391 version_type=sunos
13392 need_lib_prefix=no
13393 need_version=no
13394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397 dynamic_linker='NetBSD (a.out) ld.so'
13398 else
13399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13400 soname_spec='${libname}${release}${shared_ext}$major'
13401 dynamic_linker='NetBSD ld.elf_so'
13402 fi
13403 shlibpath_var=LD_LIBRARY_PATH
13404 shlibpath_overrides_runpath=yes
13405 hardcode_into_libs=yes
13406 ;;
13407
13408 newsos6)
13409 version_type=linux
13410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=yes
13413 ;;
13414
13415 *nto* | *qnx*)
13416 version_type=qnx
13417 need_lib_prefix=no
13418 need_version=no
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420 soname_spec='${libname}${release}${shared_ext}$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=no
13423 hardcode_into_libs=yes
13424 dynamic_linker='ldqnx.so'
13425 ;;
13426
13427 openbsd*)
13428 version_type=sunos
13429 sys_lib_dlsearch_path_spec="/usr/lib"
13430 need_lib_prefix=no
13431 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13432 case $host_os in
13433 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13434 *) need_version=no ;;
13435 esac
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13440 case $host_os in
13441 openbsd2.[89] | openbsd2.[89].*)
13442 shlibpath_overrides_runpath=no
13443 ;;
13444 *)
13445 shlibpath_overrides_runpath=yes
13446 ;;
13447 esac
13448 else
13449 shlibpath_overrides_runpath=yes
13450 fi
13451 ;;
13452
13453 os2*)
13454 libname_spec='$name'
13455 shrext_cmds=".dll"
13456 need_lib_prefix=no
13457 library_names_spec='$libname${shared_ext} $libname.a'
13458 dynamic_linker='OS/2 ld.exe'
13459 shlibpath_var=LIBPATH
13460 ;;
13461
13462 osf3* | osf4* | osf5*)
13463 version_type=osf
13464 need_lib_prefix=no
13465 need_version=no
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13470 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13471 ;;
13472
13473 rdos*)
13474 dynamic_linker=no
13475 ;;
13476
13477 solaris*)
13478 version_type=linux
13479 need_lib_prefix=no
13480 need_version=no
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=yes
13485 hardcode_into_libs=yes
13486 # ldd complains unless libraries are executable
13487 postinstall_cmds='chmod +x $lib'
13488 ;;
13489
13490 sunos4*)
13491 version_type=sunos
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes
13496 if test "$with_gnu_ld" = yes; then
13497 need_lib_prefix=no
13498 fi
13499 need_version=yes
13500 ;;
13501
13502 sysv4 | sysv4.3*)
13503 version_type=linux
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 case $host_vendor in
13508 sni)
13509 shlibpath_overrides_runpath=no
13510 need_lib_prefix=no
13511 runpath_var=LD_RUN_PATH
13512 ;;
13513 siemens)
13514 need_lib_prefix=no
13515 ;;
13516 motorola)
13517 need_lib_prefix=no
13518 need_version=no
13519 shlibpath_overrides_runpath=no
13520 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13521 ;;
13522 esac
13523 ;;
13524
13525 sysv4*MP*)
13526 if test -d /usr/nec ;then
13527 version_type=linux
13528 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13529 soname_spec='$libname${shared_ext}.$major'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 fi
13532 ;;
13533
13534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13535 version_type=freebsd-elf
13536 need_lib_prefix=no
13537 need_version=no
13538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13539 soname_spec='${libname}${release}${shared_ext}$major'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 shlibpath_overrides_runpath=yes
13542 hardcode_into_libs=yes
13543 if test "$with_gnu_ld" = yes; then
13544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13545 else
13546 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13547 case $host_os in
13548 sco3.2v5*)
13549 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13550 ;;
13551 esac
13552 fi
13553 sys_lib_dlsearch_path_spec='/usr/lib'
13554 ;;
13555
13556 tpf*)
13557 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13558 version_type=linux
13559 need_lib_prefix=no
13560 need_version=no
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=no
13564 hardcode_into_libs=yes
13565 ;;
13566
13567 uts4*)
13568 version_type=linux
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570 soname_spec='${libname}${release}${shared_ext}$major'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 ;;
13573
13574 *)
13575 dynamic_linker=no
13576 ;;
13577 esac
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13579 $as_echo "$dynamic_linker" >&6; }
13580 test "$dynamic_linker" = no && can_build_shared=no
13581
13582 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13583 if test "$GCC" = yes; then
13584 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13585 fi
13586
13587 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13588 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13589 fi
13590 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13591 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13592 fi
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13630 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13631 hardcode_action_CXX=
13632 if test -n "$hardcode_libdir_flag_spec_CXX" ||
13633 test -n "$runpath_var_CXX" ||
13634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13635
13636 # We can hardcode non-existent directories.
13637 if test "$hardcode_direct_CXX" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13642 test "$hardcode_minus_L_CXX" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action_CXX=relink
13645 else
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action_CXX=immediate
13648 fi
13649 else
13650 # We cannot hardcode anything, or else we can only hardcode existing
13651 # directories.
13652 hardcode_action_CXX=unsupported
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13655 $as_echo "$hardcode_action_CXX" >&6; }
13656
13657 if test "$hardcode_action_CXX" = relink ||
13658 test "$inherit_rpath_CXX" = yes; then
13659 # Fast installation is not supported
13660 enable_fast_install=no
13661 elif test "$shlibpath_overrides_runpath" = yes ||
13662 test "$enable_shared" = no; then
13663 # Fast installation is not necessary
13664 enable_fast_install=needless
13665 fi
13666
13667
13668
13669
13670
13671
13672
13673 fi # test -n "$compiler"
13674
13675 CC=$lt_save_CC
13676 LDCXX=$LD
13677 LD=$lt_save_LD
13678 GCC=$lt_save_GCC
13679 with_gnu_ld=$lt_save_with_gnu_ld
13680 lt_cv_path_LDCXX=$lt_cv_path_LD
13681 lt_cv_path_LD=$lt_save_path_LD
13682 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13683 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13684 fi # test "$_lt_caught_CXX_error" != yes
13685
13686 ac_ext=c
13687 ac_cpp='$CPP $CPPFLAGS'
13688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13691
13692
13693 ac_ext=mm
13694 ac_cpp='$OBJCXXCPP $CPPFLAGS'
13695 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13696 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13697 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
13698 if test -n "$ac_tool_prefix"; then
13699 for ac_prog in g++ objc++ objcxx c++ CXX
13700 do
13701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704 $as_echo_n "checking for $ac_word... " >&6; }
13705 if test "${ac_cv_prog_OBJCXX+set}" = set; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 if test -n "$OBJCXX"; then
13709 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
13710 else
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13713 do
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13718 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13721 fi
13722 done
13723 done
13724 IFS=$as_save_IFS
13725
13726 fi
13727 fi
13728 OBJCXX=$ac_cv_prog_OBJCXX
13729 if test -n "$OBJCXX"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
13731 $as_echo "$OBJCXX" >&6; }
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13735 fi
13736
13737
13738 test -n "$OBJCXX" && break
13739 done
13740 fi
13741 if test -z "$OBJCXX"; then
13742 ac_ct_OBJCXX=$OBJCXX
13743 for ac_prog in g++ objc++ objcxx c++ CXX
13744 do
13745 # Extract the first word of "$ac_prog", so it can be a program name with args.
13746 set dummy $ac_prog; ac_word=$2
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748 $as_echo_n "checking for $ac_word... " >&6; }
13749 if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 if test -n "$ac_ct_OBJCXX"; then
13753 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
13754 else
13755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $PATH
13757 do
13758 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
13761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13762 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 break 2
13765 fi
13766 done
13767 done
13768 IFS=$as_save_IFS
13769
13770 fi
13771 fi
13772 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
13773 if test -n "$ac_ct_OBJCXX"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
13775 $as_echo "$ac_ct_OBJCXX" >&6; }
13776 else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778 $as_echo "no" >&6; }
13779 fi
13780
13781
13782 test -n "$ac_ct_OBJCXX" && break
13783 done
13784
13785 if test "x$ac_ct_OBJCXX" = x; then
13786 OBJCXX="g++"
13787 else
13788 case $cross_compiling:$ac_tool_warned in
13789 yes:)
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13792 ac_tool_warned=yes ;;
13793 esac
13794 OBJCXX=$ac_ct_OBJCXX
13795 fi
13796 fi
13797
13798 # Provide some information about the compiler.
13799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
13800 set X $ac_compile
13801 ac_compiler=$2
13802 for ac_option in --version -v -V -qversion; do
13803 { { ac_try="$ac_compiler $ac_option >&5"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807 esac
13808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13809 $as_echo "$ac_try_echo"; } >&5
13810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13811 ac_status=$?
13812 if test -s conftest.err; then
13813 sed '10a\
13814 ... rest of stderr output deleted ...
13815 10q' conftest.err >conftest.er1
13816 cat conftest.er1 >&5
13817 fi
13818 rm -f conftest.er1 conftest.err
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; }
13821 done
13822
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
13824 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
13825 if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830
13831 int
13832 main ()
13833 {
13834 #ifndef __GNUC__
13835 choke me
13836 #endif
13837
13838 ;
13839 return 0;
13840 }
13841 _ACEOF
13842 if ac_fn_objcxx_try_compile "$LINENO"; then :
13843 ac_compiler_gnu=yes
13844 else
13845 ac_compiler_gnu=no
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
13849
13850 fi
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
13852 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
13853 if test $ac_compiler_gnu = yes; then
13854 GOBJCXX=yes
13855 else
13856 GOBJCXX=
13857 fi
13858 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
13859 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
13861 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
13862 if test "${ac_cv_prog_objcxx_g+set}" = set; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
13866 ac_objcxx_werror_flag=yes
13867 ac_cv_prog_objcxx_g=no
13868 OBJCXXFLAGS="-g"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871
13872 int
13873 main ()
13874 {
13875
13876 ;
13877 return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_objcxx_try_compile "$LINENO"; then :
13881 ac_cv_prog_objcxx_g=yes
13882 else
13883 OBJCXXFLAGS=""
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h. */
13886
13887 int
13888 main ()
13889 {
13890
13891 ;
13892 return 0;
13893 }
13894 _ACEOF
13895 if ac_fn_objcxx_try_compile "$LINENO"; then :
13896
13897 else
13898 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
13899 OBJCXXFLAGS="-g"
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902
13903 int
13904 main ()
13905 {
13906
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_objcxx_try_compile "$LINENO"; then :
13912 ac_cv_prog_objcxx_g=yes
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
13920 fi
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
13922 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
13923 if test "$ac_test_OBJCXXFLAGS" = set; then
13924 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
13925 elif test $ac_cv_prog_objcxx_g = yes; then
13926 if test "$GOBJCXX" = yes; then
13927 OBJCXXFLAGS="-g -O2"
13928 else
13929 OBJCXXFLAGS="-g"
13930 fi
13931 else
13932 if test "$GOBJCXX" = yes; then
13933 OBJCXXFLAGS="-O2"
13934 else
13935 OBJCXXFLAGS=
13936 fi
13937 fi
13938 ac_ext=c
13939 ac_cpp='$CPP $CPPFLAGS'
13940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13943
13944
13945 # Check whether --with-frameworks was given.
13946 if test "${with_frameworks+set}" = set; then :
13947 withval=$with_frameworks;
13948 for framework in $withval; do
13949
13950 for element in -F$framework; do
13951 haveit=
13952 for x in $CFLAGS; do
13953
13954 acl_save_prefix="$prefix"
13955 prefix="$acl_final_prefix"
13956 acl_save_exec_prefix="$exec_prefix"
13957 exec_prefix="$acl_final_exec_prefix"
13958 eval x=\"$x\"
13959 exec_prefix="$acl_save_exec_prefix"
13960 prefix="$acl_save_prefix"
13961
13962 if test "X$x" = "X$element"; then
13963 haveit=yes
13964 break
13965 fi
13966 done
13967 if test -z "$haveit"; then
13968 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
13969 fi
13970 done
13971
13972
13973 for element in -F$framework; do
13974 haveit=
13975 for x in $CXXFLAGS; do
13976
13977 acl_save_prefix="$prefix"
13978 prefix="$acl_final_prefix"
13979 acl_save_exec_prefix="$exec_prefix"
13980 exec_prefix="$acl_final_exec_prefix"
13981 eval x=\"$x\"
13982 exec_prefix="$acl_save_exec_prefix"
13983 prefix="$acl_save_prefix"
13984
13985 if test "X$x" = "X$element"; then
13986 haveit=yes
13987 break
13988 fi
13989 done
13990 if test -z "$haveit"; then
13991 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
13992 fi
13993 done
13994
13995
13996 for element in -F$framework; do
13997 haveit=
13998 for x in $OBJCCXXFLAGS; do
13999
14000 acl_save_prefix="$prefix"
14001 prefix="$acl_final_prefix"
14002 acl_save_exec_prefix="$exec_prefix"
14003 exec_prefix="$acl_final_exec_prefix"
14004 eval x=\"$x\"
14005 exec_prefix="$acl_save_exec_prefix"
14006 prefix="$acl_save_prefix"
14007
14008 if test "X$x" = "X$element"; then
14009 haveit=yes
14010 break
14011 fi
14012 done
14013 if test -z "$haveit"; then
14014 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
14015 fi
14016 done
14017
14018 done
14019
14020 fi
14021
14022 ac_ext=cpp
14023 ac_cpp='$CXXCPP $CPPFLAGS'
14024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14029 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14030 if test "${ac_cv_path_SED+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14034 for ac_i in 1 2 3 4 5 6 7; do
14035 ac_script="$ac_script$as_nl$ac_script"
14036 done
14037 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14038 { ac_script=; unset ac_script;}
14039 if test -z "$SED"; then
14040 ac_path_SED_found=false
14041 # Loop through the user's path and test for each of PROGNAME-LIST
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 for ac_prog in sed gsed; do
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14050 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
14051 # Check for GNU ac_path_SED and select it if it is found.
14052 # Check for GNU $ac_path_SED
14053 case `"$ac_path_SED" --version 2>&1` in
14054 *GNU*)
14055 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14056 *)
14057 ac_count=0
14058 $as_echo_n 0123456789 >"conftest.in"
14059 while :
14060 do
14061 cat "conftest.in" "conftest.in" >"conftest.tmp"
14062 mv "conftest.tmp" "conftest.in"
14063 cp "conftest.in" "conftest.nl"
14064 $as_echo '' >> "conftest.nl"
14065 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14067 as_fn_arith $ac_count + 1 && ac_count=$as_val
14068 if test $ac_count -gt ${ac_path_SED_max-0}; then
14069 # Best one so far, save it but keep looking for a better one
14070 ac_cv_path_SED="$ac_path_SED"
14071 ac_path_SED_max=$ac_count
14072 fi
14073 # 10*(2^10) chars as input seems more than enough
14074 test $ac_count -gt 10 && break
14075 done
14076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14077 esac
14078
14079 $ac_path_SED_found && break 3
14080 done
14081 done
14082 done
14083 IFS=$as_save_IFS
14084 if test -z "$ac_cv_path_SED"; then
14085 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
14086 fi
14087 else
14088 ac_cv_path_SED=$SED
14089 fi
14090
14091 fi
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14093 $as_echo "$ac_cv_path_SED" >&6; }
14094 SED="$ac_cv_path_SED"
14095 rm -f conftest.sed
14096
14097 for ac_prog in 'bison -y' byacc
14098 do
14099 # Extract the first word of "$ac_prog", so it can be a program name with args.
14100 set dummy $ac_prog; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if test "${ac_cv_prog_YACC+set}" = set; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$YACC"; then
14107 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14111 do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116 ac_cv_prog_YACC="$ac_prog"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14119 fi
14120 done
14121 done
14122 IFS=$as_save_IFS
14123
14124 fi
14125 fi
14126 YACC=$ac_cv_prog_YACC
14127 if test -n "$YACC"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14129 $as_echo "$YACC" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14133 fi
14134
14135
14136 test -n "$YACC" && break
14137 done
14138 test -n "$YACC" || YACC="yacc"
14139
14140
14141
14142
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
14145 $as_echo_n "checking if bison is the parser generator... " >&6; }
14146 if test "${ax_cv_prog_bison+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149
14150 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
14151
14152 ax_cv_prog_bison=yes
14153
14154 else
14155
14156 ax_cv_prog_bison=no
14157
14158 fi
14159
14160 fi
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
14162 $as_echo "$ax_cv_prog_bison" >&6; }
14163 if test "$ax_cv_prog_bison" = yes; then :
14164
14165 :
14166
14167 BISON=`echo $YACC | $SED -e 's/ -y//'`
14168 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
14169
14170
14171 else
14172
14173 :
14174 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
14175
14176 fi
14177
14178 for ac_prog in gawk mawk nawk awk
14179 do
14180 # Extract the first word of "$ac_prog", so it can be a program name with args.
14181 set dummy $ac_prog; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if test "${ac_cv_prog_AWK+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$AWK"; then
14188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14192 do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_AWK="$ac_prog"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201 done
14202 done
14203 IFS=$as_save_IFS
14204
14205 fi
14206 fi
14207 AWK=$ac_cv_prog_AWK
14208 if test -n "$AWK"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14210 $as_echo "$AWK" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14214 fi
14215
14216
14217 test -n "$AWK" && break
14218 done
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5
14221 $as_echo_n "checking if bison is >= 2.3... " >&6; }
14222 as_arg_v1=$BISON_VERSION
14223 as_arg_v2=2.3
14224 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14225 case $? in #(
14226 1) :
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 $as_echo "no" >&6; }
14230 as_fn_error "You need bison 2.3 or greater" "$LINENO" 5
14231 ;; #(
14232 0) :
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14234 $as_echo "yes" >&6; } ;; #(
14235 2) :
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14237 $as_echo "yes" >&6; } ;; #(
14238 *) :
14239 ;;
14240 esac
14241
14242 # expand $ac_aux_dir to an absolute path
14243 am_aux_dir=`cd $ac_aux_dir && pwd`
14244
14245 if test x"${MISSING+set}" != xset; then
14246 case $am_aux_dir in
14247 *\ * | *\ *)
14248 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14249 *)
14250 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14251 esac
14252 fi
14253 # Use eval to expand $SHELL
14254 if eval "$MISSING --run true"; then
14255 am_missing_run="$MISSING --run "
14256 else
14257 am_missing_run=
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14259 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14260 fi
14261
14262 for ac_prog in flex lex
14263 do
14264 # Extract the first word of "$ac_prog", so it can be a program name with args.
14265 set dummy $ac_prog; ac_word=$2
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14267 $as_echo_n "checking for $ac_word... " >&6; }
14268 if test "${ac_cv_prog_LEX+set}" = set; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 if test -n "$LEX"; then
14272 ac_cv_prog_LEX="$LEX" # Let the user override the test.
14273 else
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14276 do
14277 IFS=$as_save_IFS
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14281 ac_cv_prog_LEX="$ac_prog"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 break 2
14284 fi
14285 done
14286 done
14287 IFS=$as_save_IFS
14288
14289 fi
14290 fi
14291 LEX=$ac_cv_prog_LEX
14292 if test -n "$LEX"; then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14294 $as_echo "$LEX" >&6; }
14295 else
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 $as_echo "no" >&6; }
14298 fi
14299
14300
14301 test -n "$LEX" && break
14302 done
14303 test -n "$LEX" || LEX=":"
14304
14305 if test "x$LEX" != "x:"; then
14306 cat >conftest.l <<_ACEOF
14307 %%
14308 a { ECHO; }
14309 b { REJECT; }
14310 c { yymore (); }
14311 d { yyless (1); }
14312 e { yyless (input () != 0); }
14313 f { unput (yytext[0]); }
14314 . { BEGIN INITIAL; }
14315 %%
14316 #ifdef YYTEXT_POINTER
14317 extern char *yytext;
14318 #endif
14319 int
14320 main (void)
14321 {
14322 return ! yylex () + ! yywrap ();
14323 }
14324 _ACEOF
14325 { { ac_try="$LEX conftest.l"
14326 case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329 esac
14330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14331 $as_echo "$ac_try_echo"; } >&5
14332 (eval "$LEX conftest.l") 2>&5
14333 ac_status=$?
14334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14335 test $ac_status = 0; }
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14337 $as_echo_n "checking lex output file root... " >&6; }
14338 if test "${ac_cv_prog_lex_root+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341
14342 if test -f lex.yy.c; then
14343 ac_cv_prog_lex_root=lex.yy
14344 elif test -f lexyy.c; then
14345 ac_cv_prog_lex_root=lexyy
14346 else
14347 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
14348 fi
14349 fi
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14351 $as_echo "$ac_cv_prog_lex_root" >&6; }
14352 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14353
14354 if test -z "${LEXLIB+set}"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14356 $as_echo_n "checking lex library... " >&6; }
14357 if test "${ac_cv_lib_lex+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360
14361 ac_save_LIBS=$LIBS
14362 ac_cv_lib_lex='none needed'
14363 for ac_lib in '' -lfl -ll; do
14364 LIBS="$ac_lib $ac_save_LIBS"
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 `cat $LEX_OUTPUT_ROOT.c`
14368 _ACEOF
14369 if ac_fn_cxx_try_link "$LINENO"; then :
14370 ac_cv_lib_lex=$ac_lib
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 test "$ac_cv_lib_lex" != 'none needed' && break
14375 done
14376 LIBS=$ac_save_LIBS
14377
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14380 $as_echo "$ac_cv_lib_lex" >&6; }
14381 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14382 fi
14383
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14386 $as_echo_n "checking whether yytext is a pointer... " >&6; }
14387 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 # POSIX says lex can declare yytext either as a pointer or an array; the
14391 # default is implementation-dependent. Figure out which it is, since
14392 # not all implementations provide the %pointer and %array declarations.
14393 ac_cv_prog_lex_yytext_pointer=no
14394 ac_save_LIBS=$LIBS
14395 LIBS="$LEXLIB $ac_save_LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398 #define YYTEXT_POINTER 1
14399 `cat $LEX_OUTPUT_ROOT.c`
14400 _ACEOF
14401 if ac_fn_cxx_try_link "$LINENO"; then :
14402 ac_cv_prog_lex_yytext_pointer=yes
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_save_LIBS
14407
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14410 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14411 if test $ac_cv_prog_lex_yytext_pointer = yes; then
14412
14413 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14414
14415 fi
14416 rm -f conftest.l $LEX_OUTPUT_ROOT.c
14417
14418 fi
14419 if test "$LEX" = :; then
14420 LEX=${am_missing_run}flex
14421 fi
14422
14423
14424
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
14427 $as_echo_n "checking if flex is the lexer generator... " >&6; }
14428 if test "${ax_cv_prog_flex+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431
14432 if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then :
14433
14434 ax_cv_prog_flex=yes
14435
14436 else
14437
14438 ax_cv_prog_flex=no
14439
14440 fi
14441
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
14444 $as_echo "$ax_cv_prog_flex" >&6; }
14445 if test "$ax_cv_prog_flex" = yes; then :
14446
14447 :
14448
14449 FLEX=$LEX
14450 FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14451
14452
14453 else
14454
14455 :
14456 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14457
14458 fi
14459
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5
14461 $as_echo_n "checking if flex is >= 2.5.33... " >&6; }
14462 as_arg_v1=$FLEX_VERSION
14463 as_arg_v2=2.5.33
14464 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14465 case $? in #(
14466 1) :
14467
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5
14471 ;; #(
14472 0) :
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14474 $as_echo "yes" >&6; } ;; #(
14475 2) :
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14477 $as_echo "yes" >&6; } ;; #(
14478 *) :
14479 ;;
14480 esac
14481
14482 for ac_prog in bash
14483 do
14484 # Extract the first word of "$ac_prog", so it can be a program name with args.
14485 set dummy $ac_prog; ac_word=$2
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487 $as_echo_n "checking for $ac_word... " >&6; }
14488 if test "${ac_cv_prog__BASH+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 if test -n "$_BASH"; then
14492 ac_cv_prog__BASH="$_BASH" # Let the user override the test.
14493 else
14494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495 for as_dir in $PATH
14496 do
14497 IFS=$as_save_IFS
14498 test -z "$as_dir" && as_dir=.
14499 for ac_exec_ext in '' $ac_executable_extensions; do
14500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14501 ac_cv_prog__BASH="$ac_prog"
14502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503 break 2
14504 fi
14505 done
14506 done
14507 IFS=$as_save_IFS
14508
14509 fi
14510 fi
14511 _BASH=$ac_cv_prog__BASH
14512 if test -n "$_BASH"; then
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
14514 $as_echo "$_BASH" >&6; }
14515 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14518 fi
14519
14520
14521 test -n "$_BASH" && break
14522 done
14523
14524
14525 for ac_prog in gperf
14526 do
14527 # Extract the first word of "$ac_prog", so it can be a program name with args.
14528 set dummy $ac_prog; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530 $as_echo_n "checking for $ac_word... " >&6; }
14531 if test "${ac_cv_prog_GPERF+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 if test -n "$GPERF"; then
14535 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14536 else
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $PATH
14539 do
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14544 ac_cv_prog_GPERF="$ac_prog"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 break 2
14547 fi
14548 done
14549 done
14550 IFS=$as_save_IFS
14551
14552 fi
14553 fi
14554 GPERF=$ac_cv_prog_GPERF
14555 if test -n "$GPERF"; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14557 $as_echo "$GPERF" >&6; }
14558 else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560 $as_echo "no" >&6; }
14561 fi
14562
14563
14564 test -n "$GPERF" && break
14565 done
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5
14568 $as_echo_n "checking if gperf >= 3.0.3... " >&6; }
14569 GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`
14570 as_arg_v1=$GPERF_VERSION
14571 as_arg_v2=3.0.3
14572 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
14573 case $? in #(
14574 1) :
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577 $as_echo "no" >&6; }
14578 as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5
14579 ;; #(
14580 0) :
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14582 $as_echo "yes" >&6; } ;; #(
14583 2) :
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14585 $as_echo "yes" >&6; } ;; #(
14586 *) :
14587 ;;
14588 esac
14589 for ac_prog in time
14590 do
14591 # Extract the first word of "$ac_prog", so it can be a program name with args.
14592 set dummy $ac_prog; ac_word=$2
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594 $as_echo_n "checking for $ac_word... " >&6; }
14595 if test "${ac_cv_prog_TIME+set}" = set; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 if test -n "$TIME"; then
14599 ac_cv_prog_TIME="$TIME" # Let the user override the test.
14600 else
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14603 do
14604 IFS=$as_save_IFS
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14608 ac_cv_prog_TIME="$ac_prog"
14609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14610 break 2
14611 fi
14612 done
14613 done
14614 IFS=$as_save_IFS
14615
14616 fi
14617 fi
14618 TIME=$ac_cv_prog_TIME
14619 if test -n "$TIME"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
14621 $as_echo "$TIME" >&6; }
14622 else
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14625 fi
14626
14627
14628 test -n "$TIME" && break
14629 done
14630
14631
14632 apr_found="no"
14633
14634 if test "$target_os" = "os2-emx"; then
14635 # Scripts don't pass test -x on OS/2
14636 TEST_X="test -f"
14637 else
14638 TEST_X="test -x"
14639 fi
14640
14641 acceptable_majors="1"
14642
14643 apr_temp_acceptable_apr_config=""
14644 for apr_temp_major in $acceptable_majors
14645 do
14646 case $apr_temp_major in
14647 0)
14648 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
14649 ;;
14650 *)
14651 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
14652 ;;
14653 esac
14654 done
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
14657 $as_echo_n "checking for APR... " >&6; }
14658
14659 # Check whether --with-apr was given.
14660 if test "${with_apr+set}" = set; then :
14661 withval=$with_apr;
14662 if test "$withval" = "no" || test "$withval" = "yes"; then
14663 as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5
14664 fi
14665
14666 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14667 do
14668 for lookdir in "$withval/bin" "$withval"
14669 do
14670 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
14671 apr_config="$lookdir/$apr_temp_apr_config_file"
14672
14673 apr_found="yes"
14674 break 2
14675 fi
14676 done
14677 done
14678
14679 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
14680 apr_config="$withval"
14681 apr_found="yes"
14682 fi
14683
14684 if test "$apr_found" != "yes"; then
14685 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
14686 fi
14687
14688 else
14689
14690 if test -n "1" && test "1" = "1"; then
14691 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
14692 do
14693 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
14694 apr_config="$apr_temp_apr_config_file"
14695
14696 apr_found="yes"
14697 break
14698 else
14699 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
14700 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
14701 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
14702
14703 apr_found="yes"
14704 break 2
14705 fi
14706 done
14707 fi
14708 done
14709 fi
14710 if test "$apr_found" = "no" && test -d ""; then
14711 apr_temp_abs_srcdir="`cd && pwd`"
14712 apr_found="reconfig"
14713 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
14714 case $apr_bundled_major in
14715 "")
14716 as_fn_error "failed to find major version of bundled APR" "$LINENO" 5
14717 ;;
14718 0)
14719 apr_temp_apr_config_file="apr-config"
14720 ;;
14721 *)
14722 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
14723 ;;
14724 esac
14725 if test -n ""; then
14726 apr_config="/$apr_temp_apr_config_file"
14727 else
14728 apr_config="/$apr_temp_apr_config_file"
14729 fi
14730 fi
14731
14732 fi
14733
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
14736 $as_echo "$apr_found" >&6; }
14737
14738 case $apr_found in #(
14739 yes) :
14740
14741
14742 for element in `$apr_config --includes`; do
14743 haveit=
14744 for x in $CPPFLAGS; do
14745
14746 acl_save_prefix="$prefix"
14747 prefix="$acl_final_prefix"
14748 acl_save_exec_prefix="$exec_prefix"
14749 exec_prefix="$acl_final_exec_prefix"
14750 eval x=\"$x\"
14751 exec_prefix="$acl_save_exec_prefix"
14752 prefix="$acl_save_prefix"
14753
14754 if test "X$x" = "X$element"; then
14755 haveit=yes
14756 break
14757 fi
14758 done
14759 if test -z "$haveit"; then
14760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14761 fi
14762 done
14763
14764 LTLIBAPR=`$apr_config --link-libtool`
14765
14766 ;; #(
14767 *) :
14768 as_fn_error "You need apr" "$LINENO" 5 ;;
14769 esac
14770
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14773 $as_echo_n "checking for a readline compatible library... " >&6; }
14774 if test "${vl_cv_lib_readline+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777
14778 ORIG_LIBS="$LIBS"
14779 for readline_lib in readline edit editline; do
14780 for termcap_lib in "" termcap curses ncurses; do
14781 if test -z "$termcap_lib"; then
14782 TRY_LIB="-l$readline_lib"
14783 else
14784 TRY_LIB="-l$readline_lib -l$termcap_lib"
14785 fi
14786 LIBS="$ORIG_LIBS $TRY_LIB"
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789
14790 /* Override any GCC internal prototype to avoid an error.
14791 Use char because int might match the return type of a GCC
14792 builtin and then its argument prototype would still apply. */
14793 #ifdef __cplusplus
14794 extern "C"
14795 #endif
14796 char readline ();
14797 int
14798 main ()
14799 {
14800 return readline ();
14801 ;
14802 return 0;
14803 }
14804 _ACEOF
14805 if ac_fn_cxx_try_link "$LINENO"; then :
14806 vl_cv_lib_readline="$TRY_LIB"
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810 if test -n "$vl_cv_lib_readline"; then
14811 break
14812 fi
14813 done
14814 if test -n "$vl_cv_lib_readline"; then
14815 break
14816 fi
14817 done
14818 if test -z "$vl_cv_lib_readline"; then
14819 vl_cv_lib_readline="no"
14820 LIBS="$ORIG_LIBS"
14821 fi
14822
14823 fi
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14825 $as_echo "$vl_cv_lib_readline" >&6; }
14826
14827 if test "$vl_cv_lib_readline" != "no"; then
14828
14829 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14830
14831 for ac_header in readline.h readline/readline.h
14832 do :
14833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14834 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14835 eval as_val=\$$as_ac_Header
14836 if test "x$as_val" = x""yes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14839 _ACEOF
14840
14841 fi
14842
14843 done
14844
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14846 $as_echo_n "checking whether readline supports history... " >&6; }
14847 if test "${vl_cv_lib_readline_history+set}" = set; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850
14851 vl_cv_lib_readline_history="no"
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854
14855 /* Override any GCC internal prototype to avoid an error.
14856 Use char because int might match the return type of a GCC
14857 builtin and then its argument prototype would still apply. */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 char add_history ();
14862 int
14863 main ()
14864 {
14865 return add_history ();
14866 ;
14867 return 0;
14868 }
14869 _ACEOF
14870 if ac_fn_cxx_try_link "$LINENO"; then :
14871 vl_cv_lib_readline_history="yes"
14872 fi
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14875
14876 fi
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14878 $as_echo "$vl_cv_lib_readline_history" >&6; }
14879 if test "$vl_cv_lib_readline_history" = "yes"; then
14880
14881 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14882
14883 for ac_header in history.h readline/history.h
14884 do :
14885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14886 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14887 eval as_val=\$$as_ac_Header
14888 if test "x$as_val" = x""yes; then :
14889 cat >>confdefs.h <<_ACEOF
14890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14891 _ACEOF
14892
14893 fi
14894
14895 done
14896
14897 fi
14898 fi
14899
14900 # Find a good install program. We prefer a C program (faster),
14901 # so one script is as good as another. But avoid the broken or
14902 # incompatible versions:
14903 # SysV /etc/install, /usr/sbin/install
14904 # SunOS /usr/etc/install
14905 # IRIX /sbin/install
14906 # AIX /bin/install
14907 # AmigaOS /C/install, which installs bootblocks on floppy discs
14908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14911 # OS/2's system install, which has a completely different semantic
14912 # ./install, which can be erroneously created by make from ./install.sh.
14913 # Reject install programs that cannot install multiple files.
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14915 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14916 if test -z "$INSTALL"; then
14917 if test "${ac_cv_path_install+set}" = set; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14922 do
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
14925 # Account for people who put trailing slashes in PATH elements.
14926 case $as_dir/ in #((
14927 ./ | .// | /[cC]/* | \
14928 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14929 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14930 /usr/ucb/* ) ;;
14931 *)
14932 # OSF1 and SCO ODT 3.0 have their own names for install.
14933 # Don't use installbsd from OSF since it installs stuff as root
14934 # by default.
14935 for ac_prog in ginstall scoinst install; do
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14938 if test $ac_prog = install &&
14939 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14940 # AIX install. It has an incompatible calling convention.
14941 :
14942 elif test $ac_prog = install &&
14943 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14944 # program-specific install script used by HP pwplus--don't use.
14945 :
14946 else
14947 rm -rf conftest.one conftest.two conftest.dir
14948 echo one > conftest.one
14949 echo two > conftest.two
14950 mkdir conftest.dir
14951 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14952 test -s conftest.one && test -s conftest.two &&
14953 test -s conftest.dir/conftest.one &&
14954 test -s conftest.dir/conftest.two
14955 then
14956 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14957 break 3
14958 fi
14959 fi
14960 fi
14961 done
14962 done
14963 ;;
14964 esac
14965
14966 done
14967 IFS=$as_save_IFS
14968
14969 rm -rf conftest.one conftest.two conftest.dir
14970
14971 fi
14972 if test "${ac_cv_path_install+set}" = set; then
14973 INSTALL=$ac_cv_path_install
14974 else
14975 # As a last resort, use the slow shell script. Don't cache a
14976 # value for INSTALL within a source directory, because that will
14977 # break other packages using the cache if that directory is
14978 # removed, or if the value is a relative name.
14979 INSTALL=$ac_install_sh
14980 fi
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14983 $as_echo "$INSTALL" >&6; }
14984
14985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14986 # It thinks the first close brace ends the variable substitution.
14987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14988
14989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14990
14991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14992
14993 ac_ext=c
14994 ac_cpp='$CPP $CPPFLAGS'
14995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14998
14999
15000 if test "X$prefix" = "XNONE"; then
15001 acl_final_prefix="$ac_default_prefix"
15002 else
15003 acl_final_prefix="$prefix"
15004 fi
15005 if test "X$exec_prefix" = "XNONE"; then
15006 acl_final_exec_prefix='${prefix}'
15007 else
15008 acl_final_exec_prefix="$exec_prefix"
15009 fi
15010 acl_save_prefix="$prefix"
15011 prefix="$acl_final_prefix"
15012 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15013 prefix="$acl_save_prefix"
15014
15015
15016 # Check whether --with-gnu-ld was given.
15017 if test "${with_gnu_ld+set}" = set; then :
15018 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15019 else
15020 with_gnu_ld=no
15021 fi
15022
15023 # Prepare PATH_SEPARATOR.
15024 # The user is always right.
15025 if test "${PATH_SEPARATOR+set}" != set; then
15026 echo "#! /bin/sh" >conf$$.sh
15027 echo "exit 0" >>conf$$.sh
15028 chmod +x conf$$.sh
15029 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15030 PATH_SEPARATOR=';'
15031 else
15032 PATH_SEPARATOR=:
15033 fi
15034 rm -f conf$$.sh
15035 fi
15036 ac_prog=ld
15037 if test "$GCC" = yes; then
15038 # Check if gcc -print-prog-name=ld gives a path.
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15040 $as_echo_n "checking for ld used by GCC... " >&6; }
15041 case $host in
15042 *-*-mingw*)
15043 # gcc leaves a trailing carriage return which upsets mingw
15044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15045 *)
15046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15047 esac
15048 case $ac_prog in
15049 # Accept absolute paths.
15050 [\\/]* | [A-Za-z]:[\\/]*)
15051 re_direlt='/[^/][^/]*/\.\./'
15052 # Canonicalize the path of ld
15053 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15054 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15055 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15056 done
15057 test -z "$LD" && LD="$ac_prog"
15058 ;;
15059 "")
15060 # If it fails, then pretend we aren't using GCC.
15061 ac_prog=ld
15062 ;;
15063 *)
15064 # If it is relative, then search for the first ld in PATH.
15065 with_gnu_ld=unknown
15066 ;;
15067 esac
15068 elif test "$with_gnu_ld" = yes; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15070 $as_echo_n "checking for GNU ld... " >&6; }
15071 else
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15073 $as_echo_n "checking for non-GNU ld... " >&6; }
15074 fi
15075 if test "${acl_cv_path_LD+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 if test -z "$LD"; then
15079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15080 for ac_dir in $PATH; do
15081 test -z "$ac_dir" && ac_dir=.
15082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15083 acl_cv_path_LD="$ac_dir/$ac_prog"
15084 # Check to see if the program is GNU ld. I'd rather use --version,
15085 # but apparently some GNU ld's only accept -v.
15086 # Break only if it was the GNU/non-GNU ld that we prefer.
15087 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15088 *GNU* | *'with BFD'*)
15089 test "$with_gnu_ld" != no && break ;;
15090 *)
15091 test "$with_gnu_ld" != yes && break ;;
15092 esac
15093 fi
15094 done
15095 IFS="$ac_save_ifs"
15096 else
15097 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15098 fi
15099 fi
15100
15101 LD="$acl_cv_path_LD"
15102 if test -n "$LD"; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15104 $as_echo "$LD" >&6; }
15105 else
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107 $as_echo "no" >&6; }
15108 fi
15109 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15112 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15116 case `$LD -v 2>&1 </dev/null` in
15117 *GNU* | *'with BFD'*)
15118 acl_cv_prog_gnu_ld=yes ;;
15119 *)
15120 acl_cv_prog_gnu_ld=no ;;
15121 esac
15122 fi
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15124 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15125 with_gnu_ld=$acl_cv_prog_gnu_ld
15126
15127
15128
15129
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15131 $as_echo_n "checking for shared library run path origin... " >&6; }
15132 if test "${acl_cv_rpath+set}" = set; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135
15136 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15137 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15138 . ./conftest.sh
15139 rm -f ./conftest.sh
15140 acl_cv_rpath=done
15141
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15144 $as_echo "$acl_cv_rpath" >&6; }
15145 wl="$acl_cv_wl"
15146 acl_libext="$acl_cv_libext"
15147 acl_shlibext="$acl_cv_shlibext"
15148 acl_libname_spec="$acl_cv_libname_spec"
15149 acl_library_names_spec="$acl_cv_library_names_spec"
15150 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15151 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15152 acl_hardcode_direct="$acl_cv_hardcode_direct"
15153 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15154 # Check whether --enable-rpath was given.
15155 if test "${enable_rpath+set}" = set; then :
15156 enableval=$enable_rpath; :
15157 else
15158 enable_rpath=yes
15159 fi
15160
15161
15162
15163 acl_libdirstem=lib
15164 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15165 if test -n "$searchpath"; then
15166 acl_save_IFS="${IFS= }"; IFS=":"
15167 for searchdir in $searchpath; do
15168 if test -d "$searchdir"; then
15169 case "$searchdir" in
15170 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15171 *) searchdir=`cd "$searchdir" && pwd`
15172 case "$searchdir" in
15173 */lib64 ) acl_libdirstem=lib64 ;;
15174 esac ;;
15175 esac
15176 fi
15177 done
15178 IFS="$acl_save_IFS"
15179 fi
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189 use_additional=yes
15190
15191 acl_save_prefix="$prefix"
15192 prefix="$acl_final_prefix"
15193 acl_save_exec_prefix="$exec_prefix"
15194 exec_prefix="$acl_final_exec_prefix"
15195
15196 eval additional_includedir=\"$includedir\"
15197 eval additional_libdir=\"$libdir\"
15198
15199 exec_prefix="$acl_save_exec_prefix"
15200 prefix="$acl_save_prefix"
15201
15202
15203 # Check whether --with-libiconv-prefix was given.
15204 if test "${with_libiconv_prefix+set}" = set; then :
15205 withval=$with_libiconv_prefix;
15206 if test "X$withval" = "Xno"; then
15207 use_additional=no
15208 else
15209 if test "X$withval" = "X"; then
15210
15211 acl_save_prefix="$prefix"
15212 prefix="$acl_final_prefix"
15213 acl_save_exec_prefix="$exec_prefix"
15214 exec_prefix="$acl_final_exec_prefix"
15215
15216 eval additional_includedir=\"$includedir\"
15217 eval additional_libdir=\"$libdir\"
15218
15219 exec_prefix="$acl_save_exec_prefix"
15220 prefix="$acl_save_prefix"
15221
15222 else
15223 additional_includedir="$withval/include"
15224 additional_libdir="$withval/$acl_libdirstem"
15225 fi
15226 fi
15227
15228 fi
15229
15230 LIBICONV=
15231 LTLIBICONV=
15232 INCICONV=
15233 LIBICONV_PREFIX=
15234 rpathdirs=
15235 ltrpathdirs=
15236 names_already_handled=
15237 names_next_round='iconv '
15238 while test -n "$names_next_round"; do
15239 names_this_round="$names_next_round"
15240 names_next_round=
15241 for name in $names_this_round; do
15242 already_handled=
15243 for n in $names_already_handled; do
15244 if test "$n" = "$name"; then
15245 already_handled=yes
15246 break
15247 fi
15248 done
15249 if test -z "$already_handled"; then
15250 names_already_handled="$names_already_handled $name"
15251 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15252 eval value=\"\$HAVE_LIB$uppername\"
15253 if test -n "$value"; then
15254 if test "$value" = yes; then
15255 eval value=\"\$LIB$uppername\"
15256 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15257 eval value=\"\$LTLIB$uppername\"
15258 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15259 else
15260 :
15261 fi
15262 else
15263 found_dir=
15264 found_la=
15265 found_so=
15266 found_a=
15267 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15268 if test -n "$acl_shlibext"; then
15269 shrext=".$acl_shlibext" # typically: shrext=.so
15270 else
15271 shrext=
15272 fi
15273 if test $use_additional = yes; then
15274 dir="$additional_libdir"
15275 if test -n "$acl_shlibext"; then
15276 if test -f "$dir/$libname$shrext"; then
15277 found_dir="$dir"
15278 found_so="$dir/$libname$shrext"
15279 else
15280 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15281 ver=`(cd "$dir" && \
15282 for f in "$libname$shrext".*; do echo "$f"; done \
15283 | sed -e "s,^$libname$shrext\\\\.,," \
15284 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15285 | sed 1q ) 2>/dev/null`
15286 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15287 found_dir="$dir"
15288 found_so="$dir/$libname$shrext.$ver"
15289 fi
15290 else
15291 eval library_names=\"$acl_library_names_spec\"
15292 for f in $library_names; do
15293 if test -f "$dir/$f"; then
15294 found_dir="$dir"
15295 found_so="$dir/$f"
15296 break
15297 fi
15298 done
15299 fi
15300 fi
15301 fi
15302 if test "X$found_dir" = "X"; then
15303 if test -f "$dir/$libname.$acl_libext"; then
15304 found_dir="$dir"
15305 found_a="$dir/$libname.$acl_libext"
15306 fi
15307 fi
15308 if test "X$found_dir" != "X"; then
15309 if test -f "$dir/$libname.la"; then
15310 found_la="$dir/$libname.la"
15311 fi
15312 fi
15313 fi
15314 if test "X$found_dir" = "X"; then
15315 for x in $LDFLAGS $LTLIBICONV; 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 case "$x" in
15326 -L*)
15327 dir=`echo "X$x" | sed -e 's/^X-L//'`
15328 if test -n "$acl_shlibext"; then
15329 if test -f "$dir/$libname$shrext"; then
15330 found_dir="$dir"
15331 found_so="$dir/$libname$shrext"
15332 else
15333 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15334 ver=`(cd "$dir" && \
15335 for f in "$libname$shrext".*; do echo "$f"; done \
15336 | sed -e "s,^$libname$shrext\\\\.,," \
15337 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15338 | sed 1q ) 2>/dev/null`
15339 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15340 found_dir="$dir"
15341 found_so="$dir/$libname$shrext.$ver"
15342 fi
15343 else
15344 eval library_names=\"$acl_library_names_spec\"
15345 for f in $library_names; do
15346 if test -f "$dir/$f"; then
15347 found_dir="$dir"
15348 found_so="$dir/$f"
15349 break
15350 fi
15351 done
15352 fi
15353 fi
15354 fi
15355 if test "X$found_dir" = "X"; then
15356 if test -f "$dir/$libname.$acl_libext"; then
15357 found_dir="$dir"
15358 found_a="$dir/$libname.$acl_libext"
15359 fi
15360 fi
15361 if test "X$found_dir" != "X"; then
15362 if test -f "$dir/$libname.la"; then
15363 found_la="$dir/$libname.la"
15364 fi
15365 fi
15366 ;;
15367 esac
15368 if test "X$found_dir" != "X"; then
15369 break
15370 fi
15371 done
15372 fi
15373 if test "X$found_dir" != "X"; then
15374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15375 if test "X$found_so" != "X"; then
15376 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15377 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15378 else
15379 haveit=
15380 for x in $ltrpathdirs; do
15381 if test "X$x" = "X$found_dir"; then
15382 haveit=yes
15383 break
15384 fi
15385 done
15386 if test -z "$haveit"; then
15387 ltrpathdirs="$ltrpathdirs $found_dir"
15388 fi
15389 if test "$acl_hardcode_direct" = yes; then
15390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15391 else
15392 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15394 haveit=
15395 for x in $rpathdirs; do
15396 if test "X$x" = "X$found_dir"; then
15397 haveit=yes
15398 break
15399 fi
15400 done
15401 if test -z "$haveit"; then
15402 rpathdirs="$rpathdirs $found_dir"
15403 fi
15404 else
15405 haveit=
15406 for x in $LDFLAGS $LIBICONV; do
15407
15408 acl_save_prefix="$prefix"
15409 prefix="$acl_final_prefix"
15410 acl_save_exec_prefix="$exec_prefix"
15411 exec_prefix="$acl_final_exec_prefix"
15412 eval x=\"$x\"
15413 exec_prefix="$acl_save_exec_prefix"
15414 prefix="$acl_save_prefix"
15415
15416 if test "X$x" = "X-L$found_dir"; then
15417 haveit=yes
15418 break
15419 fi
15420 done
15421 if test -z "$haveit"; then
15422 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15423 fi
15424 if test "$acl_hardcode_minus_L" != no; then
15425 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15426 else
15427 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15428 fi
15429 fi
15430 fi
15431 fi
15432 else
15433 if test "X$found_a" != "X"; then
15434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15435 else
15436 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15437 fi
15438 fi
15439 additional_includedir=
15440 case "$found_dir" in
15441 */$acl_libdirstem | */$acl_libdirstem/)
15442 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15443 LIBICONV_PREFIX="$basedir"
15444 additional_includedir="$basedir/include"
15445 ;;
15446 esac
15447 if test "X$additional_includedir" != "X"; then
15448 if test "X$additional_includedir" != "X/usr/include"; then
15449 haveit=
15450 if test "X$additional_includedir" = "X/usr/local/include"; then
15451 if test -n "$GCC"; then
15452 case $host_os in
15453 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15454 esac
15455 fi
15456 fi
15457 if test -z "$haveit"; then
15458 for x in $CPPFLAGS $INCICONV; do
15459
15460 acl_save_prefix="$prefix"
15461 prefix="$acl_final_prefix"
15462 acl_save_exec_prefix="$exec_prefix"
15463 exec_prefix="$acl_final_exec_prefix"
15464 eval x=\"$x\"
15465 exec_prefix="$acl_save_exec_prefix"
15466 prefix="$acl_save_prefix"
15467
15468 if test "X$x" = "X-I$additional_includedir"; then
15469 haveit=yes
15470 break
15471 fi
15472 done
15473 if test -z "$haveit"; then
15474 if test -d "$additional_includedir"; then
15475 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15476 fi
15477 fi
15478 fi
15479 fi
15480 fi
15481 if test -n "$found_la"; then
15482 save_libdir="$libdir"
15483 case "$found_la" in
15484 */* | *\\*) . "$found_la" ;;
15485 *) . "./$found_la" ;;
15486 esac
15487 libdir="$save_libdir"
15488 for dep in $dependency_libs; do
15489 case "$dep" in
15490 -L*)
15491 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15492 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15493 haveit=
15494 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15495 if test -n "$GCC"; then
15496 case $host_os in
15497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15498 esac
15499 fi
15500 fi
15501 if test -z "$haveit"; then
15502 haveit=
15503 for x in $LDFLAGS $LIBICONV; do
15504
15505 acl_save_prefix="$prefix"
15506 prefix="$acl_final_prefix"
15507 acl_save_exec_prefix="$exec_prefix"
15508 exec_prefix="$acl_final_exec_prefix"
15509 eval x=\"$x\"
15510 exec_prefix="$acl_save_exec_prefix"
15511 prefix="$acl_save_prefix"
15512
15513 if test "X$x" = "X-L$additional_libdir"; then
15514 haveit=yes
15515 break
15516 fi
15517 done
15518 if test -z "$haveit"; then
15519 if test -d "$additional_libdir"; then
15520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15521 fi
15522 fi
15523 haveit=
15524 for x in $LDFLAGS $LTLIBICONV; do
15525
15526 acl_save_prefix="$prefix"
15527 prefix="$acl_final_prefix"
15528 acl_save_exec_prefix="$exec_prefix"
15529 exec_prefix="$acl_final_exec_prefix"
15530 eval x=\"$x\"
15531 exec_prefix="$acl_save_exec_prefix"
15532 prefix="$acl_save_prefix"
15533
15534 if test "X$x" = "X-L$additional_libdir"; then
15535 haveit=yes
15536 break
15537 fi
15538 done
15539 if test -z "$haveit"; then
15540 if test -d "$additional_libdir"; then
15541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15542 fi
15543 fi
15544 fi
15545 fi
15546 ;;
15547 -R*)
15548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15549 if test "$enable_rpath" != no; then
15550 haveit=
15551 for x in $rpathdirs; do
15552 if test "X$x" = "X$dir"; then
15553 haveit=yes
15554 break
15555 fi
15556 done
15557 if test -z "$haveit"; then
15558 rpathdirs="$rpathdirs $dir"
15559 fi
15560 haveit=
15561 for x in $ltrpathdirs; do
15562 if test "X$x" = "X$dir"; then
15563 haveit=yes
15564 break
15565 fi
15566 done
15567 if test -z "$haveit"; then
15568 ltrpathdirs="$ltrpathdirs $dir"
15569 fi
15570 fi
15571 ;;
15572 -l*)
15573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15574 ;;
15575 *.la)
15576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15577 ;;
15578 *)
15579 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15581 ;;
15582 esac
15583 done
15584 fi
15585 else
15586 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15588 fi
15589 fi
15590 fi
15591 done
15592 done
15593 if test "X$rpathdirs" != "X"; then
15594 if test -n "$acl_hardcode_libdir_separator"; then
15595 alldirs=
15596 for found_dir in $rpathdirs; do
15597 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15598 done
15599 acl_save_libdir="$libdir"
15600 libdir="$alldirs"
15601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15602 libdir="$acl_save_libdir"
15603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15604 else
15605 for found_dir in $rpathdirs; do
15606 acl_save_libdir="$libdir"
15607 libdir="$found_dir"
15608 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15609 libdir="$acl_save_libdir"
15610 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15611 done
15612 fi
15613 fi
15614 if test "X$ltrpathdirs" != "X"; then
15615 for found_dir in $ltrpathdirs; do
15616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15617 done
15618 fi
15619
15620
15621
15622
15623
15624
15625
15626 am_save_CPPFLAGS="$CPPFLAGS"
15627
15628 for element in $INCICONV; do
15629 haveit=
15630 for x in $CPPFLAGS; do
15631
15632 acl_save_prefix="$prefix"
15633 prefix="$acl_final_prefix"
15634 acl_save_exec_prefix="$exec_prefix"
15635 exec_prefix="$acl_final_exec_prefix"
15636 eval x=\"$x\"
15637 exec_prefix="$acl_save_exec_prefix"
15638 prefix="$acl_save_prefix"
15639
15640 if test "X$x" = "X$element"; then
15641 haveit=yes
15642 break
15643 fi
15644 done
15645 if test -z "$haveit"; then
15646 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15647 fi
15648 done
15649
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15652 $as_echo_n "checking for iconv... " >&6; }
15653 if test "${am_cv_func_iconv+set}" = set; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656
15657 am_cv_func_iconv="no, consider installing GNU libiconv"
15658 am_cv_lib_iconv=no
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 #include <stdlib.h>
15662 #include <iconv.h>
15663 int
15664 main ()
15665 {
15666 iconv_t cd = iconv_open("","");
15667 iconv(cd,NULL,NULL,NULL,NULL);
15668 iconv_close(cd);
15669 ;
15670 return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_link "$LINENO"; then :
15674 am_cv_func_iconv=yes
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 if test "$am_cv_func_iconv" != yes; then
15679 am_save_LIBS="$LIBS"
15680 LIBS="$LIBS $LIBICONV"
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include <stdlib.h>
15684 #include <iconv.h>
15685 int
15686 main ()
15687 {
15688 iconv_t cd = iconv_open("","");
15689 iconv(cd,NULL,NULL,NULL,NULL);
15690 iconv_close(cd);
15691 ;
15692 return 0;
15693 }
15694 _ACEOF
15695 if ac_fn_c_try_link "$LINENO"; then :
15696 am_cv_lib_iconv=yes
15697 am_cv_func_iconv=yes
15698 fi
15699 rm -f core conftest.err conftest.$ac_objext \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS="$am_save_LIBS"
15702 fi
15703
15704 fi
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15706 $as_echo "$am_cv_func_iconv" >&6; }
15707 if test "$am_cv_func_iconv" = yes; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15709 $as_echo_n "checking for working iconv... " >&6; }
15710 if test "${am_cv_func_iconv_works+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15712 else
15713
15714 am_save_LIBS="$LIBS"
15715 if test $am_cv_lib_iconv = yes; then
15716 LIBS="$LIBS $LIBICONV"
15717 fi
15718 if test "$cross_compiling" = yes; then :
15719 case "$host_os" in
15720 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15721 *) am_cv_func_iconv_works="guessing yes" ;;
15722 esac
15723 else
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726
15727 #include <iconv.h>
15728 #include <string.h>
15729 int main ()
15730 {
15731 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15732 returns. */
15733 {
15734 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15735 if (cd_utf8_to_88591 != (iconv_t)(-1))
15736 {
15737 static const char input[] = "\342\202\254"; /* EURO SIGN */
15738 char buf[10];
15739 const char *inptr = input;
15740 size_t inbytesleft = strlen (input);
15741 char *outptr = buf;
15742 size_t outbytesleft = sizeof (buf);
15743 size_t res = iconv (cd_utf8_to_88591,
15744 (char **) &inptr, &inbytesleft,
15745 &outptr, &outbytesleft);
15746 if (res == 0)
15747 return 1;
15748 }
15749 }
15750 #if 0 /* This bug could be worked around by the caller. */
15751 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15752 {
15753 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15754 if (cd_88591_to_utf8 != (iconv_t)(-1))
15755 {
15756 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15757 char buf[50];
15758 const char *inptr = input;
15759 size_t inbytesleft = strlen (input);
15760 char *outptr = buf;
15761 size_t outbytesleft = sizeof (buf);
15762 size_t res = iconv (cd_88591_to_utf8,
15763 (char **) &inptr, &inbytesleft,
15764 &outptr, &outbytesleft);
15765 if ((int)res > 0)
15766 return 1;
15767 }
15768 }
15769 #endif
15770 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15771 provided. */
15772 if (/* Try standardized names. */
15773 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15774 /* Try IRIX, OSF/1 names. */
15775 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15776 /* Try AIX names. */
15777 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15778 /* Try HP-UX names. */
15779 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15780 return 1;
15781 return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_run "$LINENO"; then :
15785 am_cv_func_iconv_works=yes
15786 else
15787 am_cv_func_iconv_works=no
15788 fi
15789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15790 conftest.$ac_objext conftest.beam conftest.$ac_ext
15791 fi
15792
15793 LIBS="$am_save_LIBS"
15794
15795 fi
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15797 $as_echo "$am_cv_func_iconv_works" >&6; }
15798 case "$am_cv_func_iconv_works" in
15799 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15800 *) am_func_iconv=yes ;;
15801 esac
15802 else
15803 am_func_iconv=no am_cv_lib_iconv=no
15804 fi
15805 if test "$am_func_iconv" = yes; then
15806
15807 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15808
15809 fi
15810 if test "$am_cv_lib_iconv" = yes; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15812 $as_echo_n "checking how to link with libiconv... " >&6; }
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15814 $as_echo "$LIBICONV" >&6; }
15815 else
15816 CPPFLAGS="$am_save_CPPFLAGS"
15817 LIBICONV=
15818 LTLIBICONV=
15819 fi
15820
15821
15822
15823 if test "$am_cv_func_iconv" = yes; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15825 $as_echo_n "checking for iconv declaration... " >&6; }
15826 if test "${am_cv_proto_iconv+set}" = set; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15829
15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832
15833 #include <stdlib.h>
15834 #include <iconv.h>
15835 extern
15836 #ifdef __cplusplus
15837 "C"
15838 #endif
15839 #if defined(__STDC__) || defined(__cplusplus)
15840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15841 #else
15842 size_t iconv();
15843 #endif
15844
15845 int
15846 main ()
15847 {
15848
15849 ;
15850 return 0;
15851 }
15852 _ACEOF
15853 if ac_fn_c_try_compile "$LINENO"; then :
15854 am_cv_proto_iconv_arg1=""
15855 else
15856 am_cv_proto_iconv_arg1="const"
15857 fi
15858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859 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);"
15860 fi
15861
15862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15864 }$am_cv_proto_iconv" >&5
15865 $as_echo "${ac_t:-
15866 }$am_cv_proto_iconv" >&6; }
15867
15868 cat >>confdefs.h <<_ACEOF
15869 #define ICONV_CONST $am_cv_proto_iconv_arg1
15870 _ACEOF
15871
15872 fi
15873
15874 ac_ext=cpp
15875 ac_cpp='$CXXCPP $CPPFLAGS'
15876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15879
15880 case $am_cv_func_iconv in #(
15881 yes) :
15882 ;; #(
15883 *) :
15884 as_fn_error "You need iconv" "$LINENO" 5 ;;
15885 esac
15886
15887 pkg_failed=no
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15889 $as_echo_n "checking for WEBKIT... " >&6; }
15890
15891 if test -n "$PKG_CONFIG"; then
15892 if test -n "$WEBKIT_CFLAGS"; then
15893 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15894 else
15895 if test -n "$PKG_CONFIG" && \
15896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15897 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15898 ac_status=$?
15899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15900 test $ac_status = 0; }; then
15901 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15902 else
15903 pkg_failed=yes
15904 fi
15905 fi
15906 else
15907 pkg_failed=untried
15908 fi
15909 if test -n "$PKG_CONFIG"; then
15910 if test -n "$WEBKIT_LIBS"; then
15911 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15912 else
15913 if test -n "$PKG_CONFIG" && \
15914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15915 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15916 ac_status=$?
15917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15918 test $ac_status = 0; }; then
15919 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15920 else
15921 pkg_failed=yes
15922 fi
15923 fi
15924 else
15925 pkg_failed=untried
15926 fi
15927
15928
15929
15930 if test $pkg_failed = yes; then
15931
15932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15933 _pkg_short_errors_supported=yes
15934 else
15935 _pkg_short_errors_supported=no
15936 fi
15937 if test $_pkg_short_errors_supported = yes; then
15938 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
15939 else
15940 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
15941 fi
15942 # Put the nasty error message in config.log where it belongs
15943 echo "$WEBKIT_PKG_ERRORS" >&5
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15947
15948
15949 pkg_failed=no
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15951 $as_echo_n "checking for WEBKIT... " >&6; }
15952
15953 if test -n "$PKG_CONFIG"; then
15954 if test -n "$WEBKIT_CFLAGS"; then
15955 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15956 else
15957 if test -n "$PKG_CONFIG" && \
15958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15959 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15960 ac_status=$?
15961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962 test $ac_status = 0; }; then
15963 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15964 else
15965 pkg_failed=yes
15966 fi
15967 fi
15968 else
15969 pkg_failed=untried
15970 fi
15971 if test -n "$PKG_CONFIG"; then
15972 if test -n "$WEBKIT_LIBS"; then
15973 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15974 else
15975 if test -n "$PKG_CONFIG" && \
15976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15977 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15978 ac_status=$?
15979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15980 test $ac_status = 0; }; then
15981 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15982 else
15983 pkg_failed=yes
15984 fi
15985 fi
15986 else
15987 pkg_failed=untried
15988 fi
15989
15990
15991
15992 if test $pkg_failed = yes; then
15993
15994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15995 _pkg_short_errors_supported=yes
15996 else
15997 _pkg_short_errors_supported=no
15998 fi
15999 if test $_pkg_short_errors_supported = yes; then
16000 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16001 else
16002 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16003 fi
16004 # Put the nasty error message in config.log where it belongs
16005 echo "$WEBKIT_PKG_ERRORS" >&5
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008 $as_echo "no" >&6; }
16009
16010
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16012 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16013 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16014 $as_echo_n "(cached) " >&6
16015 else
16016
16017 ac_check_framework_save_LIBS=$LIBS
16018 LIBS="-framework JavaScriptCore $LIBS"
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16021
16022 #include <JavaScriptCore/JSBase.h>
16023
16024 int
16025 main ()
16026 {
16027 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_cxx_try_link "$LINENO"; then :
16033
16034 ac_cv_framework_JavaScriptCore=yes
16035
16036 else
16037 ac_cv_framework_JavaScriptCore=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_framework_save_LIBS
16042
16043 fi
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16045 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16046 if test $ac_cv_framework_JavaScriptCore = yes; then :
16047
16048
16049 for element in "-framework JavaScriptCore $LIBS"; do
16050 haveit=
16051 for x in $LIBS; do
16052
16053 acl_save_prefix="$prefix"
16054 prefix="$acl_final_prefix"
16055 acl_save_exec_prefix="$exec_prefix"
16056 exec_prefix="$acl_final_exec_prefix"
16057 eval x=\"$x\"
16058 exec_prefix="$acl_save_exec_prefix"
16059 prefix="$acl_save_prefix"
16060
16061 if test "X$x" = "X$element"; then
16062 haveit=yes
16063 break
16064 fi
16065 done
16066 if test -z "$haveit"; then
16067 LIBS="${LIBS}${LIBS:+ }$element"
16068 fi
16069 done
16070
16071 CY_EXECUTE=1
16072
16073 fi
16074
16075 elif test $pkg_failed = untried; then
16076
16077
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16079 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16080 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16081 $as_echo_n "(cached) " >&6
16082 else
16083
16084 ac_check_framework_save_LIBS=$LIBS
16085 LIBS="-framework JavaScriptCore $LIBS"
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088
16089 #include <JavaScriptCore/JSBase.h>
16090
16091 int
16092 main ()
16093 {
16094 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16095 ;
16096 return 0;
16097 }
16098 _ACEOF
16099 if ac_fn_cxx_try_link "$LINENO"; then :
16100
16101 ac_cv_framework_JavaScriptCore=yes
16102
16103 else
16104 ac_cv_framework_JavaScriptCore=no
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108 LIBS=$ac_check_framework_save_LIBS
16109
16110 fi
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16112 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16113 if test $ac_cv_framework_JavaScriptCore = yes; then :
16114
16115
16116 for element in "-framework JavaScriptCore $LIBS"; do
16117 haveit=
16118 for x in $LIBS; do
16119
16120 acl_save_prefix="$prefix"
16121 prefix="$acl_final_prefix"
16122 acl_save_exec_prefix="$exec_prefix"
16123 exec_prefix="$acl_final_exec_prefix"
16124 eval x=\"$x\"
16125 exec_prefix="$acl_save_exec_prefix"
16126 prefix="$acl_save_prefix"
16127
16128 if test "X$x" = "X$element"; then
16129 haveit=yes
16130 break
16131 fi
16132 done
16133 if test -z "$haveit"; then
16134 LIBS="${LIBS}${LIBS:+ }$element"
16135 fi
16136 done
16137
16138 CY_EXECUTE=1
16139
16140 fi
16141
16142 else
16143 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16144 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16146 $as_echo "yes" >&6; }
16147
16148 CY_EXECUTE=1
16149
16150 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16151 haveit=
16152 for x in $CXXFLAGS; do
16153
16154 acl_save_prefix="$prefix"
16155 prefix="$acl_final_prefix"
16156 acl_save_exec_prefix="$exec_prefix"
16157 exec_prefix="$acl_final_exec_prefix"
16158 eval x=\"$x\"
16159 exec_prefix="$acl_save_exec_prefix"
16160 prefix="$acl_save_prefix"
16161
16162 if test "X$x" = "X$element"; then
16163 haveit=yes
16164 break
16165 fi
16166 done
16167 if test -z "$haveit"; then
16168 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16169 fi
16170 done
16171
16172
16173 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16174 haveit=
16175 for x in $LIBS; do
16176
16177 acl_save_prefix="$prefix"
16178 prefix="$acl_final_prefix"
16179 acl_save_exec_prefix="$exec_prefix"
16180 exec_prefix="$acl_final_exec_prefix"
16181 eval x=\"$x\"
16182 exec_prefix="$acl_save_exec_prefix"
16183 prefix="$acl_save_prefix"
16184
16185 if test "X$x" = "X$element"; then
16186 haveit=yes
16187 break
16188 fi
16189 done
16190 if test -z "$haveit"; then
16191 LIBS="${LIBS}${LIBS:+ }$element"
16192 fi
16193 done
16194
16195
16196 fi
16197
16198 elif test $pkg_failed = untried; then
16199
16200
16201 pkg_failed=no
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16203 $as_echo_n "checking for WEBKIT... " >&6; }
16204
16205 if test -n "$PKG_CONFIG"; then
16206 if test -n "$WEBKIT_CFLAGS"; then
16207 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16208 else
16209 if test -n "$PKG_CONFIG" && \
16210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16211 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16212 ac_status=$?
16213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16214 test $ac_status = 0; }; then
16215 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16216 else
16217 pkg_failed=yes
16218 fi
16219 fi
16220 else
16221 pkg_failed=untried
16222 fi
16223 if test -n "$PKG_CONFIG"; then
16224 if test -n "$WEBKIT_LIBS"; then
16225 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16226 else
16227 if test -n "$PKG_CONFIG" && \
16228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16229 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16230 ac_status=$?
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; }; then
16233 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16234 else
16235 pkg_failed=yes
16236 fi
16237 fi
16238 else
16239 pkg_failed=untried
16240 fi
16241
16242
16243
16244 if test $pkg_failed = yes; then
16245
16246 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16247 _pkg_short_errors_supported=yes
16248 else
16249 _pkg_short_errors_supported=no
16250 fi
16251 if test $_pkg_short_errors_supported = yes; then
16252 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
16253 else
16254 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
16255 fi
16256 # Put the nasty error message in config.log where it belongs
16257 echo "$WEBKIT_PKG_ERRORS" >&5
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16261
16262
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16264 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16265 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16266 $as_echo_n "(cached) " >&6
16267 else
16268
16269 ac_check_framework_save_LIBS=$LIBS
16270 LIBS="-framework JavaScriptCore $LIBS"
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16273
16274 #include <JavaScriptCore/JSBase.h>
16275
16276 int
16277 main ()
16278 {
16279 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16280 ;
16281 return 0;
16282 }
16283 _ACEOF
16284 if ac_fn_cxx_try_link "$LINENO"; then :
16285
16286 ac_cv_framework_JavaScriptCore=yes
16287
16288 else
16289 ac_cv_framework_JavaScriptCore=no
16290 fi
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_framework_save_LIBS
16294
16295 fi
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16297 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16298 if test $ac_cv_framework_JavaScriptCore = yes; then :
16299
16300
16301 for element in "-framework JavaScriptCore $LIBS"; do
16302 haveit=
16303 for x in $LIBS; do
16304
16305 acl_save_prefix="$prefix"
16306 prefix="$acl_final_prefix"
16307 acl_save_exec_prefix="$exec_prefix"
16308 exec_prefix="$acl_final_exec_prefix"
16309 eval x=\"$x\"
16310 exec_prefix="$acl_save_exec_prefix"
16311 prefix="$acl_save_prefix"
16312
16313 if test "X$x" = "X$element"; then
16314 haveit=yes
16315 break
16316 fi
16317 done
16318 if test -z "$haveit"; then
16319 LIBS="${LIBS}${LIBS:+ }$element"
16320 fi
16321 done
16322
16323 CY_EXECUTE=1
16324
16325 fi
16326
16327 elif test $pkg_failed = untried; then
16328
16329
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16331 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16332 if test "${ac_cv_framework_JavaScriptCore+set}" = set; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335
16336 ac_check_framework_save_LIBS=$LIBS
16337 LIBS="-framework JavaScriptCore $LIBS"
16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16340
16341 #include <JavaScriptCore/JSBase.h>
16342
16343 int
16344 main ()
16345 {
16346 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16347 ;
16348 return 0;
16349 }
16350 _ACEOF
16351 if ac_fn_cxx_try_link "$LINENO"; then :
16352
16353 ac_cv_framework_JavaScriptCore=yes
16354
16355 else
16356 ac_cv_framework_JavaScriptCore=no
16357 fi
16358 rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360 LIBS=$ac_check_framework_save_LIBS
16361
16362 fi
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16364 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16365 if test $ac_cv_framework_JavaScriptCore = yes; then :
16366
16367
16368 for element in "-framework JavaScriptCore $LIBS"; do
16369 haveit=
16370 for x in $LIBS; do
16371
16372 acl_save_prefix="$prefix"
16373 prefix="$acl_final_prefix"
16374 acl_save_exec_prefix="$exec_prefix"
16375 exec_prefix="$acl_final_exec_prefix"
16376 eval x=\"$x\"
16377 exec_prefix="$acl_save_exec_prefix"
16378 prefix="$acl_save_prefix"
16379
16380 if test "X$x" = "X$element"; then
16381 haveit=yes
16382 break
16383 fi
16384 done
16385 if test -z "$haveit"; then
16386 LIBS="${LIBS}${LIBS:+ }$element"
16387 fi
16388 done
16389
16390 CY_EXECUTE=1
16391
16392 fi
16393
16394 else
16395 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16396 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16398 $as_echo "yes" >&6; }
16399
16400 CY_EXECUTE=1
16401
16402 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16403 haveit=
16404 for x in $CXXFLAGS; do
16405
16406 acl_save_prefix="$prefix"
16407 prefix="$acl_final_prefix"
16408 acl_save_exec_prefix="$exec_prefix"
16409 exec_prefix="$acl_final_exec_prefix"
16410 eval x=\"$x\"
16411 exec_prefix="$acl_save_exec_prefix"
16412 prefix="$acl_save_prefix"
16413
16414 if test "X$x" = "X$element"; then
16415 haveit=yes
16416 break
16417 fi
16418 done
16419 if test -z "$haveit"; then
16420 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16421 fi
16422 done
16423
16424
16425 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16426 haveit=
16427 for x in $LIBS; do
16428
16429 acl_save_prefix="$prefix"
16430 prefix="$acl_final_prefix"
16431 acl_save_exec_prefix="$exec_prefix"
16432 exec_prefix="$acl_final_exec_prefix"
16433 eval x=\"$x\"
16434 exec_prefix="$acl_save_exec_prefix"
16435 prefix="$acl_save_prefix"
16436
16437 if test "X$x" = "X$element"; then
16438 haveit=yes
16439 break
16440 fi
16441 done
16442 if test -z "$haveit"; then
16443 LIBS="${LIBS}${LIBS:+ }$element"
16444 fi
16445 done
16446
16447
16448 fi
16449
16450 else
16451 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16452 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16454 $as_echo "yes" >&6; }
16455
16456 CY_EXECUTE=1
16457
16458 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16459 haveit=
16460 for x in $CXXFLAGS; do
16461
16462 acl_save_prefix="$prefix"
16463 prefix="$acl_final_prefix"
16464 acl_save_exec_prefix="$exec_prefix"
16465 exec_prefix="$acl_final_exec_prefix"
16466 eval x=\"$x\"
16467 exec_prefix="$acl_save_exec_prefix"
16468 prefix="$acl_save_prefix"
16469
16470 if test "X$x" = "X$element"; then
16471 haveit=yes
16472 break
16473 fi
16474 done
16475 if test -z "$haveit"; then
16476 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16477 fi
16478 done
16479
16480
16481 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16482 haveit=
16483 for x in $LIBS; do
16484
16485 acl_save_prefix="$prefix"
16486 prefix="$acl_final_prefix"
16487 acl_save_exec_prefix="$exec_prefix"
16488 exec_prefix="$acl_final_exec_prefix"
16489 eval x=\"$x\"
16490 exec_prefix="$acl_save_exec_prefix"
16491 prefix="$acl_save_prefix"
16492
16493 if test "X$x" = "X$element"; then
16494 haveit=yes
16495 break
16496 fi
16497 done
16498 if test -z "$haveit"; then
16499 LIBS="${LIBS}${LIBS:+ }$element"
16500 fi
16501 done
16502
16503
16504 fi
16505
16506 case $CY_EXECUTE in #(
16507 1) :
16508
16509
16510
16511 pkg_failed=no
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
16513 $as_echo_n "checking for LIBFFI... " >&6; }
16514
16515 if test -n "$PKG_CONFIG"; then
16516 if test -n "$LIBFFI_CFLAGS"; then
16517 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
16518 else
16519 if test -n "$PKG_CONFIG" && \
16520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16521 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16522 ac_status=$?
16523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16524 test $ac_status = 0; }; then
16525 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
16526 else
16527 pkg_failed=yes
16528 fi
16529 fi
16530 else
16531 pkg_failed=untried
16532 fi
16533 if test -n "$PKG_CONFIG"; then
16534 if test -n "$LIBFFI_LIBS"; then
16535 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
16536 else
16537 if test -n "$PKG_CONFIG" && \
16538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
16539 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
16540 ac_status=$?
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }; then
16543 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
16544 else
16545 pkg_failed=yes
16546 fi
16547 fi
16548 else
16549 pkg_failed=untried
16550 fi
16551
16552
16553
16554 if test $pkg_failed = yes; then
16555
16556 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16557 _pkg_short_errors_supported=yes
16558 else
16559 _pkg_short_errors_supported=no
16560 fi
16561 if test $_pkg_short_errors_supported = yes; then
16562 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
16563 else
16564 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
16565 fi
16566 # Put the nasty error message in config.log where it belongs
16567 echo "$LIBFFI_PKG_ERRORS" >&5
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570 $as_echo "no" >&6; }
16571
16572 for ac_header in ffi.h ffi/ffi.h
16573 do :
16574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16576 eval as_val=\$$as_ac_Header
16577 if test "x$as_val" = x""yes; then :
16578 cat >>confdefs.h <<_ACEOF
16579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16580 _ACEOF
16581 break
16582 fi
16583
16584 done
16585
16586 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16587
16588 as_fn_error "You need libffi" "$LINENO" 5
16589
16590 fi
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16592 $as_echo_n "checking for library containing ffi_call... " >&6; }
16593 if test "${ac_cv_search_ffi_call+set}" = set; then :
16594 $as_echo_n "(cached) " >&6
16595 else
16596 ac_func_search_save_LIBS=$LIBS
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h. */
16599
16600 /* Override any GCC internal prototype to avoid an error.
16601 Use char because int might match the return type of a GCC
16602 builtin and then its argument prototype would still apply. */
16603 #ifdef __cplusplus
16604 extern "C"
16605 #endif
16606 char ffi_call ();
16607 int
16608 main ()
16609 {
16610 return ffi_call ();
16611 ;
16612 return 0;
16613 }
16614 _ACEOF
16615 for ac_lib in '' ffi; do
16616 if test -z "$ac_lib"; then
16617 ac_res="none required"
16618 else
16619 ac_res=-l$ac_lib
16620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16621 fi
16622 if ac_fn_cxx_try_link "$LINENO"; then :
16623 ac_cv_search_ffi_call=$ac_res
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext
16627 if test "${ac_cv_search_ffi_call+set}" = set; then :
16628 break
16629 fi
16630 done
16631 if test "${ac_cv_search_ffi_call+set}" = set; then :
16632
16633 else
16634 ac_cv_search_ffi_call=no
16635 fi
16636 rm conftest.$ac_ext
16637 LIBS=$ac_func_search_save_LIBS
16638 fi
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16640 $as_echo "$ac_cv_search_ffi_call" >&6; }
16641 ac_res=$ac_cv_search_ffi_call
16642 if test "$ac_res" != no; then :
16643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16644
16645 fi
16646
16647 case $ac_cv_search_ffi_call in #(
16648 no) :
16649
16650 as_fn_error "You need libffi" "$LINENO" 5
16651 ;; #(
16652 *) :
16653 ;;
16654 esac
16655
16656 elif test $pkg_failed = untried; then
16657
16658 for ac_header in ffi.h ffi/ffi.h
16659 do :
16660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16661 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16662 eval as_val=\$$as_ac_Header
16663 if test "x$as_val" = x""yes; then :
16664 cat >>confdefs.h <<_ACEOF
16665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16666 _ACEOF
16667 break
16668 fi
16669
16670 done
16671
16672 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
16673
16674 as_fn_error "You need libffi" "$LINENO" 5
16675
16676 fi
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
16678 $as_echo_n "checking for library containing ffi_call... " >&6; }
16679 if test "${ac_cv_search_ffi_call+set}" = set; then :
16680 $as_echo_n "(cached) " >&6
16681 else
16682 ac_func_search_save_LIBS=$LIBS
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685
16686 /* Override any GCC internal prototype to avoid an error.
16687 Use char because int might match the return type of a GCC
16688 builtin and then its argument prototype would still apply. */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 char ffi_call ();
16693 int
16694 main ()
16695 {
16696 return ffi_call ();
16697 ;
16698 return 0;
16699 }
16700 _ACEOF
16701 for ac_lib in '' ffi; do
16702 if test -z "$ac_lib"; then
16703 ac_res="none required"
16704 else
16705 ac_res=-l$ac_lib
16706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16707 fi
16708 if ac_fn_cxx_try_link "$LINENO"; then :
16709 ac_cv_search_ffi_call=$ac_res
16710 fi
16711 rm -f core conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext
16713 if test "${ac_cv_search_ffi_call+set}" = set; then :
16714 break
16715 fi
16716 done
16717 if test "${ac_cv_search_ffi_call+set}" = set; then :
16718
16719 else
16720 ac_cv_search_ffi_call=no
16721 fi
16722 rm conftest.$ac_ext
16723 LIBS=$ac_func_search_save_LIBS
16724 fi
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
16726 $as_echo "$ac_cv_search_ffi_call" >&6; }
16727 ac_res=$ac_cv_search_ffi_call
16728 if test "$ac_res" != no; then :
16729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16730
16731 fi
16732
16733 case $ac_cv_search_ffi_call in #(
16734 no) :
16735
16736 as_fn_error "You need libffi" "$LINENO" 5
16737 ;; #(
16738 *) :
16739 ;;
16740 esac
16741
16742 else
16743 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
16744 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16746 $as_echo "yes" >&6; }
16747
16748
16749 for element in `$PKG_CONFIG --cflags libffi`; do
16750 haveit=
16751 for x in $CXXFLAGS; do
16752
16753 acl_save_prefix="$prefix"
16754 prefix="$acl_final_prefix"
16755 acl_save_exec_prefix="$exec_prefix"
16756 exec_prefix="$acl_final_exec_prefix"
16757 eval x=\"$x\"
16758 exec_prefix="$acl_save_exec_prefix"
16759 prefix="$acl_save_prefix"
16760
16761 if test "X$x" = "X$element"; then
16762 haveit=yes
16763 break
16764 fi
16765 done
16766 if test -z "$haveit"; then
16767 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16768 fi
16769 done
16770
16771
16772 for element in `$PKG_CONFIG --libs libffi`; do
16773 haveit=
16774 for x in $LIBS; do
16775
16776 acl_save_prefix="$prefix"
16777 prefix="$acl_final_prefix"
16778 acl_save_exec_prefix="$exec_prefix"
16779 exec_prefix="$acl_final_exec_prefix"
16780 eval x=\"$x\"
16781 exec_prefix="$acl_save_exec_prefix"
16782 prefix="$acl_save_prefix"
16783
16784 if test "X$x" = "X$element"; then
16785 haveit=yes
16786 break
16787 fi
16788 done
16789 if test -z "$haveit"; then
16790 LIBS="${LIBS}${LIBS:+ }$element"
16791 fi
16792 done
16793
16794
16795 fi
16796 ac_ext=mm
16797 ac_cpp='$OBJCXXCPP $CPPFLAGS'
16798 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16799 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16800 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
16803 $as_echo_n "checking if we really have Objective C++... " >&6; }
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806
16807 // This space intentionally left blank
16808
16809 _ACEOF
16810 if ac_fn_objcxx_try_compile "$LINENO"; then :
16811
16812 CY_OBJECTIVEC=1
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 $as_echo "yes" >&6; }
16815
16816 else
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16818 $as_echo "no" >&6; }
16819 fi
16820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821 if test "x$CY_OBJECTIVEC" = x1; then :
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
16825 $as_echo_n "checking for framework CoreFoundation... " >&6; }
16826 if test "${ac_cv_framework_CoreFoundation+set}" = set; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829
16830 ac_check_framework_save_LIBS=$LIBS
16831 LIBS="-framework CoreFoundation $LIBS"
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834
16835 #include <CoreFoundation/CFBase.h>
16836
16837 int
16838 main ()
16839 {
16840 CFAllocatorGetDefault();
16841 ;
16842 return 0;
16843 }
16844 _ACEOF
16845 if ac_fn_objcxx_try_link "$LINENO"; then :
16846
16847 ac_cv_framework_CoreFoundation=yes
16848
16849 else
16850 ac_cv_framework_CoreFoundation=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_framework_save_LIBS
16855
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
16858 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
16859 if test $ac_cv_framework_CoreFoundation = yes; then :
16860
16861
16862 for element in "-framework CoreFoundation $LIBS"; do
16863 haveit=
16864 for x in $LIBS; do
16865
16866 acl_save_prefix="$prefix"
16867 prefix="$acl_final_prefix"
16868 acl_save_exec_prefix="$exec_prefix"
16869 exec_prefix="$acl_final_exec_prefix"
16870 eval x=\"$x\"
16871 exec_prefix="$acl_save_exec_prefix"
16872 prefix="$acl_save_prefix"
16873
16874 if test "X$x" = "X$element"; then
16875 haveit=yes
16876 break
16877 fi
16878 done
16879 if test -z "$haveit"; then
16880 LIBS="${LIBS}${LIBS:+ }$element"
16881 fi
16882 done
16883
16884
16885
16886
16887
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
16889 $as_echo_n "checking for framework Foundation... " >&6; }
16890 if test "${ac_cv_framework_Foundation+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16892 else
16893
16894 ac_check_framework_save_LIBS=$LIBS
16895 LIBS="-framework Foundation $LIBS"
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898
16899 #include <Foundation/NSObject.h>
16900
16901 int
16902 main ()
16903 {
16904 [[NSObject alloc] init];
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_objcxx_try_link "$LINENO"; then :
16910
16911 ac_cv_framework_Foundation=yes
16912
16913 else
16914 ac_cv_framework_Foundation=no
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 LIBS=$ac_check_framework_save_LIBS
16919
16920 fi
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
16922 $as_echo "$ac_cv_framework_Foundation" >&6; }
16923 if test $ac_cv_framework_Foundation = yes; then :
16924
16925
16926 for element in "-framework Foundation $LIBS"; do
16927 haveit=
16928 for x in $LIBS; do
16929
16930 acl_save_prefix="$prefix"
16931 prefix="$acl_final_prefix"
16932 acl_save_exec_prefix="$exec_prefix"
16933 exec_prefix="$acl_final_exec_prefix"
16934 eval x=\"$x\"
16935 exec_prefix="$acl_save_exec_prefix"
16936 prefix="$acl_save_prefix"
16937
16938 if test "X$x" = "X$element"; then
16939 haveit=yes
16940 break
16941 fi
16942 done
16943 if test -z "$haveit"; then
16944 LIBS="${LIBS}${LIBS:+ }$element"
16945 fi
16946 done
16947
16948 cat >>confdefs.h <<_ACEOF
16949 #define HAVE_FRAMEWORK_FOUNDATION 1
16950 _ACEOF
16951
16952
16953 fi
16954
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
16957 $as_echo_n "checking for framework WebKit... " >&6; }
16958 if test "${ac_cv_framework_WebKit+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961
16962 ac_check_framework_save_LIBS=$LIBS
16963 LIBS="-framework WebKit $LIBS"
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966
16967 #include <WebKit/WebScriptObject.h>
16968
16969 int
16970 main ()
16971 {
16972 [[WebScriptObject alloc] init];
16973 ;
16974 return 0;
16975 }
16976 _ACEOF
16977 if ac_fn_objcxx_try_link "$LINENO"; then :
16978
16979 ac_cv_framework_WebKit=yes
16980
16981 else
16982 ac_cv_framework_WebKit=no
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_framework_save_LIBS
16987
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
16990 $as_echo "$ac_cv_framework_WebKit" >&6; }
16991 if test $ac_cv_framework_WebKit = yes; then :
16992
16993
16994 for element in "-framework WebKit $LIBS"; do
16995 haveit=
16996 for x in $LIBS; do
16997
16998 acl_save_prefix="$prefix"
16999 prefix="$acl_final_prefix"
17000 acl_save_exec_prefix="$exec_prefix"
17001 exec_prefix="$acl_final_exec_prefix"
17002 eval x=\"$x\"
17003 exec_prefix="$acl_save_exec_prefix"
17004 prefix="$acl_save_prefix"
17005
17006 if test "X$x" = "X$element"; then
17007 haveit=yes
17008 break
17009 fi
17010 done
17011 if test -z "$haveit"; then
17012 LIBS="${LIBS}${LIBS:+ }$element"
17013 fi
17014 done
17015
17016 cat >>confdefs.h <<_ACEOF
17017 #define HAVE_FRAMEWORK_WEBKIT 1
17018 _ACEOF
17019
17020
17021 fi
17022
17023
17024 else
17025
17026 for ac_prog in gnustep-config
17027 do
17028 # Extract the first word of "$ac_prog", so it can be a program name with args.
17029 set dummy $ac_prog; ac_word=$2
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17031 $as_echo_n "checking for $ac_word... " >&6; }
17032 if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then :
17033 $as_echo_n "(cached) " >&6
17034 else
17035 if test -n "$GNUSTEP_CONFIG"; then
17036 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
17037 else
17038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17039 for as_dir in $PATH
17040 do
17041 IFS=$as_save_IFS
17042 test -z "$as_dir" && as_dir=.
17043 for ac_exec_ext in '' $ac_executable_extensions; do
17044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17045 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
17046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17047 break 2
17048 fi
17049 done
17050 done
17051 IFS=$as_save_IFS
17052
17053 fi
17054 fi
17055 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
17056 if test -n "$GNUSTEP_CONFIG"; then
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
17058 $as_echo "$GNUSTEP_CONFIG" >&6; }
17059 else
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 $as_echo "no" >&6; }
17062 fi
17063
17064
17065 test -n "$GNUSTEP_CONFIG" && break
17066 done
17067
17068 if test "x$GNUSTEP_CONFIG" != x; then :
17069
17070
17071
17072 for element in `$GNUSTEP_CONFIG --objc-flags`; do
17073 haveit=
17074 for x in $OBJCXXFLAGS; do
17075
17076 acl_save_prefix="$prefix"
17077 prefix="$acl_final_prefix"
17078 acl_save_exec_prefix="$exec_prefix"
17079 exec_prefix="$acl_final_exec_prefix"
17080 eval x=\"$x\"
17081 exec_prefix="$acl_save_exec_prefix"
17082 prefix="$acl_save_prefix"
17083
17084 if test "X$x" = "X$element"; then
17085 haveit=yes
17086 break
17087 fi
17088 done
17089 if test -z "$haveit"; then
17090 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17091 fi
17092 done
17093
17094
17095 for element in `$GNUSTEP_CONFIG --base-libs`; do
17096 haveit=
17097 for x in $LIBS; do
17098
17099 acl_save_prefix="$prefix"
17100 prefix="$acl_final_prefix"
17101 acl_save_exec_prefix="$exec_prefix"
17102 exec_prefix="$acl_final_exec_prefix"
17103 eval x=\"$x\"
17104 exec_prefix="$acl_save_exec_prefix"
17105 prefix="$acl_save_prefix"
17106
17107 if test "X$x" = "X$element"; then
17108 haveit=yes
17109 break
17110 fi
17111 done
17112 if test -z "$haveit"; then
17113 LIBS="${LIBS}${LIBS:+ }$element"
17114 fi
17115 done
17116
17117
17118 else
17119 CY_OBJECTIVEC=0
17120
17121 fi
17122
17123 fi
17124
17125 fi
17126 ac_ext=cpp
17127 ac_cpp='$CXXCPP $CPPFLAGS'
17128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17131
17132 ;; #(
17133 *) :
17134
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
17136 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;}
17137 ;;
17138 esac
17139 if test "x$CY_OBJECTIVEC" = x1; then :
17140
17141 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
17142 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
17143
17144 case $OTOOL in #(
17145 :) :
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5
17147 $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #(
17148 *) :
17149 CY_OBJECTIVEC_MACH=1
17150 ;;
17151 esac
17152
17153 fi
17154
17155
17156
17157 fi
17158 ac_config_files="$ac_config_files GNUmakefile"
17159
17160 cat >confcache <<\_ACEOF
17161 # This file is a shell script that caches the results of configure
17162 # tests run on this system so they can be shared between configure
17163 # scripts and configure runs, see configure's option --config-cache.
17164 # It is not useful on other systems. If it contains results you don't
17165 # want to keep, you may remove or edit it.
17166 #
17167 # config.status only pays attention to the cache file if you give it
17168 # the --recheck option to rerun configure.
17169 #
17170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17172 # following values.
17173
17174 _ACEOF
17175
17176 # The following way of writing the cache mishandles newlines in values,
17177 # but we know of no workaround that is simple, portable, and efficient.
17178 # So, we kill variables containing newlines.
17179 # Ultrix sh set writes to stderr and can't be redirected directly,
17180 # and sets the high bit in the cache file unless we assign to the vars.
17181 (
17182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17183 eval ac_val=\$$ac_var
17184 case $ac_val in #(
17185 *${as_nl}*)
17186 case $ac_var in #(
17187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17189 esac
17190 case $ac_var in #(
17191 _ | IFS | as_nl) ;; #(
17192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17193 *) { eval $ac_var=; unset $ac_var;} ;;
17194 esac ;;
17195 esac
17196 done
17197
17198 (set) 2>&1 |
17199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17200 *${as_nl}ac_space=\ *)
17201 # `set' does not quote correctly, so add quotes: double-quote
17202 # substitution turns \\\\ into \\, and sed turns \\ into \.
17203 sed -n \
17204 "s/'/'\\\\''/g;
17205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17206 ;; #(
17207 *)
17208 # `set' quotes correctly as required by POSIX, so do not add quotes.
17209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17210 ;;
17211 esac |
17212 sort
17213 ) |
17214 sed '
17215 /^ac_cv_env_/b end
17216 t clear
17217 :clear
17218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17219 t end
17220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17221 :end' >>confcache
17222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17223 if test -w "$cache_file"; then
17224 test "x$cache_file" != "x/dev/null" &&
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17226 $as_echo "$as_me: updating cache $cache_file" >&6;}
17227 cat confcache >$cache_file
17228 else
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17230 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17231 fi
17232 fi
17233 rm -f confcache
17234
17235 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17236 # Let make expand exec_prefix.
17237 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17238
17239 # Transform confdefs.h into DEFS.
17240 # Protect against shell expansion while executing Makefile rules.
17241 # Protect against Makefile macro expansion.
17242 #
17243 # If the first sed substitution is executed (which looks for macros that
17244 # take arguments), then branch to the quote section. Otherwise,
17245 # look for a macro that doesn't take arguments.
17246 ac_script='
17247 :mline
17248 /\\$/{
17249 N
17250 s,\\\n,,
17251 b mline
17252 }
17253 t clear
17254 :clear
17255 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17256 t quote
17257 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17258 t quote
17259 b any
17260 :quote
17261 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17262 s/\[/\\&/g
17263 s/\]/\\&/g
17264 s/\$/$$/g
17265 H
17266 :any
17267 ${
17268 g
17269 s/^\n//
17270 s/\n/ /g
17271 p
17272 }
17273 '
17274 DEFS=`sed -n "$ac_script" confdefs.h`
17275
17276
17277 ac_libobjs=
17278 ac_ltlibobjs=
17279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17280 # 1. Remove the extension, and $U if already installed.
17281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17284 # will be set to the directory where LIBOBJS objects are built.
17285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17287 done
17288 LIBOBJS=$ac_libobjs
17289
17290 LTLIBOBJS=$ac_ltlibobjs
17291
17292
17293
17294 : ${CONFIG_STATUS=./config.status}
17295 ac_write_fail=0
17296 ac_clean_files_save=$ac_clean_files
17297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17299 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17300 as_write_fail=0
17301 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17302 #! $SHELL
17303 # Generated by $as_me.
17304 # Run this file to recreate the current configuration.
17305 # Compiler output produced by configure, useful for debugging
17306 # configure, is in config.log if it exists.
17307
17308 debug=false
17309 ac_cs_recheck=false
17310 ac_cs_silent=false
17311
17312 SHELL=\${CONFIG_SHELL-$SHELL}
17313 export SHELL
17314 _ASEOF
17315 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17316 ## -------------------- ##
17317 ## M4sh Initialization. ##
17318 ## -------------------- ##
17319
17320 # Be more Bourne compatible
17321 DUALCASE=1; export DUALCASE # for MKS sh
17322 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17323 emulate sh
17324 NULLCMD=:
17325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17326 # is contrary to our usage. Disable this feature.
17327 alias -g '${1+"$@"}'='"$@"'
17328 setopt NO_GLOB_SUBST
17329 else
17330 case `(set -o) 2>/dev/null` in #(
17331 *posix*) :
17332 set -o posix ;; #(
17333 *) :
17334 ;;
17335 esac
17336 fi
17337
17338
17339 as_nl='
17340 '
17341 export as_nl
17342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17343 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17346 # Prefer a ksh shell builtin over an external printf program on Solaris,
17347 # but without wasting forks for bash or zsh.
17348 if test -z "$BASH_VERSION$ZSH_VERSION" \
17349 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17350 as_echo='print -r --'
17351 as_echo_n='print -rn --'
17352 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17353 as_echo='printf %s\n'
17354 as_echo_n='printf %s'
17355 else
17356 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17357 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17358 as_echo_n='/usr/ucb/echo -n'
17359 else
17360 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17361 as_echo_n_body='eval
17362 arg=$1;
17363 case $arg in #(
17364 *"$as_nl"*)
17365 expr "X$arg" : "X\\(.*\\)$as_nl";
17366 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17367 esac;
17368 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17369 '
17370 export as_echo_n_body
17371 as_echo_n='sh -c $as_echo_n_body as_echo'
17372 fi
17373 export as_echo_body
17374 as_echo='sh -c $as_echo_body as_echo'
17375 fi
17376
17377 # The user is always right.
17378 if test "${PATH_SEPARATOR+set}" != set; then
17379 PATH_SEPARATOR=:
17380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17381 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17382 PATH_SEPARATOR=';'
17383 }
17384 fi
17385
17386
17387 # IFS
17388 # We need space, tab and new line, in precisely that order. Quoting is
17389 # there to prevent editors from complaining about space-tab.
17390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17391 # splitting by setting IFS to empty value.)
17392 IFS=" "" $as_nl"
17393
17394 # Find who we are. Look in the path if we contain no directory separator.
17395 case $0 in #((
17396 *[\\/]* ) as_myself=$0 ;;
17397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17398 for as_dir in $PATH
17399 do
17400 IFS=$as_save_IFS
17401 test -z "$as_dir" && as_dir=.
17402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17403 done
17404 IFS=$as_save_IFS
17405
17406 ;;
17407 esac
17408 # We did not find ourselves, most probably we were run as `sh COMMAND'
17409 # in which case we are not to be found in the path.
17410 if test "x$as_myself" = x; then
17411 as_myself=$0
17412 fi
17413 if test ! -f "$as_myself"; then
17414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17415 exit 1
17416 fi
17417
17418 # Unset variables that we do not need and which cause bugs (e.g. in
17419 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17420 # suppresses any "Segmentation fault" message there. '((' could
17421 # trigger a bug in pdksh 5.2.14.
17422 for as_var in BASH_ENV ENV MAIL MAILPATH
17423 do eval test x\${$as_var+set} = xset \
17424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17425 done
17426 PS1='$ '
17427 PS2='> '
17428 PS4='+ '
17429
17430 # NLS nuisances.
17431 LC_ALL=C
17432 export LC_ALL
17433 LANGUAGE=C
17434 export LANGUAGE
17435
17436 # CDPATH.
17437 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17438
17439
17440 # as_fn_error ERROR [LINENO LOG_FD]
17441 # ---------------------------------
17442 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17443 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17444 # script with status $?, using 1 if that was 0.
17445 as_fn_error ()
17446 {
17447 as_status=$?; test $as_status -eq 0 && as_status=1
17448 if test "$3"; then
17449 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17451 fi
17452 $as_echo "$as_me: error: $1" >&2
17453 as_fn_exit $as_status
17454 } # as_fn_error
17455
17456
17457 # as_fn_set_status STATUS
17458 # -----------------------
17459 # Set $? to STATUS, without forking.
17460 as_fn_set_status ()
17461 {
17462 return $1
17463 } # as_fn_set_status
17464
17465 # as_fn_exit STATUS
17466 # -----------------
17467 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17468 as_fn_exit ()
17469 {
17470 set +e
17471 as_fn_set_status $1
17472 exit $1
17473 } # as_fn_exit
17474
17475 # as_fn_unset VAR
17476 # ---------------
17477 # Portably unset VAR.
17478 as_fn_unset ()
17479 {
17480 { eval $1=; unset $1;}
17481 }
17482 as_unset=as_fn_unset
17483 # as_fn_append VAR VALUE
17484 # ----------------------
17485 # Append the text in VALUE to the end of the definition contained in VAR. Take
17486 # advantage of any shell optimizations that allow amortized linear growth over
17487 # repeated appends, instead of the typical quadratic growth present in naive
17488 # implementations.
17489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17490 eval 'as_fn_append ()
17491 {
17492 eval $1+=\$2
17493 }'
17494 else
17495 as_fn_append ()
17496 {
17497 eval $1=\$$1\$2
17498 }
17499 fi # as_fn_append
17500
17501 # as_fn_arith ARG...
17502 # ------------------
17503 # Perform arithmetic evaluation on the ARGs, and store the result in the
17504 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17505 # must be portable across $(()) and expr.
17506 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17507 eval 'as_fn_arith ()
17508 {
17509 as_val=$(( $* ))
17510 }'
17511 else
17512 as_fn_arith ()
17513 {
17514 as_val=`expr "$@" || test $? -eq 1`
17515 }
17516 fi # as_fn_arith
17517
17518
17519 if expr a : '\(a\)' >/dev/null 2>&1 &&
17520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17521 as_expr=expr
17522 else
17523 as_expr=false
17524 fi
17525
17526 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17527 as_basename=basename
17528 else
17529 as_basename=false
17530 fi
17531
17532 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17533 as_dirname=dirname
17534 else
17535 as_dirname=false
17536 fi
17537
17538 as_me=`$as_basename -- "$0" ||
17539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17540 X"$0" : 'X\(//\)$' \| \
17541 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17542 $as_echo X/"$0" |
17543 sed '/^.*\/\([^/][^/]*\)\/*$/{
17544 s//\1/
17545 q
17546 }
17547 /^X\/\(\/\/\)$/{
17548 s//\1/
17549 q
17550 }
17551 /^X\/\(\/\).*/{
17552 s//\1/
17553 q
17554 }
17555 s/.*/./; q'`
17556
17557 # Avoid depending upon Character Ranges.
17558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17561 as_cr_digits='0123456789'
17562 as_cr_alnum=$as_cr_Letters$as_cr_digits
17563
17564 ECHO_C= ECHO_N= ECHO_T=
17565 case `echo -n x` in #(((((
17566 -n*)
17567 case `echo 'xy\c'` in
17568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17569 xy) ECHO_C='\c';;
17570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17571 ECHO_T=' ';;
17572 esac;;
17573 *)
17574 ECHO_N='-n';;
17575 esac
17576
17577 rm -f conf$$ conf$$.exe conf$$.file
17578 if test -d conf$$.dir; then
17579 rm -f conf$$.dir/conf$$.file
17580 else
17581 rm -f conf$$.dir
17582 mkdir conf$$.dir 2>/dev/null
17583 fi
17584 if (echo >conf$$.file) 2>/dev/null; then
17585 if ln -s conf$$.file conf$$ 2>/dev/null; then
17586 as_ln_s='ln -s'
17587 # ... but there are two gotchas:
17588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17590 # In both cases, we have to default to `cp -p'.
17591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17592 as_ln_s='cp -p'
17593 elif ln conf$$.file conf$$ 2>/dev/null; then
17594 as_ln_s=ln
17595 else
17596 as_ln_s='cp -p'
17597 fi
17598 else
17599 as_ln_s='cp -p'
17600 fi
17601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17602 rmdir conf$$.dir 2>/dev/null
17603
17604
17605 # as_fn_mkdir_p
17606 # -------------
17607 # Create "$as_dir" as a directory, including parents if necessary.
17608 as_fn_mkdir_p ()
17609 {
17610
17611 case $as_dir in #(
17612 -*) as_dir=./$as_dir;;
17613 esac
17614 test -d "$as_dir" || eval $as_mkdir_p || {
17615 as_dirs=
17616 while :; do
17617 case $as_dir in #(
17618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17619 *) as_qdir=$as_dir;;
17620 esac
17621 as_dirs="'$as_qdir' $as_dirs"
17622 as_dir=`$as_dirname -- "$as_dir" ||
17623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17624 X"$as_dir" : 'X\(//\)[^/]' \| \
17625 X"$as_dir" : 'X\(//\)$' \| \
17626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17627 $as_echo X"$as_dir" |
17628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17629 s//\1/
17630 q
17631 }
17632 /^X\(\/\/\)[^/].*/{
17633 s//\1/
17634 q
17635 }
17636 /^X\(\/\/\)$/{
17637 s//\1/
17638 q
17639 }
17640 /^X\(\/\).*/{
17641 s//\1/
17642 q
17643 }
17644 s/.*/./; q'`
17645 test -d "$as_dir" && break
17646 done
17647 test -z "$as_dirs" || eval "mkdir $as_dirs"
17648 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17649
17650
17651 } # as_fn_mkdir_p
17652 if mkdir -p . 2>/dev/null; then
17653 as_mkdir_p='mkdir -p "$as_dir"'
17654 else
17655 test -d ./-p && rmdir ./-p
17656 as_mkdir_p=false
17657 fi
17658
17659 if test -x / >/dev/null 2>&1; then
17660 as_test_x='test -x'
17661 else
17662 if ls -dL / >/dev/null 2>&1; then
17663 as_ls_L_option=L
17664 else
17665 as_ls_L_option=
17666 fi
17667 as_test_x='
17668 eval sh -c '\''
17669 if test -d "$1"; then
17670 test -d "$1/.";
17671 else
17672 case $1 in #(
17673 -*)set "./$1";;
17674 esac;
17675 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17676 ???[sx]*):;;*)false;;esac;fi
17677 '\'' sh
17678 '
17679 fi
17680 as_executable_p=$as_test_x
17681
17682 # Sed expression to map a string onto a valid CPP name.
17683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17684
17685 # Sed expression to map a string onto a valid variable name.
17686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17687
17688
17689 exec 6>&1
17690 ## ----------------------------------- ##
17691 ## Main body of $CONFIG_STATUS script. ##
17692 ## ----------------------------------- ##
17693 _ASEOF
17694 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17695
17696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17697 # Save the log message, to keep $0 and so on meaningful, and to
17698 # report actual input values of CONFIG_FILES etc. instead of their
17699 # values after options handling.
17700 ac_log="
17701 This file was extended by Cycript $as_me 0.9, which was
17702 generated by GNU Autoconf 2.65. Invocation command line was
17703
17704 CONFIG_FILES = $CONFIG_FILES
17705 CONFIG_HEADERS = $CONFIG_HEADERS
17706 CONFIG_LINKS = $CONFIG_LINKS
17707 CONFIG_COMMANDS = $CONFIG_COMMANDS
17708 $ $0 $@
17709
17710 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17711 "
17712
17713 _ACEOF
17714
17715 case $ac_config_files in *"
17716 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17717 esac
17718
17719
17720
17721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17722 # Files that config.status was made for.
17723 config_files="$ac_config_files"
17724 config_commands="$ac_config_commands"
17725
17726 _ACEOF
17727
17728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17729 ac_cs_usage="\
17730 \`$as_me' instantiates files and other configuration actions
17731 from templates according to the current configuration. Unless the files
17732 and actions are specified as TAGs, all are instantiated by default.
17733
17734 Usage: $0 [OPTION]... [TAG]...
17735
17736 -h, --help print this help, then exit
17737 -V, --version print version number and configuration settings, then exit
17738 --config print configuration, then exit
17739 -q, --quiet, --silent
17740 do not print progress messages
17741 -d, --debug don't remove temporary files
17742 --recheck update $as_me by reconfiguring in the same conditions
17743 --file=FILE[:TEMPLATE]
17744 instantiate the configuration file FILE
17745
17746 Configuration files:
17747 $config_files
17748
17749 Configuration commands:
17750 $config_commands
17751
17752 Report bugs to <saurik@saurik.com>.
17753 Cycript home page: <http://www.cycript.org/>."
17754
17755 _ACEOF
17756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17757 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17758 ac_cs_version="\\
17759 Cycript config.status 0.9
17760 configured by $0, generated by GNU Autoconf 2.65,
17761 with options \\"\$ac_cs_config\\"
17762
17763 Copyright (C) 2009 Free Software Foundation, Inc.
17764 This config.status script is free software; the Free Software Foundation
17765 gives unlimited permission to copy, distribute and modify it."
17766
17767 ac_pwd='$ac_pwd'
17768 srcdir='$srcdir'
17769 INSTALL='$INSTALL'
17770 AWK='$AWK'
17771 test -n "\$AWK" || AWK=awk
17772 _ACEOF
17773
17774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775 # The default lists apply if the user does not specify any file.
17776 ac_need_defaults=:
17777 while test $# != 0
17778 do
17779 case $1 in
17780 --*=*)
17781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17783 ac_shift=:
17784 ;;
17785 *)
17786 ac_option=$1
17787 ac_optarg=$2
17788 ac_shift=shift
17789 ;;
17790 esac
17791
17792 case $ac_option in
17793 # Handling of the options.
17794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17795 ac_cs_recheck=: ;;
17796 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17797 $as_echo "$ac_cs_version"; exit ;;
17798 --config | --confi | --conf | --con | --co | --c )
17799 $as_echo "$ac_cs_config"; exit ;;
17800 --debug | --debu | --deb | --de | --d | -d )
17801 debug=: ;;
17802 --file | --fil | --fi | --f )
17803 $ac_shift
17804 case $ac_optarg in
17805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17806 esac
17807 as_fn_append CONFIG_FILES " '$ac_optarg'"
17808 ac_need_defaults=false;;
17809 --he | --h | --help | --hel | -h )
17810 $as_echo "$ac_cs_usage"; exit ;;
17811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17813 ac_cs_silent=: ;;
17814
17815 # This is an error.
17816 -*) as_fn_error "unrecognized option: \`$1'
17817 Try \`$0 --help' for more information." ;;
17818
17819 *) as_fn_append ac_config_targets " $1"
17820 ac_need_defaults=false ;;
17821
17822 esac
17823 shift
17824 done
17825
17826 ac_configure_extra_args=
17827
17828 if $ac_cs_silent; then
17829 exec 6>/dev/null
17830 ac_configure_extra_args="$ac_configure_extra_args --silent"
17831 fi
17832
17833 _ACEOF
17834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17835 if \$ac_cs_recheck; then
17836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17837 shift
17838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17839 CONFIG_SHELL='$SHELL'
17840 export CONFIG_SHELL
17841 exec "\$@"
17842 fi
17843
17844 _ACEOF
17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17846 exec 5>>config.log
17847 {
17848 echo
17849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17850 ## Running $as_me. ##
17851 _ASBOX
17852 $as_echo "$ac_log"
17853 } >&5
17854
17855 _ACEOF
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 #
17858 # INIT-COMMANDS
17859 #
17860
17861
17862 # The HP-UX ksh and POSIX shell print the target directory to stdout
17863 # if CDPATH is set.
17864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17865
17866 sed_quote_subst='$sed_quote_subst'
17867 double_quote_subst='$double_quote_subst'
17868 delay_variable_subst='$delay_variable_subst'
17869 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17870 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17871 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17872 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17873 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17874 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17875 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17876 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17877 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17878 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17879 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17880 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17881 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17882 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17883 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17884 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17885 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17886 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17887 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17888 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17889 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17890 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17891 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17892 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17893 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17894 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17895 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17896 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17897 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17898 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17899 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17900 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17901 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17902 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17903 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17904 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17905 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17906 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17907 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17908 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17909 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17910 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17911 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17912 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17913 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"`'
17914 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"`'
17915 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17916 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17917 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17918 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17919 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17920 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17921 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17922 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17923 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17924 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17925 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17926 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17927 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17928 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17929 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17930 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17931 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17932 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17933 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17934 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17935 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17936 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17937 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17938 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17939 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17940 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17941 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17942 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17943 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17944 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17945 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17946 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17947 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17948 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17949 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17950 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17951 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17952 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17953 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17954 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17955 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17956 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17957 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17958 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17959 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17960 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17961 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17962 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17963 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17964 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17965 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17966 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17967 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17968 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17969 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17970 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17971 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17972 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17973 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17974 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17975 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17976 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17977 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17978 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17979 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17980 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17981 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17982 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17983 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17984 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17985 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17986 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17987 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17988 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17989 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17990 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17991 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17992 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17993 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17994 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17995 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17996 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17997 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17998 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17999 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18000 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18001 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18002 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18003 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18004 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18005 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18006 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18007 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18008 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18009 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18010 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18011 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18012 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18013 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18014 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18015 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18016 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18017 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18018 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18019 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18020 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18021 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18022 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18023 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18024 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18025 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18026 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18027 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18028 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18029 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18030 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18031 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18032 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18033 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18034 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18035 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18036 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18037 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18038 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18039 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18040
18041 LTCC='$LTCC'
18042 LTCFLAGS='$LTCFLAGS'
18043 compiler='$compiler_DEFAULT'
18044
18045 # Quote evaled strings.
18046 for var in SED \
18047 GREP \
18048 EGREP \
18049 FGREP \
18050 LD \
18051 NM \
18052 LN_S \
18053 lt_SP2NL \
18054 lt_NL2SP \
18055 reload_flag \
18056 OBJDUMP \
18057 deplibs_check_method \
18058 file_magic_cmd \
18059 AR \
18060 AR_FLAGS \
18061 STRIP \
18062 RANLIB \
18063 CC \
18064 CFLAGS \
18065 compiler \
18066 lt_cv_sys_global_symbol_pipe \
18067 lt_cv_sys_global_symbol_to_cdecl \
18068 lt_cv_sys_global_symbol_to_c_name_address \
18069 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18070 SHELL \
18071 ECHO \
18072 lt_prog_compiler_no_builtin_flag \
18073 lt_prog_compiler_wl \
18074 lt_prog_compiler_pic \
18075 lt_prog_compiler_static \
18076 lt_cv_prog_compiler_c_o \
18077 need_locks \
18078 DSYMUTIL \
18079 NMEDIT \
18080 LIPO \
18081 OTOOL \
18082 OTOOL64 \
18083 shrext_cmds \
18084 export_dynamic_flag_spec \
18085 whole_archive_flag_spec \
18086 compiler_needs_object \
18087 with_gnu_ld \
18088 allow_undefined_flag \
18089 no_undefined_flag \
18090 hardcode_libdir_flag_spec \
18091 hardcode_libdir_flag_spec_ld \
18092 hardcode_libdir_separator \
18093 fix_srcfile_path \
18094 exclude_expsyms \
18095 include_expsyms \
18096 file_list_spec \
18097 variables_saved_for_relink \
18098 libname_spec \
18099 library_names_spec \
18100 soname_spec \
18101 finish_eval \
18102 old_striplib \
18103 striplib \
18104 compiler_lib_search_dirs \
18105 predep_objects \
18106 postdep_objects \
18107 predeps \
18108 postdeps \
18109 compiler_lib_search_path \
18110 LD_CXX \
18111 compiler_CXX \
18112 lt_prog_compiler_no_builtin_flag_CXX \
18113 lt_prog_compiler_wl_CXX \
18114 lt_prog_compiler_pic_CXX \
18115 lt_prog_compiler_static_CXX \
18116 lt_cv_prog_compiler_c_o_CXX \
18117 export_dynamic_flag_spec_CXX \
18118 whole_archive_flag_spec_CXX \
18119 compiler_needs_object_CXX \
18120 with_gnu_ld_CXX \
18121 allow_undefined_flag_CXX \
18122 no_undefined_flag_CXX \
18123 hardcode_libdir_flag_spec_CXX \
18124 hardcode_libdir_flag_spec_ld_CXX \
18125 hardcode_libdir_separator_CXX \
18126 fix_srcfile_path_CXX \
18127 exclude_expsyms_CXX \
18128 include_expsyms_CXX \
18129 file_list_spec_CXX \
18130 compiler_lib_search_dirs_CXX \
18131 predep_objects_CXX \
18132 postdep_objects_CXX \
18133 predeps_CXX \
18134 postdeps_CXX \
18135 compiler_lib_search_path_CXX; do
18136 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18137 *[\\\\\\\`\\"\\\$]*)
18138 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18139 ;;
18140 *)
18141 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18142 ;;
18143 esac
18144 done
18145
18146 # Double-quote double-evaled strings.
18147 for var in reload_cmds \
18148 old_postinstall_cmds \
18149 old_postuninstall_cmds \
18150 old_archive_cmds \
18151 extract_expsyms_cmds \
18152 old_archive_from_new_cmds \
18153 old_archive_from_expsyms_cmds \
18154 archive_cmds \
18155 archive_expsym_cmds \
18156 module_cmds \
18157 module_expsym_cmds \
18158 export_symbols_cmds \
18159 prelink_cmds \
18160 postinstall_cmds \
18161 postuninstall_cmds \
18162 finish_cmds \
18163 sys_lib_search_path_spec \
18164 sys_lib_dlsearch_path_spec \
18165 old_archive_cmds_CXX \
18166 old_archive_from_new_cmds_CXX \
18167 old_archive_from_expsyms_cmds_CXX \
18168 archive_cmds_CXX \
18169 archive_expsym_cmds_CXX \
18170 module_cmds_CXX \
18171 module_expsym_cmds_CXX \
18172 export_symbols_cmds_CXX \
18173 prelink_cmds_CXX; do
18174 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18175 *[\\\\\\\`\\"\\\$]*)
18176 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18177 ;;
18178 *)
18179 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18180 ;;
18181 esac
18182 done
18183
18184 # Fix-up fallback echo if it was mangled by the above quoting rules.
18185 case \$lt_ECHO in
18186 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18187 ;;
18188 esac
18189
18190 ac_aux_dir='$ac_aux_dir'
18191 xsi_shell='$xsi_shell'
18192 lt_shell_append='$lt_shell_append'
18193
18194 # See if we are running on zsh, and set the options which allow our
18195 # commands through without removal of \ escapes INIT.
18196 if test -n "\${ZSH_VERSION+set}" ; then
18197 setopt NO_GLOB_SUBST
18198 fi
18199
18200
18201 PACKAGE='$PACKAGE'
18202 VERSION='$VERSION'
18203 TIMESTAMP='$TIMESTAMP'
18204 RM='$RM'
18205 ofile='$ofile'
18206
18207
18208
18209
18210
18211
18212 _ACEOF
18213
18214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18215
18216 # Handling of arguments.
18217 for ac_config_target in $ac_config_targets
18218 do
18219 case $ac_config_target in
18220 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18221 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18222
18223 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18224 esac
18225 done
18226
18227
18228 # If the user did not use the arguments to specify the items to instantiate,
18229 # then the envvar interface is used. Set only those that are not.
18230 # We use the long form for the default assignment because of an extremely
18231 # bizarre bug on SunOS 4.1.3.
18232 if $ac_need_defaults; then
18233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18235 fi
18236
18237 # Have a temporary directory for convenience. Make it in the build tree
18238 # simply because there is no reason against having it here, and in addition,
18239 # creating and moving files from /tmp can sometimes cause problems.
18240 # Hook for its removal unless debugging.
18241 # Note that there is a small window in which the directory will not be cleaned:
18242 # after its creation but before its name has been assigned to `$tmp'.
18243 $debug ||
18244 {
18245 tmp=
18246 trap 'exit_status=$?
18247 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18248 ' 0
18249 trap 'as_fn_exit 1' 1 2 13 15
18250 }
18251 # Create a (secure) tmp directory for tmp files.
18252
18253 {
18254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18255 test -n "$tmp" && test -d "$tmp"
18256 } ||
18257 {
18258 tmp=./conf$$-$RANDOM
18259 (umask 077 && mkdir "$tmp")
18260 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18261
18262 # Set up the scripts for CONFIG_FILES section.
18263 # No need to generate them if there are no CONFIG_FILES.
18264 # This happens for instance with `./config.status config.h'.
18265 if test -n "$CONFIG_FILES"; then
18266
18267
18268 ac_cr=`echo X | tr X '\015'`
18269 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18270 # But we know of no other shell where ac_cr would be empty at this
18271 # point, so we can use a bashism as a fallback.
18272 if test "x$ac_cr" = x; then
18273 eval ac_cr=\$\'\\r\'
18274 fi
18275 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18276 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18277 ac_cs_awk_cr='\r'
18278 else
18279 ac_cs_awk_cr=$ac_cr
18280 fi
18281
18282 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18283 _ACEOF
18284
18285
18286 {
18287 echo "cat >conf$$subs.awk <<_ACEOF" &&
18288 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18289 echo "_ACEOF"
18290 } >conf$$subs.sh ||
18291 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18292 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18293 ac_delim='%!_!# '
18294 for ac_last_try in false false false false false :; do
18295 . ./conf$$subs.sh ||
18296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18297
18298 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18299 if test $ac_delim_n = $ac_delim_num; then
18300 break
18301 elif $ac_last_try; then
18302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18303 else
18304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18305 fi
18306 done
18307 rm -f conf$$subs.sh
18308
18309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18310 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18311 _ACEOF
18312 sed -n '
18313 h
18314 s/^/S["/; s/!.*/"]=/
18315 p
18316 g
18317 s/^[^!]*!//
18318 :repl
18319 t repl
18320 s/'"$ac_delim"'$//
18321 t delim
18322 :nl
18323 h
18324 s/\(.\{148\}\)..*/\1/
18325 t more1
18326 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18327 p
18328 n
18329 b repl
18330 :more1
18331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18332 p
18333 g
18334 s/.\{148\}//
18335 t nl
18336 :delim
18337 h
18338 s/\(.\{148\}\)..*/\1/
18339 t more2
18340 s/["\\]/\\&/g; s/^/"/; s/$/"/
18341 p
18342 b
18343 :more2
18344 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18345 p
18346 g
18347 s/.\{148\}//
18348 t delim
18349 ' <conf$$subs.awk | sed '
18350 /^[^""]/{
18351 N
18352 s/\n//
18353 }
18354 ' >>$CONFIG_STATUS || ac_write_fail=1
18355 rm -f conf$$subs.awk
18356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357 _ACAWK
18358 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18359 for (key in S) S_is_set[key] = 1
18360 FS = "\a"
18361
18362 }
18363 {
18364 line = $ 0
18365 nfields = split(line, field, "@")
18366 substed = 0
18367 len = length(field[1])
18368 for (i = 2; i < nfields; i++) {
18369 key = field[i]
18370 keylen = length(key)
18371 if (S_is_set[key]) {
18372 value = S[key]
18373 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18374 len += length(value) + length(field[++i])
18375 substed = 1
18376 } else
18377 len += 1 + keylen
18378 }
18379
18380 print line
18381 }
18382
18383 _ACAWK
18384 _ACEOF
18385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18386 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18387 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18388 else
18389 cat
18390 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18391 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18392 _ACEOF
18393
18394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18396 # trailing colons and then remove the whole line if VPATH becomes empty
18397 # (actually we leave an empty line to preserve line numbers).
18398 if test "x$srcdir" = x.; then
18399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18400 s/:*\$(srcdir):*/:/
18401 s/:*\${srcdir}:*/:/
18402 s/:*@srcdir@:*/:/
18403 s/^\([^=]*=[ ]*\):*/\1/
18404 s/:*$//
18405 s/^[^=]*=[ ]*$//
18406 }'
18407 fi
18408
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18410 fi # test -n "$CONFIG_FILES"
18411
18412
18413 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18414 shift
18415 for ac_tag
18416 do
18417 case $ac_tag in
18418 :[FHLC]) ac_mode=$ac_tag; continue;;
18419 esac
18420 case $ac_mode$ac_tag in
18421 :[FHL]*:*);;
18422 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18423 :[FH]-) ac_tag=-:-;;
18424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18425 esac
18426 ac_save_IFS=$IFS
18427 IFS=:
18428 set x $ac_tag
18429 IFS=$ac_save_IFS
18430 shift
18431 ac_file=$1
18432 shift
18433
18434 case $ac_mode in
18435 :L) ac_source=$1;;
18436 :[FH])
18437 ac_file_inputs=
18438 for ac_f
18439 do
18440 case $ac_f in
18441 -) ac_f="$tmp/stdin";;
18442 *) # Look for the file first in the build tree, then in the source tree
18443 # (if the path is not absolute). The absolute path cannot be DOS-style,
18444 # because $ac_f cannot contain `:'.
18445 test -f "$ac_f" ||
18446 case $ac_f in
18447 [\\/$]*) false;;
18448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18449 esac ||
18450 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18451 esac
18452 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18453 as_fn_append ac_file_inputs " '$ac_f'"
18454 done
18455
18456 # Let's still pretend it is `configure' which instantiates (i.e., don't
18457 # use $as_me), people would be surprised to read:
18458 # /* config.h. Generated by config.status. */
18459 configure_input='Generated from '`
18460 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18461 `' by configure.'
18462 if test x"$ac_file" != x-; then
18463 configure_input="$ac_file. $configure_input"
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18465 $as_echo "$as_me: creating $ac_file" >&6;}
18466 fi
18467 # Neutralize special characters interpreted by sed in replacement strings.
18468 case $configure_input in #(
18469 *\&* | *\|* | *\\* )
18470 ac_sed_conf_input=`$as_echo "$configure_input" |
18471 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18472 *) ac_sed_conf_input=$configure_input;;
18473 esac
18474
18475 case $ac_tag in
18476 *:-:* | *:-) cat >"$tmp/stdin" \
18477 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18478 esac
18479 ;;
18480 esac
18481
18482 ac_dir=`$as_dirname -- "$ac_file" ||
18483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18484 X"$ac_file" : 'X\(//\)[^/]' \| \
18485 X"$ac_file" : 'X\(//\)$' \| \
18486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18487 $as_echo X"$ac_file" |
18488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18489 s//\1/
18490 q
18491 }
18492 /^X\(\/\/\)[^/].*/{
18493 s//\1/
18494 q
18495 }
18496 /^X\(\/\/\)$/{
18497 s//\1/
18498 q
18499 }
18500 /^X\(\/\).*/{
18501 s//\1/
18502 q
18503 }
18504 s/.*/./; q'`
18505 as_dir="$ac_dir"; as_fn_mkdir_p
18506 ac_builddir=.
18507
18508 case "$ac_dir" in
18509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18510 *)
18511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18512 # A ".." for each directory in $ac_dir_suffix.
18513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18514 case $ac_top_builddir_sub in
18515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18517 esac ;;
18518 esac
18519 ac_abs_top_builddir=$ac_pwd
18520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18521 # for backward compatibility:
18522 ac_top_builddir=$ac_top_build_prefix
18523
18524 case $srcdir in
18525 .) # We are building in place.
18526 ac_srcdir=.
18527 ac_top_srcdir=$ac_top_builddir_sub
18528 ac_abs_top_srcdir=$ac_pwd ;;
18529 [\\/]* | ?:[\\/]* ) # Absolute name.
18530 ac_srcdir=$srcdir$ac_dir_suffix;
18531 ac_top_srcdir=$srcdir
18532 ac_abs_top_srcdir=$srcdir ;;
18533 *) # Relative name.
18534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18535 ac_top_srcdir=$ac_top_build_prefix$srcdir
18536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18537 esac
18538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18539
18540
18541 case $ac_mode in
18542 :F)
18543 #
18544 # CONFIG_FILE
18545 #
18546
18547 case $INSTALL in
18548 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18549 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18550 esac
18551 _ACEOF
18552
18553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18554 # If the template does not know about datarootdir, expand it.
18555 # FIXME: This hack should be removed a few years after 2.60.
18556 ac_datarootdir_hack=; ac_datarootdir_seen=
18557 ac_sed_dataroot='
18558 /datarootdir/ {
18559 p
18560 q
18561 }
18562 /@datadir@/p
18563 /@docdir@/p
18564 /@infodir@/p
18565 /@localedir@/p
18566 /@mandir@/p'
18567 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18568 *datarootdir*) ac_datarootdir_seen=yes;;
18569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18571 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18572 _ACEOF
18573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18574 ac_datarootdir_hack='
18575 s&@datadir@&$datadir&g
18576 s&@docdir@&$docdir&g
18577 s&@infodir@&$infodir&g
18578 s&@localedir@&$localedir&g
18579 s&@mandir@&$mandir&g
18580 s&\\\${datarootdir}&$datarootdir&g' ;;
18581 esac
18582 _ACEOF
18583
18584 # Neutralize VPATH when `$srcdir' = `.'.
18585 # Shell code in configure.ac might set extrasub.
18586 # FIXME: do we really want to maintain this feature?
18587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18588 ac_sed_extra="$ac_vpsub
18589 $extrasub
18590 _ACEOF
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 :t
18593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18594 s|@configure_input@|$ac_sed_conf_input|;t t
18595 s&@top_builddir@&$ac_top_builddir_sub&;t t
18596 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18597 s&@srcdir@&$ac_srcdir&;t t
18598 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18599 s&@top_srcdir@&$ac_top_srcdir&;t t
18600 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18601 s&@builddir@&$ac_builddir&;t t
18602 s&@abs_builddir@&$ac_abs_builddir&;t t
18603 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18604 s&@INSTALL@&$ac_INSTALL&;t t
18605 $ac_datarootdir_hack
18606 "
18607 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18608 || as_fn_error "could not create $ac_file" "$LINENO" 5
18609
18610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18611 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18614 which seems to be undefined. Please make sure it is defined." >&5
18615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18616 which seems to be undefined. Please make sure it is defined." >&2;}
18617
18618 rm -f "$tmp/stdin"
18619 case $ac_file in
18620 -) cat "$tmp/out" && rm -f "$tmp/out";;
18621 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18622 esac \
18623 || as_fn_error "could not create $ac_file" "$LINENO" 5
18624 ;;
18625
18626
18627 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18628 $as_echo "$as_me: executing $ac_file commands" >&6;}
18629 ;;
18630 esac
18631
18632
18633 case $ac_file$ac_mode in
18634 "libtool":C)
18635
18636 # See if we are running on zsh, and set the options which allow our
18637 # commands through without removal of \ escapes.
18638 if test -n "${ZSH_VERSION+set}" ; then
18639 setopt NO_GLOB_SUBST
18640 fi
18641
18642 cfgfile="${ofile}T"
18643 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18644 $RM "$cfgfile"
18645
18646 cat <<_LT_EOF >> "$cfgfile"
18647 #! $SHELL
18648
18649 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18650 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18652 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18653 #
18654 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18655 # 2006, 2007, 2008 Free Software Foundation, Inc.
18656 # Written by Gordon Matzigkeit, 1996
18657 #
18658 # This file is part of GNU Libtool.
18659 #
18660 # GNU Libtool is free software; you can redistribute it and/or
18661 # modify it under the terms of the GNU General Public License as
18662 # published by the Free Software Foundation; either version 2 of
18663 # the License, or (at your option) any later version.
18664 #
18665 # As a special exception to the GNU General Public License,
18666 # if you distribute this file as part of a program or library that
18667 # is built using GNU Libtool, you may include this file under the
18668 # same distribution terms that you use for the rest of that program.
18669 #
18670 # GNU Libtool is distributed in the hope that it will be useful,
18671 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18672 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18673 # GNU General Public License for more details.
18674 #
18675 # You should have received a copy of the GNU General Public License
18676 # along with GNU Libtool; see the file COPYING. If not, a copy
18677 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18678 # obtained by writing to the Free Software Foundation, Inc.,
18679 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18680
18681
18682 # The names of the tagged configurations supported by this script.
18683 available_tags="CXX "
18684
18685 # ### BEGIN LIBTOOL CONFIG
18686
18687 # Which release of libtool.m4 was used?
18688 macro_version=$macro_version
18689 macro_revision=$macro_revision
18690
18691 # Whether or not to build static libraries.
18692 build_old_libs=$enable_static
18693
18694 # Whether or not to build shared libraries.
18695 build_libtool_libs=$enable_shared
18696
18697 # What type of objects to build.
18698 pic_mode=$pic_mode
18699
18700 # Whether or not to optimize for fast installation.
18701 fast_install=$enable_fast_install
18702
18703 # The host system.
18704 host_alias=$host_alias
18705 host=$host
18706 host_os=$host_os
18707
18708 # The build system.
18709 build_alias=$build_alias
18710 build=$build
18711 build_os=$build_os
18712
18713 # A sed program that does not truncate output.
18714 SED=$lt_SED
18715
18716 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18717 Xsed="\$SED -e 1s/^X//"
18718
18719 # A grep program that handles long lines.
18720 GREP=$lt_GREP
18721
18722 # An ERE matcher.
18723 EGREP=$lt_EGREP
18724
18725 # A literal string matcher.
18726 FGREP=$lt_FGREP
18727
18728 # A BSD- or MS-compatible name lister.
18729 NM=$lt_NM
18730
18731 # Whether we need soft or hard links.
18732 LN_S=$lt_LN_S
18733
18734 # What is the maximum length of a command?
18735 max_cmd_len=$max_cmd_len
18736
18737 # Object file suffix (normally "o").
18738 objext=$ac_objext
18739
18740 # Executable file suffix (normally "").
18741 exeext=$exeext
18742
18743 # whether the shell understands "unset".
18744 lt_unset=$lt_unset
18745
18746 # turn spaces into newlines.
18747 SP2NL=$lt_lt_SP2NL
18748
18749 # turn newlines into spaces.
18750 NL2SP=$lt_lt_NL2SP
18751
18752 # How to create reloadable object files.
18753 reload_flag=$lt_reload_flag
18754 reload_cmds=$lt_reload_cmds
18755
18756 # An object symbol dumper.
18757 OBJDUMP=$lt_OBJDUMP
18758
18759 # Method to check whether dependent libraries are shared objects.
18760 deplibs_check_method=$lt_deplibs_check_method
18761
18762 # Command to use when deplibs_check_method == "file_magic".
18763 file_magic_cmd=$lt_file_magic_cmd
18764
18765 # The archiver.
18766 AR=$lt_AR
18767 AR_FLAGS=$lt_AR_FLAGS
18768
18769 # A symbol stripping program.
18770 STRIP=$lt_STRIP
18771
18772 # Commands used to install an old-style archive.
18773 RANLIB=$lt_RANLIB
18774 old_postinstall_cmds=$lt_old_postinstall_cmds
18775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18776
18777 # A C compiler.
18778 LTCC=$lt_CC
18779
18780 # LTCC compiler flags.
18781 LTCFLAGS=$lt_CFLAGS
18782
18783 # Take the output of nm and produce a listing of raw symbols and C names.
18784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18785
18786 # Transform the output of nm in a proper C declaration.
18787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18788
18789 # Transform the output of nm in a C name address pair.
18790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18791
18792 # Transform the output of nm in a C name address pair when lib prefix is needed.
18793 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18794
18795 # The name of the directory that contains temporary libtool files.
18796 objdir=$objdir
18797
18798 # Shell to use when invoking shell scripts.
18799 SHELL=$lt_SHELL
18800
18801 # An echo program that does not interpret backslashes.
18802 ECHO=$lt_ECHO
18803
18804 # Used to examine libraries when file_magic_cmd begins with "file".
18805 MAGIC_CMD=$MAGIC_CMD
18806
18807 # Must we lock files when doing compilation?
18808 need_locks=$lt_need_locks
18809
18810 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18811 DSYMUTIL=$lt_DSYMUTIL
18812
18813 # Tool to change global to local symbols on Mac OS X.
18814 NMEDIT=$lt_NMEDIT
18815
18816 # Tool to manipulate fat objects and archives on Mac OS X.
18817 LIPO=$lt_LIPO
18818
18819 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18820 OTOOL=$lt_OTOOL
18821
18822 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18823 OTOOL64=$lt_OTOOL64
18824
18825 # Old archive suffix (normally "a").
18826 libext=$libext
18827
18828 # Shared library suffix (normally ".so").
18829 shrext_cmds=$lt_shrext_cmds
18830
18831 # The commands to extract the exported symbol list from a shared archive.
18832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18833
18834 # Variables whose values should be saved in libtool wrapper scripts and
18835 # restored at link time.
18836 variables_saved_for_relink=$lt_variables_saved_for_relink
18837
18838 # Do we need the "lib" prefix for modules?
18839 need_lib_prefix=$need_lib_prefix
18840
18841 # Do we need a version for libraries?
18842 need_version=$need_version
18843
18844 # Library versioning type.
18845 version_type=$version_type
18846
18847 # Shared library runtime path variable.
18848 runpath_var=$runpath_var
18849
18850 # Shared library path variable.
18851 shlibpath_var=$shlibpath_var
18852
18853 # Is shlibpath searched before the hard-coded library search path?
18854 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18855
18856 # Format of library name prefix.
18857 libname_spec=$lt_libname_spec
18858
18859 # List of archive names. First name is the real one, the rest are links.
18860 # The last name is the one that the linker finds with -lNAME
18861 library_names_spec=$lt_library_names_spec
18862
18863 # The coded name of the library, if different from the real name.
18864 soname_spec=$lt_soname_spec
18865
18866 # Command to use after installation of a shared archive.
18867 postinstall_cmds=$lt_postinstall_cmds
18868
18869 # Command to use after uninstallation of a shared archive.
18870 postuninstall_cmds=$lt_postuninstall_cmds
18871
18872 # Commands used to finish a libtool library installation in a directory.
18873 finish_cmds=$lt_finish_cmds
18874
18875 # As "finish_cmds", except a single script fragment to be evaled but
18876 # not shown.
18877 finish_eval=$lt_finish_eval
18878
18879 # Whether we should hardcode library paths into libraries.
18880 hardcode_into_libs=$hardcode_into_libs
18881
18882 # Compile-time system search path for libraries.
18883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18884
18885 # Run-time system search path for libraries.
18886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18887
18888 # Whether dlopen is supported.
18889 dlopen_support=$enable_dlopen
18890
18891 # Whether dlopen of programs is supported.
18892 dlopen_self=$enable_dlopen_self
18893
18894 # Whether dlopen of statically linked programs is supported.
18895 dlopen_self_static=$enable_dlopen_self_static
18896
18897 # Commands to strip libraries.
18898 old_striplib=$lt_old_striplib
18899 striplib=$lt_striplib
18900
18901
18902 # The linker used to build libraries.
18903 LD=$lt_LD
18904
18905 # Commands used to build an old-style archive.
18906 old_archive_cmds=$lt_old_archive_cmds
18907
18908 # A language specific compiler.
18909 CC=$lt_compiler
18910
18911 # Is the compiler the GNU compiler?
18912 with_gcc=$GCC
18913
18914 # Compiler flag to turn off builtin functions.
18915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18916
18917 # How to pass a linker flag through the compiler.
18918 wl=$lt_lt_prog_compiler_wl
18919
18920 # Additional compiler flags for building library objects.
18921 pic_flag=$lt_lt_prog_compiler_pic
18922
18923 # Compiler flag to prevent dynamic linking.
18924 link_static_flag=$lt_lt_prog_compiler_static
18925
18926 # Does compiler simultaneously support -c and -o options?
18927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18928
18929 # Whether or not to add -lc for building shared libraries.
18930 build_libtool_need_lc=$archive_cmds_need_lc
18931
18932 # Whether or not to disallow shared libs when runtime libs are static.
18933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18934
18935 # Compiler flag to allow reflexive dlopens.
18936 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18937
18938 # Compiler flag to generate shared objects directly from archives.
18939 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18940
18941 # Whether the compiler copes with passing no objects directly.
18942 compiler_needs_object=$lt_compiler_needs_object
18943
18944 # Create an old-style archive from a shared archive.
18945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18946
18947 # Create a temporary old-style archive to link instead of a shared archive.
18948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18949
18950 # Commands used to build a shared archive.
18951 archive_cmds=$lt_archive_cmds
18952 archive_expsym_cmds=$lt_archive_expsym_cmds
18953
18954 # Commands used to build a loadable module if different from building
18955 # a shared archive.
18956 module_cmds=$lt_module_cmds
18957 module_expsym_cmds=$lt_module_expsym_cmds
18958
18959 # Whether we are building with GNU ld or not.
18960 with_gnu_ld=$lt_with_gnu_ld
18961
18962 # Flag that allows shared libraries with undefined symbols to be built.
18963 allow_undefined_flag=$lt_allow_undefined_flag
18964
18965 # Flag that enforces no undefined symbols.
18966 no_undefined_flag=$lt_no_undefined_flag
18967
18968 # Flag to hardcode \$libdir into a binary during linking.
18969 # This must work even if \$libdir does not exist
18970 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18971
18972 # If ld is used when linking, flag to hardcode \$libdir into a binary
18973 # during linking. This must work even if \$libdir does not exist.
18974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18975
18976 # Whether we need a single "-rpath" flag with a separated argument.
18977 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18978
18979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18980 # DIR into the resulting binary.
18981 hardcode_direct=$hardcode_direct
18982
18983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18984 # DIR into the resulting binary and the resulting library dependency is
18985 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18986 # library is relocated.
18987 hardcode_direct_absolute=$hardcode_direct_absolute
18988
18989 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18990 # into the resulting binary.
18991 hardcode_minus_L=$hardcode_minus_L
18992
18993 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18994 # into the resulting binary.
18995 hardcode_shlibpath_var=$hardcode_shlibpath_var
18996
18997 # Set to "yes" if building a shared library automatically hardcodes DIR
18998 # into the library and all subsequent libraries and executables linked
18999 # against it.
19000 hardcode_automatic=$hardcode_automatic
19001
19002 # Set to yes if linker adds runtime paths of dependent libraries
19003 # to runtime path list.
19004 inherit_rpath=$inherit_rpath
19005
19006 # Whether libtool must link a program against all its dependency libraries.
19007 link_all_deplibs=$link_all_deplibs
19008
19009 # Fix the shell variable \$srcfile for the compiler.
19010 fix_srcfile_path=$lt_fix_srcfile_path
19011
19012 # Set to "yes" if exported symbols are required.
19013 always_export_symbols=$always_export_symbols
19014
19015 # The commands to list exported symbols.
19016 export_symbols_cmds=$lt_export_symbols_cmds
19017
19018 # Symbols that should not be listed in the preloaded symbols.
19019 exclude_expsyms=$lt_exclude_expsyms
19020
19021 # Symbols that must always be exported.
19022 include_expsyms=$lt_include_expsyms
19023
19024 # Commands necessary for linking programs (against libraries) with templates.
19025 prelink_cmds=$lt_prelink_cmds
19026
19027 # Specify filename containing input files.
19028 file_list_spec=$lt_file_list_spec
19029
19030 # How to hardcode a shared library path into an executable.
19031 hardcode_action=$hardcode_action
19032
19033 # The directories searched by this compiler when creating a shared library.
19034 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19035
19036 # Dependencies to place before and after the objects being linked to
19037 # create a shared library.
19038 predep_objects=$lt_predep_objects
19039 postdep_objects=$lt_postdep_objects
19040 predeps=$lt_predeps
19041 postdeps=$lt_postdeps
19042
19043 # The library search path used internally by the compiler when linking
19044 # a shared library.
19045 compiler_lib_search_path=$lt_compiler_lib_search_path
19046
19047 # ### END LIBTOOL CONFIG
19048
19049 _LT_EOF
19050
19051 case $host_os in
19052 aix3*)
19053 cat <<\_LT_EOF >> "$cfgfile"
19054 # AIX sometimes has problems with the GCC collect2 program. For some
19055 # reason, if we set the COLLECT_NAMES environment variable, the problems
19056 # vanish in a puff of smoke.
19057 if test "X${COLLECT_NAMES+set}" != Xset; then
19058 COLLECT_NAMES=
19059 export COLLECT_NAMES
19060 fi
19061 _LT_EOF
19062 ;;
19063 esac
19064
19065
19066 ltmain="$ac_aux_dir/ltmain.sh"
19067
19068
19069 # We use sed instead of cat because bash on DJGPP gets confused if
19070 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19071 # text mode, it properly converts lines to CR/LF. This bash problem
19072 # is reportedly fixed, but why not run on old versions too?
19073 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19074 || (rm -f "$cfgfile"; exit 1)
19075
19076 case $xsi_shell in
19077 yes)
19078 cat << \_LT_EOF >> "$cfgfile"
19079
19080 # func_dirname file append nondir_replacement
19081 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19082 # otherwise set result to NONDIR_REPLACEMENT.
19083 func_dirname ()
19084 {
19085 case ${1} in
19086 */*) func_dirname_result="${1%/*}${2}" ;;
19087 * ) func_dirname_result="${3}" ;;
19088 esac
19089 }
19090
19091 # func_basename file
19092 func_basename ()
19093 {
19094 func_basename_result="${1##*/}"
19095 }
19096
19097 # func_dirname_and_basename file append nondir_replacement
19098 # perform func_basename and func_dirname in a single function
19099 # call:
19100 # dirname: Compute the dirname of FILE. If nonempty,
19101 # add APPEND to the result, otherwise set result
19102 # to NONDIR_REPLACEMENT.
19103 # value returned in "$func_dirname_result"
19104 # basename: Compute filename of FILE.
19105 # value retuned in "$func_basename_result"
19106 # Implementation must be kept synchronized with func_dirname
19107 # and func_basename. For efficiency, we do not delegate to
19108 # those functions but instead duplicate the functionality here.
19109 func_dirname_and_basename ()
19110 {
19111 case ${1} in
19112 */*) func_dirname_result="${1%/*}${2}" ;;
19113 * ) func_dirname_result="${3}" ;;
19114 esac
19115 func_basename_result="${1##*/}"
19116 }
19117
19118 # func_stripname prefix suffix name
19119 # strip PREFIX and SUFFIX off of NAME.
19120 # PREFIX and SUFFIX must not contain globbing or regex special
19121 # characters, hashes, percent signs, but SUFFIX may contain a leading
19122 # dot (in which case that matches only a dot).
19123 func_stripname ()
19124 {
19125 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19126 # positional parameters, so assign one to ordinary parameter first.
19127 func_stripname_result=${3}
19128 func_stripname_result=${func_stripname_result#"${1}"}
19129 func_stripname_result=${func_stripname_result%"${2}"}
19130 }
19131
19132 # func_opt_split
19133 func_opt_split ()
19134 {
19135 func_opt_split_opt=${1%%=*}
19136 func_opt_split_arg=${1#*=}
19137 }
19138
19139 # func_lo2o object
19140 func_lo2o ()
19141 {
19142 case ${1} in
19143 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19144 *) func_lo2o_result=${1} ;;
19145 esac
19146 }
19147
19148 # func_xform libobj-or-source
19149 func_xform ()
19150 {
19151 func_xform_result=${1%.*}.lo
19152 }
19153
19154 # func_arith arithmetic-term...
19155 func_arith ()
19156 {
19157 func_arith_result=$(( $* ))
19158 }
19159
19160 # func_len string
19161 # STRING may not start with a hyphen.
19162 func_len ()
19163 {
19164 func_len_result=${#1}
19165 }
19166
19167 _LT_EOF
19168 ;;
19169 *) # Bourne compatible functions.
19170 cat << \_LT_EOF >> "$cfgfile"
19171
19172 # func_dirname file append nondir_replacement
19173 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19174 # otherwise set result to NONDIR_REPLACEMENT.
19175 func_dirname ()
19176 {
19177 # Extract subdirectory from the argument.
19178 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19179 if test "X$func_dirname_result" = "X${1}"; then
19180 func_dirname_result="${3}"
19181 else
19182 func_dirname_result="$func_dirname_result${2}"
19183 fi
19184 }
19185
19186 # func_basename file
19187 func_basename ()
19188 {
19189 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19190 }
19191
19192
19193 # func_stripname prefix suffix name
19194 # strip PREFIX and SUFFIX off of NAME.
19195 # PREFIX and SUFFIX must not contain globbing or regex special
19196 # characters, hashes, percent signs, but SUFFIX may contain a leading
19197 # dot (in which case that matches only a dot).
19198 # func_strip_suffix prefix name
19199 func_stripname ()
19200 {
19201 case ${2} in
19202 .*) func_stripname_result=`$ECHO "X${3}" \
19203 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19204 *) func_stripname_result=`$ECHO "X${3}" \
19205 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19206 esac
19207 }
19208
19209 # sed scripts:
19210 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19211 my_sed_long_arg='1s/^-[^=]*=//'
19212
19213 # func_opt_split
19214 func_opt_split ()
19215 {
19216 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19217 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19218 }
19219
19220 # func_lo2o object
19221 func_lo2o ()
19222 {
19223 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19224 }
19225
19226 # func_xform libobj-or-source
19227 func_xform ()
19228 {
19229 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19230 }
19231
19232 # func_arith arithmetic-term...
19233 func_arith ()
19234 {
19235 func_arith_result=`expr "$@"`
19236 }
19237
19238 # func_len string
19239 # STRING may not start with a hyphen.
19240 func_len ()
19241 {
19242 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19243 }
19244
19245 _LT_EOF
19246 esac
19247
19248 case $lt_shell_append in
19249 yes)
19250 cat << \_LT_EOF >> "$cfgfile"
19251
19252 # func_append var value
19253 # Append VALUE to the end of shell variable VAR.
19254 func_append ()
19255 {
19256 eval "$1+=\$2"
19257 }
19258 _LT_EOF
19259 ;;
19260 *)
19261 cat << \_LT_EOF >> "$cfgfile"
19262
19263 # func_append var value
19264 # Append VALUE to the end of shell variable VAR.
19265 func_append ()
19266 {
19267 eval "$1=\$$1\$2"
19268 }
19269
19270 _LT_EOF
19271 ;;
19272 esac
19273
19274
19275 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19276 || (rm -f "$cfgfile"; exit 1)
19277
19278 mv -f "$cfgfile" "$ofile" ||
19279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19280 chmod +x "$ofile"
19281
19282
19283 cat <<_LT_EOF >> "$ofile"
19284
19285 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19286
19287 # The linker used to build libraries.
19288 LD=$lt_LD_CXX
19289
19290 # Commands used to build an old-style archive.
19291 old_archive_cmds=$lt_old_archive_cmds_CXX
19292
19293 # A language specific compiler.
19294 CC=$lt_compiler_CXX
19295
19296 # Is the compiler the GNU compiler?
19297 with_gcc=$GCC_CXX
19298
19299 # Compiler flag to turn off builtin functions.
19300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19301
19302 # How to pass a linker flag through the compiler.
19303 wl=$lt_lt_prog_compiler_wl_CXX
19304
19305 # Additional compiler flags for building library objects.
19306 pic_flag=$lt_lt_prog_compiler_pic_CXX
19307
19308 # Compiler flag to prevent dynamic linking.
19309 link_static_flag=$lt_lt_prog_compiler_static_CXX
19310
19311 # Does compiler simultaneously support -c and -o options?
19312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19313
19314 # Whether or not to add -lc for building shared libraries.
19315 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19316
19317 # Whether or not to disallow shared libs when runtime libs are static.
19318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19319
19320 # Compiler flag to allow reflexive dlopens.
19321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19322
19323 # Compiler flag to generate shared objects directly from archives.
19324 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19325
19326 # Whether the compiler copes with passing no objects directly.
19327 compiler_needs_object=$lt_compiler_needs_object_CXX
19328
19329 # Create an old-style archive from a shared archive.
19330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19331
19332 # Create a temporary old-style archive to link instead of a shared archive.
19333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19334
19335 # Commands used to build a shared archive.
19336 archive_cmds=$lt_archive_cmds_CXX
19337 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19338
19339 # Commands used to build a loadable module if different from building
19340 # a shared archive.
19341 module_cmds=$lt_module_cmds_CXX
19342 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19343
19344 # Whether we are building with GNU ld or not.
19345 with_gnu_ld=$lt_with_gnu_ld_CXX
19346
19347 # Flag that allows shared libraries with undefined symbols to be built.
19348 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19349
19350 # Flag that enforces no undefined symbols.
19351 no_undefined_flag=$lt_no_undefined_flag_CXX
19352
19353 # Flag to hardcode \$libdir into a binary during linking.
19354 # This must work even if \$libdir does not exist
19355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19356
19357 # If ld is used when linking, flag to hardcode \$libdir into a binary
19358 # during linking. This must work even if \$libdir does not exist.
19359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19360
19361 # Whether we need a single "-rpath" flag with a separated argument.
19362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19363
19364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19365 # DIR into the resulting binary.
19366 hardcode_direct=$hardcode_direct_CXX
19367
19368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19369 # DIR into the resulting binary and the resulting library dependency is
19370 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19371 # library is relocated.
19372 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19373
19374 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19375 # into the resulting binary.
19376 hardcode_minus_L=$hardcode_minus_L_CXX
19377
19378 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19379 # into the resulting binary.
19380 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19381
19382 # Set to "yes" if building a shared library automatically hardcodes DIR
19383 # into the library and all subsequent libraries and executables linked
19384 # against it.
19385 hardcode_automatic=$hardcode_automatic_CXX
19386
19387 # Set to yes if linker adds runtime paths of dependent libraries
19388 # to runtime path list.
19389 inherit_rpath=$inherit_rpath_CXX
19390
19391 # Whether libtool must link a program against all its dependency libraries.
19392 link_all_deplibs=$link_all_deplibs_CXX
19393
19394 # Fix the shell variable \$srcfile for the compiler.
19395 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19396
19397 # Set to "yes" if exported symbols are required.
19398 always_export_symbols=$always_export_symbols_CXX
19399
19400 # The commands to list exported symbols.
19401 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19402
19403 # Symbols that should not be listed in the preloaded symbols.
19404 exclude_expsyms=$lt_exclude_expsyms_CXX
19405
19406 # Symbols that must always be exported.
19407 include_expsyms=$lt_include_expsyms_CXX
19408
19409 # Commands necessary for linking programs (against libraries) with templates.
19410 prelink_cmds=$lt_prelink_cmds_CXX
19411
19412 # Specify filename containing input files.
19413 file_list_spec=$lt_file_list_spec_CXX
19414
19415 # How to hardcode a shared library path into an executable.
19416 hardcode_action=$hardcode_action_CXX
19417
19418 # The directories searched by this compiler when creating a shared library.
19419 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19420
19421 # Dependencies to place before and after the objects being linked to
19422 # create a shared library.
19423 predep_objects=$lt_predep_objects_CXX
19424 postdep_objects=$lt_postdep_objects_CXX
19425 predeps=$lt_predeps_CXX
19426 postdeps=$lt_postdeps_CXX
19427
19428 # The library search path used internally by the compiler when linking
19429 # a shared library.
19430 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19431
19432 # ### END LIBTOOL TAG CONFIG: CXX
19433 _LT_EOF
19434
19435 ;;
19436
19437 esac
19438 done # for ac_tag
19439
19440
19441 as_fn_exit 0
19442 _ACEOF
19443 ac_clean_files=$ac_clean_files_save
19444
19445 test $ac_write_fail = 0 ||
19446 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19447
19448
19449 # configure is writing to config.log, and then calls config.status.
19450 # config.status does its own redirection, appending to config.log.
19451 # Unfortunately, on DOS this fails, as config.log is still kept open
19452 # by configure, so config.status won't be able to write to it; its
19453 # output is simply discarded. So we exec the FD to /dev/null,
19454 # effectively closing config.log, so it can be properly (re)opened and
19455 # appended to by config.status. When coming back to configure, we
19456 # need to make the FD available again.
19457 if test "$no_create" != yes; then
19458 ac_cs_success=:
19459 ac_config_status_args=
19460 test "$silent" = yes &&
19461 ac_config_status_args="$ac_config_status_args --quiet"
19462 exec 5>/dev/null
19463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19464 exec 5>>config.log
19465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19466 # would make configure fail if this is the last instruction.
19467 $ac_cs_success || as_fn_exit $?
19468 fi
19469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19471 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19472 fi
19473